Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
* [LARTC] u32 filter
@ 2002-12-06 18:53 Kaustubh Phanse
  2003-05-06 11:10 ` Vitor Carlos Flausino
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Kaustubh Phanse @ 2002-12-06 18:53 UTC (permalink / raw)
  To: lartc

Hello!

What is the significance of "handle" in a u32 filter??

For example, if I have a HTB class 1:1 and three child classes 1:11, 1:12,
and 1:13. Within 1:11, I define dsmark, say 2:0, and let it mark packets
with certain DSCP. Now, using the u32 filter I need to classify packets of a
certain flow (e.g., based on src ip address and dest port), then can someone
give me an example of exactly how the u32 filter would look.

The following configuration does not seem to work (i.e., packets are not
getting marked!)...so I guess the problem is with my u32 filter

tc filter add dev eth0 parent 1:0 protocol ip prio 1 handle 1: \
	u32 divisor 1

tc filter add dev eth0 parent 1:1 prio 1 u32 \
	match ip src 192.168.1.12
	match ip protocol 17 0xff
	match ip dport 4984 0xffff
	flowid 2:0

Any help in this matter is greatly appreciated.
Thank you
regards
Kaustubh

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2003-05-23 13:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-06 18:53 [LARTC] u32 filter Kaustubh Phanse
2003-05-06 11:10 ` Vitor Carlos Flausino
2003-05-06 12:07 ` Michael Yuan
2003-05-06 17:27 ` Stef Coene
2003-05-23  9:57 ` Esteban
2003-05-23 13:14 ` Harkisoon Sharan (CCI-Gainesville)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox