summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2018-11-12 09:39:53 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2018-11-12 09:39:53 +0000
commit46f768a8498bd9e7d44f06044fd865a5247a9534 (patch)
treec2f57c351329c47fa6bae165526a0c35c4aba03b /sys
parent8870b8042d0ec1fbfa522f4cbdbff49a8e56105d (diff)
set the hardmtu on ether encap ifs so the mtu can be raised above 1500
Diffstat (limited to 'sys')
-rw-r--r--sys/net/if_etherip.c3
-rw-r--r--sys/net/if_gre.c7
2 files changed, 6 insertions, 4 deletions
diff --git a/sys/net/if_etherip.c b/sys/net/if_etherip.c
index f53e4a00273..cb00e8dbc88 100644
--- a/sys/net/if_etherip.c
+++ b/sys/net/if_etherip.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_etherip.c,v 1.38 2018/10/29 09:51:20 dlg Exp $ */
+/* $OpenBSD: if_etherip.c,v 1.39 2018/11/12 09:39:52 dlg Exp $ */
/*
* Copyright (c) 2015 Kazuya GODA <goda@openbsd.org>
*
@@ -140,6 +140,7 @@ etherip_clone_create(struct if_clone *ifc, int unit)
sc->sc_df = htons(0);
ifp->if_softc = sc;
+ ifp->if_hardmtu = ETHER_MAX_HARDMTU_LEN;
ifp->if_ioctl = etherip_ioctl;
ifp->if_start = etherip_start;
ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST;
diff --git a/sys/net/if_gre.c b/sys/net/if_gre.c
index 28594a9449d..475d94d7b82 100644
--- a/sys/net/if_gre.c
+++ b/sys/net/if_gre.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_gre.c,v 1.134 2018/11/11 06:35:41 dlg Exp $ */
+/* $OpenBSD: if_gre.c,v 1.135 2018/11/12 09:39:52 dlg Exp $ */
/* $NetBSD: if_gre.c,v 1.9 1999/10/25 19:18:11 drochner Exp $ */
/*
@@ -683,7 +683,7 @@ egre_clone_create(struct if_clone *ifc, int unit)
ifc->ifc_name, unit);
ifp->if_softc = sc;
- ifp->if_mtu = 1500; /* XXX */
+ ifp->if_hardmtu = ETHER_MAX_HARDMTU_LEN;
ifp->if_ioctl = egre_ioctl;
ifp->if_start = egre_start;
ifp->if_xflags = IFXF_CLONED;
@@ -742,7 +742,7 @@ nvgre_clone_create(struct if_clone *ifc, int unit)
ifc->ifc_name, unit);
ifp->if_softc = sc;
- ifp->if_mtu = 1500; /* XXX */
+ ifp->if_hardmtu = ETHER_MAX_HARDMTU_LEN;
ifp->if_ioctl = nvgre_ioctl;
ifp->if_start = nvgre_start;
ifp->if_xflags = IFXF_CLONED;
@@ -809,6 +809,7 @@ eoip_clone_create(struct if_clone *ifc, int unit)
ifc->ifc_name, unit);
ifp->if_softc = sc;
+ ifp->if_hardmtu = ETHER_MAX_HARDMTU_LEN;
ifp->if_ioctl = eoip_ioctl;
ifp->if_start = eoip_start;
ifp->if_xflags = IFXF_CLONED;