aboutsummaryrefslogtreecommitdiff
path: root/contrib/unbound/services/modstack.c
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2018-05-12 14:15:39 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2018-05-12 14:15:39 +0000
commit65b390aa03158608c95d842609dcc4c7129d6476 (patch)
tree4b7aee665c8acee80420e58a1d090bd267478d28 /contrib/unbound/services/modstack.c
parent3005e0a300309ec169f8e42181b39865e910da6c (diff)
parent6cacf549d3c2d5bddb0dcadd620e1db2897c7f26 (diff)
Notes
Diffstat (limited to 'contrib/unbound/services/modstack.c')
-rw-r--r--contrib/unbound/services/modstack.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/contrib/unbound/services/modstack.c b/contrib/unbound/services/modstack.c
index 70e066670d5d..9bebd3a5634c 100644
--- a/contrib/unbound/services/modstack.c
+++ b/contrib/unbound/services/modstack.c
@@ -46,6 +46,7 @@
#include "dns64/dns64.h"
#include "iterator/iterator.h"
#include "validator/validator.h"
+#include "respip/respip.h"
#ifdef WITH_PYTHONMODULE
#include "pythonmod/pythonmod.h"
@@ -53,6 +54,9 @@
#ifdef USE_CACHEDB
#include "cachedb/cachedb.h"
#endif
+#ifdef CLIENT_SUBNET
+#include "edns-subnet/subnetmod.h"
+#endif
/** count number of modules (words) in the string */
static int
@@ -127,6 +131,10 @@ module_list_avail(void)
#ifdef USE_CACHEDB
"cachedb",
#endif
+#ifdef CLIENT_SUBNET
+ "subnetcache",
+#endif
+ "respip",
"validator",
"iterator",
NULL};
@@ -148,6 +156,10 @@ module_funcs_avail(void)
#ifdef USE_CACHEDB
&cachedb_get_funcblock,
#endif
+#ifdef CLIENT_SUBNET
+ &subnetmod_get_funcblock,
+#endif
+ &respip_get_funcblock,
&val_get_funcblock,
&iter_get_funcblock,
NULL};
@@ -216,7 +228,7 @@ int
modstack_find(struct module_stack* stack, const char* name)
{
int i;
- for(i=0; i<stack->num; i++) {
+ for(i=0; i<stack->num; i++) {
if(strcmp(stack->mod[i]->name, name) == 0)
return i;
}