Examples from HTB home page...

Linux Advanced Routing and Traffic Control

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

 




... do not work anymore. Anybody with a hint? I've got a fully 
functional HTB setup and just wanted to replace the kernel from 2.4.17 
to 2.4.19. In the end the modified tc binary doesn't recognize "tc 
filter add" (yet it does accept qdisc show and recognizes htb...)

    I've downloaded the 2.4.19 from kernel.org, iproute2 (2.4.7), 
 installed the patches (to kern and iproute) and ended with a  kernel / 
tc combo that at the following example (taken from from HTB page):

tc qdisc add dev eth0 root handle 1:0 htb default 12
tc class add dev eth0 parent 1:0 classid 1:1 htb rate 100kbps ceil 100kbps
tc class add dev eth0 parent 1:1 classid 1:10 htb rate 30kbps ceil 100kbps
tc class add dev eth0 parent 1:1 classid 1:11 htb rate 10kbps ceil 100kbps
tc class add dev eth0 parent 1:1 classid 1:12 htb rate 60kbps ceil 100kbps

tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip src 
1.2.3.4 match ip dport 80 0xffff flowid 1:10  
tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip src 
1.2.3.4 flowid 1:11

... chokes at the "tc filter add " with:

RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument

As far as I can tell this *should* work, it did 6 months ago on a 2.4.17.

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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