21 #include "ns3/assert.h" 
   23 #include "ns3/header.h" 
  107   uint8_t* 
data = 
new uint8_t[dataLength];
 
  108   i.
Read (data, dataLength);
 
  120   i.
Write (data, dataLength);
 
  128     m_optionsOffset (optionsOffset)
 
  145   NS_LOG_LOGIC (
"fill with " << fill << 
" bytes padding");
 
  158   uint8_t* buf = 
new uint8_t[length];
 
  159   start.
Read (buf, length);
 
  209   static TypeId tid = 
TypeId (
"ns3::Ipv6ExtensionHopByHopHeader")
 
  211     .SetParent<Ipv6ExtensionHeader> ()
 
  265   static TypeId tid = 
TypeId (
"ns3::Ipv6ExtensionDestinationHeader")
 
  267     .SetParent<Ipv6ExtensionHeader> ()
 
  321   static TypeId tid = 
TypeId (
"ns3::Ipv6ExtensionFragmentHeader")
 
  323     .SetParent<Ipv6ExtensionHeader> ()
 
  415   static TypeId tid = 
TypeId (
"ns3::Ipv6ExtensionRoutingHeader")
 
  417     .SetParent<Ipv6ExtensionHeader> ()
 
  495   static TypeId tid = 
TypeId (
"ns3::Ipv6ExtensionLooseRoutingHeader")
 
  497     .SetParent<Ipv6ExtensionRoutingHeader> ()
 
  508   : m_routersAddress (0)
 
  573       it->Serialize (buff);
 
  603   static TypeId tid = 
TypeId (
"ns3::Ipv6ExtensionESPHeader")
 
  605     .SetParent<Ipv6ExtensionHeader> ()
 
  650   static TypeId tid = 
TypeId (
"ns3::Ipv6ExtensionAHHeader")
 
  652     .SetParent<Ipv6ExtensionHeader> ()
 
TypeId AddConstructor(void)
void RemoveAtEnd(uint32_t end)
NS_LOG_COMPONENT_DEFINE("GrantedTimeWindowMpiInterface")
uint32_t CalculatePad(Ipv6OptionHeader::Alignment alignment) const 
Calculate padding. 
automatically resized byte buffer 
NS_OBJECT_ENSURE_REGISTERED(NullMessageSimulatorImpl)
#define NS_LOG_FUNCTION_NOARGS()
Output the name of the function. 
Buffer m_optionData
Data payload. 
OptionField(uint32_t optionsOffset)
Constructor. 
uint32_t ReadNtohU32(void)
iterator in a Buffer instance 
uint32_t GetSerializedSize() const 
Get the serialized size of the packet. 
Option field for an IPv6ExtensionHeader Enables adding options to an IPv6ExtensionHeader. 
void Prev(void)
go backward by one byte 
void WriteHtonU16(uint16_t data)
Buffer::Iterator End(void) const 
uint8_t const * PeekData(void) const 
#define NS_LOG_LOGIC(msg)
Buffer::Iterator Begin(void) const 
uint32_t m_optionsOffset
Offset. 
uint32_t GetOptionsOffset()
Get the offset where the options begin, measured from the start of the extension header. 
void Read(uint8_t *buffer, uint32_t size)
void WriteHtonU32(uint32_t data)
uint32_t GetSize(void) const 
bool AddAtEnd(uint32_t end)
Describes an IPv6 address. 
void WriteU8(uint8_t data)
void AddOption(Ipv6OptionHeader const &option)
Serialize the option, prepending pad1 or padn option as necessary. 
~OptionField()
Destructor. 
uint32_t Deserialize(Buffer::Iterator start, uint32_t length)
Deserialize the packet. 
Buffer GetOptionBuffer()
Get the buffer. 
void Write(uint8_t const *buffer, uint32_t size)
void Serialize(Buffer::Iterator start) const 
Serialize all added options. 
uint16_t ReadNtohU16(void)
void WriteU32(uint32_t data)
a unique identifier for an interface.