]> granicus.if.org Git - apache/blobdiff - include/heartbeat.h
XML update.
[apache] / include / heartbeat.h
index 8d897bb767bf3f178615fdd5ecc05ce6bb46f745..40f98c3a34a30c7151a2853ef5837a0796fd0eb0 100644 (file)
  * 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];
@@ -43,9 +47,14 @@ typedef struct hm_slot_server_t
     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 */
 /** @} */