INET Framework for OMNeT++/OMNEST
|
A generic route that uses generic addresses as destination and next hop. More...
#include <GenericRoute.h>
Public Member Functions | |
GenericRoute () | |
virtual | ~GenericRoute () |
virtual std::string | info () const override |
virtual std::string | detailedInfo () const override |
bool | equals (const IRoute &route) const |
virtual void | setRoutingTable (GenericRoutingTable *owner) |
virtual void | setDestination (const L3Address &dest) override |
virtual void | setPrefixLength (int l) override |
virtual void | setNextHop (const L3Address &nextHop) override |
virtual void | setInterface (InterfaceEntry *ie) override |
virtual void | setSourceType (SourceType sourceType) override |
virtual void | setSource (cObject *source) override |
virtual void | setMetric (int metric) 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 InterfaceEntry * | 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 | |
GenericRoutingTable * | owner |
int | prefixLength |
L3Address | destination |
L3Address | nextHop |
InterfaceEntry * | 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 } |
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... | |
Static Public Member Functions inherited from inet::IRoute | |
static const char * | sourceTypeName (SourceType sourceType) |
A generic route that uses generic addresses as destination and next hop.
|
inline |
|
inlinevirtual |
|
protected |
|
overridevirtual |
bool inet::GenericRoute::equals | ( | const IRoute & | route | ) | const |
|
inlineoverridevirtual |
Destination address prefix to match.
Implements inet::IRoute.
Referenced by inet::GenericRoutingTable::routeLessThan().
|
inlineoverridevirtual |
Next hop interface.
Implements inet::IRoute.
Referenced by inet::GenericRoutingTable::addRoute(), and inet::GenericNetworkProtocol::routePacket().
|
inlineoverridevirtual |
Cost to reach the destination.
Implements inet::IRoute.
Referenced by inet::GenericRoutingTable::routeLessThan().
|
inlineoverridevirtual |
Next hop address.
Implements inet::IRoute.
Referenced by inet::GenericNetworkProtocol::routePacket().
|
inlineoverridevirtual |
Represents length of prefix to match.
Implements inet::IRoute.
Referenced by inet::GenericRoutingTable::routeLessThan().
|
inlineoverridevirtual |
Implements inet::IRoute.
|
overridevirtual |
The routing table in which this route is inserted, or nullptr.
Implements inet::IRoute.
Referenced by inet::GenericRoutingTable::internalAddRoute(), and inet::GenericRoutingTable::internalRemoveRoute().
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
overridevirtual |
Referenced by inet::GenericNetworkConfigurator::addStaticRoutes(), and inet::operator<<().
|
inlineoverridevirtual |
Implements inet::IRoute.
Referenced by inet::GenericNetworkConfigurator::addStaticRoutes().
|
inlineoverridevirtual |
Implements inet::IRoute.
Referenced by inet::GenericNetworkConfigurator::addStaticRoutes().
|
inlineoverridevirtual |
Implements inet::IRoute.
|
inlineoverridevirtual |
Implements inet::IRoute.
Referenced by inet::GenericNetworkConfigurator::addStaticRoutes().
|
inlineoverridevirtual |
Implements inet::IRoute.
|
inlineoverridevirtual |
Implements inet::IRoute.
|
inlinevirtual |
|
inlineoverridevirtual |
Implements inet::IRoute.
|
inlineoverridevirtual |
Implements inet::IRoute.
Referenced by inet::GenericNetworkConfigurator::addStaticRoutes().
|
private |
Referenced by info().
|
private |
Referenced by info().
|
private |
Referenced by changed(), and getRoutingTableAsGeneric().
|
private |
|
private |
|
private |
|
private |
Referenced by info().