* [IPV6]: Fix policy routing lookup
@ 2006-08-07 5:19 Patrick McHardy
2006-08-07 5:24 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Patrick McHardy @ 2006-08-07 5:19 UTC (permalink / raw)
To: David S. Miller; +Cc: Thomas Graf, Linux Netdev List
[-- Attachment #1: Type: text/plain, Size: 0 bytes --]
[-- Attachment #2: 02.diff --]
[-- Type: text/plain, Size: 1003 bytes --]
[IPV6]: Fix policy routing lookup
When the lookup in a table returns ip6_null_entry the policy routing lookup
returns it instead of continuing in the next table, which effectively means
it only searches the local table.
Signed-off-by: Patrick McHardy <kaber@trash.net>
---
commit f5d49889512f24f3819c6aa1e0dca72061b372fe
tree 489216e0f5d31ed37d3f3cee40475b2672ad7c70
parent d3ddd45b230e8b56873c77d266004fec49c44f8b
author Patrick McHardy <kaber@trash.net> Mon, 07 Aug 2006 06:57:55 +0200
committer Patrick McHardy <kaber@trash.net> Mon, 07 Aug 2006 06:57:55 +0200
net/ipv6/fib6_rules.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/net/ipv6/fib6_rules.c b/net/ipv6/fib6_rules.c
index c3c8195..94a46ec 100644
--- a/net/ipv6/fib6_rules.c
+++ b/net/ipv6/fib6_rules.c
@@ -94,8 +94,10 @@ int fib6_rule_action(struct fib_rule *ru
if (rt != &ip6_null_entry)
goto out;
-
dst_release(&rt->u.dst);
+ rt = NULL;
+ goto out;
+
discard_pkt:
dst_hold(&rt->u.dst);
out:
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [IPV6]: Fix policy routing lookup
2006-08-07 5:19 [IPV6]: Fix policy routing lookup Patrick McHardy
@ 2006-08-07 5:24 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2006-08-07 5:24 UTC (permalink / raw)
To: kaber; +Cc: tgraf, netdev
From: Patrick McHardy <kaber@trash.net>
Date: Mon, 07 Aug 2006 07:19:10 +0200
> [IPV6]: Fix policy routing lookup
>
> When the lookup in a table returns ip6_null_entry the policy routing lookup
> returns it instead of continuing in the next table, which effectively means
> it only searches the local table.
>
> Signed-off-by: Patrick McHardy <kaber@trash.net>
Thanks for fixing this, applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-08-07 5:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-07 5:19 [IPV6]: Fix policy routing lookup Patrick McHardy
2006-08-07 5:24 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).