|
INET Framework for OMNeT++/OMNEST
|
#include <BGPRoutingTableEntry.h>
Public Types | |
| typedef unsigned char | RoutingPathType |
Public Types inherited from inet::IPv4Route | |
| 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, dUnknown = 255 } |
| Cisco like administrative distances. More... | |
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... | |
Public Member Functions | |
| RoutingTableEntry (void) | |
| RoutingTableEntry (const IPv4Route *entry) | |
| virtual | ~RoutingTableEntry (void) |
| void | setPathType (RoutingPathType type) |
| RoutingPathType | getPathType (void) const |
| void | addAS (ASID newAS) |
| unsigned int | getASCount (void) const |
| ASID | getAS (unsigned int index) const |
Public Member Functions inherited from inet::IPv4Route | |
| IPv4Route () | |
| virtual | ~IPv4Route () |
| virtual std::string | info () const override |
| virtual std::string | detailedInfo () const override |
| 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 (InterfaceEntry *_interfacePtr) override |
| virtual void | setSourceType (SourceType _source) override |
| virtual void | setAdminDist (unsigned int _adminDist) |
| virtual void | setMetric (int _metric) override |
| IPv4Address | getDestination () const |
| Destination address prefix to match. More... | |
| IPv4Address | getNetmask () const |
| Represents length of prefix to match. More... | |
| IPv4Address | getGateway () const |
| Next hop address. More... | |
| InterfaceEntry * | 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 |
Private Attributes | |
| RoutingPathType | _pathType = INCOMPLETE |
| std::vector< ASID > | _ASList |
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::bgp::RoutingTableEntry::RoutingPathType |
|
inline |
|
inline |
|
inline |
Referenced by inet::bgp::BGPRouting::processMessage().
|
inline |
Referenced by inet::bgp::BGPRouting::asLoopDetection(), inet::bgp::BGPRouting::isInASList(), inet::bgp::operator<<(), and inet::bgp::BGPRouting::updateSendProcess().
|
inline |
Referenced by inet::bgp::BGPRouting::asLoopDetection(), inet::bgp::BGPRouting::isInASList(), inet::bgp::operator<<(), inet::bgp::BGPRouting::tieBreakingProcess(), and inet::bgp::BGPRouting::updateSendProcess().
|
inline |
Referenced by inet::bgp::operator<<(), and inet::bgp::BGPRouting::tieBreakingProcess().
|
inline |
Referenced by inet::bgp::BGPRouting::decisionProcess().
|
private |
|
private |