diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2003-07-29 03:21:58 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2003-07-29 03:21:58 +0000 |
commit | 335572f24d0f6195a26463f8893737fe4d8ea115 (patch) | |
tree | 008cb2cb512f592bb37507bcdd8af6ac8b795cf2 /sys/netinet | |
parent | da64c878fdc95e5ce949780de6622c9e3df7d538 (diff) |
fixup ip_len back to wire format after reass.
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/ip_input.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index 804fa3204f3..13e93373939 100644 --- a/sys/netinet/ip_input.c +++ b/sys/netinet/ip_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_input.c,v 1.113 2003/07/09 22:03:16 itojun Exp $ */ +/* $OpenBSD: ip_input.c,v 1.114 2003/07/29 03:21:57 itojun Exp $ */ /* $NetBSD: ip_input.c,v 1.30 1996/03/16 23:53:58 christos Exp $ */ /* @@ -604,6 +604,7 @@ found: ipstat.ips_reassembled++; ip = mtod(m, struct ip *); hlen = ip->ip_hl << 2; + ip->ip_len = htons(ntohs(ip->ip_len) + hlen); } else if (fp) ip_freef(fp); |