HNA (Host Network Association) Message Format. More...
#include "olsr-header.h"
Classes | |
struct | Association |
Association item structure. More... | |
Public Member Functions | |
uint32_t | Deserialize (Buffer::Iterator start, uint32_t messageSize) |
This method is used by Packet::RemoveHeader to re-create a header from the byte buffer of a packet. More... | |
uint32_t | GetSerializedSize () const |
Returns the expected size of the header. More... | |
void | Print (std::ostream &os) const |
This method is used to print the content of a Hna message. More... | |
void | Serialize (Buffer::Iterator start) const |
This method is used by Packet::AddHeader to store a header into the byte buffer of a packet. More... | |
Public Attributes | |
std::vector< Association > | associations |
Association container. More... | |
HNA (Host Network Association) Message Format.
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Network Address | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Netmask | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Network Address | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Netmask | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ... | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Definition at line 524 of file olsr-header.h.
uint32_t ns3::olsr::MessageHeader::Hna::Deserialize | ( | Buffer::Iterator | start, |
uint32_t | messageSize | ||
) |
This method is used by Packet::RemoveHeader to re-create a header from the byte buffer of a packet.
start | an iterator which points to where the header should read from. |
messageSize | the message size. |
Definition at line 596 of file olsr-header.cc.
References first::address, IPV4_ADDRESS_SIZE, NS_ASSERT, ns3::Buffer::Iterator::ReadNtohU32(), and two-ray-to-three-gpp-ch-calibration::start.
uint32_t ns3::olsr::MessageHeader::Hna::GetSerializedSize | ( | ) | const |
Returns the expected size of the header.
Definition at line 558 of file olsr-header.cc.
References IPV4_ADDRESS_SIZE.
void ns3::olsr::MessageHeader::Hna::Print | ( | std::ostream & | os | ) | const |
This method is used to print the content of a Hna message.
os | output stream |
Definition at line 564 of file olsr-header.cc.
void ns3::olsr::MessageHeader::Hna::Serialize | ( | Buffer::Iterator | start | ) | const |
This method is used by Packet::AddHeader to store a header into the byte buffer of a packet.
start | an iterator which points to where the header should be written. |
Definition at line 584 of file olsr-header.cc.
References first::address, two-ray-to-three-gpp-ch-calibration::start, and ns3::Buffer::Iterator::WriteHtonU32().
std::vector<Association> ns3::olsr::MessageHeader::Hna::associations |
Association container.
Definition at line 535 of file olsr-header.h.
Referenced by OlsrHnaTestCase::DoRun(), ns3::olsr::RoutingProtocol::ProcessHna(), and ns3::olsr::RoutingProtocol::SendHna().