Do not forward ARP responses to the interface that they came from
authorFelix Fietkau <nbd@openwrt.org>
Wed, 11 Aug 2010 09:12:12 +0000 (11:12 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 11 Aug 2010 09:12:12 +0000 (11:12 +0200)
main.c

diff --git a/main.c b/main.c
index a29be2c1e733830c787e7680ac3faeba2e25eb4f..8689f328e0aeb8bc601818b597f737c1ef4d8292 100644 (file)
--- a/main.c
+++ b/main.c
@@ -426,6 +426,9 @@ static void recv_arp_reply(struct relayd_interface *rif, struct arp_packet *pkt)
        if (!host)
                return;
 
+       if (host->rif == rif)
+               return;
+
        send_arp_reply(host->rif, pkt->arp.arp_spa, host->lladdr, host->ipaddr);
 }