Lines Matching refs:mask
42 in_addr_t mask; /* in host byte order */ in getnet() local
88 mask = std_mask(htonl(in.s_addr)); in getnet()
89 if ((~mask & in.s_addr) != 0) in getnet()
90 mask = HOST_MASK; in getnet()
92 mask = (uint32_t)strtoul(mname, &p, 0); in getnet()
93 if (*p != '\0' || mask > 32 || mname == p) in getnet()
95 if (mask != 0) in getnet()
96 mask = HOST_MASK << (32-mask); in getnet()
100 if (mask != 0 && in.s_addr == RIP_DEFAULT) in getnet()
103 if ((~mask & in.s_addr) != 0) in getnet()
106 if ((mask & in.s_addr) == 0 && in.s_addr != RIP_DEFAULT) in getnet()
114 *maskp = mask; in getnet()