OpenWrt Forum Archive

Topic: RTNETLINK answers: Invalid argument

The content of this topic has been archived on 8 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi guys,
why I get

RTNETLINK answers: Invalid argument
We have an error talking to the kernel

after * line?

DEV=eth0

tc qdisc add dev $DEV root handle 1: htb default 20
tc class add dev $DEV parent 1: classid 1:1 htb rate 120kbit

tc class add dev $DEV parent 1:1 classid 1:20 htb rate 50kbit ceil 120kbit prio 0
tc class add dev $DEV parent 1:1 classid 1:21 htb rate 5kbit ceil 5kbit prio 1

tc qdisc add dev $DEV parent 1:20 handle 20: pfifo
tc qdisc add dev $DEV parent 1:21 handle 21: pfifo

#this line *
tc filter add dev $DEV parent 1:0 prio 0 protocol ip handle 21 fw flowid 1:21

insmod cls_fw
solved the case

The discussion might have continued from here.