INET Framework for OMNeT++/OMNEST
inet::PIMInterface Class Reference

An entry of PIMInterfaceTable holding PIM specific parameters and state of the interface. More...

#include <PIMInterfaceTable.h>

Inheritance diagram for inet::PIMInterface:

Public Types

enum  PIMMode { DenseMode = 1, SparseMode = 2 }
 

Public Member Functions

 PIMInterface (InterfaceEntry *ie, PIMMode mode, bool stateRefreshFlag)
 
virtual std::string info () const override
 
int getInterfaceId () const
 
InterfaceEntry * getInterfacePtr () const
 
PIMMode getMode () const
 
bool getSR () const
 
IPv4Address getDRAddress () const
 
void setDRAddress (IPv4Address address)
 

Protected Attributes

InterfaceEntry * ie
 
PIMMode mode
 
bool stateRefreshFlag
 
IPv4Address drAddress
 

Detailed Description

An entry of PIMInterfaceTable holding PIM specific parameters and state of the interface.

Member Enumeration Documentation

Enumerator
DenseMode 
SparseMode 
35  {
36  DenseMode = 1,
37  SparseMode = 2
38  };
Definition: PIMInterfaceTable.h:37
Definition: PIMInterfaceTable.h:36

Constructor & Destructor Documentation

inet::PIMInterface::PIMInterface ( InterfaceEntry *  ie,
PIMMode  mode,
bool  stateRefreshFlag 
)
inline
52  : ie(ie), mode(mode), stateRefreshFlag(stateRefreshFlag) { ASSERT(ie); }
bool stateRefreshFlag
Definition: PIMInterfaceTable.h:45
PIMMode mode
Definition: PIMInterfaceTable.h:44
InterfaceEntry * ie
Definition: PIMInterfaceTable.h:41

Member Function Documentation

IPv4Address inet::PIMInterface::getDRAddress ( ) const
inline

Referenced by inet::PIMSM::IamDR(), inet::operator<<(), and inet::PIMSM::updateDesignatedRouterAddress().

60 { return drAddress; }
IPv4Address drAddress
Definition: PIMInterfaceTable.h:48
int inet::PIMInterface::getInterfaceId ( ) const
inline

Referenced by inet::PIMBase::sendHelloPacket(), and inet::PIMDM::unroutableMulticastPacketArrived().

55 { return ie->getInterfaceId(); }
int getInterfaceId() const
Definition: InterfaceEntry.h:185
InterfaceEntry * ie
Definition: PIMInterfaceTable.h:41
InterfaceEntry* inet::PIMInterface::getInterfacePtr ( ) const
inline
bool inet::PIMInterface::getSR ( ) const
inline
std::string inet::PIMInterface::info ( ) const
overridevirtual
42 {
43  std::stringstream out;
44  out << this;
45  return out.str();
46 }
void inet::PIMInterface::setDRAddress ( IPv4Address  address)
inline

Referenced by inet::PIMSM::updateDesignatedRouterAddress().

61 { drAddress = address; }
IPv4Address drAddress
Definition: PIMInterfaceTable.h:48

Member Data Documentation

IPv4Address inet::PIMInterface::drAddress
protected
InterfaceEntry* inet::PIMInterface::ie
protected
PIMMode inet::PIMInterface::mode
protected
bool inet::PIMInterface::stateRefreshFlag
protected

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