From 46f768a8498bd9e7d44f06044fd865a5247a9534 Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Mon, 12 Nov 2018 09:39:53 +0000 Subject: set the hardmtu on ether encap ifs so the mtu can be raised above 1500 --- sys/net/if_etherip.c | 3 ++- sys/net/if_gre.c | 7 ++++--- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'sys') 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 * @@ -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; -- cgit v1.2.3