Changeset 5758 for source/ariba/overlay/modules
- Timestamp:
- Aug 7, 2009, 11:20:14 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/overlay/modules/chord/Chord.cpp
r5756 r5758 311 311 312 312 // add to back-routes 313 back_route br; 314 br.id = m->getSource(); 315 br.link = link; 316 br.lastseen = time(NULL); 317 back_routes.push_back(br); 313 bool found = false; 314 BOOST_FOREACH( back_route br, back_routes) { 315 if (br.id == m->getSource()) { 316 br.link = link; 317 br.lastseen = time(NULL); 318 found = true; 319 break; 320 } 321 } 322 if (!found) { 323 back_route br; 324 br.id = m->getSource(); 325 br.link = link; 326 br.lastseen = time(NULL); 327 back_routes.push_back(br); 328 } 318 329 319 330 // next hop == myself?
Note:
See TracChangeset
for help on using the changeset viewer.