class TInet6HeaderICMP_RouterAdv : public TInet6HeaderICMP |
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.
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 |
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.
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.
void | SetCurHopLimit | ( | TInt | aLimit | ) | [inline] |
Sets the Cur Hoplimit.
TInt aLimit | The Hoplimit [0..255] |
void | SetFlags | ( | TInt | aFlags | ) | [inline] |
Sets the flags.
TInt aFlags | The flags bits [0..255]. |
void | SetReachableTime | ( | TUint32 | aTime | ) | [inline] |
Sets the value of reachable timer
TUint32 aTime | The timer value |
void | SetRetransTimer | ( | TUint32 | aTimer | ) | [inline] |
Sets the value of the retransmit timer
TUint32 aTimer | The timer value |
void | SetRouterLifetime | ( | TInt | aTime | ) | [inline] |
Sets the lifetime of the default route.
TInt aTime | The lifetime. |
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.