Lines Matching refs:neigh
78 pr_debug("%p to entry %p (neigh %p)\n", clip_vcc, entry, entry->neigh);
83 entry->neigh->used = jiffies;
95 netif_tx_lock_bh(entry->neigh->dev); /* block clip_start_xmit() */
96 entry->neigh->used = jiffies;
104 netif_wake_queue(entry->neigh->dev);
109 error = neigh_update(entry->neigh, NULL, NUD_NONE,
117 netif_tx_unlock_bh(entry->neigh->dev);
153 pr_debug("expired neigh %p\n", n);
211 skb->dev = clip_vcc->entry ? clip_vcc->entry->neigh->dev : clip_devs;
266 static void clip_neigh_solicit(struct neighbour *neigh, struct sk_buff *skb)
268 __be32 *ip = (__be32 *) neigh->primary_key;
270 pr_debug("(neigh %p, skb %p)\n", neigh, skb);
271 to_atmarpd(act_need, PRIV(neigh->dev)->number, *ip);
274 static void clip_neigh_error(struct neighbour *neigh, struct sk_buff *skb)
290 static int clip_constructor(struct net_device *dev, struct neighbour *neigh)
292 struct atmarp_entry *entry = neighbour_priv(neigh);
294 if (neigh->tbl->family != AF_INET)
297 if (neigh->type != RTN_UNICAST)
300 neigh->nud_state = NUD_NONE;
301 neigh->ops = &clip_neigh_ops;
302 neigh->output = neigh->ops->output;
303 entry->neigh = neigh;
367 if (entry->neigh->arp_queue.qlen < ATMARP_MAX_UNRES_PACKETS)
368 skb_queue_tail(&entry->neigh->arp_queue, skb);
375 pr_debug("neigh %p, vccs %p\n", entry, entry->vccs);
446 struct neighbour *neigh;
469 neigh = __neigh_lookup(&arp_tbl, &ip, rt->dst.dev, 1);
471 if (!neigh)
473 entry = neighbour_priv(neigh);
483 error = neigh_update(neigh, llc_oui, NUD_PERMANENT,
485 neigh_release(neigh);
750 exp = entry->neigh->used;
770 refcount_read(&entry->neigh->refcnt));