Class ICMPPacket
Represents an ICMP packet.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Cosmos.System.Network.IPv4
Assembly: Cosmos.System2.dll
Syntax
public class ICMPPacket : IPPacket
Remarks
See also: IPPacket.
Fields
| Improve this Doc View SourceicmpCode
Declaration
protected byte icmpCode
Field Value
Type | Description |
---|---|
System.Byte |
icmpCRC
Declaration
protected ushort icmpCRC
Field Value
Type | Description |
---|---|
System.UInt16 |
icmpType
Declaration
protected byte icmpType
Field Value
Type | Description |
---|---|
System.Byte |
Methods
| Improve this Doc View SourceCalcICMPCRC(UInt16)
Calculates the ICMP CRC3.
Declaration
protected ushort CalcICMPCRC(ushort length)
Parameters
Type | Name | Description |
---|---|---|
System.UInt16 | length | The length of the packet. |
Returns
Type | Description |
---|---|
System.UInt16 |
InitializeFields()
Declaration
protected override void InitializeFields()
Overrides
| Improve this Doc View SourceToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |