From: YOSHIFUJI Hideaki Date: Thu, 7 Jun 2007 05:42:58 +0000 (-0700) Subject: [PATCH] IPV6 ROUTE: No longer handle ::/0 specially. X-Git-Tag: v2.6.20.14~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98ea7818b6c69d9a7e346a75958529e368c6a556;p=thirdparty%2Fkernel%2Fstable.git [PATCH] IPV6 ROUTE: No longer handle ::/0 specially. We do not need to handle ::/0 routes specially any longer. This should fix BUG #8349. Signed-off-by: YOSHIFUJI Hideaki Acked-by: Yuji Sekiya Signed-off-by: David S. Miller [chrisw: backport to 2.6.20] Signed-off-by: Chris Wright --- diff --git a/net/ipv6/ip6_fib.c b/net/ipv6/ip6_fib.c index 2d9c425f1c6a3..0c4aaac851cb1 100644 --- a/net/ipv6/ip6_fib.c +++ b/net/ipv6/ip6_fib.c @@ -620,14 +620,6 @@ static int fib6_add_rt2node(struct fib6_node *fn, struct rt6_info *rt, ins = &fn->leaf; - if (fn->fn_flags&RTN_TL_ROOT && - fn->leaf == &ip6_null_entry && - !(rt->rt6i_flags & (RTF_DEFAULT | RTF_ADDRCONF)) ){ - fn->leaf = rt; - rt->u.next = NULL; - goto out; - } - for (iter = fn->leaf; iter; iter=iter->u.next) { /* * Search for duplicates