C# 클래스 Icmpv6Header, Hermod

상속: AProtocolHeader
파일 보기 프로젝트 열기: Vanaheimr/Hermod 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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,