aboutsummaryrefslogtreecommitdiffstats
path: root/net/appletalk
diff options
context:
space:
mode:
Diffstat (limited to 'net/appletalk')
-rw-r--r--net/appletalk/ddp.c24
1 files changed, 4 insertions, 20 deletions
diff --git a/net/appletalk/ddp.c b/net/appletalk/ddp.c
index 7982656b9c83..697ac55e29dc 100644
--- a/net/appletalk/ddp.c
+++ b/net/appletalk/ddp.c
@@ -52,6 +52,7 @@
52 */ 52 */
53 53
54#include <linux/config.h> 54#include <linux/config.h>
55#include <linux/capability.h>
55#include <linux/module.h> 56#include <linux/module.h>
56#include <linux/if_arp.h> 57#include <linux/if_arp.h>
57#include <linux/termios.h> /* For TIOCOUTQ/INQ */ 58#include <linux/termios.h> /* For TIOCOUTQ/INQ */
@@ -63,7 +64,7 @@
63#include <linux/atalk.h> 64#include <linux/atalk.h>
64 65
65struct datalink_proto *ddp_dl, *aarp_dl; 66struct datalink_proto *ddp_dl, *aarp_dl;
66static struct proto_ops atalk_dgram_ops; 67static const struct proto_ops atalk_dgram_ops;
67 68
68/**************************************************************************\ 69/**************************************************************************\
69* * 70* *
@@ -1763,7 +1764,7 @@ static int atalk_recvmsg(struct kiocb *iocb, struct socket *sock, struct msghdr
1763 */ 1764 */
1764static int atalk_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) 1765static int atalk_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
1765{ 1766{
1766 int rc = -EINVAL; 1767 int rc = -ENOIOCTLCMD;
1767 struct sock *sk = sock->sk; 1768 struct sock *sk = sock->sk;
1768 void __user *argp = (void __user *)arg; 1769 void __user *argp = (void __user *)arg;
1769 1770
@@ -1813,23 +1814,6 @@ static int atalk_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
1813 rc = atif_ioctl(cmd, argp); 1814 rc = atif_ioctl(cmd, argp);
1814 rtnl_unlock(); 1815 rtnl_unlock();
1815 break; 1816 break;
1816 /* Physical layer ioctl calls */
1817 case SIOCSIFLINK:
1818 case SIOCGIFHWADDR:
1819 case SIOCSIFHWADDR:
1820 case SIOCGIFFLAGS:
1821 case SIOCSIFFLAGS:
1822 case SIOCGIFTXQLEN:
1823 case SIOCSIFTXQLEN:
1824 case SIOCGIFMTU:
1825 case SIOCGIFCONF:
1826 case SIOCADDMULTI:
1827 case SIOCDELMULTI:
1828 case SIOCGIFCOUNT:
1829 case SIOCGIFINDEX:
1830 case SIOCGIFNAME:
1831 rc = dev_ioctl(cmd, argp);
1832 break;
1833 } 1817 }
1834 1818
1835 return rc; 1819 return rc;
@@ -1841,7 +1825,7 @@ static struct net_proto_family atalk_family_ops = {
1841 .owner = THIS_MODULE, 1825 .owner = THIS_MODULE,
1842}; 1826};
1843 1827
1844static struct proto_ops SOCKOPS_WRAPPED(atalk_dgram_ops) = { 1828static const struct proto_ops SOCKOPS_WRAPPED(atalk_dgram_ops) = {
1845 .family = PF_APPLETALK, 1829 .family = PF_APPLETALK,
1846 .owner = THIS_MODULE, 1830 .owner = THIS_MODULE,
1847 .release = atalk_release, 1831 .release = atalk_release,