summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorreyk <reyk@openbsd.org>2016-09-04 11:14:44 +0000
committerreyk <reyk@openbsd.org>2016-09-04 11:14:44 +0000
commite8fed239e65f459719db2cbac837f6ba8767787c (patch)
tree14a86c2005d0992519035b1c0f57ecdcc05184ca
parentdefine the targets the parent level forwards with _SUBDIRUSE (diff)
downloadwireguard-openbsd-e8fed239e65f459719db2cbac837f6ba8767787c.tar.xz
wireguard-openbsd-e8fed239e65f459719db2cbac837f6ba8767787c.zip
Remove the IFF_LINK0 option to send the response back to the peer's
UDP src port - the VXLAN RFC clearly says that packet should be send to the configured VXLAN port (4789). OK mpi@
-rw-r--r--sys/net/if_vxlan.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/sys/net/if_vxlan.c b/sys/net/if_vxlan.c
index 4050030d9ad..d8d887453ec 100644
--- a/sys/net/if_vxlan.c
+++ b/sys/net/if_vxlan.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_vxlan.c,v 1.43 2016/09/03 13:46:57 reyk Exp $ */
+/* $OpenBSD: if_vxlan.c,v 1.44 2016/09/04 11:14:44 reyk Exp $ */
/*
* Copyright (c) 2013 Reyk Floeter <reyk@openbsd.org>
@@ -791,14 +791,6 @@ vxlan_output(struct ifnet *ifp, struct mbuf *m)
m_freem(m);
return (EINVAL);
}
-
- /*
- * If the LINK0 flag is set, send the packet back to
- * the original source port of the endport, otherwise use
- * the configured VXLAN port.
- */
- if (ifp->if_flags & IFF_LINK0)
- vu->vu_u.uh_dport = vxlan_sockaddr_port(dst);
} else
#endif
if (sc->sc_vnetid == VXLAN_VNI_ANY) {