Date: Thu, 25 Oct 2012 09:00:57 +0000 (UTC) From: Gleb Smirnoff <glebius@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r242076 - head/sys/netinet Message-ID: <201210250900.q9P90vb5016345@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: glebius Date: Thu Oct 25 09:00:57 2012 New Revision: 242076 URL: http://svn.freebsd.org/changeset/base/242076 Log: Fix error in r241913 that had broken fragment reassembly. Modified: head/sys/netinet/ip_input.c Modified: head/sys/netinet/ip_input.c ============================================================================== --- head/sys/netinet/ip_input.c Thu Oct 25 08:38:43 2012 (r242075) +++ head/sys/netinet/ip_input.c Thu Oct 25 09:00:57 2012 (r242076) @@ -904,7 +904,7 @@ found: * Make sure that fragments have a data length * that's a non-zero multiple of 8 bytes. */ - if (ntohs(ip->ip_len) == 0 || (ntohs(ip->ip_len & 0x7) != 0)) { + if (ip->ip_len == htons(0) || (ntohs(ip->ip_len) & 0x7) != 0) { IPSTAT_INC(ips_toosmall); /* XXX */ goto dropfrag; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210250900.q9P90vb5016345>