Lines Matching defs:ta_state

84  * typedef int (ta_init)(struct ip_fw_chain *ch, void **ta_state,
91 * * Caller may want to save configuration state pointer to @ta_state
101 * typedef void (ta_destroy)(void *ta_state, struct table_info *ti);
133 * typedef int (ta_add)(void *ta_state, struct table_info *ti,
153 * typedef int (ta_del)(void *ta_state, struct table_info *ti,
178 * typedef int ta_find_tentry(void *ta_state, struct table_info *ti,
189 * typedef int (ta_need_modify)(void *ta_state, struct table_info *ti,
209 * typedef int (ta_fill_mod)(void *ta_state, struct table_info *ti,
219 * typedef void (ta_modify)(void *ta_state, struct table_info *ti,
239 * typedef void (ta_change_ti)(void *ta_state, struct table_info *ti);
248 * typedef void ta_foreach(void *ta_state, struct table_info *ti,
258 * typedef int ta_dump_tentry(void *ta_state, struct table_info *ti, void *e,
266 * typedef void (ta_print_config)(void *ta_state, struct table_info *ti,
276 * typedef void ta_dump_tinfo(void *ta_state, struct table_info *ti,
383 static int ta_init_addr_radix(struct ip_fw_chain *ch, void **ta_state,
386 static void ta_destroy_addr_radix(void *ta_state, struct table_info *ti);
387 static void ta_dump_addr_radix_tinfo(void *ta_state, struct table_info *ti,
389 static int ta_dump_addr_radix_tentry(void *ta_state, struct table_info *ti,
391 static int ta_find_addr_radix_tentry(void *ta_state, struct table_info *ti,
393 static void ta_foreach_addr_radix(void *ta_state, struct table_info *ti,
399 static int ta_add_addr_radix(void *ta_state, struct table_info *ti,
403 static int ta_del_addr_radix(void *ta_state, struct table_info *ti,
407 static int ta_need_modify_radix(void *ta_state, struct table_info *ti,
447 ta_init_addr_radix(struct ip_fw_chain *ch, void **ta_state, struct table_info *ti,
461 *ta_state = cfg;
481 ta_destroy_addr_radix(void *ta_state, struct table_info *ti)
486 cfg = (struct addr_radix_cfg *)ta_state;
503 ta_dump_addr_radix_tinfo(void *ta_state, struct table_info *ti, ipfw_ta_tinfo *tinfo)
507 cfg = (struct addr_radix_cfg *)ta_state;
519 ta_dump_addr_radix_tentry(void *ta_state, struct table_info *ti, void *e,
550 ta_find_addr_radix_tentry(void *ta_state, struct table_info *ti,
572 ta_dump_addr_radix_tentry(ta_state, ti, e, tent);
580 ta_foreach_addr_radix(void *ta_state, struct table_info *ti, ta_foreach_f *f,
714 ta_add_addr_radix(void *ta_state, struct table_info *ti, struct tentry_info *tei,
723 cfg = (struct addr_radix_cfg *)ta_state;
815 ta_del_addr_radix(void *ta_state, struct table_info *ti, struct tentry_info *tei,
823 cfg = (struct addr_radix_cfg *)ta_state;
866 ta_need_modify_radix(void *ta_state, struct table_info *ti, uint32_t count,
967 static void ta_print_chash_config(void *ta_state, struct table_info *ti,
970 static int ta_init_chash(struct ip_fw_chain *ch, void **ta_state,
972 static void ta_destroy_chash(void *ta_state, struct table_info *ti);
973 static void ta_dump_chash_tinfo(void *ta_state, struct table_info *ti,
975 static int ta_dump_chash_tentry(void *ta_state, struct table_info *ti,
980 static int ta_find_chash_tentry(void *ta_state, struct table_info *ti,
982 static void ta_foreach_chash(void *ta_state, struct table_info *ti,
986 static int ta_add_chash(void *ta_state, struct table_info *ti,
990 static int ta_del_chash(void *ta_state, struct table_info *ti,
994 static int ta_need_modify_chash(void *ta_state, struct table_info *ti,
997 static int ta_fill_mod_chash(void *ta_state, struct table_info *ti, void *ta_buf,
999 static void ta_modify_chash(void *ta_state, struct table_info *ti, void *ta_buf,
1245 ta_print_chash_config(void *ta_state, struct table_info *ti, char *buf,
1250 cfg = (struct chash_cfg *)ta_state;
1277 ta_init_chash(struct ip_fw_chain *ch, void **ta_state, struct table_info *ti,
1306 *ta_state = cfg;
1331 ta_destroy_chash(void *ta_state, struct table_info *ti)
1337 cfg = (struct chash_cfg *)ta_state;
1354 ta_dump_chash_tinfo(void *ta_state, struct table_info *ti, ipfw_ta_tinfo *tinfo)
1358 cfg = (struct chash_cfg *)ta_state;
1372 ta_dump_chash_tentry(void *ta_state, struct table_info *ti, void *e,
1378 cfg = (struct chash_cfg *)ta_state;
1460 ta_find_chash_tentry(void *ta_state, struct table_info *ti,
1470 cfg = (struct chash_cfg *)ta_state;
1490 ta_dump_chash_tentry(ta_state, ti, tmp, tent);
1507 ta_dump_chash_tentry(ta_state, ti, tmp, tent);
1516 ta_foreach_chash(void *ta_state, struct table_info *ti, ta_foreach_f *f,
1523 cfg = (struct chash_cfg *)ta_state;
1557 ta_add_chash(void *ta_state, struct table_info *ti, struct tentry_info *tei,
1567 cfg = (struct chash_cfg *)ta_state;
1643 ta_del_chash(void *ta_state, struct table_info *ti, struct tentry_info *tei,
1652 cfg = (struct chash_cfg *)ta_state;
1711 ta_need_modify_chash(void *ta_state, struct table_info *ti, uint32_t count,
1723 cfg = (struct chash_cfg *)ta_state;
1777 ta_fill_mod_chash(void *ta_state, struct table_info *ti, void *ta_buf,
1789 ta_modify_chash(void *ta_state, struct table_info *ti, void *ta_buf,
1801 cfg = (struct chash_cfg *)ta_state;
1902 * - "struct iftable_cfg" is allocated to store table state (ta_state).
1944 static int ta_init_ifidx(struct ip_fw_chain *ch, void **ta_state,
1946 static void ta_change_ti_ifidx(void *ta_state, struct table_info *ti);
1949 static void ta_destroy_ifidx(void *ta_state, struct table_info *ti);
1950 static void ta_dump_ifidx_tinfo(void *ta_state, struct table_info *ti,
1954 static int ta_add_ifidx(void *ta_state, struct table_info *ti,
1958 static int ta_del_ifidx(void *ta_state, struct table_info *ti,
1963 static int ta_need_modify_ifidx(void *ta_state, struct table_info *ti,
1966 static int ta_fill_mod_ifidx(void *ta_state, struct table_info *ti,
1968 static void ta_modify_ifidx(void *ta_state, struct table_info *ti, void *ta_buf,
1971 static int ta_dump_ifidx_tentry(void *ta_state, struct table_info *ti, void *e,
1973 static int ta_find_ifidx_tentry(void *ta_state, struct table_info *ti,
1977 static void ta_foreach_ifidx(void *ta_state, struct table_info *ti,
2100 ta_init_ifidx(struct ip_fw_chain *ch, void **ta_state, struct table_info *ti,
2113 *ta_state = icfg;
2124 ta_change_ti_ifidx(void *ta_state, struct table_info *ti)
2128 icfg = (struct iftable_cfg *)ta_state;
2152 ta_destroy_ifidx(void *ta_state, struct table_info *ti)
2157 icfg = (struct iftable_cfg *)ta_state;
2176 ta_dump_ifidx_tinfo(void *ta_state, struct table_info *ti, ipfw_ta_tinfo *tinfo)
2180 cfg = (struct iftable_cfg *)ta_state;
2225 ta_add_ifidx(void *ta_state, struct table_info *ti, struct tentry_info *tei,
2238 icfg = (struct iftable_cfg *)ta_state;
2307 ta_del_ifidx(void *ta_state, struct table_info *ti, struct tentry_info *tei,
2319 icfg = (struct iftable_cfg *)ta_state;
2419 ta_need_modify_ifidx(void *ta_state, struct table_info *ti, uint32_t count,
2425 cfg = (struct iftable_cfg *)ta_state;
2461 ta_fill_mod_ifidx(void *ta_state, struct table_info *ti, void *ta_buf,
2468 icfg = (struct iftable_cfg *)ta_state;
2485 ta_modify_ifidx(void *ta_state, struct table_info *ti, void *ta_buf,
2493 icfg = (struct iftable_cfg *)ta_state;
2517 ta_dump_ifidx_tentry(void *ta_state, struct table_info *ti, void *e,
2532 ta_find_ifidx_tentry(void *ta_state, struct table_info *ti,
2539 icfg = (struct iftable_cfg *)ta_state;
2548 ta_dump_ifidx_tentry(ta_state, ti, ife, tent);
2575 ta_foreach_ifidx(void *ta_state, struct table_info *ti, ta_foreach_f *f,
2581 icfg = (struct iftable_cfg *)ta_state;
2645 static int ta_init_numarray(struct ip_fw_chain *ch, void **ta_state,
2647 static void ta_destroy_numarray(void *ta_state, struct table_info *ti);
2648 static void ta_dump_numarray_tinfo(void *ta_state, struct table_info *ti,
2652 static int ta_add_numarray(void *ta_state, struct table_info *ti,
2654 static int ta_del_numarray(void *ta_state, struct table_info *ti,
2658 static int ta_need_modify_numarray(void *ta_state, struct table_info *ti,
2661 static int ta_fill_mod_numarray(void *ta_state, struct table_info *ti,
2663 static void ta_modify_numarray(void *ta_state, struct table_info *ti,
2666 static int ta_dump_numarray_tentry(void *ta_state, struct table_info *ti,
2668 static int ta_find_numarray_tentry(void *ta_state, struct table_info *ti,
2670 static void ta_foreach_numarray(void *ta_state, struct table_info *ti,
2718 ta_init_numarray(struct ip_fw_chain *ch, void **ta_state, struct table_info *ti,
2729 *ta_state = cfg;
2740 ta_destroy_numarray(void *ta_state, struct table_info *ti)
2744 cfg = (struct numarray_cfg *)ta_state;
2756 ta_dump_numarray_tinfo(void *ta_state, struct table_info *ti, ipfw_ta_tinfo *tinfo)
2760 cfg = (struct numarray_cfg *)ta_state;
2785 ta_add_numarray(void *ta_state, struct table_info *ti, struct tentry_info *tei,
2795 cfg = (struct numarray_cfg *)ta_state;
2835 ta_del_numarray(void *ta_state, struct table_info *ti, struct tentry_info *tei,
2844 cfg = (struct numarray_cfg *)ta_state;
2876 ta_need_modify_numarray(void *ta_state, struct table_info *ti, uint32_t count,
2882 cfg = (struct numarray_cfg *)ta_state;
2918 ta_fill_mod_numarray(void *ta_state, struct table_info *ti, void *ta_buf,
2925 cfg = (struct numarray_cfg *)ta_state;
2942 ta_modify_numarray(void *ta_state, struct table_info *ti, void *ta_buf,
2950 cfg = (struct numarray_cfg *)ta_state;
2974 ta_dump_numarray_tentry(void *ta_state, struct table_info *ti, void *e,
2988 ta_find_numarray_tentry(void *ta_state, struct table_info *ti,
2996 ta_dump_numarray_tentry(ta_state, ti, ri, tent);
3004 ta_foreach_numarray(void *ta_state, struct table_info *ti, ta_foreach_f *f,
3011 cfg = (struct numarray_cfg *)ta_state;
3107 static int ta_init_fhash(struct ip_fw_chain *ch, void **ta_state,
3109 static void ta_destroy_fhash(void *ta_state, struct table_info *ti);
3110 static void ta_dump_fhash_tinfo(void *ta_state, struct table_info *ti,
3112 static int ta_dump_fhash_tentry(void *ta_state, struct table_info *ti,
3115 static int ta_find_fhash_tentry(void *ta_state, struct table_info *ti,
3117 static void ta_foreach_fhash(void *ta_state, struct table_info *ti,
3121 static int ta_add_fhash(void *ta_state, struct table_info *ti,
3125 static int ta_del_fhash(void *ta_state, struct table_info *ti,
3129 static int ta_need_modify_fhash(void *ta_state, struct table_info *ti,
3132 static int ta_fill_mod_fhash(void *ta_state, struct table_info *ti,
3134 static void ta_modify_fhash(void *ta_state, struct table_info *ti, void *ta_buf,
3258 ta_init_fhash(struct ip_fw_chain *ch, void **ta_state, struct table_info *ti,
3302 *ta_state = cfg;
3312 ta_destroy_fhash(void *ta_state, struct table_info *ti)
3318 cfg = (struct fhash_cfg *)ta_state;
3332 ta_dump_fhash_tinfo(void *ta_state, struct table_info *ti, ipfw_ta_tinfo *tinfo)
3336 cfg = (struct fhash_cfg *)ta_state;
3347 ta_dump_fhash_tentry(void *ta_state, struct table_info *ti, void *e,
3423 ta_find_fhash_tentry(void *ta_state, struct table_info *ti,
3435 cfg = (struct fhash_cfg *)ta_state;
3459 ta_dump_fhash_tentry(ta_state, ti, tmp, tent);
3468 ta_foreach_fhash(void *ta_state, struct table_info *ti, ta_foreach_f *f,
3475 cfg = (struct fhash_cfg *)ta_state;
3513 ta_add_fhash(void *ta_state, struct table_info *ti, struct tentry_info *tei,
3524 cfg = (struct fhash_cfg *)ta_state;
3586 ta_del_fhash(void *ta_state, struct table_info *ti, struct tentry_info *tei,
3596 cfg = (struct fhash_cfg *)ta_state;
3641 ta_need_modify_fhash(void *ta_state, struct table_info *ti, uint32_t count,
3646 cfg = (struct fhash_cfg *)ta_state;
3684 ta_fill_mod_fhash(void *ta_state, struct table_info *ti, void *ta_buf,
3696 ta_modify_fhash(void *ta_state, struct table_info *ti, void *ta_buf,
3708 cfg = (struct fhash_cfg *)ta_state;
3779 static void ta_print_kfib_config(void *ta_state, struct table_info *ti,
3781 static int ta_init_kfib(struct ip_fw_chain *ch, void **ta_state,
3783 static void ta_destroy_kfib(void *ta_state, struct table_info *ti);
3784 static void ta_dump_kfib_tinfo(void *ta_state, struct table_info *ti,
3786 static int ta_dump_kfib_tentry(void *ta_state, struct table_info *ti, void *e,
3790 static int ta_find_kfib_tentry(void *ta_state, struct table_info *ti,
3792 static void ta_foreach_kfib(void *ta_state, struct table_info *ti,
3856 ta_print_kfib_config(void *ta_state, struct table_info *ti, char *buf,
3867 ta_init_kfib(struct ip_fw_chain *ch, void **ta_state, struct table_info *ti,
3889 ta_destroy_kfib(void *ta_state, struct table_info *ti)
3898 ta_dump_kfib_tinfo(void *ta_state, struct table_info *ti, ipfw_ta_tinfo *tinfo)
3937 ta_find_kfib_tentry(void *ta_state, struct table_info *ti,
3976 ta_dump_kfib_tentry(void *ta_state, struct table_info *ti, void *e,
3994 ta_foreach_kfib(void *ta_state, struct table_info *ti, ta_foreach_f *f,
4053 ta_init_mac_radix(struct ip_fw_chain *ch, void **ta_state, struct table_info *ti,
4063 *ta_state = cfg;
4070 ta_destroy_mac_radix(void *ta_state, struct table_info *ti)
4075 cfg = (struct mac_radix_cfg *)ta_state;
4152 ta_add_mac_radix(void *ta_state, struct table_info *ti, struct tentry_info *tei,
4161 cfg = (struct mac_radix_cfg *)ta_state;
4234 ta_del_mac_radix(void *ta_state, struct table_info *ti, struct tentry_info *tei,
4242 cfg = (struct mac_radix_cfg *)ta_state;
4262 ta_foreach_mac_radix(void *ta_state, struct table_info *ti, ta_foreach_f *f,
4272 ta_dump_mac_radix_tinfo(void *ta_state, struct table_info *ti, ipfw_ta_tinfo *tinfo)
4276 cfg = (struct mac_radix_cfg *)ta_state;
4285 ta_dump_mac_radix_tentry(void *ta_state, struct table_info *ti, void *e,
4299 ta_find_mac_radix_tentry(void *ta_state, struct table_info *ti,
4315 ta_dump_mac_radix_tentry(ta_state, ti, e, tent);