summaryrefslogtreecommitdiffstats
path: root/sys/netgraph
diff options
context:
space:
mode:
authorarchie <archie@FreeBSD.org>2001-08-30 19:09:10 +0000
committerarchie <archie@FreeBSD.org>2001-08-30 19:09:10 +0000
commit0c27263b4a639850fd1858db4b63b142a3b57a27 (patch)
tree46656cfc40e2d2e1a461adf308ce80e1a4772a2b /sys/netgraph
parent08e732a88ba0d12d11fa8b38d5932c6579273aca (diff)
downloadFreeBSD-src-0c27263b4a639850fd1858db4b63b142a3b57a27.zip
FreeBSD-src-0c27263b4a639850fd1858db4b63b142a3b57a27.tar.gz
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
Diffstat (limited to 'sys/netgraph')
-rw-r--r--sys/netgraph/ng_ether.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netgraph/ng_ether.c b/sys/netgraph/ng_ether.c
index 2c8735b..18faa65 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;
OpenPOWER on IntegriCloud