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

Function nptv6_reset_stats

tools/ipfw/nptv6.c:349–358  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

347 * Request: [ ipfw_obj_header ]
348 */
349static void
350nptv6_reset_stats(const char *name, uint8_t set)
351{
352 ipfw_obj_header oh;
353
354 memset(&oh, 0, sizeof(oh));
355 nptv6_fill_ntlv(&oh.ntlv, name, set);
356 if (do_set3(IP_FW_NPTV6_RESET_STATS, &oh.opheader, sizeof(oh)) != 0)
357 err(EX_OSERR, "failed to reset stats for instance %s", name);
358}
359
360static int
361nptv6_show_cb(ipfw_nptv6_cfg *cfg, const char *name, uint8_t set)

Callers 1

ipfw_nptv6_handlerFunction · 0.70

Calls 3

memsetFunction · 0.85
nptv6_fill_ntlvFunction · 0.85
do_set3Function · 0.85

Tested by

no test coverage detected