]> mj.ucw.cz Git - nsc-5.git/blobdiff - m4/mkconf.m4
Added the FORWARDING macro.
[nsc-5.git] / m4 / mkconf.m4
index e5779217959d675eb42fbbc6e3d69522976e3206..0d2ab00784ef3148a82b87fa2215ee42b617c0b4 100644 (file)
@@ -40,6 +40,17 @@ 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)')
+
 # Manual insertion of config file material
 
 define(`CONFIG', `divert(0)$1