From: "Brian Carrig" <CARRIGB@ITCARLOW.IE>
To: lartc@vger.kernel.org
Subject: [LARTC] Difficulties with filtering based on TOS byte
Date: Thu, 24 Jun 2004 09:24:21 +0000 [thread overview]
Message-ID: <40DAABD4.28300.4C38B@localhost> (raw)
Hi all,
I want to setup link sharing with a filter that places traffic into different queues based
on values within the TOS byte. Strangely I can't get this to work. I use the following
command for the filter:
tc filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match ip tos 0x10 0xff flowid
1:10
I then mark the packets on the user machine using the 'mangle' table in iptables. I
have captured the packets on the wire, examined them and the tos field is set
correctly. Yet it is ignored on my router and packets are sent to the default queue.
As a test I changed the filter to place packets marked with a tos byte of 0x00 to flowid
1:10 and despite the packets being marked as minimum delay (0x10) they were now
sent to the correct queue. No problems are presented when I place packets into
different queues based on a source address or a port number.
Has anyone else experiences problems like this or know what might be causing it?
Its very frustrating.
Thanks in advance.
Regards
--
Brian Carrig
Department of Computing & Networking
Institute of Technology, Carlow
Tel. No.: +353 59 9176209
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
reply other threads:[~2004-06-24 9:24 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=40DAABD4.28300.4C38B@localhost \
--to=carrigb@itcarlow.ie \
--cc=lartc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.