From: Christian Grothoff Date: Sun, 10 Jun 2012 01:07:49 +0000 (+0000) Subject: -moving defines to top X-Git-Tag: initial-import-from-subversion-38251~13184 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5ab33d2f38aa43fd772e33e70fb709e6c91b1d8a;p=oweals%2Fgnunet.git -moving defines to top --- diff --git a/src/testing/testing.c b/src/testing/testing.c index eb87b3764..fdd198b6a 100644 --- a/src/testing/testing.c +++ b/src/testing/testing.c @@ -36,12 +36,26 @@ #define LOG(kind,...) \ GNUNET_log_from (kind, "gnunettestingnew", __VA_ARGS__) - /** * Size of a hostkey when written to a file */ #define HOSTKEYFILESIZE 914 +/** + * Lowest port used for GNUnet testing. Should be high enough to not + * conflict with other applications running on the hosts but be low + * enough to not conflict with client-ports (typically starting around + * 32k). + */ +#define LOW_PORT 12000 + +/** + * Highest port used for GNUnet testing. Should be low enough to not + * conflict with the port range for "local" ports (client apps; see + * /proc/sys/net/ipv4/ip_local_port_range on Linux for example). + */ +#define HIGH_PORT 56000 + /** * Handle for a system on which GNUnet peers are executed; @@ -141,23 +155,6 @@ struct GNUNET_TESTING_Peer }; -/** - * Lowest port used for GNUnet testing. Should be high enough to not - * conflict with other applications running on the hosts but be low - * enough to not conflict with client-ports (typically starting around - * 32k). - */ -#define LOW_PORT 12000 - - -/** - * Highest port used for GNUnet testing. Should be low enough to not - * conflict with the port range for "local" ports (client apps; see - * /proc/sys/net/ipv4/ip_local_port_range on Linux for example). - */ -#define HIGH_PORT 56000 - - /** * Testing includes a number of pre-created hostkeys for faster peer * startup. This function loads such keys into memory from a file.