|
|
| 367 |
} |
367 |
} |
| 368 |
UpdateRouteLifeTime (dst, ActiveRouteTimeout); |
368 |
UpdateRouteLifeTime (dst, ActiveRouteTimeout); |
| 369 |
UpdateRouteLifeTime (route->GetGateway (), ActiveRouteTimeout); |
369 |
UpdateRouteLifeTime (route->GetGateway (), ActiveRouteTimeout); |
|
|
370 |
if (dst.IsBroadcast () == false) |
| 371 |
{ |
| 372 |
for (std::map<Ptr<Socket>, Ipv4InterfaceAddress>::const_iterator j = |
| 373 |
m_socketAddresses.begin (); j != m_socketAddresses.end (); ++j) |
| 374 |
{ |
| 375 |
Ipv4InterfaceAddress iface = j->second; |
| 376 |
if (dst != iface.GetBroadcast ()) |
| 377 |
{ |
| 378 |
m_nb.Update (route->GetGateway (), ActiveRouteTimeout); |
| 379 |
} |
| 380 |
} |
| 381 |
} |
| 370 |
return route; |
382 |
return route; |
| 371 |
} |
383 |
} |
| 372 |
|
384 |
|