]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
libnetlink: linkdump_req is done for AF_BRIDGE as well
authorDavid Ahern <dsahern@gmail.com>
Mon, 7 Jan 2019 00:17:13 +0000 (16:17 -0800)
committerDavid Ahern <dsahern@gmail.com>
Mon, 7 Jan 2019 16:36:58 +0000 (08:36 -0800)
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")
Reported-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
Tested-by: Ido Schimmel <idosch@mellanox.com>
lib/libnetlink.c

index 98cb9d9471aedaf9088d26cd8e8215fd0305f871..110f47bcd65a31b8c018e3b8238fd5e0cef28528 100644 (file)
@@ -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;