Lines Matching refs:mask
283 * Trim a mask in a sockaddr
300 in_mask2len(struct in_addr *mask)
305 p = (u_char *)mask;
306 for (x = 0; x < sizeof(*mask); x++) {
311 if (x < sizeof(*mask)) {
321 in_len2mask(struct in_addr *mask, int len)
326 p = (u_char *)mask;
327 bzero(mask, sizeof(*mask));
943 struct sockaddr_in addr, broadaddr, mask;
951 &mask, sizeof (mask));
967 if (mask.sin_len) {
971 ia->ia_sockmask = mask;
1309 struct in_addr mask, candidate;
1314 bzero(&mask, sizeof(mask));
1317 in_len2mask(&mask, iflr->prefixlen);
1321 match.s_addr &= mask.s_addr;
1334 in_len2mask(&mask, 32);
1354 candidate.s_addr &= mask.s_addr;
1671 * The subnet mask usually includes at least the standard network part,