netent

structure for information from the network database

Synopsis:

#include <netdb.h>

struct netent {
     char            *n_name;    
     char            **n_aliases;
     int             n_addrtype; 
     unsigned long   n_net;      
};

Description:

This structure holds information from the network database, /etc/networks. The members of this structure are:

n_name
The name of the network.
n_aliases
A zero-terminated list of alternate names for the network.
n_addrtype
The type of the network number returned; currently only AF_INET.
n_net
The network number. Network numbers are returned in machine byte order.

Classification:

POSIX 1003.1g (draft)

See also:

endnetent(), getnetbyaddr(), getnetbyname(), getnetent(), setnetent()

/etc/networks in the TCP/IP User's Guide