diff options
author | Mark Johnston <markj@FreeBSD.org> | 2020-10-19 17:07:19 +0000 |
---|---|---|
committer | Mark Johnston <markj@FreeBSD.org> | 2020-10-19 17:07:19 +0000 |
commit | 4caea9b1693cb7e80fe11286b937dc2546224d82 (patch) | |
tree | cb9d0b82fb41a31807b14337c1aaf92572fa373b /usr.bin | |
parent | d80126a6f48a7b52824bbb8fcee4540a26f6c879 (diff) | |
download | src-test-4caea9b1693cb7e80fe11286b937dc2546224d82.tar.gz src-test-4caea9b1693cb7e80fe11286b937dc2546224d82.zip |
icmp6: Count packets dropped due to an invalid hop limit
Pad the icmp6stat structure so that we can add more counters in the
future without breaking compatibility again, last done in r358620.
Annotate the rarely executed error paths with __predict_false while
here.
Reviewed by: bz, melifaro
Sponsored by: NetApp, Inc.
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D26578
Notes
Notes:
svn path=/head/; revision=366842
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/netstat/inet6.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/netstat/inet6.c b/usr.bin/netstat/inet6.c index 5ddd7dae79c0b..b8d954dbd9391 100644 --- a/usr.bin/netstat/inet6.c +++ b/usr.bin/netstat/inet6.c @@ -1063,6 +1063,8 @@ icmp6_stats(u_long off, const char *name, int af1 __unused, int proto __unused) "{N:/neighbour entries overflow%s}\n"); p(icp6s_overflowredirect, "\t{:redirect-overflows/%ju} " "{N:/redirect overflow%s}\n"); + p(icp6s_invlhlim, "\t{:dropped-invalid-hop-limit/%ju} " + "{N:/message%s with invalid hop limit}\n"); xo_close_container("errors"); p(icp6s_pmtuchg, "\t{:path-mtu-changes/%ju} {N:/path MTU change%s}\n"); #undef p |