Lines Matching refs:neigh
338 void neigh_destroy(struct neighbour *neigh);
339 int __neigh_event_send(struct neighbour *neigh, struct sk_buff *skb);
340 int neigh_update(struct neighbour *neigh, const u8 *lladdr, u8 new, u32 flags,
342 void __neigh_set_probe_once(struct neighbour *neigh);
347 int neigh_resolve_output(struct neighbour *neigh, struct sk_buff *skb);
348 int neigh_connected_output(struct neighbour *neigh, struct sk_buff *skb);
349 int neigh_direct_output(struct neighbour *neigh, struct sk_buff *skb);
434 static inline void neigh_release(struct neighbour *neigh) in neigh_release() argument
436 if (refcount_dec_and_test(&neigh->refcnt)) in neigh_release()
437 neigh_destroy(neigh); in neigh_release()
440 static inline struct neighbour * neigh_clone(struct neighbour *neigh) in neigh_clone() argument
442 if (neigh) in neigh_clone()
443 refcount_inc(&neigh->refcnt); in neigh_clone()
444 return neigh; in neigh_clone()
449 static inline int neigh_event_send(struct neighbour *neigh, struct sk_buff *skb) in neigh_event_send() argument
453 if (READ_ONCE(neigh->used) != now) in neigh_event_send()
454 WRITE_ONCE(neigh->used, now); in neigh_event_send()
455 if (!(neigh->nud_state&(NUD_CONNECTED|NUD_DELAY|NUD_PROBE))) in neigh_event_send()
456 return __neigh_event_send(neigh, skb); in neigh_event_send()
574 static inline void neigh_update_is_router(struct neighbour *neigh, u32 flags, in neigh_update_is_router() argument
580 if ((neigh->flags ^ ndm_flags) & NTF_ROUTER) { in neigh_update_is_router()
582 neigh->flags |= NTF_ROUTER; in neigh_update_is_router()
584 neigh->flags &= ~NTF_ROUTER; in neigh_update_is_router()