port masks in tcng

Linux Advanced Routing and Traffic Control

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

 



hi all,

hopefully a simple question:

i would like to have a range of ports from 3200 to 3299, so i did the
standard calculation

65535 - ( 3299 - 3200 ) = 65436 = 0xff9c

what is the syntax for a hex mask in tcng?

for the moment, i have

<snip>
 
    (<$high>) if tcp_dport == 3200:7;

<snip>

which gives me a wee bit too much

thanks!

cheers

charles



_______________________________________________
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