28 lines
850 B
Diff
28 lines
850 B
Diff
|
|
From 143cee1d381753c3ff01d51b39d7717d5c59bd2 Mon Sep 17 00:00:00 2001
|
||
|
|
From: Thomas Haller <thom311@redhat.com>
|
||
|
|
Date: Tue, 25 Jul 2023 02:09:46 AM GMT+0800
|
||
|
|
Subject: [PATCH] fix bridge info parsing
|
||
|
|
|
||
|
|
Conflict:NA
|
||
|
|
Reference:https://github.com/thom311/libnl/commit/143cee1d381753c3ff01d51b39d7717d5c59bd2
|
||
|
|
|
||
|
|
---
|
||
|
|
lib/route/link/bridge.c | 1 +
|
||
|
|
1 file changed, 1 insertion(+)
|
||
|
|
|
||
|
|
diff --git a/lib/route/link/bridge.c b/lib/route/link/bridge.c
|
||
|
|
index bd04253..919828f 100644
|
||
|
|
--- a/lib/route/link/bridge.c
|
||
|
|
+++ b/lib/route/link/bridge.c
|
||
|
|
@@ -189,6 +189,7 @@ static int bridge_parse_af_full(struct rtnl_link *link, struct nlattr *attr_full
|
||
|
|
if (nla_type(attr) == IFLA_BRIDGE_MODE) {
|
||
|
|
bd->b_hwmode = nla_get_u16(attr);
|
||
|
|
bd->ce_mask |= BRIDGE_ATTR_HWMODE;
|
||
|
|
+ continue;
|
||
|
|
} else if (nla_type(attr) != IFLA_BRIDGE_VLAN_INFO)
|
||
|
|
continue;
|
||
|
|
|
||
|
|
--
|
||
|
|
2.23.0
|
||
|
|
|