diff options
author | Bill Paul <wpaul@FreeBSD.org> | 1996-12-18 21:42:38 +0000 |
---|---|---|
committer | Bill Paul <wpaul@FreeBSD.org> | 1996-12-18 21:42:38 +0000 |
commit | 18fe100709b5ce947815873e7711dda6ffeac2e1 (patch) | |
tree | 72a8c281eaf3b2c2468930f57337fca3634b160b /sys/net/ethernet.h | |
parent | 7a81e58e553aac2c0cbaf00392d16503eab9da11 (diff) | |
download | src-18fe100709b5ce947815873e7711dda6ffeac2e1.tar.gz src-18fe100709b5ce947815873e7711dda6ffeac2e1.zip |
Add prototypes for ethers.3 functions as per wollman:
> wollman 96/12/10 09:19:15
>
> Modified: lib/libc/net ether_addr.c ethers.3
> Log:
> Get struct ether_addr directly from <net/ethernet.h> rather than pulling
> in lots of unrelated junk from <net/if.h> and <net/if_ether.h>. These
> functions still aren't prototyped anywhere (but should be in
> <net/ethernet.h>---got that, Bill?).
(Note that this file has no copyright header; one should probably
be added.)
Notes
Notes:
svn path=/head/; revision=20661
Diffstat (limited to 'sys/net/ethernet.h')
-rw-r--r-- | sys/net/ethernet.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/sys/net/ethernet.h b/sys/net/ethernet.h index 6cd539ed0a55..24f127693dbf 100644 --- a/sys/net/ethernet.h +++ b/sys/net/ethernet.h @@ -1,7 +1,7 @@ /* * Fundamental constants relating to ethernet. * - * $Id: ethernet.h,v 1.1 1996/08/05 14:02:38 phk Exp $ + * $Id: ethernet.h,v 1.2 1996/08/06 21:14:21 phk Exp $ * */ @@ -60,4 +60,14 @@ struct ether_addr { u_char octet[ETHER_ADDR_LEN]; }; +/* + * Ethernet address conversion/parsing routines. + */ +struct ether_addr + *ether_aton __P(( char * )); +char *ether_ntoa __P (( struct ether_addr * )); +int ether_line __P(( char *, struct ether_addr *, char * )); +int ether_ntohost __P(( char *, struct ether_addr * )); +int ether_hostton __P(( char *, struct ether_addr * )); + #endif |