* [PATCH net-next] rtnetlink: Add dump all for netconf
@ 2017-03-21 19:22 David Ahern
2017-03-22 19:45 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: David Ahern @ 2017-03-21 19:22 UTC (permalink / raw)
To: netdev; +Cc: David Ahern, Nicolas Dichtel
Use the rtnl_dump_all to dump all netconf handlers that have been
registered. Allows userspace to send a dump request for PF_UNSPEC
and get all families.
Cc: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
---
net/core/rtnetlink.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c
index c4e84c558240..9c3947a43eff 100644
--- a/net/core/rtnetlink.c
+++ b/net/core/rtnetlink.c
@@ -4185,6 +4185,7 @@ void __init rtnetlink_init(void)
rtnl_register(PF_UNSPEC, RTM_GETADDR, NULL, rtnl_dump_all, NULL);
rtnl_register(PF_UNSPEC, RTM_GETROUTE, NULL, rtnl_dump_all, NULL);
+ rtnl_register(PF_UNSPEC, RTM_GETNETCONF, NULL, rtnl_dump_all, NULL);
rtnl_register(PF_BRIDGE, RTM_NEWNEIGH, rtnl_fdb_add, NULL, NULL);
rtnl_register(PF_BRIDGE, RTM_DELNEIGH, rtnl_fdb_del, NULL, NULL);
--
2.1.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net-next] rtnetlink: Add dump all for netconf
2017-03-21 19:22 [PATCH net-next] rtnetlink: Add dump all for netconf David Ahern
@ 2017-03-22 19:45 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2017-03-22 19:45 UTC (permalink / raw)
To: dsa; +Cc: netdev, nicolas.dichtel
From: David Ahern <dsa@cumulusnetworks.com>
Date: Tue, 21 Mar 2017 12:22:26 -0700
> Use the rtnl_dump_all to dump all netconf handlers that have been
> registered. Allows userspace to send a dump request for PF_UNSPEC
> and get all families.
>
> Cc: Nicolas Dichtel <nicolas.dichtel@6wind.com>
> Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
Applied, thanks David.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-03-22 19:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-21 19:22 [PATCH net-next] rtnetlink: Add dump all for netconf David Ahern
2017-03-22 19:45 ` David Miller
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).