Browse Source

netfilter: netns: use NFPROTO_NUMPROTO instead of NUMPROTO for tables array

The netfilter families have been decoupled from regular protocol families.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Patrick McHardy 16 years ago
parent
commit
10a03a42d1
1 changed files with 2 additions and 2 deletions
  1. 2 2
      include/net/netns/x_tables.h

+ 2 - 2
include/net/netns/x_tables.h

@@ -2,9 +2,9 @@
 #define __NETNS_X_TABLES_H
 #define __NETNS_X_TABLES_H
 
 
 #include <linux/list.h>
 #include <linux/list.h>
-#include <linux/net.h>
+#include <linux/netfilter.h>
 
 
 struct netns_xt {
 struct netns_xt {
-	struct list_head tables[NPROTO];
+	struct list_head tables[NFPROTO_NUMPROTO];
 };
 };
 #endif
 #endif