Skip to contentSkip to conversation

Please document this

LARTC Stephen Hemminger 1 participant 1 message Jul 23, 2004

lore
Share & tools
lore
#0 lore raw
Quoted 17 lines · On Fri, 23 Jul 2004 07:06:45 -0700 gypsy <[email protected]> wrote:

Stephen,

This REALLY needs to be fixed in the code; tc should reject as a syntax error any "add filter" command that does not include a "prio" parameter. It also needs to be documented.

== From LARTC mailing list => > Dear list,

Quoted 10 lines

After much code crunching and beating my head against the wall
(literally), I discovered the faulty code. Thanks mostly to gypsy who played a huge role in helping me discover the problem. My tc filter line had an error in it which completely baffles me because it worked up until 2045 lines were entered.

Old command:
tc filter add dev $dev protocol ip parent 12: u32 ht 2:$table1: ht 3:$table2: match ip dst $ip/32 flowid 12:$classid

Quoted 8 lines
Quoted 5 lines

New command:
tc filter add dev $dev protocol ip parent 12: prio 5 u32 ht 2:$table1:
ht 3:$table2: match ip dst $ip/32 flowid 12:$classid

Who would have thought that a prio would cause that much trouble?

Thanks,
gypsy

I'll get to it but not right away. If you want something fixed sooner submit your patch.
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/