Open System Services Library Calls Reference Manual (G06.28+, H06.05+)
inet_makeaddr(3) OSS Library Calls Reference Manual
NAME
inet_makeaddr - Constructs an Internet IPv4 address from an Internet network number and a
local network address
LIBRARY
G-series native OSS processes: /G/system/sysnn/zinetsrl
H-series OSS processes: /G/systemzdllsnnn/zinetdll
SYNOPSIS
#include <arpa/inet.h>
struct in_addr inet_makeaddr (
in_addr_t net_num,
in_addr_t loc_addr
);
PARAMETERS
net_num An Internet network number in host-byte order.
loc_addr A local address in host-byte order.
DESCRIPTION
The inet_makeaddr() function uses the Internet network number contained in net_num and the
local address in loc_addr and creates an Internet IPv4 address from them. The Internet network
address is returned in network byte order.
RETURN VALUES
Upon successful completion, the inet_makeaddr() function returns an address in network-byte
order (most significant byte leftmost).
ERROR
The inet_makeaddr() function does not set errno.
RELATED INFORMATION
Functions: inet_addr(3), inet_lnaof(3), inet_netof(3), inet_network(3), inet_ntoa(3), htonl(3).
4−18 Hewlett-Packard Company 527187-007