Multicast Routing Modelling In OMNeT++
Public Member Functions | Protected Attributes
PimNeighbor Class Reference

Class represents one entry of PimNeighborTable. More...

#include <PimNeighborTable.h>

List of all members.

Public Member Functions

virtual std::string info () const
void setId (int id)
void setInterfaceID (int intID)
void setInterfacePtr (InterfaceEntry *intPtr)
void setAddr (IPAddress addr)
void setVersion (int ver)
void setNlt (PIMnlt *nlt)
int getId () const
int getInterfaceID () const
InterfaceEntry * getInterfacePtr () const
IPAddress getAddr () const
int getVersion () const
PIMnlt * getNlt () const

Protected Attributes

int id
int intID
InterfaceEntry * intPtr
IPAddress addr
int ver
PIMnlt * nlt

Detailed Description

Class represents one entry of PimNeighborTable.

Structure PIM neighbor with info about interface, IP address of neighbor link to Neighbor Livness Timer and PIM version. The class contains methods to work with items of structure.

Definition at line 26 of file PimNeighborTable.h.


Member Function Documentation

std::string PimNeighbor::info ( ) const [virtual]

Printout of structure Neighbor table (PimNeighbor).

Definition at line 26 of file PimNeighborTable.cc.

{
        std::stringstream out;
        out << id << ": ID = " << intID << "; Addr = " << addr << "; Ver = " << ver;
        return out.str();
}
void PimNeighbor::setId ( int  id) [inline]

Set unique identifier of entry.

Definition at line 42 of file PimNeighborTable.h.

void PimNeighbor::setInterfaceID ( int  intID) [inline]

Set interface ID.

Definition at line 43 of file PimNeighborTable.h.

void PimNeighbor::setInterfacePtr ( InterfaceEntry *  intPtr) [inline]

Set pointer to interface.

Definition at line 44 of file PimNeighborTable.h.

void PimNeighbor::setAddr ( IPAddress  addr) [inline]

Set IP address of neighbor.

Definition at line 45 of file PimNeighborTable.h.

void PimNeighbor::setVersion ( int  ver) [inline]

Set PIM version (from Hello msg).

Definition at line 46 of file PimNeighborTable.h.

void PimNeighbor::setNlt ( PIMnlt *  nlt) [inline]

Set pointer to NeighborLivenessTimer.

Definition at line 47 of file PimNeighborTable.h.

int PimNeighbor::getId ( ) const [inline]

Get unique identifier of entry.

Definition at line 51 of file PimNeighborTable.h.

int PimNeighbor::getInterfaceID ( ) const [inline]

Get interface ID.

Definition at line 52 of file PimNeighborTable.h.

InterfaceEntry* PimNeighbor::getInterfacePtr ( ) const [inline]

Get pointer to interface.

Definition at line 53 of file PimNeighborTable.h.

IPAddress PimNeighbor::getAddr ( ) const [inline]

Get IP address of neighbor.

Definition at line 54 of file PimNeighborTable.h.

int PimNeighbor::getVersion ( ) const [inline]

Get PIM version.

Definition at line 55 of file PimNeighborTable.h.

PIMnlt* PimNeighbor::getNlt ( ) const [inline]

Get pointer to NeighborLivenessTimer.

Definition at line 56 of file PimNeighborTable.h.


Member Data Documentation

int PimNeighbor::id [protected]

Unique identifier of entry.

Definition at line 29 of file PimNeighborTable.h.

int PimNeighbor::intID [protected]

Identification of interface.

Definition at line 30 of file PimNeighborTable.h.

InterfaceEntry* PimNeighbor::intPtr [protected]

Link to interface table entry.

Definition at line 31 of file PimNeighborTable.h.

IPAddress PimNeighbor::addr [protected]

IP address of neighbor.

Definition at line 32 of file PimNeighborTable.h.

int PimNeighbor::ver [protected]

PIM version.

Definition at line 33 of file PimNeighborTable.h.

PIMnlt* PimNeighbor::nlt [protected]

Pointer to Neighbor Livness Timer.

Definition at line 34 of file PimNeighborTable.h.


The documentation for this class was generated from the following files: