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:
Archie Cobbs 2001-08-30 19:09:10 +00:00
parent 356861db03
commit cf2010b81f

View File

@ -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;