From 70672f4277b6e83eb1fbcad65c562449d0c19691 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 30 Aug 2010 11:19:10 +0200 Subject: [PATCH] reset mac addresses when relaying arp requests --- main.c | 2 ++ 1 file changed, 2 insertions(+) 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), -- 2.25.1