-moving defines to top
authorChristian Grothoff <christian@grothoff.org>
Sun, 10 Jun 2012 01:07:49 +0000 (01:07 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sun, 10 Jun 2012 01:07:49 +0000 (01:07 +0000)
src/testing/testing.c

index eb87b3764d4a491acce8c97f04823dac7d180f29..fdd198b6adbbb7bf975242d2801f0dc4aaabb1f1 100644 (file)
 #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.