tc filter don't match packets

Linux Advanced Routing and Traffic Control

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

 



Hi,

I have problem with this simple script:

#!/bin/bash
if [ "$1" == "del" ]; then
tc qdisc del dev eth0 root handle 1: htb default 10
exit
fi
tc qdisc add dev eth0 root handle 1: htb default 10
tc class add dev eth0 parent 1: classid 1:1 htb rate 800kbit ceil 900kbit
tc class add dev eth0 parent 1:1 classid 1:10 htb rate 300kbit ceil 600kbit
tc class add dev eth0 parent 1:1 classid 1:11 htb rate 100kbit ceil 800kbit
tc qdisc add dev eth0 parent 1:11 handle 11: pfifo limit 5
tc filter add dev eth0 parent 1:11 protocol ip prio 1 u32 match ip dport 80 0xffff flowid 1:11

unfortunaly when I start that scripts tc filter don't match packets with dport 80!

Output of tc -s -d class show dev eth0 is:

class htb 1:11 parent 1:1 leaf 11: prio 0 quantum 1000 rate 10000bit ceil 100000bit burst 1605b/8 mpu 0b overhead 0b cburst 1650b/8 mpu 0b overhead 0b level 0
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 rate 0bit 0pps backlog 0b 0p requeues 0
 lended: 0 borrowed: 0 giants: 0
 tokens: 1284000 ctokens: 132000

class htb 1:1 root rate 800000bit ceil 900000bit burst 2000b/8 mpu 0b overhead 0b cburst 2Kb/8 mpu 0b overhead 0b level 7
 Sent 320 bytes 5 pkt (dropped 0, overlimits 0 requeues 0)
 rate 0bit 0pps backlog 0b 0p requeues 0
 lended: 0 borrowed: 0 giants: 0
 tokens: 19360 ctokens: 17654

class htb 1:10 parent 1:1 prio 0 quantum 3750 rate 300000bit ceil 600000bit burst 1749b/8 mpu 0b overhead 0b cburst 1899b/8 mpu 0b overhead 0b level 0
 Sent 320 bytes 5 pkt (dropped 0, overlimits 0 requeues 0)
 rate 0bit 0pps backlog 0b 0p requeues 0
 lended: 5 borrowed: 0 giants: 0
 tokens: 44960 ctokens: 24480

I use SuSE 10.1 with 2.6.16 .

Have you any sugestion?
_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

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