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

Function ipfw_internal_handler

tools/ipfw/ipfw2.c:5584–5609  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5582}
5583
5584void
5585ipfw_internal_handler(int ac, char *av[])
5586{
5587 int tcmd;
5588
5589 ac--; av++;
5590 NEED1("internal cmd required");
5591
5592 if ((tcmd = match_token(intcmds, *av)) == -1)
5593 errx(EX_USAGE, "invalid internal sub-cmd: %s", *av);
5594
5595 switch (tcmd) {
5596 case TOK_IFLIST:
5597 ipfw_list_tifaces();
5598 break;
5599 case TOK_TALIST:
5600 ipfw_list_ta(ac, av);
5601 break;
5602 case TOK_OLIST:
5603 ipfw_list_objects(ac, av);
5604 break;
5605 case TOK_VLIST:
5606 ipfw_list_values(ac, av);
5607 break;
5608 }
5609}
5610
5611static int
5612ipfw_get_tracked_ifaces(ipfw_obj_lheader **polh)

Callers 1

main.cFile · 0.85

Calls 5

match_tokenFunction · 0.85
ipfw_list_tifacesFunction · 0.85
ipfw_list_taFunction · 0.85
ipfw_list_objectsFunction · 0.85
ipfw_list_valuesFunction · 0.85

Tested by

no test coverage detected