A record of an IPv4 multicast route for Ipv4GlobalRouting and Ipv4StaticRouting. More...
#include "ipv4-routing-table-entry.h"
Public Member Functions | |
Ipv4MulticastRoutingTableEntry () | |
This constructor does nothing. | |
Ipv4MulticastRoutingTableEntry (const Ipv4MulticastRoutingTableEntry &route) | |
Copy Constructor. | |
Ipv4MulticastRoutingTableEntry (const Ipv4MulticastRoutingTableEntry *route) | |
Copy Constructor. | |
Ipv4Address | GetGroup () const |
uint32_t | GetInputInterface () const |
uint32_t | GetNOutputInterfaces () const |
Ipv4Address | GetOrigin () const |
uint32_t | GetOutputInterface (uint32_t n) const |
std::vector< uint32_t > | GetOutputInterfaces () const |
Static Public Member Functions | |
static Ipv4MulticastRoutingTableEntry | CreateMulticastRoute (Ipv4Address origin, Ipv4Address group, uint32_t inputInterface, std::vector< uint32_t > outputInterfaces) |
Private Member Functions | |
Ipv4MulticastRoutingTableEntry (Ipv4Address origin, Ipv4Address group, uint32_t inputInterface, std::vector< uint32_t > outputInterfaces) | |
Constructor. | |
Private Attributes | |
Ipv4Address | m_group |
destination address | |
uint32_t | m_inputInterface |
input interface | |
Ipv4Address | m_origin |
source address | |
std::vector< uint32_t > | m_outputInterfaces |
output interfaces | |
A record of an IPv4 multicast route for Ipv4GlobalRouting and Ipv4StaticRouting.
Definition at line 187 of file ipv4-routing-table-entry.h.
ns3::Ipv4MulticastRoutingTableEntry::Ipv4MulticastRoutingTableEntry | ( | ) |
This constructor does nothing.
Definition at line 241 of file ipv4-routing-table-entry.cc.
References NS_LOG_FUNCTION.
Referenced by CreateMulticastRoute().
ns3::Ipv4MulticastRoutingTableEntry::Ipv4MulticastRoutingTableEntry | ( | const Ipv4MulticastRoutingTableEntry & | route | ) |
Copy Constructor.
route | The route to copy |
Definition at line 246 of file ipv4-routing-table-entry.cc.
References NS_LOG_FUNCTION.
ns3::Ipv4MulticastRoutingTableEntry::Ipv4MulticastRoutingTableEntry | ( | const Ipv4MulticastRoutingTableEntry * | route | ) |
Copy Constructor.
route | The route to copy |
Definition at line 256 of file ipv4-routing-table-entry.cc.
References NS_LOG_FUNCTION.
|
private |
Constructor.
origin | source address |
group | destination address |
inputInterface | input interface |
outputInterfaces | output interfaces |
Definition at line 266 of file ipv4-routing-table-entry.cc.
References m_group, m_inputInterface, m_origin, m_outputInterfaces, and NS_LOG_FUNCTION.
|
static |
origin | Source address for the multicast route |
group | Group destination address for the multicast route |
inputInterface | Input interface that multicast datagram must be received on |
outputInterfaces | vector of output interfaces to copy and forward the datagram to |
Definition at line 325 of file ipv4-routing-table-entry.cc.
References Ipv4MulticastRoutingTableEntry(), and NS_LOG_FUNCTION.
Referenced by ns3::Ipv4StaticRouting::AddMulticastRoute().
Ipv4Address ns3::Ipv4MulticastRoutingTableEntry::GetGroup | ( | ) | const |
Definition at line 287 of file ipv4-routing-table-entry.cc.
References m_group, and NS_LOG_FUNCTION.
Referenced by ns3::Ipv4StaticRouting::LookupStatic(), ns3::operator<<(), ns3::operator==(), and ns3::Ipv4StaticRouting::RemoveMulticastRoute().
uint32_t ns3::Ipv4MulticastRoutingTableEntry::GetInputInterface | ( | ) | const |
Definition at line 294 of file ipv4-routing-table-entry.cc.
References m_inputInterface, and NS_LOG_FUNCTION.
Referenced by ns3::Ipv4StaticRouting::LookupStatic(), ns3::operator<<(), ns3::operator==(), and ns3::Ipv4StaticRouting::RemoveMulticastRoute().
uint32_t ns3::Ipv4MulticastRoutingTableEntry::GetNOutputInterfaces | ( | ) | const |
Definition at line 301 of file ipv4-routing-table-entry.cc.
References m_outputInterfaces, and NS_LOG_FUNCTION.
Referenced by ns3::Ipv4StaticRouting::LookupStatic(), and ns3::operator<<().
Ipv4Address ns3::Ipv4MulticastRoutingTableEntry::GetOrigin | ( | ) | const |
Definition at line 280 of file ipv4-routing-table-entry.cc.
References m_origin, and NS_LOG_FUNCTION.
Referenced by ns3::Ipv4StaticRouting::LookupStatic(), ns3::operator<<(), ns3::operator==(), and ns3::Ipv4StaticRouting::RemoveMulticastRoute().
n | interface index |
Definition at line 308 of file ipv4-routing-table-entry.cc.
References m_outputInterfaces, NS_ASSERT_MSG, and NS_LOG_FUNCTION.
Referenced by ns3::Ipv4StaticRouting::LookupStatic(), and ns3::operator<<().
std::vector< uint32_t > ns3::Ipv4MulticastRoutingTableEntry::GetOutputInterfaces | ( | ) | const |
Definition at line 318 of file ipv4-routing-table-entry.cc.
References m_outputInterfaces, and NS_LOG_FUNCTION.
Referenced by ns3::operator==().
|
private |
destination address
Definition at line 257 of file ipv4-routing-table-entry.h.
Referenced by Ipv4MulticastRoutingTableEntry(), and GetGroup().
|
private |
input interface
Definition at line 258 of file ipv4-routing-table-entry.h.
Referenced by Ipv4MulticastRoutingTableEntry(), and GetInputInterface().
|
private |
source address
Definition at line 256 of file ipv4-routing-table-entry.h.
Referenced by Ipv4MulticastRoutingTableEntry(), and GetOrigin().
|
private |
output interfaces
Definition at line 259 of file ipv4-routing-table-entry.h.
Referenced by Ipv4MulticastRoutingTableEntry(), GetNOutputInterfaces(), GetOutputInterface(), and GetOutputInterfaces().