diff options
author | wpaul <wpaul@FreeBSD.org> | 1995-04-02 01:35:54 +0000 |
---|---|---|
committer | wpaul <wpaul@FreeBSD.org> | 1995-04-02 01:35:54 +0000 |
commit | 0eb0d8c0e573fd8faa9f216b0dbd6dda81e13301 (patch) | |
tree | 347bafbc7ddd93a6cb4a7028b38f7cf1e03918eb /usr.sbin/rarpd/rarpd.c | |
parent | 3db0e33b6893dc9dc85f7e72a8e3bc83a8909bfa (diff) | |
download | FreeBSD-src-0eb0d8c0e573fd8faa9f216b0dbd6dda81e13301.zip FreeBSD-src-0eb0d8c0e573fd8faa9f216b0dbd6dda81e13301.tar.gz |
Get rid of ether_addr.c: it's been moved to libc. Also add proper
declaration for ether_ntohost(). (Does anyone know what header file
is supposed to contain the declarations for the ether_addr functions?
I can't them in the SunOS includes anywhere.)
Diffstat (limited to 'usr.sbin/rarpd/rarpd.c')
-rw-r--r-- | usr.sbin/rarpd/rarpd.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/rarpd/rarpd.c b/usr.sbin/rarpd/rarpd.c index 0be3e6c..6c81f18 100644 --- a/usr.sbin/rarpd/rarpd.c +++ b/usr.sbin/rarpd/rarpd.c @@ -26,7 +26,7 @@ char copyright[] = #ifndef lint static char rcsid[] = - "@(#) $Header: /a/ncvs/src/usr.sbin/rarpd/rarpd.c,v 1.1.1.1 1995/03/02 06:41:39 wpaul Exp $ (LBL)"; + "@(#) $Header: /a/ncvs/src/usr.sbin/rarpd/rarpd.c,v 1.2 1995/03/03 22:20:13 wpaul Exp $ (LBL)"; #endif @@ -85,6 +85,7 @@ static char rcsid[] = #endif extern int errno; +extern int ether_ntohost __P((char *, struct ether_addr *)); /* * The structure for each interface. @@ -543,7 +544,7 @@ rarp_process(ii, pkt) if (bcmp((char *)cache_eaddr, (char *)&ep->ether_shost, 6) == 0) target_ipaddr = cache_ipaddr; else { - if (ether_ntohost(ename, &ep->ether_shost) != 0 || + if (ether_ntohost(ename, (struct ether_addr *)&ep->ether_shost) != 0 || (hp = gethostbyname(ename)) == 0) return; /* |