• Home
  • Raw
  • Download

Lines Matching full:mask

52 		if (iter->valid && (addr & iter->mask) == iter->addr)  in netlbl_af4list_search()
61 * @mask: IPv4 address mask
71 __be32 mask, in netlbl_af4list_search_exact() argument
77 if (iter->valid && iter->addr == addr && iter->mask == mask) in netlbl_af4list_search_exact()
103 ipv6_masked_addr_cmp(&iter->addr, &iter->mask, addr) == 0) in netlbl_af6list_search()
112 * @mask: IPv6 address mask
122 const struct in6_addr *mask, in netlbl_af6list_search_exact() argument
130 ipv6_addr_equal(&iter->mask, mask)) in netlbl_af6list_search_exact()
154 iter->addr == entry->addr && iter->mask == entry->mask) in netlbl_af4list_add()
159 * address mask such that the entry with the widest mask (smallest in netlbl_af4list_add()
163 ntohl(entry->mask) > ntohl(iter->mask)) { in netlbl_af4list_add()
192 ipv6_addr_equal(&iter->mask, &entry->mask)) in netlbl_af6list_add()
197 * address mask such that the entry with the widest mask (smallest in netlbl_af6list_add()
201 ipv6_addr_cmp(&entry->mask, &iter->mask) > 0) { in netlbl_af6list_add()
230 * @mask: IP address mask
239 struct netlbl_af4list *netlbl_af4list_remove(__be32 addr, __be32 mask, in netlbl_af4list_remove() argument
244 entry = netlbl_af4list_search_exact(addr, mask, head); in netlbl_af4list_remove()
270 * @mask: IP address mask
280 const struct in6_addr *mask, in netlbl_af6list_remove() argument
285 entry = netlbl_af6list_search_exact(addr, mask, head); in netlbl_af6list_remove()
304 * @mask: IP address mask
307 * Write the IPv4 address and address mask, if necessary, to @audit_buf.
312 __be32 addr, __be32 mask) in netlbl_af4list_audit_addr() argument
314 u32 mask_val = ntohl(mask); in netlbl_af4list_audit_addr()
337 * @mask: IP address mask
340 * Write the IPv6 address and address mask, if necessary, to @audit_buf.
347 const struct in6_addr *mask) in netlbl_af6list_audit_addr() argument
354 if (ntohl(mask->s6_addr32[3]) != 0xffffffff) { in netlbl_af6list_audit_addr()
358 while (ntohl(mask->s6_addr32[++iter]) == 0xffffffff) in netlbl_af6list_audit_addr()
360 mask_val = ntohl(mask->s6_addr32[iter]); in netlbl_af6list_audit_addr()