From 7cc74c8124cd3aaa00a01a17c591eee9a18d0a64 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Wed, 16 Dec 2009 08:36:39 +0000 Subject: [PATCH 1/1] Show FEATURE_ACCEPT_FITLER on the show-status page. --- cgisimple.c | 8 +++++++- templates/show-status | 6 ++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/cgisimple.c b/cgisimple.c index 55bdc2fb..a60de9b8 100644 --- a/cgisimple.c +++ b/cgisimple.c @@ -1,4 +1,4 @@ -const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.94 2009/08/01 11:42:43 fabiankeil Exp $"; +const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.95 2009/09/06 14:18:35 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/cgisimple.c,v $ @@ -1491,6 +1491,12 @@ static jb_err show_defines(struct map *exports) { jb_err err = JB_ERR_OK; +#ifdef FEATURE_ACCEPT_FILTER + if (!err) err = map_conditional(exports, "FEATURE_ACCEPT_FILTER", 1); +#else /* ifndef FEATURE_ACCEPT_FILTER */ + if (!err) err = map_conditional(exports, "FEATURE_ACCEPT_FILTER", 0); +#endif /* ndef FEATURE_ACCEPT_FILTER */ + #ifdef FEATURE_ACL if (!err) err = map_conditional(exports, "FEATURE_ACL", 1); #else /* ifndef FEATURE_ACL */ diff --git a/templates/show-status b/templates/show-status index f631b879..3e8cbf68 100644 --- a/templates/show-status +++ b/templates/show-status @@ -216,6 +216,12 @@ #define Enabled? Effects when enabled + + + FEATURE_ACCEPT_FILTER + @if-FEATURE_ACCEPT_FILTER-then@ Yes @else-not-FEATURE_ACCEPT_FILTER@ No @endif-FEATURE_ACCEPT_FILTER@ + Support for FreeBSD's accf_http(9) which is also available on some other BSDs. + FEATURE_ACL @if-FEATURE_ACL-then@ Yes @else-not-FEATURE_ACL@ No @endif-FEATURE_ACL@ -- 2.39.2