From: Paul Blakey Date: Thu, 11 Jul 2019 08:14:25 +0000 (+0300) Subject: tc: add NLA_F_NESTED flag to all actions options nested block X-Git-Tag: v5.4.0~37^2~22^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18aa9f5583e94abc7204b2376b819ede1180da97;p=thirdparty%2Fiproute2.git tc: add NLA_F_NESTED flag to all actions options nested block Strict netlink validation now requires this flag on all nested attributes, add it for action options. Signed-off-by: Paul Blakey Signed-off-by: David Ahern --- diff --git a/tc/m_action.c b/tc/m_action.c index ab6bc0ad2..2d36a6980 100644 --- a/tc/m_action.c +++ b/tc/m_action.c @@ -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) {