mirror of
https://github.com/opnsense/src.git
synced 2026-04-29 18:32:49 -04:00
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.
This commit is contained in:
parent
7d38589e0d
commit
81ff470f7a
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue