mirror of
https://github.com/opnsense/src.git
synced 2026-06-04 14:26:03 -04:00
Update to reflect current include files.
This commit is contained in:
parent
1ffa645077
commit
453196eb04
1 changed files with 12 additions and 3 deletions
|
|
@ -61,11 +61,16 @@ These functions operate on ethernet addresses using an
|
|||
structure, which is defined in the header file
|
||||
.Aq Pa netinet/if_ether.h :
|
||||
.Bd -literal -offset indent
|
||||
/*
|
||||
* The number of bytes in an ethernet (MAC) address.
|
||||
*/
|
||||
#define ETHER_ADDR_LEN 6
|
||||
|
||||
/*
|
||||
* Structure of a 48-bit Ethernet address.
|
||||
*/
|
||||
struct ether_addr {
|
||||
u_char octet[6];
|
||||
u_char octet[ETHER_ADDR_LEN];
|
||||
};
|
||||
.Ed
|
||||
.Pp
|
||||
|
|
@ -130,11 +135,15 @@ returns a pointer to a string containing an
|
|||
representation of an ethernet address. If it is unable to convert
|
||||
the supplied
|
||||
.Ar ether_addr
|
||||
structure, it returns a NULL pointer. Likewise,
|
||||
structure, it returns a
|
||||
.Dv NULL
|
||||
pointer. Likewise,
|
||||
.Fn ether_aton
|
||||
returns a pointer to an
|
||||
.Ar ether_addr
|
||||
structure on success and a NULL pointer on failure.
|
||||
structure on success and a
|
||||
.Dv NULL
|
||||
pointer on failure.
|
||||
.Pp
|
||||
The
|
||||
.Fn ether_ntohost
|
||||
|
|
|
|||
Loading…
Reference in a new issue