netfilter: x_tables: simplify ip{6}table_mangle_hook()
Subsystems (2)
Pablo Neira Ayuso
maintainerPATCH 1/1 netfilter: x_tables: simplify ip{6}table_mangle_hook()
No need for a special case for NF_INET_POST_ROUTING.
Signed-off-by Pablo Neira Ayuso <[email protected]>
--- net/ipv4/netfilter/iptable_mangle.c | 4 ---- net/ipv6/netfilter/ip6table_mangle.c | 4 ---- 2 files changed, 8 deletions(-)
net/ipv4/netfilter/iptable_mangle.c +0 -4
@@ -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); }
net/ipv6/netfilter/ip6table_mangle.c +0 -4
@@ -83,10 +83,6 @@ ip6table_mangle_hook(void *priv, struct sk_buff *skb, {if (state->hook ==NF_INET_LOCAL_OUT )return ip6t_mangle_out (skb, state); -if (state->hook ==NF_INET_POST_ROUTING ) -return ip6t_do_table (skb, state, - state->net->ipv6.ip6table_mangle); -/* INPUT/FORWARD */ return ip6t_do_table (skb, state, state->net->ipv6.ip6table_mangle); }
Signature · 1 line
2.1.4