aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/netstat
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/netstat')
-rw-r--r--usr.bin/netstat/inet.c13
-rw-r--r--usr.bin/netstat/sctp.c8
2 files changed, 17 insertions, 4 deletions
diff --git a/usr.bin/netstat/inet.c b/usr.bin/netstat/inet.c
index 7014f02032c2..5f36b1599cad 100644
--- a/usr.bin/netstat/inet.c
+++ b/usr.bin/netstat/inet.c
@@ -767,15 +767,20 @@ tcp_stats(u_long off, const char *name, int af1 __unused, int proto __unused)
p1a(tcps_sc_badack, "\t\t{:bad-ack/%ju} {N:/badack}\n");
p1a(tcps_sc_unreach, "\t\t{:unreachable/%ju} {N:/unreach}\n");
p(tcps_sc_zonefail, "\t\t{:zone-failures/%ju} {N:/zone failure%s}\n");
+
+ xo_close_container("syncache");
+
+ xo_open_container("syncookies");
+
p(tcps_sc_sendcookie, "\t{:sent-cookies/%ju} {N:/cookie%s sent}\n");
- p(tcps_sc_recvcookie, "\t{:received-cookies/%ju} "
+ p(tcps_sc_recvcookie, "\t\t{:received-cookies/%ju} "
"{N:/cookie%s received}\n");
- p(tcps_sc_spurcookie, "\t{:spurious-cookies/%ju} "
+ p(tcps_sc_spurcookie, "\t\t{:spurious-cookies/%ju} "
"{N:/spurious cookie%s rejected}\n");
- p(tcps_sc_failcookie, "\t{:failed-cookies/%ju} "
+ p(tcps_sc_failcookie, "\t\t{:failed-cookies/%ju} "
"{N:/failed cookie%s rejected}\n");
- xo_close_container("syncache");
+ xo_close_container("syncookies");
xo_open_container("hostcache");
diff --git a/usr.bin/netstat/sctp.c b/usr.bin/netstat/sctp.c
index c3abac407327..08cfc31c12c9 100644
--- a/usr.bin/netstat/sctp.c
+++ b/usr.bin/netstat/sctp.c
@@ -622,6 +622,10 @@ sctp_stats(u_long off, const char *name, int af1 __unused, int proto __unused)
"{N:/fast path receives all one chunk}\n");
p1a(sctps_recvexpressm, "\t\t{:receives-fast-path-multipart/%ju} "
"{N:/fast path multi-part data}\n");
+ p1a(sctps_recvswcrc, "\t\t{:performed-receive-crc32c-computation/%ju} "
+ "{N:/performed receive crc32c computation}\n");
+ p1a(sctps_recvhwcrc, "\t\t{:performed-receive-crc32c-offloading/%ju} "
+ "{N:/performed receive crc32c offloading}\n");
/*
* output statistics
@@ -648,6 +652,10 @@ sctp_stats(u_long off, const char *name, int af1 __unused, int proto __unused)
"{N:/output AUTH chunk%s}\n");
p1a(sctps_senderrors, "\t\t{:send-errors/%ju} "
"{N:/ip_output error counter}\n");
+ p1a(sctps_sendswcrc, "\t\t{:performed-receive-crc32c-computation/%ju} "
+ "{N:/performed transmit crc32c computation}\n");
+ p1a(sctps_sendhwcrc, "\t\t{:performed-transmit-crc32c-offloading/%ju} "
+ "{N:/performed transmit crc32c offloading}\n");
/*
* PCKDROPREP statistics