[PATCH net-next] rtnetlink: Add dump all for netconf

Subsystems: networking [general], the rest

STALE3421d

2 messages, 2 authors, 2017-03-22 · open the first message on its own page

[PATCH net-next] rtnetlink: Add dump all for netconf

From: David Ahern <hidden>
Date: 2017-03-21 19:28:52

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 <redacted>
Signed-off-by: David Ahern <redacted>
---
 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

Re: [PATCH net-next] rtnetlink: Add dump all for netconf

From: David Miller <davem@davemloft.net>
Date: 2017-03-22 19:45:44

From: David Ahern <redacted>
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 <redacted>
Signed-off-by: David Ahern <redacted>
Applied, thanks David.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help