summaryrefslogtreecommitdiffstats
path: root/sys/netgraph
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netgraph')
-rw-r--r--sys/netgraph/ng_eiface.c2
-rw-r--r--sys/netgraph/ng_eiface.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/sys/netgraph/ng_eiface.c b/sys/netgraph/ng_eiface.c
index 348e5f2..263ffc5 100644
--- a/sys/netgraph/ng_eiface.c
+++ b/sys/netgraph/ng_eiface.c
@@ -371,6 +371,8 @@ ng_eiface_constructor(node_p node)
ifp->if_ioctl = ng_eiface_ioctl;
ifp->if_snd.ifq_maxlen = ifqmaxlen;
ifp->if_flags = (IFF_SIMPLEX | IFF_BROADCAST | IFF_MULTICAST);
+ ifp->if_capabilities = IFCAP_VLAN_MTU | IFCAP_JUMBO_MTU;
+ ifp->if_capenable = IFCAP_VLAN_MTU | IFCAP_JUMBO_MTU;
/* Give this node the same name as the interface (if possible) */
if (ng_name_node(node, ifp->if_xname) != 0)
diff --git a/sys/netgraph/ng_eiface.h b/sys/netgraph/ng_eiface.h
index db07a55..6fc1c5b 100644
--- a/sys/netgraph/ng_eiface.h
+++ b/sys/netgraph/ng_eiface.h
@@ -46,7 +46,7 @@
/* MTU bounds */
#define NG_EIFACE_MTU_MIN 72
-#define NG_EIFACE_MTU_MAX 2312
+#define NG_EIFACE_MTU_MAX ETHER_MAX_LEN_JUMBO
#define NG_EIFACE_MTU_DEFAULT 1500
/* Netgraph commands */
OpenPOWER on IntegriCloud