diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-06-24 19:48:30 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-07-01 16:37:02 +0200 |
commit | 468b021b944922e8fe0a30b6b6e0532bb95e4edc (patch) | |
tree | fd93b61179e73c44a6cb2b440a5e572fc002213a /net/ipv4 | |
parent | 0071e184a535e40ce487528cb04f4690cb0da881 (diff) | |
download | lwn-468b021b944922e8fe0a30b6b6e0532bb95e4edc.tar.gz lwn-468b021b944922e8fe0a30b6b6e0532bb95e4edc.zip |
netfilter: x_tables: simplify ip{6}table_mangle_hook()
No need for a special case to handle NF_INET_POST_ROUTING, this is
basically the same handling as for prerouting, input, forward.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/netfilter/iptable_mangle.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/net/ipv4/netfilter/iptable_mangle.c b/net/ipv4/netfilter/iptable_mangle.c index 57fc97cdac70..aebdb337fd7e 100644 --- a/net/ipv4/netfilter/iptable_mangle.c +++ b/net/ipv4/netfilter/iptable_mangle.c @@ -87,10 +87,6 @@ iptable_mangle_hook(void *priv, { if (state->hook == NF_INET_LOCAL_OUT) return ipt_mangle_out(skb, state); - if (state->hook == NF_INET_POST_ROUTING) - return ipt_do_table(skb, state, - state->net->ipv4.iptable_mangle); - /* PREROUTING/INPUT/FORWARD: */ return ipt_do_table(skb, state, state->net->ipv4.iptable_mangle); } |