* [PATCH 6/6] netns brnetfilter: small prerouting fixup
@ 2008-08-21 22:34 adobriyan
0 siblings, 0 replies; only message in thread
From: adobriyan @ 2008-08-21 22:34 UTC (permalink / raw)
To: shemminger, netdev, containers, kaber
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---
net/bridge/br_netfilter.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
--- 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)
if (err != -EHOSTUNREACH || !in_dev || IN_DEV_FORWARD(in_dev))
goto free_skb;
- if (!ip_route_output_key(&init_net, &rt, &fl)) {
+ if (!ip_route_output_key(dev_net(dev), &rt, &fl)) {
/* - Bridged-and-DNAT'ed traffic doesn't
* require ip_forwarding. */
if (((struct dst_entry *)rt)->dev == dev) {
--
1.5.6.3
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-08-21 22:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-21 22:34 [PATCH 6/6] netns brnetfilter: small prerouting fixup adobriyan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox