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);
2444 in_lltable_free_entry(struct lltable *llt, struct llentry *lle) in in_lltable_free_entry() argument
2450 KASSERT(llt != NULL, ("lltable is NULL")); in in_lltable_free_entry()
2454 ifp = llt->llt_ifp; in in_lltable_free_entry()
2455 IF_AFDATA_WLOCK_ASSERT(ifp, llt->llt_af); in in_lltable_free_entry()
2456 lltable_unlink_entry(llt, lle); in in_lltable_free_entry()
2520 in_lltable_find_dst(struct lltable *llt, struct in_addr dst) in in_lltable_find_dst() argument
2526 hashidx = in_lltable_hash_dst(dst, llt->llt_hsize); in in_lltable_find_dst()
2527 lleh = &llt->lle_head[hashidx]; in in_lltable_find_dst()
2541 in_lltable_delete_entry(struct lltable *llt, struct llentry *lle) in in_lltable_delete_entry() argument
2543 #pragma unused(llt) in in_lltable_delete_entry()
2553 in_lltable_alloc(struct lltable *llt, uint16_t flags, const struct sockaddr *l3addr) in in_lltable_alloc() argument
2556 struct ifnet *ifp = llt->llt_ifp; in in_lltable_alloc()
2594 in_lltable_lookup(struct lltable *llt, uint16_t flags, const struct sockaddr *l3addr) in in_lltable_lookup() argument
2599 IF_AFDATA_WLOCK_ASSERT(llt->llt_ifp, llt->llt_af); in in_lltable_lookup()
2603 lle = in_lltable_find_dst(llt, sin->sin_addr); in in_lltable_lookup()
2627 in_lltable_dump_entry(struct lltable *llt, struct llentry *lle, in in_lltable_dump_entry() argument
2630 struct ifnet *ifp = llt->llt_ifp; in in_lltable_dump_entry()
2696 struct lltable *llt; in in_lltattach() local
2698 llt = lltable_allocate_htbl(IN_LLTBL_DEFAULT_HSIZE); in in_lltattach()
2699 llt->llt_af = AF_INET; in in_lltattach()
2700 llt->llt_ifp = ifp; in in_lltattach()
2702 llt->llt_lookup = in_lltable_lookup; in in_lltattach()
2703 llt->llt_alloc_entry = in_lltable_alloc; in in_lltattach()
2704 llt->llt_delete_entry = in_lltable_delete_entry; in in_lltattach()
2705 llt->llt_dump_entry = in_lltable_dump_entry; in in_lltattach()
2706 llt->llt_hash = in_lltable_hash; in in_lltattach()
2707 llt->llt_fill_sa_entry = in_lltable_fill_sa_entry; in in_lltattach()
2708 llt->llt_free_entry = in_lltable_free_entry; in in_lltattach()
2709 llt->llt_match_prefix = in_lltable_match_prefix; in in_lltattach()
2710 lltable_link(llt); in in_lltattach()
2712 return llt; in in_lltattach()