INET Framework for OMNeT++/OMNEST
inet::ospfv3::Ospfv3SpfVertex Class Reference

#include <Ospfv3Lsa.h>

Public Member Functions

 Ospfv3SpfVertex (Ospfv3Lsa *asocLSA, int distance)
 

Private Attributes

VertexID vertexID
 
Ospfv3LsaasocLSA
 
int distance
 
uint16_t type
 

Constructor & Destructor Documentation

◆ Ospfv3SpfVertex()

inet::ospfv3::Ospfv3SpfVertex::Ospfv3SpfVertex ( Ospfv3Lsa asocLSA,
int  distance 
)
7 {
8  this->distance = distance;
9  this->asocLSA = asocLSA;
10  this->type = asocLSA->getHeader().getLsaType();
12 
13  if (type == NETWORK_LSA) {
14  this->vertexID.interfaceID = 1;
15  }
16 }

Member Data Documentation

◆ asocLSA

Ospfv3Lsa* inet::ospfv3::Ospfv3SpfVertex::asocLSA
private

Referenced by Ospfv3SpfVertex().

◆ distance

int inet::ospfv3::Ospfv3SpfVertex::distance
private

Referenced by Ospfv3SpfVertex().

◆ type

uint16_t inet::ospfv3::Ospfv3SpfVertex::type
private

Referenced by Ospfv3SpfVertex().

◆ vertexID

VertexID inet::ospfv3::Ospfv3SpfVertex::vertexID
private

Referenced by Ospfv3SpfVertex().


The documentation for this class was generated from the following files:
inet::ospfv3::VertexID::interfaceID
int interfaceID
Definition: Ospfv3Common.h:246
inet::ospfv3::Ospfv3Lsa::getHeader
virtual const Ospfv3LsaHeader & getHeader() const
inet::ospfv3::Ospfv3SpfVertex::vertexID
VertexID vertexID
Definition: Ospfv3Lsa.h:174
inet::ospfv3::Ospfv3SpfVertex::asocLSA
Ospfv3Lsa * asocLSA
Definition: Ospfv3Lsa.h:175
inet::ospfv3::NETWORK_LSA
@ NETWORK_LSA
Definition: Ospfv3Packet_m.h:397
inet::ospfv3::Ospfv3LsaHeader::getLsaType
virtual unsigned short getLsaType() const
inet::ospfv3::Ospfv3LsaHeader::getLinkStateID
virtual const ::inet::Ipv4Address & getLinkStateID() const
inet::ospfv3::Ospfv3SpfVertex::distance
int distance
Definition: Ospfv3Lsa.h:176
inet::ospfv3::Ospfv3SpfVertex::type
uint16_t type
Definition: Ospfv3Lsa.h:177
inet::ospfv3::VertexID::routerID
Ipv4Address routerID
Definition: Ospfv3Common.h:247