tcp: use GetExtendedTcpTable to display states Closed, Listening, SynSent, SynRcvd, CloseWait, TimeWait ... (#1638)

Co-authored-by: Jan-Otto Kröpke <github@jkroepke.de>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jan-Otto Kröpke <joe@cloudeteer.de>
This commit is contained in:
astigmata
2024-10-01 23:23:35 +02:00
committed by GitHub
parent 14910efd4f
commit 1caef5cc12
6 changed files with 215 additions and 8 deletions

View File

@@ -3,6 +3,7 @@ package tcp
// Win32_PerfRawData_Tcpip_TCPv4 docs
// - https://msdn.microsoft.com/en-us/library/aa394341(v=vs.85).aspx
// The TCPv6 performance object uses the same fields.
// https://learn.microsoft.com/en-us/dotnet/api/system.net.networkinformation.tcpstate?view=net-8.0.
const (
connectionFailures = "Connection Failures"
connectionsActive = "Connections Active"