Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 46933
b: refs/heads/master
c: a0d78eb
h: refs/heads/master
i:
  46931: b4fe773
v: v3
  • Loading branch information
YOSHIFUJI Hideaki authored and David S. Miller committed Feb 8, 2007
1 parent 8e5e4a6 commit 12035f9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 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: 26932566a42d46aee7e5d526cb34fba9380cad10
refs/heads/master: a0d78ebf3a0e33a1aeacf2fc518ad9273d6a1c2f
19 changes: 14 additions & 5 deletions trunk/net/ipv6/route.c
Original file line number Diff line number Diff line change
Expand Up @@ -311,12 +311,21 @@ static inline void rt6_probe(struct rt6_info *rt)
static int inline rt6_check_dev(struct rt6_info *rt, int oif)
{
struct net_device *dev = rt->rt6i_dev;
if (!oif || dev->ifindex == oif)
int ret = 0;

if (!oif)
return 2;
if ((dev->flags & IFF_LOOPBACK) &&
rt->rt6i_idev && rt->rt6i_idev->dev->ifindex == oif)
return 1;
return 0;
if (dev->flags & IFF_LOOPBACK) {
if (!WARN_ON(rt->rt6i_idev == NULL) &&
rt->rt6i_idev->dev->ifindex == oif)
ret = 1;
else
return 0;
}
if (dev->ifindex == oif)
return 2;

return ret;
}

static int inline rt6_check_neigh(struct rt6_info *rt)
Expand Down

0 comments on commit 12035f9

Please sign in to comment.