|
265 |
|
269 |
|
266 |
std::list<Entry>::iterator i, j; |
270 |
std::list<Entry>::iterator i, j; |
267 |
|
271 |
|
268 |
for (i = m_entries.begin (), j = m_entries.begin (), ++j; |
272 |
for ( i = m_entries.begin(), j = i; i != m_entries.end (); ++ i, j = i) |
269 |
i != m_entries.end (); |
|
|
270 |
++i, ++j) |
271 |
{ |
273 |
{ |
272 |
NS_LOG_LOGIC ("examine entry: " << Ipv4Address ((*i).addrLow) << |
274 |
NS_LOG_LOGIC ("examine entry: " << Ipv4Address ((*i).addrLow) << |
273 |
" to " << Ipv4Address ((*i).addrHigh)); |
275 |
" to " << Ipv4Address ((*i).addrHigh)); |
|
303 |
// |
305 |
// |
304 |
if (addr == (*i).addrHigh + 1) |
306 |
if (addr == (*i).addrHigh + 1) |
305 |
{ |
307 |
{ |
|
|
308 |
j ++; |
306 |
if (j != m_entries.end ()) |
309 |
if (j != m_entries.end ()) |
307 |
{ |
310 |
{ |
308 |
if (addr == (*j).addrLow) |
311 |
if (addr == (*j).addrLow) |