summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authormpp <mpp@FreeBSD.org>1997-01-30 23:10:32 +0000
committermpp <mpp@FreeBSD.org>1997-01-30 23:10:32 +0000
commit0037fcc3a04c86477286312805c4e5b392e96ffd (patch)
tree56a071e1e9edef0834ccd6afbe6c4070e57e655d /lib/libc
parent8cd7b6a67088a5d521f9d8c02ce388ee8dc683ce (diff)
downloadFreeBSD-src-0037fcc3a04c86477286312805c4e5b392e96ffd.zip
FreeBSD-src-0037fcc3a04c86477286312805c4e5b392e96ffd.tar.gz
Update to reflect current include files.
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/net/ethers.315
1 files changed, 12 insertions, 3 deletions
diff --git a/lib/libc/net/ethers.3 b/lib/libc/net/ethers.3
index 9f22bdb..1232ba7 100644
--- a/lib/libc/net/ethers.3
+++ b/lib/libc/net/ethers.3
@@ -62,10 +62,15 @@ 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
OpenPOWER on IntegriCloud