Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 75613
b: refs/heads/master
c: 398bcbe
h: refs/heads/master
i:
  75611: 720d8d0
v: v3
  • Loading branch information
YOSHIFUJI Hideaki authored and David S. Miller committed Jan 21, 2008
1 parent 5ff14cd commit 377abc0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 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: 8d3f099abe25c21670cb5728178a1f286952782d
refs/heads/master: 398bcbebb6f721ac308df1e3d658c0029bb74503
11 changes: 8 additions & 3 deletions trunk/net/ipv6/route.c
Original file line number Diff line number Diff line change
Expand Up @@ -329,18 +329,23 @@ static inline int rt6_check_dev(struct rt6_info *rt, int oif)
static inline int rt6_check_neigh(struct rt6_info *rt)
{
struct neighbour *neigh = rt->rt6i_nexthop;
int m = 0;
int m;
if (rt->rt6i_flags & RTF_NONEXTHOP ||
!(rt->rt6i_flags & RTF_GATEWAY))
m = 1;
else if (neigh) {
read_lock_bh(&neigh->lock);
if (neigh->nud_state & NUD_VALID)
m = 2;
else if (!(neigh->nud_state & NUD_FAILED))
#ifdef CONFIG_IPV6_ROUTER_PREF
else if (neigh->nud_state & NUD_FAILED)
m = 0;
#endif
else
m = 1;
read_unlock_bh(&neigh->lock);
}
} else
m = 0;
return m;
}

Expand Down

0 comments on commit 377abc0

Please sign in to comment.