Changeset 5758 for source/ariba/overlay
- Timestamp:
- Aug 7, 2009, 11:20:14 AM (15 years ago)
- Location:
- source/ariba/overlay
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/overlay/messages/RelayMessage.h
r5151 r5758 37 37 /// contructs a unspecified relay message 38 38 RelayMessage() : 39 type(typeInvalid), relayNode(NodeID::UNSPECIFIED), destNode(NodeID::UNSPECIFIED) { 39 type(typeInvalid), relayNode(NodeID::UNSPECIFIED), destNode(NodeID::UNSPECIFIED), destLink(LinkID::UNSPECIFIED) { 40 } 41 42 RelayMessage( const RelayMessage& rhs ) : 43 type(rhs.type), relayNode(rhs.relayNode), destNode(rhs.destNode), destLink(rhs.destLink) { 44 40 45 } 41 46 -
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.