src/routing/routing-environment.cc
changeset 1086 43ea23238ce8
parent 1056 dc7924932154
equal deleted inserted replaced
1085:c12d61407468 1086:43ea23238ce8
    37 
    37 
    38   uint32_t
    38   uint32_t
    39 AllocateRouterId(void)
    39 AllocateRouterId(void)
    40 {
    40 {
    41   static uint32_t routerId = 0;
    41   static uint32_t routerId = 0;
    42   return ++routerId;
    42   return routerId++;
    43 }
    43 }
    44 
    44 
    45 } // namespace RoutingEnvironment
    45 } // namespace RoutingEnvironment
    46 } // namespace ns3
    46 } // namespace ns3