summaryrefslogtreecommitdiffstats
path: root/sys/net/if_vxlan.c
diff options
context:
space:
mode:
authorreyk <reyk@openbsd.org>2016-11-29 10:09:57 +0000
committerreyk <reyk@openbsd.org>2016-11-29 10:09:57 +0000
commitfc3b235ffdda6271635ba0ea8a75edaee48b859e (patch)
treea6f362aa7323d861649006e27c0c739c2550c4a3 /sys/net/if_vxlan.c
parentCorrect a bit test introduced in user.c rev 1.111 that made it impossible (diff)
downloadwireguard-openbsd-fc3b235ffdda6271635ba0ea8a75edaee48b859e.tar.xz
wireguard-openbsd-fc3b235ffdda6271635ba0ea8a75edaee48b859e.zip
For virtual Ethernet drivers that don't have a technical limit of the
hardmtu, pick a value of 65435 that leaves space for some encapsulation and almost a complete max-IP packet. After some discussion we picked this arbitrary value. OK dlg@
Diffstat (limited to 'sys/net/if_vxlan.c')
-rw-r--r--sys/net/if_vxlan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_vxlan.c b/sys/net/if_vxlan.c
index c87b17899fb..366c78b0378 100644
--- a/sys/net/if_vxlan.c
+++ b/sys/net/if_vxlan.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_vxlan.c,v 1.51 2016/10/25 16:31:08 bluhm Exp $ */
+/* $OpenBSD: if_vxlan.c,v 1.52 2016/11/29 10:09:57 reyk Exp $ */
/*
* Copyright (c) 2013 Reyk Floeter <reyk@openbsd.org>
@@ -146,7 +146,7 @@ vxlan_clone_create(struct if_clone *ifc, int unit)
ifp->if_start = vxlanstart;
IFQ_SET_MAXLEN(&ifp->if_snd, IFQ_MAXLEN);
- ifp->if_hardmtu = 0xffff;
+ ifp->if_hardmtu = ETHER_MAX_HARDMTU_LEN;
ifp->if_capabilities = IFCAP_VLAN_MTU;
ifmedia_init(&sc->sc_media, 0, vxlan_media_change,