[PATCH] rtnl_mirred_set_policy: allow TC_POLICE_STOLEN

Thomas Haller thaller at redhat.com
Wed Apr 30 06:43:55 PDT 2014


On Wed, 2014-01-22 at 13:15 +0000, Alban Crequy wrote:
> TC_POLICE_STOLEN is used when setting up a redirection with:
> 
> $ tc qdisc add dev eth0 handle ffff: ingress
> $ tc filter add dev eth0 parent ffff: protocol ip u32 match u32 0 0 \
>                          action mirred egress redirect dev ifb0
> 
> The equivalent code is in iproute2/tc/m_mirred.c:parse_egress():
>                 } else if (!redir && matches(*argv, "redirect") == 0) {
>                         ...
>                         p.eaction = TCA_EGRESS_REDIR;
>                         p.action = TC_ACT_STOLEN;
> 
> In order to do the same with libnl, rtnl_mirred_set_policy() needs to allow
> TC_POLICE_STOLEN.
> 
> Signed-off-by: Alban Crequy <alban.crequy at collabora.co.uk>

Hi Alban,


sorry, I forgot about your patch, and it already got fixed in the
meantime:
https://github.com/thom311/libnl/commit/690545a20eb486d4829900378caa1dc4dd5aa0ba


Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/libnl/attachments/20140430/af580d79/attachment-0001.sig>


More information about the libnl mailing list