Changeset View
Changeset View
Standalone View
Standalone View
tools/tools/crypto/ipsecstats.c
Show First 20 Lines • Show All 79 Lines • ▼ Show 20 Lines | algname(int a, const struct alg algs[], int nalgs) | ||||
snprintf(buf, sizeof(buf), "alg#%u", a); | snprintf(buf, sizeof(buf), "alg#%u", a); | ||||
return buf; | return buf; | ||||
} | } | ||||
/* | /* | ||||
* Little program to dump the statistics block for fast ipsec. | * Little program to dump the statistics block for fast ipsec. | ||||
*/ | */ | ||||
int | int | ||||
main(int argc, char *argv[]) | main(void) | ||||
{ | { | ||||
#define STAT(x,fmt) if (x) printf(fmt "\n", (uintmax_t)x) | #define STAT(x,fmt) if (x) printf(fmt "\n", (uintmax_t)x) | ||||
struct ipsecstat ips; | struct ipsecstat ips; | ||||
struct ahstat ahs; | struct ahstat ahs; | ||||
struct espstat esps; | struct espstat esps; | ||||
size_t slen; | size_t slen; | ||||
int i; | int i; | ||||
▲ Show 20 Lines • Show All 86 Lines • Show Last 20 Lines |