Back to index

glibc  2.9
Functions
inet_lnaof.c File Reference
#include <sys/param.h>
#include <netinet/in.h>
#include <arpa/inet.h>

Go to the source code of this file.

Functions

in_addr_t inet_lnaof (struct in_addr in)

Function Documentation

in_addr_t inet_lnaof ( struct in_addr  in)

Definition at line 44 of file inet_lnaof.c.

{
       register u_int32_t i = ntohl(in.s_addr);

       if (IN_CLASSA(i))
              return ((i)&IN_CLASSA_HOST);
       else if (IN_CLASSB(i))
              return ((i)&IN_CLASSB_HOST);
       else
              return ((i)&IN_CLASSC_HOST);
}

Here is the call graph for this function: