Changeset 5706 for source/ariba/overlay/modules
- Timestamp:
- Aug 5, 2009, 1:57:49 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/overlay/modules/chord/Chord.cpp
r5699 r5706 377 377 else { 378 378 // find next hop 379 const route_item* item = table->get_next_hop( 380 m->getDestination(),true); 379 const route_item* item = table->get_next_hop(m->getDestination()); 381 380 if (item == NULL || item->id == nodeid) break; 382 381 logging_debug("routing discovery message to " << … … 394 393 case Discovery::predecessor: { 395 394 // time to live ended? yes-> stop routing 396 if (dmsg->getTTL() == 0 ) break;395 if (dmsg->getTTL() == 0 || dmsg->getTTL() > 10) break; 397 396 398 397 // decrease time-to-live … … 408 407 } 409 408 if (item == NULL) break; 410 411 409 logging_debug("routing discovery message to succ/pred " 410 << item->id.toString() ); 412 411 ChordMessage cmsg(*m); 413 412 Discovery dmsg_p(*dmsg);
Note:
See TracChangeset
for help on using the changeset viewer.