]> granicus.if.org Git - ipset/commitdiff
netfilter: use IS_ENABLED(CONFIG_BRIDGE_NETFILTER)
authorPablo Neira Ayuso <pablo@netfilter.org>
Mon, 3 Nov 2014 07:07:22 +0000 (08:07 +0100)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Mon, 3 Nov 2014 07:07:22 +0000 (08:07 +0100)
In 34666d4 ("netfilter: bridge: move br_netfilter out of the core"),
the bridge netfilter code has been modularized.

Use IS_ENABLED instead of ifdef to cover the module case.

Fixes: 34666d4 ("netfilter: bridge: move br_netfilter out of the core")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
kernel/net/netfilter/ipset/ip_set_hash_netiface.c

index 1ed99efaec57c32023ad96b4cba7625b257d4f33..65499687b49b7c1f4918d3976ab037f09269b6e3 100644 (file)
@@ -265,7 +265,7 @@ hash_netiface4_kadt(struct ip_set *set, const struct sk_buff *skb,
 #define SRCDIR         (opt->flags & IPSET_DIM_TWO_SRC)
 
        if (opt->cmdflags & IPSET_FLAG_PHYSDEV) {
-#ifdef CONFIG_BRIDGE_NETFILTER
+#if IS_ENABLED(CONFIG_BRIDGE_NETFILTER)
                const struct nf_bridge_info *nf_bridge = skb->nf_bridge;
 
                if (!nf_bridge)
@@ -502,7 +502,7 @@ hash_netiface6_kadt(struct ip_set *set, const struct sk_buff *skb,
        ip6_netmask(&e.ip, e.cidr);
 
        if (opt->cmdflags & IPSET_FLAG_PHYSDEV) {
-#ifdef CONFIG_BRIDGE_NETFILTER
+#if IS_ENABLED(CONFIG_BRIDGE_NETFILTER)
                const struct nf_bridge_info *nf_bridge = skb->nf_bridge;
 
                if (!nf_bridge)