• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/netpfil/ipfw/

Lines Matching defs:ta_state

85  * typedef int (ta_init)(struct ip_fw_chain *ch, void **ta_state,
92 * * Caller may want to save configuration state pointer to @ta_state
102 * typedef void (ta_destroy)(void *ta_state, struct table_info *ti);
134 * typedef int (ta_add)(void *ta_state, struct table_info *ti,
154 * typedef int (ta_del)(void *ta_state, struct table_info *ti,
179 * typedef int ta_find_tentry(void *ta_state, struct table_info *ti,
190 * typedef int (ta_need_modify)(void *ta_state, struct table_info *ti,
210 * typedef int (ta_fill_mod)(void *ta_state, struct table_info *ti,
220 * typedef void (ta_modify)(void *ta_state, struct table_info *ti,
240 * typedef void (ta_change_ti)(void *ta_state, struct table_info *ti);
249 * typedef void ta_foreach(void *ta_state, struct table_info *ti,
259 * typedef int ta_dump_tentry(void *ta_state, struct table_info *ti, void *e,
267 * typedef void (ta_print_config)(void *ta_state, struct table_info *ti,
277 * typedef void ta_dump_tinfo(void *ta_state, struct table_info *ti,
373 static int ta_init_radix(struct ip_fw_chain *ch, void **ta_state,
376 static void ta_destroy_radix(void *ta_state, struct table_info *ti);
377 static void ta_dump_radix_tinfo(void *ta_state, struct table_info *ti,
379 static int ta_dump_radix_tentry(void *ta_state, struct table_info *ti,
381 static int ta_find_radix_tentry(void *ta_state, struct table_info *ti,
383 static void ta_foreach_radix(void *ta_state, struct table_info *ti,
389 static int ta_add_radix(void *ta_state, struct table_info *ti,
393 static int ta_del_radix(void *ta_state, struct table_info *ti,
397 static int ta_need_modify_radix(void *ta_state, struct table_info *ti,
437 ta_init_radix(struct ip_fw_chain *ch, void **ta_state, struct table_info *ti,
451 *ta_state = cfg;
471 ta_destroy_radix(void *ta_state, struct table_info *ti)
476 cfg = (struct radix_cfg *)ta_state;
493 ta_dump_radix_tinfo(void *ta_state, struct table_info *ti, ipfw_ta_tinfo *tinfo)
497 cfg = (struct radix_cfg *)ta_state;
509 ta_dump_radix_tentry(void *ta_state, struct table_info *ti, void *e,
540 ta_find_radix_tentry(void *ta_state, struct table_info *ti,
562 ta_dump_radix_tentry(ta_state, ti, e, tent);
570 ta_foreach_radix(void *ta_state, struct table_info *ti, ta_foreach_f *f,
704 ta_add_radix(void *ta_state, struct table_info *ti, struct tentry_info *tei,
713 cfg = (struct radix_cfg *)ta_state;
805 ta_del_radix(void *ta_state, struct table_info *ti, struct tentry_info *tei,
813 cfg = (struct radix_cfg *)ta_state;
856 ta_need_modify_radix(void *ta_state, struct table_info *ti, uint32_t count,
957 static void ta_print_chash_config(void *ta_state, struct table_info *ti,
960 static int ta_init_chash(struct ip_fw_chain *ch, void **ta_state,
962 static void ta_destroy_chash(void *ta_state, struct table_info *ti);
963 static void ta_dump_chash_tinfo(void *ta_state, struct table_info *ti,
965 static int ta_dump_chash_tentry(void *ta_state, struct table_info *ti,
970 static int ta_find_chash_tentry(void *ta_state, struct table_info *ti,
972 static void ta_foreach_chash(void *ta_state, struct table_info *ti,
976 static int ta_add_chash(void *ta_state, struct table_info *ti,
980 static int ta_del_chash(void *ta_state, struct table_info *ti,
984 static int ta_need_modify_chash(void *ta_state, struct table_info *ti,
987 static int ta_fill_mod_chash(void *ta_state, struct table_info *ti, void *ta_buf,
989 static void ta_modify_chash(void *ta_state, struct table_info *ti, void *ta_buf,
1235 ta_print_chash_config(void *ta_state, struct table_info *ti, char *buf,
1240 cfg = (struct chash_cfg *)ta_state;
1267 ta_init_chash(struct ip_fw_chain *ch, void **ta_state, struct table_info *ti,
1296 *ta_state = cfg;
1321 ta_destroy_chash(void *ta_state, struct table_info *ti)
1327 cfg = (struct chash_cfg *)ta_state;
1344 ta_dump_chash_tinfo(void *ta_state, struct table_info *ti, ipfw_ta_tinfo *tinfo)
1348 cfg = (struct chash_cfg *)ta_state;
1362 ta_dump_chash_tentry(void *ta_state, struct table_info *ti, void *e,
1368 cfg = (struct chash_cfg *)ta_state;
1450 ta_find_chash_tentry(void *ta_state, struct table_info *ti,
1460 cfg = (struct chash_cfg *)ta_state;
1480 ta_dump_chash_tentry(ta_state, ti, tmp, tent);
1497 ta_dump_chash_tentry(ta_state, ti, tmp, tent);
1506 ta_foreach_chash(void *ta_state, struct table_info *ti, ta_foreach_f *f,
1513 cfg = (struct chash_cfg *)ta_state;
1547 ta_add_chash(void *ta_state, struct table_info *ti, struct tentry_info *tei,
1557 cfg = (struct chash_cfg *)ta_state;
1633 ta_del_chash(void *ta_state, struct table_info *ti, struct tentry_info *tei,
1642 cfg = (struct chash_cfg *)ta_state;
1701 ta_need_modify_chash(void *ta_state, struct table_info *ti, uint32_t count,
1713 cfg = (struct chash_cfg *)ta_state;
1767 ta_fill_mod_chash(void *ta_state, struct table_info *ti, void *ta_buf,
1779 ta_modify_chash(void *ta_state, struct table_info *ti, void *ta_buf,
1791 cfg = (struct chash_cfg *)ta_state;
1892 * - "struct iftable_cfg" is allocated to store table state (ta_state).
1934 static int ta_init_ifidx(struct ip_fw_chain *ch, void **ta_state,
1936 static void ta_change_ti_ifidx(void *ta_state, struct table_info *ti);
1939 static void ta_destroy_ifidx(void *ta_state, struct table_info *ti);
1940 static void ta_dump_ifidx_tinfo(void *ta_state, struct table_info *ti,
1944 static int ta_add_ifidx(void *ta_state, struct table_info *ti,
1948 static int ta_del_ifidx(void *ta_state, struct table_info *ti,
1953 static int ta_need_modify_ifidx(void *ta_state, struct table_info *ti,
1956 static int ta_fill_mod_ifidx(void *ta_state, struct table_info *ti,
1958 static void ta_modify_ifidx(void *ta_state, struct table_info *ti, void *ta_buf,
1961 static int ta_dump_ifidx_tentry(void *ta_state, struct table_info *ti, void *e,
1963 static int ta_find_ifidx_tentry(void *ta_state, struct table_info *ti,
1967 static void ta_foreach_ifidx(void *ta_state, struct table_info *ti,
2090 ta_init_ifidx(struct ip_fw_chain *ch, void **ta_state, struct table_info *ti,
2103 *ta_state = icfg;
2114 ta_change_ti_ifidx(void *ta_state, struct table_info *ti)
2118 icfg = (struct iftable_cfg *)ta_state;
2142 ta_destroy_ifidx(void *ta_state, struct table_info *ti)
2147 icfg = (struct iftable_cfg *)ta_state;
2166 ta_dump_ifidx_tinfo(void *ta_state, struct table_info *ti, ipfw_ta_tinfo *tinfo)
2170 cfg = (struct iftable_cfg *)ta_state;
2215 ta_add_ifidx(void *ta_state, struct table_info *ti, struct tentry_info *tei,
2228 icfg = (struct iftable_cfg *)ta_state;
2300 ta_del_ifidx(void *ta_state, struct table_info *ti, struct tentry_info *tei,
2312 icfg = (struct iftable_cfg *)ta_state;
2412 ta_need_modify_ifidx(void *ta_state, struct table_info *ti, uint32_t count,
2418 cfg = (struct iftable_cfg *)ta_state;
2454 ta_fill_mod_ifidx(void *ta_state, struct table_info *ti, void *ta_buf,
2461 icfg = (struct iftable_cfg *)ta_state;
2478 ta_modify_ifidx(void *ta_state, struct table_info *ti, void *ta_buf,
2486 icfg = (struct iftable_cfg *)ta_state;
2510 ta_dump_ifidx_tentry(void *ta_state, struct table_info *ti, void *e,
2525 ta_find_ifidx_tentry(void *ta_state, struct table_info *ti,
2532 icfg = (struct iftable_cfg *)ta_state;
2541 ta_dump_ifidx_tentry(ta_state, ti, ife, tent);
2568 ta_foreach_ifidx(void *ta_state, struct table_info *ti, ta_foreach_f *f,
2574 icfg = (struct iftable_cfg *)ta_state;
2638 static int ta_init_numarray(struct ip_fw_chain *ch, void **ta_state,
2640 static void ta_destroy_numarray(void *ta_state, struct table_info *ti);
2641 static void ta_dump_numarray_tinfo(void *ta_state, struct table_info *ti,
2645 static int ta_add_numarray(void *ta_state, struct table_info *ti,
2647 static int ta_del_numarray(void *ta_state, struct table_info *ti,
2651 static int ta_need_modify_numarray(void *ta_state, struct table_info *ti,
2654 static int ta_fill_mod_numarray(void *ta_state, struct table_info *ti,
2656 static void ta_modify_numarray(void *ta_state, struct table_info *ti,
2659 static int ta_dump_numarray_tentry(void *ta_state, struct table_info *ti,
2661 static int ta_find_numarray_tentry(void *ta_state, struct table_info *ti,
2663 static void ta_foreach_numarray(void *ta_state, struct table_info *ti,
2711 ta_init_numarray(struct ip_fw_chain *ch, void **ta_state, struct table_info *ti,
2722 *ta_state = cfg;
2733 ta_destroy_numarray(void *ta_state, struct table_info *ti)
2737 cfg = (struct numarray_cfg *)ta_state;
2749 ta_dump_numarray_tinfo(void *ta_state, struct table_info *ti, ipfw_ta_tinfo *tinfo)
2753 cfg = (struct numarray_cfg *)ta_state;
2778 ta_add_numarray(void *ta_state, struct table_info *ti, struct tentry_info *tei,
2788 cfg = (struct numarray_cfg *)ta_state;
2828 ta_del_numarray(void *ta_state, struct table_info *ti, struct tentry_info *tei,
2837 cfg = (struct numarray_cfg *)ta_state;
2869 ta_need_modify_numarray(void *ta_state, struct table_info *ti, uint32_t count,
2875 cfg = (struct numarray_cfg *)ta_state;
2911 ta_fill_mod_numarray(void *ta_state, struct table_info *ti, void *ta_buf,
2918 cfg = (struct numarray_cfg *)ta_state;
2935 ta_modify_numarray(void *ta_state, struct table_info *ti, void *ta_buf,
2943 cfg = (struct numarray_cfg *)ta_state;
2967 ta_dump_numarray_tentry(void *ta_state, struct table_info *ti, void *e,
2981 ta_find_numarray_tentry(void *ta_state, struct table_info *ti,
2987 cfg = (struct numarray_cfg *)ta_state;
2992 ta_dump_numarray_tentry(ta_state, ti, ri, tent);
3000 ta_foreach_numarray(void *ta_state, struct table_info *ti, ta_foreach_f *f,
3007 cfg = (struct numarray_cfg *)ta_state;
3103 static int ta_init_fhash(struct ip_fw_chain *ch, void **ta_state,
3105 static void ta_destroy_fhash(void *ta_state, struct table_info *ti);
3106 static void ta_dump_fhash_tinfo(void *ta_state, struct table_info *ti,
3108 static int ta_dump_fhash_tentry(void *ta_state, struct table_info *ti,
3111 static int ta_find_fhash_tentry(void *ta_state, struct table_info *ti,
3113 static void ta_foreach_fhash(void *ta_state, struct table_info *ti,
3117 static int ta_add_fhash(void *ta_state, struct table_info *ti,
3121 static int ta_del_fhash(void *ta_state, struct table_info *ti,
3125 static int ta_need_modify_fhash(void *ta_state, struct table_info *ti,
3128 static int ta_fill_mod_fhash(void *ta_state, struct table_info *ti,
3130 static void ta_modify_fhash(void *ta_state, struct table_info *ti, void *ta_buf,
3254 ta_init_fhash(struct ip_fw_chain *ch, void **ta_state, struct table_info *ti,
3298 *ta_state = cfg;
3308 ta_destroy_fhash(void *ta_state, struct table_info *ti)
3314 cfg = (struct fhash_cfg *)ta_state;
3328 ta_dump_fhash_tinfo(void *ta_state, struct table_info *ti, ipfw_ta_tinfo *tinfo)
3332 cfg = (struct fhash_cfg *)ta_state;
3343 ta_dump_fhash_tentry(void *ta_state, struct table_info *ti, void *e,
3354 cfg = (struct fhash_cfg *)ta_state;
3421 ta_find_fhash_tentry(void *ta_state, struct table_info *ti,
3433 cfg = (struct fhash_cfg *)ta_state;
3457 ta_dump_fhash_tentry(ta_state, ti, tmp, tent);
3466 ta_foreach_fhash(void *ta_state, struct table_info *ti, ta_foreach_f *f,
3473 cfg = (struct fhash_cfg *)ta_state;
3511 ta_add_fhash(void *ta_state, struct table_info *ti, struct tentry_info *tei,
3522 cfg = (struct fhash_cfg *)ta_state;
3584 ta_del_fhash(void *ta_state, struct table_info *ti, struct tentry_info *tei,
3594 cfg = (struct fhash_cfg *)ta_state;
3639 ta_need_modify_fhash(void *ta_state, struct table_info *ti, uint32_t count,
3644 cfg = (struct fhash_cfg *)ta_state;
3682 ta_fill_mod_fhash(void *ta_state, struct table_info *ti, void *ta_buf,
3694 ta_modify_fhash(void *ta_state, struct table_info *ti, void *ta_buf,
3706 cfg = (struct fhash_cfg *)ta_state;
3777 static void ta_print_kfib_config(void *ta_state, struct table_info *ti,
3779 static int ta_init_kfib(struct ip_fw_chain *ch, void **ta_state,
3781 static void ta_destroy_kfib(void *ta_state, struct table_info *ti);
3782 static void ta_dump_kfib_tinfo(void *ta_state, struct table_info *ti,
3784 static int ta_dump_kfib_tentry(void *ta_state, struct table_info *ti, void *e,
3788 static int ta_find_kfib_tentry(void *ta_state, struct table_info *ti,
3790 static void ta_foreach_kfib(void *ta_state, struct table_info *ti,
3854 ta_print_kfib_config(void *ta_state, struct table_info *ti, char *buf,
3865 ta_init_kfib(struct ip_fw_chain *ch, void **ta_state, struct table_info *ti,
3887 ta_destroy_kfib(void *ta_state, struct table_info *ti)
3896 ta_dump_kfib_tinfo(void *ta_state, struct table_info *ti, ipfw_ta_tinfo *tinfo)
3935 ta_find_kfib_tentry(void *ta_state, struct table_info *ti,
3974 ta_dump_kfib_tentry(void *ta_state, struct table_info *ti, void *e,
3992 ta_foreach_kfib(void *ta_state, struct table_info *ti, ta_foreach_f *f,