Matching small packets using tcng

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi.

Does anyone know how to create a rule using tcng that functions like this 
iptables rule?

iptables -t mangle -A PREROUTING -p tcp --dport 22 --syn -m \
state --state NEW -m length --length 40:68 -j MARK --set-mark 22

I tried defining something like this, but it seems to incorrectly specify a 
length constraint:

class( <$ack> )
if ip_hl == 0x5 &&
(ip_len & 0xffc0) &&
(raw[33].b >> 4) & 1;

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@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux