Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 34551
b: refs/heads/master
c: 150730d
h: refs/heads/master
i:
  34549: 1c42f34
  34547: 7a27806
  34543: f1d7859
v: v3
  • Loading branch information
YOSHIFUJI Hideaki authored and David S. Miller committed Sep 22, 2006
1 parent fa8902f commit d6dbca0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 982f56f3a9be4651520c0fdd3d80a5d02e95a178
refs/heads/master: 150730d5a53b1bbb486101b2a5fb82ff0d3f916e
14 changes: 12 additions & 2 deletions trunk/net/ipv6/ip6_fib.c
Original file line number Diff line number Diff line change
Expand Up @@ -1169,8 +1169,18 @@ int fib6_del(struct rt6_info *rt, struct nl_info *info)

BUG_TRAP(fn->fn_flags&RTN_RTINFO);

if (!(rt->rt6i_flags&RTF_CACHE))
fib6_prune_clones(fn, rt);
if (!(rt->rt6i_flags&RTF_CACHE)) {
struct fib6_node *pn = fn;
#ifdef CONFIG_IPV6_SUBTREES
/* clones of this route might be in another subtree */
if (rt->rt6i_src.plen) {
while (!(pn->fn_flags&RTN_ROOT))
pn = pn->parent;
pn = pn->parent;
}
#endif
fib6_prune_clones(pn, rt);
}

/*
* Walk the leaf entries looking for ourself
Expand Down

0 comments on commit d6dbca0

Please sign in to comment.