]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[NET]: NPROTO is redundant; it's equal to AF_MAX/PF_MAX.
authorRusty Russell <rusty@rustcorp.com.au>
Sun, 23 Mar 2008 00:18:47 +0000 (17:18 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 23 Mar 2008 00:18:47 +0000 (17:18 -0700)
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>
include/linux/net.h

index c414d90e647bd3f1c71ef7a5eefe9e8a933107b0..71f7dd55928580065f3581898a1657d9cea2b944 100644 (file)
@@ -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)                  */