diff --git a/src/edge_utils.c b/src/edge_utils.c index 7bff220..9474377 100644 --- a/src/edge_utils.c +++ b/src/edge_utils.c @@ -16,14 +16,40 @@ * */ + +#include // for errno, EAFNOSUPPORT, EINPROGRESS +#include // for fcntl, F_SETFL, O_NONBLOCK +#include // for uint8_t, uint16_t, uint32_t, uin... +#include // for snprintf, sprintf +#include // for free, calloc, getenv +#include // for memcpy, memset, NULL, memcmp +#include // for timeval +#include // for time_t, ssize_t, u_int +#include // for time +#include // for gethostname, sleep #include "auth.h" // for generate_private_key -#include "edge_utils_win32.h" +#include "portable_endian.h" // for be16toh, htobe16 #include "header_encryption.h" // for packet_header_encrypt, packet_he... #include "n2n.h" // for n2n_edge_t, peer_info, n2n_edge_... +#include "n2n_wire.h" // for encode_mac, fill_sockaddr, decod... #include "network_traffic_filter.h" // for create_network_traffic_filter #include "pearson.h" // for pearson_hash_128, pearson_hash_64 #include "random_numbers.h" // for n2n_rand, n2n_rand_sqr +#include "sn_selection.h" // for sn_selection_criterion_common_da... #include "speck.h" // for speck_128_decrypt, speck_128_enc... +#include "uthash.h" // for UT_hash_handle, HASH_COUNT, HASH... + +#ifdef WIN32 +#include +#include +#include "edge_utils_win32.h" +#else +#include // for inet_ntoa, inet_addr, inet_ntop +#include // for sockaddr_in, ntohl, IPPROTO_IP +#include // for TCP_NODELAY +#include // for select, FD_SET, FD_ISSET, FD_ZERO +#include // for setsockopt, AF_INET, connect +#endif /* ************************************** */