[PATCH 1/5] lib/route: Fix appending IFLA_BRPORT_FASTLEAVE

Jef Oliver jef.oliver at intel.com
Wed Aug 31 17:27:05 PDT 2016


This patch fixes IFLA_BRPORT_FASTLEAVE to append to the correct
netlink attribute. (Turned up in automated testing.)

Signed-off-by: Jef Oliver <jef.oliver at intel.com>
---
 lib/route/link/bridge.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/route/link/bridge.c b/lib/route/link/bridge.c
index 91e6c3c..69acf82 100644
--- a/lib/route/link/bridge.c
+++ b/lib/route/link/bridge.c
@@ -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) {
-- 
2.9.3




More information about the libnl mailing list