View | Details | Raw Unified | Return to bug 169
Collapse All | Expand All

(-)a/src/node/ipv4-address-generator.cc (-3 / +2 lines)
 Lines 265-273    Link Here 
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));
 Lines 303-308    Link Here 
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)

Return to bug 169