Re: tc filter fw flowid and masks

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
To unsubscribe from this list: send the line "unsubscribe lartc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux