From owner-svn-src-head@FreeBSD.ORG Thu Oct 25 09:00:57 2012 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B1708BEC; Thu, 25 Oct 2012 09:00:57 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 96D618FC12; Thu, 25 Oct 2012 09:00:57 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q9P90v54016347; Thu, 25 Oct 2012 09:00:57 GMT (envelope-from glebius@svn.freebsd.org) Received: (from glebius@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q9P90vb5016345; Thu, 25 Oct 2012 09:00:57 GMT (envelope-from glebius@svn.freebsd.org) Message-Id: <201210250900.q9P90vb5016345@svn.freebsd.org> From: Gleb Smirnoff Date: Thu, 25 Oct 2012 09:00:57 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r242076 - head/sys/netinet X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Oct 2012 09:00:57 -0000 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; }