LinuxSA Mailing list archives

Index: [thread] [date] [subject] [author] [stats]
  From: Matthew Moyle-Croft <mmc@mmc.com.au>
  To  : David Lloyd <lloy0076@adam.com.au>
  Date: Tue, 08 Jul 2003 21:28:46 +0930

Re: ADSL Shaper

Sorry,
It's the last few lines (not classes - misunderstood the q)

tc filter add dev eth1 parent 1:0 protocol ip prio 5 handle 5 fw classid 1:5
tc filter add dev eth1 parent 1:0 protocol ip prio 10 handle 10 fw 
classid 1:10
tc filter add dev eth1 parent 1:0 protocol ip prio 15 handle 15 fw 
classid 1:15

You can add more of these and it'll create more levels - it's the handle 
bit which maps the mark from iptables onto the class!

MMC


David Lloyd wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> 
> Ok, 
> 
> Stupid question (warning, I'm a newbie ;-P).
> 
> I can see that the iptables script marks the packets but I can't see how
> the "tc" stuff picks the various marked packets.
> 
> I.E. How does the "tc" pick up the marks 0x05 and 0xf?
> 
> 
> DSL
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.2 (GNU/Linux)
> 
> iD8DBQE/CqK0mk7m2JX6ki4RAv6HAJ9fwufjIEcO/5dzhp8xEwelTi/DYgCdFv7v
> Idqm4sexTiukDCvb3KkcBB8=
> =tf/J
> -----END PGP SIGNATURE-----
> 


-- 
LinuxSA WWW: http://www.linuxsa.org.au/ IRC: #linuxsa on irc.freenode.net
To unsubscribe from the LinuxSA list:
  mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject


Index: [thread] [date] [subject] [author] [stats]
Return to the LinuxSA Mailing List Information Page