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

Function nat64lsn_reset_stats

tools/ipfw/nat64lsn.c:656–665  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

654 * Request: [ ipfw_obj_header ]
655 */
656static void
657nat64lsn_reset_stats(const char *name, uint8_t set)
658{
659 ipfw_obj_header oh;
660
661 memset(&oh, 0, sizeof(oh));
662 nat64lsn_fill_ntlv(&oh.ntlv, name, set);
663 if (do_set3(IP_FW_NAT64LSN_RESET_STATS, &oh.opheader, sizeof(oh)) != 0)
664 err(EX_OSERR, "failed to reset stats for instance %s", name);
665}
666
667/*
668 * Destroys nat64lsn instance specified by @oh->ntlv.

Callers 1

Calls 3

memsetFunction · 0.85
nat64lsn_fill_ntlvFunction · 0.85
do_set3Function · 0.85

Tested by

no test coverage detected