Advertisement
wakoond

linux-2.6.35.14/net/ipv6/route.c ip6ip6 metric issue

Oct 17th, 2011
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.64 KB | None | 0 0
  1. static struct rt6_info *find_rr_leaf(struct fib6_node *fn,
  2.                               struct rt6_info *rr_head,
  3.                               u32 metric, int oif, int strict)
  4. {
  5.        struct rt6_info *rt, *match;
  6.        int mpri = -1;
  7.  
  8.        match = NULL;
  9.        for (rt = rr_head; rt && rt->rt6i_metric == metric;
  10.             rt = rt->u.dst.rt6_next)
  11.                match = find_match(rt, oif, strict, &mpri, match);
  12.        for (rt = fn->leaf; rt && rt != rr_head &&
  13.             rt->rt6i_metric == metric;
  14.             rt = rt->u.dst.rt6_next)
  15.                match = find_match(rt, oif, strict, &mpri, match);
  16.  
  17.        return match;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement