Property | Type | Description | |
---|---|---|---|
EchoReplyCode | byte | ||
EchoReplyType | byte | ||
EchoRequestCode | byte | ||
EchoRequestType | byte | ||
IcmpHeaderLength | int |
Method | Description | |
---|---|---|
Create ( byte icmpPacket, int &bytesCopied ) : IcmpHeader, |
This routine creates an instance of the IcmpHeader class from a byte array that is a received IGMP packet. This is useful when a packet is received from the network and the header object needs to be constructed from those values.
|
|
GetProtocolPacketBytes ( byte payLoad ) : byte[] |
This routine builds the ICMP packet suitable for sending on a raw socket. It builds the ICMP packet and payload into a byte array and computes the checksum.
|
|
IcmpHeader ( ) : System |
Default constructor for ICMP packet
|
public static Create ( byte icmpPacket, int &bytesCopied ) : IcmpHeader, | ||
icmpPacket | byte | Byte array containing the binary ICMP header |
bytesCopied | int | Number of bytes used in header |
return | IcmpHeader, |
public GetProtocolPacketBytes ( byte payLoad ) : byte[] | ||
payLoad | byte | Data payload of the ICMP packet |
return | byte[] |