#include <icmp6_hdr.h>
class TInet6HeaderICMP |
Public Attributes | |
---|---|
TUint8 | i |
TUint32 | iAlign |
Protected Attributes | |
---|---|
union TInet6HeaderICMP::@50 | @51 |
Public Member Functions | |
---|---|
TInt | Checksum() |
TUint8 | Code() |
TUint8 * | EndPtr() |
TInt | HeaderLength() |
TInt | MaxHeaderLength() |
TInt | MinHeaderLength() |
TUint32 | Parameter() |
void | SetChecksum(TInt) |
void | SetCode(TUint8) |
void | SetParameter(TUint32) |
void | SetType(TUint8) |
TUint8 | Type() |
ICMPv6 header common part layout.
Extract from RFC-2462: General format of ICMP message 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Type | Code | Checksum | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | + Message Body + | |
TInt | Checksum | ( | ) | const [inline] |
Gets the Checksum from the header.
Returns: Header Checksum (TUint16 in NETWORK byte order)
TUint8 * | EndPtr | ( | ) | const [inline] |
Gets a pointer to the byte following the header.
Returns: Pointer to the byte following the minimum fixed header
TInt | HeaderLength | ( | ) | const [inline] |
Gets the header length.
This length is not the true length of the ICMP header. This only covers the fixed part.
Returns: Header length.
TInt | MaxHeaderLength | ( | ) | [static, inline] |
Gets the maximum header length.
This length is not the true length of the ICMP header. This only covers the fixed part.
Returns: Maximum header length
TInt | MinHeaderLength | ( | ) | [static, inline] |
Gets the minimum header length.
Returns: Minimum header length
TUint32 | Parameter | ( | ) | const [inline] |
Gets the ICMPv6 Parameter.
Accesses the first 4 bytes of ICMP message body, and assumes they form a 32 bit integer in network byte order. Returns this integer in host order.
Returns: ICMPv6 Parameter (as an integer)
void | SetChecksum | ( | TInt | aSum | ) | [inline] |
Sets the Checksum.
Parameter | Description |
---|---|
aSum | The Checksum [0..65535] (16 least significant bits stored as is (assumed to be in NETWORK byte order). |
void | SetCode | ( | TUint8 | aCode | ) | [inline] |
Sets the ICMPv6 code.
Parameter | Description |
---|---|
aCode | ICMPv6 code [0..255] |
void | SetParameter | ( | TUint32 | aValue | ) | [inline] |
Sets the ICMPv6 Parameter.
The value is converted into network byte order and stored as the first 4 bytes of the ICMP message body.
Parameter | Description |
---|---|
aValue | The parameter. |
void | SetType | ( | TUint8 | aType | ) | [inline] |
Sets the ICMPv6 type.
Parameter | Description |
---|---|
aType | ICMPv6 type [0..255] |