Searched refs:masklen (Results 1 – 8 of 8) sorted by relevance
/illumos-gate/usr/src/uts/common/inet/ip/ |
H A D | ip6_ire.c | 649 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() 1033 uint_t masklen; in ire_ftable_lookup_impl_v6() local 1035 masklen = ip_mask_to_plen_v6(mask); in ire_ftable_lookup_impl_v6() 1036 if (ipst->ips_ip_forwarding_table_v6[masklen] == NULL) { in ire_ftable_lookup_impl_v6() 1039 irb_ptr = &(ipst->ips_ip_forwarding_table_v6[masklen][ in ire_ftable_lookup_impl_v6() 1053 uint_t masklen; in ire_ftable_lookup_impl_v6() local 1060 masklen = ip_mask_to_plen_v6(mask); in ire_ftable_lookup_impl_v6() [all …]
|
H A D | ip_ire.c | 1085 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()
|
/illumos-gate/usr/src/cmd/tsol/tnd/ |
H A D | tnd.c | 88 static in_addr_t rh_index_to_mask(uint_t masklen); 90 static in6_addr_t *rh_index_to_mask_v6(uint_t masklen, in6_addr_t *bitmask); 383 rh_index_to_mask(uint_t masklen) in rh_index_to_mask() argument 385 if (masklen == 0) in rh_index_to_mask() 387 return (htonl(RH_HOST_MASK << (IP_ABITS - masklen))); in rh_index_to_mask() 395 rh_index_to_mask_v6(uint_t masklen, in6_addr_t *bitmask) in rh_index_to_mask_v6() argument 402 while (masklen > 32) { in rh_index_to_mask_v6() 404 masklen -= 32; in rh_index_to_mask_v6() 406 *ptr = htonl(0xffffffffU << (32 - masklen)); in rh_index_to_mask_v6()
|
/illumos-gate/usr/src/lib/libipadm/common/ |
H A D | ipadm_ngz.c | 72 uint_t masklen, in i_ipadm_rtioctl4() argument 109 if (masklen == HOST_MASK) { in i_ipadm_rtioctl4() 116 if (plen2mask(masklen, AF_INET, (struct sockaddr *)&m4) != 0) { in i_ipadm_rtioctl4()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ |
H A D | route.c | 2047 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()
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | labelsys.c | 77 tsol_plen_to_mask(uint_t masklen) in tsol_plen_to_mask() argument 79 return (masklen == 0 ? 0 : htonl(IP_HOST_MASK << (IP_ABITS - masklen))); in tsol_plen_to_mask()
|
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | net.c | 1002 int masklen; in netstat_irev6_cb() local 1032 masklen = ip_mask_to_plen_v6(&ire->ire_mask_v6); in netstat_irev6_cb() 1034 &ire->ire_addr_v6, masklen); in netstat_irev6_cb()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/netstat/ |
H A D | netstat.c | 4870 v6_addr_match(const Ip6Address *addr, int masklen, const filter_t *fp) in v6_addr_match() argument 4895 if (fmasklen > masklen) in v6_addr_match() 4897 masklen = fmasklen; in v6_addr_match() 4904 for (i = masklen; i >= 8; i -= 8) in v6_addr_match()
|