diff options
| author | Pyun YongHyeon <yongari@FreeBSD.org> | 2014-05-13 05:07:03 +0000 |
|---|---|---|
| committer | Pyun YongHyeon <yongari@FreeBSD.org> | 2014-05-13 05:07:03 +0000 |
| commit | c732cd1af1ac303a919809c4f18fc8a6d3969785 (patch) | |
| tree | b52fda44d568633b19f4341a28a72cb5c23d29f4 /sys/netinet | |
| parent | ee2dbd023c7dbcde38dadee1ca875b43e1033e4f (diff) | |
Notes
Diffstat (limited to 'sys/netinet')
| -rw-r--r-- | sys/netinet/ip_input.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index e460f8d32216..3a24296f9338 100644 --- a/sys/netinet/ip_input.c +++ b/sys/netinet/ip_input.c @@ -1080,8 +1080,9 @@ found: * (and not in for{} loop), though it implies we are not going to * reassemble more than 64k fragments. */ - m->m_pkthdr.csum_data = - (m->m_pkthdr.csum_data & 0xffff) + (m->m_pkthdr.csum_data >> 16); + while (m->m_pkthdr.csum_data & 0xffff0000) + m->m_pkthdr.csum_data = (m->m_pkthdr.csum_data & 0xffff) + + (m->m_pkthdr.csum_data >> 16); #ifdef MAC mac_ipq_reassemble(fp, m); mac_ipq_destroy(fp); |
