|
INET Framework for OMNeT++/OMNEST
|
Ipv4 unicast route in IIpv4RoutingTable.
More...
#include <Ipv4Route.h>
|
| 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...
|
| |
| static const char * | sourceTypeName (SourceType sourceType) |
| |
◆ Ipv4Route() [1/2]
| inet::Ipv4Route::Ipv4Route |
( |
const Ipv4Route & |
obj | ) |
|
|
private |
◆ Ipv4Route() [2/2]
| inet::Ipv4Route::Ipv4Route |
( |
| ) |
|
|
inline |
◆ ~Ipv4Route()
| inet::Ipv4Route::~Ipv4Route |
( |
| ) |
|
|
virtual |
◆ changed()
| void inet::Ipv4Route::changed |
( |
int |
fieldCode | ) |
|
|
protected |
◆ detailedInfo()
| std::string inet::Ipv4Route::detailedInfo |
( |
| ) |
const |
|
virtual |
◆ equals()
| bool inet::Ipv4Route::equals |
( |
const Ipv4Route & |
route | ) |
const |
96 return rt == route.rt &&
dest == route.dest &&
netmask == route.netmask &&
gateway == route.gateway &&
◆ getAdminDist()
| unsigned int inet::Ipv4Route::getAdminDist |
( |
| ) |
const |
|
inline |
◆ getDestination()
| const Ipv4Address& inet::Ipv4Route::getDestination |
( |
| ) |
const |
|
inline |
Destination address prefix to match.
Referenced by inet::ospfv2::Router::addExternalRouteInIPTable(), inet::bgp::BgpRouter::addToAdvertiseList(), inet::bgp::BgpRoutingTableEntry::BgpRoutingTableEntry(), inet::ospfv2::Ospfv2Area::calculateInterAreaRoutes(), inet::ospfv3::Ospfv3Area::calculateInterAreaRoutes(), inet::ospfv2::Ospfv2Area::calculateShortestPathTree(), inet::ospfv3::Ospfv3Area::calculateShortestPathTree(), inet::bgp::BgpRouter::checkExternalRoute(), inet::Ipv4NetworkConfigurator::configureRoutingTable(), inet::bgp::BgpRouter::decisionProcess(), inet::bgp::BgpRouter::deleteBGPRoutingEntry(), inet::Ipv4NetworkConfigurator::dumpConfig(), inet::Ldp::findPeerAddrFromInterface(), inet::ospfv3::Ospfv3Area::findSameOrWorseCostRoute(), inet::ospfv2::Router::getDefaultRoute(), inet::ospfv2::Router::getRoutesToASBoundaryRouter(), getSourceTypeAbbreviation(), inet::ospfv2::Router::hasRouteToASBoundaryRouter(), inet::Ipv4RoutingTable::internalAddRoute(), inet::ospfv2::Ospfv2Area::isDefaultRoute(), inet::bgp::BgpRouter::isDefaultRoute(), inet::ospfv2::Router::isDirectRoute(), inet::ospfv3::Ospfv3Process::isInRoutingTable(), inet::bgp::BgpRouter::isInRoutingTable(), inet::bgp::BgpRouter::isInTable(), inet::bgp::BgpRouter::isReachable(), inet::ospfv2::Router::lookup(), inet::bgp::operator<<(), inet::ospfv2::operator<<(), inet::ospfv2::Ospfv2RoutingTableEntry::operator==(), inet::ospfv2::Ospfv2Area::originateSummaryLSA(), inet::ospfv2::Ospfv2RoutingTableEntry::Ospfv2RoutingTableEntry(), inet::Ipv4RoutingTable::printRoutingTable(), inet::eigrp::EigrpIpv4Pdm::processRTRouteDel(), inet::Ldp::rebuildFecList(), inet::ospfv3::Ospfv3Process::rebuildRoutingTable(), inet::Ted::rebuildRoutingTable(), inet::PimDm::receiveSignal(), inet::ospfv3::Ospfv3Area::recheckInterAreaPrefixLSAs(), inet::ospfv2::Ospfv2Area::recheckSummaryLSAs(), inet::Ipv4RoutingTable::routeLessThan(), inet::bgp::BgpRoutingTableEntry::str(), str(), inet::ospfv2::Ospfv2RoutingTableEntry::str(), inet::ospfv2::Router::updateExternalRoute(), and inet::bgp::BgpRouter::updateSendProcess().
◆ getDestinationAsGeneric()
| virtual L3Address inet::Ipv4Route::getDestinationAsGeneric |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getGateway()
| const Ipv4Address& inet::Ipv4Route::getGateway |
( |
| ) |
const |
|
inline |
Next hop address.
Referenced by inet::PimSm::addNewRouteG(), inet::PimSm::addNewRouteSG(), inet::visualizer::RoutingTableVisualizerBase::addRouteVisualizations(), inet::Ipv4NetworkConfigurator::addStaticRoutes(), inet::bgp::BgpRoutingTableEntry::BgpRoutingTableEntry(), inet::Ipv4NetworkConfigurator::configureRoutingTable(), inet::bgp::BgpRouter::decisionProcess(), inet::Ipv4NetworkConfigurator::dumpConfig(), inet::ospfv2::Router::getRoutesToASBoundaryRouter(), inet::ospfv2::Router::hasRouteToASBoundaryRouter(), inet::ospfv2::Router::isDirectRoute(), inet::bgp::operator<<(), inet::Ipv4NetworkConfigurator::optimizeRoutes(), inet::ospfv2::Ospfv2RoutingTableEntry::Ospfv2RoutingTableEntry(), inet::Ipv4RoutingTable::printRoutingTable(), inet::eigrp::EigrpIpv4Pdm::processRTRouteDel(), inet::Ldp::rebuildFecList(), inet::Ted::rebuildRoutingTable(), inet::Ipv4NetworkConfigurator::routesHaveSameColor(), inet::Ipv4::routeUnicastPacket(), inet::bgp::BgpRoutingTableEntry::str(), str(), inet::ospfv2::Ospfv2RoutingTableEntry::str(), inet::PimDm::unroutableMulticastPacketArrived(), inet::PimSm::unroutableMulticastPacketArrived(), and inet::bgp::BgpRouter::updateSendProcess().
◆ getInterface()
Next hop interface.
Implements inet::IRoute.
Referenced by inet::PimSm::addNewRouteG(), inet::PimSm::addNewRouteSG(), inet::bgp::BgpRoutingTableEntry::BgpRoutingTableEntry(), inet::Ipv4NetworkConfigurator::configureRoutingTable(), inet::bgp::BgpRouter::decisionProcess(), inet::Ipv4RoutingTable::deleteInterfaceRoutes(), inet::Ipv4::determineOutgoingInterfaceForMulticastDatagram(), inet::Ldp::findPeerAddrFromInterface(), inet::ospfv2::Router::getPreferredEntry(), inet::ospfv2::Router::getRoutesToASBoundaryRouter(), inet::ospfv2::Ospfv2::handleInterfaceDown(), inet::ospfv2::Router::hasRouteToASBoundaryRouter(), inet::Ipv4RoutingTable::internalAddRoute(), inet::bgp::BgpRouter::isExternalAddress(), inet::bgp::BgpRouter::isRouteExcluded(), inet::ospfv3::operator<<(), inet::Ipv4NetworkConfigurator::optimizeRoutes(), inet::ospfv2::Ospfv2RoutingTableEntry::Ospfv2RoutingTableEntry(), inet::ospfv3::Ospfv3Ipv4RoutingTableEntry::Ospfv3Ipv4RoutingTableEntry(), inet::Ipv4RoutingTable::printRoutingTable(), inet::PimDm::receiveSignal(), inet::Ipv4NetworkConfigurator::routesHaveSameColor(), inet::Ipv4::routeUnicastPacket(), inet::PimDm::rpfInterfaceHasChanged(), inet::Dsdv::start(), inet::bgp::BgpRoutingTableEntry::str(), inet::ospfv2::Ospfv2RoutingTableEntry::str(), inet::PimDm::unroutableMulticastPacketArrived(), and inet::PimSm::unroutableMulticastPacketArrived().
◆ getInterfaceName()
| const char * inet::Ipv4Route::getInterfaceName |
( |
| ) |
const |
◆ getMetric()
| int inet::Ipv4Route::getMetric |
( |
| ) |
const |
|
inlineoverridevirtual |
"Cost" to reach the destination
Implements inet::IRoute.
Referenced by inet::PimSm::addNewRouteG(), inet::PimSm::addNewRouteSG(), inet::Ipv4NetworkConfigurator::configureRoutingTable(), inet::Ipv4NetworkConfigurator::dumpConfig(), inet::Dsdv::handleMessageWhenUp(), inet::eigrp::EigrpIpv4Pdm::installRouteToRT(), inet::bgp::operator<<(), inet::Ipv4NetworkConfigurator::optimizeRoutes(), inet::ospfv2::Ospfv2RoutingTableEntry::Ospfv2RoutingTableEntry(), inet::ospfv3::Ospfv3Ipv4RoutingTableEntry::Ospfv3Ipv4RoutingTableEntry(), inet::Ipv4RoutingTable::printRoutingTable(), inet::Ipv4RoutingTable::routeLessThan(), inet::Ipv4NetworkConfigurator::routesHaveSameColor(), inet::bgp::BgpRoutingTableEntry::str(), inet::ospfv2::Ospfv2RoutingTableEntry::str(), and inet::PimDm::unroutableMulticastPacketArrived().
◆ getNetmask()
| const Ipv4Address& inet::Ipv4Route::getNetmask |
( |
| ) |
const |
|
inline |
Represents length of prefix to match.
Referenced by inet::ospfv2::Router::addExternalRouteInIPTable(), inet::bgp::BgpRoutingTableEntry::BgpRoutingTableEntry(), inet::ospfv2::Ospfv2Area::calculateInterAreaRoutes(), inet::ospfv3::Ospfv3Area::calculateInterAreaRoutes(), inet::ospfv2::Ospfv2Area::calculateShortestPathTree(), inet::Ipv4NetworkConfigurator::configureRoutingTable(), inet::bgp::BgpRouter::decisionProcess(), inet::bgp::BgpRouter::deleteBGPRoutingEntry(), inet::Ipv4NetworkConfigurator::dumpConfig(), inet::ospfv3::Ospfv3Area::findSameOrWorseCostRoute(), inet::ospfv2::Router::getDefaultRoute(), inet::ospfv2::Router::getRoutesToASBoundaryRouter(), inet::Dsdv::handleMessageWhenUp(), inet::ospfv2::Router::hasRouteToASBoundaryRouter(), inet::Ipv4RoutingTable::internalAddRoute(), inet::ospfv2::Ospfv2Area::isDefaultRoute(), inet::bgp::BgpRouter::isDefaultRoute(), inet::ospfv3::Ospfv3Process::isInRoutingTable(), inet::bgp::BgpRouter::isInRoutingTable(), inet::bgp::BgpRouter::isInTable(), inet::bgp::BgpRouter::isReachable(), inet::bgp::BgpRouter::isRouteExcluded(), inet::bgp::operator<<(), inet::ospfv2::operator<<(), inet::ospfv2::Ospfv2RoutingTableEntry::operator==(), inet::ospfv2::Ospfv2Area::originateSummaryLSA(), inet::ospfv2::Ospfv2RoutingTableEntry::Ospfv2RoutingTableEntry(), inet::Ipv4RoutingTable::printRoutingTable(), inet::eigrp::EigrpIpv4Pdm::processRTRouteDel(), inet::Ldp::rebuildFecList(), inet::PimDm::receiveSignal(), inet::Ipv4RoutingTable::routeLessThan(), inet::bgp::BgpRoutingTableEntry::str(), str(), inet::ospfv2::Ospfv2RoutingTableEntry::str(), inet::ospfv2::Router::updateExternalRoute(), and inet::bgp::BgpRouter::updateSendProcess().
◆ getNextHopAsGeneric()
| virtual L3Address inet::Ipv4Route::getNextHopAsGeneric |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getPrefixLength()
| virtual int inet::Ipv4Route::getPrefixLength |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getProtocolData()
| cObject* inet::Ipv4Route::getProtocolData |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getRoutingTable()
Referenced by inet::visualizer::RoutingTableVisualizerBase::addRouteVisualization(), inet::Ipv4RoutingTable::deleteInterfaceRoutes(), inet::Ipv4RoutingTable::deleteRoute(), inet::visualizer::RoutingTableVisualizerBase::getRouteVisualization(), getRoutingTableAsGeneric(), inet::Ipv4RoutingTable::purge(), inet::Ipv4RoutingTable::removeRoute(), inet::visualizer::RoutingTableVisualizerBase::removeRouteVisualization(), inet::bgp::BgpRoutingTableEntry::str(), inet::ospfv2::Ospfv2RoutingTableEntry::str(), and inet::Ipv4RoutingTable::updateNetmaskRoutes().
◆ getRoutingTableAsGeneric()
| IRoutingTable * inet::Ipv4Route::getRoutingTableAsGeneric |
( |
| ) |
const |
|
overridevirtual |
The routing table in which this route is inserted, or nullptr.
Implements inet::IRoute.
◆ getSource()
| cObject* inet::Ipv4Route::getSource |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getSourceType()
| SourceType inet::Ipv4Route::getSourceType |
( |
| ) |
const |
|
inlineoverridevirtual |
Source of route.
MANUAL (read from file), from routing protocol, etc
Implements inet::IRoute.
Referenced by inet::Ipv4NetworkConfigurator::configureRoutingTable(), inet::bgp::BgpRouter::decisionProcess(), inet::eigrp::EigrpIpv4Pdm::installRouteToRT(), inet::bgp::BgpRouter::isReachable(), inet::bgp::BgpRouter::isRouteExcluded(), inet::Ipv4NetworkConfigurator::optimizeRoutes(), inet::bgp::BgpRouter::ospfExist(), inet::ospfv2::Ospfv2RoutingTableEntry::Ospfv2RoutingTableEntry(), inet::ospfv3::Ospfv3Ipv4RoutingTableEntry::Ospfv3Ipv4RoutingTableEntry(), inet::ospfv3::Ospfv3Process::rebuildRoutingTable(), inet::eigrp::EigrpIpv4Pdm::removeRouteFromRT(), inet::Ipv4NetworkConfigurator::routesHaveSameColor(), inet::PimDm::rpfInterfaceHasChanged(), and inet::PimDm::unroutableMulticastPacketArrived().
◆ getSourceTypeAbbreviation()
| const char * inet::Ipv4Route::getSourceTypeAbbreviation |
( |
| ) |
const |
◆ isValid()
| virtual bool inet::Ipv4Route::isValid |
( |
| ) |
const |
|
inlinevirtual |
◆ operator!=()
| bool inet::Ipv4Route::operator!= |
( |
const Ipv4Route & |
route | ) |
const |
|
inline |
◆ operator=()
◆ operator==()
| bool inet::Ipv4Route::operator== |
( |
const Ipv4Route & |
route | ) |
const |
|
inline |
◆ setAdminDist()
| virtual void inet::Ipv4Route::setAdminDist |
( |
unsigned int |
_adminDist | ) |
|
|
inlineoverridevirtual |
◆ setDestination() [1/2]
| virtual void inet::Ipv4Route::setDestination |
( |
const L3Address & |
dest | ) |
|
|
inlineoverridevirtual |
◆ setDestination() [2/2]
| virtual void inet::Ipv4Route::setDestination |
( |
Ipv4Address |
_dest | ) |
|
|
inlinevirtual |
Referenced by inet::ospfv2::Router::addExternalRouteInIPTable(), inet::Ipv4NetworkConfigurator::addStaticRoutes(), inet::bgp::BgpRoutingTableEntry::BgpRoutingTableEntry(), inet::DhcpClient::bindLease(), inet::ospfv2::Router::calculateASExternalRoutes(), inet::ospfv2::Ospfv2Area::calculateShortestPathTree(), inet::Ipv4NetworkConfigurator::configureRoutingTable(), inet::ospfv2::Ospfv2Area::createRoutingTableEntryFromSummaryLSA(), inet::eigrp::EigrpIpv4Pdm::createRTRoute(), inet::bgp::BgpConfigReader::loadASConfig(), inet::ospfv2::Router::lookup(), inet::Ipv4NetworkConfigurator::optimizeRoutes(), inet::ospfv2::Ospfv2RoutingTableEntry::Ospfv2RoutingTableEntry(), inet::ospfv3::Ospfv3Ipv4RoutingTableEntry::Ospfv3Ipv4RoutingTableEntry(), inet::ospfv3::Ospfv3Process::parseConfig(), inet::bgp::BgpRouter::processMessage(), inet::Ipv4NetworkConfigurator::readManualRouteConfiguration(), inet::ospfv3::Ospfv3Process::rebuildRoutingTable(), inet::Ted::rebuildRoutingTable(), inet::ospfv2::Router::updateExternalRoute(), and inet::Ipv4RoutingTable::updateNetmaskRoutes().
◆ setGateway()
| virtual void inet::Ipv4Route::setGateway |
( |
Ipv4Address |
_gateway | ) |
|
|
inlinevirtual |
Referenced by inet::ospfv2::Ospfv2RoutingTableEntry::addNextHop(), inet::Ipv4NetworkConfigurator::addStaticRoutes(), inet::bgp::BgpRoutingTableEntry::BgpRoutingTableEntry(), inet::DhcpClient::bindLease(), inet::Ipv4NetworkConfigurator::configureRoutingTable(), inet::eigrp::EigrpIpv4Pdm::createRTRoute(), inet::bgp::BgpRouter::decisionProcess(), inet::Ipv4NetworkConfigurator::optimizeRoutes(), inet::ospfv2::Ospfv2RoutingTableEntry::Ospfv2RoutingTableEntry(), inet::Ipv4NetworkConfigurator::readManualRouteConfiguration(), inet::Ted::rebuildRoutingTable(), and inet::Ipv4RoutingTable::updateNetmaskRoutes().
◆ setInterface()
Implements inet::IRoute.
Referenced by inet::ospfv2::Router::addExternalRouteInIPTable(), inet::ospfv2::Ospfv2RoutingTableEntry::addNextHop(), inet::ospfv3::Ospfv3Ipv4RoutingTableEntry::addNextHop(), inet::Ipv4NetworkConfigurator::addStaticRoutes(), inet::bgp::BgpRoutingTableEntry::BgpRoutingTableEntry(), inet::DhcpClient::bindLease(), inet::Ipv4NetworkConfigurator::configureRoutingTable(), inet::eigrp::EigrpIpv4Pdm::createRTRoute(), inet::bgp::BgpRouter::decisionProcess(), inet::Ipv4NetworkConfigurator::optimizeRoutes(), inet::ospfv2::Ospfv2RoutingTableEntry::Ospfv2RoutingTableEntry(), inet::ospfv3::Ospfv3Ipv4RoutingTableEntry::Ospfv3Ipv4RoutingTableEntry(), inet::ospfv3::Ospfv3Process::parseConfig(), inet::Ipv4NetworkConfigurator::readManualRouteConfiguration(), inet::ospfv3::Ospfv3Process::rebuildRoutingTable(), inet::Ted::rebuildRoutingTable(), inet::ospfv2::Router::updateExternalRoute(), and inet::Ipv4RoutingTable::updateNetmaskRoutes().
◆ setMetric()
| virtual void inet::Ipv4Route::setMetric |
( |
int |
_metric | ) |
|
|
inlineoverridevirtual |
Implements inet::IRoute.
Referenced by inet::ospfv2::Router::addExternalRouteInIPTable(), inet::bgp::BgpRoutingTableEntry::BgpRoutingTableEntry(), inet::Ipv4NetworkConfigurator::configureRoutingTable(), inet::Ipv4NetworkConfigurator::optimizeRoutes(), inet::ospfv2::Ospfv2RoutingTableEntry::Ospfv2RoutingTableEntry(), inet::ospfv3::Ospfv3Ipv4RoutingTableEntry::Ospfv3Ipv4RoutingTableEntry(), inet::ospfv3::Ospfv3Process::parseConfig(), inet::Ipv4NetworkConfigurator::readManualRouteConfiguration(), inet::ospfv3::Ospfv3Process::rebuildRoutingTable(), inet::Ted::rebuildRoutingTable(), inet::ospfv3::Ospfv3Ipv4RoutingTableEntry::setCost(), inet::ospfv3::Ospfv3Ipv4RoutingTableEntry::setPathType(), inet::eigrp::EigrpIpv4Pdm::setRTRouteMetric(), inet::ospfv3::Ospfv3Ipv4RoutingTableEntry::setType2Cost(), inet::ospfv2::Router::updateExternalRoute(), and inet::Ipv4RoutingTable::updateNetmaskRoutes().
◆ setNetmask()
| virtual void inet::Ipv4Route::setNetmask |
( |
Ipv4Address |
_netmask | ) |
|
|
inlinevirtual |
Referenced by inet::ospfv2::Router::addExternalRouteInIPTable(), inet::Ipv4NetworkConfigurator::addStaticRoutes(), inet::bgp::BgpRoutingTableEntry::BgpRoutingTableEntry(), inet::DhcpClient::bindLease(), inet::ospfv2::Router::calculateASExternalRoutes(), inet::ospfv2::Ospfv2Area::calculateShortestPathTree(), inet::Ipv4NetworkConfigurator::configureRoutingTable(), inet::ospfv2::Ospfv2Area::createRoutingTableEntryFromSummaryLSA(), inet::eigrp::EigrpIpv4Pdm::createRTRoute(), inet::bgp::BgpConfigReader::loadASConfig(), inet::ospfv2::Router::lookup(), inet::Ipv4NetworkConfigurator::optimizeRoutes(), inet::ospfv2::Ospfv2RoutingTableEntry::Ospfv2RoutingTableEntry(), inet::ospfv3::Ospfv3Process::parseConfig(), inet::bgp::BgpRouter::processMessage(), inet::Ipv4NetworkConfigurator::readManualRouteConfiguration(), inet::ospfv3::Ospfv3Process::rebuildRoutingTable(), inet::Ted::rebuildRoutingTable(), inet::ospfv2::Router::updateExternalRoute(), and inet::Ipv4RoutingTable::updateNetmaskRoutes().
◆ setNextHop()
| virtual void inet::Ipv4Route::setNextHop |
( |
const L3Address & |
nextHop | ) |
|
|
inlineoverridevirtual |
◆ setPrefixLength()
| virtual void inet::Ipv4Route::setPrefixLength |
( |
int |
len | ) |
|
|
inlineoverridevirtual |
◆ setProtocolData()
| void inet::Ipv4Route::setProtocolData |
( |
cObject * |
protocolData | ) |
|
|
inlineoverridevirtual |
◆ setRoutingTable()
◆ setSource()
| void inet::Ipv4Route::setSource |
( |
cObject * |
_source | ) |
|
|
inlineoverridevirtual |
◆ setSourceType()
| virtual void inet::Ipv4Route::setSourceType |
( |
SourceType |
_source | ) |
|
|
inlineoverridevirtual |
Referenced by inet::ospfv2::Router::addExternalRouteInIPTable(), inet::Ipv4NetworkConfigurator::addStaticRoutes(), inet::bgp::BgpRoutingTableEntry::BgpRoutingTableEntry(), inet::DhcpClient::bindLease(), inet::Ipv4NetworkConfigurator::configureRoutingTable(), inet::eigrp::EigrpIpv4Pdm::createRTRoute(), inet::Ipv4NetworkConfigurator::optimizeRoutes(), inet::ospfv2::Ospfv2RoutingTableEntry::Ospfv2RoutingTableEntry(), inet::ospfv3::Ospfv3Ipv4RoutingTableEntry::Ospfv3Ipv4RoutingTableEntry(), inet::ospfv3::Ospfv3Process::parseConfig(), inet::Ipv4NetworkConfigurator::readManualRouteConfiguration(), inet::ospfv3::Ospfv3Process::rebuildRoutingTable(), inet::Ted::rebuildRoutingTable(), inet::ospfv2::Router::updateExternalRoute(), and inet::Ipv4RoutingTable::updateNetmaskRoutes().
◆ str()
| std::string inet::Ipv4Route::str |
( |
| ) |
const |
|
overridevirtual |
◆ adminDist
| unsigned int inet::Ipv4Route::adminDist |
|
private |
Cisco like administrative distance.
Referenced by str().
◆ dest
◆ gateway
◆ interfacePtr
◆ metric
| int inet::Ipv4Route::metric |
|
private |
Metric ("cost" to reach the destination)
Referenced by equals(), and str().
◆ netmask
◆ protocolData
| cObject* inet::Ipv4Route::protocolData |
|
private |
◆ rt
◆ source
| cObject* inet::Ipv4Route::source |
|
private |
Object identifying the source.
◆ sourceType
The documentation for this class was generated from the following files:
const Ipv4Address & getGateway() const
Next hop address.
Definition: Ipv4Route.h:80
@ dEIGRPExternal
Definition: IRoute.h:72
@ F_IFACE
Definition: IRoute.h:50
unsigned int adminDist
Cisco like administrative distance.
Definition: Ipv4Route.h:33
const char * getSourceTypeAbbreviation() const
Definition: Ipv4Route.cc:29
@ ODR
Definition: IRoute.h:42
void changed(int fieldCode)
Definition: Ipv4Route.cc:105
@ F_DESTINATION
Definition: IRoute.h:47
SourceType sourceType
manual, routing prot, etc.
Definition: Ipv4Route.h:32
bool equals(const Ipv4Route &route) const
Definition: Ipv4Route.cc:94
@ RIP
managed by the given routing protocol
Definition: IRoute.h:34
@ MANUAL
manually added static route
Definition: IRoute.h:29
int getNetmaskLength() const
Counts 1 bits in a netmask.
Definition: Ipv4Address.cc:234
@ LISP
Definition: IRoute.h:42
@ ROUTER_ADVERTISEMENT
on-link prefix, from Router Advertisement
Definition: IRoute.h:31
const char * getInterfaceName() const
Definition: NetworkInterface.h:233
@ EIGRP
Definition: IRoute.h:42
virtual bool isAdminDistEnabled() const =0
Administrative distance on/off.
@ BGP
managed by the given routing protocol
Definition: IRoute.h:36
const char * getInterfaceName() const
Convenience method.
Definition: Ipv4Route.cc:100
virtual void setNetmask(Ipv4Address _netmask)
Definition: Ipv4Route.h:65
const Ipv4Address & getDestination() const
Destination address prefix to match.
Definition: Ipv4Route.h:74
IIpv4RoutingTable * getRoutingTable() const
Definition: Ipv4Route.h:59
virtual void setGateway(Ipv4Address _gateway)
Definition: Ipv4Route.h:66
@ F_SOURCE
Definition: IRoute.h:51
@ OSPF
managed by the given routing protocol
Definition: IRoute.h:35
static Ipv4Address makeNetmask(int length)
Creates and returns a netmask with the given length.
Definition: Ipv4Address.h:329
Ipv4Address gateway
Next hop.
Definition: Ipv4Route.h:30
virtual void routeChanged(Ipv4Route *entry, int fieldCode)=0
To be called from route objects whenever a field changes.
NetworkInterface * interfacePtr
interface
Definition: Ipv4Route.h:31
cObject * source
Object identifying the source.
Definition: Ipv4Route.h:35
IIpv4RoutingTable * rt
the routing table in which this route is inserted, or nullptr
Definition: Ipv4Route.h:27
const Ipv4Address & getNetmask() const
Represents length of prefix to match.
Definition: Ipv4Route.h:77
Ipv4Address netmask
Route mask.
Definition: Ipv4Route.h:29
int metric
Metric ("cost" to reach the destination)
Definition: Ipv4Route.h:34
Ipv4Address dest
Destination.
Definition: Ipv4Route.h:28
cObject * protocolData
Routing Protocol specific data.
Definition: Ipv4Route.h:36
@ dUnknown
Definition: IRoute.h:77
unsigned int getAdminDist() const
Route source specific preference value.
Definition: Ipv4Route.h:92
virtual void setDestination(Ipv4Address _dest)
Definition: Ipv4Route.h:64
@ BABEL
Definition: IRoute.h:42
@ F_PREFIX_LENGTH
Definition: IRoute.h:48
@ F_METRIC
Definition: IRoute.h:54
bool isUnspecified() const
True if all four address bytes are zero.
Definition: Ipv4Address.h:165
@ F_NEXTHOP
Definition: IRoute.h:49
@ IFACENETMASK
comes from an interface's netmask
Definition: IRoute.h:30
@ F_ADMINDIST
Definition: IRoute.h:53