Skip to contentSkip to conversation

iplink_bridge: fix incorrect root id dump

PATCH Applied Hangbin Liu 3 participants 3 messages Sep 1, 2023 – Sep 6, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iplink_bridge: fix incorrect root id dump

Fix the typo when dump root_id.

Fixes 70dfb0b8836d ("iplink: bridge: export bridge_id and designated_root")
---
 ip/iplink_bridge.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
ip/iplink_bridge.c +1 -1
index 7e4e62c81c0c..462075295308 100644
@@ -499,7 +499,7 @@ static void bridge_print_opt(struct link_util *lu, FILE *f, struct rtattr *tb[])
 	if (tb[IFLA_BR_ROOT_ID]) {
 		char root_id[32];
 
-		br_dump_bridge_id(RTA_DATA(tb[IFLA_BR_BRIDGE_ID]), root_id,
+		br_dump_bridge_id(RTA_DATA(tb[IFLA_BR_ROOT_ID]), root_id,
 				  sizeof(root_id));
 		print_string(PRINT_ANY,
 			     "root_id",
Signature · 1 line
2.41.0
Acked-by on v1 1/1
#1 lore raw
Quoted 13 lines · Hangbin Liu

Fix the typo when dump root_id.

Fixes 70dfb0b8836d ("iplink: bridge: export bridge_id and designated_root")
---
  ip/iplink_bridge.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
ip/iplink_bridge.c +0 -0
index 7e4e62c81c0c..462075295308 100644

ip/iplink_bridge.c static void bridge_print_opt(struct link_util *lu, FILE *f, struct rtattr *tb[]) · line 505

Quoted 8 lines
ip/iplink_bridge.c +1 -1
@@ -499,7 +499,7 @@ static void bridge_print_opt(struct link_util *lu, FILE *f, struct rtattr *tb[])
  	if (tb[IFLA_BR_ROOT_ID]) {
  		char root_id[32];
 
-		br_dump_bridge_id(RTA_DATA(tb[IFLA_BR_BRIDGE_ID]), root_id,
+		br_dump_bridge_id(RTA_DATA(tb[IFLA_BR_ROOT_ID]), root_id,
  				  sizeof(root_id));
  		print_string(PRINT_ANY,
  			     "root_id",
#2 lore raw
In reply to Hangbin Liu
This patch was applied to iproute2/iproute2.git (main) by Stephen Hemminger <[email protected]>:

Hello:

This patch was applied to iproute2/iproute2.git (main) by Stephen Hemminger <[email protected]>:

Quoted 7 lines · On Fri, 1 Sep 2023 16:02:26 +0800 you wrote:

Fix the typo when dump root_id.

Fixes 70dfb0b8836d ("iplink: bridge: export bridge_id and designated_root")
---
 ip/iplink_bridge.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Here is the summary with links:
- [iproute2] iplink_bridge: fix incorrect root id dump

    https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/commit/?id=3181d4e14964

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html