Ipv4AddressTlvValue class. More...
#include "wimax-tlv.h"
Classes | |
struct | Ipv4Addr |
Ipv4Addr structure. More... | |
Public Types | |
typedef std::vector< Ipv4Addr >::const_iterator | Iterator |
IPv4 address vector iterator typedef. | |
Public Member Functions | |
Ipv4AddressTlvValue () | |
~Ipv4AddressTlvValue () override | |
void | Add (Ipv4Address address, Ipv4Mask mask) |
Add IPv4 address and mask. | |
Iterator | Begin () const |
Begin iterator. | |
Ipv4AddressTlvValue * | Copy () const override |
Copy function. | |
uint32_t | Deserialize (Buffer::Iterator start, uint64_t valueLength) override |
Deserialize from a buffer. | |
Iterator | End () const |
End iterator. | |
uint32_t | GetSerializedSize () const override |
Get serialized size in bytes. | |
void | Serialize (Buffer::Iterator start) const override |
Serialize to a buffer. | |
![]() | |
virtual | ~TlvValue () |
virtual TlvValue * | Copy () const =0 |
Copy function. | |
virtual uint32_t | Deserialize (Buffer::Iterator start, uint64_t valueLen)=0 |
Deserialize from a buffer. | |
virtual uint32_t | GetSerializedSize () const =0 |
Get serialized size in bytes. | |
virtual void | Serialize (Buffer::Iterator start) const =0 |
Serialize to a buffer. | |
Private Attributes | |
std::vector< Ipv4Addr > * | m_ipv4Addr |
ipv4 addr | |
Ipv4AddressTlvValue class.
Definition at line 572 of file wimax-tlv.h.
typedef std::vector<Ipv4Addr>::const_iterator ns3::Ipv4AddressTlvValue::Iterator |
IPv4 address vector iterator typedef.
Definition at line 583 of file wimax-tlv.h.
ns3::Ipv4AddressTlvValue::Ipv4AddressTlvValue | ( | ) |
Definition at line 1025 of file wimax-tlv.cc.
References m_ipv4Addr.
Referenced by Copy().
|
override |
Definition at line 1030 of file wimax-tlv.cc.
References m_ipv4Addr.
void ns3::Ipv4AddressTlvValue::Add | ( | Ipv4Address | address, |
Ipv4Mask | mask | ||
) |
Add IPv4 address and mask.
address | the IPv4 address |
mask | the IPv4 mask |
Definition at line 1073 of file wimax-tlv.cc.
References m_ipv4Addr.
Referenced by Copy(), Deserialize(), and ns3::IpcsClassifierRecord::ToTlv().
Ipv4AddressTlvValue::Iterator ns3::Ipv4AddressTlvValue::Begin | ( | ) | const |
Begin iterator.
Definition at line 1079 of file wimax-tlv.cc.
References m_ipv4Addr.
|
overridevirtual |
Copy function.
Implements ns3::TlvValue.
Definition at line 1091 of file wimax-tlv.cc.
References Ipv4AddressTlvValue(), Add(), and m_ipv4Addr.
|
overridevirtual |
Deserialize from a buffer.
start | the iterator |
valueLen | the maximum length of the value |
Implements ns3::TlvValue.
Definition at line 1059 of file wimax-tlv.cc.
References Add(), and ns3::Buffer::Iterator::ReadNtohU32().
Referenced by ns3::ClassificationRuleVectorTlvValue::Deserialize().
Ipv4AddressTlvValue::Iterator ns3::Ipv4AddressTlvValue::End | ( | ) | const |
End iterator.
Definition at line 1085 of file wimax-tlv.cc.
References m_ipv4Addr.
|
overridevirtual |
Get serialized size in bytes.
Implements ns3::TlvValue.
Definition at line 1041 of file wimax-tlv.cc.
References m_ipv4Addr.
Referenced by ns3::ClassificationRuleVectorTlvValue::Deserialize(), and ns3::IpcsClassifierRecord::ToTlv().
|
overridevirtual |
Serialize to a buffer.
start | the iterator |
Implements ns3::TlvValue.
Definition at line 1047 of file wimax-tlv.cc.
References m_ipv4Addr, and ns3::Buffer::Iterator::WriteHtonU32().
|
private |
ipv4 addr
Definition at line 608 of file wimax-tlv.h.
Referenced by Ipv4AddressTlvValue(), ~Ipv4AddressTlvValue(), Add(), Begin(), Copy(), End(), GetSerializedSize(), and Serialize().