From: Oliver Hartkopp Date: Sun, 23 Dec 2007 18:17:29 +0000 (+0000) Subject: Fixed the temporary hack to run with 2.6.24-rc5 again. X-Git-Tag: 0.1~195 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ec4a0bcd6d2489de2819bf27361bdd4804d67e56;p=profile%2Fivi%2Fcan-utils.git Fixed the temporary hack to run with 2.6.24-rc5 again. --- 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) {