From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kiran Kumar Immidi Subject: Re: REJECT using invalid data Date: Wed, 8 Dec 2004 08:17:35 +0530 Message-ID: <200412080817.35575.immidi@spymac.com> References: <20041207010130.GC4757@netnation.com> <20041207172823.GA31513@netnation.com> <41B62B54.8060003@eurodev.net> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Cc: netfilter-devel@lists.netfilter.org Return-path: To: Pablo Neira , Simon Kirby In-Reply-To: <41B62B54.8060003@eurodev.net> Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-devel-bounces@lists.netfilter.org Errors-To: netfilter-devel-bounces@lists.netfilter.org List-Id: netfilter-devel.vger.kernel.org On Wednesday 08 December 2004 03:44, Pablo Neira wrote: >Now I see, if state tracking is not enable there's no way to avoid this >problem. But I guess that we should drop all malformed packets, not only >those which have bad checksums. Would you like to give a try to the >patch attached? Just a comment on this; +static u8 tcp_valid_flags[(TH_FIN|TH_SYN|TH_RST|TH_PUSH|TH_ACK|TH_URG) + 1] = This makes the array about 64 bytes long, would be better to store as an array of valid flags rather than as a bit mask; -- Regards, Kiran Kumar Immidi