diff --git a/include/tins/config.h b/include/tins/config.h index 23672e8..2326bf8 100644 --- a/include/tins/config.h +++ b/include/tins/config.h @@ -6,4 +6,6 @@ #define HAVE_DOT11 /* Have WPA2 decryption library */ -#define HAVE_WPA2_DECRYPTION +//#define HAVE_WPA2_DECRYPTION + + diff --git a/src/ip_address.cpp b/src/ip_address.cpp index 75fbce7..f05f6dd 100644 --- a/src/ip_address.cpp +++ b/src/ip_address.cpp @@ -81,7 +81,7 @@ uint32_t IPv4Address::ip_to_int(const char* ip) { #ifdef WIN32 in_addr addr; if(InetPtonA(AF_INET, ip, &addr)) { - return addr.s_addr; + return Endian::be_to_host(addr.s_addr); } else { throw std::runtime_error("Invalid ip address");