|
@@ -22,6 +22,7 @@
|
|
|
#include <linux/string.h>
|
|
#include <linux/string.h>
|
|
|
#include <linux/module.h>
|
|
#include <linux/module.h>
|
|
|
#include <linux/kernel.h>
|
|
#include <linux/kernel.h>
|
|
|
|
|
+#include <linux/compat.h>
|
|
|
#include <linux/errno.h>
|
|
#include <linux/errno.h>
|
|
|
#include <linux/netdevice.h>
|
|
#include <linux/netdevice.h>
|
|
|
#include <linux/net.h>
|
|
#include <linux/net.h>
|
|
@@ -103,6 +104,18 @@ int pppox_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
|
|
|
|
|
|
|
|
EXPORT_SYMBOL(pppox_ioctl);
|
|
EXPORT_SYMBOL(pppox_ioctl);
|
|
|
|
|
|
|
|
|
|
+#ifdef CONFIG_COMPAT
|
|
|
|
|
+int pppox_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
|
|
|
|
|
+{
|
|
|
|
|
+ if (cmd == PPPOEIOCSFWD32)
|
|
|
|
|
+ cmd = PPPOEIOCSFWD;
|
|
|
|
|
+
|
|
|
|
|
+ return pppox_ioctl(sock, cmd, (unsigned long)compat_ptr(arg));
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+EXPORT_SYMBOL(pppox_compat_ioctl);
|
|
|
|
|
+#endif
|
|
|
|
|
+
|
|
|
static int pppox_create(struct net *net, struct socket *sock, int protocol,
|
|
static int pppox_create(struct net *net, struct socket *sock, int protocol,
|
|
|
int kern)
|
|
int kern)
|
|
|
{
|
|
{
|