# Definition of forwarders for both normal and slave mode
define(`FORWard', `patsubst(`$*',`,',`; ')')
-define(`FORWArd', `divert(0) forward $1;
+define(`FORWArd', ` forward $1;
forwarders { FORWard(shift($@),)};
-divert(-1)')
+')
define(`FORWARD', `FORWArd(first, $@)')
define(`SLAVE', `FORWArd(only, $@)')
divert(-1)')
+# Definition of a forwarding zone
+
+define(`FORWARDING', `divert(0)zone "$1" in {
+ type forward;
+ forward only;
+ forwarders { FORWard(shift($@),)};
+ZZ_OPTIONS()dnl
+};
+
+divert(-1)')
+
+# Blackhole zones
+
+define(`BLACKHOLE', `divert(0)zone "$1" in {
+ type master;
+ file "cf/blackhole";
+};
+
+divert(-1)')
+
# Manual insertion of config file material
define(`CONFIG', `divert(0)$1