[4.1] a999fee Expose accept_filter parameter to Linux

Lasse Karstensen lkarsten at varnish-software.com
Thu Jan 14 15:15:00 CET 2016


commit a999fee90d2b4a13fe9d559ab5907067590579e2
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date:   Tue Oct 13 17:11:13 2015 +0100

    Expose accept_filter parameter to Linux
    
    Disabled by default. Prompted by Rafael Zalamena
    (rafaelfz at taghos dot com dot br) on varnish-dev.

diff --git a/include/tbl/params.h b/include/tbl/params.h
index d3a2982..c7f1479 100644
--- a/include/tbl/params.h
+++ b/include/tbl/params.h
@@ -30,21 +30,23 @@
 
 /*lint -save -e525 -e539 */
 
-#ifdef HAVE_ACCEPT_FILTERS
 PARAM(
 	/* name */	accept_filter,
 	/* typ */	bool,
 	/* min */	NULL,
 	/* max */	NULL,
+#if defined(HAVE_ACCEPT_FILTERS) || defined(__linux)
 	/* default */	"on",
+#else
+	/* default */	"off",
+#endif /* HAVE_ACCEPT_FILTERS || __linux */
 	/* units */	"bool",
 	/* flags */	MUST_RESTART,
 	/* s-text */
-	"Enable kernel accept-filters, (if available in the kernel).",
+	"Enable kernel accept-filters (if available in the kernel).",
 	/* l-text */	NULL,
 	/* func */	NULL
 )
-#endif /* HAVE_ACCEPT_FILTERS */
 
 PARAM(
 	/* name */	acceptor_sleep_decay,



More information about the varnish-commit mailing list