aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2008-11-04 08:31:29 -0500
committerPatrick McHardy <kaber@trash.net>2008-11-04 08:31:29 -0500
commit249b62035ca247b9cedbefa1acf6bdc53b96e678 (patch)
treef47f156c1fe9c1c2c4002feb2bc7de1db751d740
parentb71b30a626fd0e43c825a05036e7a2c3f377a563 (diff)
netfilter: netns ebtables: br_nf_pre_routing_finish() fixup
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Patrick McHardy <kaber@trash.net>
-rw-r--r--net/bridge/br_netfilter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bridge/br_netfilter.c b/net/bridge/br_netfilter.c
index db6176d96e71..bf9d6af9628a 100644
--- a/net/bridge/br_netfilter.c
+++ b/net/bridge/br_netfilter.c
@@ -357,7 +357,7 @@ static int br_nf_pre_routing_finish(struct sk_buff *skb)
357 if (err != -EHOSTUNREACH || !in_dev || IN_DEV_FORWARD(in_dev)) 357 if (err != -EHOSTUNREACH || !in_dev || IN_DEV_FORWARD(in_dev))
358 goto free_skb; 358 goto free_skb;
359 359
360 if (!ip_route_output_key(&init_net, &rt, &fl)) { 360 if (!ip_route_output_key(dev_net(dev), &rt, &fl)) {
361 /* - Bridged-and-DNAT'ed traffic doesn't 361 /* - Bridged-and-DNAT'ed traffic doesn't
362 * require ip_forwarding. */ 362 * require ip_forwarding. */
363 if (((struct dst_entry *)rt)->dev == dev) { 363 if (((struct dst_entry *)rt)->dev == dev) {