diff options
author | Volodymyr Bendiuga <volodymyr.bendiuga@westermo.com> | 2022-05-19 10:00:16 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2022-05-19 10:06:02 +0200 |
commit | e5dc111f8c9c646b1fca3f3aabaa00165952b89c (patch) | |
tree | 2a8939a1639541bc50e2fbf0b921d76d5f7ba678 | |
parent | df6058cfa60f45b44b73ed77ef09a621c41a9375 (diff) | |
download | libnl-e5dc111f8c9c646b1fca3f3aabaa00165952b89c.tar.gz |
flower: use correct attribute when filling out flags
Signed-off-by: Volodymyr Bendiuga <volodymyr.bendiuga@westermo.com>
Fixes: ef46de143206 ('route/cls: add flower classifier')
https://github.com/thom311/libnl/pull/316
-rw-r--r-- | lib/route/cls/flower.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/route/cls/flower.c b/lib/route/cls/flower.c index 2780ba2e..6b1e41b0 100644 --- a/lib/route/cls/flower.c +++ b/lib/route/cls/flower.c @@ -133,7 +133,7 @@ static int flower_msg_fill(struct rtnl_tc *tc, void *data, struct nl_msg *msg) return 0; if (f->cf_mask & FLOWER_ATTR_FLAGS) - NLA_PUT_U32(msg, TCA_FLOWER_FLAGS, f->cf_mask); + NLA_PUT_U32(msg, TCA_FLOWER_FLAGS, f->cf_flags); if (f->cf_mask & FLOWER_ATTR_ACTION) { err = rtnl_act_fill(msg, TCA_FLOWER_ACT, f->cf_act); |