netgraph: fixup previous, definition(s) missing

This commit is contained in:
Franco Fichtner 2016-03-22 08:30:08 +01:00
parent 56b3d8393e
commit 6edfc6fe9d

View file

@ -67,6 +67,7 @@
#include <sys/socket.h>
#include <net/if.h>
#include <net/if_var.h>
#include <net/if_types.h>
#include <net/netisr.h>
#include <net/vnet.h>
@ -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;