diff options
author | 2003-07-09 22:03:15 +0000 | |
---|---|---|
committer | 2003-07-09 22:03:15 +0000 | |
commit | 85f7599b374a41ec5d11acfae514c94850bbe1e3 (patch) | |
tree | 1f5b2bb57030ac7b16fa1c884fd220555bcb3944 /sys/netinet/ipsec_input.c | |
parent | open() is not ANSI; (diff) | |
download | wireguard-openbsd-85f7599b374a41ec5d11acfae514c94850bbe1e3.tar.xz wireguard-openbsd-85f7599b374a41ec5d11acfae514c94850bbe1e3.zip |
do not flip ip_len/ip_off in netinet stack. deraadt ok.
(please test, especially PF portion)
Diffstat (limited to 'sys/netinet/ipsec_input.c')
-rw-r--r-- | sys/netinet/ipsec_input.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/netinet/ipsec_input.c b/sys/netinet/ipsec_input.c index 4a8e58fc620..719a88c3260 100644 --- a/sys/netinet/ipsec_input.c +++ b/sys/netinet/ipsec_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ipsec_input.c,v 1.66 2003/07/08 11:01:20 markus Exp $ */ +/* $OpenBSD: ipsec_input.c,v 1.67 2003/07/09 22:03:16 itojun Exp $ */ /* * The authors of this code are John Ioannidis (ji@tla.org), * Angelos D. Keromytis (kermit@csd.uch.gr) and @@ -306,8 +306,6 @@ 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_off); ip->ip_sum = 0; ip->ip_sum = in_cksum(m, ip->ip_hl << 2); prot = ip->ip_p; |