All of lore.kernel.org
 help / color / mirror / Atom feed
From: David DeLauro <daved@saintjoe.edu>
To: lartc@vger.kernel.org
Subject: [LARTC] Filter/Classifier
Date: Wed, 29 Jan 2003 20:24:22 +0000	[thread overview]
Message-ID: <marc-lartc-104387193700608@msgid-missing> (raw)



How are filters parsed?  Say I have a filter for a specific IP address:

tc filter add dev eth1 protocol ip parent 1:0 prio 0 u32 match ip dst 10.0.0.2 flowid 1:40

but then I have a filter for a port

tc filter add dev eth1 protocol ip parent 1:0 prio 1 u32 match ip sport 80 0xffff flowid 1:10

Now, let's say information is sent out of the interface with dst host
10.0.0.2 and source port 80....  Where would the packet get classified to?

Right now, no matter what, all port 80 traffic goes to the 1:10 class even
if I have a filter for a particular IP.

-- 
David DeLauro

Do not handicap your children by making their lives easy. - Robert Heinlein

The surest way to corrupt a youth is to instruct him to hold in higher regard those who think alike than those who think differently. - Nietzsche

People demand freedom of speech to make up for the freedom of thought which they avoid. - Soren Kierkegaard

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

                 reply	other threads:[~2003-01-29 20:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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-104387193700608@msgid-missing \
    --to=daved@saintjoe.edu \
    --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.