This class implements the EPS bearer Traffic Flow Template (TFT), which is the set of all packet filters associated with an EPS bearer. More...
#include "epc-tft.h"
Classes | |
struct | PacketFilter |
Implement the data structure representing a TrafficFlowTemplate Packet Filter. More... | |
Public Types | |
enum | Direction { DOWNLINK = 1 , UPLINK = 2 , BIDIRECTIONAL = 3 } |
Indicates the direction of the traffic that is to be classified. More... | |
Public Member Functions | |
EpcTft () | |
uint8_t | Add (PacketFilter f) |
add a PacketFilter to the Traffic Flow Template | |
std::list< PacketFilter > | GetPacketFilters () const |
Get the packet filters. | |
bool | Matches (Direction direction, Ipv4Address remoteAddress, Ipv4Address localAddress, uint16_t remotePort, uint16_t localPort, uint8_t typeOfService) |
bool | Matches (Direction direction, Ipv6Address remoteAddress, Ipv6Address localAddress, uint16_t remotePort, uint16_t localPort, uint8_t typeOfService) |
Public Member Functions inherited from ns3::SimpleRefCount< EpcTft > | |
SimpleRefCount () | |
Default constructor. | |
SimpleRefCount (const SimpleRefCount &o) | |
Copy constructor. | |
uint32_t | GetReferenceCount () const |
Get the reference count of the object. | |
SimpleRefCount & | operator= (const SimpleRefCount &o) |
Assignment operator. | |
void | Ref () const |
Increment the reference count. | |
void | Unref () const |
Decrement the reference count. | |
Static Public Member Functions | |
static Ptr< EpcTft > | Default () |
creates a TFT matching any traffic | |
Private Attributes | |
std::list< PacketFilter > | m_filters |
packet filter list | |
uint8_t | m_numFilters |
number of packet filters applied to this TFT | |
This class implements the EPS bearer Traffic Flow Template (TFT), which is the set of all packet filters associated with an EPS bearer.
ns3::EpcTft::EpcTft | ( | ) |
Definition at line 237 of file epc-tft.cc.
References NS_LOG_FUNCTION.
uint8_t ns3::EpcTft::Add | ( | PacketFilter | f | ) |
add a PacketFilter to the Traffic Flow Template
f | the PacketFilter to be added |
Definition at line 244 of file epc-tft.cc.
References f(), m_filters, m_numFilters, NS_ABORT_IF, and NS_LOG_FUNCTION.
creates a TFT matching any traffic
Definition at line 229 of file epc-tft.cc.
Referenced by EpcTftClassifierTestSuite::EpcTftClassifierTestSuite(), ns3::LteHelper::Attach(), EpcS1uDlTestCase::DoRun(), EpcS1uUlTestCase::DoRun(), LenaCqaFfMacSchedulerTestCase1::DoRun(), LenaCqaFfMacSchedulerTestCase2::DoRun(), ns3::LenaDeactivateBearerTestCase::DoRun(), LenaFdTbfqFfMacSchedulerTestCase1::DoRun(), LenaFdTbfqFfMacSchedulerTestCase2::DoRun(), LenaPssFfMacSchedulerTestCase1::DoRun(), LenaPssFfMacSchedulerTestCase2::DoRun(), LenaTdTbfqFfMacSchedulerTestCase1::DoRun(), and LenaTdTbfqFfMacSchedulerTestCase2::DoRun().
std::list< EpcTft::PacketFilter > ns3::EpcTft::GetPacketFilters | ( | ) | const |
Get the packet filters.
Definition at line 309 of file epc-tft.cc.
References m_filters, and NS_LOG_FUNCTION.
bool ns3::EpcTft::Matches | ( | Direction | direction, |
Ipv4Address | remoteAddress, | ||
Ipv4Address | localAddress, | ||
uint16_t | remotePort, | ||
uint16_t | localPort, | ||
uint8_t | typeOfService | ||
) |
direction | |
remoteAddress | |
localAddress | |
remotePort | |
localPort | |
typeOfService |
Definition at line 259 of file epc-tft.cc.
References m_filters, and NS_LOG_FUNCTION.
bool ns3::EpcTft::Matches | ( | Direction | direction, |
Ipv6Address | remoteAddress, | ||
Ipv6Address | localAddress, | ||
uint16_t | remotePort, | ||
uint16_t | localPort, | ||
uint8_t | typeOfService | ||
) |
direction | |
remoteAddress | |
localAddress | |
remotePort | |
localPort | |
typeOfService |
Definition at line 284 of file epc-tft.cc.
References m_filters, and NS_LOG_FUNCTION.
|
private |
packet filter list
Definition at line 195 of file epc-tft.h.
Referenced by Add(), GetPacketFilters(), and Matches().
|
private |