From: David Ahern Date: Mon, 7 Jan 2019 00:17:13 +0000 (-0800) Subject: libnetlink: linkdump_req is done for AF_BRIDGE as well X-Git-Tag: v5.0.0~36^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97b44d571df3cff9b828fab5811f1ce0b8504fde;p=thirdparty%2Fiproute2.git 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: d97b16b2c906 ("libnetlink: linkdump_req: Only AF_UNSPEC family expects an ext_filter_mask") Reported-by: Ido Schimmel Signed-off-by: David Ahern Tested-by: Ido Schimmel --- diff --git a/lib/libnetlink.c b/lib/libnetlink.c index 98cb9d947..110f47bcd 100644 --- a/lib/libnetlink.c +++ b/lib/libnetlink.c @@ -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;