summaryrefslogtreecommitdiffstats
path: root/usr.bin/netstat
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2014-08-16 13:25:49 +0000
committerbz <bz@FreeBSD.org>2014-08-16 13:25:49 +0000
commit4e0609eb851ad23d1af64d386fcb0f7728793c29 (patch)
treec801ed8872cacff65e1b64f17dec66e26b9969c5 /usr.bin/netstat
parent10ac38c8094ef6149dcc386152b70c317015eea0 (diff)
downloadFreeBSD-src-4e0609eb851ad23d1af64d386fcb0f7728793c29.zip
FreeBSD-src-4e0609eb851ad23d1af64d386fcb0f7728793c29.tar.gz
MFC r261525:
Print the MD5 signature information introduced in r221023 (head) in the TCP statistics output.
Diffstat (limited to 'usr.bin/netstat')
-rw-r--r--usr.bin/netstat/inet.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/usr.bin/netstat/inet.c b/usr.bin/netstat/inet.c
index af235f1..09b3110 100644
--- a/usr.bin/netstat/inet.c
+++ b/usr.bin/netstat/inet.c
@@ -723,6 +723,17 @@ tcp_stats(u_long off, const char *name, int af1 __unused, int proto __unused)
p(tcps_ecn_ect1, "\t%ju packet%s with ECN ECT(1) bit set\n");
p(tcps_ecn_shs, "\t%ju successful ECN handshake%s\n");
p(tcps_ecn_rcwnd, "\t%ju time%s ECN reduced the congestion window\n");
+
+ p(tcps_sig_rcvgoodsig,
+ "\t%ju packet%s with valid tcp-md5 signature received\n");
+ p(tcps_sig_rcvbadsig,
+ "\t%ju packet%s with invalid tcp-md5 signature received\n");
+ p(tcps_sig_err_buildsig,
+ "\t%ju packet%s with tcp-md5 signature mismatch\n");
+ p(tcps_sig_err_sigopt,
+ "\t%ju packet%s with unexpected tcp-md5 signature received\n");
+ p(tcps_sig_err_nosigopt,
+ "\t%ju packet%s without expected tcp-md5 signature received\n");
#undef p
#undef p1a
#undef p2
OpenPOWER on IntegriCloud