diff --git a/tools/tests-auth.c b/tools/tests-auth.c index 05f0b46..060cfc2 100644 --- a/tools/tests-auth.c +++ b/tools/tests-auth.c @@ -16,11 +16,13 @@ * */ -#include +#include // for uint8_t +#include // for printf, fprintf, stdout, stderr +#include // for memset #include "auth.h" // for ascii_to_bin, bin_to_ascii, generate_private_key -#include "n2n.h" -#include "hexdump.h" +#include "hexdump.h" // for fhexdump +#include "n2n.h" // for n2n_private_public_key_t uint8_t PKT_CONTENT1[]={ diff --git a/tools/tests-compress.c b/tools/tests-compress.c index dded8bc..273d0f1 100644 --- a/tools/tests-compress.c +++ b/tools/tests-compress.c @@ -16,12 +16,17 @@ * */ -#include -#include +#include // for assert +#include // for PRIx64 +#include // for uint8_t +#include // for printf, fprintf, stderr, stdout, NULL +#include // for exit +#include // for memcmp +#include "hexdump.h" // for fhexdump +#include "minilzo.h" // for lzo1x_1_compress, lzo1x_decompress, LZO1X_1_ME... +#include "n2n.h" // for N2N_PKT_BUF_SIZE, TRACE_ERROR, traceEvent -#include "n2n.h" -#include "hexdump.h" /* heap allocation for compression as per lzo example doc */ #define HEAP_ALLOC(var,size) lzo_align_t __LZO_MMODEL var [ ((size) + (sizeof(lzo_align_t) - 1)) / sizeof(lzo_align_t) ] diff --git a/tools/tests-elliptic.c b/tools/tests-elliptic.c index eb96365..25ac471 100644 --- a/tools/tests-elliptic.c +++ b/tools/tests-elliptic.c @@ -16,8 +16,12 @@ * */ -#include "n2n.h" -#include "hexdump.h" + +#include // for printf, fprintf, stdout, stderr +#include // for memset +#include "curve25519.h" // for curve25519 +#include "hexdump.h" // for fhexdump + void test_curve25519 (unsigned char *pkt_input, unsigned char *key) { char *test_name = "curve25519"; diff --git a/tools/tests-hashing.c b/tools/tests-hashing.c index 6e40fe7..1781744 100644 --- a/tools/tests-hashing.c +++ b/tools/tests-hashing.c @@ -16,8 +16,10 @@ * */ -#include +#include // for PRIx64, PRIx16, PRIx32 +#include // for uint8_t, uint16_t, uint32_t, uint64_t +#include // for printf, fprintf, stderr, stdout #include "n2n.h" #include "hexdump.h" // for fhexdump #include "pearson.h" // for pearson_hash_128, pearson_hash_16, pearson_has... diff --git a/tools/tests-transform.c b/tools/tests-transform.c index 11f0deb..4a48924 100644 --- a/tools/tests-transform.c +++ b/tools/tests-transform.c @@ -16,10 +16,17 @@ * */ -#include -#include "n2n.h" -#include "hexdump.h" +#include // for PRIx64 +#include // for uint8_t +#include // for printf, fprintf, size_t, stderr, stdout +#include // for exit +#include // for memcpy, memset, memcmp, strncpy +#include // for ssize_t +#include "hexdump.h" // for fhexdump +#include "n2n.h" // for n2n_trans_op_t, n2n_edge_conf_t, n2n_common_t +#include "n2n_wire.h" // for decode_PACKET, decode_common, encode_PACKET + #define DURATION 2.5 // test duration per algorithm #define PACKETS_BEFORE_GETTIME 2047 // do not check time after every packet but after (2 ^ n - 1) diff --git a/tools/tests-wire.c b/tools/tests-wire.c index e194f72..b6d7e18 100644 --- a/tools/tests-wire.c +++ b/tools/tests-wire.c @@ -16,10 +16,15 @@ * */ -#include -#include "n2n.h" -#include "hexdump.h" +#include // for PRIx64, PRIi32 +#include // for uint8_t +#include // for printf, fprintf, size_t, stderr, stdout +#include // for memset, strcpy, strncpy +#include "hexdump.h" // for fhexdump +#include "n2n.h" // for n2n_common_t, n2n_REGISTER_SUPER_t, n2n_REGIST... +#include "n2n_wire.h" // for encode_REGISTER, encode_REGISTER_SUPER, encode... + void init_ip_subnet (n2n_ip_subnet_t * d) { d->net_addr = 0x20212223;