void ah_stats(u_long off, const char *name, int family __unused, int proto __unused) { struct ahstat ahstat; if (off == 0) return; printf ("%s:\n", name); kread(off, (char *)&ahstat, sizeof(ahstat)); print_ahstats(&ahstat); }
void ah_stats(u_long off, const char *name, int family __unused, int proto __unused) { struct ahstat ahstat; if (fetch_stats("net.inet.ah.stats", off, &ahstat, sizeof(ahstat), kread_counters) != 0) return; xo_emit("{T:/%s}:\n", name); print_ahstats(&ahstat); }