Lines Matching defs:nwent
60 static struct netent *nw_to_net(struct nwent *, struct net_data *);
304 nw_to_net(struct nwent *nwent, struct net_data *net_data) {
310 if (!nwent || nwent->n_addrtype != AF_INET)
320 pvt->netent.n_name = nwent->n_name;
321 pvt->netent.n_aliases = nwent->n_aliases;
322 pvt->netent.n_addrtype = nwent->n_addrtype;
332 msbyte = nwent->n_length / 8 +
333 ((nwent->n_length % 8) != 0 ? 1 : 0) - 1;
335 addr = (addr << 8) | ((unsigned char *)nwent->n_addr)[i];
336 i = (32 - nwent->n_length) % 8;