Lines Matching refs:mask
95 getnetmaskbykey(const struct in_addr addr, struct in_addr *mask) in getnetmaskbykey() argument
110 NSS_XbyY_INIT(&arg, mask, NULL, 0, str2addr); in getnetmaskbykey()
127 getnetmaskbynet(const struct in_addr net, struct in_addr *mask) in getnetmaskbynet() argument
159 if (getnetmaskbykey(net1, mask) == 0) { in getnetmaskbynet()
162 if (getnetmaskbykey(net2, mask) == 0) { in getnetmaskbynet()
185 getnetmaskbyaddr(const struct in_addr addr, struct in_addr *mask) in getnetmaskbyaddr() argument
192 mask->s_addr = 0; in getnetmaskbyaddr()
198 if (getnetmaskbykey(net, mask) != 0) { in getnetmaskbyaddr()
199 mask->s_addr = 0; in getnetmaskbyaddr()
202 if (htonl(maskoff) == mask->s_addr) in getnetmaskbyaddr()
213 return (getnetmaskbynet(addr, mask)); in getnetmaskbyaddr()
227 struct in_addr *mask = (struct in_addr *)ent; in str2addr() local
261 if (mask) { in str2addr()
274 mask->s_addr = addr.s_addr; in str2addr()