Lines Matching refs:mask
44 in_addr_t mask; /* in host byte order */ in getnet() local
90 mask = std_mask(htonl(in.s_addr)); in getnet()
91 if ((~mask & in.s_addr) != 0) in getnet()
92 mask = HOST_MASK; in getnet()
94 mask = (uint32_t)strtoul(mname, &p, 0); in getnet()
95 if (*p != '\0' || mask > 32 || mname == p) in getnet()
97 if (mask != 0) in getnet()
98 mask = HOST_MASK << (32-mask); in getnet()
102 if (mask != 0 && in.s_addr == RIP_DEFAULT) in getnet()
105 if ((~mask & in.s_addr) != 0) in getnet()
108 if ((mask & in.s_addr) == 0 && in.s_addr != RIP_DEFAULT) in getnet()
116 *maskp = mask; in getnet()