Lines Matching refs:neighbour

5 #include <linux/neighbour.h>
8 * Generic neighbour manipulation
17 * - Add neighbour cache statistics like rtstat
41 struct neighbour;
76 int (*neigh_setup)(struct neighbour *);
137 struct neighbour {
138 struct neighbour __rcu *next;
158 int (*output)(struct neighbour *, struct sk_buff *);
170 void (*solicit)(struct neighbour *, struct sk_buff *);
171 void (*error_report)(struct neighbour *, struct sk_buff *);
172 int (*output)(struct neighbour *, struct sk_buff *);
173 int (*connected_output)(struct neighbour *, struct sk_buff *);
187 * neighbour table manipulation
193 struct neighbour __rcu **hash_buckets;
208 bool (*key_eq)(const struct neighbour *, const void *pkey);
209 int (*constructor)(struct neighbour *);
255 static inline void *neighbour_priv(const struct neighbour *n)
279 static inline bool neigh_key_eq32(const struct neighbour *n, const void *pkey)
284 static inline bool neigh_key_eq128(const struct neighbour *n, const void *pkey)
293 static inline struct neighbour *___neigh_lookup_noref(
295 bool (*key_eq)(const struct neighbour *n, const void *pkey),
303 struct neighbour *n;
317 static inline struct neighbour *__neigh_lookup_noref(struct neigh_table *tbl,
324 static inline void neigh_confirm(struct neighbour *n)
329 /* avoid dirtying neighbour */
337 struct neighbour *neigh_lookup(struct neigh_table *tbl, const void *pkey,
339 struct neighbour *__neigh_create(struct neigh_table *tbl, const void *pkey,
341 static inline struct neighbour *neigh_create(struct neigh_table *tbl,
347 void neigh_destroy(struct neighbour *neigh);
348 int __neigh_event_send(struct neighbour *neigh, struct sk_buff *skb,
350 int neigh_update(struct neighbour *neigh, const u8 *lladdr, u8 new, u32 flags,
352 void __neigh_set_probe_once(struct neighbour *neigh);
353 bool neigh_remove_one(struct neighbour *ndel, struct neigh_table *tbl);
357 int neigh_resolve_output(struct neighbour *neigh, struct sk_buff *skb);
358 int neigh_connected_output(struct neighbour *neigh, struct sk_buff *skb);
359 int neigh_direct_output(struct neighbour *neigh, struct sk_buff *skb);
360 struct neighbour *neigh_event_ns(struct neigh_table *tbl,
391 void neigh_app_ns(struct neighbour *n);
393 void (*cb)(struct neighbour *, void *), void *cookie);
395 int (*cb)(struct neighbour *));
403 struct neighbour *n, loff_t *pos);
442 static inline void neigh_release(struct neighbour *neigh)
448 static inline struct neighbour * neigh_clone(struct neighbour *neigh)
457 static __always_inline int neigh_event_send_probe(struct neighbour *neigh,
470 static inline int neigh_event_send(struct neighbour *neigh, struct sk_buff *skb)
529 static inline int neigh_output(struct neighbour *n, struct sk_buff *skb,
545 static inline struct neighbour *
548 struct neighbour *n = neigh_lookup(tbl, pkey, dev);
557 static inline struct neighbour *
561 struct neighbour *n = neigh_lookup(tbl, pkey, dev);
578 static inline void neigh_ha_snapshot(char *dst, const struct neighbour *n,
589 static inline void neigh_update_is_router(struct neighbour *neigh, u32 flags,