mirror of
https://github.com/opnsense/src.git
synced 2026-04-27 17:17:19 -04:00
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
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Reference in a new issue