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 a29be2c..8689f32 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);
 }