Re: tc filter fw flowid and masks

Phil Sutter <[email protected]>
Newsgroups org.kernel.vger.lartc
Message-ID <[email protected]>
Hi,

On Tue, Mar 28, 2017 at 04:19:48AM -0300, Salatiel Filho wrote:
> 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

f_fw.c supports handles in form of val/mask, see

| tc filter add fw help

So it should be possible to match the packets like this:

| tc filter add dev ... handle 10/0xff fw flowid 1:10

Cheers, Phil
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.