]> granicus.if.org Git - libnl/commitdiff
lib/route: Fix appending IFLA_BRPORT_FASTLEAVE
authorJef Oliver <jef.oliver@intel.com>
Thu, 1 Sep 2016 00:27:05 +0000 (17:27 -0700)
committerThomas Haller <thaller@redhat.com>
Sat, 24 Sep 2016 11:50:18 +0000 (13:50 +0200)
This patch fixes IFLA_BRPORT_FASTLEAVE to append to the correct
netlink attribute. (Turned up in automated testing.)

Fixes: 55bc931a7272e6ac8f555bcc2a373eb2b6b58377
Signed-off-by: Jef Oliver <jef.oliver@intel.com>
Signed-off-by: Thomas Haller <thaller@redhat.com>
lib/route/link/bridge.c

index 91e6c3cc3ed465b4b2f6dae98399b99f1f015081..69acf82deaac5103368f146e95e54a928d8ffc3f 100644 (file)
@@ -239,7 +239,7 @@ static int bridge_fill_pi(struct rtnl_link *link, struct nl_msg *msg,
                                                bd->b_flags & RTNL_BRIDGE_HAIRPIN_MODE);
                }
                if (bd->b_flags_mask & RTNL_BRIDGE_FAST_LEAVE) {
-                       NLA_PUT_U8(msg, IFLA_BRPORT_MODE,
+                       NLA_PUT_U8(msg, IFLA_BRPORT_FAST_LEAVE,
                                                bd->b_flags & RTNL_BRIDGE_FAST_LEAVE);
                }
                if (bd->b_flags_mask & RTNL_BRIDGE_ROOT_BLOCK) {