summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rarpd
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>1996-08-24 23:05:08 +0000
committerwpaul <wpaul@FreeBSD.org>1996-08-24 23:05:08 +0000
commit48ad282fbc6752eabf6a978810941a3ae1800adc (patch)
treea585cbf7bcfba7e850f315185dadc8793b2e0473 /usr.sbin/rarpd
parent00ffd0b173dd0a76c850c24a556a528a8ba24ed7 (diff)
downloadFreeBSD-src-48ad282fbc6752eabf6a978810941a3ae1800adc.zip
FreeBSD-src-48ad282fbc6752eabf6a978810941a3ae1800adc.tar.gz
It appears that with FreeBSD-current, we need to set the ethernet
frame type in network byte order. The htons() that wasn't needed in 2.1 is now required in 2.2. Ultimately, this rarpd should be replaced with the more recent one supplied with the new BPF distribution.
Diffstat (limited to 'usr.sbin/rarpd')
-rw-r--r--usr.sbin/rarpd/rarpd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/rarpd/rarpd.c b/usr.sbin/rarpd/rarpd.c
index ea649db..8fb06f4 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: /home/ncvs/src/usr.sbin/rarpd/rarpd.c,v 1.4 1995/05/30 03:51:25 rgrimes Exp $ (LBL)";
+ "@(#) $Header: /home/ncvs/src/usr.sbin/rarpd/rarpd.c,v 1.5 1995/07/18 21:35:32 wpaul Exp $ (LBL)";
#endif
@@ -710,7 +710,7 @@ rarp_reply(ii, ep, ipaddr)
* (Thank god for tcpdump or I would never have figured this
* out.)
*/
- ep->ether_type = ETHERTYPE_REVARP;
+ ep->ether_type = htons(ETHERTYPE_REVARP);
bcopy((char *)&ap->arp_sha, (char *)&ep->ether_dhost, 6);
bcopy((char *)ii->ii_eaddr, (char *)&ep->ether_shost, 6);
OpenPOWER on IntegriCloud