Skip to content

Commit 97b44d5

Browse files
committed
libnetlink: linkdump_req is done for AF_BRIDGE as well
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: d97b16b ("libnetlink: linkdump_req: Only AF_UNSPEC family expects an ext_filter_mask") Reported-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: David Ahern <dsahern@gmail.com> Tested-by: Ido Schimmel <idosch@mellanox.com>
1 parent dfa2c37 commit 97b44d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/libnetlink.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ int rtnl_linkdump_req(struct rtnl_handle *rth, int family)
449449
int rtnl_linkdump_req_filter(struct rtnl_handle *rth, int family,
450450
__u32 filt_mask)
451451
{
452-
if (family == AF_UNSPEC) {
452+
if (family == AF_UNSPEC || family == AF_BRIDGE) {
453453
struct {
454454
struct nlmsghdr nlh;
455455
struct ifinfomsg ifm;

0 commit comments

Comments
 (0)