[LARTC] One tc filter police for 2 subnets

2004-04-16 Thread Luciano Lima
I´d like to limit input traffic from 2 subnets. Ex. 128Kbps for the two subnets: 10.0.0.0/24 10.0.1.0/24 Like: tc filter add dev eth3 parent : protocol ip prio 5 u32 match ip src 10.0.0.0/24 ; 10.0.1.0/24 police rate 128kbit burst 10k drop flowid :1 Obviously this command did not work because

Re: [LARTC] Most general filter rule?

2004-04-16 Thread Kabelweb
Stupid me - I explicitly directed some traffic in the default class :( Sorry to have bothered you! Andreas ___ LARTC mailing list / [EMAIL PROTECTED] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

[LARTC] tcng and ip_len

2004-04-16 Thread Jason Boxman
I can't seem to match packets less than 512 bytes: class( <$bulk> ) if tcp_dport == 81 && !( ip_len & 0xfe00 ) ; or if tcp_dport == 81 && ip_len < 512 Both rules match any packet I send to port 81, even when the total IP length is much greater than 512 bytes: class htb 2:4 parent 2:1 leaf 5:

Re: [LARTC] When the inside functions of a sfq are called ?

2004-04-16 Thread Roy
- Original Message - From: "Adrian Saileanu" <[EMAIL PROTECTED]> To: "Roy" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, April 16, 2004 3:24 PM Subject: Re: [LARTC] When the inside functions of a sfq are called ? > > > Logicaly it would be so: > > enqueue caled by last(leaf)

Re: [LARTC] When the inside functions of a sfq are called ?

2004-04-16 Thread Adrian Saileanu
> Logicaly it would be so: > enqueue caled by last(leaf) filter > dequeue called by htb > drop should not be used in normal operation, probably called on "tc dev eth0 del root" I think .drop is not being called when the qdisc gets deleted ... Haven't you ever seen droped pachets when looking at