diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-10-01 05:19:17 -0400 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-10-02 12:30:54 -0400 |
commit | 1109a90c01177e8f4a5fd95c5b685ad02f1fe9bb (patch) | |
tree | 2712547647a21ae3e56e2cb42dd2c84087ed640f /net/ipv4/ip_output.c | |
parent | c8d7b98bec43faaa6583c3135030be5eb4693acb (diff) |
netfilter: use IS_ENABLED(CONFIG_BRIDGE_NETFILTER)
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>
Diffstat (limited to 'net/ipv4/ip_output.c')
-rw-r--r-- | net/ipv4/ip_output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/ip_output.c b/net/ipv4/ip_output.c index c8fa62476461..e35b71289156 100644 --- a/net/ipv4/ip_output.c +++ b/net/ipv4/ip_output.c | |||
@@ -516,7 +516,7 @@ int ip_fragment(struct sk_buff *skb, int (*output)(struct sk_buff *)) | |||
516 | 516 | ||
517 | hlen = iph->ihl * 4; | 517 | hlen = iph->ihl * 4; |
518 | mtu = mtu - hlen; /* Size of data space */ | 518 | mtu = mtu - hlen; /* Size of data space */ |
519 | #ifdef CONFIG_BRIDGE_NETFILTER | 519 | #if IS_ENABLED(CONFIG_BRIDGE_NETFILTER) |
520 | if (skb->nf_bridge) | 520 | if (skb->nf_bridge) |
521 | mtu -= nf_bridge_mtu_reduction(skb); | 521 | mtu -= nf_bridge_mtu_reduction(skb); |
522 | #endif | 522 | #endif |