icmp6: Count packets dropped due to an invalid hop limit
authormarkj <markj@FreeBSD.org>
Mon, 19 Oct 2020 17:07:19 +0000 (17:07 +0000)
committermarkj <markj@FreeBSD.org>
Mon, 19 Oct 2020 17:07:19 +0000 (17:07 +0000)
commita67fb46cc521b3431201d7dd6d18936d2fa44221
treecb9d0b82fb41a31807b14337c1aaf92572fa373b
parent5f8092356fa6f504b0109b764cf36585c3d9c3e9
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
sys/netinet/icmp6.h
sys/netinet6/icmp6.c
sys/netinet6/nd6_nbr.c
sys/netinet6/nd6_rtr.c
usr.bin/netstat/inet6.c