From: Jason Boxman Date: Sun, 18 Apr 2004 20:35:06 +0000 Subject: Re: [LARTC] tcng and ip_len Message-Id: <200404181635.06492.jasonb@edseek.com> List-Id: References: <200404161707.14962.jasonb@edseek.com> In-Reply-To: <200404161707.14962.jasonb@edseek.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org On Friday 16 April 2004 17:07, Jason Boxman wrote: > I can't seem to match packets less than 512 bytes: > > class( <$bulk> ) > if tcp_dport = 81 && !( ip_len & 0xfe00 ) > ; > or > if tcp_dport = 81 && ip_len < 512 Reversing the rule such that it is: if ip_len < 512 && tcp_dport = 81 works as expected. I have no idea why. I'd guess the IP header matches need to come first, but I have a rule that matches tcp_sport first and it has worked fine. if tcp_sport = 22 && ip_tos_delay = 1 -- 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/