diff options
author | 2014-10-28 09:10:21 +0000 | |
---|---|---|
committer | 2014-10-28 09:10:21 +0000 | |
commit | 5cd62ff420789962e464ff6525c06d3864b0a8ce (patch) | |
tree | 4ded8e3fe72ffe21c6e30747185b96fbac41b05c | |
parent | deregister; no binary change (diff) | |
download | wireguard-openbsd-5cd62ff420789962e464ff6525c06d3864b0a8ce.tar.xz wireguard-openbsd-5cd62ff420789962e464ff6525c06d3864b0a8ce.zip |
Fix pipex(4) to initialize DF bit in IP header for L2TP message.
Without this, the packets larger than the minimum MTU on the routes to
the L2TP peer had been dropped.
-rw-r--r-- | sys/net/pipex.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/pipex.c b/sys/net/pipex.c index 72ce32eb0e8..cf8ef5ec3c0 100644 --- a/sys/net/pipex.c +++ b/sys/net/pipex.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pipex.c,v 1.58 2014/10/21 10:52:53 yasuoka Exp $ */ +/* $OpenBSD: pipex.c,v 1.59 2014/10/28 09:10:21 yasuoka Exp $ */ /*- * Copyright (c) 2009 Internet Initiative Japan Inc. @@ -2019,6 +2019,7 @@ pipex_l2tp_output(struct mbuf *m0, struct pipex_session *session) ip->ip_len = htons(hlen + plen); ip->ip_ttl = MAXTTL; ip->ip_tos = 0; + ip->ip_off = 0; if (ip_output(m0, NULL, NULL, 0, NULL, NULL, session->proto.l2tp.ipsecflowinfo) != 0) { |