35 #include "ns3/ipv4-route.h"
36 #include "ns3/socket.h"
55 for (std::vector<MaintainBuffEntry>::const_iterator i =
m_maintainBuffer.begin (); i
63 if ((i->GetNextHop () == entry.
GetNextHop ()) && (i->GetOurAdd () == entry.
GetOurAdd ()) && (i->GetSrc () == entry.
GetSrc ())
64 && (i->GetDst () == entry.
GetDst ()) && (i->GetAckId () == entry.
GetAckId ()) && (i->GetSegsLeft () == entry.
GetSegsLeft ()))
86 NS_LOG_INFO (
"Drop Packet With next hop " << nextHop);
97 if (i->GetNextHop () == nextHop)
111 for (std::vector<MaintainBuffEntry>::const_iterator i =
m_maintainBuffer.begin (); i
114 if (i->GetNextHop () == nextHop)
116 NS_LOG_DEBUG (
"Found the packet in maintenance buffer");
126 for (std::vector<MaintainBuffEntry>::iterator i =
m_maintainBuffer.begin (); i
134 && (i->GetSrc () == entry.
GetSrc ()) && (i->GetDst () == entry.
GetDst ())
147 for (std::vector<MaintainBuffEntry>::iterator i =
m_maintainBuffer.begin (); i
155 && (i->GetSrc () == entry.
GetSrc ()) && (i->GetDst () == entry.
GetDst ())
156 && (i->GetAckId () == entry.
GetAckId ()))
169 for (std::vector<MaintainBuffEntry>::iterator i =
m_maintainBuffer.begin (); i
177 if ((i->GetSrc () == entry.
GetSrc ()) && (i->GetDst () == entry.
GetDst ())
192 for (std::vector<MaintainBuffEntry>::iterator i =
m_maintainBuffer.begin (); i
200 if ((i->GetSrc () == entry.
GetSrc ()) && (i->GetDst () == entry.
GetDst ()) && (i->GetOurAdd () == entry.
GetOurAdd ())