All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marco Gaiarin <gaio@sv.lnf.it>
To: lartc@vger.kernel.org
Subject: Re: tc filter fw flowid and masks
Date: Tue, 28 Mar 2017 07:27:57 +0000	[thread overview]
Message-ID: <20170328072757.GC3765@sv.lnf.it> (raw)
In-Reply-To: <CAGmni9ontC=uz=ZbrgjG4z0KzLLy5mBQB9pnfStBNoxpyESP3w@mail.gmail.com>

Mandi! Salatiel Filho
  In chel di` si favelave...

> But how can i match it using tc filter if the mark using iptables has a mask?

You have to use u32:

	$TC filter add dev $IFACE parent 1:0 protocol ip prio $l \
		u32 match mark $l $MASK flowid 1:$LVLH

-- 
dott. Marco Gaiarin				        GNUPG Key ID: 240A3D66
  Associazione ``La Nostra Famiglia''          http://www.lanostrafamiglia.it/
  Polo FVG   -   Via della Bontà, 7 - 33078   -   San Vito al Tagliamento (PN)
  marco.gaiarin(at)lanostrafamiglia.it   t +39-0434-842711   f +39-0434-842797

		Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA!
    http://www.lanostrafamiglia.it/25/index.php/component/k2/item/123
	(cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)

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

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-28  7:19 tc filter fw flowid and masks Salatiel Filho
2017-03-28  7:27 ` Marco Gaiarin [this message]
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=20170328072757.GC3765@sv.lnf.it \
    --to=gaio@sv.lnf.it \
    --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.