From: Daniel Hokka Zakrisson Date: Wed, 2 Apr 2008 18:59:00 +0000 (+0000) Subject: Add all the ioctls to work on older kernels too. X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5784cbb86e2ea9b5fb04bafb08a74076313845eb;p=util-vserver.git Add all the ioctls to work on older kernels too. git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2711 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- diff --git a/src/tunctl.c b/src/tunctl.c index 14b904a..3f1c807 100644 --- a/src/tunctl.c +++ b/src/tunctl.c @@ -33,6 +33,21 @@ #include /* Make sure we have the necessary ioctls */ +#ifndef TUNSETNOCSUM +# define TUNSETNOCSUM _IOW('T', 200, int) +#endif +#ifndef TUNSETIFF +# define TUNSETIFF _IOW('T', 202, int) +#endif +#ifndef TUNSETPERSIST +# define TUNSETPERSIST _IOW('T', 203, int) +#endif +#ifndef TUNSETOWNER +# define TUNSETOWNER _IOW('T', 204, int) +#endif +#ifndef TUNSETLINK +# define TUNSETLINK _IOW('T', 205, int) +#endif #ifndef TUNSETGROUP # define TUNSETGROUP _IOW('T', 206, int) #endif