Changeset 6919 for source/ariba/communication
- Timestamp:
- Nov 13, 2009, 1:41:34 PM (15 years ago)
- Location:
- source/ariba/communication
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/communication/BaseCommunication.cpp
r6828 r6919 539 539 /// query a descriptor by local link id 540 540 BaseCommunication::LinkDescriptor& BaseCommunication::queryLocalLink( const LinkID& link ) const { 541 for ( int i=0; i<linkSet.size();i++)541 for (size_t i=0; i<linkSet.size();i++) 542 542 if (linkSet[i]->localLink == link) return (LinkDescriptor&)*linkSet[i]; 543 543 … … 547 547 /// query a descriptor by remote link id 548 548 BaseCommunication::LinkDescriptor& BaseCommunication::queryRemoteLink( const LinkID& link ) const { 549 for ( int i=0; i<linkSet.size();i++)549 for (size_t i=0; i<linkSet.size();i++) 550 550 if (linkSet[i]->remoteLink == link) return (LinkDescriptor&)*linkSet[i]; 551 551 … … 555 555 LinkIDs BaseCommunication::getLocalLinks( const address_v* addr ) const { 556 556 LinkIDs ids; 557 for ( int i=0; i<linkSet.size(); i++){557 for (size_t i=0; i<linkSet.size(); i++){ 558 558 if( addr == NULL ){ 559 559 ids.push_back( linkSet[i]->localLink ); -
source/ariba/communication/BaseCommunication.h
r5874 r6919 41 41 42 42 // boost & std includes 43 #include < ext/hash_map>44 #include < ext/hash_set>43 #include <boost/unordered_map.hpp> 44 #include <boost/unordered_set.hpp> 45 45 #include <map> 46 46 #include <set> … … 239 239 /// link identifiers 240 240 LinkID localLink; 241 const address_v* localLocator; 242 243 /// used underlay addresses for the link 241 244 LinkID remoteLink; 242 243 /// used underlay addresses for the link244 const address_v* localLocator;245 245 const address_v* remoteLocator; 246 246 -
source/ariba/communication/EndpointDescriptor.h
r5624 r6919 107 107 EndpointDescriptor& operator=( const EndpointDescriptor& rhs) { 108 108 endpoints = rhs.endpoints; 109 return *this; 109 110 } 110 111 -
source/ariba/communication/messages/AribaBaseMsg.cpp
r5284 r6919 66 66 return "typeLinkUpdate"; 67 67 default: 68 "unknown";68 return "unknown"; 69 69 } 70 70 return "unknown"; -
source/ariba/communication/networkinfo/AddressDiscovery.cpp
r5789 r6919 95 95 void AddressDiscovery::discover_ip_addresses( endpoint_set& endpoints ) { 96 96 struct ifaddrs* ifaceBuffer = NULL; 97 struct ifaddrs* tmpAddr = NULL;98 97 void* tmpAddrPtr = NULL; 99 98 -
source/ariba/communication/networkinfo/NetworkChangeDetection.cpp
r3690 r6919 190 190 191 191 for( ; bytesRead > 0; header = NLMSG_NEXT(header, bytesRead)) { 192 if ( !NLMSG_OK(header,bytesRead) ||192 if (!NLMSG_OK(header, (int)bytesRead) || 193 193 (size_t) bytesRead < sizeof(struct nlmsghdr) || 194 (size_t) bytesRead < header->nlmsg_len) {194 (size_t) bytesRead < (size_t)header->nlmsg_len) { 195 195 continue; 196 196 } -
source/ariba/communication/networkinfo/NetworkChangeDetection.h
r3690 r6919 93 93 void stopMonitoring(); 94 94 95 volatile bool running; 95 96 boost::thread* monitoringThread; 96 volatile bool running;97 97 static void monitoringThreadFunc( NetworkChangeDetection* obj ); 98 98 -
source/ariba/communication/networkinfo/NetworkInterface.cpp
r3690 r6919 47 47 name( "" ), index( -1 ), isRunning( false ), 48 48 isUp( false ), isLoopback(false ), isBroadcast( false ), 49 mtu( -1 ), isMulticast( false), txQueueLen( -1 )49 isMulticast( false ), mtu( -1 ), txQueueLen( -1 ) 50 50 { 51 51 }
Note:
See TracChangeset
for help on using the changeset viewer.