29 #include "ns3/address-utils.h"
30 #include "ns3/packet.h"
118 os <<
"UNKNOWN_TYPE";
145 uint32_t originSeqNo)
147 m_reserved(reserved),
148 m_hopCount(hopCount),
149 m_requestID(requestID),
151 m_dstSeqNo(dstSeqNo),
153 m_originSeqNo(originSeqNo)
164 .SetGroupName(
"Aodv")
215 os <<
"RREQ ID " <<
m_requestID <<
" destination: ipv4 " <<
m_dst <<
" sequence number "
218 <<
" Gratuitous RREP " << (*this).GetGratuitousRrep() <<
" Destination only "
219 << (*this).GetDestinationOnly() <<
" Unknown sequence number " << (*this).GetUnknownSeqno();
305 m_prefixSize(prefixSize),
306 m_hopCount(hopCount),
308 m_dstSeqNo(dstSeqNo),
321 .SetGroupName(
"Aodv")
371 os <<
"destination: ipv4 " <<
m_dst <<
" sequence number " <<
m_dstSeqNo;
377 <<
" acknowledgment required flag " << (*this).GetAckRequired();
467 .SetGroupName(
"Aodv")
534 .SetGroupName(
"Aodv")
570 uint8_t dest = i.
ReadU8();
574 for (uint8_t
k = 0;
k < dest; ++
k)
589 os <<
"Unreachable destination (ipv4 address, seq. number):";
592 os << (*j).first <<
", " << (*j).second;
594 os <<
"No delete flag " << (*this).GetNoDelete();
613 return (
m_flag & (1 << 0));
662 if ((j->first !=
k->first) || (j->second !=
k->second))
double f(double x, void *params)
iterator in a Buffer instance
void WriteU8(uint8_t data)
void WriteHtonU32(uint32_t data)
uint32_t GetDistanceFrom(const Iterator &o) const
Ipv4 addresses are stored in host order in this class.
Simulation virtual time values and global simulation resolution.
int64_t GetMilliSeconds() const
Get an approximation of the time stored in this instance in the indicated unit.
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
MessageType
MessageType enumeration.
@ AODVTYPE_RREP
AODVTYPE_RREP.
@ AODVTYPE_RREP_ACK
AODVTYPE_RREP_ACK.
@ AODVTYPE_RERR
AODVTYPE_RERR.
@ AODVTYPE_RREQ
AODVTYPE_RREQ.
#define NS_ASSERT(condition)
At runtime, in debugging builds, if this condition is not true, the program prints the source file,...
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Time MilliSeconds(uint64_t value)
Construct a Time in the indicated unit.
std::ostream & operator<<(std::ostream &os, const TypeHeader &h)
Stream output operator.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
void WriteTo(Buffer::Iterator &i, Ipv4Address ad)
Write an Ipv4Address to a Buffer.
void ReadFrom(Buffer::Iterator &i, Ipv4Address &ad)
Read an Ipv4Address from a Buffer.