Changeset 1463
- Timestamp:
- 12/02/07 16:11:22 (11 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
nepenthes/trunk/nepenthes-core/src/DownloadManager.cpp
r1462 r1463 29 29 30 30 #include <string> 31 #include <sys/param.h> 31 32 32 33 #include "DownloadManager.hpp" … … 115 116 * 116 117 */ 117 //#ifndefBIG_ENDIAN118 //#define SWAP_ORDER(x) (x)119 //#else118 #if BYTE_ORDER == BIG_ENDIAN 119 #define SWAP_ORDER(x) (x) 120 #else 120 121 #define SWAP_ORDER(x) ( \ 121 122 ((x & 0xff) << 24) | \ … … 123 124 ((x & 0xff0000) >> 8 ) | \ 124 125 ((x & 0xff000000) >> 24 )) 125 //#endif126 #endif 126 127 127 128 #define PACKADDR(a, b, c, d) SWAP_ORDER((((uint32_t)(a) << 24) | ((b) << 16) | ((c) << 8) | (d))) … … 282 283 283 284 for ( uint32_t i = 0; i < sizeof(m_irLocalRanges) / sizeof(ip_range_t); i++ ) 284 if ( (ulAddress & htonl(m_irLocalRanges[i].m_ulMask)) == htonl(m_irLocalRanges[i].m_ulAddress))285 if ( (ulAddress & m_irLocalRanges[i].m_ulMask) == m_irLocalRanges[i].m_ulAddress ) 285 286 return true; 286 287
