From: David Ahern <dsahern@kernel.org>
To: stephen@networkplumber.org
Cc: netdev@vger.kernel.org, idosch@mellanox.com,
David Ahern <dsahern@gmail.com>
Subject: [PATCH iproute2] libnetlink: linkdump_req is done for AF_BRIDGE as well
Date: Sun, 6 Jan 2019 16:23:50 -0800 [thread overview]
Message-ID: <20190107002350.24405-1-dsahern@kernel.org> (raw)
From: David Ahern <dsahern@gmail.com>
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>
---
lib/libnetlink.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/libnetlink.c b/lib/libnetlink.c
index 98cb9d9471ae..110f47bcd65a 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;
--
2.11.0
next reply other threads:[~2019-01-07 0:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-07 0:23 David Ahern [this message]
2019-01-07 7:41 ` [PATCH iproute2] libnetlink: linkdump_req is done for AF_BRIDGE as well Ido Schimmel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190107002350.24405-1-dsahern@kernel.org \
--to=dsahern@kernel.org \
--cc=dsahern@gmail.com \
--cc=idosch@mellanox.com \
--cc=netdev@vger.kernel.org \
--cc=stephen@networkplumber.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).