summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>2000-08-03 08:24:18 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>2000-08-03 08:24:18 +0000
commitdefb4292e3d8fc28474466fb8660a17e1ef7ca9d (patch)
tree712a16a085946e360aaf809ee9053735a39c82e0 /sys
parentc570baee378151017405d857b809a22366873ae3 (diff)
In fact, this is the correct behaviour (or I'm going crazy).
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/ip_ipip.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/ip_ipip.c b/sys/netinet/ip_ipip.c
index c9a9b64bc08..7cc27b1d53c 100644
--- a/sys/netinet/ip_ipip.c
+++ b/sys/netinet/ip_ipip.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_ipip.c,v 1.4 2000/08/03 07:55:48 angelos Exp $ */
+/* $OpenBSD: ip_ipip.c,v 1.5 2000/08/03 08:24:17 angelos Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
@@ -468,8 +468,8 @@ ipip_output(struct mbuf *m, struct tdb *tdb, struct mbuf **mp, int skip,
*/
m_copydata(m, sizeof(struct ip) + offsetof(struct ip, ip_off),
sizeof(u_int16_t), (caddr_t) &ipo->ip_off);
- ipo->ip_off = ntohs(ipo->ip_off) & ~(IP_DF | IP_MF |
- IP_OFFMASK);
+ ipo->ip_off = htons(ntohs(ipo->ip_off) & ~(IP_DF | IP_MF |
+ IP_OFFMASK));
}
#ifdef INET6
else if (tp == (IPV6_VERSION >> 4))