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

Function ipcomp_stats

tools/netstat/ipsec.c:426–439  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

424}
425
426void
427ipcomp_stats(u_long off, const char *name, int family __unused,
428 int proto __unused)
429{
430 struct ipcompstat ipcompstat;
431
432 if (fetch_stats("net.inet.ipcomp.stats", off, &ipcompstat,
433 sizeof(ipcompstat), kread_counters) != 0)
434 return;
435
436 xo_emit("{T:/%s}:\n", name);
437
438 print_ipcompstats(&ipcompstat);
439}
440
441#endif /*IPSEC*/

Callers

nothing calls this directly

Calls 3

fetch_statsFunction · 0.85
xo_emitFunction · 0.85
print_ipcompstatsFunction · 0.85

Tested by

no test coverage detected