aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/netns/x_tables.h
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@sw.ru>2008-01-31 04:02:13 -0800
committerDavid S. Miller <davem@davemloft.net>2008-01-31 19:27:35 -0800
commit8d870052079d255917ec4f8431f5ec102707b7af (patch)
tree77ab4f07ef4980d179c4e47d3a6e034c055f9bdf /include/net/netns/x_tables.h
parent[NETFILTER]: x_tables: change xt_table_register() return value convention (diff)
downloadlinux-dev-8d870052079d255917ec4f8431f5ec102707b7af.tar.xz
linux-dev-8d870052079d255917ec4f8431f5ec102707b7af.zip
[NETFILTER]: x_tables: per-netns xt_tables
In fact all we want is per-netns set of rules, however doing that will unnecessary complicate routines such as ipt_hook()/ipt_do_table, so make full xt_table array per-netns. Every user stubbed with init_net for a while. Signed-off-by: Alexey Dobriyan <adobriyan@sw.ru> Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/netns/x_tables.h')
-rw-r--r--include/net/netns/x_tables.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/net/netns/x_tables.h b/include/net/netns/x_tables.h
new file mode 100644
index 000000000000..0cb63ed2c1fc
--- /dev/null
+++ b/include/net/netns/x_tables.h
@@ -0,0 +1,10 @@
+#ifndef __NETNS_X_TABLES_H
+#define __NETNS_X_TABLES_H
+
+#include <linux/list.h>
+#include <linux/net.h>
+
+struct netns_xt {
+ struct list_head tables[NPROTO];
+};
+#endif