-static char *hosts[MAX_PINGHOSTS];
-static int hosts_flags[MAX_PINGHOSTS];
-static int hosts_disable[MAX_PINGHOSTS];
-static int hosts_backoff[MAX_PINGHOSTS];
-static int num_pinghosts;
+typedef struct
+{
+ char *name;
+ int flags;
+ int disable; /* How long (how many iterations) this host is still disabled */
+ int backoff; /* How long the host will be disabled, if it failes again */
+} pinghost_t;
+
+static pinghost_t hosts[MAX_PINGHOSTS];
+static int num_pinghosts;