A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ns3::Ipv4MulticastRoute Class Reference

Ipv4 multicast route cache entry (similar to Linux struct mfc_cache) More...

#include <ipv4-route.h>

+ Inheritance diagram for ns3::Ipv4MulticastRoute:

Public Member Functions

Ipv4Address GetGroup (void) const
 
Ipv4Address GetOrigin (void) const
 
uint32_t GetOutputTtl (uint32_t oif) NS_DEPRECATED
 
std::map< uint32_t, uint32_t > GetOutputTtlMap () const
 
uint32_t GetParent (void) const
 
void SetGroup (const Ipv4Address group)
 
void SetOrigin (const Ipv4Address origin)
 
void SetOutputTtl (uint32_t oif, uint32_t ttl)
 
void SetParent (uint32_t iif)
 
- Public Member Functions inherited from ns3::SimpleRefCount< Ipv4MulticastRoute >
 SimpleRefCount (const SimpleRefCount &o)
 
uint32_t GetReferenceCount (void) const
 
SimpleRefCountoperator= (const SimpleRefCount &o)
 
void Ref (void) const
 
void Unref (void) const
 

Static Public Attributes

static const uint32_t MAX_INTERFACES = 16
 
static const uint32_t MAX_TTL = 255
 

Private Attributes

Ipv4Address m_group
 
Ipv4Address m_origin
 
uint32_t m_parent
 
std::map< uint32_t, uint32_t > m_ttls
 

Additional Inherited Members

- Static Public Member Functions inherited from ns3::SimpleRefCount< Ipv4MulticastRoute >
static void Cleanup (void)
 

Detailed Description

Ipv4 multicast route cache entry (similar to Linux struct mfc_cache)

Definition at line 108 of file ipv4-route.h.

Member Function Documentation

Ipv4Address ns3::Ipv4MulticastRoute::GetGroup ( void  ) const
Returns
Ipv4Address of the multicast group

Definition at line 110 of file ipv4-route.cc.

References NS_LOG_FUNCTION.

Ipv4Address ns3::Ipv4MulticastRoute::GetOrigin ( void  ) const
Returns
Ipv4Address of the origin address

Definition at line 124 of file ipv4-route.cc.

References NS_LOG_FUNCTION.

uint32_t ns3::Ipv4MulticastRoute::GetOutputTtl ( uint32_t  oif)
Parameters
oifoutgoing interface
Returns
TTL for this route

Definition at line 165 of file ipv4-route.cc.

References NS_LOG_FUNCTION.

std::map< uint32_t, uint32_t > ns3::Ipv4MulticastRoute::GetOutputTtlMap ( ) const
Returns
map of output interface Ids and TTLs for this route

Definition at line 176 of file ipv4-route.cc.

References NS_LOG_FUNCTION.

uint32_t ns3::Ipv4MulticastRoute::GetParent ( void  ) const
Returns
Parent (input interface) for this route

Definition at line 138 of file ipv4-route.cc.

References NS_LOG_FUNCTION.

void ns3::Ipv4MulticastRoute::SetGroup ( const Ipv4Address  group)
Parameters
groupIpv4Address of the multicast group

Definition at line 103 of file ipv4-route.cc.

References NS_LOG_FUNCTION.

void ns3::Ipv4MulticastRoute::SetOrigin ( const Ipv4Address  origin)
Parameters
originIpv4Address of the origin address

Definition at line 117 of file ipv4-route.cc.

References NS_LOG_FUNCTION.

void ns3::Ipv4MulticastRoute::SetOutputTtl ( uint32_t  oif,
uint32_t  ttl 
)
Parameters
oifOutgoing interface index
ttltime-to-live for this route

Definition at line 145 of file ipv4-route.cc.

References NS_LOG_FUNCTION.

void ns3::Ipv4MulticastRoute::SetParent ( uint32_t  iif)
Parameters
iifParent (input interface) for this route

Definition at line 131 of file ipv4-route.cc.

References NS_LOG_FUNCTION.


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