[OpenWrt-Devel] iproute2/tc does not apply or show filters

Bastian Bittorf bittorf at bluebottle.com
Tue Jun 30 06:06:06 EDT 2015


While working with 'tc' we found something strange:
Our filters apply without errors, but we cannot see
them with 'tc filter show dev $dev'.

Also when running 'tc monitor' in another terminal, we
only see 'qdisc' related things, but not filters.

It seems that it happens from r37xxx till now/trunk.

Sometimes we can see:
root at box:~ tc filter show dev $dev
filter parent 1: protocol ip pref 1 u32 
filter parent 1: protocol ip pref 1 u32 fh 800: ht divisor 1 

sometimes we see:
root at box:~ tc filter show dev $dev
filter parent 1: protocol ip pref 1 u32 
filter parent 1: protocol ip pref 1 u32 fh 800: ht divisor 1 
filter parent 1: protocol ip pref 1 u32 fh 800::800 order 2048 key ht
800 bkt 0 flowid 1:1 
  match 00110000/00ff0000 at 8
  match 000002ba/0000ffff at 20

we we add 5 or even 11 rules - where are they?
maybe they are internally used but not shown?

bye, bastian / weimarnetz.de

PS: our ruleset for easy trying out:
https://github.com/weimarnetz/weimarnetz/blob/master/openwrt-addons/etc/init.d/S90olsr-prio
or this one with more documentation:
https://github.com/bittorf/kalua/blob/master/openwrt-addons/etc/kalua/netfilter#L2072
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list