|Skip Navigation Links| |Exit Print View| |man pages section 3:
Networking Library Functions Oracle Solaris 11 Information
Library| - get network entry cc [ flag ... ] file ... -lsocket
-lnsl [ library ... ] #include <netdb.h> struct netent
*getnetbyname(const char *name); struct netent
*getnetbyname_r(const char *name, struct netent *result, char
*buffer, int buflen); struct netent *getnetbyaddr(long net, int
type); struct netent *getnetbyaddr_r(long net, int type, struct
netent *result, char *buffer, int buflen); struct netent
*getnetent(void); struct netent *getnetent_r(struct netent
*result, char *buffer, int buflen); int setnetent(int stayopen);
These functions are used to obtain entries for networks. An
entry may come from any of the sources for networks specified in
the /etc/nsswitch.conf file. See nsswitch.conf(4).
getnetbyname() searches for a network entry with the network
name specified by the character string parameter name.
getnetbyaddr() searches for a network entry with the network
address spec