Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 278331
b: refs/heads/master
c: 04a6f44
h: refs/heads/master
i:
  278329: 9ba8f31
  278327: 83400a3
v: v3
  • Loading branch information
David S. Miller committed Dec 3, 2011
1 parent 6eb99fc commit 01f1fd7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 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: 3830847396fa6d7f9a5fec0ca9819c47ac8a64e8
refs/heads/master: 04a6f4417bfd17c3860e8fb37387cb78265ffe44
9 changes: 0 additions & 9 deletions trunk/include/net/ndisc.h
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,4 @@ int ndisc_ifinfo_sysctl_strategy(ctl_table *ctl,
extern void inet6_ifinfo_notify(int event,
struct inet6_dev *idev);

static inline struct neighbour * ndisc_get_neigh(struct net_device *dev, const struct in6_addr *addr)
{

if (dev)
return __neigh_lookup_errno(&nd_tbl, addr, dev);

return ERR_PTR(-ENODEV);
}

#endif
7 changes: 4 additions & 3 deletions trunk/net/ipv6/route.c
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,8 @@ static struct rt6_info *rt6_alloc_cow(const struct rt6_info *ort,
#endif

retry:
neigh = ndisc_get_neigh(rt->rt6i_dev, &rt->rt6i_gateway);
neigh = __neigh_lookup_errno(&nd_tbl, &rt->rt6i_gateway,
rt->rt6i_dev);
if (IS_ERR(neigh)) {
struct net *net = dev_net(rt->rt6i_dev);
int saved_rt_min_interval =
Expand Down Expand Up @@ -1085,7 +1086,7 @@ struct dst_entry *icmp6_dst_alloc(struct net_device *dev,
if (neigh)
neigh_hold(neigh);
else {
neigh = ndisc_get_neigh(dev, addr);
neigh = __neigh_lookup_errno(&nd_tbl, addr, dev);
if (IS_ERR(neigh))
neigh = NULL;
}
Expand Down Expand Up @@ -2082,7 +2083,7 @@ struct rt6_info *addrconf_dst_alloc(struct inet6_dev *idev,
rt->rt6i_flags |= RTF_ANYCAST;
else
rt->rt6i_flags |= RTF_LOCAL;
neigh = ndisc_get_neigh(rt->rt6i_dev, &rt->rt6i_gateway);
neigh = __neigh_lookup_errno(&nd_tbl, &rt->rt6i_gateway, rt->rt6i_dev);
if (IS_ERR(neigh)) {
dst_free(&rt->dst);

Expand Down

0 comments on commit 01f1fd7

Please sign in to comment.