[LARTC] TC and Hashing HEX

Linux Advanced Routing and Traffic Control

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

 



Hi

I'm doing some hashing filtering with this script.

tc qdisc add dev eth0 root handle 1: cbq avpkt 1000 bandwidth 100mbit
tc class add dev eth0 parent 1: classid 1:2 cbq rate 2000kbit allot 1500
prio 5 bounded
tc filter add dev eth0 parent 1:2 handle 2: protocol ip u32 divisor 254
tc filter add dev eth0 protocol ip parent 1: u32 match ip src 10.0.1.0/24
hashkey mask 0x000000ff at 12 link 2:

tc class add dev eth0 parent 1:2 classid 1:11 cbq rate 160kbit allot 1500
prio 5 bounded isolated
tc filter add dev eth0 protocol ip parent 1:2 u32 ht 2:2: match ip src
10.0.1.2 flowid 1:11

to

tc class add dev eth0 parent 1:2 classid 1:263 cbq rate 160kbit allot 1500
prio 5 bounded isolated
tc filter add dev eth0 protocol ip parent 1:2 u32 ht 2:fe: match ip src
10.0.1.254 flowid 1:263

But when i initialize the last line, i get an error.

I think it's the last hex code FE, that tc wont accept, for the last "match
ip" 254. I want to match on the last ip too, what's wrong?

Thanks

Regards
Matias Bjørling



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