]> git.ipfire.org Git - thirdparty/libnl.git/commitdiff
route: set missing TCA_ATTR_XSTATS changes flags in rtnl_tc_msg_parse()
authorThomas Haller <thaller@redhat.com>
Mon, 24 Nov 2014 16:19:53 +0000 (17:19 +0100)
committerThomas Haller <thaller@redhat.com>
Mon, 24 Nov 2014 17:21:20 +0000 (18:21 +0100)
Acked-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: Thomas Haller <thaller@redhat.com>
lib/route/tc.c

index 53b69d519996be46d1dec320c49ac4706f10f93a..4c928226139c140ecc0aa22eb77cfdbbf5b6df85 100644 (file)
@@ -137,6 +137,7 @@ int rtnl_tc_msg_parse(struct nlmsghdr *n, struct rtnl_tc *tc)
                        tc->tc_xstats = nl_data_alloc_attr(tbs[TCA_STATS_APP]);
                        if (tc->tc_xstats == NULL)
                                return -NLE_NOMEM;
+                       tc->ce_mask |= TCA_ATTR_XSTATS;
                } else
                        goto compat_xstats;
        } else {