nwent
static struct nwent *
static struct nwent *
static struct nwent *
static struct nwent *
struct nwent *result;
static struct nwent *
struct nwent *result;
static struct nwent *
static struct nwent *
get1101mask(struct irs_nw *this, struct nwent *nwent) {
if (!nwent)
if (make1101inaddr(nwent->n_addr, nwent->n_length, qbuf, sizeof qbuf)
return (nwent);
return (nwent);
return (nwent);
nwent->n_length = 0;
nwent->n_length++;
return (nwent);
struct nwent net;
static struct nwent * nw_byname(struct irs_nw *, const char *, int);
static struct nwent * nw_byaddr(struct irs_nw *, void *, int, int);
static struct nwent * nw_next(struct irs_nw *);
static struct nwent * get1101byaddr(struct irs_nw *, u_char *, int);
static struct nwent * get1101byname(struct irs_nw *, const char *);
static struct nwent * get1101answer(struct irs_nw *,
static struct nwent * get1101mask(struct irs_nw *this, struct nwent *);
static struct nwent *
struct nwent *rval;
static struct nwent *
struct nwent *rval;
static struct nwent *
struct nwent *rval;
static struct nwent * nw_next(struct irs_nw *);
static struct nwent * nw_byname(struct irs_nw *, const char *, int);
static struct nwent * nw_byaddr(struct irs_nw *, void *, int, int);
nw_to_net(struct nwent *nwent, struct net_data *net_data) {
if (!nwent || nwent->n_addrtype != AF_INET)
pvt->netent.n_name = nwent->n_name;
pvt->netent.n_aliases = nwent->n_aliases;
pvt->netent.n_addrtype = nwent->n_addrtype;
msbyte = nwent->n_length / 8 +
((nwent->n_length % 8) != 0 ? 1 : 0) - 1;
addr = (addr << 8) | ((unsigned char *)nwent->n_addr)[i];
i = (32 - nwent->n_length) % 8;
static struct netent *nw_to_net(struct nwent *, struct net_data *);
static struct nwent *
struct nwent *nw = &pvt->net;
static struct nwent *
struct nwent *nw = &pvt->net;
static struct nwent *
struct nwent *nw = &pvt->net;
free_nw(struct nwent *nw) {
struct nwent net;
static struct nwent * nw_byname(struct irs_nw *, const char *, int);
static struct nwent * nw_byaddr(struct irs_nw *, void *, int, int);
static struct nwent * nw_next(struct irs_nw *);
static void free_nw(struct nwent *nw);
irp_marshall_nw(struct nwent *ne, char **buffer, size_t *len) {
irp_unmarshall_nw(struct nwent *ne, char *buffer) {
struct nwent ne;
struct nwent * nww_last;
static struct nwent *
struct nwent *p;
static struct nwent *
struct nwent *p;
static struct nwent *
struct nwent *ret = NULL;
struct nwent net;
static struct nwent * nw_byname(struct irs_nw *, const char *, int);
static struct nwent * nw_byaddr(struct irs_nw *, void *, int, int);
static struct nwent * nw_next(struct irs_nw *);
struct nwent * (*byname) __P((struct irs_nw *, const char *, int));
struct nwent * (*byaddr) __P((struct irs_nw *, void *, int, int));
struct nwent * (*next) __P((struct irs_nw *));
int irp_marshall_nw(struct nwent *, char **, size_t *);
int irp_unmarshall_nw(struct nwent *, char *);