diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/netfilter/iptable_mangle.c | 4 | ||||
-rw-r--r-- | net/ipv6/netfilter/ip6table_mangle.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/net/ipv4/netfilter/iptable_mangle.c b/net/ipv4/netfilter/iptable_mangle.c index 58d7097baa3d..c8333305d631 100644 --- a/net/ipv4/netfilter/iptable_mangle.c +++ b/net/ipv4/netfilter/iptable_mangle.c | |||
@@ -87,7 +87,9 @@ iptable_mangle_hook(unsigned int hook, | |||
87 | { | 87 | { |
88 | if (hook == NF_INET_LOCAL_OUT) | 88 | if (hook == NF_INET_LOCAL_OUT) |
89 | return ipt_local_hook(hook, skb, in, out, okfn); | 89 | return ipt_local_hook(hook, skb, in, out, okfn); |
90 | 90 | if (hook == NF_INET_POST_ROUTING) | |
91 | return ipt_do_table(skb, hook, in, out, | ||
92 | dev_net(out)->ipv4.iptable_mangle); | ||
91 | /* PREROUTING/INPUT/FORWARD: */ | 93 | /* PREROUTING/INPUT/FORWARD: */ |
92 | return ipt_do_table(skb, hook, in, out, | 94 | return ipt_do_table(skb, hook, in, out, |
93 | dev_net(in)->ipv4.iptable_mangle); | 95 | dev_net(in)->ipv4.iptable_mangle); |
diff --git a/net/ipv6/netfilter/ip6table_mangle.c b/net/ipv6/netfilter/ip6table_mangle.c index dc803b7e8e54..b6216dede52c 100644 --- a/net/ipv6/netfilter/ip6table_mangle.c +++ b/net/ipv6/netfilter/ip6table_mangle.c | |||
@@ -81,7 +81,9 @@ ip6table_mangle_hook(unsigned int hook, struct sk_buff *skb, | |||
81 | { | 81 | { |
82 | if (hook == NF_INET_LOCAL_OUT) | 82 | if (hook == NF_INET_LOCAL_OUT) |
83 | return ip6t_local_out_hook(hook, skb, out, okfn); | 83 | return ip6t_local_out_hook(hook, skb, out, okfn); |
84 | 84 | if (hook == NF_INET_POST_ROUTING) | |
85 | return ip6t_do_table(skb, hook, in, out, | ||
86 | dev_net(out)->ipv6.ip6table_mangle); | ||
85 | /* INPUT/FORWARD */ | 87 | /* INPUT/FORWARD */ |
86 | return ip6t_do_table(skb, hook, in, out, | 88 | return ip6t_do_table(skb, hook, in, out, |
87 | dev_net(in)->ipv6.ip6table_mangle); | 89 | dev_net(in)->ipv6.ip6table_mangle); |