A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
cs-parameters.cc
Go to the documentation of this file.
1/*
2 * Copyright (c) 2009 INRIA, UDcast
3 *
4 * SPDX-License-Identifier: GPL-2.0-only
5 *
6 * Mohamed Amine Ismail <amine.ismail@sophia.inria.fr>
7 *
8 */
9#include "cs-parameters.h"
10
11#include "wimax-tlv.h"
12
13namespace ns3
14{
19
23
25{
28
29 for (auto iter = param->Begin(); iter != param->End(); ++iter)
30 {
31 switch ((*iter)->GetType())
32 {
35 (CsParameters::Action)((U8TlvValue*)((*iter)->PeekValue()))->GetValue();
36 break;
37 }
40 break;
41 }
42 }
43 }
44}
45
47 IpcsClassifierRecord classifier)
48{
49 m_classifierDscAction = classifierDscAction;
50 m_packetClassifierRule = classifier;
51}
52
53void
58
59void
61{
62 m_packetClassifierRule = packetClassifierRule;
63}
64
70
76
77Tlv
86} // namespace ns3
this class implements the convergence sub-layer descriptor as a tlv vector
Definition wimax-tlv.h:374
void SetClassifierDscAction(Action action)
sets the dynamic service classifier action to ADD, Change or delete.
Action
Action enumeration.
Tlv ToTlv() const
creates a tlv from the classifier record
Action GetClassifierDscAction() const
IpcsClassifierRecord GetPacketClassifierRule() const
Action m_classifierDscAction
classifier DSC action
IpcsClassifierRecord m_packetClassifierRule
packet classifier rule
void SetPacketClassifierRule(IpcsClassifierRecord packetClassifierRule)
sets the packet classifier rules
IpcsClassifierRecord class.
Tlv ToTlv() const
Creates a TLV from this classifier.
This class implements the Type-Len-Value structure channel encodings as described by "IEEEStandard fo...
Definition wimax-tlv.h:76
uint8_t GetType() const
Get type value.
Definition wimax-tlv.cc:200
TlvValue * PeekValue()
Peek value.
Definition wimax-tlv.cc:212
U8TlvValue class.
Definition wimax-tlv.h:164
uint32_t GetSerializedSize() const override
Get serialized size in bytes.
Definition wimax-tlv.cc:240
Iterator End() const
End iterator.
Definition wimax-tlv.cc:267
Iterator Begin() const
Begin iterator.
Definition wimax-tlv.cc:261
void Add(const Tlv &val)
Add a TLV.
Definition wimax-tlv.cc:273
#define NS_ASSERT_MSG(condition, message)
At runtime, in debugging builds, if this condition is not true, the program prints the message to out...
Definition assert.h:75
Every class exported by the ns3 library is enclosed in the ns3 namespace.