Lines Matching refs:tb

655 	struct ta_buf_radix *tb;
663 tb = (struct ta_buf_radix *)ta_buf;
676 mask = (struct sockaddr *)&tb->addr.a4.ma;
677 tb->ent_ptr = ent;
688 mask = (struct sockaddr *)&tb->addr.a6.ma;
689 tb->ent_ptr = xent;
698 tb->addr_ptr = addr;
700 tb->mask_ptr = mask;
712 struct ta_buf_radix *tb;
716 tb = (struct ta_buf_radix *)ta_buf;
721 ((struct radix_addr_entry *)tb->ent_ptr)->value = tei->value;
724 ((struct radix_addr_xentry *)tb->ent_ptr)->value = tei->value;
728 rn = rnh->rnh_lookup(tb->addr_ptr, tb->mask_ptr, &rnh->rh);
752 rn = rnh->rnh_addaddr(tb->addr_ptr, tb->mask_ptr, &rnh->rh,tb->ent_ptr);
762 tb->ent_ptr = NULL;
772 struct ta_buf_radix *tb;
776 tb = (struct ta_buf_radix *)ta_buf;
785 addr = (struct sockaddr *)&tb->addr.a4.sa;
786 mask = (struct sockaddr *)&tb->addr.a4.ma;
792 addr = (struct sockaddr *)&tb->addr.a6.sa;
793 mask = (struct sockaddr *)&tb->addr.a6.ma;
799 tb->addr_ptr = addr;
801 tb->mask_ptr = mask;
813 struct ta_buf_radix *tb;
816 tb = (struct ta_buf_radix *)ta_buf;
823 rn = rnh->rnh_deladdr(tb->addr_ptr, tb->mask_ptr, &rnh->rh);
834 tb->ent_ptr = rn;
849 struct ta_buf_radix *tb;
851 tb = (struct ta_buf_radix *)ta_buf;
853 if (tb->ent_ptr != NULL)
854 free(tb->ent_ptr, M_IPFW_TBL);
1536 struct ta_buf_chash *tb;
1540 tb = (struct ta_buf_chash *)ta_buf;
1549 tb->ent_ptr = ent;
1561 struct ta_buf_chash *tb;
1566 tb = (struct ta_buf_chash *)ta_buf;
1567 ent = (struct chashentry *)tb->ent_ptr;
1616 tb->ent_ptr = NULL;
1633 struct ta_buf_chash *tb;
1635 tb = (struct ta_buf_chash *)ta_buf;
1637 return (tei_to_chash_ent(tei, &tb->ent));
1647 struct ta_buf_chash *tb;
1651 tb = (struct ta_buf_chash *)ta_buf;
1652 ent = &tb->ent;
1666 tb->ent_ptr = tmp;
1682 tb->ent_ptr = tmp;
1696 struct ta_buf_chash *tb;
1698 tb = (struct ta_buf_chash *)ta_buf;
1700 if (tb->ent_ptr != NULL)
1701 free(tb->ent_ptr, M_IPFW_TBL);
2196 struct ta_buf_ifidx *tb;
2200 tb = (struct ta_buf_ifidx *)ta_buf;
2219 tb->ife = ife;
2230 struct ta_buf_ifidx *tb;
2236 tb = (struct ta_buf_ifidx *)ta_buf;
2239 ife = tb->ife;
2278 tb->ife = NULL;
2292 struct ta_buf_ifidx *tb;
2295 tb = (struct ta_buf_ifidx *)ta_buf;
2315 struct ta_buf_ifidx *tb;
2320 tb = (struct ta_buf_ifidx *)ta_buf;
2323 ife = tb->ife;
2352 tb->ife = ife;
2366 struct ta_buf_ifidx *tb;
2368 tb = (struct ta_buf_ifidx *)ta_buf;
2370 if (tb->ife != NULL)
2371 free(tb->ife, M_IPFW_TBL);
2781 struct ta_buf_numarray *tb;
2783 tb = (struct ta_buf_numarray *)ta_buf;
2785 tb->na.number = *((uint32_t *)tei->paddr);
2795 struct ta_buf_numarray *tb;
2800 tb = (struct ta_buf_numarray *)ta_buf;
2804 tb->na.value = tei->value;
2806 ri = numarray_find(ti, &tb->na.number);
2825 res = badd(&tb->na.number, &tb->na, cfg->main_ptr, cfg->used,
2828 KASSERT(res == 1, ("number %d already exists", tb->na.number));
2845 struct ta_buf_numarray *tb;
2849 tb = (struct ta_buf_numarray *)ta_buf;
2852 ri = numarray_find(ti, &tb->na.number);
2858 res = bdel(&tb->na.number, cfg->main_ptr, cfg->used,
2861 KASSERT(res == 1, ("number %u does not exist", tb->na.number));
3499 struct ta_buf_fhash *tb;
3504 tb = (struct ta_buf_fhash *)ta_buf;
3520 tb->ent_ptr = ent;
3532 struct ta_buf_fhash *tb;
3538 tb = (struct ta_buf_fhash *)ta_buf;
3539 ent = (struct fhashentry *)tb->ent_ptr;
3577 tb->ent_ptr = NULL;
3591 struct ta_buf_fhash *tb;
3593 tb = (struct ta_buf_fhash *)ta_buf;
3595 return (tei_to_fhash_ent(tei, &tb->fe6.e));
3605 struct ta_buf_fhash *tb;
3610 tb = (struct ta_buf_fhash *)ta_buf;
3611 ent = &tb->fe6.e;
3630 tb->ent_ptr = tmp;
3641 struct ta_buf_fhash *tb;
3643 tb = (struct ta_buf_fhash *)ta_buf;
3645 if (tb->ent_ptr != NULL)
3646 free(tb->ent_ptr, M_IPFW_TBL);