]> git.proxmox.com Git - mirror_iproute2.git/blobdiff - ip/iptuntap.c
ipnetns: parse nsid as a signed integer
[mirror_iproute2.git] / ip / iptuntap.c
index 6c5a7259d15573bd7763686163afd5d50d28af22..528055a0bf46440ca3c3d7514ce715c37b18f70d 100644 (file)
@@ -386,8 +386,7 @@ static int tuntap_filter_req(struct nlmsghdr *nlh, int reqlen)
        return 0;
 }
 
-static int print_tuntap(const struct sockaddr_nl *who,
-                       struct nlmsghdr *n, void *arg)
+static int print_tuntap(struct nlmsghdr *n, void *arg)
 {
        struct ifinfomsg *ifi = NLMSG_DATA(n);
        struct rtattr *tb[IFLA_MAX+1];
@@ -440,10 +439,10 @@ static int print_tuntap(const struct sockaddr_nl *who,
                           "ifname", "%s:", name);
        print_flags(flags);
        if (owner != -1)
-               print_uint(PRINT_ANY, "user",
+               print_u64(PRINT_ANY, "user",
                           " user %ld", owner);
        if (group != -1)
-               print_uint(PRINT_ANY, "group",
+               print_u64(PRINT_ANY, "group",
                           " group %ld", group);
 
        if (show_details) {
@@ -459,7 +458,7 @@ static int print_tuntap(const struct sockaddr_nl *who,
 
 static int do_show(int argc, char **argv)
 {
-       if (rtnl_wilddump_req_filter_fn(&rth, AF_UNSPEC, RTM_GETLINK,
+       if (rtnl_linkdump_req_filter_fn(&rth, AF_UNSPEC,
                                        tuntap_filter_req) < 0) {
                perror("Cannot send dump request\n");
                return -1;