Skip to contentSkip to conversation

: Fix policy routing lookup

IPV6 Patrick McHardy 2 participants 2 messages Aug 7, 2006

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

[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.

---
commit f5d49889512f24f3819c6aa1e0dca72061b372fe
tree 489216e0f5d31ed37d3f3cee40475b2672ad7c70
parent d3ddd45b230e8b56873c77d266004fec49c44f8b
author Patrick McHardy <[email protected]> Mon, 07 Aug 2006 06:57:55 +0200 committer Patrick McHardy <[email protected]> Mon, 07 Aug 2006 06:57:55 +0200

 net/ipv6/fib6_rules.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
net/ipv6/fib6_rules.c +3 -1
index c3c8195..94a46ec 100644
@@ -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:
maintainer
#1 lore raw

From: Patrick McHardy <[email protected]>
Date: Mon, 07 Aug 2006 07:19:10 +0200

Quoted 7 lines

[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.

Thanks for fixing this, applied.