Skip to contentSkip to conversation

libnetlink: linkdump_req is done for AF_BRIDGE as well

PATCH In review David Ahern 2 participants 2 messages Jan 7, 2019

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

PATCH 1/1 libnetlink: linkdump_req is done for AF_BRIDGE as well

From: David Ahern <[email protected]>

The bridge command 'vlan show' calls rtnl_linkdump_req_filter for family AF_BRIDGE. Update rtnl_linkdump_req_filter to send the filter for that family as well.

Fixes d97b16b2c906 ("libnetlink: linkdump_req: Only AF_UNSPEC family expects an ext_filter_mask")
---
 lib/libnetlink.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/libnetlink.c +1 -1
index 98cb9d9471ae..110f47bcd65a 100644
@@ -449,7 +449,7 @@ int rtnl_linkdump_req(struct rtnl_handle *rth, int family)
 int rtnl_linkdump_req_filter(struct rtnl_handle *rth, int family,
 			    __u32 filt_mask)
 {
-	if (family == AF_UNSPEC) {
+	if (family == AF_UNSPEC || family == AF_BRIDGE) {
 		struct {
 			struct nlmsghdr nlh;
 			struct ifinfomsg ifm;
Signature · 1 line
2.11.0
Tested-by on v1 1/1
#1 lore raw
Quoted 9 lines · David Ahern

From: David Ahern <[email protected]>

The bridge command 'vlan show' calls rtnl_linkdump_req_filter for family AF_BRIDGE. Update rtnl_linkdump_req_filter to send the filter for that family as well.

Fixes d97b16b2c906 ("libnetlink: linkdump_req: Only AF_UNSPEC family expects an ext_filter_mask")

Thanks!