ns3::Ipv6RoutingTableEntry Class Reference
A record of an IPv6 route.
More...
#include <ipv6-routing-table-entry.h>
List of all members.
Public Member Functions |
| Ipv6RoutingTableEntry () |
| Constructor.
|
| Ipv6RoutingTableEntry (Ipv6RoutingTableEntry const &route) |
| Copy constructor.
|
| Ipv6RoutingTableEntry (Ipv6RoutingTableEntry const *route) |
| Copy constructor.
|
| ~Ipv6RoutingTableEntry () |
| Destructor.
|
bool | IsHost () const |
| Is the route entry correspond to a host ?
|
Ipv6Address | GetDest () const |
| Get the destination.
|
Ipv6Address | GetPrefixToUse () const |
| Get the prefix to use (for multihomed link).
|
void | SetPrefixToUse (Ipv6Address prefix) |
| Set the prefix to use.
|
bool | IsNetwork () const |
| Is the route entry correspond to a network ?
|
Ipv6Address | GetDestNetwork () const |
| Get the destination network.
|
Ipv6Prefix | GetDestNetworkPrefix () const |
| Get the destination prefix.
|
bool | IsDefault () const |
| Is it the default route ?
|
bool | IsGateway () const |
| Is it the gateway ?
|
Ipv6Address | GetGateway () const |
| Get the gateway.
|
uint32_t | GetInterface () const |
| Get the interface index.
|
Static Public Member Functions |
static Ipv6RoutingTableEntry | CreateHostRouteTo (Ipv6Address dest, Ipv6Address nextHop, uint32_t interface, Ipv6Address prefixToUse=Ipv6Address()) |
| Create a route to a host.
|
static Ipv6RoutingTableEntry | CreateHostRouteTo (Ipv6Address dest, uint32_t interface) |
| Create a route to a host.
|
static Ipv6RoutingTableEntry | CreateNetworkRouteTo (Ipv6Address network, Ipv6Prefix networkPrefix, Ipv6Address nextHop, uint32_t interface) |
| Create a route to a network.
|
static Ipv6RoutingTableEntry | CreateNetworkRouteTo (Ipv6Address network, Ipv6Prefix networkPrefix, Ipv6Address nextHop, uint32_t interface, Ipv6Address prefixToUse) |
| Create a route to a network.
|
static Ipv6RoutingTableEntry | CreateNetworkRouteTo (Ipv6Address network, Ipv6Prefix networkPrefix, uint32_t interface) |
| Create a route to a network.
|
static Ipv6RoutingTableEntry | CreateDefaultRoute (Ipv6Address nextHop, uint32_t interface) |
| Create a default route.
|
Detailed Description
A record of an IPv6 route.
Constructor & Destructor Documentation
Copy constructor.
- Parameters:
-
Copy constructor.
- Parameters:
-
Member Function Documentation
Create a default route.
- Parameters:
-
| nextHop | next hop address to route the packet |
| interface | interface index |
- Returns:
- IPv6Route object
Create a route to a host.
- Parameters:
-
| dest | destination address |
| interface | interface index |
- Returns:
- IPv6Route object
Create a route to a host.
- Parameters:
-
| dest | destination address |
| nextHop | next hop address to route the packet |
| interface | interface index |
| prefixToUse | prefix that should be used for source address for this destination |
- Returns:
- IPv6Route object
Create a route to a network.
- Parameters:
-
| network | network address |
| networkPrefix | network prefix |
| interface | interface index |
- Returns:
- IPv6Route object
Create a route to a network.
- Parameters:
-
| network | network address |
| networkPrefix | network prefix |
| nextHop | next hop address to route the packet |
| interface | interface index |
| prefixToUse | prefix that should be used for source address for this destination |
- Returns:
- IPv6Route object
Create a route to a network.
- Parameters:
-
| network | network address |
| networkPrefix | network prefix |
| nextHop | next hop address to route the packet |
| interface | interface index |
- Returns:
- IPv6Route object
Ipv6Address ns3::Ipv6RoutingTableEntry::GetDest |
( |
|
) |
const |
Get the destination.
- Returns:
- the IPv6 address of the destination of this route
Ipv6Address ns3::Ipv6RoutingTableEntry::GetDestNetwork |
( |
|
) |
const |
Get the destination network.
- Returns:
- the destination network
Ipv6Prefix ns3::Ipv6RoutingTableEntry::GetDestNetworkPrefix |
( |
|
) |
const |
Get the destination prefix.
- Returns:
- the destination prefix
Ipv6Address ns3::Ipv6RoutingTableEntry::GetGateway |
( |
|
) |
const |
Get the gateway.
- Returns:
- the IPv6 address of the gateway
uint32_t ns3::Ipv6RoutingTableEntry::GetInterface |
( |
|
) |
const |
Get the interface index.
- Returns:
- the index of the interface
Ipv6Address ns3::Ipv6RoutingTableEntry::GetPrefixToUse |
( |
|
) |
const |
Get the prefix to use (for multihomed link).
- Returns:
- prefix address to use
bool ns3::Ipv6RoutingTableEntry::IsDefault |
( |
|
) |
const |
Is it the default route ?
- Returns:
- true if this route is a default route, false otherwise
bool ns3::Ipv6RoutingTableEntry::IsGateway |
( |
|
) |
const |
Is it the gateway ?
- Returns:
- true if this route is a gateway, false otherwise
bool ns3::Ipv6RoutingTableEntry::IsHost |
( |
|
) |
const |
Is the route entry correspond to a host ?
- Returns:
- true if the route is a host, false otherwise
bool ns3::Ipv6RoutingTableEntry::IsNetwork |
( |
|
) |
const |
Is the route entry correspond to a network ?
- Returns:
- true if the route is a network, false otherwise
void ns3::Ipv6RoutingTableEntry::SetPrefixToUse |
( |
Ipv6Address |
prefix |
) |
|
Set the prefix to use.
- Parameters:
-
The documentation for this class was generated from the following file:
- src/routing/static-routing/model/ipv6-routing-table-entry.h