diff --git a/src/sn_utils.c b/src/sn_utils.c index 442e954..a1c3117 100644 --- a/src/sn_utils.c +++ b/src/sn_utils.c @@ -17,12 +17,38 @@ */ +#include // for errno, EAFNOSUPPORT +#include // for uint8_t, uint32_t, uint16_t, uint64_t +#include // for sscanf, snprintf, fclose, fgets, fopen +#include // for free, calloc, getenv +#include // for memcpy, NULL, memset, size_t, strerror +#include // for MAX +#include // for timeval +#include // for ssize_t +#include // for time_t, time #include "auth.h" // for ascii_to_bin, calculate_dynamic_key +#include "config.h" // for PACKAGE_VERSION #include "header_encryption.h" // for packet_header_encrypt, packet_header_... #include "n2n.h" // for sn_community, n2n_sn_t, peer_info +#include "n2n_regex.h" // for re_matchp, re_compile +#include "n2n_wire.h" // for encode_buf, encode_PEER_INFO, encode_... #include "pearson.h" // for pearson_hash_128, pearson_hash_32 +#include "portable_endian.h" // for be16toh, htobe16 #include "random_numbers.h" // for n2n_rand, n2n_rand_sqr, n2n_seed, n2n... +#include "sn_selection.h" // for sn_selection_criterion_gather_data #include "speck.h" // for speck_128_encrypt, speck_context_t +#include "uthash.h" // for UT_hash_handle, HASH_ITER, HASH_DEL + +#ifdef WIN32 +#include +#include +#else +#include // for inet_addr, inet_ntoa +#include // for ntohl, in_addr_t, sockaddr_in, INADDR... +#include // for TCP_NODELAY +#include // for FD_ISSET, FD_SET, select, FD_SETSIZE +#include // for recvfrom, shutdown, sockaddr_storage +#endif #define HASH_FIND_COMMUNITY(head, name, out) HASH_FIND_STR(head, name, out)