5 Nov 17:26
[PATCH 05/25] net: move ppp specific ioctl32 handlers
Arnd Bergmann <arnd <at> arndb.de>
2005-11-05 16:26:55 GMT
2005-11-05 16:26:55 GMT
This moves all ioctl32 code for ppp close to the
native ioctl implementation.
CC: linux-ppp <at> vger.kernel.org
CC: netdev <at> vger.kernel.org
Signed-off-by: Arnd Bergmann <arnd <at> arndb.de>
Index: linux-2.6.14-rc/drivers/net/ppp_generic.c
===================================================================
--- linux-2.6.14-rc.orig/drivers/net/ppp_generic.c 2005-11-05 02:41:10.000000000 +0100
+++ linux-2.6.14-rc/drivers/net/ppp_generic.c 2005-11-05 02:41:29.000000000 +0100
@@ -46,6 +46,8 @@
#include <linux/rwsem.h>
#include <linux/stddef.h>
#include <linux/device.h>
+#include <linux/compat.h>
+
#include <net/slhc_vj.h>
#include <asm/atomic.h>
@@ -837,12 +839,189 @@
return err;
}
+#ifdef CONFIG_COMPAT
+/* FIXME: These could be better integrated into the driver */
+
+struct sock_fprog32 {
+ unsigned short len;
+ compat_caddr_t filter;
(Continue reading)
RSS Feed