* Reset NPTv6 instance statistics specified by @oh->ntlv. * Request: [ ipfw_obj_header ] */
| 347 | * Request: [ ipfw_obj_header ] |
| 348 | */ |
| 349 | static void |
| 350 | nptv6_reset_stats(const char *name, uint8_t set) |
| 351 | { |
| 352 | ipfw_obj_header oh; |
| 353 | |
| 354 | memset(&oh, 0, sizeof(oh)); |
| 355 | nptv6_fill_ntlv(&oh.ntlv, name, set); |
| 356 | if (do_set3(IP_FW_NPTV6_RESET_STATS, &oh.opheader, sizeof(oh)) != 0) |
| 357 | err(EX_OSERR, "failed to reset stats for instance %s", name); |
| 358 | } |
| 359 | |
| 360 | static int |
| 361 | nptv6_show_cb(ipfw_nptv6_cfg *cfg, const char *name, uint8_t set) |
no test coverage detected