Searches the network database sequentially from the beginning of the database for a network record with a given address.
#include <netdb.h> struct netent *getnetbyaddr (long net, int type);
The getnetent, getnetbyaddr, and getnetbyname routines all use a common static area for their return values. This means that subsequent calls to any of these routines will overwrite any existing network entry. You must make a copy of the network entry if you wish to save it.
NULL | Indicates EOF or an error. |
x | A pointer to an object having the netent structure. See the <netdb.h> header file for a description of the netent structure. |