From: "Indunil Jayasooriya" Date: Mon, 03 Sep 2007 09:16:54 +0000 Subject: [LARTC] Can we use 2 tc filter rules with the same prio Message-Id: <7ed6b0aa0709030204y5bea56a4ub09cffcc9a0395e1@mail.gmail.com> MIME-Version: 1 Content-Type: multipart/mixed; boundary="===============1029574475==" List-Id: To: lartc@vger.kernel.org --===============1029574475== Content-Type: multipart/alternative; boundary="----=_Part_8066_29351858.1188810294886" ------=_Part_8066_29351858.1188810294886 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi ALL, I am using below script for DOWNLOADING. it is only for HTTP and HTTPS. I have given the same prio for both. (i.e prio 1). pls see my script given below. (last 2 lines of the script where I have highlighted in BOLD letters) Can I have 2 tc filter rules with the same prio? What is the proper method to write? MY SCRIPT IS BELOW #traffic shaping on eth1 (Downloading) INTERFAZ_LAN=eth1 FULLBANDWIDTH=256 BANDWIDTH4LAN=64 tc qdisc del root dev $INTERFAZ_LAN tc qdisc add dev $INTERFAZ_LAN root handle 1: htb r2q 4 tc class add dev $INTERFAZ_LAN parent 1: classid 1:2 htb rate "$FULLBANDWIDTH"Kbit tc class add dev $INTERFAZ_LAN parent 1: classid 1:5 htb rate "$BANDWIDTH4LAN"Kbit tc qdisc add dev $INTERFAZ_LAN parent 1:5 handle 5: sfq perturb 10 tc filter add dev $INTERFAZ_LAN parent 1: protocol ip prio 1 u32 match ip sport 80 0xffff match ip dst 192.168.102.0/24 classid 1:5 tc filter add dev $INTERFAZ_LAN parent 1: protocol ip prio 1 u32 match ip sport 443 0xffff match ip dst 192.168.102.0/24 classid 1:5 YOUR COMMENTS NEEDED. -- Thank you Indunil Jayasooriya ------=_Part_8066_29351858.1188810294886 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi ALL,

I am using below script for DOWNLOADING. it is only for HTTP and HTTPS.

I have given the same prio for both. (i.e prio 1).

pls see my script given below. (last 2 lines of the script where I have highlighted in BOLD letters)

Can I have 2 tc filter rules with the same prio?

What is the proper method to write?

MY SCRIPT IS BELOW

#traffic shaping on eth1 (Downloading)

INTERFAZ_LAN=eth1
FULLBANDWIDTH=256
BANDWIDTH4LAN=64


tc qdisc del root dev $INTERFAZ_LAN

tc qdisc add dev $INTERFAZ_LAN root handle 1: htb r2q 4
tc class add dev $INTERFAZ_LAN parent 1: classid 1:2 htb rate "$FULLBANDWIDTH"Kbit
tc class add dev $INTERFAZ_LAN parent 1: classid 1:5 htb rate "$BANDWIDTH4LAN"Kbit
tc qdisc add dev $INTERFAZ_LAN parent 1:5 handle 5: sfq perturb 10
tc filter add dev $INTERFAZ_LAN parent 1: protocol ip prio 1 u32 match ip sport 80 0xffff match ip dst 192.168.102.0/24 classid 1:5
tc filter add dev $INTERFAZ_LAN parent 1: protocol ip prio 1 u32 match ip sport 443 0xffff match ip dst 192.168.102.0/24 classid 1:5



YOUR COMMENTS NEEDED.

--
Thank you
Indunil Jayasooriya
------=_Part_8066_29351858.1188810294886-- --===============1029574475== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc --===============1029574475==--