TInet6HeaderICMP Class Reference
ICMPv6 header common part layout.
The basic ICMP header format only covers the common part (4 bytes) and 4 bytes of the Message Body (can be accesses as "Parameter")
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 +
| |
Protected Attributes |
---|
union TInet6HeaderICMP::@50 | @51 |
Member Functions Documentation
Checksum()
TInt
| Checksum | ( | ) | const [inline] |
Gets the Checksum from the header.
Code()
Gets the ICMPv6 code from the header.
EndPtr()
TUint8 * | EndPtr | ( | ) | const [inline] |
Gets a pointer to the byte following the header.
HeaderLength()
TInt
| HeaderLength | ( | ) | const [inline] |
Gets the header length.
Note:
This length is not the true length of the ICMP header. This only covers the fixed part.
MaxHeaderLength()
TInt
| MaxHeaderLength | ( | ) | [static, inline] |
Gets the maximum header length.
Note:
This length is not the true length of the ICMP header. This only covers the fixed part.
MinHeaderLength()
TInt
| MinHeaderLength | ( | ) | [static, inline] |
Gets the minimum header length.
Parameter()
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.
SetChecksum(TInt)
void | SetChecksum | ( | TInt | aSum | ) | [inline] |
Parameters
TInt aSum | The Checksum [0..65535] (16 least significant bits stored as is (assumed to be in NETWORK byte order). |
SetCode(TUint8)
void | SetCode | ( | TUint8 | aCode | ) | [inline] |
Parameters
TUint8 aCode | ICMPv6 code [0..255] |
SetParameter(TUint32)
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.
SetType(TUint8)
void | SetType | ( | TUint8 | aType | ) | [inline] |
Parameters
TUint8 aType | ICMPv6 type [0..255] |
Type()
Gets the ICMPv6 type from the header.
Member Data Documentation
union TInet6HeaderICMP::@50 @51
union TInet6HeaderICMP::@50 | @51 | [protected] |
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.