Dsr fixed size header Format. More...
#include "dsr-fs-header.h"
 Inheritance diagram for ns3::dsr::DsrFsHeader:
 Inheritance diagram for ns3::dsr::DsrFsHeader: Collaboration diagram for ns3::dsr::DsrFsHeader:
 Collaboration diagram for ns3::dsr::DsrFsHeader:| Public Member Functions | |
| DsrFsHeader () | |
| Constructor. | |
| ~DsrFsHeader () override | |
| Destructor. | |
| uint32_t | Deserialize (Buffer::Iterator start) override | 
| Deserialize the packet. | |
| uint16_t | GetDestId () const | 
| brief Get the dest ID of the header. | |
| TypeId | GetInstanceTypeId () const override | 
| Get the instance type ID. | |
| uint8_t | GetMessageType () const | 
| brief Get the message type of the header. | |
| uint8_t | GetNextHeader () const | 
| Get the next header. | |
| uint16_t | GetPayloadLength () const | 
| Get the payload length of the header. | |
| uint32_t | GetSerializedSize () const override | 
| Get the serialized size of the packet. | |
| uint16_t | GetSourceId () const | 
| brief Get the source ID of the header. | |
| void | Print (std::ostream &os) const override | 
| Print some information about the packet. | |
| void | Serialize (Buffer::Iterator start) const override | 
| Serialize the packet. | |
| void | SetDestId (uint16_t destId) | 
| brief Set the dest ID of the header. | |
| void | SetMessageType (uint8_t messageType) | 
| brief Set the message type of the header. | |
| void | SetNextHeader (uint8_t protocol) | 
| Set the "Next header" field. | |
| void | SetPayloadLength (uint16_t length) | 
| brief Set the payload length of the header. | |
| void | SetSourceId (uint16_t sourceId) | 
| brief Set the source ID of the header. | |
|  Public Member Functions inherited from ns3::Header | |
| ~Header () override | |
| virtual uint32_t | Deserialize (Buffer::Iterator start, Buffer::Iterator end) | 
| Deserialize the object from a buffer iterator. | |
|  Public Member Functions inherited from ns3::ObjectBase | |
| virtual | ~ObjectBase () | 
| Virtual destructor. | |
| void | GetAttribute (std::string name, AttributeValue &value, bool permissive=false) const | 
| Get the value of an attribute, raising fatal errors if unsuccessful. | |
| bool | GetAttributeFailSafe (std::string name, AttributeValue &value) const | 
| Get the value of an attribute without raising errors. | |
| void | SetAttribute (std::string name, const AttributeValue &value) | 
| Set a single attribute, raising fatal errors if unsuccessful. | |
| bool | SetAttributeFailSafe (std::string name, const AttributeValue &value) | 
| Set a single attribute without raising errors. | |
| bool | TraceConnect (std::string name, std::string context, const CallbackBase &cb) | 
| Connect a TraceSource to a Callback with a context. | |
| bool | TraceConnectWithoutContext (std::string name, const CallbackBase &cb) | 
| Connect a TraceSource to a Callback without a context. | |
| bool | TraceDisconnect (std::string name, std::string context, const CallbackBase &cb) | 
| Disconnect from a TraceSource a Callback previously connected with a context. | |
| bool | TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb) | 
| Disconnect from a TraceSource a Callback previously connected without a context. | |
| Static Public Member Functions | |
| static TypeId | GetTypeId () | 
| Get the type identificator. | |
|  Static Public Member Functions inherited from ns3::Header | |
| static TypeId | GetTypeId () | 
| Get the type ID. | |
|  Static Public Member Functions inherited from ns3::Chunk | |
| static TypeId | GetTypeId () | 
| Get the type ID. | |
|  Static Public Member Functions inherited from ns3::ObjectBase | |
| static TypeId | GetTypeId () | 
| Get the type ID. | |
| Private Attributes | |
| Buffer | m_data | 
| The data of the extension. | |
| uint16_t | m_destId | 
| The destination node id. | |
| uint8_t | m_messageType | 
| The type of the message. | |
| uint8_t | m_nextHeader | 
| The "next header" field. | |
| uint16_t | m_payloadLen | 
| The "payload length" field. | |
| uint16_t | m_sourceId | 
| The source node id. | |
| Additional Inherited Members | |
|  Protected Member Functions inherited from ns3::ObjectBase | |
| void | ConstructSelf (const AttributeConstructionList &attributes) | 
| Complete construction of ObjectBase; invoked by derived classes. | |
| virtual void | NotifyConstructionCompleted () | 
| Notifier called once the ObjectBase is fully constructed. | |
|  Related Symbols inherited from ns3::ObjectBase | |
| static TypeId | GetObjectIid () | 
| Ensure the TypeId for ObjectBase gets fully configured to anchor the inheritance tree properly. | |
Dsr fixed size header Format.
Introspection did not find any typical Config paths 
 No Attributes are defined for this type 
 No TraceSources are defined for this type 
 Group: Dsr
 Size of this type is 48 bytes (on a 64-bit architecture).
| 0 | 1 | 2 | 3 | 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Next Header |F| Reservd | Payload Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Options | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
The modified version of Dsr fixed size header Format
| 0 | 1 | 2 | 3 | 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Next Header |F| Message Type | Payload Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Source Id | Dest Id | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Options | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 
Definition at line 70 of file dsr-fs-header.h.
| ns3::dsr::DsrFsHeader::DsrFsHeader | ( | ) | 
Constructor.
Definition at line 54 of file dsr-fs-header.cc.
References m_data, m_destId, m_messageType, m_nextHeader, m_payloadLen, and m_sourceId.
Referenced by GetTypeId().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | override | 
Destructor.
Definition at line 64 of file dsr-fs-header.cc.
| 
 | overridevirtual | 
Deserialize the packet.
| start | Buffer iterator | 
Implements ns3::Header.
Reimplemented in ns3::dsr::DsrRoutingHeader.
Definition at line 158 of file dsr-fs-header.cc.
References data, GetPayloadLength(), GetSerializedSize(), m_data, m_destId, m_messageType, m_nextHeader, m_payloadLen, m_sourceId, ns3::Buffer::Iterator::Read(), ns3::Buffer::Iterator::ReadU16(), ns3::Buffer::Iterator::ReadU8(), and ns3::Buffer::Iterator::Write().
 Here is the call graph for this function:
 Here is the call graph for this function:| uint16_t ns3::dsr::DsrFsHeader::GetDestId | ( | ) | const | 
brief Get the dest ID of the header.
Definition at line 123 of file dsr-fs-header.cc.
References m_destId.
Referenced by ns3::dsr::DsrRouting::AddAckReqHeader(), Print(), ns3::dsr::DsrRoutingHeader::Print(), ns3::dsr::DsrRouting::PromiscReceive(), and ns3::dsr::DsrRoutingHeader::Serialize().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | overridevirtual | 
Get the instance type ID.
Implements ns3::ObjectBase.
Reimplemented in ns3::dsr::DsrRoutingHeader.
Definition at line 49 of file dsr-fs-header.cc.
References GetTypeId().
 Here is the call graph for this function:
 Here is the call graph for this function:| uint8_t ns3::dsr::DsrFsHeader::GetMessageType | ( | ) | const | 
brief Get the message type of the header.
Definition at line 87 of file dsr-fs-header.cc.
References m_messageType.
Referenced by Print(), ns3::dsr::DsrRoutingHeader::Print(), ns3::dsr::DsrRouting::PromiscReceive(), and ns3::dsr::DsrRoutingHeader::Serialize().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| uint8_t ns3::dsr::DsrFsHeader::GetNextHeader | ( | ) | const | 
Get the next header.
Definition at line 75 of file dsr-fs-header.cc.
References m_nextHeader.
Referenced by ns3::dsr::DsrRouting::AddAckReqHeader(), Print(), ns3::dsr::DsrRoutingHeader::Print(), ns3::dsr::DsrRouting::PromiscReceive(), ns3::dsr::DsrRouting::Receive(), and ns3::dsr::DsrRoutingHeader::Serialize().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| uint16_t ns3::dsr::DsrFsHeader::GetPayloadLength | ( | ) | const | 
Get the payload length of the header.
Definition at line 99 of file dsr-fs-header.cc.
References m_payloadLen.
Referenced by Deserialize(), ns3::dsr::DsrRoutingHeader::Deserialize(), Print(), ns3::dsr::DsrRoutingHeader::Print(), and ns3::dsr::DsrRoutingHeader::Serialize().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | overridevirtual | 
Get the serialized size of the packet.
Implements ns3::Header.
Reimplemented in ns3::dsr::DsrRoutingHeader.
Definition at line 138 of file dsr-fs-header.cc.
Referenced by Deserialize().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| uint16_t ns3::dsr::DsrFsHeader::GetSourceId | ( | ) | const | 
brief Get the source ID of the header.
Definition at line 111 of file dsr-fs-header.cc.
References m_sourceId.
Referenced by ns3::dsr::DsrRouting::AddAckReqHeader(), Print(), ns3::dsr::DsrRoutingHeader::Print(), ns3::dsr::DsrRouting::PromiscReceive(), ns3::dsr::DsrRouting::Receive(), and ns3::dsr::DsrRoutingHeader::Serialize().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Get the type identificator.
Definition at line 39 of file dsr-fs-header.cc.
References DsrFsHeader(), and ns3::TypeId::AddConstructor().
Referenced by GetInstanceTypeId().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | overridevirtual | 
Print some information about the packet.
| os | output stream | 
Implements ns3::Header.
Reimplemented in ns3::dsr::DsrRoutingHeader.
Definition at line 129 of file dsr-fs-header.cc.
References GetDestId(), GetMessageType(), GetNextHeader(), GetPayloadLength(), and GetSourceId().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | overridevirtual | 
Serialize the packet.
| start | Buffer iterator | 
Implements ns3::Header.
Reimplemented in ns3::dsr::DsrRoutingHeader.
Definition at line 144 of file dsr-fs-header.cc.
References m_data, m_destId, m_messageType, m_nextHeader, m_payloadLen, m_sourceId, ns3::Buffer::Iterator::Write(), ns3::Buffer::Iterator::WriteU16(), and ns3::Buffer::Iterator::WriteU8().
 Here is the call graph for this function:
 Here is the call graph for this function:| void ns3::dsr::DsrFsHeader::SetDestId | ( | uint16_t | destId | ) | 
brief Set the dest ID of the header.
| destId | the destination ID of the header | 
Definition at line 117 of file dsr-fs-header.cc.
References m_destId.
Referenced by ns3::dsr::DsrRouting::AddAckReqHeader(), ns3::dsr::DsrRouting::CheckSendBuffer(), ns3::dsr::DsrRoutingHeader::Deserialize(), ns3::dsr::DsrRouting::ForwardErrPacket(), ns3::dsr::DsrRouting::ForwardPacket(), ns3::dsr::DsrRouting::PacketNewRoute(), ns3::dsr::DsrOptionRrep::Process(), ns3::dsr::DsrOptionRreq::Process(), ns3::dsr::DsrRouting::SalvagePacket(), ns3::dsr::DsrRouting::Send(), ns3::dsr::DsrRouting::SendAck(), ns3::dsr::DsrRouting::SendErrorRequest(), ns3::dsr::DsrRouting::SendGratuitousReply(), ns3::dsr::DsrRouting::SendInitialRequest(), ns3::dsr::DsrRouting::SendPacketFromBuffer(), and ns3::dsr::DsrRouting::SendUnreachError().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| void ns3::dsr::DsrFsHeader::SetMessageType | ( | uint8_t | messageType | ) | 
brief Set the message type of the header.
| messageType | the message type of the header | 
Definition at line 81 of file dsr-fs-header.cc.
References m_messageType.
Referenced by ns3::dsr::DsrRouting::AddAckReqHeader(), ns3::dsr::DsrRouting::CheckSendBuffer(), ns3::dsr::DsrRoutingHeader::Deserialize(), ns3::dsr::DsrRouting::ForwardErrPacket(), ns3::dsr::DsrRouting::ForwardPacket(), ns3::dsr::DsrRouting::PacketNewRoute(), ns3::dsr::DsrOptionRrep::Process(), ns3::dsr::DsrOptionRreq::Process(), ns3::dsr::DsrRouting::SalvagePacket(), ns3::dsr::DsrRouting::Send(), ns3::dsr::DsrRouting::SendAck(), ns3::dsr::DsrRouting::SendErrorRequest(), ns3::dsr::DsrRouting::SendGratuitousReply(), ns3::dsr::DsrRouting::SendInitialRequest(), ns3::dsr::DsrRouting::SendPacketFromBuffer(), and ns3::dsr::DsrRouting::SendUnreachError().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| void ns3::dsr::DsrFsHeader::SetNextHeader | ( | uint8_t | protocol | ) | 
Set the "Next header" field.
| protocol | the next header number | 
Definition at line 69 of file dsr-fs-header.cc.
References m_nextHeader.
Referenced by ns3::dsr::DsrRouting::AddAckReqHeader(), ns3::dsr::DsrRouting::CheckSendBuffer(), ns3::dsr::DsrRoutingHeader::Deserialize(), ns3::dsr::DsrRouting::ForwardErrPacket(), ns3::dsr::DsrRouting::ForwardPacket(), ns3::dsr::DsrRouting::PacketNewRoute(), ns3::dsr::DsrOptionRrep::Process(), ns3::dsr::DsrOptionRreq::Process(), ns3::dsr::DsrRouting::SalvagePacket(), ns3::dsr::DsrRouting::Send(), ns3::dsr::DsrRouting::SendAck(), ns3::dsr::DsrRouting::SendErrorRequest(), ns3::dsr::DsrRouting::SendGratuitousReply(), ns3::dsr::DsrRouting::SendInitialRequest(), ns3::dsr::DsrRouting::SendPacketFromBuffer(), and ns3::dsr::DsrRouting::SendUnreachError().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| void ns3::dsr::DsrFsHeader::SetPayloadLength | ( | uint16_t | length | ) | 
brief Set the payload length of the header.
| length | the payload length of the header in bytes | 
Definition at line 93 of file dsr-fs-header.cc.
References m_payloadLen.
Referenced by ns3::dsr::DsrRouting::AddAckReqHeader(), ns3::dsr::DsrRouting::CheckSendBuffer(), ns3::dsr::DsrRoutingHeader::Deserialize(), ns3::dsr::DsrRouting::ForwardErrPacket(), ns3::dsr::DsrRouting::ForwardPacket(), ns3::dsr::DsrRouting::PacketNewRoute(), ns3::dsr::DsrOptionRrep::Process(), ns3::dsr::DsrOptionRreq::Process(), ns3::dsr::DsrRouting::SalvagePacket(), ns3::dsr::DsrRouting::Send(), ns3::dsr::DsrRouting::SendAck(), ns3::dsr::DsrRouting::SendErrorRequest(), ns3::dsr::DsrRouting::SendGratuitousReply(), ns3::dsr::DsrRouting::SendInitialRequest(), ns3::dsr::DsrRouting::SendPacketFromBuffer(), and ns3::dsr::DsrRouting::SendUnreachError().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| void ns3::dsr::DsrFsHeader::SetSourceId | ( | uint16_t | sourceId | ) | 
brief Set the source ID of the header.
| sourceId | the source ID of the header | 
Definition at line 105 of file dsr-fs-header.cc.
References m_sourceId.
Referenced by ns3::dsr::DsrRouting::AddAckReqHeader(), ns3::dsr::DsrRouting::CheckSendBuffer(), ns3::dsr::DsrRoutingHeader::Deserialize(), ns3::dsr::DsrRouting::ForwardErrPacket(), ns3::dsr::DsrRouting::ForwardPacket(), ns3::dsr::DsrRouting::PacketNewRoute(), ns3::dsr::DsrOptionRrep::Process(), ns3::dsr::DsrOptionRreq::Process(), ns3::dsr::DsrRouting::SalvagePacket(), ns3::dsr::DsrRouting::Send(), ns3::dsr::DsrRouting::SendAck(), ns3::dsr::DsrRouting::SendErrorRequest(), ns3::dsr::DsrRouting::SendGratuitousReply(), ns3::dsr::DsrRouting::SendInitialRequest(), ns3::dsr::DsrRouting::SendPacketFromBuffer(), and ns3::dsr::DsrRouting::SendUnreachError().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
The data of the extension.
Definition at line 187 of file dsr-fs-header.h.
Referenced by DsrFsHeader(), Deserialize(), and Serialize().
| 
 | private | 
The destination node id.
Definition at line 183 of file dsr-fs-header.h.
Referenced by DsrFsHeader(), Deserialize(), GetDestId(), Serialize(), and SetDestId().
| 
 | private | 
The type of the message.
Definition at line 171 of file dsr-fs-header.h.
Referenced by DsrFsHeader(), Deserialize(), GetMessageType(), Serialize(), and SetMessageType().
| 
 | private | 
The "next header" field.
Definition at line 167 of file dsr-fs-header.h.
Referenced by DsrFsHeader(), Deserialize(), GetNextHeader(), Serialize(), and SetNextHeader().
| 
 | private | 
The "payload length" field.
Definition at line 175 of file dsr-fs-header.h.
Referenced by DsrFsHeader(), Deserialize(), GetPayloadLength(), Serialize(), and SetPayloadLength().
| 
 | private | 
The source node id.
Definition at line 179 of file dsr-fs-header.h.
Referenced by DsrFsHeader(), Deserialize(), GetSourceId(), Serialize(), and SetSourceId().