Doxygen introspection did not find any typical Config paths. More...
#include <olsr-header.h>
Inheritance diagram for ns3::olsr::MessageHeader:
Collaboration diagram for ns3::olsr::MessageHeader:Classes | |
| struct | Hello |
| struct | Hna |
| struct | Mid |
| struct | Tc |
Public Types | |
| enum | MessageType { HELLO_MESSAGE = 1, TC_MESSAGE = 2, MID_MESSAGE = 3, HNA_MESSAGE = 4 } |
Public Member Functions | |
| MessageHeader () | |
| virtual | ~MessageHeader () |
| virtual uint32_t | Deserialize (Buffer::Iterator start) |
| Hello & | GetHello () |
| const Hello & | GetHello () const |
| Hna & | GetHna () |
| const Hna & | GetHna () const |
| uint8_t | GetHopCount () const |
| virtual TypeId | GetInstanceTypeId (void) const |
| uint16_t | GetMessageSequenceNumber () const |
| MessageType | GetMessageType () const |
| Mid & | GetMid () |
| const Mid & | GetMid () const |
| Ipv4Address | GetOriginatorAddress () const |
| virtual uint32_t | GetSerializedSize (void) const |
| Tc & | GetTc () |
| const Tc & | GetTc () const |
| uint8_t | GetTimeToLive () const |
| Time | GetVTime () const |
| virtual void | Print (std::ostream &os) const |
| virtual void | Serialize (Buffer::Iterator start) const |
| void | SetHopCount (uint8_t hopCount) |
| void | SetMessageSequenceNumber (uint16_t messageSequenceNumber) |
| void | SetMessageType (MessageType messageType) |
| void | SetOriginatorAddress (Ipv4Address originatorAddress) |
| void | SetTimeToLive (uint8_t timeToLive) |
| void | SetVTime (Time time) |
Public Member Functions inherited from ns3::Header | |
| virtual | ~Header () |
Public Member Functions inherited from ns3::ObjectBase | |
| virtual | ~ObjectBase () |
| Virtual destructor. More... | |
| void | GetAttribute (std::string name, AttributeValue &value) const |
| bool | GetAttributeFailSafe (std::string name, AttributeValue &attribute) const |
| void | SetAttribute (std::string name, const AttributeValue &value) |
| bool | SetAttributeFailSafe (std::string name, const AttributeValue &value) |
| bool | TraceConnect (std::string name, std::string context, const CallbackBase &cb) |
| bool | TraceConnectWithoutContext (std::string name, const CallbackBase &cb) |
| bool | TraceDisconnect (std::string name, std::string context, const CallbackBase &cb) |
| bool | TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb) |
Static Public Member Functions | |
| static TypeId | GetTypeId (void) |
Static Public Member Functions inherited from ns3::Header | |
| static TypeId | GetTypeId (void) |
Static Public Member Functions inherited from ns3::Chunk | |
| static TypeId | GetTypeId (void) |
Static Public Member Functions inherited from ns3::ObjectBase | |
| static TypeId | GetTypeId (void) |
| Get the type ID. More... | |
Private Attributes | |
| uint8_t | m_hopCount |
| struct { | |
| Hello hello | |
| Hna hna | |
| Mid mid | |
| Tc tc | |
| } | m_message |
| uint16_t | m_messageSequenceNumber |
| uint16_t | m_messageSize |
| MessageType | m_messageType |
| Ipv4Address | m_originatorAddress |
| uint8_t | m_timeToLive |
| uint8_t | m_vTime |
Additional Inherited Members | |
Protected Member Functions inherited from ns3::ObjectBase | |
| void | ConstructSelf (const AttributeConstructionList &attributes) |
| virtual void | NotifyConstructionCompleted (void) |
| This method is invoked once all member attributes have been initialized. More... | |
Doxygen introspection did not find any typical Config paths.
No Attributes are defined for this type.
No TraceSources are defined for this type.
Definition at line 116 of file olsr-header.h.
| Enumerator | |
|---|---|
| HELLO_MESSAGE | |
| TC_MESSAGE | |
| MID_MESSAGE | |
| HNA_MESSAGE | |
Definition at line 120 of file olsr-header.h.
| ns3::olsr::MessageHeader::MessageHeader | ( | ) |
Definition at line 160 of file olsr-header.cc.
|
virtual |
Definition at line 165 of file olsr-header.cc.
|
virtual |
| start | an iterator which points to where the header should written. |
This method is used by Packet::RemoveHeader to re-create a header from the byte buffer of a packet. The data read is expected to match bit-for-bit the representation of this header in real networks.
Implements ns3::Header.
Definition at line 248 of file olsr-header.cc.
References HELLO_MESSAGE, HNA_MESSAGE, m_hopCount, m_message, m_messageSequenceNumber, m_messageSize, m_messageType, m_originatorAddress, m_timeToLive, m_vTime, MID_MESSAGE, NS_ASSERT, OLSR_MSG_HEADER_SIZE, ns3::Buffer::Iterator::ReadNtohU16(), ns3::Buffer::Iterator::ReadNtohU32(), ns3::Buffer::Iterator::ReadU8(), visualizer.core::start(), and TC_MESSAGE.
Here is the call graph for this function:
|
inline |
Definition at line 370 of file olsr-header.h.
References HELLO_MESSAGE, m_message, m_messageType, and NS_ASSERT.
Referenced by ns3::OlsrHelloTestCase::DoRun(), ns3::olsr::RoutingProtocol::ProcessHello(), and ns3::olsr::RoutingProtocol::SendHello().
Here is the caller graph for this function:
|
inline |
Definition at line 416 of file olsr-header.h.
References HELLO_MESSAGE, m_message, m_messageType, and NS_ASSERT.
|
inline |
Definition at line 396 of file olsr-header.h.
References HNA_MESSAGE, m_message, m_messageType, and NS_ASSERT.
Referenced by ns3::OlsrHnaTestCase::DoRun(), ns3::olsr::RoutingProtocol::ProcessHna(), and ns3::olsr::RoutingProtocol::SendHna().
Here is the caller graph for this function:
|
inline |
Definition at line 428 of file olsr-header.h.
References HNA_MESSAGE, m_message, m_messageType, and NS_ASSERT.
|
inline |
Definition at line 170 of file olsr-header.h.
References m_hopCount.
Referenced by ns3::olsr::RoutingProtocol::ForwardDefault().
Here is the caller graph for this function:
|
virtual |
This method is typically implemented by ns3::Object::GetInstanceTypeId but some classes which derive from ns3::ObjectBase directly have to implement it themselves.
Implements ns3::ObjectBase.
Definition at line 179 of file olsr-header.cc.
References GetTypeId().
Here is the call graph for this function:
|
inline |
Definition at line 179 of file olsr-header.h.
References m_messageSequenceNumber.
Referenced by ns3::OlsrMidTestCase::DoRun(), ns3::olsr::RoutingProtocol::ForwardDefault(), and ns3::olsr::RoutingProtocol::RecvOlsr().
Here is the caller graph for this function:
|
inline |
Definition at line 134 of file olsr-header.h.
References m_messageType.
Referenced by ns3::OlsrMidTestCase::DoRun(), and ns3::olsr::RoutingProtocol::RecvOlsr().
Here is the caller graph for this function:
|
inline |
Definition at line 357 of file olsr-header.h.
References m_message, m_messageType, MID_MESSAGE, and NS_ASSERT.
Referenced by ns3::OlsrMidTestCase::DoRun(), ns3::olsr::RoutingProtocol::ProcessMid(), and ns3::olsr::RoutingProtocol::SendMid().
Here is the caller graph for this function:
|
inline |
Definition at line 410 of file olsr-header.h.
References m_message, m_messageType, MID_MESSAGE, and NS_ASSERT.
|
inline |
Definition at line 152 of file olsr-header.h.
References m_originatorAddress.
Referenced by ns3::OlsrMidTestCase::DoRun(), ns3::olsr::RoutingProtocol::ForwardDefault(), ns3::olsr::RoutingProtocol::PopulateMprSelectorSet(), ns3::olsr::RoutingProtocol::PopulateNeighborSet(), ns3::olsr::RoutingProtocol::PopulateTwoHopNeighborSet(), ns3::olsr::RoutingProtocol::ProcessHna(), ns3::olsr::RoutingProtocol::ProcessMid(), ns3::olsr::RoutingProtocol::ProcessTc(), and ns3::olsr::RoutingProtocol::RecvOlsr().
Here is the caller graph for this function:
|
virtual |
This method is used by Packet::AddHeader to store a header into the byte buffer of a packet. This method should return the number of bytes which are needed to store the full header data by Serialize.
Implements ns3::Header.
Definition at line 185 of file olsr-header.cc.
References HELLO_MESSAGE, HNA_MESSAGE, m_message, m_messageType, MID_MESSAGE, NS_ASSERT, NS_LOG_DEBUG, OLSR_MSG_HEADER_SIZE, and TC_MESSAGE.
Referenced by ns3::olsr::MessageHeader::Mid::Deserialize(), ns3::OlsrMidTestCase::DoRun(), ns3::olsr::RoutingProtocol::RecvOlsr(), ns3::olsr::RoutingProtocol::SendHello(), and Serialize().
Here is the caller graph for this function:
|
inline |
Definition at line 383 of file olsr-header.h.
References m_message, m_messageType, NS_ASSERT, and TC_MESSAGE.
Referenced by ns3::OlsrTcTestCase::DoRun(), ns3::olsr::RoutingProtocol::ProcessTc(), and ns3::olsr::RoutingProtocol::SendTc().
Here is the caller graph for this function:
|
inline |
Definition at line 422 of file olsr-header.h.
References m_message, m_messageType, NS_ASSERT, and TC_MESSAGE.
|
inline |
Definition at line 161 of file olsr-header.h.
References m_timeToLive.
Referenced by ns3::OlsrMidTestCase::DoRun(), ns3::olsr::RoutingProtocol::ForwardDefault(), and ns3::olsr::RoutingProtocol::RecvOlsr().
Here is the caller graph for this function:
|
static |
Definition at line 170 of file olsr-header.cc.
References ns3::TypeId::SetParent().
Referenced by GetInstanceTypeId().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 143 of file olsr-header.h.
References ns3::olsr::EmfToSeconds(), and m_vTime.
Referenced by ns3::OlsrMidTestCase::DoRun(), ns3::olsr::RoutingProtocol::LinkSensing(), ns3::olsr::RoutingProtocol::PopulateMprSelectorSet(), ns3::olsr::RoutingProtocol::PopulateTwoHopNeighborSet(), ns3::olsr::RoutingProtocol::ProcessHna(), ns3::olsr::RoutingProtocol::ProcessMid(), and ns3::olsr::RoutingProtocol::ProcessTc().
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
| os | output stream This method is used by Packet::Print to print the content of a trailer as ascii data to a c++ output stream. Although the trailer is free to format its output as it wishes, it is recommended to follow a few rules to integrate with the packet pretty printer: start with flags, small field values located between a pair of parens. Values should be separated by whitespace. Follow the parens with the important fields, separated by whitespace. i.e.: (field1 val1 field2 val2 field3 val3) field4 val4 field5 val5 |
Implements ns3::Header.
Definition at line 210 of file olsr-header.cc.
Referenced by ns3::olsr::operator<<().
Here is the caller graph for this function:
|
virtual |
| start | an iterator which points to where the header should be written. |
This method is used by Packet::AddHeader to store a header into the byte buffer of a packet. The data written is expected to match bit-for-bit the representation of this header in a real network.
Implements ns3::Header.
Definition at line 216 of file olsr-header.cc.
References ns3::Ipv4Address::Get(), GetSerializedSize(), HELLO_MESSAGE, HNA_MESSAGE, m_hopCount, m_message, m_messageSequenceNumber, m_messageType, m_originatorAddress, m_timeToLive, m_vTime, MID_MESSAGE, NS_ASSERT, visualizer.core::start(), TC_MESSAGE, ns3::Buffer::Iterator::WriteHtonU16(), ns3::Buffer::Iterator::WriteHtonU32(), and ns3::Buffer::Iterator::WriteU8().
Here is the call graph for this function:
|
inline |
Definition at line 166 of file olsr-header.h.
References m_hopCount.
Referenced by ns3::olsr::RoutingProtocol::ForwardDefault(), ns3::olsr::RoutingProtocol::SendHello(), ns3::olsr::RoutingProtocol::SendHna(), ns3::olsr::RoutingProtocol::SendMid(), and ns3::olsr::RoutingProtocol::SendTc().
Here is the caller graph for this function:
|
inline |
Definition at line 175 of file olsr-header.h.
References m_messageSequenceNumber.
Referenced by ns3::OlsrMidTestCase::DoRun(), ns3::olsr::RoutingProtocol::SendHello(), ns3::olsr::RoutingProtocol::SendHna(), ns3::olsr::RoutingProtocol::SendMid(), and ns3::olsr::RoutingProtocol::SendTc().
Here is the caller graph for this function:
|
inline |
Definition at line 130 of file olsr-header.h.
References m_messageType.
Referenced by ns3::OlsrMidTestCase::DoRun().
Here is the caller graph for this function:
|
inline |
Definition at line 148 of file olsr-header.h.
References m_originatorAddress.
Referenced by ns3::OlsrMidTestCase::DoRun(), ns3::olsr::RoutingProtocol::SendHello(), ns3::olsr::RoutingProtocol::SendHna(), ns3::olsr::RoutingProtocol::SendMid(), and ns3::olsr::RoutingProtocol::SendTc().
Here is the caller graph for this function:
|
inline |
Definition at line 157 of file olsr-header.h.
References m_timeToLive.
Referenced by ns3::OlsrMidTestCase::DoRun(), ns3::olsr::RoutingProtocol::ForwardDefault(), ns3::olsr::RoutingProtocol::SendHello(), ns3::olsr::RoutingProtocol::SendHna(), ns3::olsr::RoutingProtocol::SendMid(), and ns3::olsr::RoutingProtocol::SendTc().
Here is the caller graph for this function:
|
inline |
Definition at line 139 of file olsr-header.h.
References ns3::Time::GetSeconds(), m_vTime, and ns3::olsr::SecondsToEmf().
Referenced by ns3::OlsrMidTestCase::DoRun(), ns3::olsr::RoutingProtocol::SendHello(), ns3::olsr::RoutingProtocol::SendHna(), ns3::olsr::RoutingProtocol::SendMid(), and ns3::olsr::RoutingProtocol::SendTc().
Here is the call graph for this function:
Here is the caller graph for this function:| Hello ns3::olsr::MessageHeader::hello |
Definition at line 350 of file olsr-header.h.
| Hna ns3::olsr::MessageHeader::hna |
Definition at line 352 of file olsr-header.h.
|
private |
Definition at line 198 of file olsr-header.h.
Referenced by Deserialize(), GetHopCount(), Serialize(), and SetHopCount().
| struct { ... } ns3::olsr::MessageHeader::m_message |
Referenced by Deserialize(), GetHello(), GetHna(), GetMid(), GetSerializedSize(), GetTc(), and Serialize().
|
private |
Definition at line 199 of file olsr-header.h.
Referenced by Deserialize(), GetMessageSequenceNumber(), Serialize(), and SetMessageSequenceNumber().
|
private |
Definition at line 200 of file olsr-header.h.
Referenced by Deserialize().
|
private |
Definition at line 194 of file olsr-header.h.
Referenced by Deserialize(), GetHello(), GetHna(), GetMessageType(), GetMid(), GetSerializedSize(), GetTc(), Serialize(), and SetMessageType().
|
private |
Definition at line 196 of file olsr-header.h.
Referenced by Deserialize(), GetOriginatorAddress(), Serialize(), and SetOriginatorAddress().
|
private |
Definition at line 197 of file olsr-header.h.
Referenced by Deserialize(), GetTimeToLive(), Serialize(), and SetTimeToLive().
|
private |
Definition at line 195 of file olsr-header.h.
Referenced by Deserialize(), GetVTime(), Serialize(), and SetVTime().
| Mid ns3::olsr::MessageHeader::mid |
Definition at line 349 of file olsr-header.h.
| Tc ns3::olsr::MessageHeader::tc |
Definition at line 351 of file olsr-header.h.