diff options
author | Florian Westphal <fw@strlen.de> | 2011-04-04 16:56:29 +0200 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2011-04-04 16:56:29 +0200 |
commit | 31ad3dd64e689bc79dd819f8f134b9b025240eb8 (patch) | |
tree | 06d2a9afbea2b1b7973e416f18d4588df30fb91a /net/netfilter/xt_TCPMSS.c | |
parent | a09d19779f3ffac6e16821accc2c1cc4df1b643a (diff) | |
download | linux-3.10-31ad3dd64e689bc79dd819f8f134b9b025240eb8.tar.gz linux-3.10-31ad3dd64e689bc79dd819f8f134b9b025240eb8.tar.bz2 linux-3.10-31ad3dd64e689bc79dd819f8f134b9b025240eb8.zip |
netfilter: af_info: add network namespace parameter to route hook
This is required to eventually replace the rt6_lookup call in
xt_addrtype.c with nf_afinfo->route().
Signed-off-by: Florian Westphal <fw@strlen.de>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'net/netfilter/xt_TCPMSS.c')
-rw-r--r-- | net/netfilter/xt_TCPMSS.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/xt_TCPMSS.c b/net/netfilter/xt_TCPMSS.c index 6e6b46cb1db..8690125e3b1 100644 --- a/net/netfilter/xt_TCPMSS.c +++ b/net/netfilter/xt_TCPMSS.c @@ -166,7 +166,7 @@ static u_int32_t tcpmss_reverse_mtu(const struct sk_buff *skb, rcu_read_lock(); ai = nf_get_afinfo(family); if (ai != NULL) - ai->route((struct dst_entry **)&rt, &fl); + ai->route(&init_net, (struct dst_entry **)&rt, &fl); rcu_read_unlock(); if (rt != NULL) { |