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.)
This commit is contained in:
wpaul 1995-04-02 01:35:54 +00:00
parent 5797fb77f1
commit fdaab4eda6
2 changed files with 5 additions and 4 deletions

View File

@ -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>

View File

@ -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;
/*