Ignore:
Timestamp:
Aug 11, 2009, 8:39:47 AM (15 years ago)
Author:
Christoph Mayer
Message:

watchdog bootstrapping und kleine relay fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/ariba/SideportListener.cpp

    r5786 r5838  
    8686        if( overlay == NULL ) return false;
    8787
     88        bool relay = false;
     89
    8890        BOOST_FOREACH( LinkDescriptor* link, overlay->links ){
     91
     92                // is we find a direct connection this is not a relayed node
     93                if(link->relay == false && link->remoteNode == node && link->up)
     94                        return false;
     95
     96                // if we find a relay conenction this can be a relayed node
     97                // but only if we find no direct connection as above
    8998                if( link->relay && link->remoteNode == node && link->up)
    90                         return true;
     99                        relay = true;
    91100        }
    92101
    93         return false;
     102        return relay;
    94103}
    95104
Note: See TracChangeset for help on using the changeset viewer.