Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

inet_addr(3)

inet_lnaof(3)

inet_netof(3)

inet_network(3)

inet_ntoa(3)

inet_makeaddr(3)  —  Subroutines

OSF

NAME

inet_makeaddr − Translates an Internet address and host address into an Internet byte-ordered address integer

LIBRARY

Standard C Library (libc.a)

SYNOPSIS

#include <netinet/in.h>

#include <arpa/inet.h>

struct in_addr inet_makeaddr (
u_long net_num,
u_long loc_addr) ;

PARAMETERS

net_numDefines an Internet number in network-byte order. May be expressed as octal (leading 0), hexadecimal (leading 0x or 0X), or decimal. 

loc_addrDefines a host (local) address integer. May be expressed as octal (leading 0), hexadecimal (leading 0x or 0X), or decimal. 

DESCRIPTION

The inet_makeaddr() function translates a multipart Internet address and a local host address into their equivalent Internet byte-ordered address integer. The Internet network address integer is returned in network-byte order (most significant byte leftmost, least significant byte rightmost). 

RETURN VALUES

Upon successful completion, the inet_makeaddr() functionreturns a machine integer that specifies the Internet network byte-ordered address.  When the inet_makeaddr() function fails, -1 is returned. 

RELATED INFORMATION

Functions: inet_addr(3), inet_lnaof(3), inet_netof(3), inet_network(3), inet_ntoa(3)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026