Home
last modified time | relevance | path

Searched refs:masklen (Results 1 – 9 of 9) sorted by relevance

/titanic_44/usr/src/cmd/ssh/libssh/common/
H A Daddrmatch.c65 masklen_valid(int af, u_int masklen) in masklen_valid() argument
69 return masklen <= 32 ? 0 : -1; in masklen_valid()
71 return masklen <= 128 ? 0 : -1; in masklen_valid()
297 addr_host_is_all0s(const struct xaddr *a, u_int masklen) in addr_host_is_all0s() argument
302 if (addr_hostmask(a->af, masklen, &tmp_mask) == -1) in addr_host_is_all0s()
317 long unsigned int masklen = 999; in addr_pton_cidr() local
327 masklen = strtoul(mp, &cp, 10); in addr_pton_cidr()
328 if (*mp == '\0' || *cp != '\0' || masklen > 128) in addr_pton_cidr()
336 masklen = addr_unicast_masklen(tmp.af); in addr_pton_cidr()
337 if (masklen_valid(tmp.af, masklen) == -1) in addr_pton_cidr()
[all …]
/titanic_44/usr/src/uts/common/inet/ip/
H A Dip6_ire.c649 uint_t masklen; in ire_flush_cache_v6() local
658 masklen = ip_mask_to_plen_v6(&mask); in ire_flush_cache_v6()
667 ASSERT(masklen > ip_mask_to_plen_v6(&mask)); in ire_flush_cache_v6()
668 masklen = ip_mask_to_plen_v6(&mask); in ire_flush_cache_v6()
1035 uint_t masklen; in ire_ftable_lookup_impl_v6() local
1037 masklen = ip_mask_to_plen_v6(mask); in ire_ftable_lookup_impl_v6()
1038 if (ipst->ips_ip_forwarding_table_v6[masklen] == NULL) { in ire_ftable_lookup_impl_v6()
1041 irb_ptr = &(ipst->ips_ip_forwarding_table_v6[masklen][ in ire_ftable_lookup_impl_v6()
1055 uint_t masklen; in ire_ftable_lookup_impl_v6() local
1062 masklen = ip_mask_to_plen_v6(mask); in ire_ftable_lookup_impl_v6()
[all …]
H A Dip_ire.c1085 ip_plen_to_mask(uint_t masklen) in ip_plen_to_mask() argument
1087 if (masklen == 0) in ip_plen_to_mask()
1090 return (htonl(IP_HOST_MASK << (IP_ABITS - masklen))); in ip_plen_to_mask()
/titanic_44/usr/src/cmd/tsol/tnd/
H A Dtnd.c90 static in_addr_t rh_index_to_mask(uint_t masklen);
92 static in6_addr_t *rh_index_to_mask_v6(uint_t masklen, in6_addr_t *bitmask);
385 rh_index_to_mask(uint_t masklen) in rh_index_to_mask() argument
387 if (masklen == 0) in rh_index_to_mask()
389 return (htonl(RH_HOST_MASK << (IP_ABITS - masklen))); in rh_index_to_mask()
397 rh_index_to_mask_v6(uint_t masklen, in6_addr_t *bitmask) in rh_index_to_mask_v6() argument
404 while (masklen > 32) { in rh_index_to_mask_v6()
406 masklen -= 32; in rh_index_to_mask_v6()
408 *ptr = htonl(0xffffffffU << (32 - masklen)); in rh_index_to_mask_v6()
/titanic_44/usr/src/lib/libipadm/common/
H A Dipadm_ngz.c71 uint_t masklen, in i_ipadm_rtioctl4() argument
108 if (masklen == HOST_MASK) { in i_ipadm_rtioctl4()
115 if (plen2mask(masklen, AF_INET, (struct sockaddr *)&m4) != 0) { in i_ipadm_rtioctl4()
/titanic_44/usr/src/cmd/cmd-inet/usr.sbin/
H A Droute.c2047 int masklen; in getaddr() local
2111 if (!in6_getaddr(s, &su->sin6, &masklen, hpp)) { in getaddr()
2114 if (masklen != NO_PREFIX) { in getaddr()
2117 if (!in_prefixlentomask(masklen, IPV6_ABITS, in getaddr()
2121 masklen); in getaddr()
2144 if (!in_getaddr(s, &su->sin, &masklen, which, hpp, in getaddr()
2148 if (masklen != NO_PREFIX) { in getaddr()
2151 if (!in_prefixlentomask(masklen, IP_ABITS, in getaddr()
2155 masklen); in getaddr()
/titanic_44/usr/src/uts/common/os/
H A Dlabelsys.c79 tsol_plen_to_mask(uint_t masklen) in tsol_plen_to_mask() argument
81 return (masklen == 0 ? 0 : htonl(IP_HOST_MASK << (IP_ABITS - masklen))); in tsol_plen_to_mask()
/titanic_44/usr/src/cmd/mdb/common/modules/genunix/
H A Dnet.c999 int masklen; in netstat_irev6_cb() local
1029 masklen = ip_mask_to_plen_v6(&ire->ire_mask_v6); in netstat_irev6_cb()
1031 &ire->ire_addr_v6, masklen); in netstat_irev6_cb()
/titanic_44/usr/src/cmd/cmd-inet/usr.bin/netstat/
H A Dnetstat.c4440 v6_addr_match(const Ip6Address *addr, int masklen, const filter_t *fp) in v6_addr_match() argument
4466 if (fmasklen > masklen) in v6_addr_match()
4468 masklen = fmasklen; in v6_addr_match()
4477 for (i = masklen; i >= 8; i -= 8) in v6_addr_match()