From: Jason Boxman Date: Tue, 30 Mar 2004 05:45:34 +0000 Subject: Re: [LARTC] Matching small packets using tcng Message-Id: <200403300045.34213.jasonb@edseek.com> List-Id: References: <200403242147.58420.jasonb@edseek.com> In-Reply-To: <200403242147.58420.jasonb@edseek.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org On Wednesday 24 March 2004 21:47, Jason Boxman wrote: > Hi. > > Does anyone know how to create a rule using tcng that functions like this > iptables rule? > > class( <$ack> ) > if ip_hl = 0x5 && > (ip_len & 0xffc0) && > (raw[33].b >> 4) & 1; The correct rule appears to be: if ip_hl = 0x5 && ! (ip_len & 0xffc0) && (raw[33].b >> 4) & 0xff Using '&& tcp_ACK' didn't seem to have the desired effect. > Thanks! -- Jason Boxman Perl Programmer / *NIX Systems Administrator Shimberg Center for Affordable Housing | University of Florida http://edseek.com/ - Linux and FOSS stuff _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/