C# Класс Icmpv6Header, Hermod

Наследование: AProtocolHeader
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Icmpv6EchoReplyCode byte
Icmpv6EchoReplyType byte
Icmpv6EchoRequestCode byte
Icmpv6EchoRequestType byte
Icmpv6HeaderLength int
ipv6Header Ipv6Header,

Открытые методы

Метод Описание
Create ( byte icmpv6Packet, int &bytesCopied ) : Icmpv6Header,

This routine creates an instance of the Icmpv6Header 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 ICMPv6 packet and payload into a byte array. It also computes the IPv6 pseudo header checksum that appears in the ICMPv6 packet.

Icmpv6Header ( ) : System

Simple constructor for the ICMPv6 protocol header.

Icmpv6Header ( Ipv6Header, packetHeader ) : System

Constructor for the ICMPv6 header which also takes a reference to the encompassing IPv6 header. This is necessary since the IPv6 protocol defines a pseudo header checksum which requires the checksum to be calculated over fields in the ICMPv6 header and payload as well as fields from the IPv6 packet.

Описание методов

Create() публичный статический Метод

This routine creates an instance of the Icmpv6Header 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.
public static Create ( byte icmpv6Packet, int &bytesCopied ) : Icmpv6Header,
icmpv6Packet byte Byte array containing the binary ICMPv6 header
bytesCopied int Number of bytes used in header
Результат Icmpv6Header,

GetProtocolPacketBytes() публичный Метод

This routine builds the ICMPv6 packet and payload into a byte array. It also computes the IPv6 pseudo header checksum that appears in the ICMPv6 packet.
public GetProtocolPacketBytes ( byte payLoad ) : byte[]
payLoad byte A byte array representing the ICMPv6 payload
Результат byte[]

Icmpv6Header() публичный Метод

Simple constructor for the ICMPv6 protocol header.
public Icmpv6Header ( ) : System
Результат System

Icmpv6Header() публичный Метод

Constructor for the ICMPv6 header which also takes a reference to the encompassing IPv6 header. This is necessary since the IPv6 protocol defines a pseudo header checksum which requires the checksum to be calculated over fields in the ICMPv6 header and payload as well as fields from the IPv6 packet.
public Icmpv6Header ( Ipv6Header, packetHeader ) : System
packetHeader Ipv6Header, Reference to the Ipv6Header object encompassing the ICMPv6 packet
Результат System

Описание свойств

Icmpv6EchoReplyCode публичное статическое свойство

public static byte Icmpv6EchoReplyCode
Результат byte

Icmpv6EchoReplyType публичное статическое свойство

public static byte Icmpv6EchoReplyType
Результат byte

Icmpv6EchoRequestCode публичное статическое свойство

public static byte Icmpv6EchoRequestCode
Результат byte

Icmpv6EchoRequestType публичное статическое свойство

public static byte Icmpv6EchoRequestType
Результат byte

Icmpv6HeaderLength публичное статическое свойство

public static int Icmpv6HeaderLength
Результат int

ipv6Header публичное свойство

public Ipv6Header, ipv6Header
Результат Ipv6Header,