Lines Matching defs:neighbour
5 #include <linux/neighbour.h>
8 * Generic neighbour manipulation
17 * - Add neighbour cache statistics like rtstat
41 struct neighbour;
74 int (*neigh_setup)(struct neighbour *);
134 struct neighbour {
135 struct neighbour __rcu *next;
155 int (*output)(struct neighbour *, struct sk_buff *);
165 void (*solicit)(struct neighbour *, struct sk_buff *);
166 void (*error_report)(struct neighbour *, struct sk_buff *);
167 int (*output)(struct neighbour *, struct sk_buff *);
168 int (*connected_output)(struct neighbour *, struct sk_buff *);
181 * neighbour table manipulation
187 struct neighbour __rcu **hash_buckets;
202 bool (*key_eq)(const struct neighbour *, const void *pkey);
203 int (*constructor)(struct neighbour *);
250 static inline void *neighbour_priv(const struct neighbour *n)
266 static inline bool neigh_key_eq32(const struct neighbour *n, const void *pkey)
271 static inline bool neigh_key_eq128(const struct neighbour *n, const void *pkey)
280 static inline struct neighbour *___neigh_lookup_noref(
282 bool (*key_eq)(const struct neighbour *n, const void *pkey),
290 struct neighbour *n;
304 static inline struct neighbour *__neigh_lookup_noref(struct neigh_table *tbl,
313 struct neighbour *neigh_lookup(struct neigh_table *tbl, const void *pkey,
315 struct neighbour *__neigh_create(struct neigh_table *tbl, const void *pkey,
317 static inline struct neighbour *neigh_create(struct neigh_table *tbl,
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);
328 bool neigh_remove_one(struct neighbour *ndel, struct neigh_table *tbl);
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);
335 struct neighbour *neigh_event_ns(struct neigh_table *tbl,
366 void neigh_app_ns(struct neighbour *n);
368 void (*cb)(struct neighbour *, void *), void *cookie);
370 int (*cb)(struct neighbour *));
380 struct neighbour *n, loff_t *pos);
419 static inline void neigh_release(struct neighbour *neigh)
425 static inline struct neighbour * neigh_clone(struct neighbour *neigh)
434 static inline int neigh_event_send(struct neighbour *neigh, struct sk_buff *skb)
499 static inline int neigh_output(struct neighbour *n, struct sk_buff *skb,
515 static inline struct neighbour *
518 struct neighbour *n = neigh_lookup(tbl, pkey, dev);
527 static inline struct neighbour *
531 struct neighbour *n = neigh_lookup(tbl, pkey, dev);
548 static inline void neigh_ha_snapshot(char *dst, const struct neighbour *n,
559 static inline void neigh_update_is_router(struct neighbour *neigh, u32 flags,