inet_lnaof() — Translate a local network address into host byte order

Standards

Standards / Extensions C or C++ Dependencies
XPG4.2 both  

Format

X/Open:
#define _XOPEN_SOURCE_EXTENDED 1
#include <arpa/inet.h>

in_addr_t inet_lnaof(struct in_addr in);
Berkeley sockets:
#define _OE_SOCKETS
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>

unsigned long inet_lnaof(struct in_addr in);

General description

The inet_lnaof() function breaks apart the Internet host address and returns the local network address portion.
Parameter
Description
in
The host Internet address.

Special behavior for C++: To use this function with C++, you must use the _XOPEN_SOURCE_EXTENDED 1 feature test macro.

Returned value

The local network address is returned in host byte order.

Related information