* Flushes given table specified by @oh->ntlv. * Returns 0 on success. */
| 636 | * Returns 0 on success. |
| 637 | */ |
| 638 | static int |
| 639 | table_flush(ipfw_obj_header *oh) |
| 640 | { |
| 641 | |
| 642 | if (do_set3(IP_FW_TABLE_XFLUSH, &oh->opheader, sizeof(*oh)) != 0) |
| 643 | return (-1); |
| 644 | |
| 645 | return (0); |
| 646 | } |
| 647 | |
| 648 | static int |
| 649 | table_do_swap(ipfw_obj_header *oh, char *second) |
no test coverage detected