From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040625 Galeon/1.3.16 Description of problem: I am trying to use wshaper.htb from wondershaper 1.1a, and found any u32 classifer tc commands don't work. They return "RTNETLINK answers: Invalid argument". The best I can tell it is caused by changes introduced by patch-2.6.8-rc1. I also get this error message, "Please upgrade your iproute2 tools or compile proper options in!". But then there isn't a newer version of iproute2. They are all years old. I have also tried downgrading iproute2 to the fc2 version. Version-Release number of selected component (if applicable): kernel-2.6.7-1.494 How reproducible: Always Steps to Reproduce: 1. ./wshaper.htb Actual Results: RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument Expected Results: No error messages Additional info: I have also seen a discussion on fedora-list about this. Someone mentioned the previous kernel version, 2.6.7-1.492
Commands from wondershaper: tc filter add dev $DEV parent 1:0 protocol ip prio 10 u32 match ip tos 0x10 0xff flowid 1:10 tc filter add dev $DEV parent 1:0 protocol ip prio 10 u32 match ip protocol 1 0xff flowid 1:10 tc filter add dev $DEV parent 1: protocol ip prio 10 u32 match ip protocol 6 0xff match u8 0x05 0x0f at 0 match u16 0x0000 0xffc0 at 2 match u8 0x10 0xff at 33 flowid 1:10
Here is where I found the latest version of iproute2, but it doesn't help with the errors above. http://developer.osdl.org/dev/iproute2/download/iproute2-2.6.8-ss040730.tar.gz
The kernel 2.6.7-1.494.2.2 RPMS built on August 3rd, 2004 as updates for FC2 send out this syslog message, too: kernel: Please upgrade your iproute2 tools or compile proper options in! It happens when I try to do things like: tc filter add dev tun0 parent 1:0 protocol ip prio 2 u32 \ match ip sport 22 0xffff flowid 1:10 If I try to add ingress filtering (tc qdisc add dev tun0 handle ffff: ingress), I get a *LOT* of these syslog messages: kernel: ing_filter: fixed tun0 out tun0
The kernel 2.6.7-1.494.2.2 RPMS built on August 3rd, 2004 as updates for FC2 send out this syslog message, too: kernel: Please upgrade your iproute2 tools or compile proper options in! It happens when I try to load cbq rules: DEVICE=eth0,100Mbit,10Mbit RATE=30Kbit WEIGHT=3Kbit PRIO=4 RULE=****my_real_ip****:25, This is not a new rule, I already use it about six month thanks
This seems to be fixed in the development kernel (kernel-2.6.7-1.509).
It isn't completely fixed, but is much better. The last command in wshaper still doesn't work. tc filter add dev $DEV parent ffff: protocol ip prio 50 u32 match ip src 0.0.0.0/0 police rate ${DOWNLINK}kbit burst 10k drop flowid :1 RTNETLINK answers: Invalid argument
See also bug 129185.
The problem with the last command in wondershaper seems to be the police modules being disabled. kernel-2.6.8-i686.config:# CONFIG_NET_CLS_POLICE is not set kernel-2.6.8-i686.config:# CONFIG_NET_ACT_POLICE is not set
Arjan, could you please enable those config options ? ingress filtering is a critical part of wshaper and people's QoS scripts (including mine ;)) will stop working if they can't use ingress filtering...
I have confirmed that enabled the POLICE options makes wondershaper work completely again.
Fixed in the latest kernels wondershaper works without error again. :)