29 #include "ns3/address-utils.h"
30 #include "ns3/packet.h"
48 .SetGroupName (
"Aodv")
76 uint8_t type = i.
ReadU8 ();
122 os <<
"UNKNOWN_TYPE";
143 uint32_t dstSeqNo,
Ipv4Address origin, uint32_t originSeqNo)
145 m_reserved (reserved),
146 m_hopCount (hopCount),
147 m_requestID (requestID),
149 m_dstSeqNo (dstSeqNo),
151 m_originSeqNo (originSeqNo)
162 .SetGroupName (
"Aodv")
215 <<
" sequence number " <<
m_dstSeqNo <<
" source: ipv4 "
217 <<
" flags:" <<
" Gratuitous RREP " << (*this).GetGratuitousRrep ()
218 <<
" Destination only " << (*this).GetDestinationOnly ()
219 <<
" Unknown sequence number " << (*this).GetUnknownSeqno ();
302 m_prefixSize (prefixSize),
303 m_hopCount (hopCount),
305 m_dstSeqNo (dstSeqNo),
318 .SetGroupName (
"Aodv")
369 os <<
"destination: ipv4 " <<
m_dst <<
" sequence number " <<
m_dstSeqNo;
375 <<
" acknowledgment required flag " << (*this).GetAckRequired ();
465 .SetGroupName (
"Aodv")
533 .SetGroupName (
"Aodv")
557 std::map<Ipv4Address, uint32_t>::const_iterator j;
571 uint8_t dest = i.
ReadU8 ();
575 for (uint8_t
k = 0;
k < dest; ++
k)
590 os <<
"Unreachable destination (ipv4 address, seq. number):";
591 std::map<Ipv4Address, uint32_t>::const_iterator j;
594 os << (*j).first <<
", " << (*j).second;
596 os <<
"No delete flag " << (*this).GetNoDelete ();
615 return (
m_flag & (1 << 0));
664 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(Iterator const &o) const
uint32_t ReadNtohU32(void)
Ipv4 addresses are stored in host order in this class.
Simulation virtual time values and global simulation resolution.
int64_t GetMilliSeconds(void) 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, TypeHeader const &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.