[MINOR] add a new CLF log format
Appending the "clf" word after "option httplog" turns the HTTP log
format into a CLF format, more suited for certain tools.
diff --git a/include/common/standard.h b/include/common/standard.h
index d9b9e09..447061e 100644
--- a/include/common/standard.h
+++ b/include/common/standard.h
@@ -286,6 +286,16 @@
localtime_r(&now, tm);
}
+/* This function converts the time_t value <now> into a broken out struct tm
+ * which must be allocated by the caller. It is highly recommended to use this
+ * function intead of gmtime() because that one requires a time_t* which
+ * is not always compatible with tv_sec depending on OS/hardware combinations.
+ */
+static inline void get_gmtime(const time_t now, struct tm *tm)
+{
+ gmtime_r(&now, tm);
+}
+
/* This function parses a time value optionally followed by a unit suffix among
* "d", "h", "m", "s", "ms" or "us". It converts the value into the unit
* expected by the caller. The computation does its best to avoid overflows.
diff --git a/include/types/proxy.h b/include/types/proxy.h
index 43f31a6..c9bd0a9 100644
--- a/include/types/proxy.h
+++ b/include/types/proxy.h
@@ -120,6 +120,7 @@
#define PR_O2_SMARTACC 0x00000080 /* don't immediately ACK request after accept */
#define PR_O2_SMARTCON 0x00000100 /* don't immediately send empty ACK after connect */
#define PR_O2_RDPC_PRST 0x00000200 /* Actvate rdp cookie analyser */
+#define PR_O2_CLFLOG 0x00000400 /* log into clf format */
/* This structure is used to apply fast weighted round robin on a server group */
struct fwrr_group {