summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarkus <markus@openbsd.org>2003-07-24 11:13:47 +0000
committermarkus <markus@openbsd.org>2003-07-24 11:13:47 +0000
commitba3fa4795fede4f9bb8facd4dbf14912c0129d3f (patch)
tree0cf52d6a4dfcb0948351f06812297de4aaff817e
parentconform to RFC2367 on SADB_xx naming (local name must be prefixed with (diff)
downloadwireguard-openbsd-ba3fa4795fede4f9bb8facd4dbf14912c0129d3f.tar.xz
wireguard-openbsd-ba3fa4795fede4f9bb8facd4dbf14912c0129d3f.zip
update ip_len to reflect tunnel header removal (lost duing ip_len
flip changes); ok itojun; noticed by jrrs@ice-nine.org
-rw-r--r--sys/netinet/ipsec_input.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet/ipsec_input.c b/sys/netinet/ipsec_input.c
index 719a88c3260..9a8545fd98a 100644
--- a/sys/netinet/ipsec_input.c
+++ b/sys/netinet/ipsec_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ipsec_input.c,v 1.67 2003/07/09 22:03:16 itojun Exp $ */
+/* $OpenBSD: ipsec_input.c,v 1.68 2003/07/24 11:13:47 markus Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
* Angelos D. Keromytis (kermit@csd.uch.gr) and
@@ -306,6 +306,7 @@ ipsec_common_input_cb(struct mbuf *m, struct tdb *tdbp, int skip, int protoff,
}
ip = mtod(m, struct ip *);
+ ip->ip_len = htons(m->m_pkthdr.len);
ip->ip_sum = 0;
ip->ip_sum = in_cksum(m, ip->ip_hl << 2);
prot = ip->ip_p;