mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Skip L2 addresses lookups for p2p interfaces.
Discussed with: melifaro Sponsored by: Yandex LLC
This commit is contained in:
parent
f12128e4df
commit
af6209a133
1 changed files with 2 additions and 3 deletions
|
|
@ -2206,9 +2206,6 @@ nd6_need_cache(struct ifnet *ifp)
|
|||
case IFT_IEEE80211:
|
||||
#endif
|
||||
case IFT_INFINIBAND:
|
||||
case IFT_GIF: /* XXX need more cases? */
|
||||
case IFT_PPP:
|
||||
case IFT_TUNNEL:
|
||||
case IFT_BRIDGE:
|
||||
case IFT_PROPVIRTUAL:
|
||||
return (1);
|
||||
|
|
@ -2235,6 +2232,8 @@ nd6_add_ifa_lle(struct in6_ifaddr *ia)
|
|||
struct llentry *ln;
|
||||
|
||||
ifp = ia->ia_ifa.ifa_ifp;
|
||||
if (nd6_need_cache(ifp) == 0)
|
||||
return (0);
|
||||
IF_AFDATA_LOCK(ifp);
|
||||
ia->ia_ifa.ifa_rtrequest = nd6_rtrequest;
|
||||
ln = lla_lookup(LLTABLE6(ifp), (LLE_CREATE | LLE_IFADDR |
|
||||
|
|
|
|||
Loading…
Reference in a new issue