]> rtime.felk.cvut.cz Git - sojka/can-utils.git/commitdiff
Fixed the temporary hack to run with 2.6.24-rc5 again.
authorOliver Hartkopp <socketcan@hartkopp.net>
Sun, 23 Dec 2007 18:17:29 +0000 (18:17 +0000)
committerOliver Hartkopp <socketcan@hartkopp.net>
Sun, 23 Dec 2007 18:17:29 +0000 (18:17 +0000)
vcan.c

diff --git a/vcan.c b/vcan.c
index 94dec45c0da9fafcbfc714eb86a4883f2266a219..4ba1ccc92fc856bc5f36164d119df35eb0e35d1b 100644 (file)
--- a/vcan.c
+++ b/vcan.c
@@ -26,8 +26,9 @@
 #include <linux/netlink.h>
 #include <linux/rtnetlink.h>
 
-//#include <linux/if_link.h>
+#include <linux/if_link.h>
 
+#if 0
 #define IFLA_LINKINFO 18
 
 enum
@@ -38,6 +39,7 @@ enum
     IFLA_INFO_XSTATS,
     __IFLA_INFO_MAX,
 };
+#endif
 
 #define NLMSG_TAIL(nmsg) \
         ((struct rtattr *)(((void *) (nmsg)) + NLMSG_ALIGN((nmsg)->nlmsg_len)))
@@ -88,7 +90,7 @@ int main(int argc, char **argv)
 
        linkinfo = NLMSG_TAIL(&req.n);
        addattr_l(&req.n, sizeof(req), IFLA_LINKINFO, NULL, 0);
-       addattr_l(&req.n, sizeof(req), IFLA_INFO_NAME, "vcan", strlen("vcan"));
+       addattr_l(&req.n, sizeof(req), IFLA_INFO_KIND, "vcan", strlen("vcan"));
        linkinfo->rta_len = (void*)NLMSG_TAIL(&req.n) - (void*)linkinfo;
 
     } else if (strcmp(cmd, "delete") == 0) {