Class ICMPPacket
ICMPPacket class. See also: IPPacket.
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
Fields
| Improve this Doc View SourceicmpCode
Packet code.
Declaration
protected byte icmpCode
Field Value
Type | Description |
---|---|
System.Byte |
icmpCRC
Packet CRC.
Declaration
protected ushort icmpCRC
Field Value
Type | Description |
---|---|
System.UInt16 |
icmpType
Packet type.
Declaration
protected byte icmpType
Field Value
Type | Description |
---|---|
System.Byte |
Methods
| Improve this Doc View SourceCalcICMPCRC(UInt16)
Calculate ICMP CRC3.
Declaration
protected ushort CalcICMPCRC(ushort length)
Parameters
Type | Name | Description |
---|---|---|
System.UInt16 | length | Lenght. |
Returns
Type | Description |
---|---|
System.UInt16 |
InitFields()
Init ICMPPacket fields.1
Declaration
protected override void InitFields()
Overrides
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown if RawData is invalid or null. |
ToString()
To string.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | string value. |