]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
icmp6: Count packets dropped due to an invalid hop limit
authorMark Johnston <markj@FreeBSD.org>
Mon, 19 Oct 2020 17:07:19 +0000 (17:07 +0000)
committerMark Johnston <markj@FreeBSD.org>
Mon, 19 Oct 2020 17:07:19 +0000 (17:07 +0000)
commit4caea9b1693cb7e80fe11286b937dc2546224d82
treecb9d0b82fb41a31807b14337c1aaf92572fa373b
parentd80126a6f48a7b52824bbb8fcee4540a26f6c879
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