#include <icmp6_hdr.h>
| class TInet6HeaderICMP_RouterAdv : public TInet6HeaderICMP |
| Public Member Functions | |
|---|---|
| TInt | CurHopLimit() |
| TInt | Flags() |
| TInt | H() |
| TInt | HeaderLength() |
| TInt | M() |
| TInt | MaxHeaderLength() |
| TInt | MinHeaderLength() |
| TInt | O() |
| TInt | Prf() |
| TUint32 | ReachableTime() |
| TUint32 | RetransTimer() |
| TInt | RouterLifetime() |
| void | SetCurHopLimit(TInt) |
| void | SetFlags(TInt) |
| void | SetReachableTime(TUint32) |
| void | SetRetransTimer(TUint32) |
| void | SetRouterLifetime(TInt) |
| Inherited Attributes | |
|---|---|
| TInet6HeaderICMP::@51 | |
| TInet6HeaderICMP::i | |
| TInet6HeaderICMP::iAlign | |
ICMPv6 Router Advertisement layout.
Type=134, Code=0 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 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Cur Hop Limit |M|O|H|Prf|Rsrvd| Router Lifetime | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Reachable Time | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Retrans Timer | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Options ... +-+-+-+-+-+-+-+-+-+-+-+-
Above is longer thant what is declared in the base class i-member. The user must verify the sufficient length of the packet, when using this.
| TInt | HeaderLength | ( | ) | const [inline] |
Reimplemented from TInet6HeaderICMP::HeaderLength()const
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] |
Reimplemented from TInet6HeaderICMP::MaxHeaderLength()
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] |
Reimplemented from TInet6HeaderICMP::MinHeaderLength()
Gets the minimum header length.
Returns: Minimum header length
| TInt | Prf | ( | ) | const [inline] |
Gets default route preference.
Experimental: draft-draves-ipngwg-router-selection-01.txt Default Router Preferences and More-Specific Routes
| TInt | RouterLifetime | ( | ) | const [inline] |
Gets the lifetime of the defaul route.
If non-zero, specifies how long (in seconds) this router is willing to act as a default router.
This is badly named. The parameter controls only the default route processing. The value ZERO does not mean that the sender is not a router.
Returns: The life time of the default route.
| void | SetCurHopLimit | ( | TInt | aLimit | ) | [inline] |
Sets the Cur Hoplimit.
| Parameter | Description |
|---|---|
| aLimit | The Hoplimit [0..255] |
| void | SetReachableTime | ( | TUint32 | aTime | ) | [inline] |
Sets the value of reachable timer
| Parameter | Description |
|---|---|
| aTime | The timer value |
| void | SetRetransTimer | ( | TUint32 | aTimer | ) | [inline] |
Sets the value of the retransmit timer
| Parameter | Description |
|---|---|
| aTimer | The timer value |
| void | SetRouterLifetime | ( | TInt | aTime | ) | [inline] |
Sets the lifetime of the default route.
| Parameter | Description |
|---|---|
| aTime | The lifetime. |