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

(-)ipv4-list-routing.cc.orig (-3 / +3 lines)
 Lines 76-82    Link Here 
76
76
77
  // Sorted lists are stored in lowest to highest order, so since we
77
  // Sorted lists are stored in lowest to highest order, so since we
78
  // want to iterate from highest to lowest, use a reverse iterator
78
  // want to iterate from highest to lowest, use a reverse iterator
79
  for (Ipv4RoutingProtocolList::const_reverse_iterator i = m_routingProtocols.rbegin ();
79
  for (Ipv4RoutingProtocolList::reverse_iterator i = m_routingProtocols.rbegin ();
80
       i != m_routingProtocols.rend (); i++)
80
       i != m_routingProtocols.rend (); i++)
81
    {
81
    {
82
      NS_LOG_LOGIC ("Checking protocol " << (*i).second->GetInstanceTypeId () << " with priority " << (*i).first);
82
      NS_LOG_LOGIC ("Checking protocol " << (*i).second->GetInstanceTypeId () << " with priority " << (*i).first);
 Lines 127-133    Link Here 
127
        }
127
        }
128
      // Sorted lists are stored in lowest to highest order, so since we
128
      // Sorted lists are stored in lowest to highest order, so since we
129
      // want to iterate from highest to lowest, use a reverse iterator
129
      // want to iterate from highest to lowest, use a reverse iterator
130
      for (Ipv4RoutingProtocolList::const_reverse_iterator rprotoIter =
130
      for (Ipv4RoutingProtocolList::reverse_iterator rprotoIter =
131
         m_routingProtocols.rbegin ();
131
         m_routingProtocols.rbegin ();
132
           rprotoIter != m_routingProtocols.rend ();
132
           rprotoIter != m_routingProtocols.rend ();
133
           rprotoIter++)
133
           rprotoIter++)
 Lines 185-191    Link Here 
185
  // Next, try to find a route
185
  // Next, try to find a route
186
  // Sorted lists are stored in lowest to highest order, so since we
186
  // Sorted lists are stored in lowest to highest order, so since we
187
  // want to iterate from highest to lowest, use a reverse iterator
187
  // want to iterate from highest to lowest, use a reverse iterator
188
  for (Ipv4RoutingProtocolList::const_reverse_iterator rprotoIter =
188
  for (Ipv4RoutingProtocolList::reverse_iterator rprotoIter =
189
         m_routingProtocols.rbegin ();
189
         m_routingProtocols.rbegin ();
190
       rprotoIter != m_routingProtocols.rend ();
190
       rprotoIter != m_routingProtocols.rend ();
191
       rprotoIter++)
191
       rprotoIter++)

Return to bug 587