I think it's easier to use ipchains : ipchains -A output -m 1 # Mark every packet with "1" ipchains -A output -m 2 -y -p tcp # Mark SYN with "2" The filter rules : tc filter add $DEV parent 10: protocol ip prio 3 handle 2 fw classid 10:2 # Put SYN in sub class 10:2 tc filter add $DEV parent 10: protocol ip prio 3 handle 2 fw classid 10:2 (I don't know the exact syntax for the prio-qdisc) Staf More QOS info : http://users.belgacom.net/staf/ Oded Shaham wrote: > > Hi, > I want to use the prio qdisc for prioritizing outgoing TCP SYNs over all > other outgoing traffic. > I have managed to attach a prio qdisc to the root of an Ethernet device, by: > > tc qdisc add dev eth0 root handle 1: prio > > Now I want to do 2 things: > 1. create a filter to catch TCP SYNs, and attach it to band 0 (highest > priority). > 2. direct all other traffic to higher bands (1 or 2). > > I know how to define the appropriate filter with u32; there is a similar > example in the LARTC HOWTO, for capturing ACKs. What I don't know is how to > direct the traffic captured by a filter to a specific band. In the HOWTO I > only see examples for attaching filters to CBQ classes. > > Can someone advise me on this one ? > > Best Regards, > Oded > > Oded Shaham > Flash Networks > 16 Galgalei Haplada, Herzliya, Israel > Tel: +972-9-9580666 ext. 215 > Fax: +972-9-9564888 > Cell phone: +972-5-4552009 > Email: oded@xxxxxxxxxxxxxxxxx > > _______________________________________________ > LARTC mailing list / LARTC@xxxxxxxxxxxxxxx > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/