diff --git a/WindivertDotnet/TcpHeader.cs b/WindivertDotnet/TcpHeader.cs index a7cb39b..f996ab7 100644 --- a/WindivertDotnet/TcpHeader.cs +++ b/WindivertDotnet/TcpHeader.cs @@ -1,6 +1,5 @@ using System.Buffers.Binary; using System.Diagnostics; -using System.Runtime.InteropServices; namespace WindivertDotnet { @@ -11,7 +10,6 @@ namespace WindivertDotnet public struct TcpHeader { [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [FieldOffset(0)] private ushort srcPort; /// @@ -24,7 +22,6 @@ public ushort SrcPort } [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [FieldOffset(2)] private ushort dstPort; /// @@ -38,7 +35,6 @@ public ushort DstPort [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [FieldOffset(4)] private uint seqNum; /// @@ -52,7 +48,6 @@ public uint SeqNum [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [FieldOffset(8)] private uint ackNum; /// @@ -65,7 +60,6 @@ public uint AckNum } [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [FieldOffset(12)] private byte bitfield; @@ -91,7 +85,6 @@ public byte HdrLength /// /// 标记位 /// - [FieldOffset(13)] public TcpFlag Flags; @@ -150,7 +143,6 @@ public bool Urg } [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [FieldOffset(14)] private ushort window; /// @@ -163,7 +155,6 @@ public ushort Window } [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [FieldOffset(16)] private ushort checksum; /// @@ -176,7 +167,6 @@ public ushort Checksum } [DebuggerBrowsable(DebuggerBrowsableState.Never)] - [FieldOffset(18)] private ushort urgPtr; ///