summaryrefslogtreecommitdiffstats
path: root/net/netlink/af_netlink.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/netlink/af_netlink.c')
-rw-r--r--net/netlink/af_netlink.c35
1 files changed, 17 insertions, 18 deletions
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c
index b76a07274..4f4263d56 100644
--- a/net/netlink/af_netlink.c
+++ b/net/netlink/af_netlink.c
@@ -941,24 +941,23 @@ done:
#endif
struct proto_ops netlink_ops = {
- PF_NETLINK,
-
- netlink_release,
- netlink_bind,
- netlink_connect,
- sock_no_socketpair,
- sock_no_accept,
- netlink_getname,
- datagram_poll,
- sock_no_ioctl,
- sock_no_listen,
- sock_no_shutdown,
- sock_no_setsockopt,
- sock_no_getsockopt,
- sock_no_fcntl,
- netlink_sendmsg,
- netlink_recvmsg,
- sock_no_mmap
+ family: PF_NETLINK,
+
+ release: netlink_release,
+ bind: netlink_bind,
+ connect: netlink_connect,
+ socketpair: sock_no_socketpair,
+ accept: sock_no_accept,
+ getname: netlink_getname,
+ poll: datagram_poll,
+ ioctl: sock_no_ioctl,
+ listen: sock_no_listen,
+ shutdown: sock_no_shutdown,
+ setsockopt: sock_no_setsockopt,
+ getsockopt: sock_no_getsockopt,
+ sendmsg: netlink_sendmsg,
+ recvmsg: netlink_recvmsg,
+ mmap: sock_no_mmap,
};
struct net_proto_family netlink_family_ops = {