All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] How to invert tc matches?
@ 2004-10-10 21:17 Rene Bartsch
  2004-10-11  9:11 ` Artūras Šlajus
  0 siblings, 1 reply; 2+ messages in thread
From: Rene Bartsch @ 2004-10-10 21:17 UTC (permalink / raw)
  To: lartc

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/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-10-11  9:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-10 21:17 [LARTC] How to invert tc matches? Rene Bartsch
2004-10-11  9:11 ` Artūras Šlajus

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.