diff options
author | 2014-01-19 05:03:29 +0000 | |
---|---|---|
committer | 2014-01-19 05:03:29 +0000 | |
commit | de3b73d03c1f42556d72f3f83dbfe13d63a04974 (patch) | |
tree | d5b6d1c4d0f6414dcd228b7b520f3f09bb088712 | |
parent | Start counting droped icmp errors because the rate limit is exceeded. (diff) | |
download | wireguard-openbsd-de3b73d03c1f42556d72f3f83dbfe13d63a04974.tar.xz wireguard-openbsd-de3b73d03c1f42556d72f3f83dbfe13d63a04974.zip |
Report the number of dropped ICMP error because the rate limit got exceeded.
OK benno@ deraadt@
-rw-r--r-- | usr.bin/netstat/inet.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/netstat/inet.c b/usr.bin/netstat/inet.c index b01b4d571be..1a12e368cbb 100644 --- a/usr.bin/netstat/inet.c +++ b/usr.bin/netstat/inet.c @@ -1,4 +1,4 @@ -/* $OpenBSD: inet.c,v 1.129 2013/12/25 01:46:00 tedu Exp $ */ +/* $OpenBSD: inet.c,v 1.130 2014/01/19 05:03:29 claudio Exp $ */ /* $NetBSD: inet.c,v 1.14 1995/10/03 21:42:37 thorpej Exp $ */ /* @@ -583,6 +583,9 @@ icmp_stats(char *name) p(icps_error, "\t%lu call%s to icmp_error\n"); p(icps_oldicmp, "\t%lu error%s not generated because old message was icmp\n"); + p(icps_toofreq, + "\t%llu error%s not generated because of rate limitation\n"); + for (first = 1, i = 0; i < ICMP_MAXTYPE + 1; i++) if (icmpstat.icps_outhist[i] != 0) { if (first) { |