diff --git a/PInvoke/QoS/Traffic.cs b/PInvoke/QoS/Traffic.cs index c842d865..f0469f07 100644 --- a/PInvoke/QoS/Traffic.cs +++ b/PInvoke/QoS/Traffic.cs @@ -1845,6 +1845,12 @@ public static partial class Traffic /// public UNION S_un; + /// Protocol identifier. + public byte ProtocolId; + + /// Reserved for future use. + public byte Reserved3_1, Reserved3_2, Reserved3_3; + /// [StructLayout(LayoutKind.Explicit)] public struct UNION @@ -1887,11 +1893,20 @@ public static partial class Traffic } } - /// Protocol identifier. - private byte ProtocolId; + /// The source port. + public ushort tcSrcPort { get => S_un.S_un_ports.s_srcport; set => S_un.S_un_ports.s_srcport = value; } - /// Reserved for future use. - public byte Reserved3_1, Reserved3_2, Reserved3_3; + /// The destination port. + public ushort tcDstPort { get => S_un.S_un_ports.s_dstport; set => S_un.S_un_ports.s_dstport = value; } + + /// The ICMP message type. + public byte tcIcmpType { get => S_un.S_un_icmp.s_type; set => S_un.S_un_icmp.s_type = value; } + + /// The ICMP message code. + public byte tcIcmpCode { get => S_un.S_un_icmp.s_code; set => S_un.S_un_icmp.s_code = value; } + + /// Service provider interface. + public uint tcSpi { get => S_un.S_Spi; set => S_un.S_Spi = value; } } ///