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]

 



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

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.

Maybe you need to put 0x everywhere you can.

Like Marco I would have said use u32 mark match, but I
have seen router setups that seem to use fw with masks.

untested but maybe something like -

iptables ... -j MARK --set-mark 0x10/0xff

tc filter add dev ... handle 0x10/0xff fw flowid 1:10
--
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