Fix kernel crash when VLANs are combined with ng_ether(4), by attaching
interfaces of type IFT_L2VLAN as well as IFT_ETHER during module load. Submitted by: yar
This commit is contained in:
parent
356861db03
commit
cf2010b81f
@ -798,7 +798,8 @@ ng_ether_mod_event(module_t mod, int event, void *data)
|
||||
|
||||
/* Create nodes for any already-existing Ethernet interfaces */
|
||||
TAILQ_FOREACH(ifp, &ifnet, if_link) {
|
||||
if (ifp->if_type == IFT_ETHER)
|
||||
if (ifp->if_type == IFT_ETHER
|
||||
|| ifp->if_type == IFT_L2VLAN)
|
||||
ng_ether_attach(ifp);
|
||||
}
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user