All of lore.kernel.org
 help / color / mirror / Atom feed
From: Salatiel Filho <salatiel.filho@gmail.com>
To: lartc@vger.kernel.org
Subject: tc filter fw flowid and masks
Date: Tue, 28 Mar 2017 07:19:48 +0000	[thread overview]
Message-ID: <CAGmni9ontC=uz=ZbrgjG4z0KzLLy5mBQB9pnfStBNoxpyESP3w@mail.gmail.com> (raw)

Hi guys, when i mark a packet using, for example,
# iptables ...  -j MARK --set-mark 10
i can match it using
#tc filter add dev ... handle 10 fw flowid 1:10

But how can i match it using tc filter if the mark using iptables has a mask?
# iptables ... -j MARK --set-mark 10/0xff

The mark is needed because there are a few QOS scripts that set marks
using masks 0xff00.

When using maks i am always getting in to the default tc class.

Thanks!

[]'s
Salatiel

             reply	other threads:[~2017-03-28  7:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-28  7:19 Salatiel Filho [this message]
2017-03-28  7:27 ` tc filter fw flowid and masks Marco Gaiarin
2017-03-28  9:24 ` Andy Furniss
2017-03-28  9:33 ` Phil Sutter
2017-03-29 16:13 ` Marco Gaiarin
2017-03-29 16:58 ` Phil Sutter

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='CAGmni9ontC=uz=ZbrgjG4z0KzLLy5mBQB9pnfStBNoxpyESP3w@mail.gmail.com' \
    --to=salatiel.filho@gmail.com \
    --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.