1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-13 14:40:22 +00:00

Further refine the bridge hack in the arp code. Only do the special arp

handling for interfaces which are actually in the bridge group, ignore all
others.

MFC after:	3 days
This commit is contained in:
Andrew Thompson 2006-03-07 21:40:44 +00:00
parent 67c0796ca3
commit 7f2d8767e0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=156409

View File

@ -631,7 +631,7 @@ in_arpinput(m)
* XXX: This is really ugly!
*/
LIST_FOREACH(ia, INADDR_HASH(itaddr.s_addr), ia_hash) {
if (((bridged && ia->ia_ifp->if_type != IFT_BRIDGE) ||
if (((bridged && ia->ia_ifp->if_bridge != NULL) ||
(ia->ia_ifp == ifp)) &&
itaddr.s_addr == ia->ia_addr.sin_addr.s_addr)
goto match;
@ -645,7 +645,7 @@ in_arpinput(m)
#endif
}
LIST_FOREACH(ia, INADDR_HASH(isaddr.s_addr), ia_hash)
if (((bridged && ia->ia_ifp->if_type != IFT_BRIDGE) ||
if (((bridged && ia->ia_ifp->if_bridge != NULL) ||
(ia->ia_ifp == ifp)) &&
isaddr.s_addr == ia->ia_addr.sin_addr.s_addr)
goto match;