Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ inet_makeaddr(3) — Digital UNIX 3.2c

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

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 (
unsigned int net_num,
unsigned int loc_addr) ;

PARAMETERS

net_numDefines an Internet number in host-byte order. 

loc_addrDefines a host (local) address integer. 

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. 

RETURN VALUES

Upon successful completion, the inet_makeaddr() function returns 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)

Network Programmer’s Guide

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