From: Thomas Graf <tgr@reeler.org>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Problem with tc filter (tc qdisc/class works ok)
Date: Sat, 11 Oct 2003 14:09:09 +0000 [thread overview]
Message-ID: <marc-lartc-106588147108441@msgid-missing> (raw)
In-Reply-To: <marc-lartc-106573679025066@msgid-missing>
Hi
> # tc filter add dev imq0 parent 10:0 protocol ip \
> prio 1 u32 match u32 00100000 00ff0000 at 0 \
> flowid 1:10
>
> All commands except the last one work fine.
I assume you're trying to match the tos field. u32 uses strtol
to read numeric values. Values prefixed with a 0 are assumed to
be octal you have to write 0x0011... and 0x00ff.... in order
to have it interpreted in hex.
Try this:
tc filter add dev imq parent 10:0 protocol ip \
prio 1 u32 match ip tos 0x10 0xff flowid 1:10
Regards
--
Thomas GRAF <tgraf@suug.ch>
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
prev parent reply other threads:[~2003-10-11 14:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-09 21:58 [LARTC] Problem with tc filter (tc qdisc/class works ok) Praveen Mehrotra
2003-10-10 19:49 ` Stef Coene
2003-10-10 20:06 ` Praveen Mehrotra
2003-10-10 20:49 ` Stef Coene
2003-10-11 14:09 ` Thomas Graf [this message]
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=marc-lartc-106588147108441@msgid-missing \
--to=tgr@reeler.org \
--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.