mirror of
https://github.com/opnsense/src.git
synced 2026-02-04 03:00:53 -06:00
netinet6: work around synchronization issue in dying netgraph device #207
This commit is contained in:
parent
d27208952e
commit
5afe2ee090
@ -189,8 +189,15 @@ passin:
|
||||
in6_ifstat_inc(rcvif, ifs6_in_noroute);
|
||||
goto dropin;
|
||||
}
|
||||
/* pick up the next hop result if there is no forward request */
|
||||
if (!nifp)
|
||||
nifp = nh->nh_ifp;
|
||||
/* work around the fact that a netgraph device is dying slowly */
|
||||
if (nifp->if_afdata_initialized == 0) {
|
||||
m = NULL;
|
||||
in6_ifstat_inc(rcvif, ifs6_in_noroute);
|
||||
goto dropin;
|
||||
}
|
||||
mtu = IN6_LINKMTU(nifp);
|
||||
if (!PFIL_HOOKED_OUT(V_inet6_pfil_head)) {
|
||||
if (m->m_pkthdr.len > mtu) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user