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:
parent
67c0796ca3
commit
7f2d8767e0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=156409
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user