Lines Matching refs:llt

79 	struct lltable *llt;
83 SLIST_FOREACH(llt, &V_lltables, llt_link) {
84 if (llt->llt_af == af) {
85 error = llt->llt_dump(llt, wr);
167 lltable_free(struct lltable *llt)
172 KASSERT(llt != NULL, ("%s: llt is NULL", __func__));
175 SLIST_REMOVE(&V_lltables, llt, lltable, llt_link);
178 IF_AFDATA_WLOCK(llt->llt_ifp);
180 LIST_FOREACH_SAFE(lle, &llt->lle_head[i], lle_next, next) {
187 IF_AFDATA_WUNLOCK(llt->llt_ifp);
189 free(llt, M_LLTABLE);
196 struct lltable *llt;
201 SLIST_FOREACH(llt, &V_lltables, llt_link) {
202 if (llt->llt_af != af)
206 LIST_FOREACH(lle, &llt->lle_head[i], lle_next) {
224 struct lltable *llt;
227 SLIST_FOREACH(llt, &V_lltables, llt_link) {
228 if (llt->llt_af != af)
231 llt->llt_prefix_free(llt, prefix, mask, flags);
244 struct lltable *llt;
247 llt = malloc(sizeof(struct lltable), M_LLTABLE, M_WAITOK);
249 llt->llt_af = af;
250 llt->llt_ifp = ifp;
252 LIST_INIT(&llt->lle_head[i]);
255 SLIST_INSERT_HEAD(&V_lltables, llt, llt_link);
258 return (llt);
271 struct lltable *llt;
306 SLIST_FOREACH(llt, &V_lltables, llt_link) {
307 if (llt->llt_af == dst->sa_family &&
308 llt->llt_ifp == ifp)
312 KASSERT(llt != NULL, ("Yep, ugly hacks are bad\n"));
318 lle = lla_lookup(llt, flags, dst);
456 llatbl_llt_show(struct lltable *llt)
461 db_printf("llt=%p llt_af=%d llt_ifp=%p\n",
462 llt, llt->llt_af, llt->llt_ifp);
465 LIST_FOREACH(lle, &llt->lle_head[i], lle_next) {
488 struct lltable *llt;
495 SLIST_FOREACH(llt, &V_lltables, llt_link) {
496 db_printf("llt=%p llt_af=%d llt_ifp=%p(%s)\n",
497 llt, llt->llt_af, llt->llt_ifp,
498 (llt->llt_ifp != NULL) ?
499 llt->llt_ifp->if_xname : "?");
501 llatbl_llt_show(llt);