projects
/
oweals
/
relayd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d724a61
)
reset mac addresses when relaying arp requests
author
Felix Fietkau
<nbd@openwrt.org>
Mon, 30 Aug 2010 09:19:10 +0000
(11:19 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Mon, 30 Aug 2010 09:19:10 +0000
(11:19 +0200)
main.c
patch
|
blob
|
history
diff --git
a/main.c
b/main.c
index 539913b2819019a61179bb2e61e7819ed0cfe62d..3196a1e675f87b734f278687c680b7a3a2c5ee2e 100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-345,7
+345,9
@@
static void relay_arp_request(struct relayd_interface *from_rif, struct arp_pack
continue;
memcpy(reqpkt.eth.ether_shost, rif->sll.sll_addr, ETH_ALEN);
+ memset(reqpkt.eth.ether_dhost, 0xff, ETH_ALEN);
memcpy(reqpkt.arp.arp_sha, rif->sll.sll_addr, ETH_ALEN);
+ memset(reqpkt.arp.arp_tha, 0, ETH_ALEN);
DPRINTF(2, "%s: sending ARP who-has "IP_FMT", tell "IP_FMT" ("MAC_FMT")\n",
rif->ifname, IP_BUF(reqpkt.arp.arp_tpa),