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

Function nat64lsn_destroy

tools/ipfw/nat64lsn.c:671–680  ·  view source on GitHub ↗

* Destroys nat64lsn instance specified by @oh->ntlv. * Request: [ ipfw_obj_header ] */

Source from the content-addressed store, hash-verified

669 * Request: [ ipfw_obj_header ]
670 */
671static void
672nat64lsn_destroy(const char *name, uint8_t set)
673{
674 ipfw_obj_header oh;
675
676 memset(&oh, 0, sizeof(oh));
677 nat64lsn_fill_ntlv(&oh.ntlv, name, set);
678 if (do_set3(IP_FW_NAT64LSN_DESTROY, &oh.opheader, sizeof(oh)) != 0)
679 err(EX_OSERR, "failed to destroy nat instance %s", name);
680}
681
682/*
683 * Get nat64lsn instance statistics.

Callers 2

ipfw_nat64lsn_handlerFunction · 0.70
nat64lsn_destroy_cbFunction · 0.70

Calls 3

memsetFunction · 0.85
nat64lsn_fill_ntlvFunction · 0.85
do_set3Function · 0.85

Tested by

no test coverage detected