aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/netinet/icmp6.h4
-rw-r--r--usr.bin/netstat/inet6.c8
2 files changed, 12 insertions, 0 deletions
diff --git a/sys/netinet/icmp6.h b/sys/netinet/icmp6.h
index 00fa21ec68401..abd1f18bbd373 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 80e26fb95aaa6..5ddd7dae79c0b 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