Lines Matching refs:s_addr
66 uint32_t addr = in.s_addr;
132 i = ntohl(net.s_addr);
140 net2.s_addr = htonl(i);
142 net1.s_addr = htonl(i << IN_CLASSC_NSHIFT);
144 net1.s_addr = htonl(i << IN_CLASSB_NSHIFT);
146 net1.s_addr = htonl(i << IN_CLASSA_NSHIFT);
149 net1.s_addr = htonl(i & IN_CLASSA_NET);
150 net2.s_addr = htonl(i >> IN_CLASSA_NSHIFT);
152 net1.s_addr = htonl(i & IN_CLASSB_NET);
153 net2.s_addr = htonl(i >> IN_CLASSB_NSHIFT);
155 net1.s_addr = htonl(i & IN_CLASSC_NET);
156 net2.s_addr = htonl(i >> IN_CLASSC_NSHIFT);
190 i = ntohl(addr.s_addr);
191 prevnet.s_addr = 0;
192 mask->s_addr = 0;
195 net.s_addr = htonl(i & maskoff);
197 if (net.s_addr != prevnet.s_addr) {
199 mask->s_addr = 0;
202 if (htonl(maskoff) == mask->s_addr)
205 prevnet.s_addr = net.s_addr;
246 addr.s_addr = inet_addr(tmp);
248 if (addr.s_addr == 0xffffffffUL)
269 addr.s_addr = inet_addr(tmp);
271 if (addr.s_addr == 0xffffffffUL)
274 mask->s_addr = addr.s_addr;