* limitations under the License.
*/
-#ifndef HEARTBEAT_H
-#define HEARTBEAT_H
-
/**
* @file heartbeat.h
- * @brief commun structures for mod_heartmonitor.c and mod_lbmethod_heartbeat.c
+ * @brief commun structures for mod_heartmonitor.c and mod_lbmethod_heartbeat.c
*
- * @defgroup HEARTBEAT mem
+ * @defgroup HEARTBEAT heartbeat
* @ingroup APACHE_MODS
* @{
*/
+#ifndef HEARTBEAT_H
+#define HEARTBEAT_H
+
#include "apr.h"
#include "apr_time.h"
extern "C" {
#endif
-#define MAXIPSIZE 64
+/*
+ * Worse Case: IPv4-Mapped IPv6 Address
+ * 0000:0000:0000:0000:0000:FFFF:255.255.255.255
+ */
+#define MAXIPSIZE 46
typedef struct hm_slot_server_t
{
char ip[MAXIPSIZE];
int id;
} hm_slot_server_t;
+/* default name of heartbeat data file, created in the configured
+ * runtime directory when mod_slotmem_shm is not available
+ */
+#define DEFAULT_HEARTBEAT_STORAGE "hb.dat"
+
#ifdef __cplusplus
}
#endif
-#endif
+#endif /* HEARTBEAT_H */
/** @} */