summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rarpd/Makefile
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>1996-11-18 22:07:41 +0000
committerwpaul <wpaul@FreeBSD.org>1996-11-18 22:07:41 +0000
commit9c9a0ff11486b39bf87a8a7d0854ee35f66e0be5 (patch)
tree673f7a09ddd376f2362d10304affdb2ad7ee0903 /usr.sbin/rarpd/Makefile
parent5d7e5014fa23318581ecc43e2ce8abbde6bf9f71 (diff)
downloadFreeBSD-src-9c9a0ff11486b39bf87a8a7d0854ee35f66e0be5.zip
FreeBSD-src-9c9a0ff11486b39bf87a8a7d0854ee35f66e0be5.tar.gz
Fix up new rarpd.
This includes the following changes: - Support for poking ARP entries into the local table is now built in, so the arptab.c module I hacked together is no longer needed. - rarp_process() and rarp_reply() now accept a len argument which is passed down from rarp_loop() which tells rarp_reply() exactly how long the original RARP frame was. (Usually, it's 60 bytes, which is the minimum.) Previously, the length was calculated using the sum of sizeof(struct ether_header) + sizeof(struct ether_arp) (plus the ethernet frame header, I think). The result was a total packet length of 42 bytes. Now, rarp_reply() sends out packets that are the same size as those it recieves (60 bytes). This agrees with the behavior of rarpd on SunOS (as observed with tcpdump). The unused extra bytes are zeroed.
Diffstat (limited to 'usr.sbin/rarpd/Makefile')
-rw-r--r--usr.sbin/rarpd/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/rarpd/Makefile b/usr.sbin/rarpd/Makefile
index c8fd9ce..09605f6 100644
--- a/usr.sbin/rarpd/Makefile
+++ b/usr.sbin/rarpd/Makefile
@@ -1,9 +1,10 @@
# from: @(#)Makefile 5.8 (Berkeley) 7/28/90
-# $Id: Makefile,v 1.2 1995/03/03 22:20:12 wpaul Exp $
+# $Id: Makefile,v 1.3 1995/04/02 01:35:53 wpaul Exp $
PROG= rarpd
MAN8= rarpd.8
-SRCS= rarpd.c arptab.c
+SRCS= rarpd.c
+
CFLAGS+= -DTFTP_DIR=\"/tftpboot\"
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud