]> git.itanic.dy.fi Git - linux-stable/commitdiff
[PATCH] IPV6 ROUTE: No longer handle ::/0 specially.
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Thu, 7 Jun 2007 05:42:58 +0000 (22:42 -0700)
committerChris Wright <chrisw@sous-sol.org>
Mon, 11 Jun 2007 18:37:14 +0000 (11:37 -0700)
We do not need to handle ::/0 routes specially any longer.
This should fix BUG #8349.

Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Acked-by: Yuji Sekiya <sekiya@wide.ad.jp>
Signed-off-by: David S. Miller <davem@davemloft.net>
[chrisw: backport to 2.6.20]
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
net/ipv6/ip6_fib.c

index 2d9c425f1c6a311066f63108ba4650142fb9d14a..0c4aaac851cb1e37c0a27f18337fa4cc84655d25 100644 (file)
@@ -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