From owner-svn-src-head@freebsd.org Fri Sep 11 16:52:14 2015 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7AD6CA016B7; Fri, 11 Sep 2015 16:52:14 +0000 (UTC) (envelope-from cy@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6C4441F49; Fri, 11 Sep 2015 16:52:14 +0000 (UTC) (envelope-from cy@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.70]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id t8BGqEgf038608; Fri, 11 Sep 2015 16:52:14 GMT (envelope-from cy@FreeBSD.org) Received: (from cy@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id t8BGqEOJ038607; Fri, 11 Sep 2015 16:52:14 GMT (envelope-from cy@FreeBSD.org) Message-Id: <201509111652.t8BGqEOJ038607@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: cy set sender to cy@FreeBSD.org using -f From: Cy Schubert Date: Fri, 11 Sep 2015 16:52:14 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r287675 - head/sys/contrib/ipfilter/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.20 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: Fri, 11 Sep 2015 16:52:14 -0000 Author: cy Date: Fri Sep 11 16:52:13 2015 New Revision: 287675 URL: https://svnweb.freebsd.org/changeset/base/287675 Log: Revert ip_fil_freebsd.c -r287674. This should not have gone in yet. Modified: head/sys/contrib/ipfilter/netinet/ip_fil_freebsd.c Modified: head/sys/contrib/ipfilter/netinet/ip_fil_freebsd.c ============================================================================== --- head/sys/contrib/ipfilter/netinet/ip_fil_freebsd.c Fri Sep 11 16:49:52 2015 (r287674) +++ head/sys/contrib/ipfilter/netinet/ip_fil_freebsd.c Fri Sep 11 16:52:13 2015 (r287675) @@ -1104,18 +1104,6 @@ ipf_checkv4sum(fin) return -1; } if (m->m_pkthdr.csum_flags & CSUM_DATA_VALID) { - /* UDP may have zero checksum */ - if (fin->fin_p == IPPROTO_UDP && (fin->fin_flx & (FI_FRAG|FI_SHORT|FI_BAD)) == 0) { - udphdr_t *udp = fin->fin_dp; - if (udp->uh_sum == 0) { - /* we're good no matter what the hardware checksum flags - and csum_data say (handling of csum_data for zero UDP - checksum is not consistent across all drivers) */ - fin->fin_cksum = 1; - return 0; - } - } - if (m->m_pkthdr.csum_flags & CSUM_PSEUDO_HDR) sum = m->m_pkthdr.csum_data; else