diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2008-03-22 20:18:47 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-03-22 20:18:47 -0400 |
commit | 0098b7273e968fb9989a6e1e4e4c024cd081fe0d (patch) | |
tree | 6169be4b1e74ef7b9cc19d72bd50ec6c77064411 /include/linux/net.h | |
parent | fc8717baa8f52dd8d1b90df9008300ef3ec794ed (diff) |
[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: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/net.h')
-rw-r--r-- | include/linux/net.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/net.h b/include/linux/net.h index c414d90e647b..71f7dd559285 100644 --- a/include/linux/net.h +++ b/include/linux/net.h | |||
@@ -19,6 +19,7 @@ | |||
19 | #define _LINUX_NET_H | 19 | #define _LINUX_NET_H |
20 | 20 | ||
21 | #include <linux/wait.h> | 21 | #include <linux/wait.h> |
22 | #include <linux/socket.h> | ||
22 | #include <asm/socket.h> | 23 | #include <asm/socket.h> |
23 | 24 | ||
24 | struct poll_table_struct; | 25 | struct poll_table_struct; |
@@ -26,7 +27,7 @@ struct pipe_inode_info; | |||
26 | struct inode; | 27 | struct inode; |
27 | struct net; | 28 | struct net; |
28 | 29 | ||
29 | #define NPROTO 34 /* should be enough for now.. */ | 30 | #define NPROTO AF_MAX |
30 | 31 | ||
31 | #define SYS_SOCKET 1 /* sys_socket(2) */ | 32 | #define SYS_SOCKET 1 /* sys_socket(2) */ |
32 | #define SYS_BIND 2 /* sys_bind(2) */ | 33 | #define SYS_BIND 2 /* sys_bind(2) */ |