|
NAMEeui64 , eui64_aton ,
eui64_ntoa , eui64_ntohost ,
eui64_hostton —
IEEE EUI-64 conversion and lookup routines
LIBRARYStandard C Library (libc, -lc)SYNOPSIS#include <sys/types.h>
#include <sys/eui64.h>
int
int
int
int
DESCRIPTIONThese functions operate on IEEE EUI-64s using an eui64 structure, which is defined in the header file<sys/eui64.h> :
/* * The number of bytes in an EUI-64. */ #define EUI64_LEN 8 /* * Structure of an IEEE EUI-64. */ struct eui64 { u_char octet[EUI64_LEN]; }; The The RETURN VALUESOn success,eui64_ntoa () returns a pointer to a string
containing an ASCII representation of an EUI-64. If it is unable to convert
the supplied eui64 structure, it returns a
NULL pointer. Likewise,
eui64_aton () returns a pointer to an
eui64 structure on success and a
NULL pointer on failure.
The NOTESThe user must ensure that the hostname strings passed to theeui64_ntohost () and
eui64_hostton () functions are large enough to contain
the returned hostnames.
NIS INTERACTIONIf the /etc/eui64 contains a line with a single ‘+ ’ in it, the
eui64_ntohost () and
eui64_hostton () functions will attempt to consult the
NIS eui64.byname and
eui64.byid maps in addition to the data in the
/etc/eui64 file.
SEE ALSOfirewire(4), eui64(5), yp(8)HISTORYThese functions first appears in FreeBSD 5.3. They are derived from the ethers(3) family of functions.
Visit the GSP FreeBSD Man Page Interface. |