]> rtime.felk.cvut.cz Git - sojka/can-utils.git/blobdiff - vcan.c
Added commandline option '-r' to set the per-socket receive buffer size.
[sojka/can-utils.git] / vcan.c
diff --git a/vcan.c b/vcan.c
index 90bd36d97919ef6d546a85c3a35b87d1a4828b9e..06b651aa35f00a60ac90613ce70d24d162b3c20c 100644 (file)
--- a/vcan.c
+++ b/vcan.c
 
 #include <linux/if_link.h>
 
-#if 0
-#define IFLA_LINKINFO 18
-
-enum
-{
-       IFLA_INFO_UNSPEC,
-       IFLA_INFO_NAME,
-       IFLA_INFO_DATA,
-       IFLA_INFO_XSTATS,
-       __IFLA_INFO_MAX,
-};
+#ifndef IFLA_LINKINFO
+#error Your kernel includes do not provide the needed netlink interface function.
+#error This is a normal behaviour for Kernel versions below v2.6.24 .
+#error You do not need this tool for Kernel versions below v2.6.24 anyway as
+#error the number of vcan driver instances can be defined as a vcan.ko module
+#error commandline parameter (default = 4) in older Kernels.
 #endif
 
 #define NLMSG_TAIL(nmsg)                                               \