code cleanup
authorPavel Boyko <boyko@iitp.ru>
Tue, 06 Oct 2009 15:31:30 +0400
changeset 5711 4bdbf97344a9
parent 5710 802e547277d0
child 5712 1e56e7ca8f32
code cleanup
src/routing/aodv/aodv-routing-protocol.cc
--- a/src/routing/aodv/aodv-routing-protocol.cc	Wed Sep 30 20:50:44 2009 +0400
+++ b/src/routing/aodv/aodv-routing-protocol.cc	Tue Oct 06 15:31:30 2009 +0400
@@ -448,7 +448,7 @@
   // Add local broadcast record to the routing table
   Ptr<NetDevice> dev = m_ipv4->GetNetDevice (m_ipv4->GetInterfaceForAddress (iface.GetLocal ()));
   RoutingTableEntry rt (/*device=*/dev, /*dst=*/iface.GetBroadcast (), /*know seqno=*/true, /*seqno=*/0, /*iface=*/iface,
-                        /*hops=*/1, /*next hop=*/iface.GetBroadcast (), /*lifetime=*/Seconds (1e9));
+                        /*hops=*/1, /*next hop=*/iface.GetBroadcast (), /*lifetime=*/Simulator::GetMaximumSimulationTime ());
   m_routingTable.AddRoute (rt);
   
   // Allow neighbor manager use this interface for layer 2 feedback if possible
@@ -528,7 +528,7 @@
               m_ipv4->GetInterfaceForAddress (iface.GetLocal ()));
           RoutingTableEntry rt (/*device=*/dev, /*dst=*/iface.GetBroadcast (), /*know seqno=*/true,
                                 /*seqno=*/0, /*iface=*/iface, /*hops=*/1,
-                                /*next hop=*/iface.GetBroadcast (), /*lifetime=*/Seconds (1e9));
+                                /*next hop=*/iface.GetBroadcast (), /*lifetime=*/Simulator::GetMaximumSimulationTime ());
           m_routingTable.AddRoute (rt);
         }
     }
@@ -563,7 +563,7 @@
           // Add local broadcast record to the routing table
           Ptr<NetDevice> dev = m_ipv4->GetNetDevice (m_ipv4->GetInterfaceForAddress (iface.GetLocal ()));
           RoutingTableEntry rt (/*device=*/dev, /*dst=*/iface.GetBroadcast (), /*know seqno=*/true, /*seqno=*/0, /*iface=*/iface,
-                                /*hops=*/1, /*next hop=*/iface.GetBroadcast (), /*lifetime=*/Seconds (1e9));
+                                /*hops=*/1, /*next hop=*/iface.GetBroadcast (), /*lifetime=*/Simulator::GetMaximumSimulationTime ());
           m_routingTable.AddRoute (rt);
         }
       if (m_socketAddresses.empty ())