diff options
author | Bjoern A. Zeeb <bz@FreeBSD.org> | 2020-03-04 16:20:59 +0000 |
---|---|---|
committer | Bjoern A. Zeeb <bz@FreeBSD.org> | 2020-03-04 16:20:59 +0000 |
commit | d2b8fd0da152f29ce718e142337655230ee5f2cb (patch) | |
tree | 84f3f0ff5f900cc24e355b1c4e81384036244818 | |
parent | c8cea9f5b7338e393a81eb224dd48f76622c4af8 (diff) |
Notes
-rw-r--r-- | sys/netinet/icmp6.h | 4 | ||||
-rw-r--r-- | usr.bin/netstat/inet6.c | 8 |
2 files changed, 12 insertions, 0 deletions
diff --git a/sys/netinet/icmp6.h b/sys/netinet/icmp6.h index 00fa21ec6840..abd1f18bbd37 100644 --- a/sys/netinet/icmp6.h +++ b/sys/netinet/icmp6.h @@ -635,6 +635,10 @@ struct icmp6stat { uint64_t icp6s_badrs; /* bad router solicitation */ uint64_t icp6s_badra; /* bad router advertisement */ uint64_t icp6s_badredirect; /* bad redirect message */ + uint64_t icp6s_overflowdefrtr; /* Too many default routers. */ + uint64_t icp6s_overflowprfx; /* Too many prefixes. */ + uint64_t icp6s_overflownndp; /* Too many neighbour entries. */ + uint64_t icp6s_overflowredirect;/* Too many redirects. */ }; #ifdef _KERNEL diff --git a/usr.bin/netstat/inet6.c b/usr.bin/netstat/inet6.c index 80e26fb95aaa..5ddd7dae79c0 100644 --- a/usr.bin/netstat/inet6.c +++ b/usr.bin/netstat/inet6.c @@ -1055,6 +1055,14 @@ icmp6_stats(u_long off, const char *name, int af1 __unused, int proto __unused) "{N:/bad router advertisement message%s}\n"); p(icp6s_badredirect, "\t{:bad-redirect/%ju} " "{N:/bad redirect message%s}\n"); + p(icp6s_overflowdefrtr, "\t{:default-routers-overflows/%ju} " + "{N:/default routers overflow%s}\n"); + p(icp6s_overflowprfx, "\t{:prefixes-overflows/%ju} " + "{N:/prefix overflow%s}\n"); + p(icp6s_overflownndp, "\t{:neighbour-entries-overflows/%ju} " + "{N:/neighbour entries overflow%s}\n"); + p(icp6s_overflowredirect, "\t{:redirect-overflows/%ju} " + "{N:/redirect overflow%s}\n"); xo_close_container("errors"); p(icp6s_pmtuchg, "\t{:path-mtu-changes/%ju} {N:/path MTU change%s}\n"); #undef p |