From ec4a0bcd6d2489de2819bf27361bdd4804d67e56 Mon Sep 17 00:00:00 2001 From: Oliver Hartkopp Date: Sun, 23 Dec 2007 18:17:29 +0000 Subject: [PATCH] Fixed the temporary hack to run with 2.6.24-rc5 again. --- vcan.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/vcan.c b/vcan.c index 94dec45..4ba1ccc 100644 --- a/vcan.c +++ b/vcan.c @@ -26,8 +26,9 @@ #include #include -//#include +#include +#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) { -- 2.39.2