Lines Matching defs:mask
307 int in_addr_default_subnet_mask(const struct in_addr *addr, struct in_addr *mask) {
312 assert(mask);
318 in_addr_prefixlen_to_netmask(mask, prefixlen);
326 struct in_addr mask;
328 if (!in_addr_prefixlen_to_netmask(&mask, prefixlen))
331 addr->in.s_addr &= mask.s_addr;
339 uint8_t mask;
342 mask = 0xFF;
345 mask = 0xFF << (8 - prefixlen);
349 addr->in6.s6_addr[i] &= mask;