Commit 0098b727 authored by Rusty Russell's avatar Rusty Russell Committed by David S. Miller

[NET]: NPROTO is redundant; it's equal to AF_MAX/PF_MAX.

DaveM pointed out NPROTO exposed to userspace, so keep it around,
just make sure it stays in sync.
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent fc8717ba
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
#define _LINUX_NET_H #define _LINUX_NET_H
#include <linux/wait.h> #include <linux/wait.h>
#include <linux/socket.h>
#include <asm/socket.h> #include <asm/socket.h>
struct poll_table_struct; struct poll_table_struct;
...@@ -26,7 +27,7 @@ struct pipe_inode_info; ...@@ -26,7 +27,7 @@ struct pipe_inode_info;
struct inode; struct inode;
struct net; struct net;
#define NPROTO 34 /* should be enough for now.. */ #define NPROTO AF_MAX
#define SYS_SOCKET 1 /* sys_socket(2) */ #define SYS_SOCKET 1 /* sys_socket(2) */
#define SYS_BIND 2 /* sys_bind(2) */ #define SYS_BIND 2 /* sys_bind(2) */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment