CsParameters class. More...
#include "cs-parameters.h"
Public Types | |
enum | Action { ADD = 0 , REPLACE = 1 , DELETE = 2 } |
Action enumeration. More... | |
Public Member Functions | |
CsParameters () | |
CsParameters (Action classifierDscAction, IpcsClassifierRecord classifier) | |
creates a convergence sub-layer parameters from an ipcs classifier record | |
CsParameters (Tlv tlv) | |
creates a convergence sub-layer parameters from a tlv | |
~CsParameters () | |
Action | GetClassifierDscAction () const |
IpcsClassifierRecord | GetPacketClassifierRule () const |
void | SetClassifierDscAction (Action action) |
sets the dynamic service classifier action to ADD, Change or delete. | |
void | SetPacketClassifierRule (IpcsClassifierRecord packetClassifierRule) |
sets the packet classifier rules | |
Tlv | ToTlv () const |
creates a tlv from the classifier record | |
Private Attributes | |
Action | m_classifierDscAction |
classifier DSC action | |
IpcsClassifierRecord | m_packetClassifierRule |
packet classifier rule | |
CsParameters class.
Definition at line 24 of file cs-parameters.h.
ns3::CsParameters::CsParameters | ( | ) |
Definition at line 15 of file cs-parameters.cc.
References ADD, and m_classifierDscAction.
ns3::CsParameters::~CsParameters | ( | ) |
Definition at line 20 of file cs-parameters.cc.
ns3::CsParameters::CsParameters | ( | Tlv | tlv | ) |
creates a convergence sub-layer parameters from a tlv
tlv | the TLV |
Definition at line 24 of file cs-parameters.cc.
References ns3::VectorTlvValue::Begin(), ns3::CsParamVectorTlvValue::Classifier_DSC_Action, ns3::VectorTlvValue::End(), ns3::Tlv::GetType(), ns3::SfVectorTlvValue::IPV4_CS_Parameters, m_classifierDscAction, m_packetClassifierRule, NS_ASSERT_MSG, ns3::CsParamVectorTlvValue::Packet_Classification_Rule, and ns3::Tlv::PeekValue().
ns3::CsParameters::CsParameters | ( | CsParameters::Action | classifierDscAction, |
IpcsClassifierRecord | classifier ) |
creates a convergence sub-layer parameters from an ipcs classifier record
classifierDscAction | the DCS action type |
classifier | the IPCS classifier record |
Definition at line 46 of file cs-parameters.cc.
References m_classifierDscAction, and m_packetClassifierRule.
CsParameters::Action ns3::CsParameters::GetClassifierDscAction | ( | ) | const |
Definition at line 66 of file cs-parameters.cc.
References m_classifierDscAction.
IpcsClassifierRecord ns3::CsParameters::GetPacketClassifierRule | ( | ) | const |
Definition at line 72 of file cs-parameters.cc.
References m_packetClassifierRule.
Referenced by ns3::ServiceFlow::CheckClassifierMatch(), and Ns3WimaxCsParamTlvTestCase::DoRun().
void ns3::CsParameters::SetClassifierDscAction | ( | CsParameters::Action | action | ) |
sets the dynamic service classifier action to ADD, Change or delete.
Only ADD is supported
action | the action enumeration |
Definition at line 54 of file cs-parameters.cc.
References m_classifierDscAction.
void ns3::CsParameters::SetPacketClassifierRule | ( | IpcsClassifierRecord | packetClassifierRule | ) |
sets the packet classifier rules
packetClassifierRule | the IPCS classifier record |
Definition at line 60 of file cs-parameters.cc.
References m_packetClassifierRule.
Tlv ns3::CsParameters::ToTlv | ( | ) | const |
creates a tlv from the classifier record
Definition at line 78 of file cs-parameters.cc.
References ns3::VectorTlvValue::Add(), ns3::CsParamVectorTlvValue::Classifier_DSC_Action, ns3::VectorTlvValue::GetSerializedSize(), ns3::SfVectorTlvValue::IPV4_CS_Parameters, m_classifierDscAction, m_packetClassifierRule, and ns3::IpcsClassifierRecord::ToTlv().
Referenced by Ns3WimaxCsParamTlvTestCase::DoRun(), and ns3::ServiceFlow::ToTlv().
|
private |
classifier DSC action
Definition at line 74 of file cs-parameters.h.
Referenced by CsParameters(), CsParameters(), CsParameters(), GetClassifierDscAction(), SetClassifierDscAction(), and ToTlv().
|
private |
packet classifier rule
Definition at line 75 of file cs-parameters.h.
Referenced by CsParameters(), CsParameters(), GetPacketClassifierRule(), SetPacketClassifierRule(), and ToTlv().