* Reset nat64lsn instance statistics specified by @oh->ntlv. * Request: [ ipfw_obj_header ] */
| 654 | * Request: [ ipfw_obj_header ] |
| 655 | */ |
| 656 | static void |
| 657 | nat64lsn_reset_stats(const char *name, uint8_t set) |
| 658 | { |
| 659 | ipfw_obj_header oh; |
| 660 | |
| 661 | memset(&oh, 0, sizeof(oh)); |
| 662 | nat64lsn_fill_ntlv(&oh.ntlv, name, set); |
| 663 | if (do_set3(IP_FW_NAT64LSN_RESET_STATS, &oh.opheader, sizeof(oh)) != 0) |
| 664 | err(EX_OSERR, "failed to reset stats for instance %s", name); |
| 665 | } |
| 666 | |
| 667 | /* |
| 668 | * Destroys nat64lsn instance specified by @oh->ntlv. |
no test coverage detected