diff options
author | 2001-06-23 16:15:56 +0000 | |
---|---|---|
committer | 2001-06-23 16:15:56 +0000 | |
commit | df438d22760400a97e5097c877358a14673e7179 (patch) | |
tree | b1c3af5c38b46489d431d7cf64296b0f79109b41 /sys/netinet/ipsec_input.c | |
parent | Bring in a bunch of improvements from NetBSD. (diff) | |
download | wireguard-openbsd-df438d22760400a97e5097c877358a14673e7179.tar.xz wireguard-openbsd-df438d22760400a97e5097c877358a14673e7179.zip |
Remove unneeded ip_id convertions.
Instead of using HTONS macro in some places, use htons directly in the
struct member and save us a few bytes.
Fix comment.
Diffstat (limited to 'sys/netinet/ipsec_input.c')
-rw-r--r-- | sys/netinet/ipsec_input.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/netinet/ipsec_input.c b/sys/netinet/ipsec_input.c index 3a5d659f5f2..c570ddf0e33 100644 --- a/sys/netinet/ipsec_input.c +++ b/sys/netinet/ipsec_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ipsec_input.c,v 1.44 2001/06/19 00:48:23 deraadt Exp $ */ +/* $OpenBSD: ipsec_input.c,v 1.45 2001/06/23 16:15:56 fgsch Exp $ */ /* * The authors of this code are John Ioannidis (ji@tla.org), @@ -285,7 +285,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_id); HTONS(ip->ip_off); ip->ip_sum = 0; ip->ip_sum = in_cksum(m, ip->ip_hl << 2); |