diff options
author | 1996-07-03 08:08:30 +0000 | |
---|---|---|
committer | 1996-07-03 08:08:30 +0000 | |
commit | ceeee15711af8438df1d3511cb2d95675a664c27 (patch) | |
tree | 4c329d4dbfb64ef32d26dafbf51a03a2824c09c3 | |
parent | document EOPNOTSUPP error return; from kgor@ksg.com (diff) | |
download | wireguard-openbsd-ceeee15711af8438df1d3511cb2d95675a664c27.tar.xz wireguard-openbsd-ceeee15711af8438df1d3511cb2d95675a664c27.zip |
prototype ethers(3) functions (inside !_KERNEL), pointed out in
netbsd pr#2471, jhawk@mit.edu
-rw-r--r-- | lib/libc/net/ethers.c | 3 | ||||
-rw-r--r-- | sys/netinet/if_ether.h | 10 |
2 files changed, 12 insertions, 1 deletions
diff --git a/lib/libc/net/ethers.c b/lib/libc/net/ethers.c index 0f32b9b71b1..b4469ed8113 100644 --- a/lib/libc/net/ethers.c +++ b/lib/libc/net/ethers.c @@ -56,6 +56,7 @@ ether_aton(s) return NULL; } +int ether_ntohost(hostname, e) char *hostname; struct ether_addr *e; @@ -110,6 +111,7 @@ ether_ntohost(hostname, e) return -1; } +int ether_hostton(hostname, e) char *hostname; struct ether_addr *e; @@ -156,6 +158,7 @@ ether_hostton(hostname, e) return -1; } +int ether_line(l, e, hostname) char *l; struct ether_addr *e; diff --git a/sys/netinet/if_ether.h b/sys/netinet/if_ether.h index c18157c2006..a8282fb2e97 100644 --- a/sys/netinet/if_ether.h +++ b/sys/netinet/if_ether.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ether.h,v 1.3 1996/05/22 11:48:45 deraadt Exp $ */ +/* $OpenBSD: if_ether.h,v 1.4 1996/07/03 08:09:45 deraadt Exp $ */ /* $NetBSD: if_ether.h,v 1.22 1996/05/11 13:00:00 mycroft Exp $ */ /* @@ -247,4 +247,12 @@ int revarpwhoarewe __P((struct ifnet *, struct in_addr *, struct in_addr *)); int revarpwhoami __P((struct in_addr *, struct ifnet *)); int db_show_arptab __P((void)); +#else + +char *ether_ntoa __P((struct ether_addr *)); +struct ether_addr *ether_aton __P((char *)); +int ether_ntohost __P((char *, struct ether_addr *)); +int ether_hostton __P((char *, struct ether_addr *)); +int ether_line __P((char *, struct ether_addr *, char *)); + #endif |