From: Adrian aferrer@dit.upm.es
To: lartc@vger.kernel.org
Subject: [LARTC] Addresses in u32 filter
Date: Mon, 05 Feb 2001 12:24:26 +0000 [thread overview]
Message-ID: <marc-lartc-98373940416972@msgid-missing> (raw)
<PRE>Hi,
I've a simple question. I've created queues and classes, and when going to
add the filters I need to indicate that packets comming from some
addresses (10.0.1.0/24) must be inserted in a queue, and packets NOT
comming from that addresses (!10.0.1.0/24) must be inserted in other one.
The problem is that I don't know how to indicate the last one filter. I've
probed:
tc filter add dev eth2 parent 8000:0 protocol ip pref 25 \
u32 match ip src 10.0.1.0/24 flowid 8000:12
this is ok (for the first queue), but next:
tc filter add dev eth2 parent 8000:0 protocol ip pref 100 \
u32 match ip src !10.0.1.0/24 flowid 8000:11
shows me an error (program doesn't understand the "!10.0.1.0/24" format).
How can I indicate it?
I've thought in some alternative solutions. Por example, if I use this:
tc filter add dev eth2 parent 8000:0 protocol ip pref 101 \
u32 match ip src 10.0.1.0/24 flowid 8000:12
tc filter add dev eth2 parent 8000:0 protocol ip pref 100 \
u32 match ip src 0.0.0.0/0 flowid 8000:11
will packets be checked with the first filter (priority=101) and, if they
don't match (because they come from other than 10.0.1.0/24), then will be
admitted by the second filter?
Thanks in advance
Adrián
</PRE>
next reply other threads:[~2001-02-05 12:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-02-05 12:24 Adrian [this message]
2001-02-10 12:50 ` [LARTC] Addresses in u32 filter Adrian
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-98373940416972@msgid-missing \
--to=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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox