Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Dec 2016 12:57:04 +0000 (UTC)
From:      "Andrey V. Elsukov" <ae@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r309615 - projects/ipsec/usr.bin/netstat
Message-ID:  <201612061257.uB6Cv4im073949@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ae
Date: Tue Dec  6 12:57:04 2016
New Revision: 309615
URL: https://svnweb.freebsd.org/changeset/base/309615

Log:
  Add TCP_SIGNATURE counters to the netstat's output.

Modified:
  projects/ipsec/usr.bin/netstat/inet.c

Modified: projects/ipsec/usr.bin/netstat/inet.c
==============================================================================
--- projects/ipsec/usr.bin/netstat/inet.c	Tue Dec  6 12:52:20 2016	(r309614)
+++ projects/ipsec/usr.bin/netstat/inet.c	Tue Dec  6 12:57:04 2016	(r309615)
@@ -853,12 +853,25 @@ tcp_stats(u_long off, const char *name, 
 	    "{N:/successful ECN handshake%s}\n");
 	p(tcps_ecn_rcwnd, "\t{:congestion-reductions/%ju} "
 	    "{N:/time%s ECN reduced the congestion window}\n");
+
+	xo_close_container("ecn");
+	xo_open_container("tcp-signature");
+	p(tcps_sig_rcvgoodsig, "\t{:received-good-signature/%ju} "
+	    "{N:/packet%s with matching signature received}\n");
+	p(tcps_sig_rcvbadsig, "\t{:received-bad-signature/%ju} "
+	    "{N:/packet%s with bad signature received}\n");
+	p(tcps_sig_err_buildsig, "\t{:failed-make-signature/%ju} "
+	    "{N:/time%s failed to make signature due to no SA}\n");
+	p(tcps_sig_err_sigopt, "\t{:no-signature-expected/%ju} "
+	    "{N:/time%s unexpected signature received}\n");
+	p(tcps_sig_err_nosigopt, "\t{:no-signature-provided/%ju} "
+	    "{N:/time%s no signature provided by segment}\n");
  #undef p
  #undef p1a
  #undef p2
  #undef p2a
  #undef p3
-	xo_close_container("ecn");
+	xo_close_container("tcp-signature");
 
 	xo_open_container("TCP connection count by state");
 	xo_emit("{T:/TCP connection count by state}:\n");



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201612061257.uB6Cv4im073949>