From: "Rene Bartsch" <ML@Bartschnet.de>
To: lartc@vger.kernel.org
Subject: [LARTC] How to invert tc matches?
Date: Sun, 10 Oct 2004 21:17:09 +0000 [thread overview]
Message-ID: <2030.80.133.169.233.1097443029.squirrel@80.133.169.233> (raw)
Hi,
I want to use inverted matches with tc-filter. I tried to invert the
matches with a "!", but this doesn't seem to be the correct syntax.
The following rules don't work:
---------------------------snip-----------------------------------------
$TC filter $ACTION dev $DEV protocol ip parent 1:0 u32 match ip src
${NETWORK[$i]} !match ip dst 192.168.0.0/24 flowid 1:$(($(($i+1))*10));
------------------------------------------------------------------------
$TC filter $ACTION dev $DEV protocol ip parent 1:0 u32 match ip src
${NETWORK[$i]} match ip dst !192.168.0.0/24 flowid 1:$(($(($i+1))*10));
---------------------------snap-----------------------------------------
The rules should match all ip packets coming from networks in
192.168.0.XXX (the NETWORK[]-Array) but not match if the packets are
destinated for 192.168.0.0/24 as this is my internal network ;-)
Thanx for any hint
Rene Bartsch
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
next reply other threads:[~2004-10-10 21:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-10 21:17 Rene Bartsch [this message]
2004-10-11 9:11 ` [LARTC] How to invert tc matches? Artūras Šlajus
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=2030.80.133.169.233.1097443029.squirrel@80.133.169.233 \
--to=ml@bartschnet.de \
--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.