提交 0098b727 编写于 作者: R Rusty Russell 提交者: 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: NRusty Russell <rusty@rustcorp.com.au>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 fc8717ba
无相关合并请求
......@@ -19,6 +19,7 @@
#define _LINUX_NET_H
#include <linux/wait.h>
#include <linux/socket.h>
#include <asm/socket.h>
struct poll_table_struct;
......@@ -26,7 +27,7 @@ struct pipe_inode_info;
struct inode;
struct net;
#define NPROTO 34 /* should be enough for now.. */
#define NPROTO AF_MAX
#define SYS_SOCKET 1 /* sys_socket(2) */
#define SYS_BIND 2 /* sys_bind(2) */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
反馈
建议
客服 返回
顶部