summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rarpd/rarpd.c
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>1996-11-18 23:32:55 +0000
committerwpaul <wpaul@FreeBSD.org>1996-11-18 23:32:55 +0000
commit950b3f70b15cccf0525b1d84e812db418e0aa5eb (patch)
tree10bc6b71fc2e0d1717182cea3183b81d41d5d6f9 /usr.sbin/rarpd/rarpd.c
parent053e64c7e9235408b3cc0a20968451681ece1a8d (diff)
downloadFreeBSD-src-950b3f70b15cccf0525b1d84e812db418e0aa5eb.zip
FreeBSD-src-950b3f70b15cccf0525b1d84e812db418e0aa5eb.tar.gz
Dohw! Left out one important htonl() in update_arptab().
Pointed out by: Bill Fenner
Diffstat (limited to 'usr.sbin/rarpd/rarpd.c')
-rw-r--r--usr.sbin/rarpd/rarpd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/rarpd/rarpd.c b/usr.sbin/rarpd/rarpd.c
index f3a84f4..185cf39 100644
--- a/usr.sbin/rarpd/rarpd.c
+++ b/usr.sbin/rarpd/rarpd.c
@@ -26,7 +26,7 @@ The Regents of the University of California. All rights reserved.\n";
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: rarpd.c,v 1.22 96/06/14 20:40:14 leres Exp $ (LBL)";
+ "@(#) $Header: /home/ncvs/src/usr.sbin/rarpd/rarpd.c,v 1.8 1996/11/18 22:07:41 wpaul Exp $ (LBL)";
#endif
/*
@@ -774,7 +774,7 @@ update_arptab(ep, ipaddr)
}
ar = &sin_inarp;
- ar->sin_addr.s_addr = ipaddr;
+ ar->sin_addr.s_addr = htonl(ipaddr);
ll = &sin_dl;
bcopy(ep, LLADDR(ll), 6);
@@ -857,7 +857,7 @@ update_arptab(ep, ipaddr)
request.arp_flags = 0;
sin = (struct sockaddr_in *)&request.arp_pa;
sin->sin_family = AF_INET;
- sin->sin_addr.s_addr = ipaddr;
+ sin->sin_addr.s_addr = htonl(ipaddr);
request.arp_ha.sa_family = AF_UNSPEC;
bcopy((char *)ep, (char *)request.arp_ha.sa_data, 6);
OpenPOWER on IntegriCloud