* Destroys NPTv6 instance. * Request: [ ipfw_obj_header ] */
| 288 | * Request: [ ipfw_obj_header ] |
| 289 | */ |
| 290 | static void |
| 291 | nptv6_destroy(const char *name, uint8_t set) |
| 292 | { |
| 293 | ipfw_obj_header oh; |
| 294 | |
| 295 | memset(&oh, 0, sizeof(oh)); |
| 296 | nptv6_fill_ntlv(&oh.ntlv, name, set); |
| 297 | if (do_set3(IP_FW_NPTV6_DESTROY, &oh.opheader, sizeof(oh)) != 0) |
| 298 | err(EX_OSERR, "failed to destroy nat instance %s", name); |
| 299 | } |
| 300 | |
| 301 | /* |
| 302 | * Get NPTv6 instance statistics. |
no test coverage detected