MID Message Format. More...
#include "olsr-header.h"
 Collaboration diagram for ns3::olsr::MessageHeader::Mid:
 Collaboration diagram for ns3::olsr::MessageHeader::Mid:| 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. | |
| uint32_t | GetSerializedSize () const | 
| Returns the expected size of the header. | |
| void | Print (std::ostream &os) const | 
| This method is used to print the content of a MID message. | |
| void | Serialize (Buffer::Iterator start) const | 
| This method is used by Packet::AddHeader to store a header into the byte buffer of a packet. | |
| Public Attributes | |
| std::vector< Ipv4Address > | interfaceAddresses | 
| Interface Address container. | |
MID 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | OLSR Interface Address | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | OLSR Interface Address | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ... | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Definition at line 311 of file olsr-header.h.
| uint32_t ns3::olsr::MessageHeader::Mid::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 352 of file olsr-header.cc.
References ns3::olsr::MessageHeader::GetSerializedSize(), interfaceAddresses, IPV4_ADDRESS_SIZE, NS_ASSERT, and ns3::Buffer::Iterator::ReadNtohU32().
 Here is the call graph for this function:
 Here is the call graph for this function:| uint32_t ns3::olsr::MessageHeader::Mid::GetSerializedSize | ( | ) | const | 
Returns the expected size of the header.
Definition at line 314 of file olsr-header.cc.
References interfaceAddresses, and IPV4_ADDRESS_SIZE.
| void ns3::olsr::MessageHeader::Mid::Print | ( | std::ostream & | os | ) | const | 
This method is used to print the content of a MID message.
| os | output stream | 
Definition at line 320 of file olsr-header.cc.
References interfaceAddresses.
| void ns3::olsr::MessageHeader::Mid::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 340 of file olsr-header.cc.
References interfaceAddresses, and ns3::Buffer::Iterator::WriteHtonU32().
 Here is the call graph for this function:
 Here is the call graph for this function:| std::vector<Ipv4Address> ns3::olsr::MessageHeader::Mid::interfaceAddresses | 
Interface Address container.
Definition at line 313 of file olsr-header.h.
Referenced by Deserialize(), OlsrMidTestCase::DoRun(), GetSerializedSize(), Print(), ns3::olsr::RoutingProtocol::ProcessMid(), ns3::olsr::RoutingProtocol::SendMid(), and Serialize().