Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ getaddr(2) — Purdue Xinu

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

getname(2)

getnet(2)

GETADDR(2)

NAME

getaddr − obtain the local machine’s Internet (IP) address

SYNOPSIS

int getaddr(ip)
IPaddr ip;

DESCRIPTION

Getaddr obtains the local machine’s primary Internet (IP) address and places it in the 4-byte array specified by argument ip.  Calling getaddr may trigger a Reverse Address Resolution Protocol (RARP) broadcast to find the address.  If RARP succeeds, the address is kept locally for successive lookup requests.  If RARP fails, getaddr calls panic to halt processing. 

SEE ALSO

getname(2), getnet(2)

BUGS

There is no provision to obtain multiple addresses for machines that connect to multiple networks. 

December 01, 1986  —  Xinu Programmer’s Manual

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