]> git.proxmox.com Git - mirror_iproute2.git/blobdiff - ip/ipnetconf.c
drop support for DECnet
[mirror_iproute2.git] / ip / ipnetconf.c
index 04c4d60807b15301b896679ac90881c89f1499dd..0e946ca34b4a633fd8e90d39abfc6d0af65978f9 100644 (file)
@@ -55,8 +55,7 @@ static struct rtattr *netconf_rta(struct netconfmsg *ncm)
                                 + NLMSG_ALIGN(sizeof(struct netconfmsg)));
 }
 
-int print_netconf(const struct sockaddr_nl *who, struct rtnl_ctrl_data *ctrl,
-                 struct nlmsghdr *n, void *arg)
+int print_netconf(struct rtnl_ctrl_data *ctrl, struct nlmsghdr *n, void *arg)
 {
        FILE *fp = (FILE *)arg;
        struct netconfmsg *ncm = NLMSG_DATA(n);
@@ -154,10 +153,9 @@ int print_netconf(const struct sockaddr_nl *who, struct rtnl_ctrl_data *ctrl,
        return 0;
 }
 
-static int print_netconf2(const struct sockaddr_nl *who,
-                         struct nlmsghdr *n, void *arg)
+static int print_netconf2(struct nlmsghdr *n, void *arg)
 {
-       return print_netconf(who, NULL, n, arg);
+       return print_netconf(NULL, n, arg);
 }
 
 void ipnetconf_reset_filter(int ifindex)
@@ -210,8 +208,7 @@ static int do_show(int argc, char **argv)
        } else {
                rth.flags = RTNL_HANDLE_F_SUPPRESS_NLERR;
 dump:
-               if (rtnl_wilddump_request(&rth, filter.family,
-                                         RTM_GETNETCONF) < 0) {
+               if (rtnl_netconfdump_req(&rth, filter.family) < 0) {
                        perror("Cannot send dump request");
                        exit(1);
                }