Dear all, I have big question in my mind about "tc filter" sintax. If I give "tc -s -d filter sh dev eth0" command, then the output is like below : 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:2 (rule hit 21553629 success 37907) match 00160000/ffff0000 at 20 (success 37907 ) ... My question is : 1. What is "fh 800:" and "fh 800::800" mean ? 2. How I change the value "800" in "fh 800::800" ? I''m guessing this is default value and I need to change that because my filter rule can be more than 0xfff line. Thanks for all, Daniel PadiNet Makassar
В сообщении от Sunday 28 October 2007 20:48:13 Daniel написал(а):> Dear all, > > I have big question in my mind about "tc filter" sintax. If I give "tc -s > -d filter sh dev eth0" command, then the output is like below : > > 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:2 (rule hit 21553629 > success 37907) > match 00160000/ffff0000 at 20 (success 37907 ) > > ... > > My question is : > 1. What is "fh 800:" and "fh 800::800" mean ? > 2. How I change the value "800" in "fh 800::800" ? I''m guessing this is > default value and I need to change that because my filter rule can be more > than 0xfff line.<skip /> There is a rather unclear howto chapter: http://lartc.org/howto/lartc.adv-filter.hashing.html But it is very correct. Try it (actually, I understood it not from the first attempt ;)) -- Peter V. Saveliev
Hi Daniel. Daniel wrote:> Dear all, > > I have big question in my mind about "tc filter" sintax. If I give "tc -s -d > filter sh dev eth0" command, then the output is like below : > > 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:2 (rule hit 21553629 > success 37907) > match 00160000/ffff0000 at 20 (success 37907 ) > > ... > > My question is : > 1. What is "fh 800:" and "fh 800::800" mean ? > 2. How I change the value "800" in "fh 800::800" ? I''m guessing this is > default value and I need to change that because my filter rule can be more > than 0xfff line.Hi, that values are for the hash-tables of u32, see: http://lartc.org/howto/lartc.adv-filter.hashing.html> > Thanks for all, > > Daniel > PadiNet MakassarBye, Andreas.
Daniel wrote:> > My question is : > 1. What is "fh 800:" and "fh 800::800" mean ? > 2. How I change the value "800" in "fh 800::800" ? I''m guessing this is > default value and I need to change that because my filter rule can be more > than 0xfff line. >Also check http://ace-host.stuart.id.au/russell/files/tc/doc/cls_u32.txt Old howto misses a few important things.