diff options
| author | Hajimu UMEMOTO <ume@FreeBSD.org> | 2004-02-05 12:01:39 +0000 |
|---|---|---|
| committer | Hajimu UMEMOTO <ume@FreeBSD.org> | 2004-02-05 12:01:39 +0000 |
| commit | 3fde69b9443a47fb4d6a8a979858296d8619869a (patch) | |
| tree | 4271f0ce9be1421565a38840a8bd56f98a2f208e /usr.bin | |
| parent | 5d8a878a5534d60d49ec3f9f896baa5f917645d3 (diff) | |
Notes
Diffstat (limited to 'usr.bin')
| -rw-r--r-- | usr.bin/netstat/ipsec.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/usr.bin/netstat/ipsec.c b/usr.bin/netstat/ipsec.c index 2b1a56a4c43f4..3a5638c0af2ab 100644 --- a/usr.bin/netstat/ipsec.c +++ b/usr.bin/netstat/ipsec.c @@ -187,6 +187,8 @@ print_ipsecstats(void) { #define p(f, m) if (ipsecstat.f || sflag <= 1) \ printf(m, (unsigned long long)ipsecstat.f, plural(ipsecstat.f)) +#define pes(f, m) if (ipsecstat.f || sflag <= 1) \ + printf(m, (unsigned long long)ipsecstat.f, plurales(ipsecstat.f)) #define hist(f, n, t) \ ipsec_hist((f), sizeof(f)/sizeof(f[0]), (n), (t)); @@ -215,7 +217,10 @@ print_ipsecstats(void) hist(ipsecstat.out_ahhist, ipsec_ahnames, "AH output"); hist(ipsecstat.out_esphist, ipsec_espnames, "ESP output"); hist(ipsecstat.out_comphist, ipsec_compnames, "IPComp output"); + p(spdcachelookup, "\t%llu SPD cache lookup%s\n"); + pes(spdcachemiss, "\t%llu SPD cache miss%s\n"); #undef p +#undef pes #undef hist } |
