From 9de295374decd78fd676574bd38243479dfd6054 Mon Sep 17 00:00:00 2001 From: "Coren[m]" Date: Fri, 27 Sep 2013 03:27:52 +0200 Subject: expanded Client_data to hold two addresses (IPv4, IPv6) instead of one Compilerflag: CLIENT_ONETOONE_IP (to define in DHT.h, default unset i.e. NEW case: two addresses) Every function in DHT{_test}.c working on Client_data has been rewritten to store IPv4 addresses in assoc4, IPv6 addresses in assoc6. Loading/Storing of states defined with other compiler switch is transparently adjusting to the differences. DHT.h, DHT.c: - introduction and handling of the structure changes DHT_test.c, Messenger.c: - logging adapted to new structures util.h: - LOGGING isn't undefined per default anymore --- toxcore/util.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'toxcore/util.h') diff --git a/toxcore/util.h b/toxcore/util.h index 9e4ac79a..13ab4792 100644 --- a/toxcore/util.h +++ b/toxcore/util.h @@ -20,8 +20,6 @@ typedef int (*load_state_callback_func)(void *outer, uint8_t *data, uint32_t len int load_state(load_state_callback_func load_state_callback, void *outer, uint8_t *data, uint32_t length, uint16_t cookie_inner); -#undef LOGGING -/* #define LOGGING */ #ifdef LOGGING extern char logbuffer[512]; void loginit(uint16_t port); -- cgit v1.2.3