| 855 | */ |
| 856 | |
| 857 | static int |
| 858 | table_show_one(ipfw_xtable_info *i, void *arg) |
| 859 | { |
| 860 | ipfw_obj_header *oh = NULL; |
| 861 | int error; |
| 862 | int is_all; |
| 863 | |
| 864 | is_all = arg == NULL ? 0 : 1; |
| 865 | |
| 866 | if ((error = table_do_get_list(i, &oh)) != 0) { |
| 867 | err(EX_OSERR, "Error requesting table %s list", i->tablename); |
| 868 | return (error); |
| 869 | } |
| 870 | |
| 871 | table_show_list(oh, is_all); |
| 872 | |
| 873 | free(oh); |
| 874 | return (0); |
| 875 | } |
| 876 | |
| 877 | static int |
| 878 | table_flush_one(ipfw_xtable_info *i, void *arg) |
no test coverage detected