OpenWrt Forum Archive

Topic: tc filter add --> RTNETLINK answers: No such file or directory

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

The script:

tc qdisc add dev eth1 root handle 1:0 dsmark indices 64 default_index 3 set_tc_index
[some filters fwmark based]
tc qdisc add dev eth1 parent 1:0 handle 2:0 htb default 5
tc filter add dev eth1 parent 2:0 protocol ip prio 1 tcindex mask 0xfc shift 2 pass_on
tc filter add dev eth1 parent 2:0 protocol ip prio 1 handle 2 tcindex classid 2:5
[...]

Last line gives me this error:

RTNETLINK answers: No such file or directory
We have an error talking to the kernel

I tried to load all ipt_* sch_* and cls_* installed modules:

root@OpenWrt:/lib/modules/2.4.30# lsmod
Module                  Size  Used by    Tainted: P 
sch_teql                4800   0 (unused)
sch_tbf                 3720   0 (unused)
sch_sfq                 3912   0 (unused)
sch_red                 3216   0 (unused)
sch_prio                3224   0 (unused)
sch_ingress             1744   0 (unused)
sch_htb                22872   0 (unused)
sch_hfsc               15960   0 (unused)
sch_gred                5960   0 (unused)
sch_dsmark              4640   0 (unused)
sch_csz                 4904   0 (unused)
sch_cbq                14752   0 (unused)
cls_u32                 5736   0 (unused)
cls_tcindex             4920   0 (unused)
cls_rsvp6               5272   0 (unused)
cls_rsvp                5096   0 (unused)
cls_route               4792   0 (unused)
cls_fw                  2888   0 (unused)
ipt_unclean             6832   0 (unused)
ipt_ttl                  496   0 (unused)
ipt_tos                  304   0 (unused)
ipt_tcpmss               656   0 (unused)
ipt_recent              8192   0 (unused)
ipt_pkttype              288   0 (unused)
ipt_physdev              896   0 (unused)
ipt_owner               1280   0 (unused)
ipt_mac                  544   0 (unused)
ipt_limit                880   0 (unused)
ipt_length               336   0 (unused)
ipt_layer7             10512   0 (unused)
ipt_ipp2p               6696   0 (unused)
ipt_ecn                  656   0 (unused)
ipt_dscp                 304   0 (unused)
ipt_TTL                  944   0 (unused)
ipt_TOS                  976   0 (unused)
ipt_LOG                 3888   0 (unused)
ipt_IMQ                  672   0 (unused)
ipt_ECN                 1616   0 (unused)
ipt_DSCP                 960   0 (unused)
cifs                  183456   0 (unused)
wlcompat               14896   0 (unused)
wl                    423640   0 (unused)
et                     32064   0 (unused)
diag                    2560   0 (unused)
root@OpenWrt:/lib/modules/2.4.30#


No change. I also tried to change syntax, no way sad

I passed last two days building PHBs for a DiffServ domain and even cannot test it...
Any clue? (missing kernel option? Bug in tc?)

Regards

Wallace

I have the same thing.. did some ipkg upgrade and now it doesnt work anymore hmm

Be carefull with parents, PRIOs and, in general, syntax... tc is quite nervous...

I found a good working example in iproute2 package; so I changed my own script with a customized version of the example in the iproute2 package. Still writing, as soon as I have tested it, I'll report.

Regards

well I didnt change a thing, only upgraded packages..

Finally...

...I got my DiffServ domain smile

The problem I reported was a priority problem in filters... so stupid but...
Anyway, I'm happy.

ciao

Wallace

so what did you do to fix:

RTNETLINK answers: No such file or directory
We have an error talking to the kernel

?

Thanks

As some of you may know already, I'm currently working on scripts for QoS and firewalling, which make the configuration part easier and will get some webif integration in the future.
I've recently uploaded a new snapshot at http://openwrt.inf.fh-brs.de/~nbd/qosfw … .4_all.ipk.
Please try them and give me some feedback.

hm what's this?

checked this out little before doing an install and the syntax is totally different compared to the old.
I dont wanna ditch my iptables rules and do everything with this new syntax and not sure about
ditching my htb/cbq QoS stuff either? Care to explain a tad?

Thanks

QoS wrote:

so what did you do to fix:

RTNETLINK answers: No such file or directory
We have an error talking to the kernel

?

Thanks

I didn't fix it; just started from scratch again.
During working on it I found that that error message is given when you use improperly tc (more on filters).
For example if you write a filter with low priority after one with higher priority, you get that error message. It sounds like a "general misconfiguration error".
So, if it appears, usually is an user mistake... like ever sad
It just was my fault during configuring filters.

hehe yea ;P

I force downgraded tc and the modules with "ipkg remove" and so on.. so its working again..
dont have time to upgrade the stuff now, my uptime was ~170 days, had to move the router to
a new location so had to shut it off hmm

But will upgrade to RC4 when I get some time soon.. Looked some more into these new
scripts and they seem to use HFSC, dunno whats better that or cbq/htb, have to do some more reading.

The main issue is that ipkg should have never upgraded to this new stuff and broke my old stuff.. neutral

Thanks

QoS wrote:

hehe yea ;P

I force downgraded tc and the modules with "ipkg remove" and so on.. so its working again..
dont have time to upgrade the stuff now, my uptime was ~170 days, had to move the router to
a new location so had to shut it off hmm

But will upgrade to RC4 when I get some time soon.. Looked some more into these new
scripts and they seem to use HFSC, dunno whats better that or cbq/htb, have to do some more reading.

The main issue is that ipkg should have never upgraded to this new stuff and broke my old stuff.. neutral

Thanks

Might need to
    /sbin/insmod sch_htb.o
And possibly
    /sbin/insmod sch_sfq.o
    /sbin/insmod cls_u32.o
    /sbin/insmod sch_prio.o

The discussion might have continued from here.