inet_netof(3) — Subroutines
NAME
inet_netof − Translates an Internet address integer into its network address component
LIBRARY
Standard C Library (libc.a)
SYNOPSIS
#include <netinet/in.h> #include <arpa/inet.h> unsigned int inet_netof(
struct in_addr net_addr) ;
PARAMETERS
net_addrDefines an Internet address in network-byte order.
DESCRIPTION
The inet_netof() function translates an Internet address into its network address component. The network address integer is returned in host-byte order.
RETURN VALUES
Upon successful completion, the inet_netof() function returns a host byte-ordered integer that specifies the Internet network address. When the inet_netof() function fails, -1 is returned.
RELATED INFORMATION
Functions: inet_addr(3), inet_lnaof(3), inet_makeaddr(3), inet_network(3), inet_ntoa(3)
Network Programmer’s Guide