Lines Matching defs:net
62 struct nwent net;
167 nw_byaddr(struct irs_nw *this, void *net, int len, int af) {
175 return (get1101byaddr(this, net, len));
265 get1101byaddr(struct irs_nw *this, u_char *net, int len) {
277 if (make1101inaddr(net, len, qbuf, sizeof qbuf) < 0)
291 AF_INET, NULL, net, len));
336 pvt->net.n_name = NULL;
337 pvt->net.n_aliases = pvt->ali;
338 pvt->net.n_addrtype = af;
339 pvt->net.n_addr = NULL;
340 pvt->net.n_length = addrlen;
352 pvt->net.n_name = strcpy(bp, name); /* (checked) */
366 pvt->net.n_addr = bp;
401 if (pvt->net.n_name == NULL)
402 pvt->net.n_name = bp;
403 else if (ns_samename(pvt->net.n_name, bp) == 1)
415 if (pvt->net.n_addr != NULL ||
423 pvt->net.n_addr = bp;
428 pvt->net.n_length = INADDRSZ * 8;
441 return (&pvt->net);
523 make1101inaddr(const u_char *net, int bits, char *name, int size) {
542 net[bits / 8] & ~((1 << (8 - n)) - 1)));
550 m = SPRINTF((name, "%u.", net[n - 1]));