Lines Matching defs:lltable
79 struct lltable *lle_tbl;
193 typedef struct llentry *(llt_lookup_t)(struct lltable *, u_int flags,
195 typedef struct llentry *(llt_create_t)(struct lltable *, u_int flags,
197 typedef int (llt_delete_t)(struct lltable *, u_int flags,
199 typedef void (llt_prefix_free_t)(struct lltable *,
201 typedef int (llt_dump_entry_t)(struct lltable *, struct llentry *,
206 typedef void (llt_free_entry_t)(struct lltable *, struct llentry *);
208 typedef void (llt_free_tbl_t)(struct lltable *);
209 typedef void (llt_link_entry_t)(struct lltable *, struct llentry *);
212 typedef int (llt_foreach_cb_t)(struct lltable *, struct llentry *, void *);
213 typedef int (llt_foreach_entry_t)(struct lltable *, llt_foreach_cb_t *, void *);
215 struct lltable {
216 SLIST_ENTRY(lltable) llt_link;
260 struct lltable *lltable_allocate_htbl(uint32_t hsize);
261 void lltable_free(struct lltable *);
262 void lltable_link(struct lltable *llt);
266 void lltable_purge_entries(struct lltable *);
268 int lltable_dump_entry(struct lltable *, struct llentry *,
272 struct llentry *llentry_alloc(struct ifnet *, struct lltable *,
281 struct llentry *lltable_create_lle(struct lltable *llt, u_int flags,
283 void lltable_link_entry(struct lltable *llt, struct llentry *lle);
284 void lltable_unlink_entry(struct lltable *llt, struct llentry *lle);
285 void lltable_free_entry(struct lltable *llt, struct llentry *lle);
287 struct ifnet *lltable_get_ifp(const struct lltable *llt);
288 int lltable_get_af(const struct lltable *llt);
291 lltable_get_entry_count(struct lltable *llt)
296 int lltable_foreach_lle(struct lltable *llt, llt_foreach_cb_t *f,
302 lla_lookup(struct lltable *llt, u_int flags, const struct sockaddr *l3addr)
309 lla_create(struct lltable *llt, u_int flags, const struct sockaddr *l3addr,
317 lla_delete(struct lltable *llt, u_int flags, const struct sockaddr *l3addr)