Open System Services Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)
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
32-bit H-series and J-series OSS processes: /G/system/zdllnnn/zinetdll |
64-bit H-series and J-series OSS processes: /G/system/zdllnnn/yinetdll |
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
significant byte leftmost).
RETURN VALUES
Upon successful completion, the inet_netof( ) function returns a network byte ordered integer
that specifies 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-017 Hewlett-Packard Company 4−23