|
INET Framework for OMNeT++/OMNEST
|
A next hop route that uses generic addresses as destination and next hop. More...
#include <NextHopRoute.h>
Public Member Functions | |
| NextHopRoute () | |
| virtual | ~NextHopRoute () |
| virtual std::string | str () const override |
| virtual std::string | detailedInfo () const |
| bool | equals (const IRoute &route) const |
| virtual void | setRoutingTable (NextHopRoutingTable *owner) |
| virtual void | setDestination (const L3Address &dest) override |
| virtual void | setPrefixLength (int l) override |
| virtual void | setNextHop (const L3Address &nextHop) override |
| virtual void | setInterface (NetworkInterface *ie) override |
| virtual void | setSourceType (SourceType sourceType) override |
| virtual void | setSource (cObject *source) override |
| virtual void | setMetric (int metric) override |
| virtual void | setAdminDist (unsigned int adminDist) override |
| virtual void | setProtocolData (cObject *protocolData) override |
| virtual IRoutingTable * | getRoutingTableAsGeneric () const override |
| The routing table in which this route is inserted, or nullptr. More... | |
| virtual L3Address | getDestinationAsGeneric () const override |
| Destination address prefix to match. More... | |
| virtual int | getPrefixLength () const override |
| Represents length of prefix to match. More... | |
| virtual L3Address | getNextHopAsGeneric () const override |
| Next hop address. More... | |
| virtual NetworkInterface * | getInterface () const override |
| Next hop interface. More... | |
| SourceType | getSourceType () const override |
| Source type of the route. More... | |
| virtual cObject * | getSource () const override |
| Source of route. More... | |
| virtual int | getMetric () const override |
| Cost to reach the destination. More... | |
| virtual cObject * | getProtocolData () const override |
Public Member Functions inherited from inet::IRoute | |
| virtual | ~IRoute () |
Protected Member Functions | |
| void | changed (int fieldCode) |
Private Attributes | |
| NextHopRoutingTable * | owner |
| int | prefixLength |
| L3Address | destination |
| L3Address | nextHop |
| NetworkInterface * | interface |
| SourceType | sourceType |
| cObject * | source |
| cObject * | protocolData |
| int | metric |
Additional Inherited Members | |
Public Types inherited from inet::IRoute | |
| 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 Public Member Functions inherited from inet::IRoute | |
| static const char * | sourceTypeName (SourceType sourceType) |
A next hop route that uses generic addresses as destination and next hop.
|
inline |
|
inlinevirtual |
|
protected |
| bool inet::NextHopRoute::equals | ( | const IRoute & | route | ) | const |
|
inlineoverridevirtual |
Destination address prefix to match.
Implements inet::IRoute.
Referenced by inet::NextHopRoutingTable::routeLessThan().
|
inlineoverridevirtual |
Next hop interface.
Implements inet::IRoute.
Referenced by inet::NextHopRoutingTable::addRoute(), and inet::NextHopForwarding::routePacket().
|
inlineoverridevirtual |
Cost to reach the destination.
Implements inet::IRoute.
Referenced by inet::NextHopRoutingTable::routeLessThan().
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Represents length of prefix to match.
Implements inet::IRoute.
Referenced by inet::NextHopRoutingTable::routeLessThan().
|
inlineoverridevirtual |
Implements inet::IRoute.
|
overridevirtual |
The routing table in which this route is inserted, or nullptr.
Implements inet::IRoute.
Referenced by inet::NextHopRoutingTable::internalAddRoute(), and inet::NextHopRoutingTable::internalRemoveRoute().
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Implements inet::IRoute.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Implements inet::IRoute.
Referenced by inet::NextHopNetworkConfigurator::addStaticRoutes().
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Implements inet::IRoute.
Referenced by inet::NextHopNetworkConfigurator::addStaticRoutes().
|
inlineoverridevirtual |
Implements inet::IRoute.
|
inlineoverridevirtual |
Implements inet::IRoute.
|
inlinevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
overridevirtual |
|
private |
Referenced by str().
|
private |
Referenced by str().
|
private |
Referenced by changed(), and getRoutingTableAsGeneric().
|
private |
|
private |
Referenced by str().
|
private |
|
private |
Referenced by str().