ns-3
|
classifies IP packets accoding to Traffic Flow Templates (TFTs) More...
#include <epc-tft-classifier.h>
Public Member Functions | |
void | Add (Ptr< EpcTft > tft, uint32_t id) |
void | Delete (uint32_t id) |
uint32_t | Classify (Ptr< Packet > p, EpcTft::Direction direction) |
![]() | |
SimpleRefCount (const SimpleRefCount &o) | |
SimpleRefCount & | operator= (const SimpleRefCount &o) |
void | Ref (void) const |
void | Unref (void) const |
uint32_t | GetReferenceCount (void) const |
Protected Attributes | |
std::map< uint32_t, Ptr< EpcTft > > | m_tftMap |
Additional Inherited Members | |
![]() | |
static void | Cleanup (void) |
classifies IP packets accoding to Traffic Flow Templates (TFTs)
add a TFT to the Classifier
tft | the TFT to be added |
References NS_ASSERT, and NS_LOG_FUNCTION.
Referenced by ns3::LteUeRrc::SetupRadioBearer().
uint32_t ns3::EpcTftClassifier::Classify | ( | Ptr< Packet > | p, |
EpcTft::Direction | direction | ||
) |
classify an IP packet
p | the IP packet. It is assumed that the outmost header is an IPv4 header. |
References ns3::Packet::Copy(), ns3::Ipv4Header::GetDestination(), ns3::UdpHeader::GetDestinationPort(), ns3::TcpHeader::GetDestinationPort(), ns3::Ipv4Header::GetProtocol(), ns3::Ipv4Header::GetSource(), ns3::UdpHeader::GetSourcePort(), ns3::TcpHeader::GetSourcePort(), ns3::Ipv4Header::GetTos(), NS_ASSERT, NS_LOG_FUNCTION, NS_LOG_INFO, NS_LOG_LOGIC, and ns3::Packet::RemoveHeader().
Referenced by ns3::LteUeRrc::Send().
void ns3::EpcTftClassifier::Delete | ( | uint32_t | id | ) |
delete an existing TFT from the classifier
id | the identifier of the TFT to be deleted |
References NS_LOG_FUNCTION.