|
INET Framework for OMNeT++/OMNEST
|
Represents a route in the route table.
More...
#include <Ipv6Route.h>
|
| enum | RouteAdminDist {
dDirectlyConnected = 0,
dStatic = 1,
dEIGRPSummary = 5,
dBGPExternal = 20,
dEIGRPInternal = 90,
dIGRP = 100,
dOSPF = 110,
dISIS = 115,
dRIP = 120,
dEGP = 140,
dODR = 160,
dEIGRPExternal = 170,
dBGPInternal = 200,
dDHCPlearned = 254,
dBABEL = 125,
dLISP = 210,
dUnknown = 255
} |
| | Cisco like administrative distances (includes Ipv4 protocols) More...
|
| |
| enum | SourceType {
MANUAL,
IFACENETMASK,
ROUTER_ADVERTISEMENT,
OWN_ADV_PREFIX,
ICMP_REDIRECT,
RIP,
OSPF,
BGP,
ZEBRA,
MANET,
MANET2,
DYMO,
AODV,
EIGRP,
LISP,
BABEL,
ODR,
UNKNOWN,
ISIS
} |
| | Specifies where the route comes from. More...
|
| |
| enum | ChangeCodes {
F_DESTINATION,
F_PREFIX_LENGTH,
F_NEXTHOP,
F_IFACE,
F_SOURCE,
F_TYPE,
F_ADMINDIST,
F_METRIC,
F_EXPIRYTIME,
F_LAST
} |
| | Field codes for NB_ROUTE_CHANGED notifications. More...
|
| |
| enum | RouteAdminDist {
dDirectlyConnected = 0,
dStatic = 1,
dEIGRPSummary = 5,
dBGPExternal = 20,
dEIGRPInternal = 90,
dIGRP = 100,
dOSPF = 110,
dISIS = 115,
dRIP = 120,
dEGP = 140,
dODR = 160,
dEIGRPExternal = 170,
dBGPInternal = 200,
dDHCPlearned = 254,
dBABEL = 125,
dLISP = 210,
dUnknown = 255
} |
| | Cisco like administrative distances. More...
|
| |
Represents a route in the route table.
Routes with sourceType=ROUTER_ADVERTISEMENT represent on-link prefixes advertised by routers.
◆ RouteAdminDist
Cisco like administrative distances (includes Ipv4 protocols)
| Enumerator |
|---|
| dDirectlyConnected | |
| dStatic | |
| dEIGRPSummary | |
| dBGPExternal | |
| dEIGRPInternal | |
| dIGRP | |
| dOSPF | |
| dISIS | |
| dRIP | |
| dEGP | |
| dODR | |
| dEIGRPExternal | |
| dBGPInternal | |
| dDHCPlearned | |
| dBABEL | |
| dLISP | |
| dUnknown | |
◆ Ipv6Route()
Constructor.
The destination prefix and the route source is passed to the constructor and cannot be changed afterwards.
◆ ~Ipv6Route()
| virtual inet::Ipv6Route::~Ipv6Route |
( |
| ) |
|
|
inlinevirtual |
◆ changed()
| void inet::Ipv6Route::changed |
( |
int |
fieldCode | ) |
|
|
protected |
◆ detailedInfo()
| std::string inet::Ipv6Route::detailedInfo |
( |
| ) |
const |
|
virtual |
◆ getAdminDist()
| unsigned int inet::Ipv6Route::getAdminDist |
( |
| ) |
const |
|
inline |
◆ getDestinationAsGeneric()
| virtual L3Address inet::Ipv6Route::getDestinationAsGeneric |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getDestPrefix()
| const Ipv6Address& inet::Ipv6Route::getDestPrefix |
( |
| ) |
const |
|
inline |
◆ getExpiryTime()
| simtime_t inet::Ipv6Route::getExpiryTime |
( |
| ) |
const |
|
inline |
◆ getInterface()
◆ getMetric()
| virtual int inet::Ipv6Route::getMetric |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getNextHop()
| const Ipv6Address& inet::Ipv6Route::getNextHop |
( |
| ) |
const |
|
inline |
◆ getNextHopAsGeneric()
| virtual L3Address inet::Ipv6Route::getNextHopAsGeneric |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getPrefixLength()
| virtual int inet::Ipv6Route::getPrefixLength |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getProtocolData()
| virtual cObject* inet::Ipv6Route::getProtocolData |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getRoutingTable()
◆ getRoutingTableAsGeneric()
| IRoutingTable * inet::Ipv6Route::getRoutingTableAsGeneric |
( |
| ) |
const |
|
overridevirtual |
The routing table in which this route is inserted, or nullptr.
Implements inet::IRoute.
◆ getSource()
| virtual cObject* inet::Ipv6Route::getSource |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getSourceType()
| virtual SourceType inet::Ipv6Route::getSourceType |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getSourceTypeAbbreviation()
| const char * inet::Ipv6Route::getSourceTypeAbbreviation |
( |
| ) |
const |
◆ setAdminDist()
| void inet::Ipv6Route::setAdminDist |
( |
unsigned int |
adminDist | ) |
|
|
inlineoverridevirtual |
◆ setDestination()
| virtual void inet::Ipv6Route::setDestination |
( |
const L3Address & |
dest | ) |
|
|
inlineoverridevirtual |
◆ setExpiryTime()
| void inet::Ipv6Route::setExpiryTime |
( |
simtime_t |
expiryTime | ) |
|
|
inline |
◆ setInterface()
◆ setMetric()
| void inet::Ipv6Route::setMetric |
( |
int |
metric | ) |
|
|
inlineoverridevirtual |
Implements inet::IRoute.
Referenced by inet::Ipv6RoutingTable::addDefaultRoute(), inet::Ipv6RoutingTable::addOrUpdateOnLinkPrefix(), inet::Ipv6RoutingTable::addOrUpdateOwnAdvPrefix(), inet::Ipv6RoutingTable::addStaticRoute(), inet::ospfv3::Ospfv3RoutingTableEntry::Ospfv3RoutingTableEntry(), inet::ospfv3::Ospfv3Process::parseConfig(), inet::ospfv3::Ospfv3Process::rebuildRoutingTable(), inet::ospfv3::Ospfv3RoutingTableEntry::setCost(), inet::ospfv3::Ospfv3RoutingTableEntry::setPathType(), inet::eigrp::EigrpIpv6Pdm::setRTRouteMetric(), and inet::ospfv3::Ospfv3RoutingTableEntry::setType2Cost().
◆ setNextHop() [1/2]
| void inet::Ipv6Route::setNextHop |
( |
const Ipv6Address & |
nextHop | ) |
|
|
inline |
◆ setNextHop() [2/2]
| virtual void inet::Ipv6Route::setNextHop |
( |
const L3Address & |
nextHop | ) |
|
|
inlineoverridevirtual |
◆ setPrefixLength()
| virtual void inet::Ipv6Route::setPrefixLength |
( |
int |
prefixLength | ) |
|
|
inlineoverridevirtual |
◆ setProtocolData()
| virtual void inet::Ipv6Route::setProtocolData |
( |
cObject * |
protocolData | ) |
|
|
inlineoverridevirtual |
◆ setRoutingTable()
◆ setSource()
| virtual void inet::Ipv6Route::setSource |
( |
cObject * |
source | ) |
|
|
inlineoverridevirtual |
◆ setSourceType()
| virtual void inet::Ipv6Route::setSourceType |
( |
SourceType |
type | ) |
|
|
inlineoverridevirtual |
◆ str()
| std::string inet::Ipv6Route::str |
( |
| ) |
const |
|
overridevirtual |
45 std::stringstream out;
53 out <<
" is directly connected";
◆ _adminDist
| unsigned int inet::Ipv6Route::_adminDist |
|
protected |
◆ _destPrefix
◆ _expiryTime
| simtime_t inet::Ipv6Route::_expiryTime |
|
protected |
◆ _interfacePtr
◆ _metric
| int inet::Ipv6Route::_metric |
|
protected |
◆ _nextHop
◆ _prefixLength
| short inet::Ipv6Route::_prefixLength |
|
protected |
◆ _protocolData
| cObject* inet::Ipv6Route::_protocolData |
|
protected |
Object identifying the source.
◆ _rt
◆ _source
| cObject* inet::Ipv6Route::_source |
|
protected |
◆ _sourceType
The documentation for this class was generated from the following files:
@ F_IFACE
Definition: IRoute.h:50
@ dRIP
Definition: Ipv6Route.h:38
int _metric
Definition: Ipv6Route.h:57
@ ODR
Definition: IRoute.h:42
@ dStatic
Definition: Ipv6Route.h:31
@ F_DESTINATION
Definition: IRoute.h:47
unsigned int getAdminDist() const
Definition: Ipv6Route.h:104
@ RIP
managed by the given routing protocol
Definition: IRoute.h:34
virtual int getPrefixLength() const override
Represents length of prefix to match.
Definition: Ipv6Route.h:99
virtual int getMetric() const override
Cost to reach the destination.
Definition: Ipv6Route.h:103
@ MANUAL
manually added static route
Definition: IRoute.h:29
@ dDirectlyConnected
Definition: Ipv6Route.h:30
virtual void routeChanged(Ipv6Route *entry, int fieldCode)
To be called from route objects whenever a field changes.
Definition: Ipv6RoutingTable.cc:203
@ dBABEL
Definition: Ipv6Route.h:44
virtual NetworkInterface * getInterface() const override
Next hop interface.
Definition: Ipv6Route.h:115
@ LISP
Definition: IRoute.h:42
@ ROUTER_ADVERTISEMENT
on-link prefix, from Router Advertisement
Definition: IRoute.h:31
SourceType _sourceType
Definition: Ipv6Route.h:53
@ dEIGRPExternal
Definition: Ipv6Route.h:41
const char * getInterfaceName() const
Definition: NetworkInterface.h:233
@ EIGRP
Definition: IRoute.h:42
@ BGP
managed by the given routing protocol
Definition: IRoute.h:36
@ dOSPF
Definition: Ipv6Route.h:36
const char * getSourceTypeAbbreviation() const
Definition: Ipv6Route.cc:16
@ F_EXPIRYTIME
Definition: IRoute.h:55
@ dODR
Definition: Ipv6Route.h:40
cObject * _protocolData
Object identifying the source.
Definition: Ipv6Route.h:60
@ F_SOURCE
Definition: IRoute.h:51
Ipv6RoutingTable * getRoutingTable() const
Definition: Ipv6Route.h:91
@ dEIGRPSummary
Definition: Ipv6Route.h:32
@ OSPF
managed by the given routing protocol
Definition: IRoute.h:35
simtime_t _expiryTime
Definition: Ipv6Route.h:56
Ipv6Address _destPrefix
Definition: Ipv6Route.h:51
@ dLISP
Definition: Ipv6Route.h:45
removed type
Definition: IUdp-gates.txt:7
@ F_TYPE
Definition: IRoute.h:52
Ipv6RoutingTable * _rt
Definition: Ipv6Route.h:50
@ dBGPExternal
Definition: Ipv6Route.h:33
const Ipv6Address & getDestPrefix() const
Definition: Ipv6Route.h:98
@ dIGRP
Definition: Ipv6Route.h:35
short _prefixLength
Definition: Ipv6Route.h:52
const Ipv6Address & getNextHop() const
Definition: Ipv6Route.h:101
Ipv6Address _nextHop
Definition: Ipv6Route.h:55
cObject * _source
Definition: Ipv6Route.h:59
NetworkInterface * _interfacePtr
Definition: Ipv6Route.h:54
@ dEIGRPInternal
Definition: Ipv6Route.h:34
unsigned int _adminDist
Definition: Ipv6Route.h:58
bool isUnspecified() const
Check if the Ipv6 Address is undefined.
Definition: Ipv6Address.h:280
@ dBGPInternal
Definition: Ipv6Route.h:42
void changed(int fieldCode)
Routing Protocol specific data.
Definition: Ipv6Route.cc:69
@ BABEL
Definition: IRoute.h:42
@ F_PREFIX_LENGTH
Definition: IRoute.h:48
@ dDHCPlearned
Definition: Ipv6Route.h:43
@ F_METRIC
Definition: IRoute.h:54
@ F_NEXTHOP
Definition: IRoute.h:49
@ dISIS
Definition: Ipv6Route.h:37
@ IFACENETMASK
comes from an interface's netmask
Definition: IRoute.h:30
@ dEGP
Definition: Ipv6Route.h:39
@ dUnknown
Definition: Ipv6Route.h:46
@ F_ADMINDIST
Definition: IRoute.h:53