Lines Matching defs:neigh
2202 struct neighbour *neigh;
2226 neigh = ip_neigh_gw6(dev, nexthop);
2227 if (likely(!IS_ERR(neigh))) {
2230 sock_confirm_neigh(skb, neigh);
2233 ret = neigh_output(neigh, skb, false);
2301 struct neighbour *neigh;
2322 neigh = ip_neigh_for_gw(rt, skb, &is_v6gw);
2324 neigh = ip_neigh_gw6(dev, &nh->ipv6_nh);
2327 neigh = ip_neigh_gw4(dev, nh->ipv4_nh);
2333 if (likely(!IS_ERR(neigh))) {
2336 sock_confirm_neigh(skb, neigh);
2339 ret = neigh_output(neigh, skb, is_v6gw);
5863 struct neighbour *neigh;
5981 neigh = __ipv4_neigh_lookup_noref(dev,
5984 neigh = __ipv6_neigh_lookup_noref_stub(dev, params->ipv6_dst);
5986 if (!neigh || !(READ_ONCE(neigh->nud_state) & NUD_VALID))
5988 memcpy(params->dmac, neigh->ha, ETH_ALEN);
6003 struct neighbour *neigh;
6127 neigh = __ipv6_neigh_lookup_noref_stub(dev, dst);
6128 if (!neigh || !(READ_ONCE(neigh->nud_state) & NUD_VALID))
6130 memcpy(params->dmac, neigh->ha, ETH_ALEN);