25 #define WIMAX_TLV_EXTENDED_LENGTH_MASK 0x80 27 #include "ns3/ipv4-address.h" 30 #include "ns3/assert.h" 31 #include "ns3/uinteger.h" 32 #include "ns3/header.h" 104 Tlv (uint8_t type, uint64_t length,
const TlvValue & value);
113 virtual void Print (std::ostream &os)
const;
293 typedef std::vector<Tlv*>::const_iterator
Iterator;
313 void Add (
const Tlv & val);
434 TosTlvValue (uint8_t low, uint8_t high, uint8_t mask);
443 uint8_t
GetLow (
void)
const;
480 typedef std::vector<struct PortRange>::const_iterator
Iterator;
491 void Add (uint16_t portLow, uint16_t portHigh);
522 typedef std::vector<uint8_t>::const_iterator
Iterator;
530 void Add (uint8_t protocol);
566 typedef std::vector<struct ipv4Addr>::const_iterator
Iterator;
uint8_t GetLow(void) const
Get low part.
virtual uint32_t Deserialize(Buffer::Iterator start, uint64_t valueLength)
Deserialize from a buffer.
uint64_t GetLength(void) const
Get length value.
virtual uint32_t Deserialize(Buffer::Iterator start, uint64_t valueLength)
Deserialize from a buffer.
virtual uint32_t GetSerializedSize(void) const
Get serialized size in bytes.
virtual uint32_t GetSerializedSize(void) const
std::vector< struct ipv4Addr >::const_iterator Iterator
IPv4 address vector iterator typedef.
std::vector< uint8_t >::const_iterator Iterator
Iterator typedef.
virtual void Serialize(Buffer::Iterator start) const
Serialize to a buffer.
Iterator Begin() const
Begin iterator.
virtual TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
a class to represent an Ipv4 address mask
virtual uint32_t GetSerializedSize(void) const =0
Get serialized size in bytes.
virtual uint32_t Deserialize(Buffer::Iterator start, uint64_t valueLength)=0
Deserialize from a buffer.
virtual uint32_t Deserialize(Buffer::Iterator start)
void Add(uint16_t portLow, uint16_t portHigh)
Add a range.
Iterator End() const
End iterator.
Iterator End() const
End iterator.
this class implements the convergence sub-layer descriptor as a tlv vector
virtual PortRangeTlvValue * Copy(void) const
Copy.
virtual uint32_t Deserialize(Buffer::Iterator start, uint64_t valueLength)
Deserialize from a buffer.
virtual uint32_t GetSerializedSize(void) const
Get serialized size in bytes.
Ipv4AddressTlvValue class.
virtual void Serialize(Buffer::Iterator start) const
Serialize to a buffer.
virtual void Print(std::ostream &os) const
This class implements the Type-Len-Value structure channel encodings as described by "IEEE Standard f...
virtual uint32_t Deserialize(Buffer::Iterator start, uint64_t valueLength)
Deserialize from a buffer.
iterator in a Buffer instance
The value field of a tlv can take different values (uint8_t, uint16, vector, ...).
Tlv * Copy(void) const
Copy TLV.
std::vector< struct ipv4Addr > * m_ipv4Addr
ipv4 addr
uint8_t GetSizeOfLen(void) const
Get size of length field.
void Add(const Tlv &val)
Add a TLV.
virtual U32TlvValue * Copy(void) const
Copy.
virtual uint32_t GetSerializedSize(void) const
Get serialized size in bytes.
std::vector< struct PortRange >::const_iterator Iterator
PortRange vector iterator typedef.
virtual void Serialize(Buffer::Iterator start) const
Serialize to a buffer.
virtual uint32_t Deserialize(Buffer::Iterator start, uint64_t valueLength)
Deserialize from a buffer.
virtual uint32_t GetSerializedSize(void) const
Get serialized size in bytes.
Iterator Begin() const
Begin iterator.
virtual VectorTlvValue * Copy(void) const =0
Copy.
virtual CsParamVectorTlvValue * Copy(void) const
Copy.
std::vector< Tlv * > * m_tlvList
tlv list
uint8_t GetMask(void) const
Get the mask.
virtual TosTlvValue * Copy() const
Copy.
Iterator Begin() const
Begin iterator.
uint32_t GetValue(void) const
Get value.
static TypeId GetTypeId(void)
Register this type.
ClassificationRuleTlvType
ClassificationRuleTlvType enumeration.
uint8_t GetHigh(void) const
Get high part.
virtual TlvValue * Copy(void) const =0
Copy function.
uint8_t GetType(void) const
Get type value.
virtual uint32_t GetSerializedSize(void) const
Get serialized size in bytes.
Iterator End() const
End iterator.
std::vector< uint8_t > * m_protocol
protocol
Iterator Begin() const
Begin iterator.
virtual uint32_t GetSerializedSize(void) const
Get serialized size in bytes.
virtual uint32_t GetSerializedSize(void) const
Get serialized size in bytes.
void Add(uint8_t protocol)
Add protocol number.
virtual void Serialize(Buffer::Iterator start) const
Serialize to a buffer.
virtual uint32_t Deserialize(Buffer::Iterator start, uint64_t valueLen)=0
Deserialize from a buffer.
uint8_t GetValue(void) const
Get value.
Ipv4Address Address
address
Every class exported by the ns3 library is enclosed in the ns3 namespace.
std::vector< struct PortRange > * m_portRange
port range
U8TlvValue * Copy(void) const
Copy.
TlvValue * PeekValue(void)
Peek value.
ClassificationRuleVectorTlvValue()
virtual void Serialize(Buffer::Iterator start) const
Serialize to a buffer.
this class implements the classifier descriptor as a tlv vector
uint16_t GetValue(void) const
Get value.
virtual Ipv4AddressTlvValue * Copy() const
Copy function.
Iterator End() const
End iterator.
this class is used to implement a vector of values in one tlv value field
virtual uint32_t GetSerializedSize(void) const
Get serialized size in bytes.
virtual SfVectorTlvValue * Copy(void) const
Copy.
Tlv & operator=(Tlv const &o)
assignment operator
Ipv4 addresses are stored in host order in this class.
virtual uint32_t Deserialize(Buffer::Iterator start, uint64_t valueLen)
Deserialize from a buffer.
virtual uint32_t Deserialize(Buffer::Iterator start, uint64_t valueLen)
Deserialize from a buffer.
virtual ProtocolTlvValue * Copy(void) const
Copy.
virtual void Serialize(Buffer::Iterator start) const
Serialize to a buffer.
virtual ClassificationRuleVectorTlvValue * Copy(void) const
Copy.
virtual U16TlvValue * Copy(void) const
Copy.
virtual void Serialize(Buffer::Iterator start) const =0
Serialize to a buffer.
virtual void Serialize(Buffer::Iterator start) const
void Add(Ipv4Address address, Ipv4Mask Mask)
Add IPv4 address and mask.
TlvValue * CopyValue(void) const
Copy TlvValue.
std::vector< Tlv * >::const_iterator Iterator
TLV vector iterator typedef.
virtual void Serialize(Buffer::Iterator start) const
Serialize to a buffer.
CommonTypes
CommonTypes enumeration.
a unique identifier for an interface.
virtual void Serialize(Buffer::Iterator start) const
Serialize to a buffer.
virtual uint32_t Deserialize(Buffer::Iterator start, uint64_t valueLength)
Deserialize from a buffer.
virtual uint32_t Deserialize(Buffer::Iterator start, uint64_t valueLength)
Deserialize from a buffer.
virtual uint32_t Deserialize(Buffer::Iterator start, uint64_t valueLen)
Deserialize from a buffer.