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

Function esp_stats

tools/netstat/ipsec.c:369–381  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

367}
368
369void
370esp_stats(u_long off, const char *name, int family __unused, int proto __unused)
371{
372 struct espstat espstat;
373
374 if (fetch_stats("net.inet.esp.stats", off, &espstat,
375 sizeof(espstat), kread_counters) != 0)
376 return;
377
378 xo_emit("{T:/%s}:\n", name);
379
380 print_espstats(&espstat);
381}
382
383static void
384print_ipcompstats(const struct ipcompstat *ipcompstat)

Callers

nothing calls this directly

Calls 3

fetch_statsFunction · 0.85
xo_emitFunction · 0.85
print_espstatsFunction · 0.85

Tested by

no test coverage detected