Network names
As for host names, routines for mapping network names to numbers,
and back, are provided.
These routines return a
netent
structure:
/*
* Assumption here is that a network number
* fits in 32 bits -- probably a poor one.
*/
struct netent {
char *n_name; /* official name of net */
char **n_aliases; /* alias list */
int n_addrtype; /* net address type */
int n_net; /* network number, host byte order */
};
The routines
getnetbyname,
getnetbyaddr,
and
getnetent(S)
are the network counterparts to the
host routines described above.
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 02 June 2005