diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2000-07-11 21:11:09 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2000-07-11 21:11:09 +0000 |
commit | aaba2cdf720b9df4707b1cbbc5631bdf27b0f8a5 (patch) | |
tree | cdfffa59980014570eb731fd48108314fde9b487 /sys/netinet/ipsec_input.c | |
parent | 31e48e3811bb6f7372021401208240ee73bed010 (diff) |
Correctly handle ip_off; angelos@
Diffstat (limited to 'sys/netinet/ipsec_input.c')
-rw-r--r-- | sys/netinet/ipsec_input.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet/ipsec_input.c b/sys/netinet/ipsec_input.c index f0152204e6e..e031db48bd5 100644 --- a/sys/netinet/ipsec_input.c +++ b/sys/netinet/ipsec_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ipsec_input.c,v 1.29 2000/06/20 04:54:58 itojun Exp $ */ +/* $OpenBSD: ipsec_input.c,v 1.30 2000/07/11 21:11:08 millert Exp $ */ /* * The authors of this code are John Ioannidis (ji@tla.org), @@ -298,6 +298,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); HTONS(ip->ip_id); + HTONS(ip->ip_off); ip->ip_sum = 0; ip->ip_sum = in_cksum(m, ip->ip_hl << 2); prot = ip->ip_p; |