Table of Contents
The
routine interprets character strings representing link-level addresses,
returning binary information suitable for use in system calls. The routine
takes a link-level address and returns an string representing some of
the information present, including the link level address itself, and the
interface name or number, if present. This facility is experimental and
is still subject to change. For the string may contain an optional network
interface identifier of the form suitable for the first argument to followed
in all cases by a colon and an interface address in the form of groups
of hexadecimal digits separated by periods. Each group represents a byte
of address; address bytes are filled left to right from low order bytes
through high order bytes. Thus represents an ethernet address to
be transmitted on the first Lance ethernet interface.
always
returns a null terminated string. has no return value. (See
The
and functions appeared in
The returned values for link_ntoa reside
in a static memory area. The function should diagnose improperly formed
input, and there should be an unambiguous way to recognize this. If the
field of the link socket address is 0, will not insert a colon before
the interface address bytes. If this translated address is given to without
inserting an initial colon, the latter will not interpret it correctly.
Table of Contents