From 6edfc6fe9dd8d52d976150d705c508928b32a7b9 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Tue, 22 Mar 2016 08:30:08 +0100 Subject: [PATCH] netgraph: fixup previous, definition(s) missing --- sys/netgraph/ng_base.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/netgraph/ng_base.c b/sys/netgraph/ng_base.c index a42f690daaf..95863960042 100644 --- a/sys/netgraph/ng_base.c +++ b/sys/netgraph/ng_base.c @@ -67,6 +67,7 @@ #include #include #include +#include #include #include @@ -2926,8 +2927,9 @@ ng_generic_msg(node_p here, item_p item, hook_p lasthook) struct ifnet *ifp = ifunit((char *)msg->data); if (ng_ether_attach_p) { - if (ifp && (ifp->if_type == IFT_ETHER || - && ifp->if_type == IFT_L2VLAN)) { + if (ifp && + (ifp->if_data.ifi_type == IFT_ETHER || + ifp->if_data.ifi_type == IFT_L2VLAN)) { ng_ether_attach_p(ifp); } else { error = ENOENT;