29 #include "ns3/address-utils.h" 
   30 #include "ns3/packet.h" 
   41   m_type (t), m_valid (true)
 
   50     .AddConstructor<TypeHeader> ()
 
   77   uint8_t type = i.
ReadU8 ();
 
  123       os << 
"UNKNOWN_TYPE";
 
  144                         uint32_t dstSeqNo, 
Ipv4Address origin, uint32_t originSeqNo) :
 
  145   m_flags (flags), m_reserved (reserved), m_hopCount (hopCount), m_requestID (requestID), m_dst (dst),
 
  146   m_dstSeqNo (dstSeqNo), m_origin (origin),  m_originSeqNo (originSeqNo)
 
  158     .AddConstructor<RreqHeader> ()
 
  210      << 
" sequence number " << 
m_dstSeqNo << 
" source: ipv4 " 
  212      << 
" flags:" << 
" Gratuitous RREP " << (*this).GetGratiousRrep ()
 
  213      << 
" Destination only " << (*this).GetDestinationOnly ()
 
  214      << 
" Unknown sequence number " << (*this).GetUnknownSeqno ();
 
  284   m_flags (0), m_prefixSize (prefixSize), m_hopCount (hopCount),
 
  285   m_dst (dst), m_dstSeqNo (dstSeqNo), m_origin (origin)
 
  298     .AddConstructor<RrepHeader> ()
 
  348   os << 
"destination: ipv4 " << 
m_dst << 
" sequence number " << 
m_dstSeqNo;
 
  354      << 
" acknowledgment required flag " << (*this).GetAckRequired ();
 
  441     .AddConstructor<RrepAckHeader> ()
 
  496   m_flag (0), m_reserved (0)
 
  508     .AddConstructor<RerrHeader> ()
 
  531   std::map<Ipv4Address, uint32_t>::const_iterator j;
 
  545   uint8_t dest = i.
ReadU8 ();
 
  549   for (uint8_t k = 0; k < dest; ++k)
 
  564   os << 
"Unreachable destination (ipv4 address, seq. number):";
 
  565   std::map<Ipv4Address, uint32_t>::const_iterator j;
 
  568       os << (*j).first << 
", " << (*j).second;
 
  570   os << 
"No delete flag " << (*this).GetNoDelete ();
 
  585   return (
m_flag & (1 << 0));
 
  628       if ((j->first != k->first) || (j->second != k->second))
 
keep track of time values and allow control of global simulation resolution 
 
void ReadFrom(Buffer::Iterator &i, Ipv4Address &ad)
Read an Ipv4Address from a Buffer. 
 
#define NS_ASSERT(condition)
 
NS_OBJECT_ENSURE_REGISTERED(NullMessageSimulatorImpl)
 
void WriteTo(Buffer::Iterator &i, Ipv4Address ad)
Write an Ipv4Address to a Buffer. 
 
uint32_t ReadNtohU32(void)
 
uint32_t GetDistanceFrom(Iterator const &o) const 
 
iterator in a Buffer instance 
 
void WriteHtonU32(uint32_t data)
 
Ipv4 addresses are stored in host order in this class. 
 
void WriteU8(uint8_t data)
 
std::ostream & operator<<(std::ostream &os, TypeHeader const &h)
 
a unique identifier for an interface. 
 
int64_t GetMilliSeconds(void) const 
 
TypeId SetParent(TypeId tid)