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
BUGS
There is no provision to obtain multiple addresses for machines that connect to multiple networks.
December 01, 1986 — Xinu Programmer’s Manual