Changeset 1462

Show
Ignore:
Timestamp:
12/01/07 20:01:56 (9 months ago)
Author:
oxff
Message:

nepenthes: purest stupidity; htons vs. htonl :/

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • nepenthes/trunk/nepenthes-core/src/DownloadManager.cpp

    r1461 r1462  
    282282 
    283283        for ( uint32_t i = 0; i < sizeof(m_irLocalRanges) / sizeof(ip_range_t); i++ ) 
    284                 if ( (ulAddress & htons(m_irLocalRanges[i].m_ulMask)) == htons(m_irLocalRanges[i].m_ulAddress) ) 
     284                if ( (ulAddress & htonl(m_irLocalRanges[i].m_ulMask)) == htonl(m_irLocalRanges[i].m_ulAddress) ) 
    285285                        return true; 
    286286