|
ns-3
|

Public Member Functions | |
| DsrOptionField (uint32_t optionsOffset) | |
| Constructor. | |
| ~DsrOptionField () | |
| Destructor. | |
| uint32_t | GetSerializedSize () const |
| Get the serialized size of the packet. | |
| void | Serialize (Buffer::Iterator start) const |
| Serialize all added options. | |
| uint32_t | Deserialize (Buffer::Iterator start, uint32_t length) |
| Deserialize the packet. | |
| void | AddDsrOption (DsrOptionHeader const &option) |
| Serialize the option, prepending pad1 or padn option as necessary. | |
| uint32_t | GetDsrOptionsOffset () |
| Get the offset where the options begin, measured from the start of the extension header. | |
| Buffer | GetDsrOptionBuffer () |
| Get the buffer. | |
| ns3::dsr::DsrOptionField::DsrOptionField | ( | uint32_t | optionsOffset | ) |
Constructor.
| optionsOffset | option offset |
| void ns3::dsr::DsrOptionField::AddDsrOption | ( | DsrOptionHeader const & | option | ) |
Serialize the option, prepending pad1 or padn option as necessary.
| option | the option header to serialize |
References ns3::Buffer::AddAtEnd(), ns3::Buffer::End(), ns3::dsr::DsrOptionHeader::GetAlignment(), ns3::dsr::DsrOptionHeader::GetSerializedSize(), NS_LOG_FUNCTION_NOARGS, NS_LOG_LOGIC, ns3::Buffer::Iterator::Prev(), and ns3::dsr::DsrOptionHeader::Serialize().
Referenced by ns3::dsr::DsrRouting::CheckSendBuffer(), ns3::dsr::DsrRouting::PacketNewRoute(), ns3::dsr::DsrOptionRreq::Process(), ns3::dsr::DsrOptionRrep::Process(), and ns3::dsr::DsrRouting::SendGratuitousReply().
| uint32_t ns3::dsr::DsrOptionField::Deserialize | ( | Buffer::Iterator | start, |
| uint32_t | length | ||
| ) |
Deserialize the packet.
| start | Buffer iterator |
| length | length |
References ns3::Buffer::AddAtEnd(), ns3::Buffer::Begin(), ns3::Buffer::Iterator::Read(), and ns3::Buffer::Iterator::Write().
| Buffer ns3::dsr::DsrOptionField::GetDsrOptionBuffer | ( | ) |
Get the buffer.
| uint32_t ns3::dsr::DsrOptionField::GetDsrOptionsOffset | ( | ) |
Get the offset where the options begin, measured from the start of the extension header.
Referenced by ns3::dsr::DsrRouting::CheckSendBuffer(), and ns3::dsr::DsrRouting::Receive().
| uint32_t ns3::dsr::DsrOptionField::GetSerializedSize | ( | void | ) | const |
Get the serialized size of the packet.
Reimplemented in ns3::dsr::DsrRoutingHeader.
References ns3::Buffer::GetSize().
| void ns3::dsr::DsrOptionField::Serialize | ( | Buffer::Iterator | start | ) | const |
Serialize all added options.
| start | Buffer iterator |
Reimplemented in ns3::dsr::DsrRoutingHeader.
References ns3::Buffer::Begin(), ns3::Buffer::End(), NS_LOG_LOGIC, ns3::dsr::DsrOptionPad1Header::Serialize(), ns3::dsr::DsrOptionPadnHeader::Serialize(), and ns3::Buffer::Iterator::Write().