class TInet6HeaderICMP |
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 + | |
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 () |
Public Attributes | |
---|---|
TUint8 | i |
TUint32 | iAlign |
Protected Attributes | |
---|---|
union TInet6HeaderICMP::@50 | @51 |
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.
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.
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.
void | SetChecksum | ( | TInt | aSum | ) | [inline] |
Sets the Checksum.
TInt 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.
TUint8 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.
TUint32 aValue | The parameter. |
void | SetType | ( | TUint8 | aType | ) | [inline] |
Sets the ICMPv6 type.
TUint8 aType | ICMPv6 type [0..255] |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.