Ipv4AddressTlvValue class. More...
#include "wimax-tlv.h"
Classes | |
struct | ipv4Addr |
ipv4Addr structure More... | |
Public Types | |
typedef std::vector< struct ipv4Addr >::const_iterator | Iterator |
IPv4 address vector iterator typedef. More... | |
Public Member Functions | |
Ipv4AddressTlvValue () | |
~Ipv4AddressTlvValue () | |
void | Add (Ipv4Address address, Ipv4Mask Mask) |
Add IPv4 address and mask. More... | |
Iterator | Begin () const |
Begin iterator. More... | |
virtual Ipv4AddressTlvValue * | Copy () const |
Copy function. More... | |
virtual uint32_t | Deserialize (Buffer::Iterator start, uint64_t valueLength) |
Deserialize from a buffer. More... | |
Iterator | End () const |
End iterator. More... | |
virtual uint32_t | GetSerializedSize (void) const |
Get serialized size in bytes. More... | |
virtual void | Serialize (Buffer::Iterator start) const |
Serialize to a buffer. More... | |
Public Member Functions inherited from ns3::TlvValue | |
virtual | ~TlvValue () |
Private Attributes | |
std::vector< struct ipv4Addr > * | m_ipv4Addr |
ipv4 addr More... | |
Ipv4AddressTlvValue class.
Definition at line 556 of file wimax-tlv.h.
typedef std::vector<struct ipv4Addr>::const_iterator ns3::Ipv4AddressTlvValue::Iterator |
IPv4 address vector iterator typedef.
Definition at line 566 of file wimax-tlv.h.
ns3::Ipv4AddressTlvValue::Ipv4AddressTlvValue | ( | ) |
ns3::Ipv4AddressTlvValue::~Ipv4AddressTlvValue | ( | ) |
Definition at line 1027 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 1068 of file wimax-tlv.cc.
References first::address, ns3::Ipv4AddressTlvValue::ipv4Addr::Address, m_ipv4Addr, and ns3::Ipv4AddressTlvValue::ipv4Addr::Mask.
Referenced by Copy(), Deserialize(), and ns3::IpcsClassifierRecord::ToTlv().
Ipv4AddressTlvValue::Iterator ns3::Ipv4AddressTlvValue::Begin | ( | void | ) | const |
Begin iterator.
Definition at line 1077 of file wimax-tlv.cc.
References m_ipv4Addr.
|
virtual |
Copy function.
Implements ns3::TlvValue.
Definition at line 1089 of file wimax-tlv.cc.
References Add(), Ipv4AddressTlvValue(), and m_ipv4Addr.
|
virtual |
Deserialize from a buffer.
start | the iterator |
valueLen | the maximum length of the value |
Implements ns3::TlvValue.
Definition at line 1054 of file wimax-tlv.cc.
References Add(), and ns3::Buffer::Iterator::ReadNtohU32().
Referenced by ns3::ClassificationRuleVectorTlvValue::Deserialize().
Ipv4AddressTlvValue::Iterator ns3::Ipv4AddressTlvValue::End | ( | void | ) | const |
End iterator.
Definition at line 1083 of file wimax-tlv.cc.
References m_ipv4Addr.
|
virtual |
Get serialized size in bytes.
Implements ns3::TlvValue.
Definition at line 1038 of file wimax-tlv.cc.
References m_ipv4Addr.
Referenced by ns3::ClassificationRuleVectorTlvValue::Deserialize(), and ns3::IpcsClassifierRecord::ToTlv().
|
virtual |
Serialize to a buffer.
start | the iterator |
Implements ns3::TlvValue.
Definition at line 1044 of file wimax-tlv.cc.
References m_ipv4Addr, and ns3::Buffer::Iterator::WriteHtonU32().
|
private |
ipv4 addr
Definition at line 590 of file wimax-tlv.h.
Referenced by Add(), Begin(), Copy(), End(), GetSerializedSize(), Ipv4AddressTlvValue(), Serialize(), and ~Ipv4AddressTlvValue().