From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adrian aferrer@dit.upm.es Date: Mon, 05 Feb 2001 12:24:26 +0000 Subject: [LARTC] Addresses in u32 filter Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org
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=20
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=3D101) 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=E1n