TCNG compilation/translation bug/question

Linux Advanced Routing and Traffic Control

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

 



Hi all,

The following ingress statement:
....
$host2 = SLB(cbs 1024kb, cir 2048kbps);
class(<>) if ip_dst == 81.175.84.2 && SLB_else_drop($host2);
....

is compiled by TCNG into the folling tc command:
...
tc filter add dev eth0 parent ffff:0 protocol  all prio 1 u32 match u32 0x51af5402 0xffffffff at 16 classid ffff:0 police index 505 rate 256000bps burst 131072 mpu 0 action drop/pass
...

(BTW: the ip address may be wrong due not being able to translate dotted decimal to hexedecimal, but the rest is correct)

I do not understand the relation between the SLB with "cbs 1024, cir 2048, default mpu" and the tc command with "rate 256000bps burst 131072 mpu 0":
I expected that the SLB specs would be translated into something like "rate 2048*8bps burst 1024*8 mpu0".

Is this a bug or do I just understand the it? If the latter, can anyone explain the translation to me?

TIA

Groeten,

Joost Kraaijeveld
Askesis B.V.
Molukkenstraat 14
6524NB Nijmegen
tel: 024-3888063 / 06-51855277
fax: 024-3608416
e-mail: J.Kraaijeveld@xxxxxxxxxx
web: www.askesis.nl 
_______________________________________________
LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
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