[master] 8dd603f Expose accept_filter parameter to Linux

Federico G. Schwindt fgsch at lodoss.net
Wed Oct 14 19:18:41 CEST 2015


commit 8dd603f6de55a0f09641ee438a8d3dc342de7532
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