|
NAMElink_addr , link_ntoa —
elementary address specification routines for link level
access
LIBRARYStandard C Library (libc, -lc)SYNOPSIS#include <sys/types.h>
#include <sys/socket.h>
#include <net/if_dl.h>
void
char *
DESCRIPTIONThe routinelink_addr () interprets character strings
representing link-level addresses, returning binary information suitable for
use in system calls. The routine link_ntoa () takes a
link-level address and returns an ASCII 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 Thus RETURN VALUESThelink_ntoa () function always returns a null
terminated string. The link_addr () function has no
return value. (See BUGS.)
SEE ALSOgetnameinfo(3)HISTORYThelink_addr () and link_ntoa ()
functions appeared in 4.3BSD-Reno.
BUGSThe returned values for link_ntoa reside in a static memory area.The function If the sdl_len field of the link socket
address sdl is 0,
Visit the GSP FreeBSD Man Page Interface. |