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

Function nat64clat_destroy

tools/ipfw/nat64clat.c:356–365  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

354 * Request: [ ipfw_obj_header ]
355 */
356static void
357nat64clat_destroy(const char *name, uint8_t set)
358{
359 ipfw_obj_header oh;
360
361 memset(&oh, 0, sizeof(oh));
362 nat64clat_fill_ntlv(&oh.ntlv, name, set);
363 if (do_set3(IP_FW_NAT64CLAT_DESTROY, &oh.opheader, sizeof(oh)) != 0)
364 err(EX_OSERR, "failed to destroy nat instance %s", name);
365}
366
367/*
368 * Get nat64clat instance statistics.

Callers 2

ipfw_nat64clat_handlerFunction · 0.70
nat64clat_destroy_cbFunction · 0.70

Calls 3

memsetFunction · 0.85
nat64clat_fill_ntlvFunction · 0.85
do_set3Function · 0.85

Tested by

no test coverage detected