Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161654AbWAMDUc (ORCPT ); Thu, 12 Jan 2006 22:20:32 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1161667AbWAMDU0 (ORCPT ); Thu, 12 Jan 2006 22:20:26 -0500 Received: from 216-99-217-87.dsl.aracnet.com ([216.99.217.87]:3457 "EHLO sorel.sous-sol.org") by vger.kernel.org with ESMTP id S1161654AbWAMDTv (ORCPT ); Thu, 12 Jan 2006 22:19:51 -0500 Message-Id: <20060113032245.823423000@sorel.sous-sol.org> References: <20060113032102.154909000@sorel.sous-sol.org> Date: Thu, 12 Jan 2006 18:37:49 -0800 From: Chris Wright To: linux-kernel@vger.kernel.org, stable@kernel.org Cc: Justin Forbes , Zwane Mwaikambo , "Theodore Ts'o" , Randy Dunlap , Dave Jones , Chuck Wolber , torvalds@osdl.org, akpm@osdl.org, alan@lxorguk.ukuu.org.uk, "David S. Miller" , Bart De Schuymer Subject: [PATCH 11/17] [EBTABLES] Dont match tcp/udp source/destination port for IP fragments Content-Disposition: inline; filename=fix-bridge-netfilter-matching-ip-fragments.patch Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1055 Lines: 33 -stable review patch. If anyone has any objections, please let us know. ------------------ --- net/bridge/netfilter/ebt_ip.c | 3 +++ 1 file changed, 3 insertions(+) --- linux-2.6.15.y.orig/net/bridge/netfilter/ebt_ip.c +++ linux-2.6.15.y/net/bridge/netfilter/ebt_ip.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #include @@ -51,6 +52,8 @@ static int ebt_filter_ip(const struct sk if (!(info->bitmask & EBT_IP_DPORT) && !(info->bitmask & EBT_IP_SPORT)) return EBT_MATCH; + if (ntohs(ih->frag_off) & IP_OFFSET) + return EBT_NOMATCH; pptr = skb_header_pointer(skb, ih->ihl*4, sizeof(_ports), &_ports); if (pptr == NULL) -- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/