From 93bfa9dbacd63823360c38776c871e4894f7386b Mon Sep 17 00:00:00 2001 From: Mantas Date: Wed, 13 Oct 2021 19:15:16 +0300 Subject: [PATCH] Fix MIB_TCP_STATE enum wrapper (#250) https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-rrasm/882bec9c-2fb6-4acd-a9b6-dabcab1ac0d6 --- PInvoke/IpHlpApi/mib.cs | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/PInvoke/IpHlpApi/mib.cs b/PInvoke/IpHlpApi/mib.cs index b10c6581..a5bb8d66 100644 --- a/PInvoke/IpHlpApi/mib.cs +++ b/PInvoke/IpHlpApi/mib.cs @@ -180,40 +180,40 @@ namespace Vanara.PInvoke public enum MIB_TCP_STATE { /// The TCP connection is closed. - MIB_TCP_STATE_CLOSED, + MIB_TCP_STATE_CLOSED = 1, /// The TCP connection is in the listen state. - MIB_TCP_STATE_LISTEN, + MIB_TCP_STATE_LISTEN = 2, /// A SYN packet has been sent. - MIB_TCP_STATE_SYN_SENT, + MIB_TCP_STATE_SYN_SENT = 3, /// A SYN packet has been received. - MIB_TCP_STATE_SYN_RCVD, + MIB_TCP_STATE_SYN_RCVD = 4, /// The TCP connection has been established. - MIB_TCP_STATE_ESTAB, + MIB_TCP_STATE_ESTAB = 5, /// The TCP connection is waiting for a FIN packet. - MIB_TCP_STATE_FIN_WAIT1, + MIB_TCP_STATE_FIN_WAIT1 = 6, /// The TCP connection is waiting for a FIN packet. - MIB_TCP_STATE_FIN_WAIT2, + MIB_TCP_STATE_FIN_WAIT2 = 7, /// The TCP connection is in the close wait state. - MIB_TCP_STATE_CLOSE_WAIT, + MIB_TCP_STATE_CLOSE_WAIT = 8, /// The TCP connection is closing. - MIB_TCP_STATE_CLOSING, + MIB_TCP_STATE_CLOSING = 9, /// The TCP connection is in the last ACK state. - MIB_TCP_STATE_LAST_ACK, + MIB_TCP_STATE_LAST_ACK = 10, /// The TCP connection is in the time wait state. - MIB_TCP_STATE_TIME_WAIT, + MIB_TCP_STATE_TIME_WAIT = 11, /// The TCP connection is in the delete TCB state. - MIB_TCP_STATE_DELETE_TCB, + MIB_TCP_STATE_DELETE_TCB = 12, } /// @@ -1201,4 +1201,4 @@ namespace Vanara.PInvoke public static implicit operator IntPtr(MIB_IPNETTABLE table) => table.DangerousGetHandle(); } } -} \ No newline at end of file +}