svn commit: r309615 - projects/ipsec/usr.bin/netstat
Andrey V. Elsukov
ae at FreeBSD.org
Tue Dec 6 12:57:05 UTC 2016
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");
More information about the svn-src-projects
mailing list