From cf2010b81fb8a7fc6ce0a9214c3cd6df238f142f Mon Sep 17 00:00:00 2001 From: Archie Cobbs Date: Thu, 30 Aug 2001 19:09:10 +0000 Subject: [PATCH] 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 --- sys/netgraph/ng_ether.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/netgraph/ng_ether.c b/sys/netgraph/ng_ether.c index 2c8735baa876..18faa65eb98d 100644 --- a/sys/netgraph/ng_ether.c +++ b/sys/netgraph/ng_ether.c @@ -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;