Arnd Bergmann 50857e2a59 net/tun: handle compat_ioctl directly
The tun driver is the only code in the kernel that operates
on a character device with struct ifreq. Change the driver
to handle the conversion itself so we can contain the
remaining ifreq handling in the socket layer.

This also fixes a bug in the handling of invalid ioctl
numbers on an unbound tun device. The driver treats this
as a TUNSETIFF in native mode, but there is no way for
the generic compat_ioctl() function to emulate this
behaviour. Possibly the driver was only doing this
accidentally anyway, but if any code relies on this
misfeature, it now also works in compat mode.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
2009-11-06 22:52:32 -08:00
..
2009-09-22 07:17:27 -07:00
2009-10-04 15:05:10 -07:00
2009-08-15 12:58:45 +09:00
2009-10-04 15:05:10 -07:00
2009-10-04 15:05:10 -07:00
2009-10-04 15:05:10 -07:00
2009-09-24 07:21:05 -07:00
2009-10-04 15:05:10 -07:00
2009-11-06 22:52:32 -08:00
2009-09-23 07:39:43 -07:00
2009-08-26 20:06:52 -07:00
2009-09-24 21:22:33 +01:00
2009-10-17 23:57:24 -07:00
2009-10-27 16:47:55 -04:00
2009-10-04 15:05:10 -07:00
2009-09-23 22:26:32 +09:30
2009-10-04 22:53:41 +02:00
2009-10-04 15:05:10 -07:00
2009-09-23 10:07:49 -07:00