Open System Services Library Calls Reference Manual (G06.28+, H06.05+)

OSS Library Calls (i - m) inet_netof(3)
NAME
inet_netof - Extracts the network number from an Internet IPv4 host address
LIBRARY
G-series native OSS processes: /G/system/sysnn/zinetsrl
H-series OSS processes: /G/system/zdllnnn/zinetdll
SYNOPSIS
#include <arpa/inet.h>
in_addr_t inet_netof (
struct in_addr net_addr
);
PARAMETERS
net_addr An Internet host address.
DESCRIPTION
The inet_netof() function extracts the network number, in host-byte order, from the Internet IPv4
host address contained in net_addr and returns the network number in network-byte order (most
signicant byte leftmost).
RETURN VALUES
Upon successful completion, the inet_netof() function returns a network byte ordered integer
that species the Internet network number.
ERROR
The inet_netof() function does not set errno.
RELATED INFORMATION
Functions: inet_addr(3), inet_network(3), ntohl(3).
527187-007 Hewlett-Packard Company 419