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

Function nptv6_destroy

tools/ipfw/nptv6.c:290–299  ·  view source on GitHub ↗

* Destroys NPTv6 instance. * Request: [ ipfw_obj_header ] */

Source from the content-addressed store, hash-verified

288 * Request: [ ipfw_obj_header ]
289 */
290static void
291nptv6_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.

Callers 2

ipfw_nptv6_handlerFunction · 0.70
nptv6_destroy_cbFunction · 0.70

Calls 3

memsetFunction · 0.85
nptv6_fill_ntlvFunction · 0.85
do_set3Function · 0.85

Tested by

no test coverage detected