]> git.proxmox.com Git - mirror_iproute2.git/blobdiff - tc/tc_monitor.c
Tree wide: Drop sockaddr_nl arg
[mirror_iproute2.git] / tc / tc_monitor.c
index 1f1ee08fb9cf89844f92cba2f5594c5ae058a8b4..f8816cc53a46a077d7bd9f6f6f5e6269af3edb89 100644 (file)
@@ -34,8 +34,7 @@ static void usage(void)
 }
 
 
-static int accept_tcmsg(const struct sockaddr_nl *who,
-                       struct rtnl_ctrl_data *ctrl,
+static int accept_tcmsg(struct rtnl_ctrl_data *ctrl,
                        struct nlmsghdr *n, void *arg)
 {
        FILE *fp = (FILE *)arg;
@@ -47,20 +46,20 @@ static int accept_tcmsg(const struct sockaddr_nl *who,
            n->nlmsg_type == RTM_DELTFILTER ||
            n->nlmsg_type == RTM_NEWCHAIN ||
            n->nlmsg_type == RTM_DELCHAIN) {
-               print_filter(who, n, arg);
+               print_filter(n, arg);
                return 0;
        }
        if (n->nlmsg_type == RTM_NEWTCLASS || n->nlmsg_type == RTM_DELTCLASS) {
-               print_class(who, n, arg);
+               print_class(n, arg);
                return 0;
        }
        if (n->nlmsg_type == RTM_NEWQDISC || n->nlmsg_type == RTM_DELQDISC) {
-               print_qdisc(who, n, arg);
+               print_qdisc(n, arg);
                return 0;
        }
        if (n->nlmsg_type == RTM_GETACTION || n->nlmsg_type == RTM_NEWACTION ||
            n->nlmsg_type == RTM_DELACTION) {
-               print_action(who, n, arg);
+               print_action(n, arg);
                return 0;
        }
        if (n->nlmsg_type != NLMSG_ERROR && n->nlmsg_type != NLMSG_NOOP &&