From 5feebeeb53fa3a038a7acabd1eeb50cb5bc17b4c Mon Sep 17 00:00:00 2001 From: Andrew Thompson Date: Fri, 9 Jun 2006 00:33:30 +0000 Subject: [PATCH] Enable proxy ARP answers on any of the bridged interfaces if proxy record belongs to another interface within the bridge group. PR: kern/94408 Submitted by: Eygene A. Ryabinkin MFC after: 1 month --- sys/netinet/if_ether.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sys/netinet/if_ether.c b/sys/netinet/if_ether.c index ad5de6ca97d..1b154df85e6 100644 --- a/sys/netinet/if_ether.c +++ b/sys/netinet/if_ether.c @@ -863,10 +863,13 @@ reply: } else { /* * Return proxied ARP replies only on the interface - * where this network resides. Otherwise we may - * conflict with the host we are proxying for. + * or bridge cluster where this network resides. + * Otherwise we may conflict with the host we are + * proxying for. */ - if (rt->rt_ifp != ifp) { + if (rt->rt_ifp != ifp && + (rt->rt_ifp->if_bridge != ifp->if_bridge || + ifp->if_bridge == NULL)) { RT_UNLOCK(rt); goto drop; }