ns3::RadvdPrefix Class Reference
[Radvd]
Router prefix for radvd application.
More...
#include <radvd-prefix.h>
List of all members.
Detailed Description
Router prefix for radvd application.
Constructor & Destructor Documentation
ns3::RadvdPrefix::RadvdPrefix |
( |
Ipv6Address |
network, |
|
|
uint8_t |
prefixLength, |
|
|
uint32_t |
preferredLifeTime = 604800 , |
|
|
uint32_t |
validLifeTime = 2592000 , |
|
|
bool |
onLinkFlag = true , |
|
|
bool |
autonomousFlag = true , |
|
|
bool |
routerAddrFlag = false | |
|
) |
| | |
Constructor.
- Parameters:
-
| network | network prefix advertised |
| prefixLength | prefix length ( 0 < x <= 128) |
| preferredLifeTime | preferred life time in seconds (default 7 days) |
| validLifeTime | valid life time in seconds (default 30 days) |
| onLinkFlag | on link flag |
| autonomousFlag | autonomous link flag |
| routerAddrFlag | router address flag (for Mobile IPv6) |
Member Function Documentation
Get network prefix.
- Returns:
- network prefix
uint32_t ns3::RadvdPrefix::GetPreferredLifeTime |
( |
|
) |
const |
Get preferred lifetime.
- Returns:
- lifetime
uint8_t ns3::RadvdPrefix::GetPrefixLength |
( |
|
) |
const |
Get prefix length.
- Returns:
- prefix length
uint32_t ns3::RadvdPrefix::GetValidLifeTime |
( |
|
) |
const |
Get valid lifetime.
- Returns:
- lifetime
bool ns3::RadvdPrefix::IsAutonomousFlag |
( |
|
) |
const |
Is autonomous flag ?
- Returns:
- true if autonomous is activated, false otherwise
bool ns3::RadvdPrefix::IsOnLinkFlag |
( |
|
) |
const |
Is on-link flag ?
- Returns:
- true if on-link is activated, false otherwise
bool ns3::RadvdPrefix::IsRouterAddrFlag |
( |
|
) |
const |
Is router address flag ?
- Returns:
- true if router address is activated, false otherwise
void ns3::RadvdPrefix::SetAutonomousFlag |
( |
bool |
autonomousFlag |
) |
|
Set autonomous flag.
- Parameters:
-
void ns3::RadvdPrefix::SetNetwork |
( |
Ipv6Address |
network |
) |
|
Set network prefix.
- Parameters:
-
void ns3::RadvdPrefix::SetOnLinkFlag |
( |
bool |
onLinkFlag |
) |
|
Set on-link flag.
- Parameters:
-
void ns3::RadvdPrefix::SetPreferredLifeTime |
( |
uint32_t |
preferredLifeTime |
) |
|
Set preferred lifetime.
- Parameters:
-
| preferredLifeTime | lifetime |
void ns3::RadvdPrefix::SetPrefixLength |
( |
uint8_t |
prefixLength |
) |
|
Set prefix length.
- Parameters:
-
| prefixLength | prefix length |
void ns3::RadvdPrefix::SetRouterAddrFlag |
( |
bool |
routerAddrFlag |
) |
|
Set router address flag.
- Parameters:
-
void ns3::RadvdPrefix::SetValidLifeTime |
( |
uint32_t |
validLifeTime |
) |
|
Set valid lifetime.
- Parameters:
-
The documentation for this class was generated from the following file:
- src/applications/radvd/radvd-prefix.h