[6.0] 108f44dae document probe window bits
Dridi Boukelmoune
dridi.boukelmoune at gmail.com
Thu Aug 16 08:53:00 UTC 2018
commit 108f44dae6b5e8cbb930025b39798c99e30536b0
Author: Nils Goroll <nils.goroll at uplex.de>
Date: Tue May 22 23:07:03 2018 +0200
document probe window bits
See comment on how we could auto-generate the documentation from the
include - any less hackish ideas welcome
diff --git a/include/tbl/vsl_tags.h b/include/tbl/vsl_tags.h
index 89a422a5c..fa348b39f 100644
--- a/include/tbl/vsl_tags.h
+++ b/include/tbl/vsl_tags.h
@@ -370,6 +370,20 @@ SLTM(Hash, SLT_F_UNSAFE, "Value added to hash",
NODEF_NOTICE
)
+/*
+ * Probe window bits:
+ *
+ * the documentation below could get auto-generated like so:
+ *
+ * ( echo '#define PROBE_BITS_DOC \' ; \
+ * $CC -D 'BITMAP(n, c, t, b)="\t" #c ": " t "\n" \' \
+ * -E ./include/tbl/backend_poll.h | grep -E '^"' ; \
+ * echo '""' ) >./include/tbl/backend_poll_doc.h
+ *
+ * as this has a hackish feel to it, the documentation is included here as text
+ * until we find a better solution or the above is accepted
+ */
+
SLTM(Backend_health, 0, "Backend health check",
"The result of a backend health probe.\n\n"
"The format is::\n\n"
@@ -385,6 +399,17 @@ SLTM(Backend_health, 0, "Backend health check",
"\t| +---------------------- Status message\n"
"\t+------------------------- Backend name\n"
"\n"
+
+ "Probe window bits are::\n\n"
+ "\t" "'4'" ": " "Good IPv4" "\n"
+ "\t" "'6'" ": " "Good IPv6" "\n"
+ "\t" "'U'" ": " "Good UNIX" "\n"
+ "\t" "'x'" ": " "Error Xmit" "\n"
+ "\t" "'X'" ": " "Good Xmit" "\n"
+ "\t" "'r'" ": " "Error Recv" "\n"
+ "\t" "'R'" ": " "Good Recv" "\n"
+ "\t" "'H'" ": " "Happy" "\n"
+ "\n"
)
SLTM(VCL_Log, 0, "Log statement from VCL",
More information about the varnish-commit
mailing list