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

Function table_destroy_one

tools/ipfw/tables.c:618–632  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

616}
617
618static int
619table_destroy_one(ipfw_xtable_info *i, void *arg)
620{
621 ipfw_obj_header *oh;
622
623 oh = (ipfw_obj_header *)arg;
624 table_fill_ntlv(&oh->ntlv, i->tablename, i->set, 1);
625 if (table_destroy(oh) != 0) {
626 if (g_co.do_quiet == 0)
627 warn("failed to destroy table(%s) in set %u",
628 i->tablename, i->set);
629 return (-1);
630 }
631 return (0);
632}
633
634/*
635 * Flushes given table specified by @oh->ntlv.

Callers

nothing calls this directly

Calls 2

table_fill_ntlvFunction · 0.85
table_destroyFunction · 0.85

Tested by

no test coverage detected