From 5ab33d2f38aa43fd772e33e70fb709e6c91b1d8a Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 10 Jun 2012 01:07:49 +0000 Subject: [PATCH] -moving defines to top --- src/testing/testing.c | 33 +++++++++++++++------------------ 1 file changed, 15 insertions(+), 18 deletions(-) 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. -- 2.25.1