48 .AddConstructor<RreqTable> ()
69 for (std::map<Ipv4Address, RreqTableEntry >::const_iterator i =
70 rreqDstMap.begin (); i != rreqDstMap.end (); ++i)
80 rreqDstMap.erase (firstExpire);
87 std::map<Ipv4Address, RreqTableEntry >::const_iterator i =
91 NS_LOG_LOGIC (
"The request table entry for " << dst <<
" not found");
107 NS_LOG_LOGIC (
"Find the request table entry for " << dst <<
", increment the request count");
120 std::map<Ipv4Address, RreqTableEntry >::const_iterator i =
137 std::map<Ipv4Address, RreqTableEntry >::const_iterator i =
160 std::map<Ipv4Address, uint32_t>::const_iterator i =
164 NS_LOG_LOGIC (
"No Request id for " << dst <<
" found, initialize it to 0");
170 NS_LOG_LOGIC (
"Request id for " << dst <<
" found in the cache");
183 NS_LOG_INFO (
"The Request id for " << dst <<
" is " << rreqId);
213 for (std::vector<BlackList>::iterator i =
m_blackList.begin ();
216 if (i->m_neighborAddress == neighbor)
230 if (i->m_neighborAddress == neighbor)
232 NS_LOG_DEBUG (
"Update the blacklist list timeout if found the blacklist entry");
233 i->m_expireTime = std::max (blacklistTimeout +
Simulator::Now (), i->m_expireTime);
260 std::list<ReceivedRreqEntry> receivedRreqEntryList;
264 std::map<Ipv4Address, std::list<ReceivedRreqEntry> >::const_iterator i =
m_sourceRreqMap.find (src);
267 NS_LOG_LOGIC (
"The source request table entry for " << src <<
" not found");
269 receivedRreqEntryList.clear ();
270 receivedRreqEntryList.push_back (rreqEntry);
277 NS_LOG_LOGIC (
"Find the request table entry for " << src <<
", check if it is exact duplicate");
281 receivedRreqEntryList = i->second;
284 receivedRreqEntryList.pop_front ();
288 for (std::list<ReceivedRreqEntry>::const_iterator j = receivedRreqEntryList.begin (); j != receivedRreqEntryList.end (); ++j)
296 receivedRreqEntryList.push_back (rreqEntry);