|
INET Framework for OMNeT++/OMNEST
|
#include <ansaOspfRoutingTableEntry6.h>
Definition at line 25 of file ansaOspfRoutingTableEntry6.h.
| typedef unsigned char AnsaOspf6::RoutingTableEntry::RoutingDestinationType |
Definition at line 34 of file ansaOspfRoutingTableEntry6.h.
Definition at line 27 of file ansaOspfRoutingTableEntry6.h.
{
IntraArea = 0,
InterArea = 1,
Type1External = 2,
Type2External = 3
};
| AnsaOspf6::RoutingTableEntry::RoutingTableEntry | ( | void | ) | [inline] |
Definition at line 85 of file ansaOspfRoutingTableEntry6.h.
:
IPv6Route(IPv6Address::UNSPECIFIED_ADDRESS, 0, IPv6Route::ROUTING_PROT),
destinationType(AnsaOspf6::RoutingTableEntry::NetworkDestination),
area(AnsaOspf6::BackboneAreaID),
pathType(AnsaOspf6::RoutingTableEntry::IntraArea),
type2Cost(0),
linkStateOrigin(NULL) {
memset(&optionalCapabilities, 0, sizeof(OspfOptions6));
}
| AnsaOspf6::RoutingTableEntry::RoutingTableEntry | ( | const RoutingTableEntry & | entry | ) | [inline] |
Definition at line 96 of file ansaOspfRoutingTableEntry6.h.
:
IPv6Route(entry._destPrefix, entry._length, entry._src),
destinationType(entry.destinationType),
optionalCapabilities(entry.optionalCapabilities),
area(entry.area),
pathType(entry.pathType),
cost(entry.cost),
type2Cost(entry.type2Cost),
linkStateOrigin(entry.linkStateOrigin),
nextHops(entry.nextHops) {
_nextHop = entry._nextHop;
_interfaceID = entry._interfaceID;
_metric = entry._metric;
}
| virtual AnsaOspf6::RoutingTableEntry::~RoutingTableEntry | ( | void | ) | [inline, virtual] |
Definition at line 54 of file ansaOspfRoutingTableEntry6.h.
{}
| void AnsaOspf6::RoutingTableEntry::AddNextHop | ( | AnsaOspf6::NextHop | hop | ) | [inline] |
Definition at line 142 of file ansaOspfRoutingTableEntry6.h.
{
if (nextHops.size() == 0){
InterfaceEntry* routingInterface = AnsaInterfaceTableAccess().get()->getInterfaceById(hop.ifIndex);
_interfaceID = routingInterface->getInterfaceId();
_nextHop = hop.hopAddress;
}
nextHops.push_back(hop);
}
| void AnsaOspf6::RoutingTableEntry::ClearNextHops | ( | void | ) | [inline] |
Definition at line 78 of file ansaOspfRoutingTableEntry6.h.
{ nextHops.clear(); }
| AreaID AnsaOspf6::RoutingTableEntry::GetArea | ( | void | ) | const [inline] |
Definition at line 68 of file ansaOspfRoutingTableEntry6.h.
Referenced by operator<<().
{ return area; }
| Metric AnsaOspf6::RoutingTableEntry::GetCost | ( | void | ) | const [inline] |
Definition at line 72 of file ansaOspfRoutingTableEntry6.h.
Referenced by operator<<().
{ return cost; }
| IPv6Address AnsaOspf6::RoutingTableEntry::GetDestinationPrefix | ( | void | ) | const [inline] |
Definition at line 62 of file ansaOspfRoutingTableEntry6.h.
Referenced by operator<<().
{ return _destPrefix; }
| RoutingDestinationType AnsaOspf6::RoutingTableEntry::GetDestinationType | ( | void | ) | const [inline] |
Definition at line 60 of file ansaOspfRoutingTableEntry6.h.
Referenced by operator<<().
{ return destinationType; }
| const OspfLsa6* AnsaOspf6::RoutingTableEntry::GetLinkStateOrigin | ( | void | ) | const [inline] |
Definition at line 76 of file ansaOspfRoutingTableEntry6.h.
Referenced by operator<<().
{ return linkStateOrigin; }
| NextHop AnsaOspf6::RoutingTableEntry::GetNextHop | ( | unsigned int | index | ) | const [inline] |
Definition at line 80 of file ansaOspfRoutingTableEntry6.h.
Referenced by operator<<().
| unsigned int AnsaOspf6::RoutingTableEntry::GetNextHopCount | ( | void | ) | const [inline] |
Definition at line 79 of file ansaOspfRoutingTableEntry6.h.
Referenced by operator<<().
{ return nextHops.size(); }
| OspfOptions6 AnsaOspf6::RoutingTableEntry::GetOptionalCapabilities | ( | void | ) | const [inline] |
Definition at line 66 of file ansaOspfRoutingTableEntry6.h.
{ return optionalCapabilities; }
| RoutingPathType AnsaOspf6::RoutingTableEntry::GetPathType | ( | void | ) | const [inline] |
Definition at line 70 of file ansaOspfRoutingTableEntry6.h.
Referenced by operator<<().
{ return pathType; }
| short AnsaOspf6::RoutingTableEntry::GetPrefixLength | ( | void | ) | const [inline] |
Definition at line 64 of file ansaOspfRoutingTableEntry6.h.
Referenced by operator<<().
{ return _length; }
| Metric AnsaOspf6::RoutingTableEntry::GetType2Cost | ( | void | ) | const [inline] |
Definition at line 74 of file ansaOspfRoutingTableEntry6.h.
Referenced by operator<<().
{ return type2Cost; }
| bool AnsaOspf6::RoutingTableEntry::operator!= | ( | const RoutingTableEntry & | entry | ) | const [inline] |
Definition at line 57 of file ansaOspfRoutingTableEntry6.h.
{ return (!((*this) == entry)); }
| bool AnsaOspf6::RoutingTableEntry::operator== | ( | const RoutingTableEntry & | entry | ) | const [inline] |
Definition at line 151 of file ansaOspfRoutingTableEntry6.h.
{
unsigned int hopCount = nextHops.size();
unsigned int i = 0;
if (hopCount != entry.nextHops.size()){
return false;
}
for (i = 0; i < hopCount; i++){
if ((nextHops[i] != entry.nextHops[i])){
return false;
}
}
return ( (destinationType == entry.destinationType)
&& (_destPrefix == entry._destPrefix)
&& (_length == entry._length)
&& (optionalCapabilities == entry.optionalCapabilities)
&& (area == entry.area)
&& (pathType == entry.pathType)
&& (cost == entry.cost)
&& (type2Cost == entry.type2Cost)
&& (linkStateOrigin == entry.linkStateOrigin));
}
| void AnsaOspf6::RoutingTableEntry::SetArea | ( | AreaID | source | ) | [inline] |
Definition at line 67 of file ansaOspfRoutingTableEntry6.h.
{ area = source; }
| void AnsaOspf6::RoutingTableEntry::SetCost | ( | Metric | pathCost | ) | [inline] |
Definition at line 122 of file ansaOspfRoutingTableEntry6.h.
| void AnsaOspf6::RoutingTableEntry::SetDestinationPrefix | ( | IPv6Address | destID | ) | [inline] |
Definition at line 61 of file ansaOspfRoutingTableEntry6.h.
{ _destPrefix = destID; }
| void AnsaOspf6::RoutingTableEntry::SetDestinationType | ( | RoutingDestinationType | type | ) | [inline] |
Definition at line 59 of file ansaOspfRoutingTableEntry6.h.
{ destinationType = type; }
| void AnsaOspf6::RoutingTableEntry::SetLinkStateOrigin | ( | const OspfLsa6 * | lsa | ) | [inline] |
Definition at line 75 of file ansaOspfRoutingTableEntry6.h.
{ linkStateOrigin = lsa; }
| void AnsaOspf6::RoutingTableEntry::SetOptionalCapabilities | ( | OspfOptions6 | options | ) | [inline] |
Definition at line 65 of file ansaOspfRoutingTableEntry6.h.
{ optionalCapabilities = options; }
| void AnsaOspf6::RoutingTableEntry::SetPathType | ( | RoutingPathType | type | ) | [inline] |
Definition at line 112 of file ansaOspfRoutingTableEntry6.h.
| void AnsaOspf6::RoutingTableEntry::SetPrefixLength | ( | short | prefixLen | ) | [inline] |
Definition at line 63 of file ansaOspfRoutingTableEntry6.h.
{ _length = prefixLen; }
| void AnsaOspf6::RoutingTableEntry::SetType2Cost | ( | Metric | pathCost | ) | [inline] |
Definition at line 132 of file ansaOspfRoutingTableEntry6.h.
AreaID AnsaOspf6::RoutingTableEntry::area [private] |
Definition at line 44 of file ansaOspfRoutingTableEntry6.h.
Referenced by GetArea(), operator==(), and SetArea().
const unsigned char AnsaOspf6::RoutingTableEntry::AreaBorderRouterDestination = 1 [static] |
Definition at line 38 of file ansaOspfRoutingTableEntry6.h.
Referenced by operator<<().
const unsigned char AnsaOspf6::RoutingTableEntry::ASBoundaryRouterDestination = 2 [static] |
Definition at line 39 of file ansaOspfRoutingTableEntry6.h.
Referenced by operator<<().
Metric AnsaOspf6::RoutingTableEntry::cost [private] |
Definition at line 46 of file ansaOspfRoutingTableEntry6.h.
Referenced by GetCost(), and operator==().
Definition at line 42 of file ansaOspfRoutingTableEntry6.h.
Referenced by GetDestinationType(), operator==(), and SetDestinationType().
const OspfLsa6* AnsaOspf6::RoutingTableEntry::linkStateOrigin [private] |
Definition at line 48 of file ansaOspfRoutingTableEntry6.h.
Referenced by GetLinkStateOrigin(), operator==(), and SetLinkStateOrigin().
const unsigned char AnsaOspf6::RoutingTableEntry::NetworkDestination = 0 [static] |
Definition at line 37 of file ansaOspfRoutingTableEntry6.h.
Referenced by operator<<().
std::vector<NextHop> AnsaOspf6::RoutingTableEntry::nextHops [private] |
Definition at line 49 of file ansaOspfRoutingTableEntry6.h.
Referenced by ClearNextHops(), GetNextHop(), GetNextHopCount(), and operator==().
Definition at line 43 of file ansaOspfRoutingTableEntry6.h.
Referenced by GetOptionalCapabilities(), operator==(), RoutingTableEntry(), and SetOptionalCapabilities().
Definition at line 45 of file ansaOspfRoutingTableEntry6.h.
Referenced by GetPathType(), and operator==().
Definition at line 47 of file ansaOspfRoutingTableEntry6.h.
Referenced by GetType2Cost(), and operator==().