Lines Matching refs:llt

149 static void in_lltable_free_entry(struct lltable *llt, struct llentry *lle);
154 static inline struct llentry * in_lltable_find_dst(struct lltable *llt, struct in_addr dst);
155 static void in_lltable_delete_entry(struct lltable *llt, struct llentry *lle);
156 static struct llentry * in_lltable_alloc(struct lltable *llt, uint16_t flags, const struct sockaddr…
157 static struct llentry * in_lltable_lookup(struct lltable *llt, uint16_t flags, const struct sockadd…
158 static int in_lltable_dump_entry(struct lltable *llt, struct llentry *lle, struct sysctl_req *wr);
2466 in_lltable_free_entry(struct lltable *llt, struct llentry *lle) in in_lltable_free_entry() argument
2472 KASSERT(llt != NULL, ("lltable is NULL")); in in_lltable_free_entry()
2476 ifp = llt->llt_ifp; in in_lltable_free_entry()
2477 IF_AFDATA_WLOCK_ASSERT(ifp, llt->llt_af); in in_lltable_free_entry()
2478 lltable_unlink_entry(llt, lle); in in_lltable_free_entry()
2542 in_lltable_find_dst(struct lltable *llt, struct in_addr dst) in in_lltable_find_dst() argument
2548 hashidx = in_lltable_hash_dst(dst, llt->llt_hsize); in in_lltable_find_dst()
2549 lleh = &llt->lle_head[hashidx]; in in_lltable_find_dst()
2563 in_lltable_delete_entry(struct lltable *llt, struct llentry *lle) in in_lltable_delete_entry() argument
2565 #pragma unused(llt) in in_lltable_delete_entry()
2575 in_lltable_alloc(struct lltable *llt, uint16_t flags, const struct sockaddr *l3addr) in in_lltable_alloc() argument
2578 struct ifnet *ifp = llt->llt_ifp; in in_lltable_alloc()
2616 in_lltable_lookup(struct lltable *llt, uint16_t flags, const struct sockaddr *l3addr) in in_lltable_lookup() argument
2621 IF_AFDATA_WLOCK_ASSERT(llt->llt_ifp, llt->llt_af); in in_lltable_lookup()
2625 lle = in_lltable_find_dst(llt, sin->sin_addr); in in_lltable_lookup()
2649 in_lltable_dump_entry(struct lltable *llt, struct llentry *lle, in in_lltable_dump_entry() argument
2652 struct ifnet *ifp = llt->llt_ifp; in in_lltable_dump_entry()
2718 struct lltable *llt; in in_lltattach() local
2720 llt = lltable_allocate_htbl(IN_LLTBL_DEFAULT_HSIZE); in in_lltattach()
2721 llt->llt_af = AF_INET; in in_lltattach()
2722 llt->llt_ifp = ifp; in in_lltattach()
2724 llt->llt_lookup = in_lltable_lookup; in in_lltattach()
2725 llt->llt_alloc_entry = in_lltable_alloc; in in_lltattach()
2726 llt->llt_delete_entry = in_lltable_delete_entry; in in_lltattach()
2727 llt->llt_dump_entry = in_lltable_dump_entry; in in_lltattach()
2728 llt->llt_hash = in_lltable_hash; in in_lltattach()
2729 llt->llt_fill_sa_entry = in_lltable_fill_sa_entry; in in_lltattach()
2730 llt->llt_free_entry = in_lltable_free_entry; in in_lltattach()
2731 llt->llt_match_prefix = in_lltable_match_prefix; in in_lltattach()
2732 lltable_link(llt); in in_lltattach()
2734 return llt; in in_lltattach()