|
INET Framework for OMNeT++/OMNEST
|
#include <Ospfv3RoutingTableEntry.h>
Public Types | |
| enum | RoutingPathType { INTRAAREA = 0, INTERAREA = 1, TYPE1_EXTERNAL = 2, TYPE2_EXTERNAL = 3 } |
| typedef unsigned char | RoutingDestinationType |
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... | |
Public Member Functions | |
| Ospfv3Ipv4RoutingTableEntry (const Ospfv3Ipv4RoutingTableEntry &entry, Ipv4Address destPrefix, int prefixLength, SourceType sourceType) | |
| Ospfv3Ipv4RoutingTableEntry (IInterfaceTable *ift, Ipv4Address destPrefix, int prefixLength, SourceType sourceType) | |
| virtual | ~Ospfv3Ipv4RoutingTableEntry () |
| bool | operator== (const Ospfv3Ipv4RoutingTableEntry &entry) const |
| bool | operator!= (const Ospfv3Ipv4RoutingTableEntry &entry) const |
| void | setDestinationType (RoutingDestinationType type) |
| RoutingDestinationType | getDestinationType () const |
| void | setOptionalCapabilities (Ospfv3Options options) |
| Ospfv3Options | getOptionalCapabilities () const |
| void | setArea (AreaID source) |
| AreaID | getArea () const |
| void | setPathType (RoutingPathType type) |
| RoutingPathType | getPathType () const |
| void | setCost (Metric pathCost) |
| Metric | getCost () const |
| void | setType2Cost (Metric pathCost) |
| Metric | getType2Cost () const |
| void | setLinkStateOrigin (const Ospfv3Lsa *lsa) |
| const Ospfv3Lsa * | getLinkStateOrigin () const |
| void | addNextHop (NextHop hop) |
| void | clearNextHops () |
| unsigned int | getNextHopCount () const |
| NextHop | getNextHop (unsigned int index) const |
Public Member Functions inherited from inet::Ipv4Route | |
| Ipv4Route () | |
| virtual | ~Ipv4Route () |
| virtual std::string | str () const override |
| virtual std::string | detailedInfo () const |
| bool | operator== (const Ipv4Route &route) const |
| bool | operator!= (const Ipv4Route &route) const |
| bool | equals (const Ipv4Route &route) const |
| virtual void | setRoutingTable (IIpv4RoutingTable *rt) |
| To be called by the routing table when this route is added or removed from it. More... | |
| IIpv4RoutingTable * | getRoutingTable () const |
| virtual bool | isValid () const |
| test validity of route entry, e.g. More... | |
| virtual void | setDestination (Ipv4Address _dest) |
| virtual void | setNetmask (Ipv4Address _netmask) |
| virtual void | setGateway (Ipv4Address _gateway) |
| virtual void | setInterface (NetworkInterface *_interfacePtr) override |
| virtual void | setSourceType (SourceType _source) override |
| const char * | getSourceTypeAbbreviation () const |
| virtual void | setAdminDist (unsigned int _adminDist) override |
| virtual void | setMetric (int _metric) override |
| const Ipv4Address & | getDestination () const |
| Destination address prefix to match. More... | |
| const Ipv4Address & | getNetmask () const |
| Represents length of prefix to match. More... | |
| const Ipv4Address & | getGateway () const |
| Next hop address. More... | |
| NetworkInterface * | getInterface () const override |
| Next hop interface. More... | |
| const char * | getInterfaceName () const |
| Convenience method. More... | |
| SourceType | getSourceType () const override |
| Source of route. More... | |
| unsigned int | getAdminDist () const |
| Route source specific preference value. More... | |
| int | getMetric () const override |
| "Cost" to reach the destination More... | |
| void | setSource (cObject *_source) override |
| cObject * | getSource () const override |
| Source of route. More... | |
| cObject * | getProtocolData () const override |
| void | setProtocolData (cObject *protocolData) override |
| virtual IRoutingTable * | getRoutingTableAsGeneric () const override |
| The routing table in which this route is inserted, or nullptr. More... | |
| virtual void | setDestination (const L3Address &dest) override |
| virtual void | setPrefixLength (int len) override |
| virtual void | setNextHop (const L3Address &nextHop) override |
| 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... | |
Public Member Functions inherited from inet::IRoute | |
| virtual | ~IRoute () |
| virtual void | setSourceType (SourceType type)=0 |
Static Public Attributes | |
| static const unsigned char | NETWORK_DESTINATION = 0 |
| static const unsigned char | AREA_BORDER_ROUTER_DESTINATION = 1 |
| static const unsigned char | AS_BOUNDARY_ROUTER_DESTINATION = 2 |
| static const unsigned char | ROUTER_DESTINATION = 3 |
Private Attributes | |
| IInterfaceTable * | ift = nullptr |
| RoutingDestinationType | destinationType = 0 |
| Ospfv3Options | optionalCapabilities |
| AreaID | area |
| RoutingPathType | pathType = (RoutingPathType) - 1 |
| Metric | cost = 0 |
| Metric | type2Cost = 0 |
| const Ospfv3Lsa * | linkStateOrigin = nullptr |
| std::vector< NextHop > | nextHops |
Additional Inherited Members | |
Static Public Member Functions inherited from inet::IRoute | |
| static const char * | sourceTypeName (SourceType sourceType) |
Protected Member Functions inherited from inet::Ipv4Route | |
| void | changed (int fieldCode) |
| typedef unsigned char inet::ospfv3::Ospfv3Ipv4RoutingTableEntry::RoutingDestinationType |
| inet::ospfv3::Ospfv3Ipv4RoutingTableEntry::Ospfv3Ipv4RoutingTableEntry | ( | const Ospfv3Ipv4RoutingTableEntry & | entry, |
| Ipv4Address | destPrefix, | ||
| int | prefixLength, | ||
| SourceType | sourceType | ||
| ) |
| inet::ospfv3::Ospfv3Ipv4RoutingTableEntry::Ospfv3Ipv4RoutingTableEntry | ( | IInterfaceTable * | ift, |
| Ipv4Address | destPrefix, | ||
| int | prefixLength, | ||
| SourceType | sourceType | ||
| ) |
|
inlinevirtual |
| void inet::ospfv3::Ospfv3Ipv4RoutingTableEntry::addNextHop | ( | NextHop | hop | ) |
Referenced by inet::ospfv3::Ospfv3Area::addRouterEntry(), inet::ospfv3::Ospfv3Area::calculateInterAreaRoutes(), inet::ospfv3::Ospfv3Area::calculateShortestPathTree(), inet::ospfv3::Ospfv3Area::createRoutingTableEntryFromInterAreaPrefixLSA(), and inet::ospfv3::Ospfv3Area::recheckInterAreaPrefixLSAs().
|
inline |
Referenced by inet::ospfv3::Ospfv3Area::recheckInterAreaPrefixLSAs().
|
inline |
|
inline |
|
inline |
|
inline |
Referenced by inet::ospfv3::Ospfv3Area::calculateShortestPathTree(), and inet::ospfv3::operator<<().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Referenced by inet::ospfv3::operator<<().
|
inline |
| bool inet::ospfv3::Ospfv3Ipv4RoutingTableEntry::operator== | ( | const Ospfv3Ipv4RoutingTableEntry & | entry | ) | const |
|
inline |
| void inet::ospfv3::Ospfv3Ipv4RoutingTableEntry::setCost | ( | Metric | pathCost | ) |
Referenced by inet::ospfv3::Ospfv3Area::addRouterEntry(), inet::ospfv3::Ospfv3Area::calculateShortestPathTree(), and inet::ospfv3::Ospfv3Area::createRoutingTableEntryFromInterAreaPrefixLSA().
|
inline |
|
inline |
|
inline |
| void inet::ospfv3::Ospfv3Ipv4RoutingTableEntry::setPathType | ( | RoutingPathType | type | ) |
Referenced by inet::ospfv3::Ospfv3Area::addRouterEntry(), inet::ospfv3::Ospfv3Area::calculateShortestPathTree(), and inet::ospfv3::Ospfv3Area::createRoutingTableEntryFromInterAreaPrefixLSA().
| void inet::ospfv3::Ospfv3Ipv4RoutingTableEntry::setType2Cost | ( | Metric | pathCost | ) |
|
private |
Referenced by operator==().
|
static |
|
static |
|
private |
Referenced by operator==(), setCost(), setPathType(), and setType2Cost().
|
private |
Referenced by operator==().
|
private |
Referenced by addNextHop().
|
private |
Referenced by operator==().
|
static |
Referenced by inet::ospfv3::Ospfv3Area::calculateInterAreaRoutes(), inet::ospfv3::Ospfv3Area::calculateShortestPathTree(), inet::ospfv3::Ospfv3Area::createRoutingTableEntryFromInterAreaPrefixLSA(), inet::ospfv3::Ospfv3Area::findSameOrWorseCostRoute(), inet::ospfv3::operator<<(), inet::ospfv3::Ospfv3Process::rebuildRoutingTable(), and inet::ospfv3::Ospfv3Area::recheckInterAreaPrefixLSAs().
|
private |
Referenced by addNextHop(), and operator==().
|
private |
Referenced by operator==().
|
private |
Referenced by operator==(), setCost(), setPathType(), and setType2Cost().
|
static |
|
private |
Referenced by operator==(), setCost(), setPathType(), and setType2Cost().