]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
rtnetlink: Add dump all for netconf
authorDavid Ahern <dsa@cumulusnetworks.com>
Tue, 21 Mar 2017 19:22:26 +0000 (12:22 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Mar 2017 19:45:17 +0000 (12:45 -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>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/rtnetlink.c

index c4e84c55824085b343679cc295a81f7b35e3acaf..9c3947a43eff8b299e66255cec0e1718d630d316 100644 (file)
@@ -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);