Lines Matching refs:neigh
323 void neigh_destroy(struct neighbour *neigh);
324 int __neigh_event_send(struct neighbour *neigh, struct sk_buff *skb);
325 int neigh_update(struct neighbour *neigh, const u8 *lladdr, u8 new, u32 flags,
327 void __neigh_set_probe_once(struct neighbour *neigh);
332 int neigh_resolve_output(struct neighbour *neigh, struct sk_buff *skb);
333 int neigh_connected_output(struct neighbour *neigh, struct sk_buff *skb);
334 int neigh_direct_output(struct neighbour *neigh, struct sk_buff *skb);
419 static inline void neigh_release(struct neighbour *neigh)
421 if (refcount_dec_and_test(&neigh->refcnt))
422 neigh_destroy(neigh);
425 static inline struct neighbour * neigh_clone(struct neighbour *neigh)
427 if (neigh)
428 refcount_inc(&neigh->refcnt);
429 return neigh;
434 static inline int neigh_event_send(struct neighbour *neigh, struct sk_buff *skb)
438 if (READ_ONCE(neigh->used) != now)
439 WRITE_ONCE(neigh->used, now);
440 if (!(neigh->nud_state&(NUD_CONNECTED|NUD_DELAY|NUD_PROBE)))
441 return __neigh_event_send(neigh, skb);
559 static inline void neigh_update_is_router(struct neighbour *neigh, u32 flags,
565 if ((neigh->flags ^ ndm_flags) & NTF_ROUTER) {
567 neigh->flags |= NTF_ROUTER;
569 neigh->flags &= ~NTF_ROUTER;