diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2000-08-03 17:31:21 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2000-08-03 17:31:21 +0000 |
commit | e3b7fecda43a80b15c168c59ab216108d4f7a0db (patch) | |
tree | 5bd11b360f595af1722d9fdd7662fb9b5c8a8817 | |
parent | 5fa8bf04256030114f5693c1e5ca1c30d6a6aa1a (diff) |
Back to the submitted patch -- this needs more investigation.
-rw-r--r-- | sys/netinet/ip_ipip.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/ip_ipip.c b/sys/netinet/ip_ipip.c index 7cc27b1d53c..537f6aef3c8 100644 --- a/sys/netinet/ip_ipip.c +++ b/sys/netinet/ip_ipip.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_ipip.c,v 1.5 2000/08/03 08:24:17 angelos Exp $ */ +/* $OpenBSD: ip_ipip.c,v 1.6 2000/08/03 17:31:20 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 = htons(ntohs(ipo->ip_off) & ~(IP_DF | IP_MF | - IP_OFFMASK)); + ipo->ip_off = htons(ipo->ip_off & ~(IP_DF | IP_MF | + IP_OFFMASK)); } #ifdef INET6 else if (tp == (IPV6_VERSION >> 4)) |