protect access to ifnet structure with mutex.
This commit is contained in:
parent
3d449c8bf6
commit
328a040858
@ -1795,6 +1795,7 @@ nd6_slowtimo(ignored_arg)
|
||||
|
||||
callout_reset(&nd6_slowtimo_ch, ND6_SLOWTIMER_INTERVAL * hz,
|
||||
nd6_slowtimo, NULL);
|
||||
IFNET_RLOCK();
|
||||
for (ifp = TAILQ_FIRST(&ifnet); ifp; ifp = TAILQ_NEXT(ifp, if_list)) {
|
||||
nd6if = ND_IFINFO(ifp);
|
||||
if (nd6if->basereachable && /* already initialized */
|
||||
@ -1809,6 +1810,7 @@ nd6_slowtimo(ignored_arg)
|
||||
nd6if->reachable = ND_COMPUTE_RTIME(nd6if->basereachable);
|
||||
}
|
||||
}
|
||||
IFNET_RUNLOCK();
|
||||
splx(s);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user