summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rarpd
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>1995-04-02 01:35:54 +0000
committerwpaul <wpaul@FreeBSD.org>1995-04-02 01:35:54 +0000
commit0eb0d8c0e573fd8faa9f216b0dbd6dda81e13301 (patch)
tree347bafbc7ddd93a6cb4a7028b38f7cf1e03918eb /usr.sbin/rarpd
parent3db0e33b6893dc9dc85f7e72a8e3bc83a8909bfa (diff)
downloadFreeBSD-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')
-rw-r--r--usr.sbin/rarpd/Makefile4
-rw-r--r--usr.sbin/rarpd/rarpd.c5
2 files changed, 5 insertions, 4 deletions
diff --git a/usr.sbin/rarpd/Makefile b/usr.sbin/rarpd/Makefile
index c108d62..c8fd9ce 100644
--- a/usr.sbin/rarpd/Makefile
+++ b/usr.sbin/rarpd/Makefile
@@ -1,9 +1,9 @@
# from: @(#)Makefile 5.8 (Berkeley) 7/28/90
-# $Id: Makefile,v 1.1.1.1 1995/03/02 06:41:39 wpaul Exp $
+# $Id: Makefile,v 1.2 1995/03/03 22:20:12 wpaul Exp $
PROG= rarpd
MAN8= rarpd.8
-SRCS= rarpd.c arptab.c ether_addr.c
+SRCS= rarpd.c arptab.c
CFLAGS+= -DTFTP_DIR=\"/tftpboot\"
.include <bsd.prog.mk>
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;
/*
OpenPOWER on IntegriCloud