Class ICMPPacket
ICMPPacket class. See also: IPPacket.
Inherited Members
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
| Improve this Doc View SourceToString()
To string.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | string value. |