mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
netgraph: fixup previous, definition(s) missing
This commit is contained in:
parent
56b3d8393e
commit
6edfc6fe9d
1 changed files with 4 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue