From: Felix Fietkau Date: Wed, 11 Aug 2010 09:12:12 +0000 (+0200) Subject: Do not forward ARP responses to the interface that they came from X-Git-Url: http://git.archive.openwrt.org/?p=project%2Frelayd.git;a=commitdiff_plain;h=50aa78eaed31693c76f75171ba090930dc9e40d1 Do not forward ARP responses to the interface that they came from --- diff --git a/main.c b/main.c index a29be2c..8689f32 100644 --- 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); }