]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
netfilter: netns: #ifdef ->iptable_security, ->ip6table_security
authorAlexey Dobriyan <adobriyan@gmail.com>
Mon, 18 Jan 2010 07:08:37 +0000 (08:08 +0100)
committerPatrick McHardy <kaber@trash.net>
Mon, 18 Jan 2010 07:08:37 +0000 (08:08 +0100)
'security' tables depend on SECURITY, so ifdef them.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
include/net/netns/ipv4.h
include/net/netns/ipv6.h

index 2eb3814d6258e8d0f9da0be8c81560b20af5b9cf..8098f6b8319db8dceec2136971141d669d0c3b87 100644 (file)
@@ -37,7 +37,9 @@ struct netns_ipv4 {
        struct xt_table         *iptable_mangle;
        struct xt_table         *iptable_raw;
        struct xt_table         *arptable_filter;
+#ifdef CONFIG_SECURITY
        struct xt_table         *iptable_security;
+#endif
        struct xt_table         *nat_table;
        struct hlist_head       *nat_bysource;
        int                     nat_vmalloced;
index dfeb2d7c425b52cfb69831221b9dc6768830bfc9..1f11ebc221517058a10c3eae7a04918e03e2fefd 100644 (file)
@@ -36,7 +36,9 @@ struct netns_ipv6 {
        struct xt_table         *ip6table_filter;
        struct xt_table         *ip6table_mangle;
        struct xt_table         *ip6table_raw;
+#ifdef CONFIG_SECURITY
        struct xt_table         *ip6table_security;
+#endif
 #endif
        struct rt6_info         *ip6_null_entry;
        struct rt6_statistics   *rt6_stats;