]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
tc: add NLA_F_NESTED flag to all actions options nested block
authorPaul Blakey <paulb@mellanox.com>
Thu, 11 Jul 2019 08:14:25 +0000 (11:14 +0300)
committerDavid Ahern <dsahern@gmail.com>
Thu, 18 Jul 2019 22:38:09 +0000 (15:38 -0700)
Strict netlink validation now requires this flag on all nested
attributes, add it for action options.

Signed-off-by: Paul Blakey <paulb@mellanox.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
tc/m_action.c

index ab6bc0ad28ffdb4288f07e71b4ffafd2b8b6154c..2d36a6980e6eff24ddc04647ed70cfbcfa6561a0 100644 (file)
@@ -214,7 +214,8 @@ done0:
                        tail = addattr_nest(n, MAX_MSG, ++prio);
                        addattr_l(n, MAX_MSG, TCA_ACT_KIND, k, strlen(k) + 1);
 
-                       ret = a->parse_aopt(a, &argc, &argv, TCA_ACT_OPTIONS,
+                       ret = a->parse_aopt(a, &argc, &argv,
+                                           TCA_ACT_OPTIONS | NLA_F_NESTED,
                                            n);
 
                        if (ret < 0) {