diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2014-01-19 05:03:30 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2014-01-19 05:03:30 +0000 |
commit | 5e3bbc10852f76488001b4e5d9ee8b0a8b7eb178 (patch) | |
tree | bfa67379687d473e4b9b6633246890b8fb3bbd00 /usr.bin | |
parent | 08890578b7eab67e20a3f9159e84a4c3166785c2 (diff) |
Report the number of dropped ICMP error because the rate limit got exceeded.
OK benno@ deraadt@
Diffstat (limited to 'usr.bin')
-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) { |