MCPcopy Create free account
hub / github.com/F-Stack/f-stack / table_show_one

Function table_show_one

tools/ipfw/tables.c:857–875  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

855 */
856
857static int
858table_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
877static int
878table_flush_one(ipfw_xtable_info *i, void *arg)

Callers 1

ipfw_table_handlerFunction · 0.85

Calls 3

table_do_get_listFunction · 0.85
table_show_listFunction · 0.85
freeFunction · 0.50

Tested by

no test coverage detected