[master] 30c6037 Only show the accept_filter parameter if the kernel can have accept-filters

Poul-Henning Kamp phk at FreeBSD.org
Tue Dec 3 17:38:41 CET 2013


commit 30c603790d43ea8d7e5e2f686e6982ddebc2b052
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Tue Dec 3 09:38:07 2013 +0000

    Only show the accept_filter parameter if the kernel can have
    accept-filters

diff --git a/bin/varnishd/mgt/mgt_param_tbl.c b/bin/varnishd/mgt/mgt_param_tbl.c
index 1859bec..09dbe80 100644
--- a/bin/varnishd/mgt/mgt_param_tbl.c
+++ b/bin/varnishd/mgt/mgt_param_tbl.c
@@ -270,11 +270,13 @@ struct parspec mgt_parspec[] = {
 		"fragmentation.",
 		EXPERIMENTAL,
 		"256m", "bytes" },
+#ifdef HAVE_ACCEPT_FILTERS
 	{ "accept_filter", tweak_bool, &mgt_param.accept_filter,
 		NULL, NULL,
-		"Enable kernel accept-filters, if supported by the kernel.",
+		"Enable kernel accept-filters, (if available in the kernel).",
 		MUST_RESTART,
 		"on", "bool" },
+#endif
 	{ "listen_address", tweak_listen_address, NULL,
 		NULL, NULL,
 		"Whitespace separated list of network endpoints where "



More information about the varnish-commit mailing list