From: Felix Fietkau Date: Mon, 30 Aug 2010 09:19:10 +0000 (+0200) Subject: reset mac addresses when relaying arp requests X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=70672f4277b6e83eb1fbcad65c562449d0c19691;p=project%2Frelayd.git reset mac addresses when relaying arp requests --- diff --git a/main.c b/main.c index 539913b..3196a1e 100644 --- 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),