Changeset 5838 for source/ariba/SideportListener.cpp
- Timestamp:
- Aug 11, 2009, 8:39:47 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/SideportListener.cpp
r5786 r5838 86 86 if( overlay == NULL ) return false; 87 87 88 bool relay = false; 89 88 90 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 89 98 if( link->relay && link->remoteNode == node && link->up) 90 re turntrue;99 relay = true; 91 100 } 92 101 93 return false;102 return relay; 94 103 } 95 104
Note:
See TracChangeset
for help on using the changeset viewer.