From: Vadim Fedorenko Date: Thu, 20 Apr 2023 15:39:55 +0000 (-0700) Subject: Linting change. X-Git-Tag: release-1.18.0rc1~24^2~51^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=648ad4db6fdf3716a4376489998342cf267944ed;p=thirdparty%2Funbound.git Linting change. Remove config parser/lexer code as it's rebuilded every time but can break adding new config options. Also clean up the code base to avoid mixing actual code changes and lint issues. Signed-off-by: Vadim Fedorenko --- diff --git a/Makefile.in b/Makefile.in index bc021aa1e..3be1ae8a2 100644 --- a/Makefile.in +++ b/Makefile.in @@ -198,7 +198,7 @@ CHECKCONF_OBJ=unbound-checkconf.lo worker_cb.lo CHECKCONF_OBJ_LINK=$(CHECKCONF_OBJ) $(COMMON_OBJ_ALL_SYMBOLS) $(SLDNS_OBJ) \ $(COMPAT_OBJ) @WIN_CHECKCONF_OBJ_LINK@ CONTROL_SRC=smallapp/unbound-control.c -CONTROL_OBJ=unbound-control.lo +CONTROL_OBJ=unbound-control.lo CONTROL_OBJ_LINK=$(CONTROL_OBJ) worker_cb.lo $(COMMON_OBJ_ALL_SYMBOLS) \ $(SLDNS_OBJ) $(COMPAT_OBJ) @WIN_CONTROL_OBJ_LINK@ HOST_SRC=smallapp/unbound-host.c @@ -516,7 +516,7 @@ distclean: clean rm -f doc/example.conf doc/libunbound.3 doc/unbound-anchor.8 doc/unbound-checkconf.8 doc/unbound-control.8 doc/unbound.8 doc/unbound.conf.5 doc/unbound-host.1 rm -f smallapp/unbound-control-setup.sh dnstap/dnstap_config.h dnscrypt/dnscrypt_config.h contrib/libunbound.pc contrib/unbound.socket contrib/unbound.service rm -f $(TEST_BIN) - rm -f Makefile + rm -f Makefile maintainer-clean: distclean rm -f util/configlexer.c util/configparser.c util/configparser.h @@ -649,7 +649,7 @@ uninstall: $(PYTHONMOD_UNINSTALL) $(PYUNBOUND_UNINSTALL) $(UNBOUND_EVENT_UNINSTA iana_update: curl -o port-numbers.tmp https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xml --compressed - if file port-numbers.tmp | grep 'gzip' >/dev/null; then zcat port-numbers.tmp; else cat port-numbers.tmp; fi | awk '// {p=0;} /udp/ {p=1;} /[^u]/ {p=0;} /Decomissioned|Decommissioned|Removed|De-registered|unassigned|Unassigned|Reserved/ {u=1;} // { if(u==1) {u=0;} else { if(p==1) { match($$0,/[0-9]+/); print substr($$0, RSTART, RLENGTH) ","}}}' | sort -nu > util/iana_ports.inc + if file port-numbers.tmp | grep 'gzip' >/dev/null; then zcat port-numbers.tmp; else cat port-numbers.tmp; fi | awk '// {p=0;} /udp/ {p=1;} /[^u]/ {p=0;} /Decomissioned|Decommissioned|Removed|De-registered|unassigned|Unassigned|Reserved/ {u=1;} // { if(u==1) {u=0;} else { if(p==1) { match($$0,/[0-9]+/); print substr($$0, RSTART, RLENGTH) ","}}}' | sort -nu > util/iana_ports.inc rm -f port-numbers.tmp # dependency generation @@ -877,7 +877,7 @@ rpz.lo rpz.o: $(srcdir)/services/rpz.c config.h $(srcdir)/services/rpz.h $(srcdi outbound_list.lo outbound_list.o: $(srcdir)/services/outbound_list.c config.h \ $(srcdir)/services/outbound_list.h $(srcdir)/services/outside_network.h $(srcdir)/util/rbtree.h \ $(srcdir)/util/netevent.h $(srcdir)/dnscrypt/dnscrypt.h \ - + outside_network.lo outside_network.o: $(srcdir)/services/outside_network.c config.h \ $(srcdir)/services/outside_network.h $(srcdir)/util/rbtree.h $(srcdir)/util/netevent.h \ $(srcdir)/dnscrypt/dnscrypt.h \ @@ -1186,7 +1186,7 @@ unitmain.lo unitmain.o: $(srcdir)/testcode/unitmain.c config.h $(srcdir)/sldns/r $(srcdir)/util/storage/dnstree.h $(srcdir)/util/rbtree.h $(srcdir)/util/netevent.h $(srcdir)/dnscrypt/dnscrypt.h \ $(srcdir)/util/random.h $(srcdir)/respip/respip.h \ $(srcdir)/services/localzone.h $(srcdir)/services/view.h $(srcdir)/sldns/sbuffer.h \ - $(srcdir)/services/outside_network.h + $(srcdir)/services/outside_network.h unitmsgparse.lo unitmsgparse.o: $(srcdir)/testcode/unitmsgparse.c config.h $(srcdir)/util/log.h \ $(srcdir)/testcode/unitmain.h $(srcdir)/util/data/msgparse.h $(srcdir)/util/storage/lruhash.h \ $(srcdir)/util/locks.h $(srcdir)/sldns/pkthdr.h $(srcdir)/sldns/rrdef.h $(srcdir)/util/data/msgreply.h \ diff --git a/config.h.in b/config.h.in index 2caecf30d..6f7a062af 100644 --- a/config.h.in +++ b/config.h.in @@ -1068,39 +1068,39 @@ #if defined(OMITTED__D_GNU_SOURCE) && !defined(_GNU_SOURCE) #define _GNU_SOURCE 1 -#endif +#endif #if defined(OMITTED__D_BSD_SOURCE) && !defined(_BSD_SOURCE) #define _BSD_SOURCE 1 -#endif +#endif #if defined(OMITTED__D_DEFAULT_SOURCE) && !defined(_DEFAULT_SOURCE) #define _DEFAULT_SOURCE 1 -#endif +#endif #if defined(OMITTED__D__EXTENSIONS__) && !defined(__EXTENSIONS__) #define __EXTENSIONS__ 1 -#endif +#endif #if defined(OMITTED__D_POSIX_C_SOURCE_200112) && !defined(_POSIX_C_SOURCE) #define _POSIX_C_SOURCE 200112 -#endif +#endif #if defined(OMITTED__D_XOPEN_SOURCE_600) && !defined(_XOPEN_SOURCE) #define _XOPEN_SOURCE 600 -#endif +#endif #if defined(OMITTED__D_XOPEN_SOURCE_EXTENDED_1) && !defined(_XOPEN_SOURCE_EXTENDED) #define _XOPEN_SOURCE_EXTENDED 1 -#endif +#endif #if defined(OMITTED__D_ALL_SOURCE) && !defined(_ALL_SOURCE) #define _ALL_SOURCE 1 -#endif +#endif #if defined(OMITTED__D_LARGEFILE_SOURCE_1) && !defined(_LARGEFILE_SOURCE) #define _LARGEFILE_SOURCE 1 -#endif +#endif @@ -1184,7 +1184,7 @@ #endif - + #ifdef HAVE_ATTR_FORMAT # define ATTR_FORMAT(archetype, string_index, first_to_check) \ __attribute__ ((format (archetype, string_index, first_to_check))) @@ -1294,7 +1294,7 @@ void* reallocarray(void *ptr, size_t nmemb, size_t size); #ifdef HAVE_WINSOCK2_H #define FD_SET_T (u_int) #else -#define FD_SET_T +#define FD_SET_T #endif @@ -1449,5 +1449,3 @@ void *unbound_stat_realloc_log(void *ptr, size_t size, const char* file, #define UNBOUND_CONTROL_PORT 8953 /** the version of unbound-control that this software implements */ #define UNBOUND_CONTROL_VERSION 1 - - diff --git a/configure b/configure index ad6256735..f7abb5289 100755 --- a/configure +++ b/configure @@ -24273,4 +24273,3 @@ if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi - diff --git a/configure.ac b/configure.ac index 708427d1d..73fef5f87 100644 --- a/configure.ac +++ b/configure.ac @@ -157,7 +157,7 @@ esac # are we on MinGW? if uname -s 2>&1 | grep MINGW >/dev/null; then on_mingw="yes" -else +else if echo $host | grep mingw >/dev/null; then on_mingw="yes" else on_mingw="no"; fi fi @@ -186,9 +186,9 @@ ub_conf_dir=`AS_DIRNAME(["$ub_conf_file"])` AC_SUBST(ub_conf_dir) # Determine run, chroot directory and pidfile locations -AC_ARG_WITH(run-dir, - AS_HELP_STRING([--with-run-dir=path],[set default directory to chdir to (by default dir part of cfg file)]), - UNBOUND_RUN_DIR="$withval", +AC_ARG_WITH(run-dir, + AS_HELP_STRING([--with-run-dir=path],[set default directory to chdir to (by default dir part of cfg file)]), + UNBOUND_RUN_DIR="$withval", if test $on_mingw = no; then UNBOUND_RUN_DIR=`dirname "$ub_conf_file"` else @@ -199,9 +199,9 @@ AC_SUBST(UNBOUND_RUN_DIR) ACX_ESCAPE_BACKSLASH($UNBOUND_RUN_DIR, hdr_run) AC_DEFINE_UNQUOTED(RUN_DIR, ["$hdr_run"], [Directory to chdir to]) -AC_ARG_WITH(chroot-dir, - AS_HELP_STRING([--with-chroot-dir=path],[set default directory to chroot to (by default same as run-dir)]), - UNBOUND_CHROOT_DIR="$withval", +AC_ARG_WITH(chroot-dir, + AS_HELP_STRING([--with-chroot-dir=path],[set default directory to chroot to (by default same as run-dir)]), + UNBOUND_CHROOT_DIR="$withval", if test $on_mingw = no; then UNBOUND_CHROOT_DIR="$UNBOUND_RUN_DIR" else @@ -219,9 +219,9 @@ AC_ARG_WITH(share-dir, AC_SUBST(UNBOUND_SHARE_DIR) AC_DEFINE_UNQUOTED(SHARE_DIR, ["$UNBOUND_SHARE_DIR"], [Shared data]) -AC_ARG_WITH(pidfile, - AS_HELP_STRING([--with-pidfile=filename],[set default pathname to unbound pidfile (default run-dir/unbound.pid)]), - UNBOUND_PIDFILE="$withval", +AC_ARG_WITH(pidfile, + AS_HELP_STRING([--with-pidfile=filename],[set default pathname to unbound pidfile (default run-dir/unbound.pid)]), + UNBOUND_PIDFILE="$withval", if test $on_mingw = no; then UNBOUND_PIDFILE="$UNBOUND_RUN_DIR/unbound.pid" else @@ -232,9 +232,9 @@ AC_SUBST(UNBOUND_PIDFILE) ACX_ESCAPE_BACKSLASH($UNBOUND_PIDFILE, hdr_pid) AC_DEFINE_UNQUOTED(PIDFILE, ["$hdr_pid"], [default pidfile location]) -AC_ARG_WITH(rootkey-file, - AS_HELP_STRING([--with-rootkey-file=filename],[set default pathname to root key file (default run-dir/root.key). This file is read and written.]), - UNBOUND_ROOTKEY_FILE="$withval", +AC_ARG_WITH(rootkey-file, + AS_HELP_STRING([--with-rootkey-file=filename],[set default pathname to root key file (default run-dir/root.key). This file is read and written.]), + UNBOUND_ROOTKEY_FILE="$withval", if test $on_mingw = no; then UNBOUND_ROOTKEY_FILE="$UNBOUND_RUN_DIR/root.key" else @@ -245,9 +245,9 @@ AC_SUBST(UNBOUND_ROOTKEY_FILE) ACX_ESCAPE_BACKSLASH($UNBOUND_ROOTKEY_FILE, hdr_rkey) AC_DEFINE_UNQUOTED(ROOT_ANCHOR_FILE, ["$hdr_rkey"], [default rootkey location]) -AC_ARG_WITH(rootcert-file, - AS_HELP_STRING([--with-rootcert-file=filename],[set default pathname to root update certificate file (default run-dir/icannbundle.pem). This file need not exist if you are content with the builtin.]), - UNBOUND_ROOTCERT_FILE="$withval", +AC_ARG_WITH(rootcert-file, + AS_HELP_STRING([--with-rootcert-file=filename],[set default pathname to root update certificate file (default run-dir/icannbundle.pem). This file need not exist if you are content with the builtin.]), + UNBOUND_ROOTCERT_FILE="$withval", if test $on_mingw = no; then UNBOUND_ROOTCERT_FILE="$UNBOUND_RUN_DIR/icannbundle.pem" else @@ -258,9 +258,9 @@ AC_SUBST(UNBOUND_ROOTCERT_FILE) ACX_ESCAPE_BACKSLASH($UNBOUND_ROOTCERT_FILE, hdr_rpem) AC_DEFINE_UNQUOTED(ROOT_CERT_FILE, ["$hdr_rpem"], [default rootcert location]) -AC_ARG_WITH(username, - AS_HELP_STRING([--with-username=user],[set default user that unbound changes to (default user is unbound)]), - UNBOUND_USERNAME="$withval", +AC_ARG_WITH(username, + AS_HELP_STRING([--with-username=user],[set default user that unbound changes to (default user is unbound)]), + UNBOUND_USERNAME="$withval", UNBOUND_USERNAME="unbound") AC_SUBST(UNBOUND_USERNAME) AC_DEFINE_UNQUOTED(UB_USERNAME, ["$UNBOUND_USERNAME"], [default username]) @@ -286,7 +286,7 @@ ACX_DETERMINE_EXT_FLAGS_UNBOUND # debug mode flags warnings AC_ARG_ENABLE(checking, AS_HELP_STRING([--enable-checking],[Enable warnings, asserts, makefile-dependencies])) AC_ARG_ENABLE(debug, AS_HELP_STRING([--enable-debug],[same as enable-checking])) -if test "$enable_debug" = "yes"; then debug_enabled="$enable_debug"; +if test "$enable_debug" = "yes"; then debug_enabled="$enable_debug"; else debug_enabled="$enable_checking"; fi AC_SUBST(debug_enabled) case "$debug_enabled" in @@ -454,7 +454,7 @@ AC_CHECK_HEADERS([netioapi.h],,, [AC_INCLUDES_DEFAULT #endif ]) -# check for types. +# check for types. # Using own tests for int64* because autoconf builtin only give 32bit. AC_CHECK_TYPE(int8_t, signed char) AC_CHECK_TYPE(int16_t, short) @@ -549,11 +549,11 @@ sinclude(systemd.m4) # Include systemd.m4 - end # set memory allocation checking if requested -AC_ARG_ENABLE(alloc-checks, AS_HELP_STRING([--enable-alloc-checks],[ enable to memory allocation statistics, for debug purposes ]), +AC_ARG_ENABLE(alloc-checks, AS_HELP_STRING([--enable-alloc-checks],[ enable to memory allocation statistics, for debug purposes ]), , ) -AC_ARG_ENABLE(alloc-lite, AS_HELP_STRING([--enable-alloc-lite],[ enable for lightweight alloc assertions, for debug purposes ]), +AC_ARG_ENABLE(alloc-lite, AS_HELP_STRING([--enable-alloc-lite],[ enable for lightweight alloc assertions, for debug purposes ]), , ) -AC_ARG_ENABLE(alloc-nonregional, AS_HELP_STRING([--enable-alloc-nonregional],[ enable nonregional allocs, slow but exposes regional allocations to other memory purifiers, for debug purposes ]), +AC_ARG_ENABLE(alloc-nonregional, AS_HELP_STRING([--enable-alloc-nonregional],[ enable nonregional allocs, slow but exposes regional allocations to other memory purifiers, for debug purposes ]), , ) if test x_$enable_alloc_nonregional = x_yes; then AC_DEFINE(UNBOUND_ALLOC_NONREGIONAL, 1, [use malloc not regions, for debug use]) @@ -586,7 +586,7 @@ if test "$on_mingw" = "yes"; then ])], AC_MSG_RESULT(yes) AC_DEFINE(HAVE_WINDOWS_THREADS, 1, [Using Windows threads]) -, +, AC_MSG_RESULT(no) ) @@ -597,7 +597,7 @@ else # check this first, so that the pthread lib does not get linked in via # libssl or libpython, and thus distorts the tests, and we end up using # the non-threadsafe C libraries. -AC_ARG_WITH(pthreads, AS_HELP_STRING([--with-pthreads],[use pthreads library, or --without-pthreads to disable threading support.]), +AC_ARG_WITH(pthreads, AS_HELP_STRING([--with-pthreads],[use pthreads library, or --without-pthreads to disable threading support.]), [ ],[ withval="yes" ]) ub_have_pthreads=no if test x_$withval != x_no; then @@ -624,7 +624,7 @@ int main(void) {return 0;} # first compile echo "$CC $CFLAGS -c conftest.c -o conftest.o" >&AS_MESSAGE_LOG_FD $CC $CFLAGS -c conftest.c -o conftest.o 2>&AS_MESSAGE_LOG_FD >&AS_MESSAGE_LOG_FD - if test $? = 0; then + if test $? = 0; then # then link echo "$CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest contest.o" >&AS_MESSAGE_LOG_FD $CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest conftest.o 2>&AS_MESSAGE_LOG_FD >&AS_MESSAGE_LOG_FD @@ -645,7 +645,7 @@ int main(void) {return 0;} ]) fi -# check solaris thread library +# check solaris thread library AC_ARG_WITH(solaris-threads, AS_HELP_STRING([--with-solaris-threads],[use solaris native thread library.]), [ ],[ withval="no" ]) ub_have_sol_threads=no if test x_$withval != x_no; then @@ -659,8 +659,8 @@ if test x_$withval != x_no; then ACX_CHECK_COMPILER_FLAG(mt, [CFLAGS="$CFLAGS -mt"], [CFLAGS="$CFLAGS -D_REENTRANT"]) ub_have_sol_threads=yes - ] , [ - AC_MSG_ERROR([no solaris threads found.]) + ] , [ + AC_MSG_ERROR([no solaris threads found.]) ]) fi fi @@ -1093,7 +1093,7 @@ int load_gost_id(void) EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth); return gost_id; } -int main(void) { +int main(void) { EVP_MD_CTX* ctx; const EVP_MD* md; unsigned char digest[64]; /* its a 256-bit digest, so uses 32 bytes */ @@ -1537,7 +1537,7 @@ if test x_$enable_fully_static = x_yes; then fi # set lock checking if requested -AC_ARG_ENABLE(lock_checks, AS_HELP_STRING([--enable-lock-checks],[ enable to check lock and unlock calls, for debug purposes ]), +AC_ARG_ENABLE(lock_checks, AS_HELP_STRING([--enable-lock-checks],[ enable to check lock and unlock calls, for debug purposes ]), , ) if test x_$enable_lock_checks = x_yes; then AC_DEFINE(ENABLE_LOCK_CHECKS, 1, [Define if you want to use debug lock checking (slow).]) @@ -1988,11 +1988,11 @@ AC_ARG_WITH(libunbound-only, AS_HELP_STRING([--with-libunbound-only],[do not bui fi ]) if test $ALLTARGET = "alltargets"; then - if test $USE_NSS = "yes"; then - AC_MSG_ERROR([--with-nss can only be used in combination with --with-libunbound-only.]) + if test $USE_NSS = "yes"; then + AC_MSG_ERROR([--with-nss can only be used in combination with --with-libunbound-only.]) fi if test $USE_NETTLE = "yes"; then - AC_MSG_ERROR([--with-nettle can only be used in combination with --with-libunbound-only.]) + AC_MSG_ERROR([--with-nettle can only be used in combination with --with-libunbound-only.]) fi fi @@ -2003,7 +2003,7 @@ ACX_STRIP_EXT_FLAGS if test -n "$LATE_LDFLAGS"; then LDFLAGS="$LATE_LDFLAGS $LDFLAGS" fi -# remove start spaces +# remove start spaces LDFLAGS=`echo "$LDFLAGS"|sed -e 's/^ *//'` LIBS=`echo "$LIBS"|sed -e 's/^ *//'` diff --git a/daemon/remote.c b/daemon/remote.c index 309d46ae9..08c503839 100644 --- a/daemon/remote.c +++ b/daemon/remote.c @@ -4,22 +4,22 @@ * Copyright (c) 2008, NLnet Labs. All rights reserved. * * This software is open source. - * + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: - * + * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. - * + * * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. - * + * * Neither the name of the NLNET LABS nor the names of its contributors may * be used to endorse or promote products derived from this software without * specific prior written permission. - * + * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR @@ -38,7 +38,7 @@ * * This file contains the remote control functionality for the daemon. * The remote control can be performed using either the commandline - * unbound-control tool, or a TLS capable web browser. + * unbound-control tool, or a TLS capable web browser. * The channel is secured using TLSv1, and certificates. * Both the server and the client(control tool) have their own keys. */ @@ -108,7 +108,7 @@ /** subtract timers and the values do not overflow or become negative */ static void -timeval_subtract(struct timeval* d, const struct timeval* end, +timeval_subtract(struct timeval* d, const struct timeval* end, const struct timeval* start) { #ifndef S_SPLINT_S @@ -201,7 +201,7 @@ remote_setup_ctx(struct daemon_remote* rc, struct config_file* cfg) struct daemon_remote* daemon_remote_create(struct config_file* cfg) { - struct daemon_remote* rc = (struct daemon_remote*)calloc(1, + struct daemon_remote* rc = (struct daemon_remote*)calloc(1, sizeof(*rc)); if(!rc) { log_err("out of memory in daemon_remote_create"); @@ -410,7 +410,7 @@ accept_open(struct daemon_remote* rc, int fd) n->next = rc->accept_list; rc->accept_list = n; /* open commpt */ - n->com = comm_point_create_raw(rc->worker->base, fd, 0, + n->com = comm_point_create_raw(rc->worker->base, fd, 0, &remote_accept_callback, rc); if(!n->com) return 0; @@ -419,7 +419,7 @@ accept_open(struct daemon_remote* rc, int fd) return 1; } -int daemon_remote_open_accept(struct daemon_remote* rc, +int daemon_remote_open_accept(struct daemon_remote* rc, struct listen_port* ports, struct worker* worker) { struct listen_port* p; @@ -437,7 +437,7 @@ void daemon_remote_stop_accept(struct daemon_remote* rc) { struct listen_list* p; for(p=rc->accept_list; p; p=p->next) { - comm_point_stop_listening(p->com); + comm_point_stop_listening(p->com); } } @@ -445,11 +445,11 @@ void daemon_remote_start_accept(struct daemon_remote* rc) { struct listen_list* p; for(p=rc->accept_list; p; p=p->next) { - comm_point_start_listening(p->com, -1, -1); + comm_point_start_listening(p->com, -1, -1); } } -int remote_accept_callback(struct comm_point* c, void* arg, int err, +int remote_accept_callback(struct comm_point* c, void* arg, int err, struct comm_reply* ATTR_UNUSED(rep)) { struct daemon_remote* rc = (struct daemon_remote*)arg; @@ -481,7 +481,7 @@ int remote_accept_callback(struct comm_point* c, void* arg, int err, } n->fd = newfd; /* start in reading state */ - n->c = comm_point_create_raw(rc->worker->base, newfd, 0, + n->c = comm_point_create_raw(rc->worker->base, newfd, 0, &remote_control_callback, n); if(!n->c) { log_err("out of memory"); @@ -521,7 +521,7 @@ int remote_accept_callback(struct comm_point* c, void* arg, int err, rc->busy_list = n; rc->active ++; - /* perform the first nonblocking read already, for windows, + /* perform the first nonblocking read already, for windows, * so it can return wouldblock. could be faster too. */ (void)remote_control_callback(n->c, n, NETEVENT_NOERROR, NULL); return 0; @@ -558,7 +558,7 @@ int ssl_print_text(RES* res, const char* text) { int r; - if(!res) + if(!res) return 0; if(res->ssl) { ERR_clear_error(); @@ -660,7 +660,7 @@ static char* skipwhite(char* str) { /* EOS \0 is not a space */ - while( isspace((unsigned char)*str) ) + while( isspace((unsigned char)*str) ) str++; return str; } @@ -708,20 +708,20 @@ static int print_stats(RES* ssl, const char* nm, struct ub_stats_info* s) { struct timeval sumwait, avg; - if(!ssl_printf(ssl, "%s.num.queries"SQ"%lu\n", nm, + if(!ssl_printf(ssl, "%s.num.queries"SQ"%lu\n", nm, (unsigned long)s->svr.num_queries)) return 0; if(!ssl_printf(ssl, "%s.num.queries_ip_ratelimited"SQ"%lu\n", nm, (unsigned long)s->svr.num_queries_ip_ratelimited)) return 0; - if(!ssl_printf(ssl, "%s.num.cachehits"SQ"%lu\n", nm, - (unsigned long)(s->svr.num_queries + if(!ssl_printf(ssl, "%s.num.cachehits"SQ"%lu\n", nm, + (unsigned long)(s->svr.num_queries - s->svr.num_queries_missed_cache))) return 0; - if(!ssl_printf(ssl, "%s.num.cachemiss"SQ"%lu\n", nm, + if(!ssl_printf(ssl, "%s.num.cachemiss"SQ"%lu\n", nm, (unsigned long)s->svr.num_queries_missed_cache)) return 0; - if(!ssl_printf(ssl, "%s.num.prefetch"SQ"%lu\n", nm, + if(!ssl_printf(ssl, "%s.num.prefetch"SQ"%lu\n", nm, (unsigned long)s->svr.num_queries_prefetch)) return 0; if(!ssl_printf(ssl, "%s.num.expired"SQ"%lu\n", nm, (unsigned long)s->svr.ans_expired)) return 0; - if(!ssl_printf(ssl, "%s.num.recursivereplies"SQ"%lu\n", nm, + if(!ssl_printf(ssl, "%s.num.recursivereplies"SQ"%lu\n", nm, (unsigned long)s->mesh_replies_sent)) return 0; #ifdef USE_DNSCRYPT if(!ssl_printf(ssl, "%s.num.dnscrypt.crypted"SQ"%lu\n", nm, @@ -755,7 +755,7 @@ print_stats(RES* ssl, const char* nm, struct ub_stats_info* s) timeval_divide(&avg, &sumwait, s->mesh_replies_sent); if(!ssl_printf(ssl, "%s.recursion.time.avg"SQ ARG_LL "d.%6.6d\n", nm, (long long)avg.tv_sec, (int)avg.tv_usec)) return 0; - if(!ssl_printf(ssl, "%s.recursion.time.median"SQ"%g\n", nm, + if(!ssl_printf(ssl, "%s.recursion.time.median"SQ"%g\n", nm, s->mesh_time_median)) return 0; if(!ssl_printf(ssl, "%s.tcpusage"SQ"%lu\n", nm, (unsigned long)s->svr.tcp_accept_usage)) return 0; @@ -780,7 +780,7 @@ print_longnum(RES* ssl, const char* desc, size_t x) /* more than a Gb */ size_t front = x / (size_t)1000000; size_t back = x % (size_t)1000000; - return ssl_printf(ssl, "%s%u%6.6u\n", desc, + return ssl_printf(ssl, "%s%u%6.6u\n", desc, (unsigned)front, (unsigned)back); } else { return ssl_printf(ssl, "%s%lu\n", desc, (unsigned long)x); @@ -880,11 +880,11 @@ print_uptime(RES* ssl, struct worker* worker, int reset) timeval_subtract(&dt, &now, &worker->daemon->time_last_stat); if(reset) worker->daemon->time_last_stat = now; - if(!ssl_printf(ssl, "time.now"SQ ARG_LL "d.%6.6d\n", + if(!ssl_printf(ssl, "time.now"SQ ARG_LL "d.%6.6d\n", (long long)now.tv_sec, (unsigned)now.tv_usec)) return 0; - if(!ssl_printf(ssl, "time.up"SQ ARG_LL "d.%6.6d\n", + if(!ssl_printf(ssl, "time.up"SQ ARG_LL "d.%6.6d\n", (long long)up.tv_sec, (unsigned)up.tv_usec)) return 0; - if(!ssl_printf(ssl, "time.elapsed"SQ ARG_LL "d.%6.6d\n", + if(!ssl_printf(ssl, "time.elapsed"SQ ARG_LL "d.%6.6d\n", (long long)dt.tv_sec, (unsigned)dt.tv_usec)) return 0; return 1; } @@ -902,7 +902,7 @@ print_hist(RES* ssl, struct ub_stats_info* s) } timehist_import(hist, s->svr.hist, NUM_BUCKETS_HIST); for(i=0; inum; i++) { - if(!ssl_printf(ssl, + if(!ssl_printf(ssl, "histogram.%6.6d.%6.6d.to.%6.6d.%6.6d=%lu\n", (int)hist->buckets[i].lower.tv_sec, (int)hist->buckets[i].lower.tv_usec, @@ -945,11 +945,11 @@ print_ext(RES* ssl, struct ub_stats_info* s, int inhibit_zero) } else { snprintf(nm, sizeof(nm), "TYPE%d", i); } - if(!ssl_printf(ssl, "num.query.type.%s"SQ"%lu\n", + if(!ssl_printf(ssl, "num.query.type.%s"SQ"%lu\n", nm, (unsigned long)s->svr.qtype[i])) return 0; } if(!inhibit_zero || s->svr.qtype_big) { - if(!ssl_printf(ssl, "num.query.type.other"SQ"%lu\n", + if(!ssl_printf(ssl, "num.query.type.other"SQ"%lu\n", (unsigned long)s->svr.qtype_big)) return 0; } /* CLASS */ @@ -962,11 +962,11 @@ print_ext(RES* ssl, struct ub_stats_info* s, int inhibit_zero) } else { snprintf(nm, sizeof(nm), "CLASS%d", i); } - if(!ssl_printf(ssl, "num.query.class.%s"SQ"%lu\n", + if(!ssl_printf(ssl, "num.query.class.%s"SQ"%lu\n", nm, (unsigned long)s->svr.qclass[i])) return 0; } if(!inhibit_zero || s->svr.qclass_big) { - if(!ssl_printf(ssl, "num.query.class.other"SQ"%lu\n", + if(!ssl_printf(ssl, "num.query.class.other"SQ"%lu\n", (unsigned long)s->svr.qclass_big)) return 0; } /* OPCODE */ @@ -979,44 +979,44 @@ print_ext(RES* ssl, struct ub_stats_info* s, int inhibit_zero) } else { snprintf(nm, sizeof(nm), "OPCODE%d", i); } - if(!ssl_printf(ssl, "num.query.opcode.%s"SQ"%lu\n", + if(!ssl_printf(ssl, "num.query.opcode.%s"SQ"%lu\n", nm, (unsigned long)s->svr.qopcode[i])) return 0; } /* transport */ - if(!ssl_printf(ssl, "num.query.tcp"SQ"%lu\n", + if(!ssl_printf(ssl, "num.query.tcp"SQ"%lu\n", (unsigned long)s->svr.qtcp)) return 0; - if(!ssl_printf(ssl, "num.query.tcpout"SQ"%lu\n", + if(!ssl_printf(ssl, "num.query.tcpout"SQ"%lu\n", (unsigned long)s->svr.qtcp_outgoing)) return 0; if(!ssl_printf(ssl, "num.query.udpout"SQ"%lu\n", (unsigned long)s->svr.qudp_outgoing)) return 0; - if(!ssl_printf(ssl, "num.query.tls"SQ"%lu\n", + if(!ssl_printf(ssl, "num.query.tls"SQ"%lu\n", (unsigned long)s->svr.qtls)) return 0; - if(!ssl_printf(ssl, "num.query.tls.resume"SQ"%lu\n", + if(!ssl_printf(ssl, "num.query.tls.resume"SQ"%lu\n", (unsigned long)s->svr.qtls_resume)) return 0; - if(!ssl_printf(ssl, "num.query.ipv6"SQ"%lu\n", + if(!ssl_printf(ssl, "num.query.ipv6"SQ"%lu\n", (unsigned long)s->svr.qipv6)) return 0; if(!ssl_printf(ssl, "num.query.https"SQ"%lu\n", (unsigned long)s->svr.qhttps)) return 0; /* flags */ - if(!ssl_printf(ssl, "num.query.flags.QR"SQ"%lu\n", + if(!ssl_printf(ssl, "num.query.flags.QR"SQ"%lu\n", (unsigned long)s->svr.qbit_QR)) return 0; - if(!ssl_printf(ssl, "num.query.flags.AA"SQ"%lu\n", + if(!ssl_printf(ssl, "num.query.flags.AA"SQ"%lu\n", (unsigned long)s->svr.qbit_AA)) return 0; - if(!ssl_printf(ssl, "num.query.flags.TC"SQ"%lu\n", + if(!ssl_printf(ssl, "num.query.flags.TC"SQ"%lu\n", (unsigned long)s->svr.qbit_TC)) return 0; - if(!ssl_printf(ssl, "num.query.flags.RD"SQ"%lu\n", + if(!ssl_printf(ssl, "num.query.flags.RD"SQ"%lu\n", (unsigned long)s->svr.qbit_RD)) return 0; - if(!ssl_printf(ssl, "num.query.flags.RA"SQ"%lu\n", + if(!ssl_printf(ssl, "num.query.flags.RA"SQ"%lu\n", (unsigned long)s->svr.qbit_RA)) return 0; - if(!ssl_printf(ssl, "num.query.flags.Z"SQ"%lu\n", + if(!ssl_printf(ssl, "num.query.flags.Z"SQ"%lu\n", (unsigned long)s->svr.qbit_Z)) return 0; - if(!ssl_printf(ssl, "num.query.flags.AD"SQ"%lu\n", + if(!ssl_printf(ssl, "num.query.flags.AD"SQ"%lu\n", (unsigned long)s->svr.qbit_AD)) return 0; - if(!ssl_printf(ssl, "num.query.flags.CD"SQ"%lu\n", + if(!ssl_printf(ssl, "num.query.flags.CD"SQ"%lu\n", (unsigned long)s->svr.qbit_CD)) return 0; - if(!ssl_printf(ssl, "num.query.edns.present"SQ"%lu\n", + if(!ssl_printf(ssl, "num.query.edns.present"SQ"%lu\n", (unsigned long)s->svr.qEDNS)) return 0; - if(!ssl_printf(ssl, "num.query.edns.DO"SQ"%lu\n", + if(!ssl_printf(ssl, "num.query.edns.DO"SQ"%lu\n", (unsigned long)s->svr.qEDNS_DO)) return 0; /* RCODE */ @@ -1030,31 +1030,31 @@ print_ext(RES* ssl, struct ub_stats_info* s, int inhibit_zero) } else { snprintf(nm, sizeof(nm), "RCODE%d", i); } - if(!ssl_printf(ssl, "num.answer.rcode.%s"SQ"%lu\n", + if(!ssl_printf(ssl, "num.answer.rcode.%s"SQ"%lu\n", nm, (unsigned long)s->svr.ans_rcode[i])) return 0; } if(!inhibit_zero || s->svr.ans_rcode_nodata) { - if(!ssl_printf(ssl, "num.answer.rcode.nodata"SQ"%lu\n", + if(!ssl_printf(ssl, "num.answer.rcode.nodata"SQ"%lu\n", (unsigned long)s->svr.ans_rcode_nodata)) return 0; } /* iteration */ - if(!ssl_printf(ssl, "num.query.ratelimited"SQ"%lu\n", + if(!ssl_printf(ssl, "num.query.ratelimited"SQ"%lu\n", (unsigned long)s->svr.queries_ratelimited)) return 0; /* validation */ - if(!ssl_printf(ssl, "num.answer.secure"SQ"%lu\n", + if(!ssl_printf(ssl, "num.answer.secure"SQ"%lu\n", (unsigned long)s->svr.ans_secure)) return 0; - if(!ssl_printf(ssl, "num.answer.bogus"SQ"%lu\n", + if(!ssl_printf(ssl, "num.answer.bogus"SQ"%lu\n", (unsigned long)s->svr.ans_bogus)) return 0; - if(!ssl_printf(ssl, "num.rrset.bogus"SQ"%lu\n", + if(!ssl_printf(ssl, "num.rrset.bogus"SQ"%lu\n", (unsigned long)s->svr.rrset_bogus)) return 0; - if(!ssl_printf(ssl, "num.query.aggressive.NOERROR"SQ"%lu\n", + if(!ssl_printf(ssl, "num.query.aggressive.NOERROR"SQ"%lu\n", (unsigned long)s->svr.num_neg_cache_noerror)) return 0; - if(!ssl_printf(ssl, "num.query.aggressive.NXDOMAIN"SQ"%lu\n", + if(!ssl_printf(ssl, "num.query.aggressive.NXDOMAIN"SQ"%lu\n", (unsigned long)s->svr.num_neg_cache_nxdomain)) return 0; /* threat detection */ - if(!ssl_printf(ssl, "unwanted.queries"SQ"%lu\n", + if(!ssl_printf(ssl, "unwanted.queries"SQ"%lu\n", (unsigned long)s->svr.unwanted_queries)) return 0; - if(!ssl_printf(ssl, "unwanted.replies"SQ"%lu\n", + if(!ssl_printf(ssl, "unwanted.replies"SQ"%lu\n", (unsigned long)s->svr.unwanted_replies)) return 0; /* cache counts */ if(!ssl_printf(ssl, "msg.cache.count"SQ"%u\n", @@ -1124,7 +1124,7 @@ do_stats(RES* ssl, struct worker* worker, int reset) } /* print the thread statistics */ total.mesh_time_median /= (double)daemon->num; - if(!print_stats(ssl, "total", &total)) + if(!print_stats(ssl, "total", &total)) return; if(!print_uptime(ssl, worker, reset)) return; @@ -1213,7 +1213,7 @@ perform_zone_add(RES* ssl, struct local_zones* zones, char* arg) return 0; } lock_rw_wrlock(&zones->lock); - if((z=local_zones_find(zones, nm, nmlen, + if((z=local_zones_find(zones, nm, nmlen, nmlabs, LDNS_RR_CLASS_IN))) { /* already present in tree */ lock_rw_wrlock(&z->lock); @@ -1223,7 +1223,7 @@ perform_zone_add(RES* ssl, struct local_zones* zones, char* arg) lock_rw_unlock(&zones->lock); return 1; } - if(!local_zones_add_zone(zones, nm, nmlen, + if(!local_zones_add_zone(zones, nm, nmlen, nmlabs, LDNS_RR_CLASS_IN, t)) { lock_rw_unlock(&zones->lock); ssl_printf(ssl, "error out of memory\n"); @@ -1272,7 +1272,7 @@ perform_zone_remove(RES* ssl, struct local_zones* zones, char* arg) if(!parse_arg_name(ssl, arg, &nm, &nmlen, &nmlabs)) return 0; lock_rw_wrlock(&zones->lock); - if((z=local_zones_find(zones, nm, nmlen, + if((z=local_zones_find(zones, nm, nmlen, nmlabs, LDNS_RR_CLASS_IN))) { /* present in tree */ local_zones_del_zone(zones, z); @@ -1614,7 +1614,7 @@ do_flush_type(RES* ssl, struct worker* worker, char* arg) return; t = sldns_get_rr_type_by_name(arg2); do_cache_remove(worker, nm, nmlen, t, LDNS_RR_CLASS_IN); - + free(nm); send_ok(ssl); } @@ -1724,7 +1724,7 @@ zone_del_rrset(struct lruhash_entry* e, void* arg) struct del_info* inf = (struct del_info*)arg; struct ub_packed_rrset_key* k = (struct ub_packed_rrset_key*)e->key; if(dname_subdomain_c(k->rk.dname, inf->name)) { - struct packed_rrset_data* d = + struct packed_rrset_data* d = (struct packed_rrset_data*)e->data; if(d->ttl > inf->expired) { d->ttl = inf->expired; @@ -1788,21 +1788,21 @@ do_flush_zone(RES* ssl, struct worker* worker, char* arg) inf.num_rrsets = 0; inf.num_msgs = 0; inf.num_keys = 0; - slabhash_traverse(&worker->env.rrset_cache->table, 1, + slabhash_traverse(&worker->env.rrset_cache->table, 1, &zone_del_rrset, &inf); slabhash_traverse(worker->env.msg_cache, 1, &zone_del_msg, &inf); /* and validator cache */ if(worker->env.key_cache) { - slabhash_traverse(worker->env.key_cache->slab, 1, + slabhash_traverse(worker->env.key_cache->slab, 1, &zone_del_kcache, &inf); } free(nm); (void)ssl_printf(ssl, "ok removed %lu rrsets, %lu messages " - "and %lu key entries\n", (unsigned long)inf.num_rrsets, + "and %lu key entries\n", (unsigned long)inf.num_rrsets, (unsigned long)inf.num_msgs, (unsigned long)inf.num_keys); } @@ -1857,19 +1857,19 @@ do_flush_bogus(RES* ssl, struct worker* worker) inf.num_rrsets = 0; inf.num_msgs = 0; inf.num_keys = 0; - slabhash_traverse(&worker->env.rrset_cache->table, 1, + slabhash_traverse(&worker->env.rrset_cache->table, 1, &bogus_del_rrset, &inf); slabhash_traverse(worker->env.msg_cache, 1, &bogus_del_msg, &inf); /* and validator cache */ if(worker->env.key_cache) { - slabhash_traverse(worker->env.key_cache->slab, 1, + slabhash_traverse(worker->env.key_cache->slab, 1, &bogus_del_kcache, &inf); } (void)ssl_printf(ssl, "ok removed %lu rrsets, %lu messages " - "and %lu key entries\n", (unsigned long)inf.num_rrsets, + "and %lu key entries\n", (unsigned long)inf.num_rrsets, (unsigned long)inf.num_msgs, (unsigned long)inf.num_keys); } @@ -1932,19 +1932,19 @@ do_flush_negative(RES* ssl, struct worker* worker) inf.num_rrsets = 0; inf.num_msgs = 0; inf.num_keys = 0; - slabhash_traverse(&worker->env.rrset_cache->table, 1, + slabhash_traverse(&worker->env.rrset_cache->table, 1, &negative_del_rrset, &inf); slabhash_traverse(worker->env.msg_cache, 1, &negative_del_msg, &inf); /* and validator cache */ if(worker->env.key_cache) { - slabhash_traverse(worker->env.key_cache->slab, 1, + slabhash_traverse(worker->env.key_cache->slab, 1, &negative_del_kcache, &inf); } (void)ssl_printf(ssl, "ok removed %lu rrsets, %lu messages " - "and %lu key entries\n", (unsigned long)inf.num_rrsets, + "and %lu key entries\n", (unsigned long)inf.num_rrsets, (unsigned long)inf.num_msgs, (unsigned long)inf.num_keys); } @@ -1969,7 +1969,7 @@ do_flush_name(RES* ssl, struct worker* w, char* arg) do_cache_remove(w, nm, nmlen, LDNS_RR_TYPE_NAPTR, LDNS_RR_CLASS_IN); do_cache_remove(w, nm, nmlen, LDNS_RR_TYPE_SVCB, LDNS_RR_CLASS_IN); do_cache_remove(w, nm, nmlen, LDNS_RR_TYPE_HTTPS, LDNS_RR_CLASS_IN); - + free(nm); send_ok(ssl); } @@ -2339,7 +2339,7 @@ do_status(RES* ssl, struct worker* worker) uptime = (time_t)time(NULL) - (time_t)worker->daemon->time_boot.tv_sec; if(!ssl_printf(ssl, "uptime: " ARG_LL "d seconds\n", (long long)uptime)) return; - if(!ssl_printf(ssl, "options:%s%s%s%s\n" , + if(!ssl_printf(ssl, "options:%s%s%s%s\n" , (worker->daemon->reuseport?" reuseport":""), (worker->daemon->rc->accept_list?" control":""), (worker->daemon->rc->accept_list && worker->daemon->rc->use_cert?"(ssl)":""), @@ -2353,7 +2353,7 @@ do_status(RES* ssl, struct worker* worker) /** get age for the mesh state */ static void -get_mesh_age(struct mesh_state* m, char* buf, size_t len, +get_mesh_age(struct mesh_state* m, char* buf, size_t len, struct module_env* env) { if(m->reply_list) { @@ -2372,7 +2372,7 @@ get_mesh_age(struct mesh_state* m, char* buf, size_t len, /** get status of a mesh state */ static void -get_mesh_status(struct mesh_area* mesh, struct mesh_state* m, +get_mesh_status(struct mesh_area* mesh, struct mesh_state* m, char* buf, size_t len) { enum module_ext_state s = m->s.ext_state[m->s.curmod]; @@ -2394,7 +2394,7 @@ get_mesh_status(struct mesh_area* mesh, struct mesh_state* m, snprintf(buf, len, " "); l = strlen(buf); buf += l; len -= l; - addr_to_str(&e->qsent->addr, e->qsent->addrlen, + addr_to_str(&e->qsent->addr, e->qsent->addrlen, buf, len); l = strlen(buf); buf += l; len -= l; @@ -2447,7 +2447,7 @@ do_dump_requestlist(RES* ssl, struct worker* worker) dname_str(m->s.qinfo.qname, buf); get_mesh_age(m, timebuf, sizeof(timebuf), &worker->env); get_mesh_status(mesh, m, statbuf, sizeof(statbuf)); - if(!ssl_printf(ssl, "%3d %4s %2s %s %s %s\n", + if(!ssl_printf(ssl, "%3d %4s %2s %s %s %s\n", num, (t?t:"TYPE??"), (c?c:"CLASS??"), buf, timebuf, statbuf)) { free(t); @@ -2637,7 +2637,7 @@ do_auth_zone_transfer(RES* ssl, struct worker* worker, char* arg) free(nm); send_ok(ssl); } - + /** do the set_option command */ static void do_set_option(RES* ssl, struct worker* worker, char* arg) @@ -2775,7 +2775,7 @@ do_list_local_zones(RES* ssl, struct local_zones* zones) RBTREE_FOR(z, struct local_zone*, &zones->ztree) { lock_rw_rdlock(&z->lock); dname_str(z->name, buf); - if(!ssl_printf(ssl, "%s %s\n", buf, + if(!ssl_printf(ssl, "%s %s\n", buf, local_zone_type2str(z->type))) { /* failure to print */ lock_rw_unlock(&z->lock); @@ -3004,7 +3004,7 @@ static void distribute_cmd(struct daemon_remote* rc, RES* ssl, char* cmd) { int i; - if(!cmd || !ssl) + if(!cmd || !ssl) return; /* skip i=0 which is me */ for(i=1; iworker->daemon->num; i++) { @@ -3027,7 +3027,7 @@ cmdcmp(char* p, const char* cmd, size_t len) /** execute a remote control command */ static void -execute_cmd(struct daemon_remote* rc, RES* ssl, char* cmd, +execute_cmd(struct daemon_remote* rc, RES* ssl, char* cmd, struct worker* worker) { char* p = skipwhite(cmd); @@ -3211,7 +3211,7 @@ execute_cmd(struct daemon_remote* rc, RES* ssl, char* cmd, } } -void +void daemon_remote_exec(struct worker* worker) { /* read the cmd string */ @@ -3320,7 +3320,7 @@ remote_handshake_later(struct daemon_remote* rc, struct rc_state* s, return 0; } -int remote_control_callback(struct comm_point* c, void* arg, int err, +int remote_control_callback(struct comm_point* c, void* arg, int err, struct comm_reply* ATTR_UNUSED(rep)) { RES res; @@ -3328,7 +3328,7 @@ int remote_control_callback(struct comm_point* c, void* arg, int err, struct daemon_remote* rc = s->rc; int r; if(err != NETEVENT_NOERROR) { - if(err==NETEVENT_TIMEOUT) + if(err==NETEVENT_TIMEOUT) log_err("remote control timed out"); clean_point(rc, s); return 0; diff --git a/daemon/stats.c b/daemon/stats.c index c00c16be3..4c7fcbe5a 100644 --- a/daemon/stats.c +++ b/daemon/stats.c @@ -4,22 +4,22 @@ * Copyright (c) 2007, NLnet Labs. All rights reserved. * * This software is open source. - * + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: - * + * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. - * + * * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. - * + * * Neither the name of the NLNET LABS nor the names of its contributors may * be used to endorse or promote products derived from this software without * specific prior written permission. - * + * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR @@ -116,8 +116,8 @@ void server_stats_log(struct ub_server_stats* stats, struct worker* worker, log_info("server stats for thread %d: %u queries, " "%u answers from cache, %u recursions, %u prefetch, %u rejected by " "ip ratelimiting", - threadnum, (unsigned)stats->num_queries, - (unsigned)(stats->num_queries - + threadnum, (unsigned)stats->num_queries, + (unsigned)(stats->num_queries - stats->num_queries_missed_cache), (unsigned)stats->num_queries_missed_cache, (unsigned)stats->num_queries_prefetch, @@ -279,7 +279,7 @@ server_stats_compile(struct worker* worker, struct ub_stats_info* s, int reset) s->svr.ans_rcode[i] += (long long)worker->env.mesh->ans_rcode[i]; for(i=0; isvr.rpz_action[i] += (long long)worker->env.mesh->rpz_action[i]; - timehist_export(worker->env.mesh->histogram, s->svr.hist, + timehist_export(worker->env.mesh->histogram, s->svr.hist, NUM_BUCKETS_HIST); /* values from outside network */ s->svr.unwanted_replies = (long long)worker->back->unwanted_replies; @@ -421,7 +421,7 @@ void server_stats_reply(struct worker* worker, int reset) struct ub_stats_info s; server_stats_compile(worker, &s, reset); verbose(VERB_ALGO, "write stats replymsg"); - if(!tube_write_msg(worker->daemon->workers[0]->cmd, + if(!tube_write_msg(worker->daemon->workers[0]->cmd, (uint8_t*)&s, sizeof(s), 0)) fatal_exit("could not write stat values over cmd channel"); } @@ -516,7 +516,7 @@ void server_stats_insquery(struct ub_server_stats* stats, struct comm_point* c, if(c->ssl != NULL) { stats->qtls++; #ifdef HAVE_SSL - if(SSL_session_reused(c->ssl)) + if(SSL_session_reused(c->ssl)) stats->qtls_resume++; #endif if(c->type == comm_http) diff --git a/daemon/worker.c b/daemon/worker.c index 99dcf9940..a4d6b8247 100644 --- a/daemon/worker.c +++ b/daemon/worker.c @@ -4,22 +4,22 @@ * Copyright (c) 2007, NLnet Labs. All rights reserved. * * This software is open source. - * + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: - * + * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. - * + * * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. - * + * * Neither the name of the NLNET LABS nor the names of its contributors may * be used to endorse or promote products derived from this software without * specific prior written permission. - * + * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR @@ -112,7 +112,7 @@ /** Report on memory usage by this thread and global */ static void -worker_mem_report(struct worker* ATTR_UNUSED(worker), +worker_mem_report(struct worker* ATTR_UNUSED(worker), struct serviced_query* ATTR_UNUSED(cur_serv)) { #ifdef UNBOUND_ALLOC_STATS @@ -125,7 +125,7 @@ worker_mem_report(struct worker* ATTR_UNUSED(worker), #ifdef CLIENT_SUBNET size_t subnet = 0; #endif /* CLIENT_SUBNET */ - if(verbosity < VERB_ALGO) + if(verbosity < VERB_ALGO) return; front = listen_get_mem(worker->front); back = outnet_get_mem(worker->back); @@ -154,10 +154,10 @@ worker_mem_report(struct worker* ATTR_UNUSED(worker), (&worker->env, i); } me = sizeof(*worker) + sizeof(*worker->base) + sizeof(*worker->comsig) - + comm_point_get_mem(worker->cmd_com) - + sizeof(worker->rndstate) - + regional_get_mem(worker->scratchpad) - + sizeof(*worker->env.scratch_buffer) + + comm_point_get_mem(worker->cmd_com) + + sizeof(worker->rndstate) + + regional_get_mem(worker->scratchpad) + + sizeof(*worker->env.scratch_buffer) + sldns_buffer_capacity(worker->env.scratch_buffer) + forwards_get_mem(worker->env.fwds) + hints_get_mem(worker->env.hints); @@ -172,7 +172,7 @@ worker_mem_report(struct worker* ATTR_UNUSED(worker), log_info("Memory conditions: %u front=%u back=%u mesh=%u msg=%u " "rrset=%u infra=%u iter=%u val=%u subnet=%u anchors=%u " "alloccache=%u globalalloccache=%u me=%u", - (unsigned)total, (unsigned)front, (unsigned)back, + (unsigned)total, (unsigned)front, (unsigned)back, (unsigned)mesh, (unsigned)msg, (unsigned)rrset, (unsigned)infra, (unsigned)iter, (unsigned)val, (unsigned)subnet, (unsigned)anch, (unsigned)ac, @@ -181,13 +181,13 @@ worker_mem_report(struct worker* ATTR_UNUSED(worker), log_info("Memory conditions: %u front=%u back=%u mesh=%u msg=%u " "rrset=%u infra=%u iter=%u val=%u anchors=%u " "alloccache=%u globalalloccache=%u me=%u", - (unsigned)total, (unsigned)front, (unsigned)back, - (unsigned)mesh, (unsigned)msg, (unsigned)rrset, + (unsigned)total, (unsigned)front, (unsigned)back, + (unsigned)mesh, (unsigned)msg, (unsigned)rrset, (unsigned)infra, (unsigned)iter, (unsigned)val, (unsigned)anch, (unsigned)ac, (unsigned)superac, (unsigned)me); #endif /* CLIENT_SUBNET */ log_info("Total heap memory estimate: %u total-alloc: %u " - "total-free: %u", (unsigned)total, + "total-free: %u", (unsigned)total, (unsigned)unbound_mem_alloc, (unsigned)unbound_mem_freed); #else /* no UNBOUND_ALLOC_STATS */ size_t val = 0; @@ -227,7 +227,7 @@ worker_mem_report(struct worker* ATTR_UNUSED(worker), #endif /* UNBOUND_ALLOC_STATS */ } -void +void worker_send_cmd(struct worker* worker, enum worker_commands cmd) { uint32_t c = (uint32_t)htonl(cmd); @@ -236,8 +236,8 @@ worker_send_cmd(struct worker* worker, enum worker_commands cmd) } } -int -worker_handle_service_reply(struct comm_point* c, void* arg, int error, +int +worker_handle_service_reply(struct comm_point* c, void* arg, int error, struct comm_reply* reply_info) { struct outbound_entry* e = (struct outbound_entry*)arg; @@ -252,13 +252,13 @@ worker_handle_service_reply(struct comm_point* c, void* arg, int error, } /* sanity check. */ if(!LDNS_QR_WIRE(sldns_buffer_begin(c->buffer)) - || LDNS_OPCODE_WIRE(sldns_buffer_begin(c->buffer)) != + || LDNS_OPCODE_WIRE(sldns_buffer_begin(c->buffer)) != LDNS_PACKET_QUERY || LDNS_QDCOUNT(sldns_buffer_begin(c->buffer)) > 1) { /* error becomes timeout for the module as if this reply * never arrived. */ verbose(VERB_ALGO, "worker: bad reply handled as timeout"); - mesh_report_reply(worker->env.mesh, e, reply_info, + mesh_report_reply(worker->env.mesh, e, reply_info, NETEVENT_TIMEOUT); worker_mem_report(worker, sq); return 0; @@ -293,14 +293,14 @@ worker_err_ratelimit(struct worker* worker, int err) * @param worker: parameters for checking. * @return error code, 0 OK, or -1 discard. */ -static int +static int worker_check_request(sldns_buffer* pkt, struct worker* worker) { if(sldns_buffer_limit(pkt) < LDNS_HEADER_SIZE) { verbose(VERB_QUERY, "request too short, discarded"); return -1; } - if(sldns_buffer_limit(pkt) > NORMAL_UDP_SIZE && + if(sldns_buffer_limit(pkt) > NORMAL_UDP_SIZE && worker->daemon->cfg->harden_large_queries) { verbose(VERB_QUERY, "request too large, discarded"); return -1; @@ -316,36 +316,36 @@ worker_check_request(sldns_buffer* pkt, struct worker* worker) } if(LDNS_OPCODE_WIRE(sldns_buffer_begin(pkt)) != LDNS_PACKET_QUERY && LDNS_OPCODE_WIRE(sldns_buffer_begin(pkt)) != LDNS_PACKET_NOTIFY) { - verbose(VERB_QUERY, "request unknown opcode %d", + verbose(VERB_QUERY, "request unknown opcode %d", LDNS_OPCODE_WIRE(sldns_buffer_begin(pkt))); return worker_err_ratelimit(worker, LDNS_RCODE_NOTIMPL); } if(LDNS_QDCOUNT(sldns_buffer_begin(pkt)) != 1) { - verbose(VERB_QUERY, "request wrong nr qd=%d", + verbose(VERB_QUERY, "request wrong nr qd=%d", LDNS_QDCOUNT(sldns_buffer_begin(pkt))); return worker_err_ratelimit(worker, LDNS_RCODE_FORMERR); } - if(LDNS_ANCOUNT(sldns_buffer_begin(pkt)) != 0 && + if(LDNS_ANCOUNT(sldns_buffer_begin(pkt)) != 0 && (LDNS_ANCOUNT(sldns_buffer_begin(pkt)) != 1 || LDNS_OPCODE_WIRE(sldns_buffer_begin(pkt)) != LDNS_PACKET_NOTIFY)) { - verbose(VERB_QUERY, "request wrong nr an=%d", + verbose(VERB_QUERY, "request wrong nr an=%d", LDNS_ANCOUNT(sldns_buffer_begin(pkt))); return worker_err_ratelimit(worker, LDNS_RCODE_FORMERR); } if(LDNS_NSCOUNT(sldns_buffer_begin(pkt)) != 0) { - verbose(VERB_QUERY, "request wrong nr ns=%d", + verbose(VERB_QUERY, "request wrong nr ns=%d", LDNS_NSCOUNT(sldns_buffer_begin(pkt))); return worker_err_ratelimit(worker, LDNS_RCODE_FORMERR); } if(LDNS_ARCOUNT(sldns_buffer_begin(pkt)) > 1) { - verbose(VERB_QUERY, "request wrong nr ar=%d", + verbose(VERB_QUERY, "request wrong nr ar=%d", LDNS_ARCOUNT(sldns_buffer_begin(pkt))); return worker_err_ratelimit(worker, LDNS_RCODE_FORMERR); } return 0; } -void +void worker_handle_control_cmd(struct tube* ATTR_UNUSED(tube), uint8_t* msg, size_t len, int error, void* arg) { @@ -388,7 +388,7 @@ worker_handle_control_cmd(struct tube* ATTR_UNUSED(tube), uint8_t* msg, /** check if a delegation is secure */ static enum sec_status -check_delegation_secure(struct reply_info *rep) +check_delegation_secure(struct reply_info *rep) { /* return smallest security status */ size_t i; @@ -424,10 +424,10 @@ deleg_remove_nonsecure_additional(struct reply_info* rep) s = ((struct packed_rrset_data*)rep->rrsets[i]->entry.data) ->security; if(s != sec_status_secure) { - memmove(rep->rrsets+i, rep->rrsets+i+1, - sizeof(struct ub_packed_rrset_key*)* + memmove(rep->rrsets+i, rep->rrsets+i+1, + sizeof(struct ub_packed_rrset_key*)* (rep->rrset_count - i - 1)); - rep->ar_numrrsets--; + rep->ar_numrrsets--; rep->rrset_count--; i--; } @@ -437,15 +437,15 @@ deleg_remove_nonsecure_additional(struct reply_info* rep) /** answer nonrecursive query from the cache */ static int answer_norec_from_cache(struct worker* worker, struct query_info* qinfo, - uint16_t id, uint16_t flags, struct comm_reply* repinfo, + uint16_t id, uint16_t flags, struct comm_reply* repinfo, struct edns_data* edns) { /* for a nonrecursive query return either: * o an error (servfail; we try to avoid this) * o a delegation (closest we have; this routine tries that) - * o the answer (checked by answer_from_cache) + * o the answer (checked by answer_from_cache) * - * So, grab a delegation from the rrset cache. + * So, grab a delegation from the rrset cache. * Then check if it needs validation, if so, this routine fails, * so that iterator can prime and validator can verify rrsets. */ @@ -457,7 +457,7 @@ answer_norec_from_cache(struct worker* worker, struct query_info* qinfo, struct dns_msg *msg = NULL; struct delegpt *dp; - dp = dns_cache_find_delegation(&worker->env, qinfo->qname, + dp = dns_cache_find_delegation(&worker->env, qinfo->qname, qinfo->qname_len, qinfo->qtype, qinfo->qclass, worker->scratchpad, &msg, timenow, 0, NULL, 0); if(!dp) { /* no delegation, need to reprime */ @@ -470,7 +470,7 @@ answer_norec_from_cache(struct worker* worker, struct query_info* qinfo, if(must_validate) { switch(check_delegation_secure(msg->rep)) { case sec_status_unchecked: - /* some rrsets have not been verified yet, go and + /* some rrsets have not been verified yet, go and * let validator do that */ return 0; case sec_status_bogus: @@ -490,7 +490,7 @@ answer_norec_from_cache(struct worker* worker, struct query_info* qinfo, EDNS_OPT_LIST_APPEND_EDE(&edns->opt_list_out, worker->scratchpad, LDNS_EDE_DNSSEC_BOGUS, ""); } - error_encode(repinfo->c->buffer, LDNS_RCODE_SERVFAIL, + error_encode(repinfo->c->buffer, LDNS_RCODE_SERVFAIL, &msg->qinfo, id, flags, edns); if(worker->stats.extended) { worker->stats.ans_bogus++; @@ -529,7 +529,7 @@ answer_norec_from_cache(struct worker* worker, struct query_info* qinfo, LDNS_RCODE_SERVFAIL, edns, repinfo, worker->scratchpad, worker->env.now_tv)) edns->opt_list_inplace_cb_out = NULL; - error_encode(repinfo->c->buffer, LDNS_RCODE_SERVFAIL, + error_encode(repinfo->c->buffer, LDNS_RCODE_SERVFAIL, &msg->qinfo, id, flags, edns); } if(worker->stats.extended) { @@ -763,7 +763,7 @@ answer_from_cache(struct worker* worker, struct query_info* qinfo, return 1; bail_out: - rrset_array_unlock_touch(worker->env.rrset_cache, + rrset_array_unlock_touch(worker->env.rrset_cache, worker->scratchpad, rep->ref, rep->rrset_count); return 0; } @@ -947,12 +947,12 @@ answer_chaos(struct worker* w, struct query_info* qinfo, struct config_file* cfg = w->env.cfg; if(qinfo->qtype != LDNS_RR_TYPE_ANY && qinfo->qtype != LDNS_RR_TYPE_TXT) return 0; - if(query_dname_compare(qinfo->qname, + if(query_dname_compare(qinfo->qname, (uint8_t*)"\002id\006server") == 0 || - query_dname_compare(qinfo->qname, + query_dname_compare(qinfo->qname, (uint8_t*)"\010hostname\004bind") == 0) { - if(cfg->hide_identity) + if(cfg->hide_identity) return 0; if(cfg->identity==NULL || cfg->identity[0]==0) { char buf[MAXHOSTNAMELEN+1]; @@ -967,12 +967,12 @@ answer_chaos(struct worker* w, struct query_info* qinfo, else chaos_replyonestr(pkt, cfg->identity, edns, w, repinfo); return 1; } - if(query_dname_compare(qinfo->qname, + if(query_dname_compare(qinfo->qname, (uint8_t*)"\007version\006server") == 0 || - query_dname_compare(qinfo->qname, + query_dname_compare(qinfo->qname, (uint8_t*)"\007version\004bind") == 0) { - if(cfg->hide_version) + if(cfg->hide_version) return 0; if(cfg->version==NULL || cfg->version[0]==0) chaos_replyonestr(pkt, PACKAGE_STRING, edns, w, repinfo); @@ -1131,7 +1131,7 @@ deny_refuse(struct comm_point* c, enum acl_access acl, return 1; } LDNS_QR_SET(sldns_buffer_begin(c->buffer)); - LDNS_RCODE_SET(sldns_buffer_begin(c->buffer), + LDNS_RCODE_SET(sldns_buffer_begin(c->buffer), LDNS_RCODE_REFUSED); sldns_buffer_skip(c->buffer, (ssize_t)sizeof(uint16_t)); /* skip qtype */ @@ -1146,7 +1146,7 @@ deny_refuse(struct comm_point* c, enum acl_access acl, /* Skip through the RR records */ if(LDNS_ANCOUNT(sldns_buffer_begin(c->buffer)) != 0 || LDNS_NSCOUNT(sldns_buffer_begin(c->buffer)) != 0) { - if(!skip_pkt_rrs(c->buffer, + if(!skip_pkt_rrs(c->buffer, ((int)LDNS_ANCOUNT(sldns_buffer_begin(c->buffer)))+ ((int)LDNS_NSCOUNT(sldns_buffer_begin(c->buffer))))) { LDNS_RCODE_SET(sldns_buffer_begin(c->buffer), @@ -1416,7 +1416,7 @@ worker_handle_request(struct comm_point* c, void* arg, int error, } sldns_buffer_rewind(c->buffer); LDNS_QR_SET(sldns_buffer_begin(c->buffer)); - LDNS_RCODE_SET(sldns_buffer_begin(c->buffer), + LDNS_RCODE_SET(sldns_buffer_begin(c->buffer), LDNS_RCODE_FORMERR); goto send_reply; } @@ -1425,21 +1425,21 @@ worker_handle_request(struct comm_point* c, void* arg, int error, addr_to_str(&repinfo->client_addr, repinfo->client_addrlen, ip, sizeof(ip)); log_query_in(ip, qinfo.qname, qinfo.qtype, qinfo.qclass); } - if(qinfo.qtype == LDNS_RR_TYPE_AXFR || + if(qinfo.qtype == LDNS_RR_TYPE_AXFR || qinfo.qtype == LDNS_RR_TYPE_IXFR) { verbose(VERB_ALGO, "worker request: refused zone transfer."); log_addr(VERB_CLIENT, "from", &repinfo->client_addr, repinfo->client_addrlen); sldns_buffer_rewind(c->buffer); LDNS_QR_SET(sldns_buffer_begin(c->buffer)); - LDNS_RCODE_SET(sldns_buffer_begin(c->buffer), + LDNS_RCODE_SET(sldns_buffer_begin(c->buffer), LDNS_RCODE_REFUSED); if(worker->stats.extended) { worker->stats.qtype[qinfo.qtype]++; } goto send_reply; } - if(qinfo.qtype == LDNS_RR_TYPE_OPT || + if(qinfo.qtype == LDNS_RR_TYPE_OPT || qinfo.qtype == LDNS_RR_TYPE_TSIG || qinfo.qtype == LDNS_RR_TYPE_TKEY || qinfo.qtype == LDNS_RR_TYPE_MAILA || @@ -1454,7 +1454,7 @@ worker_handle_request(struct comm_point* c, void* arg, int error, } sldns_buffer_rewind(c->buffer); LDNS_QR_SET(sldns_buffer_begin(c->buffer)); - LDNS_RCODE_SET(sldns_buffer_begin(c->buffer), + LDNS_RCODE_SET(sldns_buffer_begin(c->buffer), LDNS_RCODE_FORMERR); if(worker->stats.extended) { worker->stats.qtype[qinfo.qtype]++; @@ -1523,10 +1523,10 @@ worker_handle_request(struct comm_point* c, void* arg, int error, repinfo->client_addrlen); LDNS_QR_SET(sldns_buffer_begin(c->buffer)); LDNS_TC_SET(sldns_buffer_begin(c->buffer)); - LDNS_RCODE_SET(sldns_buffer_begin(c->buffer), + LDNS_RCODE_SET(sldns_buffer_begin(c->buffer), LDNS_RCODE_SERVFAIL); sldns_buffer_set_position(c->buffer, LDNS_HEADER_SIZE); - sldns_buffer_write_at(c->buffer, 4, + sldns_buffer_write_at(c->buffer, 4, (uint8_t*)"\0\0\0\0\0\0\0\0", 8); sldns_buffer_flip(c->buffer); regional_free_all(worker->scratchpad); @@ -1745,8 +1745,8 @@ lookup_cache: if(!LDNS_RD_WIRE(sldns_buffer_begin(c->buffer))) { if(answer_norec_from_cache(worker, &qinfo, - *(uint16_t*)(void *)sldns_buffer_begin(c->buffer), - sldns_buffer_read_u16_at(c->buffer, 2), repinfo, + *(uint16_t*)(void *)sldns_buffer_begin(c->buffer), + sldns_buffer_read_u16_at(c->buffer, 2), repinfo, &edns)) { regional_free_all(worker->scratchpad); goto send_reply; @@ -1825,10 +1825,10 @@ send_reply_rc: return rc; } -void +void worker_sighandler(int sig, void* arg) { - /* note that log, print, syscalls here give race conditions. + /* note that log, print, syscalls here give race conditions. * And cause hangups if the log-lock is held by the application. */ struct worker* worker = (struct worker*)arg; switch(sig) { @@ -1903,13 +1903,13 @@ void worker_probe_timer_cb(void* arg) comm_timer_set(worker->env.probe_timer, &tv); } -struct worker* +struct worker* worker_create(struct daemon* daemon, int id, int* ports, int n) { unsigned int seed; - struct worker* worker = (struct worker*)calloc(1, + struct worker* worker = (struct worker*)calloc(1, sizeof(struct worker)); - if(!worker) + if(!worker) return NULL; worker->numports = n; worker->ports = (int*)memdup(ports, sizeof(int)*n); @@ -1937,7 +1937,7 @@ worker_create(struct daemon* daemon, int id, int* ports, int n) } int -worker_init(struct worker* worker, struct config_file *cfg, +worker_init(struct worker* worker, struct config_file *cfg, struct listen_port* ports, int do_sigs) { #ifdef USE_DNSTAP @@ -1970,9 +1970,9 @@ worker_init(struct worker* worker, struct config_file *cfg, #endif ub_thread_sig_unblock(SIGTERM); #ifndef LIBEVENT_SIGNAL_PROBLEM - worker->comsig = comm_signal_create(worker->base, + worker->comsig = comm_signal_create(worker->base, worker_sighandler, worker); - if(!worker->comsig + if(!worker->comsig #ifdef SIGHUP || !comm_signal_bind(worker->comsig, SIGHUP) #endif @@ -1989,7 +1989,7 @@ worker_init(struct worker* worker, struct config_file *cfg, return 0; } #endif /* LIBEVENT_SIGNAL_PROBLEM */ - if(!daemon_remote_open_accept(worker->daemon->rc, + if(!daemon_remote_open_accept(worker->daemon->rc, worker->daemon->rc_ports, worker)) { worker_delete(worker); return 0; @@ -2023,8 +2023,8 @@ worker_init(struct worker* worker, struct config_file *cfg, return 0; } worker->back = outside_network_create(worker->base, - cfg->msg_buffer_size, (size_t)cfg->outgoing_num_ports, - cfg->out_ifs, cfg->num_out_ifs, cfg->do_ip4, cfg->do_ip6, + cfg->msg_buffer_size, (size_t)cfg->outgoing_num_ports, + cfg->out_ifs, cfg->num_out_ifs, cfg->do_ip4, cfg->do_ip6, cfg->do_tcp?cfg->outgoing_num_tcp:0, cfg->ip_dscp, worker->daemon->env->infra_cache, worker->rndstate, cfg->use_caps_bits_for_id, worker->ports, worker->numports, @@ -2049,13 +2049,13 @@ worker_init(struct worker* worker, struct config_file *cfg, worker_delete(worker); return 0; } - worker->stat_timer = comm_timer_create(worker->base, + worker->stat_timer = comm_timer_create(worker->base, worker_stat_timer_cb, worker); if(!worker->stat_timer) { log_err("could not create statistics timer"); } - /* we use the msg_buffer_size as a good estimate for what the + /* we use the msg_buffer_size as a good estimate for what the * user wants for memory usage sizes */ worker->scratchpad = regional_create_custom(cfg->msg_buffer_size); if(!worker->scratchpad) { @@ -2164,23 +2164,23 @@ worker_init(struct worker* worker, struct config_file *cfg, worker_mem_report(worker, NULL); /* if statistics enabled start timer */ if(worker->env.cfg->stat_interval > 0) { - verbose(VERB_ALGO, "set statistics interval %d secs", + verbose(VERB_ALGO, "set statistics interval %d secs", worker->env.cfg->stat_interval); worker_restart_timer(worker); } return 1; } -void +void worker_work(struct worker* worker) { comm_base_dispatch(worker->base); } -void +void worker_delete(struct worker* worker) { - if(!worker) + if(!worker) return; if(worker->env.mesh && verbosity >= VERB_OPS) { server_stats_log(&worker->stats, worker, worker->thread_num); @@ -2232,7 +2232,7 @@ worker_send_query(struct query_info* qinfo, uint16_t flags, int dnssec, struct worker* worker = q->env->worker; struct outbound_entry* e = (struct outbound_entry*)regional_alloc( q->region, sizeof(*e)); - if(!e) + if(!e) return NULL; e->qstate = q; e->qsent = outnet_serviced_query(worker->back, qinfo, flags, dnssec, @@ -2246,7 +2246,7 @@ worker_send_query(struct query_info* qinfo, uint16_t flags, int dnssec, return e; } -void +void worker_alloc_cleanup(void* arg) { struct worker* worker = (struct worker*)arg; @@ -2294,7 +2294,7 @@ struct outbound_entry* libworker_send_query( return 0; } -int libworker_handle_service_reply(struct comm_point* ATTR_UNUSED(c), +int libworker_handle_service_reply(struct comm_point* ATTR_UNUSED(c), void* ATTR_UNUSED(arg), int ATTR_UNUSED(error), struct comm_reply* ATTR_UNUSED(reply_info)) { diff --git a/libunbound/unbound.h b/libunbound/unbound.h index 72428fd38..f65cc2c58 100644 --- a/libunbound/unbound.h +++ b/libunbound/unbound.h @@ -4,22 +4,22 @@ * Copyright (c) 2007, NLnet Labs. All rights reserved. * * This software is open source. - * + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: - * + * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. - * + * * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. - * + * * Neither the name of the NLNET LABS nor the names of its contributors may * be used to endorse or promote products derived from this software without * specific prior written permission. - * + * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR @@ -36,7 +36,7 @@ /** * \file * - * This file contains functions to resolve DNS queries and + * This file contains functions to resolve DNS queries and * validate the answers. Synchronously and asynchronously. * * Several ways to use this interface from an application wishing @@ -65,7 +65,7 @@ * ... or process() calls my_callback() with results. * * ... if the application has nothing more to do, wait for answer - * ub_wait(ctx); + * ub_wait(ctx); * * Application threaded. Blocking. * Blocking, same as above. The current thread does the work. @@ -83,7 +83,7 @@ * CRYPTO_set_id_callback and CRYPTO_set_locking_callback. * * If no threading is compiled in, the above async example uses fork(2) to - * create a process to perform the work. The forked process exits when the + * create a process to perform the work. The forked process exits when the * calling process exits, or ctx_delete() is called. * Otherwise, for asynchronous with threading, a worker thread is created. * @@ -128,10 +128,10 @@ struct ub_result { /** the class asked for */ int qclass; - /** - * a list of network order DNS rdata items, terminated with a + /** + * a list of network order DNS rdata items, terminated with a * NULL pointer, so that data[0] is the first result entry, - * data[1] the second, and the last entry is NULL. + * data[1] the second, and the last entry is NULL. * If there was no data, data[0] is NULL. */ char** data; @@ -139,8 +139,8 @@ struct ub_result { /** the length in bytes of the data items, len[i] for data[i] */ int* len; - /** - * canonical name for the result (the final cname). + /** + * canonical name for the result (the final cname). * zero terminated string. * May be NULL if no canonical name exists. */ @@ -165,9 +165,9 @@ struct ub_result { */ int havedata; - /** + /** * If there was no data, and the domain did not exist, this is true. - * If it is false, and there was no data, then the domain name + * If it is false, and there was no data, then the domain name * is purported to exist, but the requested data type is not available. */ int nxdomain; @@ -182,19 +182,19 @@ struct ub_result { */ int secure; - /** - * If the result was not secure (secure==0), and this result is due + /** + * If the result was not secure (secure==0), and this result is due * to a security failure, bogus is true. * This means the data has been actively tampered with, signatures - * failed, expected signatures were not present, timestamps on + * failed, expected signatures were not present, timestamps on * signatures were out of date and so on. * - * If !secure and !bogus, this can happen if the data is not secure - * because security is disabled for that domain name. + * If !secure and !bogus, this can happen if the data is not secure + * because security is disabled for that domain name. * This means the data is from a domain where data is not signed. */ int bogus; - + /** * If the result is bogus this contains a string (zero terminated) * that describes the failure. There may be other errors as well @@ -222,7 +222,7 @@ struct ub_result { * The readable function definition looks like: * void my_callback(void* my_arg, int err, struct ub_result* result); * It is called with - * void* my_arg: your pointer to a (struct of) data of your choice, + * void* my_arg: your pointer to a (struct of) data of your choice, * or NULL. * int err: if 0 all is OK, otherwise an error occurred and no results * are forthcoming. @@ -301,8 +301,8 @@ int ub_ctx_set_option(struct ub_ctx* ctx, const char* opt, const char* val); * This is a power-users interface that lets you specify all sorts * of options. * @param str: the string is malloced and returned here. NULL on error. - * The caller must free() the string. In cases with multiple - * entries (auto-trust-anchor-file), a newline delimited list is + * The caller must free() the string. In cases with multiple + * entries (auto-trust-anchor-file), a newline delimited list is * returned in the string. * @return 0 if OK else an error code (malloc failure, syntax error). */ @@ -321,10 +321,10 @@ int ub_ctx_get_option(struct ub_ctx* ctx, const char* opt, char** str); int ub_ctx_config(struct ub_ctx* ctx, const char* fname); /** - * Set machine to forward DNS queries to, the caching resolver to use. - * IP4 or IP6 address. Forwards all DNS requests to that machine, which - * is expected to run a recursive resolver. If the proxy is not - * DNSSEC-capable, validation may fail. Can be called several times, in + * Set machine to forward DNS queries to, the caching resolver to use. + * IP4 or IP6 address. Forwards all DNS requests to that machine, which + * is expected to run a recursive resolver. If the proxy is not + * DNSSEC-capable, validation may fail. Can be called several times, in * that case the addresses are used as backup servers. * * To read the list of nameservers from /etc/resolv.conf (from DHCP or so), @@ -389,7 +389,7 @@ int ub_ctx_resolvconf(struct ub_ctx* ctx, const char* fname); /** * Read list of hosts from the filename given. - * Usually "/etc/hosts". + * Usually "/etc/hosts". * These addresses are not flagged as DNSSEC secure when queried for. * * @param ctx: context. @@ -403,7 +403,7 @@ int ub_ctx_hosts(struct ub_ctx* ctx, const char* fname); /** * Add a trust anchor to the given context. * The trust anchor is a string, on one line, that holds a valid DNSKEY or - * DS RR. + * DS RR. * @param ctx: context. * At this time it is only possible to add trusted keys before the * first resolve is done. @@ -465,7 +465,7 @@ int ub_ctx_debugout(struct ub_ctx* ctx, void* out); * Set debug verbosity for the context * Output is directed to stderr. * @param ctx: context. - * @param d: debug level, 0 is off, 1 is very minimal, 2 is detailed, + * @param d: debug level, 0 is off, 1 is very minimal, 2 is detailed, * and 3 is lots. * @return 0 if OK, else error. */ @@ -474,10 +474,10 @@ int ub_ctx_debuglevel(struct ub_ctx* ctx, int d); /** * Set a context behaviour for asynchronous action. * @param ctx: context. - * @param dothread: if true, enables threading and a call to resolve_async() + * @param dothread: if true, enables threading and a call to resolve_async() * creates a thread to handle work in the background. * If false, a process is forked to handle work in the background. - * Changes to this setting after async() calls have been made have + * Changes to this setting after async() calls have been made have * no effect (delete and re-create the context to change). * @return 0 if OK, else error. */ @@ -495,7 +495,7 @@ int ub_poll(struct ub_ctx* ctx); /** * Wait for a context to finish with results. Calls ub_process() after - * the wait for you. After the wait, there are no more outstanding + * the wait for you. After the wait, there are no more outstanding * asynchronous queries. * @param ctx: context. * @return: 0 if OK, else error. @@ -530,11 +530,11 @@ int ub_process(struct ub_ctx* ctx); * @param rrtype: type of RR in host order, 1 is A (address). * @param rrclass: class of RR in host order, 1 is IN (for internet). * @param result: the result data is returned in a newly allocated result - * structure. May be NULL on return, return value is set to an error + * structure. May be NULL on return, return value is set to an error * in that case (out of memory). * @return 0 if OK, else error. */ -int ub_resolve(struct ub_ctx* ctx, const char* name, int rrtype, +int ub_resolve(struct ub_ctx* ctx, const char* name, int rrtype, int rrclass, struct ub_result** result); /** @@ -561,11 +561,11 @@ int ub_resolve(struct ub_ctx* ctx, const char* name, int rrtype, * If an error happens during processing, your callback will be called * with error set to a nonzero value (and result==NULL). * @param async_id: if you pass a non-NULL value, an identifier number is - * returned for the query as it is in progress. It can be used to + * returned for the query as it is in progress. It can be used to * cancel the query. * @return 0 if OK, else error. */ -int ub_resolve_async(struct ub_ctx* ctx, const char* name, int rrtype, +int ub_resolve_async(struct ub_ctx* ctx, const char* name, int rrtype, int rrclass, void* mydata, ub_callback_type callback, int* async_id); /** @@ -589,7 +589,7 @@ int ub_cancel(struct ub_ctx* ctx, int async_id); */ void ub_resolve_free(struct ub_result* result); -/** +/** * Convert error value to a human readable string. * @param err: error code from one of the libunbound functions. * The error codes are from the type enum ub_ctx_err. @@ -605,7 +605,7 @@ const char* ub_strerror(int err); int ub_ctx_print_local_zones(struct ub_ctx* ctx); /** - * Add a new zone with the zonetype to the local authority info of the + * Add a new zone with the zonetype to the local authority info of the * library. * @param ctx: context. Is finalized by the routine. * @param zone_name: name of the zone in text, "example.com" @@ -613,7 +613,7 @@ int ub_ctx_print_local_zones(struct ub_ctx* ctx); * @param zone_type: type of the zone (like for unbound.conf) in text. * @return 0 if OK, else error. */ -int ub_ctx_zone_add(struct ub_ctx* ctx, const char *zone_name, +int ub_ctx_zone_add(struct ub_ctx* ctx, const char *zone_name, const char *zone_type); /** @@ -649,7 +649,7 @@ int ub_ctx_data_remove(struct ub_ctx* ctx, const char *data); */ const char* ub_version(void); -/** +/** * Some global statistics that are not in struct stats_info, * this struct is shared on a shm segment (shm-key in unbound.conf) */ @@ -701,7 +701,7 @@ struct ub_server_stats { long long num_queries_prefetch; /** - * Sum of the querylistsize of the worker for + * Sum of the querylistsize of the worker for * every query that missed cache. To calculate average. */ long long sum_query_list_size; @@ -773,12 +773,12 @@ struct ub_server_stats { long long tcp_accept_usage; /** expired answers served from cache */ long long ans_expired; - /** histogram data exported to array + /** histogram data exported to array * if the array is the same size, no data is lost, and * if all histograms are same size (is so by default) then * adding up works well. */ long long hist[UB_STATS_BUCKET_NUM]; - + /** number of message cache entries */ long long msg_cache_count; /** number of rrset cache entries */ @@ -836,7 +836,7 @@ struct ub_server_stats { long long rpz_action[UB_STATS_RPZ_ACTION_NUM]; }; -/** +/** * Statistics to send over the control pipe when asked * This struct is made to be memcopied, sent in binary. * shm mapped with (number+1) at num_threads+1, with first as total diff --git a/services/listen_dnsport.c b/services/listen_dnsport.c index 0c09ed849..484529034 100644 --- a/services/listen_dnsport.c +++ b/services/listen_dnsport.c @@ -4,22 +4,22 @@ * Copyright (c) 2007, NLnet Labs. All rights reserved. * * This software is open source. - * + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: - * + * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. - * + * * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. - * + * * Neither the name of the NLNET LABS nor the names of its contributors may * be used to endorse or promote products derived from this software without * specific prior written permission. - * + * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR @@ -81,7 +81,7 @@ #endif /** number of queued TCP connections for listen() */ -#define TCP_BACKLOG 256 +#define TCP_BACKLOG 256 #ifndef THREADS_DISABLED /** lock on the counter of stream buffer memory */ @@ -187,7 +187,7 @@ systemd_get_activated(int family, int socktype, int listen, log_err("systemd sd_listen_fds(): %s", strerror(-r)); return -1; } - + for(i = 0; i < r; i++) { if(sd_is_socket(SD_LISTEN_FDS_START + i, family, socktype, listen)) { s = SD_LISTEN_FDS_START + i; @@ -253,7 +253,7 @@ create_udp_sock(int family, int socktype, struct sockaddr* addr, return -1; } #else - if(WSAGetLastError() == WSAEAFNOSUPPORT || + if(WSAGetLastError() == WSAEAFNOSUPPORT || WSAGetLastError() == WSAEPROTONOSUPPORT) { *noproto = 1; return -1; @@ -270,7 +270,7 @@ create_udp_sock(int family, int socktype, struct sockaddr* addr, #endif if(listen) { #ifdef SO_REUSEADDR - if(setsockopt(s, SOL_SOCKET, SO_REUSEADDR, (void*)&on, + if(setsockopt(s, SOL_SOCKET, SO_REUSEADDR, (void*)&on, (socklen_t)sizeof(on)) < 0) { log_err("setsockopt(.. SO_REUSEADDR ..) failed: %s", sock_strerror(errno)); @@ -368,9 +368,9 @@ create_udp_sock(int family, int socktype, struct sockaddr* addr, socklen_t slen = (socklen_t)sizeof(got); # ifdef SO_RCVBUFFORCE /* Linux specific: try to use root permission to override - * system limits on rcvbuf. The limit is stored in + * system limits on rcvbuf. The limit is stored in * /proc/sys/net/core/rmem_max or sysctl net.core.rmem_max */ - if(setsockopt(s, SOL_SOCKET, SO_RCVBUFFORCE, (void*)&rcv, + if(setsockopt(s, SOL_SOCKET, SO_RCVBUFFORCE, (void*)&rcv, (socklen_t)sizeof(rcv)) < 0) { if(errno != EPERM) { log_err("setsockopt(..., SO_RCVBUFFORCE, " @@ -381,7 +381,7 @@ create_udp_sock(int family, int socktype, struct sockaddr* addr, return -1; } # endif /* SO_RCVBUFFORCE */ - if(setsockopt(s, SOL_SOCKET, SO_RCVBUF, (void*)&rcv, + if(setsockopt(s, SOL_SOCKET, SO_RCVBUF, (void*)&rcv, (socklen_t)sizeof(rcv)) < 0) { log_err("setsockopt(..., SO_RCVBUF, " "...) failed: %s", sock_strerror(errno)); @@ -392,7 +392,7 @@ create_udp_sock(int family, int socktype, struct sockaddr* addr, } /* check if we got the right thing or if system * reduced to some system max. Warn if so */ - if(getsockopt(s, SOL_SOCKET, SO_RCVBUF, (void*)&got, + if(getsockopt(s, SOL_SOCKET, SO_RCVBUF, (void*)&got, &slen) >= 0 && got < rcv/2) { log_warn("so-rcvbuf %u was not granted. " "Got %u. To fix: start with " @@ -413,9 +413,9 @@ create_udp_sock(int family, int socktype, struct sockaddr* addr, socklen_t slen = (socklen_t)sizeof(got); # ifdef SO_SNDBUFFORCE /* Linux specific: try to use root permission to override - * system limits on sndbuf. The limit is stored in + * system limits on sndbuf. The limit is stored in * /proc/sys/net/core/wmem_max or sysctl net.core.wmem_max */ - if(setsockopt(s, SOL_SOCKET, SO_SNDBUFFORCE, (void*)&snd, + if(setsockopt(s, SOL_SOCKET, SO_SNDBUFFORCE, (void*)&snd, (socklen_t)sizeof(snd)) < 0) { if(errno != EPERM) { log_err("setsockopt(..., SO_SNDBUFFORCE, " @@ -426,7 +426,7 @@ create_udp_sock(int family, int socktype, struct sockaddr* addr, return -1; } # endif /* SO_SNDBUFFORCE */ - if(setsockopt(s, SOL_SOCKET, SO_SNDBUF, (void*)&snd, + if(setsockopt(s, SOL_SOCKET, SO_SNDBUF, (void*)&snd, (socklen_t)sizeof(snd)) < 0) { log_err("setsockopt(..., SO_SNDBUF, " "...) failed: %s", sock_strerror(errno)); @@ -437,7 +437,7 @@ create_udp_sock(int family, int socktype, struct sockaddr* addr, } /* check if we got the right thing or if system * reduced to some system max. Warn if so */ - if(getsockopt(s, SOL_SOCKET, SO_SNDBUF, (void*)&got, + if(getsockopt(s, SOL_SOCKET, SO_SNDBUF, (void*)&got, &slen) >= 0 && got < snd/2) { log_warn("so-sndbuf %u was not granted. " "Got %u. To fix: start with " @@ -469,7 +469,7 @@ create_udp_sock(int family, int socktype, struct sockaddr* addr, # endif ) { int val=(v6only==2)?0:1; - if (setsockopt(s, IPPROTO_IPV6, IPV6_V6ONLY, + if (setsockopt(s, IPPROTO_IPV6, IPV6_V6ONLY, (void*)&val, (socklen_t)sizeof(val)) < 0) { log_err("setsockopt(..., IPV6_V6ONLY" ", ...) failed: %s", sock_strerror(errno)); @@ -576,7 +576,7 @@ create_udp_sock(int family, int socktype, struct sockaddr* addr, int action; # if defined(IP_PMTUDISC_OMIT) action = IP_PMTUDISC_OMIT; - if (setsockopt(s, IPPROTO_IP, IP_MTU_DISCOVER, + if (setsockopt(s, IPPROTO_IP, IP_MTU_DISCOVER, &action, (socklen_t)sizeof(action)) < 0) { if (errno != EINVAL) { @@ -609,7 +609,7 @@ create_udp_sock(int family, int socktype, struct sockaddr* addr, /* the IP_DONTFRAG option if defined in the 11.0 OSX headers, * but does not work on that version, so we exclude it */ int off = 0; - if (setsockopt(s, IPPROTO_IP, IP_DONTFRAG, + if (setsockopt(s, IPPROTO_IP, IP_DONTFRAG, &off, (socklen_t)sizeof(off)) < 0) { log_err("setsockopt(..., IP_DONTFRAG, ...) failed: %s", strerror(errno)); @@ -647,7 +647,7 @@ create_udp_sock(int family, int socktype, struct sockaddr* addr, if(WSAGetLastError() != WSAEADDRINUSE && WSAGetLastError() != WSAEADDRNOTAVAIL && !(WSAGetLastError() == WSAEACCES && verbosity < 4 && !listen)) { - log_err_addr("can't bind socket", + log_err_addr("can't bind socket", wsa_strerror(WSAGetLastError()), (struct sockaddr_storage*)addr, addrlen); } @@ -749,7 +749,7 @@ create_tcp_accept_sock(struct addrinfo *addr, int v6only, int* noproto, } #endif #ifdef SO_REUSEADDR - if(setsockopt(s, SOL_SOCKET, SO_REUSEADDR, (void*)&on, + if(setsockopt(s, SOL_SOCKET, SO_REUSEADDR, (void*)&on, (socklen_t)sizeof(on)) < 0) { log_err("setsockopt(.. SO_REUSEADDR ..) failed: %s", sock_strerror(errno)); @@ -793,7 +793,7 @@ create_tcp_accept_sock(struct addrinfo *addr, int v6only, int* noproto, && !got_fd_from_systemd # endif ) { - if(setsockopt(s, IPPROTO_IPV6, IPV6_V6ONLY, + if(setsockopt(s, IPPROTO_IPV6, IPV6_V6ONLY, (void*)&on, (socklen_t)sizeof(on)) < 0) { log_err("setsockopt(..., IPV6_V6ONLY, ...) failed: %s", sock_strerror(errno)); @@ -845,7 +845,7 @@ create_tcp_accept_sock(struct addrinfo *addr, int v6only, int* noproto, addr->ai_addrlen); } #else - log_err_addr("can't bind socket", + log_err_addr("can't bind socket", wsa_strerror(WSAGetLastError()), (struct sockaddr_storage*)addr->ai_addr, addr->ai_addrlen); @@ -873,7 +873,7 @@ create_tcp_accept_sock(struct addrinfo *addr, int v6only, int* noproto, /* 5 is recommended on linux */ qlen = 5; #endif - if ((setsockopt(s, IPPROTO_TCP, TCP_FASTOPEN, &qlen, + if ((setsockopt(s, IPPROTO_TCP, TCP_FASTOPEN, &qlen, sizeof(qlen))) == -1 ) { #ifdef ENOPROTOOPT /* squelch ENOPROTOOPT: freebsd server mode with kernel support @@ -999,7 +999,7 @@ err: * Create socket from getaddrinfo results */ static int -make_sock(int stype, const char* ifname, const char* port, +make_sock(int stype, const char* ifname, const char* port, struct addrinfo *hints, int v6only, int* noip6, size_t rcv, size_t snd, int* reuseport, int transparent, int tcp_mss, int nodelay, int freebind, int use_systemd, int dscp, struct unbound_socket* ub_sock) @@ -1015,7 +1015,7 @@ make_sock(int stype, const char* ifname, const char* port, return -1; } #endif - log_err("node %s:%s getaddrinfo: %s %s", + log_err("node %s:%s getaddrinfo: %s %s", ifname?ifname:"default", port, gai_strerror(r), #ifdef EAI_SYSTEM (r==EAI_SYSTEM?(char*)strerror(errno):"") @@ -1055,7 +1055,7 @@ make_sock(int stype, const char* ifname, const char* port, /** make socket and first see if ifname contains port override info */ static int -make_sock_port(int stype, const char* ifname, const char* port, +make_sock_port(int stype, const char* ifname, const char* port, struct addrinfo *hints, int v6only, int* noip6, size_t rcv, size_t snd, int* reuseport, int transparent, int tcp_mss, int nodelay, int freebind, int use_systemd, int dscp, struct unbound_socket* ub_sock) @@ -1116,7 +1116,7 @@ port_insert(struct listen_port** list, int s, enum listen_type ftype, /** set fd to receive source address packet info */ static int -set_recvpktinfo(int s, int family) +set_recvpktinfo(int s, int family) { #if defined(IPV6_RECVPKTINFO) || defined(IPV6_PKTINFO) || (defined(IP_RECVDSTADDR) && defined(IP_SENDSRCADDR)) || defined(IP_PKTINFO) int on = 1; @@ -1345,7 +1345,7 @@ ports_create_if(const char* ifname, int do_auto, int do_udp, int do_tcp, return 1; } -/** +/** * Add items to commpoint list in front. * @param c: commpoint to add. * @param front: listen struct. @@ -1396,7 +1396,7 @@ void listen_desetup_locks(void) } } -struct listen_dnsport* +struct listen_dnsport* listen_create(struct comm_base* base, struct listen_port* ports, size_t bufsize, int tcp_accept_count, int tcp_idle_timeout, int harden_large_queries, uint32_t http_max_streams, @@ -1532,10 +1532,10 @@ listen_list_delete(struct listen_list* list) } } -void +void listen_delete(struct listen_dnsport* front) { - if(!front) + if(!front) return; listen_list_delete(front->cps); #ifdef USE_DNSCRYPT @@ -1927,8 +1927,8 @@ void listening_ports_free(struct listen_port* list) size_t listen_get_mem(struct listen_dnsport* listen) { struct listen_list* p; - size_t s = sizeof(*listen) + sizeof(*listen->base) + - sizeof(*listen->udp_buff) + + size_t s = sizeof(*listen) + sizeof(*listen->base) + + sizeof(*listen->udp_buff) + sldns_buffer_capacity(listen->udp_buff); #ifdef USE_DNSCRYPT s += sizeof(*listen->dnscrypt_udp_buff); @@ -2009,7 +2009,7 @@ void tcp_req_info_clear(struct tcp_req_info* req) } req->open_req_list = NULL; req->num_open_req = 0; - + /* free pending writable result packets */ item = req->done_req_list; while(item) { @@ -2068,7 +2068,7 @@ tcp_req_info_setup_listen(struct tcp_req_info* req) wr = 1; if(!req->read_is_closed) rd = 1; - + if(wr) { req->cp->tcp_is_reading = 0; comm_point_stop_listening(req->cp); @@ -2204,7 +2204,7 @@ tcp_req_info_handle_readdone(struct tcp_req_info* req) } req->in_worker_handle = 0; /* it should be waiting in the mesh for recursion. - * If mesh failed to add a new entry and called commpoint_drop_reply. + * If mesh failed to add a new entry and called commpoint_drop_reply. * Then the mesh state has been cleared. */ if(req->is_drop) { /* the reply has been dropped, stream has been closed. */ @@ -2264,7 +2264,7 @@ tcp_req_info_add_result(struct tcp_req_info* req, uint8_t* buf, size_t len) last = req->done_req_list; while(last && last->next) last = last->next; - + /* create new element */ item = (struct tcp_req_done_item*)malloc(sizeof(*item)); if(!item) { @@ -2623,7 +2623,7 @@ static int http2_query_read_done(struct http2_session* h2_session, "buffer already assigned to stream"); return -1; } - + /* the c->buffer might be used by mesh_send_reply and no be cleard * need to be cleared before use */ sldns_buffer_clear(h2_session->c->buffer); diff --git a/services/mesh.c b/services/mesh.c index 8321a48b2..035ffa694 100644 --- a/services/mesh.c +++ b/services/mesh.c @@ -4,22 +4,22 @@ * Copyright (c) 2007, NLnet Labs. All rights reserved. * * This software is open source. - * + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: - * + * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. - * + * * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. - * + * * Neither the name of the NLNET LABS nor the names of its contributors may * be used to endorse or promote products derived from this software without * specific prior written permission. - * + * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR @@ -249,7 +249,7 @@ mesh_state_ref_compare(const void* ap, const void* bp) return mesh_state_compare(a->s, b->s); } -struct mesh_area* +struct mesh_area* mesh_create(struct module_stack* stack, struct module_env* env) { struct mesh_area* mesh = calloc(1, sizeof(struct mesh_area)); @@ -298,7 +298,7 @@ mesh_delete_helper(rbnode_type* n) * traversal and rbtree rebalancing do not work together */ } -void +void mesh_delete(struct mesh_area* mesh) { if(!mesh) @@ -341,7 +341,7 @@ int mesh_make_new_space(struct mesh_area* mesh, sldns_buffer* qbuf) if(m && m->reply_list && m->list_select == mesh_jostle_list) { /* how old is it? */ struct timeval age; - timeval_subtract(&age, mesh->env->now_tv, + timeval_subtract(&age, mesh->env->now_tv, &m->reply_list->start_time); if(timeval_smaller(&mesh->jostle_max, &age)) { /* its a goner */ @@ -585,11 +585,11 @@ void mesh_new_client(struct mesh_area* mesh, struct query_info* qinfo, /* move to either the forever or the jostle_list */ if(mesh->num_forever_states < mesh->max_forever_states) { mesh->num_forever_states ++; - mesh_list_insert(s, &mesh->forever_first, + mesh_list_insert(s, &mesh->forever_first, &mesh->forever_last); s->list_select = mesh_forever_list; } else { - mesh_list_insert(s, &mesh->jostle_first, + mesh_list_insert(s, &mesh->jostle_first, &mesh->jostle_last); s->list_select = mesh_jostle_list; } @@ -610,9 +610,9 @@ servfail_mem: return; } -int +int mesh_new_callback(struct mesh_area* mesh, struct query_info* qinfo, - uint16_t qflags, struct edns_data* edns, sldns_buffer* buf, + uint16_t qflags, struct edns_data* edns, sldns_buffer* buf, uint16_t qid, mesh_cb_func_type cb, void* cb_arg, int rpz_passthru) { struct mesh_state* s = NULL; @@ -890,7 +890,7 @@ mesh_state_create(struct module_env* env, struct query_info* qinfo, int i; if(!region) return NULL; - mstate = (struct mesh_state*)regional_alloc(region, + mstate = (struct mesh_state*)regional_alloc(region, sizeof(struct mesh_state)); if(!mstate) { alloc_reg_release(env->alloc, region); @@ -972,7 +972,7 @@ mesh_state_make_unique(struct mesh_state* mstate) mstate->unique = mstate; } -void +void mesh_state_cleanup(struct mesh_state* mstate) { struct mesh_area* mesh; @@ -1018,7 +1018,7 @@ mesh_state_cleanup(struct mesh_state* mstate) alloc_reg_release(mstate->s.env->alloc, mstate->s.region); } -void +void mesh_state_delete(struct module_qstate* qstate) { struct mesh_area* mesh; @@ -1031,10 +1031,10 @@ mesh_state_delete(struct module_qstate* qstate) mesh_detach_subs(&mstate->s); if(mstate->list_select == mesh_forever_list) { mesh->num_forever_states --; - mesh_list_remove(mstate, &mesh->forever_first, + mesh_list_remove(mstate, &mesh->forever_first, &mesh->forever_last); } else if(mstate->list_select == mesh_jostle_list) { - mesh_list_remove(mstate, &mesh->jostle_first, + mesh_list_remove(mstate, &mesh->jostle_first, &mesh->jostle_last); } if(!mstate->reply_list && !mstate->cb_list @@ -1106,7 +1106,7 @@ void mesh_detach_subs(struct module_qstate* qstate) if(!ref->s->reply_list && !ref->s->cb_list && ref->s->super_set.count == 0) { mesh->num_detached_states++; - log_assert(mesh->num_detached_states + + log_assert(mesh->num_detached_states + mesh->num_reply_states <= mesh->all.count); } } @@ -1171,7 +1171,7 @@ int mesh_attach_sub(struct module_qstate* qstate, struct query_info* qinfo, if(!mesh_state_attachment(qstate->mesh_info, sub)) return 0; /* if it was a duplicate attachment, the count was not zero before */ - if(!sub->reply_list && !sub->cb_list && was_detached && + if(!sub->reply_list && !sub->cb_list && was_detached && sub->super_set.count == 1) { /* it used to be detached, before this one got added */ log_assert(mesh->num_detached_states > 0); @@ -1270,10 +1270,10 @@ mesh_do_callback(struct mesh_state* m, int rcode, struct reply_info* rep, if(!inplace_cb_reply_call(m->s.env, &m->s.qinfo, &m->s, rep, LDNS_RCODE_NOERROR, &r->edns, NULL, m->s.region, start_time) || - !reply_info_answer_encode(&m->s.qinfo, rep, r->qid, - r->qflags, r->buf, 0, 1, - m->s.env->scratch, udp_size, &r->edns, - (int)(r->edns.bits & EDNS_DO), secure)) + !reply_info_answer_encode(&m->s.qinfo, rep, r->qid, + r->qflags, r->buf, 0, 1, + m->s.env->scratch, udp_size, &r->edns, + (int)(r->edns.bits & EDNS_DO), secure)) { fptr_ok(fptr_whitelist_mesh_cb(r->cb)); (*r->cb)(r->cb_arg, LDNS_RCODE_SERVFAIL, r->buf, @@ -1336,7 +1336,7 @@ mesh_send_reply(struct mesh_state* m, int rcode, struct reply_info* rep, /* examine security status */ if(m->s.env->need_to_validate && (!(r->qflags&BIT_CD) || - m->s.env->cfg->ignore_cd) && rep && + m->s.env->cfg->ignore_cd) && rep && (rep->security <= sec_status_bogus || rep->security == sec_status_secure_sentinel_fail)) { rcode = LDNS_RCODE_SERVFAIL; @@ -1391,7 +1391,7 @@ mesh_send_reply(struct mesh_state* m, int rcode, struct reply_info* rep, if(!inplace_cb_reply_servfail_call(m->s.env, &m->s.qinfo, &m->s, rep, rcode, &r->edns, &r->query_reply, m->s.region, &r->start_time)) r->edns.opt_list_inplace_cb_out = NULL; - } else { + } else { if(!inplace_cb_reply_call(m->s.env, &m->s.qinfo, &m->s, rep, rcode, &r->edns, &r->query_reply, m->s.region, &r->start_time)) r->edns.opt_list_inplace_cb_out = NULL; @@ -1441,10 +1441,10 @@ mesh_send_reply(struct mesh_state* m, int rcode, struct reply_info* rep, m->s.qinfo.local_alias = r->local_alias; if(!inplace_cb_reply_call(m->s.env, &m->s.qinfo, &m->s, rep, LDNS_RCODE_NOERROR, &r->edns, &r->query_reply, m->s.region, &r->start_time) || - !reply_info_answer_encode(&m->s.qinfo, rep, r->qid, + !reply_info_answer_encode(&m->s.qinfo, rep, r->qid, r->qflags, r_buffer, 0, 1, m->s.env->scratch, udp_size, &r->edns, (int)(r->edns.bits & EDNS_DO), - secure)) + secure)) { if(!inplace_cb_reply_servfail_call(m->s.env, &m->s.qinfo, &m->s, rep, LDNS_RCODE_SERVFAIL, &r->edns, &r->query_reply, m->s.region, &r->start_time)) @@ -1601,7 +1601,7 @@ void mesh_walk_supers(struct mesh_area* mesh, struct mesh_state* mstate) /* callback the function to inform super of result */ fptr_ok(fptr_whitelist_mod_inform_super( mesh->mods.mod[ref->s->s.curmod]->inform_super)); - (*mesh->mods.mod[ref->s->s.curmod]->inform_super)(&mstate->s, + (*mesh->mods.mod[ref->s->s.curmod]->inform_super)(&mstate->s, ref->s->s.curmod, &ref->s->s); /* copy state that is always relevant to super */ copy_state_to_super(&mstate->s, ref->s->s.curmod, &ref->s->s); @@ -1625,7 +1625,7 @@ struct mesh_state* mesh_area_find(struct mesh_area* mesh, * desire aggregation).*/ key.unique = NULL; key.s.client_info = cinfo; - + result = (struct mesh_state*)rbtree_search(&mesh->all, &key); return result; } @@ -1634,7 +1634,7 @@ int mesh_state_add_cb(struct mesh_state* s, struct edns_data* edns, sldns_buffer* buf, mesh_cb_func_type cb, void* cb_arg, uint16_t qid, uint16_t qflags) { - struct mesh_cb* r = regional_alloc(s->s.region, + struct mesh_cb* r = regional_alloc(s->s.region, sizeof(struct mesh_cb)); if(!r) return 0; @@ -1766,7 +1766,7 @@ mesh_copy_qinfo(struct mesh_state* mstate, struct query_info** qinfop, * Handles module finished. * @param mesh: the mesh area. * @param mstate: currently active mesh state. - * Deleted if finished, calls _done and _supers to + * Deleted if finished, calls _done and _supers to * send replies to clients and inform other mesh states. * This in turn may create additional runnable mesh states. * @param s: state at which the current module exited. @@ -1800,7 +1800,7 @@ mesh_continue(struct mesh_area* mesh, struct mesh_state* mstate, } if(s == module_restart_next) { int curmod = mstate->s.curmod; - for(; mstate->s.curmod < mesh->mods.num; + for(; mstate->s.curmod < mesh->mods.num; mstate->s.curmod++) { fptr_ok(fptr_whitelist_mod_clear( mesh->mods.mod[mstate->s.curmod]->clear)); @@ -1878,7 +1878,7 @@ void mesh_run(struct mesh_area* mesh, struct mesh_state* mstate, mstate->s.reply = NULL; regional_free_all(mstate->s.env->scratch); s = mstate->s.ext_state[mstate->s.curmod]; - verbose(VERB_ALGO, "mesh_run: %s module exit state is %s", + verbose(VERB_ALGO, "mesh_run: %s module exit state is %s", mesh->mods.mod[mstate->s.curmod]->name, strextstate(s)); e = NULL; if(mesh_continue(mesh, mstate, s, &ev)) @@ -1898,14 +1898,14 @@ void mesh_run(struct mesh_area* mesh, struct mesh_state* mstate, } } -void +void mesh_log_list(struct mesh_area* mesh) { char buf[30]; struct mesh_state* m; int num = 0; RBTREE_FOR(m, struct mesh_state*, &mesh->all) { - snprintf(buf, sizeof(buf), "%d%s%s%s%s%s%s mod%d %s%s", + snprintf(buf, sizeof(buf), "%d%s%s%s%s%s%s mod%d %s%s", num++, (m->s.is_priming)?"p":"", /* prime */ (m->s.is_valrec)?"v":"", /* prime */ (m->s.query_flags&BIT_RD)?"RD":"", @@ -1914,18 +1914,18 @@ mesh_log_list(struct mesh_area* mesh) (m->sub_set.count!=0)?"c":"", /* children */ m->s.curmod, (m->reply_list)?"rep":"", /*hasreply*/ (m->cb_list)?"cb":"" /* callbacks */ - ); + ); log_query_info(VERB_ALGO, buf, &m->s.qinfo); } } -void +void mesh_stats(struct mesh_area* mesh, const char* str) { verbose(VERB_DETAIL, "%s %u recursion states (%u with reply, " "%u detached), %u waiting replies, %u recursion replies " - "sent, %d replies dropped, %d states jostled out", - str, (unsigned)mesh->all.count, + "sent, %d replies dropped, %d states jostled out", + str, (unsigned)mesh->all.count, (unsigned)mesh->num_reply_states, (unsigned)mesh->num_detached_states, (unsigned)mesh->num_reply_addrs, @@ -1934,7 +1934,7 @@ mesh_stats(struct mesh_area* mesh, const char* str) (unsigned)mesh->stats_jostled); if(mesh->replies_sent > 0) { struct timeval avg; - timeval_divide(&avg, &mesh->replies_sum_wait, + timeval_divide(&avg, &mesh->replies_sum_wait, mesh->replies_sent); log_info("average recursion processing time " ARG_LL "d.%6.6d sec", @@ -1944,7 +1944,7 @@ mesh_stats(struct mesh_area* mesh, const char* str) } } -void +void mesh_stats_clear(struct mesh_area* mesh) { if(!mesh) @@ -1963,7 +1963,7 @@ mesh_stats_clear(struct mesh_area* mesh) mesh->ans_nodata = 0; } -size_t +size_t mesh_get_mem(struct mesh_area* mesh) { struct mesh_state* m; @@ -1977,7 +1977,7 @@ mesh_get_mem(struct mesh_area* mesh) return s; } -int +int mesh_detect_cycle(struct module_qstate* qstate, struct query_info* qinfo, uint16_t flags, int prime, int valrec) { diff --git a/smallapp/unbound-control.c b/smallapp/unbound-control.c index bae8e4e76..141bec492 100644 --- a/smallapp/unbound-control.c +++ b/smallapp/unbound-control.c @@ -4,22 +4,22 @@ * Copyright (c) 2008, NLnet Labs. All rights reserved. * * This software is open source. - * + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: - * + * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. - * + * * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. - * + * * Neither the name of the NLNET LABS nor the names of its contributors may * be used to endorse or promote products derived from this software without * specific prior written permission. - * + * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR @@ -226,7 +226,7 @@ static void pr_stats(const char* nm, struct ub_stats_info* s) { struct timeval sumwait, avg; PR_UL_NM("num.queries", s->svr.num_queries); - PR_UL_NM("num.queries_ip_ratelimited", + PR_UL_NM("num.queries_ip_ratelimited", s->svr.num_queries_ip_ratelimited); PR_UL_NM("num.cachehits", s->svr.num_queries - s->svr.num_queries_missed_cache); @@ -992,7 +992,7 @@ int main(int argc, char* argv[]) fatal_exit("could not exec unbound: %s", strerror(ENOSYS)); #else - if(execlp("unbound", "unbound", "-c", cfgfile, + if(execlp("unbound", "unbound", "-c", cfgfile, (char*)NULL) < 0) { fatal_exit("could not exec unbound: %s", strerror(errno)); diff --git a/testcode/fake_event.c b/testcode/fake_event.c index efb22a6fb..618e739d7 100644 --- a/testcode/fake_event.c +++ b/testcode/fake_event.c @@ -2,24 +2,24 @@ * testcode/fake_event.c - fake event handling that replays existing scenario. * * Copyright (c) 2007, NLnet Labs. All rights reserved. - * + * * This software is open source. - * + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: - * + * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. - * + * * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. - * + * * Neither the name of the NLNET LABS nor the names of its contributors may * be used to endorse or promote products derived from this software without * specific prior written permission. - * + * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR @@ -109,7 +109,7 @@ timeval_add(struct timeval* d, const struct timeval* add) #endif } -void +void fake_temp_file(const char* adj, const char* id, char* buf, size_t len) { #ifdef USE_WINSOCK @@ -121,13 +121,13 @@ fake_temp_file(const char* adj, const char* id, char* buf, size_t len) #endif } -void +void fake_event_init(struct replay_scenario* scen) { saved_scenario = scen; } -void +void fake_event_cleanup(void) { replay_scenario_delete(saved_scenario); @@ -172,7 +172,7 @@ repevt_string(enum replay_event_type t) } /** delete a fake pending */ -static void +static void delete_fake_pending(struct fake_pending* pend) { if(!pend) @@ -200,8 +200,8 @@ delete_replay_answer(struct replay_answer* a) /** * return: true if pending query matches the now event. */ -static int -pending_matches_current(struct replay_runtime* runtime, +static int +pending_matches_current(struct replay_runtime* runtime, struct entry** entry, struct fake_pending **pend) { struct fake_pending* p; @@ -233,7 +233,7 @@ pending_matches_current(struct replay_runtime* runtime, * @return: true if a match is found. */ static int -pending_find_match(struct replay_runtime* runtime, struct entry** entry, +pending_find_match(struct replay_runtime* runtime, struct entry** entry, struct fake_pending* pend) { int timenow = runtime->now->time_step; @@ -245,7 +245,7 @@ pending_find_match(struct replay_runtime* runtime, struct entry** entry, (*entry = find_match(p->match, pend->pkt, pend->pkt_len, pend->transport))) { log_info("matched query time %d in range [%d, %d] " - "with entry line %d", timenow, + "with entry line %d", timenow, p->start_step, p->end_step, (*entry)->lineno); if(p->addrlen != 0) log_addr(0, "matched ip", &p->addr, p->addrlen); @@ -266,8 +266,8 @@ pending_find_match(struct replay_runtime* runtime, struct entry** entry, * @param pend: if true, the outgoing message that matches is returned. * @return: true if pending query matches the now event. */ -static int -pending_matches_range(struct replay_runtime* runtime, +static int +pending_matches_range(struct replay_runtime* runtime, struct entry** entry, struct fake_pending** pend) { struct fake_pending* p = runtime->pending_list; @@ -405,9 +405,9 @@ answer_callback_from_entry(struct replay_runtime* runtime, static void answer_check_it(struct replay_runtime* runtime) { - struct replay_answer* ans = runtime->answer_list, + struct replay_answer* ans = runtime->answer_list, *prev = NULL; - log_assert(runtime && runtime->now && + log_assert(runtime && runtime->now && runtime->now->evt_type == repevt_front_reply); while(ans) { enum transport_type tr = transport_tcp; @@ -420,7 +420,7 @@ answer_check_it(struct replay_runtime* runtime) ans->pkt_len, tr)) { log_info("testbound matched event entry from line %d", runtime->now->match->lineno); - log_info("testbound: do STEP %d %s", + log_info("testbound: do STEP %d %s", runtime->now->time_step, repevt_string(runtime->now->evt_type)); if(prev) @@ -474,7 +474,7 @@ fake_front_query(struct replay_runtime* runtime, struct replay_moment *todo) log_pkt("query pkt", todo->match->reply_list->reply_pkt, todo->match->reply_list->reply_len); /* call the callback for incoming queries */ - if((*runtime->callback_query)(repinfo.c, runtime->cb_arg, + if((*runtime->callback_query)(repinfo.c, runtime->cb_arg, NETEVENT_NOERROR, &repinfo)) { /* send immediate reply */ comm_point_send_reply(&repinfo); @@ -487,7 +487,7 @@ fake_front_query(struct replay_runtime* runtime, struct replay_moment *todo) * Perform callback for fake pending message. */ static void -fake_pending_callback(struct replay_runtime* runtime, +fake_pending_callback(struct replay_runtime* runtime, struct replay_moment* todo, int error) { struct fake_pending* p = runtime->pending_list; @@ -566,7 +566,7 @@ time_passes(struct replay_runtime* runtime, struct replay_moment* mom) timeval_add(&runtime->now_tv, &tv); runtime->now_secs = (time_t)runtime->now_tv.tv_sec; #ifndef S_SPLINT_S - log_info("elapsed %d.%6.6d now %d.%6.6d", + log_info("elapsed %d.%6.6d now %d.%6.6d", (int)tv.tv_sec, (int)tv.tv_usec, (int)runtime->now_tv.tv_sec, (int)runtime->now_tv.tv_usec); #endif @@ -603,7 +603,7 @@ autotrust_check(struct replay_runtime* runtime, struct replay_moment* mom) } strip_end_white(line); expanded = macro_process(runtime->vars, runtime, p->str); - if(!expanded) + if(!expanded) fatal_exit("could not expand macro line %d", lineno); if(verbosity >= 7 && strcmp(p->str, expanded) != 0) log_info("expanded '%s' to '%s'", p->str, expanded); @@ -656,7 +656,7 @@ tempfile_check(struct replay_runtime* runtime, struct replay_moment* mom) } strip_end_white(line); expanded = macro_process(runtime->vars, runtime, p->str); - if(!expanded) + if(!expanded) fatal_exit("could not expand macro line %d", lineno); if(verbosity >= 7 && strcmp(p->str, expanded) != 0) log_info("expanded '%s' to '%s'", p->str, expanded); @@ -746,7 +746,7 @@ do_moment_and_advance(struct replay_runtime* runtime) advance_moment(runtime); return; } - log_info("testbound: do STEP %d %s", runtime->now->time_step, + log_info("testbound: do STEP %d %s", runtime->now->time_step, repevt_string(runtime->now->evt_type)); switch(runtime->now->evt_type) { case repevt_nothing: @@ -761,7 +761,7 @@ do_moment_and_advance(struct replay_runtime* runtime) fake_front_query(runtime, mom); break; case repevt_front_reply: - if(runtime->answer_list) + if(runtime->answer_list) log_err("testbound: There are unmatched answers."); fatal_exit("testbound: query answer not matched"); break; @@ -810,7 +810,7 @@ do_moment_and_advance(struct replay_runtime* runtime) advance_moment(runtime); break; default: - fatal_exit("testbound: unknown event type %d", + fatal_exit("testbound: unknown event type %d", runtime->now->evt_type); } } @@ -831,15 +831,15 @@ run_scenario(struct replay_runtime* runtime) /* else if precoded_range matches pending, do it */ /* else do the current moment */ if(pending_matches_current(runtime, &entry, &pending)) { - log_info("testbound: do STEP %d CHECK_OUT_QUERY", + log_info("testbound: do STEP %d CHECK_OUT_QUERY", runtime->now->time_step); advance_moment(runtime); if(entry->copy_id) - answer_callback_from_entry(runtime, entry, + answer_callback_from_entry(runtime, entry, pending); - } else if(runtime->answer_list && runtime->now && + } else if(runtime->answer_list && runtime->now && runtime->now->evt_type == repevt_front_reply) { - answer_check_it(runtime); + answer_check_it(runtime); advance_moment(runtime); } else if(pending_matches_range(runtime, &entry, &pending)) { answer_callback_from_entry(runtime, entry, pending); @@ -870,7 +870,7 @@ run_scenario(struct replay_runtime* runtime) /*********** Dummy routines ***********/ -struct listen_dnsport* +struct listen_dnsport* listen_create(struct comm_base* base, struct listen_port* ATTR_UNUSED(ports), size_t bufsize, int ATTR_UNUSED(tcp_accept_count), int ATTR_UNUSED(tcp_idle_timeout), @@ -898,7 +898,7 @@ listen_create(struct comm_base* base, struct listen_port* ATTR_UNUSED(ports), return l; } -void +void listen_delete(struct listen_dnsport* listen) { if(!listen) @@ -907,7 +907,7 @@ listen_delete(struct listen_dnsport* listen) free(listen); } -struct comm_base* +struct comm_base* comm_base_create(int ATTR_UNUSED(sigs)) { /* we return the runtime structure instead. */ @@ -921,7 +921,7 @@ comm_base_create(int ATTR_UNUSED(sigs)) return (struct comm_base*)runtime; } -void +void comm_base_delete(struct comm_base* b) { struct replay_runtime* runtime = (struct replay_runtime*)b; @@ -961,7 +961,7 @@ comm_base_timept(struct comm_base* b, time_t** tt, struct timeval** tv) *tv = &runtime->now_tv; } -void +void comm_base_dispatch(struct comm_base* b) { struct replay_runtime* runtime = (struct replay_runtime*)b; @@ -971,7 +971,7 @@ comm_base_dispatch(struct comm_base* b) else exit(0); /* OK exit when LIBEVENT_SIGNAL_PROBLEM exists */ } -void +void comm_base_exit(struct comm_base* b) { struct replay_runtime* runtime = (struct replay_runtime*)b; @@ -981,7 +981,7 @@ comm_base_exit(struct comm_base* b) } } -struct comm_signal* +struct comm_signal* comm_signal_create(struct comm_base* base, void (*callback)(int, void*), void* cb_arg) { @@ -991,20 +991,20 @@ comm_signal_create(struct comm_base* base, return calloc(1, sizeof(struct comm_signal)); } -int -comm_signal_bind(struct comm_signal* ATTR_UNUSED(comsig), int +int +comm_signal_bind(struct comm_signal* ATTR_UNUSED(comsig), int ATTR_UNUSED(sig)) { return 1; } -void +void comm_signal_delete(struct comm_signal* comsig) { free(comsig); } -void +void comm_point_send_reply(struct comm_reply* repinfo) { struct replay_answer* ans = (struct replay_answer*)calloc(1, @@ -1028,7 +1028,7 @@ comm_point_send_reply(struct comm_reply* repinfo) log_pkt("reply pkt: ", ans->pkt, ans->pkt_len); } -void +void comm_point_drop_reply(struct comm_reply* repinfo) { log_info("comm_point_drop_reply fake"); @@ -1038,14 +1038,14 @@ comm_point_drop_reply(struct comm_reply* repinfo) } } -struct outside_network* -outside_network_create(struct comm_base* base, size_t bufsize, - size_t ATTR_UNUSED(num_ports), char** ATTR_UNUSED(ifs), - int ATTR_UNUSED(num_ifs), int ATTR_UNUSED(do_ip4), - int ATTR_UNUSED(do_ip6), size_t ATTR_UNUSED(num_tcp), +struct outside_network* +outside_network_create(struct comm_base* base, size_t bufsize, + size_t ATTR_UNUSED(num_ports), char** ATTR_UNUSED(ifs), + int ATTR_UNUSED(num_ifs), int ATTR_UNUSED(do_ip4), + int ATTR_UNUSED(do_ip6), size_t ATTR_UNUSED(num_tcp), int ATTR_UNUSED(dscp), struct infra_cache* infra, - struct ub_randstate* ATTR_UNUSED(rnd), + struct ub_randstate* ATTR_UNUSED(rnd), int ATTR_UNUSED(use_caps_for_id), int* ATTR_UNUSED(availports), int ATTR_UNUSED(numavailports), size_t ATTR_UNUSED(unwanted_threshold), int ATTR_UNUSED(outgoing_tcp_mss), @@ -1057,7 +1057,7 @@ outside_network_create(struct comm_base* base, size_t bufsize, int ATTR_UNUSED(tcp_auth_query_timeout)) { struct replay_runtime* runtime = (struct replay_runtime*)base; - struct outside_network* outnet = calloc(1, + struct outside_network* outnet = calloc(1, sizeof(struct outside_network)); (void)unwanted_action; if(!outnet) @@ -1072,7 +1072,7 @@ outside_network_create(struct comm_base* base, size_t bufsize, return outnet; } -void +void outside_network_delete(struct outside_network* outnet) { if(!outnet) @@ -1081,12 +1081,12 @@ outside_network_delete(struct outside_network* outnet) free(outnet); } -void +void outside_network_quit_prepare(struct outside_network* ATTR_UNUSED(outnet)) { } -struct pending* +struct pending* pending_udp_query(struct serviced_query* sq, sldns_buffer* packet, int timeout, comm_point_callback_type* callback, void* callback_arg) { @@ -1128,7 +1128,7 @@ pending_udp_query(struct serviced_query* sq, sldns_buffer* packet, repevt_string(runtime->now->evt_type)); advance_moment(runtime); /* still create the pending, because we need it to callback */ - } + } log_info("testbound: created fake pending"); /* add to list */ pend->next = runtime->pending_list; @@ -1178,7 +1178,7 @@ pending_tcp_query(struct serviced_query* sq, sldns_buffer* packet, repevt_string(runtime->now->evt_type)); advance_moment(runtime); /* still create the pending, because we need it to callback */ - } + } log_info("testbound: created fake pending"); /* add to list */ pend->next = runtime->pending_list; @@ -1202,10 +1202,10 @@ struct serviced_query* outnet_serviced_query(struct outside_network* outnet, sizeof(struct fake_pending)); char z[256]; log_assert(pend); - log_nametypeclass(VERB_OPS, "pending serviced query", + log_nametypeclass(VERB_OPS, "pending serviced query", qinfo->qname, qinfo->qtype, qinfo->qclass); dname_str(zone, z); - verbose(VERB_OPS, "pending serviced query zone %s flags%s%s%s%s", + verbose(VERB_OPS, "pending serviced query zone %s flags%s%s%s%s", z, (flags&BIT_RD)?" RD":"", (flags&BIT_CD)?" CD":"", (flags&~(BIT_RD|BIT_CD))?" MORE":"", (dnssec)?" DO":""); @@ -1301,7 +1301,7 @@ struct serviced_query* outnet_serviced_query(struct outside_network* outnet, repevt_string(runtime->now->evt_type)); advance_moment(runtime); /* still create the pending, because we need it to callback */ - } + } log_info("testbound: created fake pending"); /* add to list */ pend->next = runtime->pending_list; @@ -1356,7 +1356,7 @@ void listening_ports_free(struct listen_port* list) struct comm_point* comm_point_create_local(struct comm_base* ATTR_UNUSED(base), int ATTR_UNUSED(fd), size_t ATTR_UNUSED(bufsize), - comm_point_callback_type* ATTR_UNUSED(callback), + comm_point_callback_type* ATTR_UNUSED(callback), void* ATTR_UNUSED(callback_arg)) { struct fake_commpoint* fc = (struct fake_commpoint*)calloc(1, @@ -1368,7 +1368,7 @@ struct comm_point* comm_point_create_local(struct comm_base* ATTR_UNUSED(base), struct comm_point* comm_point_create_raw(struct comm_base* ATTR_UNUSED(base), int ATTR_UNUSED(fd), int ATTR_UNUSED(writing), - comm_point_callback_type* ATTR_UNUSED(callback), + comm_point_callback_type* ATTR_UNUSED(callback), void* ATTR_UNUSED(callback_arg)) { /* no pipe comm possible */ @@ -1379,7 +1379,7 @@ struct comm_point* comm_point_create_raw(struct comm_base* ATTR_UNUSED(base), return (struct comm_point*)fc; } -void comm_point_start_listening(struct comm_point* ATTR_UNUSED(c), +void comm_point_start_listening(struct comm_point* ATTR_UNUSED(c), int ATTR_UNUSED(newfd), int ATTR_UNUSED(sec)) { /* no bg write pipe comm possible */ @@ -1424,7 +1424,7 @@ size_t serviced_get_mem(struct serviced_query* ATTR_UNUSED(c)) } /* fake for fptr wlist */ -int outnet_udp_cb(struct comm_point* ATTR_UNUSED(c), +int outnet_udp_cb(struct comm_point* ATTR_UNUSED(c), void* ATTR_UNUSED(arg), int ATTR_UNUSED(error), struct comm_reply *ATTR_UNUSED(reply_info)) { @@ -1432,7 +1432,7 @@ int outnet_udp_cb(struct comm_point* ATTR_UNUSED(c), return 0; } -int outnet_tcp_cb(struct comm_point* ATTR_UNUSED(c), +int outnet_tcp_cb(struct comm_point* ATTR_UNUSED(c), void* ATTR_UNUSED(arg), int ATTR_UNUSED(error), struct comm_reply *ATTR_UNUSED(reply_info)) { @@ -1460,67 +1460,67 @@ void outnet_tcptimer(void* ATTR_UNUSED(arg)) log_assert(0); } -void comm_point_udp_callback(int ATTR_UNUSED(fd), short ATTR_UNUSED(event), +void comm_point_udp_callback(int ATTR_UNUSED(fd), short ATTR_UNUSED(event), void* ATTR_UNUSED(arg)) { log_assert(0); } -void comm_point_udp_ancil_callback(int ATTR_UNUSED(fd), +void comm_point_udp_ancil_callback(int ATTR_UNUSED(fd), short ATTR_UNUSED(event), void* ATTR_UNUSED(arg)) { log_assert(0); } -void comm_point_tcp_accept_callback(int ATTR_UNUSED(fd), +void comm_point_tcp_accept_callback(int ATTR_UNUSED(fd), short ATTR_UNUSED(event), void* ATTR_UNUSED(arg)) { log_assert(0); } -void comm_point_tcp_handle_callback(int ATTR_UNUSED(fd), +void comm_point_tcp_handle_callback(int ATTR_UNUSED(fd), short ATTR_UNUSED(event), void* ATTR_UNUSED(arg)) { log_assert(0); } -void comm_timer_callback(int ATTR_UNUSED(fd), +void comm_timer_callback(int ATTR_UNUSED(fd), short ATTR_UNUSED(event), void* ATTR_UNUSED(arg)) { log_assert(0); } -void comm_signal_callback(int ATTR_UNUSED(fd), +void comm_signal_callback(int ATTR_UNUSED(fd), short ATTR_UNUSED(event), void* ATTR_UNUSED(arg)) { log_assert(0); } -void comm_point_http_handle_callback(int ATTR_UNUSED(fd), +void comm_point_http_handle_callback(int ATTR_UNUSED(fd), short ATTR_UNUSED(event), void* ATTR_UNUSED(arg)) { log_assert(0); } -void comm_point_local_handle_callback(int ATTR_UNUSED(fd), +void comm_point_local_handle_callback(int ATTR_UNUSED(fd), short ATTR_UNUSED(event), void* ATTR_UNUSED(arg)) { log_assert(0); } -void comm_point_raw_handle_callback(int ATTR_UNUSED(fd), +void comm_point_raw_handle_callback(int ATTR_UNUSED(fd), short ATTR_UNUSED(event), void* ATTR_UNUSED(arg)) { log_assert(0); } -void comm_base_handle_slow_accept(int ATTR_UNUSED(fd), +void comm_base_handle_slow_accept(int ATTR_UNUSED(fd), short ATTR_UNUSED(event), void* ATTR_UNUSED(arg)) { log_assert(0); } -int serviced_udp_callback(struct comm_point* ATTR_UNUSED(c), +int serviced_udp_callback(struct comm_point* ATTR_UNUSED(c), void* ATTR_UNUSED(arg), int ATTR_UNUSED(error), struct comm_reply* ATTR_UNUSED(reply_info)) { @@ -1528,7 +1528,7 @@ int serviced_udp_callback(struct comm_point* ATTR_UNUSED(c), return 0; } -int serviced_tcp_callback(struct comm_point* ATTR_UNUSED(c), +int serviced_tcp_callback(struct comm_point* ATTR_UNUSED(c), void* ATTR_UNUSED(arg), int ATTR_UNUSED(error), struct comm_reply* ATTR_UNUSED(reply_info)) { @@ -1561,7 +1561,7 @@ int reuse_id_cmp(const void* ATTR_UNUSED(a), const void* ATTR_UNUSED(b)) } /* timers in testbound for autotrust. statistics tested in tdir. */ -struct comm_timer* comm_timer_create(struct comm_base* base, +struct comm_timer* comm_timer_create(struct comm_base* base, void (*cb)(void*), void* cb_arg) { struct replay_runtime* runtime = (struct replay_runtime*)base; @@ -1589,7 +1589,7 @@ void comm_timer_set(struct comm_timer* timer, struct timeval* tv) struct fake_timer* t = (struct fake_timer*)timer; t->enabled = 1; t->tv = *tv; - log_info("fake timer set %d.%6.6d", + log_info("fake timer set %d.%6.6d", (int)t->tv.tv_sec, (int)t->tv.tv_usec); timeval_add(&t->tv, &t->runtime->now_tv); } diff --git a/testcode/replay.c b/testcode/replay.c index 43101d6ac..3caf98233 100644 --- a/testcode/replay.c +++ b/testcode/replay.c @@ -2,24 +2,24 @@ * testcode/replay.c - store and use a replay of events for the DNS resolver. * * Copyright (c) 2007, NLnet Labs. All rights reserved. - * + * * This software is open source. - * + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: - * + * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. - * + * * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. - * + * * Neither the name of the NLNET LABS nor the names of its contributors may * be used to endorse or promote products derived from this software without * specific prior written permission. - * + * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR @@ -59,11 +59,11 @@ * Expand a macro * @param store: value storage * @param runtime: replay runtime for other stuff. - * @param text: the macro text, after the ${, Updated to after the } when + * @param text: the macro text, after the ${, Updated to after the } when * done (successfully). * @return expanded text, malloced. NULL on failure. */ -static char* macro_expand(rbtree_type* store, +static char* macro_expand(rbtree_type* store, struct replay_runtime* runtime, char** text); /** compare of time values */ @@ -82,12 +82,12 @@ timeval_smaller(const struct timeval* x, const struct timeval* y) #endif } -/** parse keyword in string. +/** parse keyword in string. * @param line: if found, the line is advanced to after the keyword. * @param keyword: string. - * @return: true if found, false if not. + * @return: true if found, false if not. */ -static int +static int parse_keyword(char** line, const char* keyword) { size_t len = (size_t)strlen(keyword); @@ -135,8 +135,8 @@ strip_end_white(char* p) } } -/** - * Read a range from file. +/** + * Read a range from file. * @param remain: Rest of line (after RANGE keyword). * @param in: file to read from. * @param name: name to print in errors. @@ -181,7 +181,7 @@ replay_range_read(char* remain, FILE* in, const char* name, strip_end_white(parse); if(!extstrtoaddr(parse, &rng->addr, &rng->addrlen, UNBOUND_DNS_PORT)) { - log_err("Line %d: could not read ADDRESS: %s", + log_err("Line %d: could not read ADDRESS: %s", pstate->lineno, parse); free(rng); return NULL; @@ -255,8 +255,8 @@ read_assign_step(char* remain, struct replay_moment* mom) fatal_exit("out of memory"); } -/** - * Read a replay moment 'STEP' from file. +/** + * Read a replay moment 'STEP' from file. * @param remain: Rest of line (after STEP keyword). * @param in: file to read from. * @param name: name to print in errors. @@ -376,18 +376,18 @@ replay_moment_read(char* remain, FILE* in, const char* name, strip_end_white(remain); if(!extstrtoaddr(remain, &mom->addr, &mom->addrlen, UNBOUND_DNS_PORT)) { - log_err("line %d: could not parse ADDRESS: %s", + log_err("line %d: could not parse ADDRESS: %s", pstate->lineno, remain); free(mom); return NULL; } - } + } if(parse_keyword(&remain, "ELAPSE")) { double sec; errno = 0; sec = strtod(remain, &remain); if(sec == 0. && errno != 0) { - log_err("line %d: could not parse ELAPSE: %s (%s)", + log_err("line %d: could not parse ELAPSE: %s (%s)", pstate->lineno, remain, strerror(errno)); free(mom); return NULL; @@ -397,7 +397,7 @@ replay_moment_read(char* remain, FILE* in, const char* name, mom->elapse.tv_usec = (int)((sec - (double)mom->elapse.tv_sec) *1000000. + 0.5); #endif - } + } if(readentry) { mom->match = read_entry(in, name, pstate, 1); @@ -433,7 +433,7 @@ make_scenario(char* line) return scen; } -struct replay_scenario* +struct replay_scenario* replay_scenario_read(FILE* in, const char* name, int* lineno) { char line[MAX_LINE_LEN]; @@ -451,7 +451,7 @@ replay_scenario_read(FILE* in, const char* name, int* lineno) (*lineno)++; while(isspace((unsigned char)*parse)) parse++; - if(!*parse) + if(!*parse) continue; /* empty line */ if(parse_keyword(&parse, ";")) continue; /* comment */ @@ -462,11 +462,11 @@ replay_scenario_read(FILE* in, const char* name, int* lineno) if(!scen) fatal_exit("%d: could not make scen", *lineno); continue; - } + } if(!scen) fatal_exit("%d: expected SCENARIO", *lineno); if(parse_keyword(&parse, "RANGE_BEGIN")) { - struct replay_range* newr = replay_range_read(parse, + struct replay_range* newr = replay_range_read(parse, in, name, &pstate, line); if(!newr) fatal_exit("%d: bad range", pstate.lineno); @@ -474,12 +474,12 @@ replay_scenario_read(FILE* in, const char* name, int* lineno) newr->next_range = scen->range_list; scen->range_list = newr; } else if(parse_keyword(&parse, "STEP")) { - struct replay_moment* mom = replay_moment_read(parse, + struct replay_moment* mom = replay_moment_read(parse, in, name, &pstate); if(!mom) fatal_exit("%d: bad moment", pstate.lineno); *lineno = pstate.lineno; - if(scen->mom_last && + if(scen->mom_last && scen->mom_last->time_step >= mom->time_step) fatal_exit("%d: time goes backwards", *lineno); if(scen->mom_last) @@ -502,7 +502,7 @@ replay_scenario_read(FILE* in, const char* name, int* lineno) return NULL; } -void +void replay_scenario_delete(struct replay_scenario* scen) { struct replay_moment* mom, *momn; @@ -630,7 +630,7 @@ do_macro_recursion(rbtree_type* store, struct replay_runtime* runtime, { char* after = at+2; char* expand = macro_expand(store, runtime, &after); - if(!expand) + if(!expand) return NULL; /* expansion failed */ if(!do_buf_insert(at, remain, after, expand)) { free(expand); @@ -665,7 +665,7 @@ do_macro_variable(rbtree_type* store, char* buf, size_t remain) } /* terminator, we are working in macro_expand() buffer */ sv = *at; - *at = 0; + *at = 0; v = macro_getvar(store, name); *at = sv; @@ -816,7 +816,7 @@ macro_expand(rbtree_type* store, struct replay_runtime* runtime, char** text) time_t res = 0; if(runtime) { struct fake_timer* t = first_timer(runtime); - if(t && (time_t)t->tv.tv_sec >= runtime->now_secs) + if(t && (time_t)t->tv.tv_sec >= runtime->now_secs) res = (time_t)t->tv.tv_sec - runtime->now_secs; } snprintf(buf, sizeof(buf), ARG_LL "d", (long long)res); @@ -855,9 +855,9 @@ macro_expand(rbtree_type* store, struct replay_runtime* runtime, char** text) if(dofunc) { /* post process functions, buf has the argument(s) */ if(strncmp(buf, "ctime", 5) == 0) { - return do_macro_ctime(buf+6); + return do_macro_ctime(buf+6); } else if(strncmp(buf, "range", 5) == 0) { - return do_macro_range(buf+6); + return do_macro_range(buf+6); } } return strdup(buf); @@ -891,7 +891,7 @@ macro_process(rbtree_type* store, struct replay_runtime* runtime, char* text) return strdup(buf); } -char* +char* macro_lookup(rbtree_type* store, char* name) { struct replay_var* x = macro_getvar(store, name); @@ -907,7 +907,7 @@ void macro_print_debug(rbtree_type* store) } } -int +int macro_assign(rbtree_type* store, char* name, char* value) { struct replay_var* x = macro_getvar(store, name); diff --git a/util/config_file.c b/util/config_file.c index 475699723..8e4d925e9 100644 --- a/util/config_file.c +++ b/util/config_file.c @@ -4,22 +4,22 @@ * Copyright (c) 2007, NLnet Labs. All rights reserved. * * This software is open source. - * + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: - * + * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. - * + * * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. - * + * * Neither the name of the NLNET LABS nor the names of its contributors may * be used to endorse or promote products derived from this software without * specific prior written permission. - * + * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR @@ -87,7 +87,7 @@ struct config_parser_state* cfg_parser = 0; /** init ports possible for use */ static void init_outgoing_availports(int* array, int num); -struct config_file* +struct config_file* config_create(void) { struct config_file* cfg; @@ -153,7 +153,7 @@ config_create(void) cfg->outgoing_num_ports = 48; /* windows is limited in num fds */ cfg->num_queries_per_thread = 24; cfg->outgoing_num_tcp = 2; /* leaves 64-52=12 for: 4if,1stop,thread4 */ - cfg->incoming_num_tcp = 2; + cfg->incoming_num_tcp = 2; #endif cfg->stream_wait_size = 4 * 1024 * 1024; cfg->edns_buffer_size = 1232; /* from DNS flagday recommendation */ @@ -302,13 +302,13 @@ config_create(void) cfg->rrset_roundrobin = 1; cfg->unknown_server_time_limit = 376; cfg->max_udp_size = 1232; /* value taken from edns_buffer_size */ - if(!(cfg->server_key_file = strdup(RUN_DIR"/unbound_server.key"))) + if(!(cfg->server_key_file = strdup(RUN_DIR"/unbound_server.key"))) goto error_exit; - if(!(cfg->server_cert_file = strdup(RUN_DIR"/unbound_server.pem"))) + if(!(cfg->server_cert_file = strdup(RUN_DIR"/unbound_server.pem"))) goto error_exit; - if(!(cfg->control_key_file = strdup(RUN_DIR"/unbound_control.key"))) + if(!(cfg->control_key_file = strdup(RUN_DIR"/unbound_control.key"))) goto error_exit; - if(!(cfg->control_cert_file = strdup(RUN_DIR"/unbound_control.pem"))) + if(!(cfg->control_cert_file = strdup(RUN_DIR"/unbound_control.pem"))) goto error_exit; #ifdef CLIENT_SUBNET @@ -316,7 +316,7 @@ config_create(void) #else if(!(cfg->module_conf = strdup("validator iterator"))) goto error_exit; #endif - if(!(cfg->val_nsec3_key_iterations = + if(!(cfg->val_nsec3_key_iterations = strdup("1024 150 2048 150 4096 150"))) goto error_exit; #if defined(DNSTAP_SOCKET_PATH) if(!(cfg->dnstap_socket_path = strdup(DNSTAP_SOCKET_PATH))) @@ -490,10 +490,10 @@ int config_set_option(struct config_file* cfg, const char* opt, /* not supported, library must have 1 thread in bgworker */ return 0; } else if(strcmp(opt, "outgoing-port-permit:") == 0) { - return cfg_mark_ports(val, 1, + return cfg_mark_ports(val, 1, cfg->outgoing_avail_ports, 65536); } else if(strcmp(opt, "outgoing-port-avoid:") == 0) { - return cfg_mark_ports(val, 0, + return cfg_mark_ports(val, 0, cfg->outgoing_avail_ports, 65536); } else if(strcmp(opt, "local-zone:") == 0) { return cfg_parse_local_zone(cfg, val); @@ -507,7 +507,7 @@ int config_set_option(struct config_file* cfg, const char* opt, if(atoi(val) == 0) return 0; cfg->val_date_override = (uint32_t)atoi(val); } - } else if(strcmp(opt, "local-data-ptr:") == 0) { + } else if(strcmp(opt, "local-data-ptr:") == 0) { char* ptr = cfg_ptr_reverse((char*)opt); return cfg_strlist_insert(&cfg->local_data, ptr); } else if(strcmp(opt, "logfile:") == 0) { @@ -688,7 +688,7 @@ int config_set_option(struct config_file* cfg, const char* opt, else if(strcmp(opt, "serve-expired-reply-ttl:") == 0) { IS_NUMBER_OR_ZERO; cfg->serve_expired_reply_ttl = atoi(val); SERVE_EXPIRED_REPLY_TTL=(time_t)cfg->serve_expired_reply_ttl;} else S_NUMBER_OR_ZERO("serve-expired-client-timeout:", serve_expired_client_timeout) - else S_YNO("ede:", ede) + else S_YNO("ede:", ede) else S_YNO("ede-serve-expired:", ede_serve_expired) else S_YNO("serve-original-ttl:", serve_original_ttl) else S_STR("val-nsec3-keysize-iterations:", val_nsec3_key_iterations) @@ -816,7 +816,7 @@ int config_set_option(struct config_file* cfg, const char* opt, { IS_NUMBER_OR_ZERO; cfg->val_max_restart = (int32_t)atoi(val); } else if (strcmp(opt, "outgoing-interface:") == 0) { char* d = strdup(val); - char** oi = + char** oi = (char**)reallocarray(NULL, (size_t)cfg->num_out_ifs+1, sizeof(char*)); if(!d || !oi) { free(d); free(oi); return -1; } if(cfg->out_ifs && cfg->num_out_ifs) { @@ -911,7 +911,7 @@ config_collate_cat(struct config_strlist* list) for(s=list; s; s=s->next) total += strlen(s->str) + 1; /* len + newline */ left = total+1; /* one extra for nul at end */ - r = malloc(left); + r = malloc(left); if(!r) return NULL; w = r; @@ -990,7 +990,7 @@ config_collate_cat(struct config_strlist* list) } int -config_get_option(struct config_file* cfg, const char* opt, +config_get_option(struct config_file* cfg, const char* opt, void (*func)(char*,void*), void* arg) { char buf[1024], nopt[64]; @@ -1329,7 +1329,7 @@ create_cfg_parser(struct config_file* cfg, char* filename, const char* chroot) init_cfg_parse(); } -int +int config_read(struct config_file* cfg, const char* filename, const char* chroot) { FILE *in; @@ -1369,7 +1369,7 @@ config_read(struct config_file* cfg, const char* filename, const char* chroot) if(r == GLOB_NOMATCH) { verbose(VERB_QUERY, "include: " "no matches for %s", fname); - return 1; + return 1; } else if(r == GLOB_NOSPACE) { log_err("include: %s: " "fnametern out of memory", fname); @@ -1568,7 +1568,7 @@ config_del_strbytelist(struct config_strbytelist* p) } } -void +void config_delete(struct config_file* cfg) { if(!cfg) return; @@ -1681,7 +1681,7 @@ config_delete(struct config_file* cfg) free(cfg); } -static void +static void init_outgoing_availports(int* a, int num) { /* generated with make iana_update */ @@ -1694,7 +1694,7 @@ init_outgoing_availports(int* a, int num) for(i=1024; istr = item; s->next = NULL; - + if (*head==NULL) { *head = s; } else { @@ -1940,11 +1940,11 @@ cfg_strlist_append_ex(struct config_strlist** head, char* item) } last->next = s; } - - return 1; + + return 1; } -int +int cfg_str2list_insert(struct config_str2list** head, char* item, char* i2) { struct config_str2list *s; @@ -1966,7 +1966,7 @@ cfg_str2list_insert(struct config_str2list** head, char* item, char* i2) return 1; } -int +int cfg_str3list_insert(struct config_str3list** head, char* item, char* i2, char* i3) { @@ -2002,7 +2002,7 @@ cfg_strbytelist_insert(struct config_strbytelist** head, char* item, return 1; } -time_t +time_t cfg_convert_timeval(const char* str) { time_t t; @@ -2010,7 +2010,7 @@ cfg_convert_timeval(const char* str) memset(&tm, 0, sizeof(tm)); if(strlen(str) < 14) return 0; - if(sscanf(str, "%4d%2d%2d%2d%2d%2d", &tm.tm_year, &tm.tm_mon, + if(sscanf(str, "%4d%2d%2d%2d%2d%2d", &tm.tm_year, &tm.tm_mon, &tm.tm_mday, &tm.tm_hour, &tm.tm_min, &tm.tm_sec) != 6) return 0; tm.tm_year -= 1900; @@ -2027,7 +2027,7 @@ cfg_convert_timeval(const char* str) return t; } -int +int cfg_count_numbers(const char* s) { /* format ::= (sp num)+ sp */ @@ -2062,7 +2062,7 @@ static int isalldigit(const char* str, size_t l) return 1; } -int +int cfg_parse_memsize(const char* str, size_t* res) { size_t len; @@ -2078,11 +2078,11 @@ cfg_parse_memsize(const char* str, size_t* res) /* check appended num */ while(len>0 && str[len-1]==' ') len--; - if(len > 1 && str[len-1] == 'b') + if(len > 1 && str[len-1] == 'b') len--; - else if(len > 1 && str[len-1] == 'B') + else if(len > 1 && str[len-1] == 'B') len--; - + if(len > 1 && tolower((unsigned char)str[len-1]) == 'g') mult = 1024*1024*1024; else if(len > 1 && tolower((unsigned char)str[len-1]) == 'm') @@ -2169,7 +2169,7 @@ uint8_t* config_parse_taglist(struct config_file* cfg, char* str, log_err("out of memory"); return 0; } - + /* parse */ s = str; while((p=strsep(&s, " \t\n")) != NULL) { @@ -2255,7 +2255,7 @@ int taglist_intersect(uint8_t* list1, size_t list1len, const uint8_t* list2, return 0; } -void +void config_apply(struct config_file* config) { MAX_TTL = (time_t)config->max_ttl; @@ -2297,7 +2297,7 @@ void config_lookup_uid(struct config_file* cfg) #endif } -/** +/** * Calculate string length of full pathname in original filesys * @param fname: the path name to convert. * Must not be null or empty. @@ -2311,7 +2311,7 @@ strlen_after_chroot(const char* fname, struct config_file* cfg, int use_chdir) { size_t len = 0; int slashit = 0; - if(cfg->chrootdir && cfg->chrootdir[0] && + if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(cfg->chrootdir, fname, strlen(cfg->chrootdir)) == 0) { /* already full pathname, return it */ return strlen(fname); @@ -2334,8 +2334,8 @@ strlen_after_chroot(const char* fname, struct config_file* cfg, int use_chdir) /* prepend chdir */ if(slashit && cfg->directory[0] != '/') len++; - if(cfg->chrootdir && cfg->chrootdir[0] && - strncmp(cfg->chrootdir, cfg->directory, + if(cfg->chrootdir && cfg->chrootdir[0] && + strncmp(cfg->chrootdir, cfg->directory, strlen(cfg->chrootdir)) == 0) len += strlen(cfg->directory)-strlen(cfg->chrootdir); else len += strlen(cfg->directory); @@ -2358,7 +2358,7 @@ fname_after_chroot(const char* fname, struct config_file* cfg, int use_chdir) return NULL; buf[0] = 0; /* is fname already in chroot ? */ - if(cfg->chrootdir && cfg->chrootdir[0] && + if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(cfg->chrootdir, fname, strlen(cfg->chrootdir)) == 0) { /* already full pathname, return it */ (void)strlcpy(buf, fname, len); @@ -2384,10 +2384,10 @@ fname_after_chroot(const char* fname, struct config_file* cfg, int use_chdir) if(slashit && cfg->directory[0] != '/') (void)strlcat(buf, "/", len); /* is the directory already in the chroot? */ - if(cfg->chrootdir && cfg->chrootdir[0] && - strncmp(cfg->chrootdir, cfg->directory, + if(cfg->chrootdir && cfg->chrootdir[0] && + strncmp(cfg->chrootdir, cfg->directory, strlen(cfg->chrootdir)) == 0) - (void)strlcat(buf, cfg->directory+strlen(cfg->chrootdir), + (void)strlcat(buf, cfg->directory+strlen(cfg->chrootdir), len); else (void)strlcat(buf, cfg->directory, len); slashit = 1; @@ -2424,7 +2424,7 @@ static char* last_space_pos(const char* str) return (sp>tab)?sp:tab; } -int +int cfg_parse_local_zone(struct config_file* cfg, const char* val) { const char *type, *name_end, *name; @@ -2459,11 +2459,11 @@ cfg_parse_local_zone(struct config_file* cfg, const char* val) } if(strcmp(type, "nodefault")==0) { - return cfg_strlist_insert(&cfg->local_zones_nodefault, + return cfg_strlist_insert(&cfg->local_zones_nodefault, strdup(name)); #ifdef USE_IPSET } else if(strcmp(type, "ipset")==0) { - return cfg_strlist_insert(&cfg->local_zones_ipset, + return cfg_strlist_insert(&cfg->local_zones_ipset, strdup(name)); #endif } else { @@ -2518,7 +2518,7 @@ char* cfg_ptr_reverse(char* str) const char* hex = "0123456789abcdef"; char *p = buf; int i; - memmove(ad, &((struct sockaddr_in6*)&addr)->sin6_addr, + memmove(ad, &((struct sockaddr_in6*)&addr)->sin6_addr, sizeof(ad)); for(i=15; i>=0; i--) { uint8_t b = ad[i]; @@ -2530,7 +2530,7 @@ char* cfg_ptr_reverse(char* str) snprintf(buf+16*4, sizeof(buf)-16*4, "ip6.arpa. "); } else { uint8_t ad[4]; - memmove(ad, &((struct sockaddr_in*)&addr)->sin_addr, + memmove(ad, &((struct sockaddr_in*)&addr)->sin_addr, sizeof(ad)); snprintf(buf, sizeof(buf), "%u.%u.%u.%u.in-addr.arpa. ", (unsigned)ad[3], (unsigned)ad[2], diff --git a/util/config_file.h b/util/config_file.h index 7e1f5b365..1590dc460 100644 --- a/util/config_file.h +++ b/util/config_file.h @@ -4,22 +4,22 @@ * Copyright (c) 2007, NLnet Labs. All rights reserved. * * This software is open source. - * + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: - * + * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. - * + * * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. - * + * * Neither the name of the NLNET LABS nor the names of its contributors may * be used to endorse or promote products derived from this software without * specific prior written permission. - * + * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR @@ -232,7 +232,7 @@ struct config_file { /** interface description strings (IP addresses) */ char **ifs; - /** number of outgoing interfaces to open. + /** number of outgoing interfaces to open. * If 0 default all interfaces. */ int num_out_ifs; /** outgoing interface description strings (IP addresses) */ @@ -251,7 +251,7 @@ struct config_file { /** list of donotquery addresses, linked list */ struct config_strlist* donotqueryaddrs; #ifdef CLIENT_SUBNET - /** list of servers we send edns-client-subnet option to and + /** list of servers we send edns-client-subnet option to and * accept option from, linked list */ struct config_strlist* client_subnet; /** list of zones we send edns-client-subnet option for */ @@ -367,7 +367,7 @@ struct config_file { /** the module configuration string */ char* module_conf; - + /** files with trusted DS and DNSKEYs in zonefile format, list */ struct config_strlist* trust_anchor_file_list; /** list of trustanchor keys, linked list */ @@ -392,7 +392,7 @@ struct config_file { /** max number of query restarts, number of IPs to probe */ int32_t val_max_restart; /** this value sets the number of seconds before revalidating bogus */ - int bogus_ttl; + int bogus_ttl; /** should validator clean additional section for secure msgs */ int val_clean_additional; /** log bogus messages by the validator */ @@ -816,7 +816,7 @@ struct config_view { struct config_strlist* local_zones_ipset; #endif /** Fallback to global local_zones when there is no match in the view - * view specific tree. 1 for yes, 0 for no */ + * view specific tree. 1 for yes, 0 for no */ int isfirst; /** predefined actions for particular IP address responses */ struct config_str2list* respip_actions; @@ -891,7 +891,7 @@ struct config_file* config_create_forlib(void); * @param config: where options are stored into, must be freshly created. * @param filename: name of configfile. If NULL nothing is done. * @param chroot: if not NULL, the chroot dir currently in use (for include). - * @return: false on error. In that case errno is set, ENOENT means + * @return: false on error. In that case errno is set, ENOENT means * file not found. */ int config_read(struct config_file* config, const char* filename, @@ -926,16 +926,16 @@ void config_lookup_uid(struct config_file* config); int config_set_option(struct config_file* config, const char* option, const char* value); -/** +/** * Call print routine for the given option. * @param cfg: config. - * @param opt: option name without trailing :. + * @param opt: option name without trailing :. * This is different from config_set_option. * @param func: print func, called as (str, arg) for every data element. * @param arg: user argument for print func. * @return false if the option name is not supported (syntax error). */ -int config_get_option(struct config_file* cfg, const char* opt, +int config_get_option(struct config_file* cfg, const char* opt, void (*func)(char*,void*), void* arg); /** @@ -955,7 +955,7 @@ int config_get_option_list(struct config_file* cfg, const char* opt, * @param str: string. malloced, caller must free it. * @return 0=OK, 1=syntax error, 2=malloc failed. */ -int config_get_option_collate(struct config_file* cfg, const char* opt, +int config_get_option_collate(struct config_file* cfg, const char* opt, char** str); /** @@ -1150,7 +1150,7 @@ int cfg_count_numbers(const char* str); * k=1024, m=1024*1024, g=1024*1024*1024. * @param str: string * @param res: result is stored here, size in bytes. - * @return: true if parsed correctly, or 0 on a parse error (and an error + * @return: true if parsed correctly, or 0 on a parse error (and an error * is logged). */ int cfg_parse_memsize(const char* str, size_t* res); @@ -1184,7 +1184,7 @@ int find_tag_id(struct config_file* cfg, const char* tag); /** * parse taglist from string into bytestring with bitlist. * @param cfg: the config structure (with tagnames) - * @param str: the string to parse. Parse puts 0 bytes in string. + * @param str: the string to parse. Parse puts 0 bytes in string. * @param listlen: returns length of in bytes. * @return malloced bytes with a bitlist of the tags. or NULL on parse error * or malloc failure. @@ -1227,7 +1227,7 @@ int cfg_parse_local_zone(struct config_file* cfg, const char* val); * @param allow: give true if this range is permitted. * @param avail: the array from cfg. * @param num: size of the array (65536). - * @return: true if parsed correctly, or 0 on a parse error (and an error + * @return: true if parsed correctly, or 0 on a parse error (and an error * is logged). */ int cfg_mark_ports(const char* str, int allow, int* avail, int num); @@ -1255,7 +1255,7 @@ void cfg_apply_local_port_policy(struct config_file* cfg, int num); */ int cfg_scan_ports(int* avail, int num); -/** +/** * Convert a filename to full pathname in original filesys * @param fname: the path name to convert. * Must not be null or empty. @@ -1264,7 +1264,7 @@ int cfg_scan_ports(int* avail, int num); * @return pointer to malloced buffer which is: [chroot][chdir]fname * or NULL on malloc failure. */ -char* fname_after_chroot(const char* fname, struct config_file* cfg, +char* fname_after_chroot(const char* fname, struct config_file* cfg, int use_chdir); /** @@ -1349,4 +1349,3 @@ int if_is_dnscrypt(const char* ifname, const char* port, int dnscrypt_port); #endif #endif /* UTIL_CONFIG_FILE_H */ - diff --git a/util/configlexer.c b/util/configlexer.c deleted file mode 100644 index 0e3b71ffe..000000000 --- a/util/configlexer.c +++ /dev/null @@ -1,6737 +0,0 @@ -#include "config.h" -#include "util/configyyrename.h" - -#line 2 "" - -#define YY_INT_ALIGNED short int - -/* A lexical scanner generated by flex */ - -#define FLEX_SCANNER -#define YY_FLEX_MAJOR_VERSION 2 -#define YY_FLEX_MINOR_VERSION 6 -#define YY_FLEX_SUBMINOR_VERSION 4 -#if YY_FLEX_SUBMINOR_VERSION > 0 -#define FLEX_BETA -#endif - -/* First, we deal with platform-specific or compiler-specific issues. */ - -/* begin standard C headers. */ -#include -#include -#include -#include - -/* end standard C headers. */ - -/* flex integer type definitions */ - -#ifndef FLEXINT_H -#define FLEXINT_H - -/* C99 systems have . Non-C99 systems may or may not. */ - -#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L - -/* C99 says to define __STDC_LIMIT_MACROS before including stdint.h, - * if you want the limit (max/min) macros for int types. - */ -#ifndef __STDC_LIMIT_MACROS -#define __STDC_LIMIT_MACROS 1 -#endif - -#include -typedef int8_t flex_int8_t; -typedef uint8_t flex_uint8_t; -typedef int16_t flex_int16_t; -typedef uint16_t flex_uint16_t; -typedef int32_t flex_int32_t; -typedef uint32_t flex_uint32_t; -#else -typedef signed char flex_int8_t; -typedef short int flex_int16_t; -typedef int flex_int32_t; -typedef unsigned char flex_uint8_t; -typedef unsigned short int flex_uint16_t; -typedef unsigned int flex_uint32_t; - -/* Limits of integral types. */ -#ifndef INT8_MIN -#define INT8_MIN (-128) -#endif -#ifndef INT16_MIN -#define INT16_MIN (-32767-1) -#endif -#ifndef INT32_MIN -#define INT32_MIN (-2147483647-1) -#endif -#ifndef INT8_MAX -#define INT8_MAX (127) -#endif -#ifndef INT16_MAX -#define INT16_MAX (32767) -#endif -#ifndef INT32_MAX -#define INT32_MAX (2147483647) -#endif -#ifndef UINT8_MAX -#define UINT8_MAX (255U) -#endif -#ifndef UINT16_MAX -#define UINT16_MAX (65535U) -#endif -#ifndef UINT32_MAX -#define UINT32_MAX (4294967295U) -#endif - -#ifndef SIZE_MAX -#define SIZE_MAX (~(size_t)0) -#endif - -#endif /* ! C99 */ - -#endif /* ! FLEXINT_H */ - -/* begin standard C++ headers. */ - -/* TODO: this is always defined, so inline it */ -#define yyconst const - -#if defined(__GNUC__) && __GNUC__ >= 3 -#define yynoreturn __attribute__((__noreturn__)) -#else -#define yynoreturn -#endif - -/* Returned upon end-of-file. */ -#define YY_NULL 0 - -/* Promotes a possibly negative, possibly signed char to an - * integer in range [0..255] for use as an array index. - */ -#define YY_SC_TO_UI(c) ((YY_CHAR) (c)) - -/* Enter a start condition. This macro really ought to take a parameter, - * but we do it the disgusting crufty way forced on us by the ()-less - * definition of BEGIN. - */ -#define BEGIN (yy_start) = 1 + 2 * -/* Translate the current start state into a value that can be later handed - * to BEGIN to return to the state. The YYSTATE alias is for lex - * compatibility. - */ -#define YY_START (((yy_start) - 1) / 2) -#define YYSTATE YY_START -/* Action number for EOF rule of a given start state. */ -#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) -/* Special action meaning "start processing a new file". */ -#define YY_NEW_FILE yyrestart( yyin ) -#define YY_END_OF_BUFFER_CHAR 0 - -/* Size of default input buffer. */ -#ifndef YY_BUF_SIZE -#ifdef __ia64__ -/* On IA-64, the buffer size is 16k, not 8k. - * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case. - * Ditto for the __ia64__ case accordingly. - */ -#define YY_BUF_SIZE 32768 -#else -#define YY_BUF_SIZE 16384 -#endif /* __ia64__ */ -#endif - -/* The state buf must be large enough to hold one state per character in the main buffer. - */ -#define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) - -#ifndef YY_TYPEDEF_YY_BUFFER_STATE -#define YY_TYPEDEF_YY_BUFFER_STATE -typedef struct yy_buffer_state *YY_BUFFER_STATE; -#endif - -#ifndef YY_TYPEDEF_YY_SIZE_T -#define YY_TYPEDEF_YY_SIZE_T -typedef size_t yy_size_t; -#endif - -extern int yyleng; - -extern FILE *yyin, *yyout; - -#define EOB_ACT_CONTINUE_SCAN 0 -#define EOB_ACT_END_OF_FILE 1 -#define EOB_ACT_LAST_MATCH 2 - - #define YY_LESS_LINENO(n) - #define YY_LINENO_REWIND_TO(ptr) - -/* Return all but the first "n" matched characters back to the input stream. */ -#define yyless(n) \ - do \ - { \ - /* Undo effects of setting up yytext. */ \ - int yyless_macro_arg = (n); \ - YY_LESS_LINENO(yyless_macro_arg);\ - *yy_cp = (yy_hold_char); \ - YY_RESTORE_YY_MORE_OFFSET \ - (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \ - YY_DO_BEFORE_ACTION; /* set up yytext again */ \ - } \ - while ( 0 ) -#define unput(c) yyunput( c, (yytext_ptr) ) - -#ifndef YY_STRUCT_YY_BUFFER_STATE -#define YY_STRUCT_YY_BUFFER_STATE -struct yy_buffer_state - { - FILE *yy_input_file; - - char *yy_ch_buf; /* input buffer */ - char *yy_buf_pos; /* current position in input buffer */ - - /* Size of input buffer in bytes, not including room for EOB - * characters. - */ - int yy_buf_size; - - /* Number of characters read into yy_ch_buf, not including EOB - * characters. - */ - int yy_n_chars; - - /* Whether we "own" the buffer - i.e., we know we created it, - * and can realloc() it to grow it, and should free() it to - * delete it. - */ - int yy_is_our_buffer; - - /* Whether this is an "interactive" input source; if so, and - * if we're using stdio for input, then we want to use getc() - * instead of fread(), to make sure we stop fetching input after - * each newline. - */ - int yy_is_interactive; - - /* Whether we're considered to be at the beginning of a line. - * If so, '^' rules will be active on the next match, otherwise - * not. - */ - int yy_at_bol; - - int yy_bs_lineno; /**< The line count. */ - int yy_bs_column; /**< The column count. */ - - /* Whether to try to fill the input buffer when we reach the - * end of it. - */ - int yy_fill_buffer; - - int yy_buffer_status; - -#define YY_BUFFER_NEW 0 -#define YY_BUFFER_NORMAL 1 - /* When an EOF's been seen but there's still some text to process - * then we mark the buffer as YY_EOF_PENDING, to indicate that we - * shouldn't try reading from the input source any more. We might - * still have a bunch of tokens to match, though, because of - * possible backing-up. - * - * When we actually see the EOF, we change the status to "new" - * (via yyrestart()), so that the user can continue scanning by - * just pointing yyin at a new input file. - */ -#define YY_BUFFER_EOF_PENDING 2 - - }; -#endif /* !YY_STRUCT_YY_BUFFER_STATE */ - -/* Stack of input buffers. */ -static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */ -static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */ -static YY_BUFFER_STATE * yy_buffer_stack = NULL; /**< Stack as an array. */ - -/* We provide macros for accessing buffer states in case in the - * future we want to put the buffer states in a more general - * "scanner state". - * - * Returns the top of the stack, or NULL. - */ -#define YY_CURRENT_BUFFER ( (yy_buffer_stack) \ - ? (yy_buffer_stack)[(yy_buffer_stack_top)] \ - : NULL) -/* Same as previous macro, but useful when we know that the buffer stack is not - * NULL or when we need an lvalue. For internal use only. - */ -#define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] - -/* yy_hold_char holds the character lost when yytext is formed. */ -static char yy_hold_char; -static int yy_n_chars; /* number of characters read into yy_ch_buf */ -int yyleng; - -/* Points to current character in buffer. */ -static char *yy_c_buf_p = NULL; -static int yy_init = 0; /* whether we need to initialize */ -static int yy_start = 0; /* start state number */ - -/* Flag which is used to allow yywrap()'s to do buffer switches - * instead of setting up a fresh yyin. A bit of a hack ... - */ -static int yy_did_buffer_switch_on_eof; - -void yyrestart ( FILE *input_file ); -void yy_switch_to_buffer ( YY_BUFFER_STATE new_buffer ); -YY_BUFFER_STATE yy_create_buffer ( FILE *file, int size ); -void yy_delete_buffer ( YY_BUFFER_STATE b ); -void yy_flush_buffer ( YY_BUFFER_STATE b ); -void yypush_buffer_state ( YY_BUFFER_STATE new_buffer ); -void yypop_buffer_state ( void ); - -static void yyensure_buffer_stack ( void ); -static void yy_load_buffer_state ( void ); -static void yy_init_buffer ( YY_BUFFER_STATE b, FILE *file ); -#define YY_FLUSH_BUFFER yy_flush_buffer( YY_CURRENT_BUFFER ) - -YY_BUFFER_STATE yy_scan_buffer ( char *base, yy_size_t size ); -YY_BUFFER_STATE yy_scan_string ( const char *yy_str ); -YY_BUFFER_STATE yy_scan_bytes ( const char *bytes, int len ); - -void *yyalloc ( yy_size_t ); -void *yyrealloc ( void *, yy_size_t ); -void yyfree ( void * ); - -#define yy_new_buffer yy_create_buffer -#define yy_set_interactive(is_interactive) \ - { \ - if ( ! YY_CURRENT_BUFFER ){ \ - yyensure_buffer_stack (); \ - YY_CURRENT_BUFFER_LVALUE = \ - yy_create_buffer( yyin, YY_BUF_SIZE ); \ - } \ - YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \ - } -#define yy_set_bol(at_bol) \ - { \ - if ( ! YY_CURRENT_BUFFER ){\ - yyensure_buffer_stack (); \ - YY_CURRENT_BUFFER_LVALUE = \ - yy_create_buffer( yyin, YY_BUF_SIZE ); \ - } \ - YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \ - } -#define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) - -/* Begin user sect3 */ -typedef flex_uint8_t YY_CHAR; - -FILE *yyin = NULL, *yyout = NULL; - -typedef int yy_state_type; - -extern int yylineno; -int yylineno = 1; - -extern char *yytext; -#ifdef yytext_ptr -#undef yytext_ptr -#endif -#define yytext_ptr yytext - -static yy_state_type yy_get_previous_state ( void ); -static yy_state_type yy_try_NUL_trans ( yy_state_type current_state ); -static int yy_get_next_buffer ( void ); -static void yynoreturn yy_fatal_error ( const char* msg ); - -/* Done after the current pattern has been matched and before the - * corresponding action - sets up yytext. - */ -#define YY_DO_BEFORE_ACTION \ - (yytext_ptr) = yy_bp; \ - (yytext_ptr) -= (yy_more_len); \ - yyleng = (int) (yy_cp - (yytext_ptr)); \ - (yy_hold_char) = *yy_cp; \ - *yy_cp = '\0'; \ - (yy_c_buf_p) = yy_cp; -#define YY_NUM_RULES 375 -#define YY_END_OF_BUFFER 376 -/* This struct is not used in this scanner, - but its presence is necessary. */ -struct yy_trans_info - { - flex_int32_t yy_verify; - flex_int32_t yy_nxt; - }; -static const flex_int16_t yy_accept[3713] = - { 0, - 1, 1, 349, 349, 353, 353, 357, 357, 361, 361, - 1, 1, 365, 365, 369, 369, 376, 373, 1, 347, - 347, 374, 2, 374, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 349, 350, 350, 351, - 374, 353, 354, 354, 355, 374, 360, 357, 358, 358, - 359, 374, 361, 362, 362, 363, 374, 372, 348, 2, - 352, 374, 372, 368, 365, 366, 366, 367, 374, 369, - 370, 370, 371, 374, 373, 0, 1, 2, 2, 2, - 2, 373, 373, 373, 373, 373, 373, 373, 373, 373, - - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 349, - 0, 353, 0, 360, 0, 357, 361, 0, 372, 0, - 2, 2, 372, 368, 0, 365, 369, 0, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 372, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - - 373, 373, 373, 373, 373, 345, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 134, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 144, 373, 373, 373, 373, - 373, 373, 373, 372, 373, 373, 373, 373, 373, 373, - - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 116, 373, 344, 373, - 373, 373, 373, 373, 373, 373, 373, 8, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 135, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 149, 373, 373, 372, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 337, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 372, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 69, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 262, 373, 14, 15, 373, 19, 18, 373, 373, - 242, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 142, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 240, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 3, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 372, 373, 373, 373, - 373, 373, 373, 373, 329, 373, 373, 328, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 356, - 373, 373, 373, 373, 373, 373, 373, 373, 68, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 72, 373, 298, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 338, - 339, 373, 373, 373, 373, 373, 373, 373, 373, 73, - 373, 373, 143, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 138, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 229, - - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 21, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 170, 373, 373, 373, 373, - 373, 372, 356, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 114, 373, 373, 373, 373, 373, - 373, 373, 306, 373, 373, 373, 373, 373, 373, 373, - - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 197, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 169, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 113, 373, 373, 373, 373, 373, 373, - - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 35, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 36, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 70, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 141, 373, 373, 373, 372, - 373, 373, 373, 373, 373, 133, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - - 373, 71, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 266, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 198, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 58, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 284, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 63, 373, 64, 373, 373, 373, 373, 373, 117, 373, - 118, 373, 373, 373, 373, 373, 115, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - - 7, 373, 373, 373, 373, 372, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 251, 373, 373, 373, 373, 173, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 267, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 49, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - - 59, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 220, 373, 219, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 16, 17, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 74, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 228, 373, 373, 373, 373, 373, 373, 120, 373, 119, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 211, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 150, 373, 373, 373, - 372, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 108, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 95, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 241, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 100, 373, - - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 67, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 214, 215, 373, 373, 373, - 300, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 6, 373, 373, 373, - 373, 373, 373, 373, 319, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 304, 373, 373, 373, 373, 373, - - 373, 373, 330, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 46, 373, 373, - 373, 373, 373, 48, 373, 373, 373, 96, 373, 373, - 373, 373, 373, 56, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 372, 373, 207, 373, 373, - 373, 145, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 233, 373, 208, 373, 373, 373, 248, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 57, - - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 147, 126, 373, 127, 373, 373, 373, 373, 125, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 166, 373, 373, 54, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 283, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 209, 373, 373, 373, 373, 373, - 212, 373, 218, 373, 373, 373, 373, 373, 373, 373, - 373, 247, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 112, - - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 139, 373, 373, 373, 373, 373, 373, 373, 373, 65, - 373, 373, 373, 29, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 20, 373, 373, 373, - 373, 373, 373, 373, 30, 39, 373, 178, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 205, 373, 373, 372, 373, 373, 373, 373, - 373, 373, 82, 84, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 308, 373, 373, - - 373, 373, 263, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 128, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 165, - 373, 50, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 257, 373, 373, 373, 373, 373, 373, 373, - 323, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 172, 373, 373, 373, 373, 373, 373, 373, - - 373, 373, 373, 373, 373, 373, 317, 373, 373, 373, - 373, 239, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 335, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 190, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 121, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 185, 373, 199, 373, 373, 373, 373, 373, 373, 373, - 372, 373, 153, 373, 373, 373, 373, 373, 107, 373, - 373, 373, 373, 231, 373, 373, 373, 373, 373, 373, - - 249, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 275, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 146, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 189, 373, - 373, 373, 373, 373, 373, 373, 85, 373, 86, 373, - 373, 373, 373, 373, 260, 373, 373, 373, 373, 66, - 326, 373, 373, 373, 373, 373, 94, 200, 373, 221, - 373, 252, 373, 373, 213, 301, 373, 373, 373, 373, - 296, 373, 373, 373, 78, 373, 202, 373, 373, 373, - - 373, 373, 373, 9, 373, 373, 373, 373, 373, 111, - 373, 373, 373, 373, 373, 373, 288, 373, 373, 373, - 373, 373, 230, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 372, 373, - 373, 373, 373, 188, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 174, 373, 307, 373, 373, 373, - - 373, 373, 274, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 243, 373, 373, 373, 373, 373, - 373, 299, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 171, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 327, 373, 201, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 77, 79, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 110, 373, 373, 373, 373, - 373, 373, 286, 373, 373, 373, 373, 373, 373, 303, - - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 235, 37, 31, 33, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 38, 373, 32, 34, 373, 40, 373, 373, 373, 373, - 373, 373, 373, 106, 373, 184, 373, 373, 373, 373, - 373, 373, 373, 372, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 237, 234, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 76, 373, 373, 373, - 148, 373, 129, 373, 373, 373, 373, 373, 373, 373, - - 373, 373, 373, 373, 167, 51, 373, 373, 373, 364, - 13, 373, 373, 373, 373, 373, 373, 373, 154, 373, - 373, 373, 373, 373, 373, 373, 321, 373, 324, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 12, 373, 373, 22, 373, 373, 373, 373, - 373, 373, 373, 292, 373, 373, 373, 373, 373, 373, - 305, 373, 373, 373, 373, 80, 373, 245, 373, 373, - 373, 373, 373, 236, 373, 373, 373, 75, 373, 373, - 373, 373, 373, 373, 23, 373, 373, 47, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - - 183, 182, 373, 373, 364, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 238, 232, 373, 250, 373, 373, - 309, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 195, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 87, 373, - 373, 373, 373, 373, 373, 373, 287, 373, 373, 373, - 373, 217, 373, 373, 373, 373, 373, 373, 244, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 294, - 373, 373, 373, 331, 373, 333, 332, 180, 373, 373, - - 373, 81, 373, 373, 373, 373, 191, 373, 373, 373, - 373, 122, 124, 123, 373, 373, 373, 25, 373, 373, - 175, 373, 177, 373, 222, 373, 373, 373, 373, 181, - 373, 373, 373, 373, 253, 373, 373, 373, 373, 373, - 373, 373, 156, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 265, 373, 373, 373, 373, - 373, 373, 373, 342, 373, 27, 373, 302, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 92, 223, 373, 373, - 259, 373, 373, 285, 373, 325, 373, 216, 373, 373, - - 297, 373, 373, 373, 295, 60, 373, 373, 373, 373, - 373, 373, 373, 4, 373, 373, 373, 373, 373, 137, - 373, 155, 373, 373, 373, 196, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 256, 41, 42, 373, 373, - 373, 373, 373, 373, 373, 310, 373, 373, 373, 373, - 373, 373, 373, 273, 373, 373, 373, 373, 373, 373, - 373, 373, 226, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 91, 90, - 373, 373, 61, 373, 373, 291, 373, 261, 373, 373, - - 373, 373, 373, 11, 373, 373, 373, 373, 346, 373, - 373, 373, 373, 373, 136, 373, 373, 373, 373, 373, - 373, 224, 97, 373, 373, 44, 373, 373, 373, 373, - 373, 373, 373, 373, 187, 373, 373, 373, 373, 373, - 373, 373, 158, 373, 373, 373, 373, 264, 373, 373, - 373, 373, 373, 272, 373, 373, 373, 373, 151, 373, - 373, 373, 130, 132, 131, 373, 373, 373, 99, 103, - 98, 373, 168, 373, 373, 373, 373, 88, 373, 258, - 293, 373, 373, 373, 373, 373, 373, 10, 373, 373, - 373, 373, 373, 289, 336, 373, 373, 373, 373, 373, - - 373, 373, 373, 341, 43, 373, 373, 373, 373, 373, - 186, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 104, 102, 373, 373, - 55, 373, 373, 89, 373, 322, 373, 373, 373, 373, - 24, 373, 373, 373, 373, 373, 210, 373, 373, 334, - 373, 373, 373, 373, 225, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 206, 373, 373, 176, 83, 373, - 373, 373, 373, 373, 311, 373, 373, 373, 373, 373, - 373, 373, 269, 373, 373, 268, 152, 373, 373, 101, - - 373, 52, 373, 373, 159, 160, 163, 164, 161, 162, - 93, 320, 373, 373, 290, 140, 373, 373, 373, 373, - 26, 373, 179, 373, 373, 373, 373, 204, 373, 255, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 193, 192, 227, 45, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 318, 373, 373, 373, 373, 109, 373, 254, 373, 282, - 315, 373, 373, 373, 373, 373, 373, 373, 373, 373, - - 373, 373, 343, 373, 105, 53, 62, 5, 373, 373, - 246, 373, 373, 316, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 270, 28, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 271, 373, 373, - 373, 157, 373, 373, 373, 373, 373, 373, 373, 373, - 194, 373, 203, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 312, 373, 373, 373, 373, 373, 373, 373, - 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, - 340, 373, 373, 278, 373, 373, 373, 373, 373, 313, - 373, 373, 373, 373, 373, 373, 314, 373, 373, 373, - - 276, 373, 279, 280, 373, 373, 373, 373, 373, 277, - 281, 0 - } ; - -static const YY_CHAR yy_ec[256] = - { 0, - 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, - 1, 1, 4, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 2, 1, 5, 6, 1, 1, 1, 7, 1, - 1, 1, 1, 1, 8, 1, 1, 1, 9, 1, - 10, 11, 1, 12, 1, 1, 1, 13, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 14, 1, 1, 1, 1, 15, 16, 17, 18, - - 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, - 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, - 39, 40, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1 - } ; - -static const YY_CHAR yy_meta[41] = - { 0, - 1, 2, 3, 4, 5, 1, 6, 1, 1, 1, - 1, 1, 7, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 - } ; - -static const flex_int16_t yy_base[3731] = - { 0, - 0, 0, 38, 41, 44, 46, 59, 65, 71, 77, - 90, 112, 96, 118, 124, 136, 3764, 3709, 81, 7235, - 7235, 7235, 129, 52, 130, 63, 131, 152, 70, 140, - 149, 156, 57, 88, 76, 173, 175, 95, 197, 145, - 185, 199, 208, 213, 178, 123, 3203, 7235, 7235, 7235, - 107, 3106, 7235, 7235, 7235, 154, 2980, 2776, 7235, 7235, - 7235, 245, 2512, 7235, 7235, 7235, 163, 2418, 7235, 249, - 7235, 253, 148, 2194, 2170, 7235, 7235, 7235, 257, 1798, - 7235, 7235, 7235, 233, 1739, 263, 201, 0, 267, 0, - 0, 165, 191, 221, 252, 205, 181, 265, 92, 261, - - 216, 263, 271, 272, 210, 279, 274, 282, 278, 291, - 283, 286, 276, 285, 295, 293, 306, 314, 297, 313, - 317, 311, 315, 319, 321, 331, 327, 332, 336, 322, - 339, 337, 346, 345, 347, 348, 353, 351, 357, 284, - 358, 359, 369, 360, 380, 365, 381, 379, 375, 366, - 367, 389, 390, 394, 393, 395, 396, 403, 404, 1474, - 419, 1334, 422, 1196, 429, 1065, 933, 433, 713, 437, - 441, 0, 433, 515, 447, 479, 364, 452, 411, 445, - 426, 446, 447, 448, 449, 450, 451, 453, 452, 456, - 470, 234, 463, 473, 481, 479, 476, 483, 486, 493, - - 488, 489, 495, 491, 501, 508, 505, 506, 504, 510, - 512, 513, 460, 514, 517, 529, 518, 516, 526, 538, - 539, 550, 543, 534, 551, 552, 400, 559, 555, 563, - 558, 570, 565, 574, 566, 569, 571, 576, 573, 577, - 580, 581, 578, 584, 585, 587, 589, 598, 599, 590, - 602, 596, 611, 607, 616, 612, 614, 613, 617, 541, - 627, 628, 620, 629, 630, 624, 633, 641, 637, 649, - 644, 635, 645, 647, 648, 652, 651, 656, 653, 668, - 670, 669, 672, 679, 665, 675, 666, 678, 682, 681, - 691, 654, 686, 693, 698, 683, 696, 699, 687, 702, - - 704, 705, 710, 711, 708, 7235, 718, 714, 721, 722, - 729, 726, 731, 733, 740, 741, 716, 725, 737, 739, - 744, 746, 748, 750, 742, 751, 755, 753, 759, 763, - 770, 765, 772, 785, 767, 773, 777, 806, 778, 774, - 780, 786, 796, 798, 800, 793, 807, 814, 815, 808, - 812, 819, 826, 834, 836, 816, 828, 839, 830, 838, - 820, 845, 852, 847, 7235, 849, 851, 861, 853, 862, - 865, 863, 871, 872, 875, 884, 880, 883, 893, 915, - 885, 886, 882, 895, 898, 7235, 900, 899, 939, 908, - 917, 928, 924, 904, 901, 929, 940, 943, 956, 757, - - 945, 921, 963, 959, 946, 948, 932, 969, 960, 976, - 971, 961, 973, 977, 984, 979, 980, 983, 989, 990, - 992, 993, 997, 998, 994, 1003, 1012, 1013, 1001, 995, - 1007, 1015, 891, 1019, 1018, 1041, 1030, 1020, 1034, 1021, - 1028, 1042, 1035, 1043, 1044, 1047, 1052, 1045, 1060, 1051, - 1067, 1063, 1069, 1070, 1078, 1073, 1074, 1075, 1076, 1079, - 1085, 1080, 1083, 1087, 1088, 1090, 1091, 1097, 1099, 1106, - 1095, 1108, 1111, 1098, 1113, 1101, 7235, 1117, 7235, 1115, - 1120, 1121, 1122, 1124, 1125, 1126, 1127, 7235, 1129, 1132, - 1133, 1140, 1137, 1141, 1143, 1144, 1154, 1148, 1155, 1157, - - 1156, 1158, 1165, 1167, 1164, 1168, 1175, 1172, 1176, 1177, - 1179, 1178, 1180, 1183, 1187, 1188, 1189, 1190, 1209, 7235, - 1191, 1195, 1197, 1201, 1194, 1202, 1206, 1214, 1221, 1219, - 1227, 1220, 1224, 1237, 1238, 1240, 1241, 1243, 1245, 1246, - 1248, 1249, 1254, 1251, 1255, 1257, 1259, 1260, 1262, 1268, - 1261, 1264, 1275, 7235, 1274, 1272, 1284, 1291, 1286, 1287, - 1271, 1289, 1292, 1293, 1295, 1296, 1304, 1294, 1297, 1301, - 1314, 1310, 1319, 1312, 1317, 1315, 1316, 1321, 1325, 1323, - 1327, 1336, 1333, 1338, 1341, 1350, 1348, 1352, 1355, 1359, - 1345, 1354, 1356, 1357, 1361, 1362, 1364, 1367, 1369, 1365, - - 1371, 1373, 1382, 1378, 1379, 1384, 1380, 1386, 1391, 1389, - 1387, 1394, 1393, 1395, 1396, 1403, 1401, 1405, 1410, 1407, - 1414, 1409, 1417, 1423, 1424, 1420, 1426, 7235, 1436, 1431, - 1432, 1438, 1439, 1443, 1445, 1437, 1447, 1448, 1449, 1451, - 1452, 1458, 1454, 1459, 1461, 1460, 1468, 1467, 1470, 1473, - 1475, 1471, 1484, 1491, 1490, 1492, 1476, 1486, 1495, 1496, - 1480, 1504, 1502, 1511, 1503, 1508, 1510, 1512, 1519, 1514, - 1516, 1517, 1526, 1521, 1523, 1525, 1524, 1534, 1531, 1539, - 1542, 1547, 1543, 1548, 1557, 1549, 1552, 1559, 1554, 1562, - 1558, 1565, 1566, 1567, 1568, 1575, 1570, 1571, 1572, 1578, - - 1579, 1581, 1582, 1589, 1596, 1591, 1592, 1595, 1598, 1599, - 1602, 1601, 1608, 1603, 1609, 1610, 1612, 1613, 1618, 1616, - 1614, 1633, 1622, 1624, 1634, 1625, 1635, 1638, 1641, 1642, - 1644, 1647, 1646, 1648, 1656, 1657, 1649, 1658, 1650, 1663, - 1664, 1666, 1674, 1670, 1676, 1680, 1669, 1681, 1671, 1682, - 1685, 1688, 1691, 1694, 1697, 1689, 7235, 1695, 1705, 1701, - 1703, 1704, 1708, 1709, 1717, 1710, 1712, 1713, 1715, 1722, - 1743, 7235, 1720, 7235, 7235, 1724, 7235, 7235, 1723, 1728, - 7235, 1725, 1730, 1729, 1737, 1746, 1756, 1758, 1749, 1726, - 1754, 1751, 1767, 1772, 1766, 1764, 1775, 1770, 1777, 1778, - - 1783, 1780, 1782, 1789, 1792, 1795, 1797, 1805, 1806, 1808, - 1810, 1811, 1814, 1812, 1818, 1819, 1823, 1826, 1827, 1829, - 1830, 1831, 1833, 1832, 1835, 1838, 1841, 1842, 1844, 1837, - 1845, 1856, 1854, 1847, 1864, 7235, 1860, 1872, 1857, 1861, - 1868, 1876, 1869, 1877, 1878, 1873, 1882, 1884, 1886, 1887, - 1889, 1891, 1893, 1892, 1894, 1898, 1900, 1902, 1904, 1903, - 1906, 1915, 1908, 1910, 7235, 1916, 1918, 1917, 1923, 1921, - 1931, 1932, 1922, 1920, 1924, 1935, 1944, 1939, 1946, 1940, - 1942, 1949, 1950, 1951, 1954, 7235, 1960, 1964, 1952, 1966, - 1956, 1959, 1967, 1968, 1972, 1975, 1970, 1976, 1978, 1981, - - 1988, 1985, 1983, 1986, 1989, 1991, 1997, 1998, 1999, 2004, - 2011, 2001, 2007, 2012, 2014, 2015, 2016, 2017, 2018, 2022, - 2024, 2025, 2032, 2029, 2041, 2031, 2028, 2046, 2053, 2050, - 2030, 2051, 2033, 2052, 2055, 2064, 2065, 2057, 2061, 2062, - 2072, 2067, 2069, 2070, 2076, 2074, 2084, 2080, 2082, 2093, - 2085, 2089, 2091, 2097, 7235, 2098, 2099, 7235, 2101, 2100, - 2102, 2124, 2103, 2106, 2111, 2118, 2105, 2108, 2119, 2125, - 2131, 2128, 2138, 2141, 2143, 2144, 2146, 2147, 2151, 2149, - 2153, 2155, 2156, 2159, 2164, 2115, 2166, 2178, 2179, 2175, - 2182, 2186, 2165, 2181, 2183, 2202, 2184, 2185, 2191, 2192, - - 2188, 2193, 2199, 2195, 2197, 2206, 2211, 2212, 2217, 2224, - 2214, 2215, 2223, 2226, 2225, 2229, 2235, 2232, 2237, 7235, - 2244, 2245, 2239, 2246, 2240, 2255, 2254, 2250, 7235, 2252, - 2256, 2260, 2268, 2263, 2264, 2266, 2267, 2270, 2273, 2274, - 2279, 2280, 2275, 2277, 2291, 7235, 2282, 7235, 2278, 2290, - 2295, 2296, 2303, 2299, 2300, 2304, 2302, 2306, 2307, 7235, - 7235, 2308, 2315, 2325, 2327, 2329, 2319, 2316, 2330, 7235, - 2332, 2339, 7235, 2336, 2334, 2341, 2342, 2335, 2345, 2346, - 2347, 2350, 2357, 2352, 2359, 2354, 2358, 2362, 7235, 2366, - 2368, 2370, 2373, 2374, 2377, 2375, 2380, 2381, 2382, 7235, - - 2383, 2387, 2390, 2398, 2400, 2388, 2395, 2401, 2405, 2402, - 2407, 2408, 2409, 2410, 2417, 2421, 2422, 2414, 2424, 2431, - 2427, 2436, 7235, 2433, 2434, 2435, 2443, 2439, 2441, 2442, - 2445, 2448, 2446, 2447, 2456, 2457, 2450, 2458, 2449, 2462, - 2465, 2475, 2476, 2468, 2472, 2479, 2471, 2473, 2480, 2481, - 2309, 2482, 2485, 2486, 2488, 7235, 2489, 2496, 2493, 2497, - 2498, 2491, 171, 2504, 2506, 2507, 2509, 2515, 2517, 2510, - 2526, 2528, 2523, 2527, 2529, 2533, 2534, 2535, 2536, 2525, - 2537, 2543, 2542, 2544, 7235, 2546, 2547, 2551, 2552, 2553, - 2554, 2565, 7235, 2558, 2571, 2555, 2576, 2566, 2564, 2577, - - 2568, 2582, 2583, 2585, 2586, 2589, 2594, 2591, 2593, 2595, - 2597, 7235, 2599, 2603, 2604, 2602, 2610, 2613, 2611, 2612, - 2614, 2618, 2621, 2619, 2623, 2626, 2625, 2628, 2632, 2635, - 2631, 2636, 2645, 2640, 2642, 2643, 2648, 2651, 2653, 2654, - 2655, 2656, 2664, 2657, 7235, 2667, 2659, 2668, 2675, 2666, - 2669, 2676, 2672, 2693, 2678, 2688, 2690, 2694, 2704, 2698, - 2691, 2707, 2714, 2716, 2699, 2724, 2720, 2726, 2728, 2689, - 2732, 2734, 2722, 2730, 2741, 2744, 2740, 2736, 2746, 2747, - 2749, 2750, 2757, 2759, 2755, 2754, 2706, 2756, 2762, 2761, - 2777, 2782, 2773, 7235, 2781, 2771, 2769, 2783, 2787, 2794, - - 2790, 2791, 2792, 2795, 2798, 2800, 2802, 2803, 2810, 2805, - 2808, 2814, 2811, 2818, 2812, 2815, 2827, 2828, 2816, 2830, - 2832, 2829, 2837, 2838, 7235, 2839, 2843, 2833, 2845, 2850, - 2847, 2856, 2857, 2859, 2851, 2853, 2860, 2862, 2863, 2679, - 2865, 2866, 2875, 2871, 2870, 2878, 2873, 7235, 2882, 2877, - 2884, 2888, 2887, 2889, 2890, 2895, 2896, 2902, 2903, 2905, - 2906, 2908, 2909, 2912, 7235, 2917, 2919, 2915, 2918, 2927, - 2922, 2926, 2928, 2930, 2932, 7235, 2933, 2935, 854, 2934, - 2936, 2937, 2946, 2947, 2942, 7235, 2950, 2943, 2951, 2954, - 2955, 2958, 2959, 2961, 2964, 2965, 2968, 2970, 2979, 2966, - - 2976, 7235, 2969, 2993, 2973, 2985, 2995, 2982, 2983, 2997, - 2999, 3000, 3006, 3002, 7235, 3011, 3010, 3013, 3023, 3001, - 3018, 3019, 3021, 3025, 3027, 3028, 3029, 3031, 3033, 7235, - 3034, 3038, 3039, 3040, 3043, 3042, 3035, 3051, 3050, 3052, - 3055, 3058, 3061, 3063, 3064, 3065, 3059, 3075, 3067, 3073, - 3069, 3077, 3081, 3079, 3084, 3071, 3088, 3098, 3101, 3096, - 3099, 3103, 3105, 3097, 3104, 3107, 3114, 3115, 3122, 3117, - 3119, 7235, 3124, 3126, 3127, 3128, 3121, 3129, 3132, 3131, - 3134, 3137, 3140, 3144, 3142, 3145, 3159, 3161, 3150, 3151, - 3154, 3162, 3163, 3166, 3165, 3167, 3168, 3175, 3174, 3176, - - 3177, 3178, 3180, 3188, 3183, 3185, 3195, 3190, 3192, 3196, - 3198, 3199, 3200, 3201, 3204, 3207, 3210, 3205, 3212, 3216, - 3221, 3226, 3227, 3229, 3223, 3230, 3234, 3235, 3238, 7235, - 3237, 3241, 3239, 3242, 3247, 3250, 3251, 3258, 3253, 3259, - 3266, 3264, 3261, 3267, 3270, 3273, 3274, 3275, 3282, 3278, - 7235, 3279, 7235, 3280, 3281, 3284, 3293, 3288, 7235, 3299, - 7235, 3289, 3303, 3294, 3296, 3300, 7235, 3304, 3305, 3309, - 3306, 3311, 3313, 3317, 3318, 3319, 3320, 3321, 3328, 3323, - 3327, 3330, 3334, 3333, 3337, 3340, 3342, 3343, 3345, 3344, - 3347, 3351, 3352, 3353, 3360, 3362, 3363, 3364, 3365, 3366, - - 7235, 3370, 3373, 3367, 3378, 3375, 3377, 3379, 3385, 3386, - 3387, 3388, 3392, 3390, 3394, 3399, 3402, 3396, 3403, 3406, - 3413, 3415, 3407, 3422, 7235, 3417, 3420, 3421, 3424, 7235, - 3428, 3425, 3434, 3436, 3429, 3426, 3432, 3438, 3445, 3439, - 3442, 3448, 3452, 3456, 3459, 3460, 7235, 3453, 3461, 3451, - 3469, 3474, 3465, 3477, 3481, 3478, 3484, 3486, 3488, 3490, - 3467, 3491, 3492, 3493, 3494, 3502, 3504, 3505, 3501, 3514, - 3500, 3507, 3516, 3517, 3503, 3510, 3518, 3519, 3520, 3525, - 3527, 3528, 3526, 3524, 3531, 3532, 3529, 3536, 7235, 3545, - 3546, 3537, 3553, 3551, 3552, 3554, 3555, 3556, 3560, 3563, - - 7235, 3565, 3562, 3570, 3566, 3579, 3573, 3567, 3576, 3583, - 3584, 3587, 3585, 3586, 3589, 7235, 3591, 7235, 3590, 3594, - 3604, 3608, 3609, 3596, 3610, 3617, 3599, 3618, 3619, 3620, - 3623, 3622, 3627, 3628, 3629, 3630, 3631, 3640, 3633, 3641, - 3654, 3644, 3636, 3646, 3648, 3655, 3657, 3664, 3660, 3662, - 7235, 7235, 3661, 3667, 3670, 3672, 3668, 3678, 3676, 3679, - 3683, 3688, 3682, 3689, 3690, 3697, 7235, 3698, 3699, 3701, - 3702, 3703, 3711, 3704, 3716, 3719, 3720, 3718, 3727, 3724, - 7235, 3706, 3728, 3735, 3731, 3734, 3739, 7235, 3738, 7235, - 3736, 3740, 3741, 3745, 3747, 3748, 3749, 3754, 3751, 3756, - - 3758, 3766, 3767, 3774, 3773, 3769, 3778, 3771, 3775, 3779, - 3781, 3783, 3790, 3785, 3786, 3788, 7235, 3795, 3789, 3634, - 3792, 3799, 3800, 3803, 3801, 3804, 7235, 3811, 3812, 3813, - 3814, 3815, 3818, 3820, 3823, 3824, 3829, 3831, 3825, 3834, - 3836, 7235, 3833, 3837, 3844, 3841, 3840, 3849, 3851, 3856, - 3861, 7235, 3842, 3854, 3868, 3865, 3866, 3867, 3870, 3871, - 3872, 3874, 3875, 3876, 3877, 3879, 3883, 3884, 3880, 3887, - 3886, 3898, 3897, 3889, 3901, 3911, 3907, 7235, 3908, 3912, - 3913, 3914, 3915, 3916, 3920, 3921, 3926, 3938, 3919, 3941, - 3942, 3923, 3927, 3929, 3946, 3947, 3955, 3953, 7235, 3958, - - 3954, 3963, 3959, 3960, 3961, 3964, 3969, 3970, 3966, 3974, - 3962, 3975, 3976, 3978, 3979, 3984, 3991, 3987, 3988, 3992, - 3993, 4003, 3994, 3995, 3998, 4002, 7235, 4017, 4004, 4009, - 4019, 4012, 4020, 4028, 4025, 4026, 4027, 4030, 4031, 4032, - 4036, 4037, 4038, 4041, 4042, 7235, 7235, 4044, 4045, 4049, - 7235, 4051, 4047, 4061, 4050, 3917, 4052, 4054, 4063, 4064, - 4065, 4067, 4071, 4073, 4075, 4077, 7235, 4086, 4078, 4087, - 4082, 4085, 4094, 4089, 7235, 4090, 4104, 4096, 4100, 4099, - 4103, 4106, 4110, 4111, 4107, 4112, 4113, 4116, 4120, 4123, - 4128, 4124, 4125, 4130, 7235, 4127, 4132, 4133, 4136, 4137, - - 4139, 4141, 7235, 4143, 4145, 4151, 4153, 4146, 4164, 4165, - 4157, 4167, 4160, 4170, 4171, 4172, 4174, 4175, 4176, 4185, - 4180, 4178, 4182, 4186, 4189, 4191, 4197, 7235, 4200, 4202, - 4183, 4205, 4207, 7235, 4212, 4220, 4221, 7235, 4222, 4204, - 4223, 4217, 4231, 7235, 4224, 4233, 4226, 4234, 4227, 4245, - 4232, 4246, 4242, 4243, 4244, 4248, 4247, 7235, 4249, 4250, - 4251, 7235, 4255, 4265, 4268, 4271, 4257, 4278, 4273, 4275, - 4276, 4274, 7235, 4281, 7235, 4260, 4284, 4287, 7235, 4285, - 4289, 4290, 4292, 4293, 4294, 4298, 4304, 4306, 4300, 4308, - 4309, 4310, 4311, 4313, 4322, 4312, 4314, 4319, 4321, 7235, - - 4324, 4326, 4331, 4332, 4328, 4333, 4338, 4339, 4342, 4345, - 4343, 7235, 7235, 4353, 7235, 4346, 4354, 4355, 4357, 7235, - 4359, 4358, 4366, 4361, 4364, 4367, 4362, 4368, 4380, 4375, - 7235, 4382, 4384, 7235, 4377, 4387, 4394, 4389, 4390, 4391, - 4392, 4395, 4398, 4401, 4402, 4404, 4405, 4406, 4408, 4410, - 4409, 4427, 4415, 4423, 7235, 4411, 4417, 4432, 4436, 4428, - 4430, 4445, 4447, 4433, 7235, 4449, 4437, 4441, 4451, 4455, - 7235, 4457, 7235, 4443, 4458, 4460, 4463, 4464, 4468, 4475, - 4470, 7235, 4471, 4477, 4479, 4474, 4476, 4480, 4484, 4487, - 4485, 4486, 4493, 4501, 4494, 4496, 4498, 4508, 4497, 7235, - - 4506, 4512, 4511, 4515, 4516, 4518, 4519, 4520, 4527, 4528, - 4522, 4530, 4531, 4536, 4532, 4537, 4541, 4543, 4545, 4546, - 7235, 4549, 4551, 4554, 4555, 4567, 4557, 4559, 4558, 7235, - 4562, 4572, 4573, 7235, 4571, 4575, 4579, 4581, 4582, 4585, - 4586, 4589, 4565, 4587, 4591, 4592, 7235, 4596, 4598, 4593, - 4594, 4602, 4609, 4611, 7235, 7235, 4614, 7235, 4615, 4612, - 4616, 4619, 4617, 4623, 4625, 4627, 4639, 4622, 4626, 4630, - 4641, 4643, 7235, 4628, 4650, 4648, 4655, 4657, 4658, 4659, - 4653, 4660, 7235, 7235, 4664, 4666, 4665, 4669, 4671, 4673, - 4675, 4682, 4678, 4686, 4689, 4679, 4696, 7235, 4691, 4677, - - 4694, 4699, 7235, 4700, 4701, 4703, 4702, 4704, 4705, 4708, - 4707, 4710, 4711, 4713, 4714, 4716, 4729, 4720, 4721, 4722, - 4730, 4732, 4736, 4735, 4728, 4744, 7235, 4737, 4739, 4749, - 4750, 4752, 4753, 4754, 4755, 4759, 4757, 4762, 4766, 7235, - 4764, 7235, 4761, 4767, 4780, 4763, 4770, 4783, 4784, 4785, - 4787, 4772, 4791, 4793, 4794, 4798, 4799, 4803, 4792, 4804, - 4808, 4809, 7235, 4812, 4814, 4816, 4818, 4823, 4825, 4826, - 7235, 4828, 4820, 4829, 4832, 4835, 4837, 4838, 4842, 4843, - 4846, 4839, 4847, 4851, 4856, 4848, 4858, 4859, 4853, 4864, - 4865, 4866, 7235, 4868, 4872, 4869, 4875, 4876, 4877, 4878, - - 4880, 4886, 4890, 4881, 4891, 4893, 7235, 4892, 4896, 4898, - 4905, 7235, 4901, 4903, 4904, 4908, 4909, 4911, 4912, 4914, - 4917, 4924, 7235, 4929, 4916, 4926, 4920, 4922, 4930, 4935, - 4937, 4941, 4938, 4943, 4946, 7235, 4957, 4944, 4953, 4954, - 4952, 4955, 4960, 4961, 4962, 4965, 7235, 4969, 4971, 4973, - 4972, 4985, 4986, 4975, 4982, 4989, 4988, 4990, 4984, 4992, - 4998, 4994, 4999, 5002, 5003, 5004, 5006, 5016, 5021, 5018, - 7235, 5007, 7235, 5017, 5019, 5023, 5031, 5029, 5026, 5032, - 5034, 5036, 7235, 5041, 5043, 5045, 5040, 5042, 7235, 5048, - 5046, 5049, 5053, 7235, 5047, 5061, 5052, 5063, 5068, 5069, - - 7235, 5074, 5076, 5077, 5084, 5086, 5081, 5088, 5071, 5091, - 5083, 5089, 5093, 5096, 5100, 5099, 5101, 7235, 5098, 5104, - 5109, 5105, 5111, 5114, 5115, 5117, 5118, 5120, 5121, 7235, - 5125, 5126, 5127, 5128, 5129, 5131, 5132, 5133, 5142, 5139, - 5140, 5149, 5144, 5151, 5153, 5154, 5155, 5157, 7235, 5161, - 5158, 5160, 5169, 5177, 5167, 5164, 7235, 5178, 7235, 5168, - 5179, 5180, 5183, 5184, 7235, 5188, 5189, 5190, 5194, 7235, - 7235, 5196, 5203, 5198, 5202, 5199, 7235, 7235, 5205, 7235, - 5206, 7235, 5207, 5209, 7235, 7235, 5212, 5211, 5213, 5214, - 7235, 5215, 5218, 5227, 7235, 5229, 7235, 5236, 5219, 5232, - - 5222, 5234, 5240, 7235, 5241, 5243, 5242, 5247, 5249, 7235, - 5250, 5244, 5251, 5258, 5255, 5261, 7235, 5263, 5264, 5265, - 5268, 5271, 7235, 5269, 5275, 5272, 5278, 5281, 5279, 5280, - 5291, 5283, 5286, 5282, 5298, 5295, 5299, 5301, 5305, 5308, - 5310, 5312, 5302, 5316, 5313, 5317, 5320, 5323, 5325, 5327, - 5328, 5329, 5330, 5332, 5333, 5335, 5336, 5338, 5343, 5340, - 5345, 5346, 5347, 5352, 5356, 5357, 5359, 5360, 5366, 5361, - 5368, 5363, 5371, 5369, 5372, 5373, 5375, 5381, 5374, 5377, - 5384, 5385, 5388, 7235, 5390, 5392, 5394, 5395, 5399, 5401, - 5402, 5405, 5410, 5411, 7235, 5415, 7235, 5418, 5420, 5421, - - 5422, 5424, 7235, 5423, 5426, 5425, 5428, 5427, 5429, 5431, - 5430, 5434, 5435, 5445, 7235, 5451, 5457, 5440, 5437, 5458, - 5461, 7235, 5462, 5464, 5465, 5466, 5468, 5469, 5470, 5472, - 5473, 5477, 5475, 5474, 5480, 5482, 5489, 5479, 5492, 5495, - 7235, 5497, 5503, 5504, 5500, 5505, 5506, 5507, 5508, 5509, - 5512, 5513, 5515, 5516, 5517, 5519, 5520, 5527, 5531, 5532, - 5538, 7235, 5524, 7235, 5540, 5541, 5542, 5544, 5545, 5546, - 5547, 5548, 5551, 7235, 7235, 5553, 5556, 5555, 5562, 5557, - 5559, 5576, 5567, 5565, 5579, 7235, 5569, 5571, 5581, 5585, - 5591, 5582, 7235, 5588, 5592, 5594, 5593, 5596, 5598, 7235, - - 5599, 5600, 5602, 5604, 5608, 5610, 5615, 5617, 5618, 5619, - 5620, 5621, 5624, 7235, 7235, 7235, 7235, 5625, 5628, 5630, - 5634, 5631, 5636, 5638, 5639, 5645, 5646, 5643, 5640, 5647, - 7235, 5657, 7235, 7235, 5653, 7235, 5659, 5661, 5663, 5665, - 5650, 5667, 5666, 7235, 5670, 7235, 5672, 5678, 5671, 5680, - 5682, 5684, 5687, 5691, 5688, 5692, 5693, 5694, 5702, 5698, - 5699, 5701, 5704, 5708, 5714, 7235, 7235, 5705, 5720, 5721, - 5723, 5710, 5725, 5726, 5733, 5728, 5729, 5735, 5731, 5737, - 5736, 5747, 5748, 5738, 5739, 5750, 7235, 5752, 5753, 5760, - 7235, 5754, 7235, 5756, 5762, 5764, 5755, 5765, 5768, 5770, - - 5771, 5774, 5776, 5781, 7235, 7235, 5775, 5788, 5784, 7235, - 7235, 5785, 5787, 5789, 5791, 5795, 5792, 5796, 7235, 5797, - 5802, 5800, 5798, 5803, 5817, 5805, 7235, 5808, 7235, 5812, - 5821, 5820, 5814, 5828, 5833, 5826, 5829, 5836, 5835, 5838, - 5831, 5837, 7235, 5840, 5841, 7235, 5850, 5848, 5853, 5843, - 5852, 5859, 5855, 7235, 5862, 5860, 5865, 5867, 5869, 5872, - 7235, 5874, 5875, 5876, 5877, 7235, 5883, 7235, 5880, 5884, - 5885, 5893, 5891, 7235, 5888, 5894, 5895, 7235, 5899, 5902, - 5905, 5906, 5907, 5910, 7235, 5912, 5913, 7235, 5915, 5917, - 5918, 5922, 5924, 5926, 5927, 5928, 5929, 5936, 5933, 5934, - - 7235, 7235, 5947, 5937, 135, 5950, 5945, 5951, 5952, 5948, - 5959, 5955, 5956, 5958, 7235, 7235, 5961, 7235, 5962, 5964, - 7235, 5963, 5973, 5974, 5965, 5979, 5969, 5977, 5978, 5986, - 5981, 5990, 5989, 5991, 5994, 7235, 6005, 6012, 5996, 6008, - 6013, 6016, 6018, 6020, 6022, 6009, 6024, 6026, 6027, 6028, - 6030, 6031, 6032, 6033, 6034, 6035, 6039, 6040, 7235, 6042, - 6048, 6049, 6050, 6057, 6058, 6045, 7235, 6062, 6066, 6068, - 6069, 7235, 6071, 6072, 6075, 6077, 6078, 6079, 7235, 6080, - 6083, 6086, 6089, 6090, 6091, 6092, 6094, 6095, 6102, 7235, - 6100, 6097, 6104, 7235, 6105, 7235, 7235, 7235, 6107, 6117, - - 6111, 7235, 6119, 6114, 6121, 6122, 7235, 6124, 6126, 6133, - 6129, 7235, 7235, 7235, 6130, 6131, 6134, 7235, 6132, 6144, - 7235, 6137, 7235, 6139, 7235, 6142, 6145, 6153, 6148, 7235, - 6151, 6158, 6159, 6161, 7235, 6164, 6167, 6169, 6170, 6172, - 6174, 6175, 7235, 6182, 6178, 6181, 6185, 6177, 6187, 6188, - 6189, 6190, 6197, 6196, 6201, 7235, 6198, 6205, 6206, 6203, - 6207, 6212, 6213, 7235, 6214, 7235, 6216, 7235, 6217, 6218, - 6219, 6220, 6229, 6223, 6222, 6225, 6235, 6236, 6237, 6242, - 6244, 6245, 6246, 6248, 6250, 6251, 7235, 7235, 6260, 6252, - 7235, 6255, 6265, 7235, 6258, 7235, 6268, 7235, 6262, 6269, - - 7235, 6271, 6273, 6275, 7235, 7235, 6282, 6274, 6277, 6290, - 6283, 6288, 6291, 7235, 6292, 6295, 6296, 6298, 6300, 7235, - 6303, 7235, 6301, 6308, 6307, 7235, 6304, 6305, 6314, 6318, - 6319, 6320, 6323, 6324, 6327, 6325, 6338, 6311, 6329, 6328, - 6344, 6337, 6346, 6347, 6353, 7235, 7235, 7235, 6339, 6355, - 6362, 6358, 6360, 6365, 6361, 7235, 6364, 6367, 6368, 6370, - 6377, 6374, 6381, 7235, 6372, 6376, 6378, 6382, 6386, 6383, - 6388, 6387, 7235, 6398, 6400, 6406, 6407, 6401, 6408, 6410, - 6417, 6419, 6411, 6422, 6414, 6423, 6430, 6426, 7235, 7235, - 6429, 6425, 7235, 6433, 6435, 7235, 6436, 7235, 6437, 6438, - - 6439, 6440, 6442, 7235, 6445, 6446, 6447, 6450, 7235, 6448, - 6452, 6454, 6457, 6463, 7235, 6451, 6471, 6470, 6473, 6474, - 6475, 7235, 7235, 6476, 6478, 7235, 6482, 6483, 6484, 6491, - 6487, 6486, 6496, 6500, 7235, 6489, 6501, 6502, 6503, 6504, - 6507, 6508, 7235, 6510, 6511, 6512, 6513, 7235, 6516, 6515, - 6520, 6521, 6524, 7235, 6535, 6525, 6547, 6539, 7235, 6526, - 6390, 6536, 7235, 7235, 7235, 6528, 6551, 6548, 7235, 7235, - 7235, 6543, 7235, 6554, 6555, 6556, 6562, 7235, 6557, 7235, - 7235, 6564, 6568, 6573, 6577, 6581, 6580, 7235, 6569, 6582, - 6586, 6583, 6588, 7235, 7235, 6590, 6592, 6567, 6594, 6595, - - 6597, 6598, 6599, 7235, 7235, 6603, 6604, 6605, 6606, 6607, - 7235, 6608, 6612, 6621, 6618, 6623, 6630, 6632, 6610, 6633, - 6634, 6641, 6642, 6637, 6639, 6644, 6645, 6647, 6648, 6656, - 6657, 6653, 6661, 6664, 6658, 6666, 7235, 7235, 6669, 6670, - 7235, 6675, 6672, 7235, 6676, 7235, 6678, 6680, 6683, 6686, - 7235, 6688, 6690, 6692, 6696, 6693, 7235, 6697, 6699, 7235, - 6701, 6702, 6703, 6704, 7235, 6705, 6708, 6709, 6713, 6710, - 6714, 6717, 6721, 6731, 7235, 6718, 6735, 7235, 7235, 6723, - 6736, 6716, 6737, 6726, 7235, 6740, 6751, 6732, 6747, 6748, - 6750, 6749, 7235, 6753, 6754, 7235, 7235, 6756, 6755, 7235, - - 6757, 7235, 6761, 6762, 7235, 7235, 7235, 7235, 7235, 7235, - 7235, 7235, 6764, 6771, 7235, 7235, 6766, 6773, 6776, 6778, - 7235, 6781, 7235, 6783, 6784, 6785, 6788, 7235, 6786, 7235, - 6790, 6791, 6792, 5998, 6794, 6795, 6798, 6799, 6801, 6804, - 6803, 6807, 6805, 6812, 6810, 6816, 6817, 6821, 6823, 6831, - 6825, 6827, 7235, 7235, 7235, 7235, 6833, 6834, 6836, 6839, - 6841, 6843, 6850, 6852, 6838, 6846, 6853, 6855, 6858, 6859, - 6861, 6868, 6864, 6865, 6867, 6870, 6871, 6874, 6880, 6882, - 7235, 6886, 6875, 6883, 6888, 7235, 6889, 7235, 6892, 7235, - 7235, 6894, 6895, 6897, 6898, 6906, 6907, 6899, 6903, 6908, - - 6909, 6912, 7235, 6919, 7235, 7235, 7235, 7235, 6915, 6920, - 7235, 6921, 6922, 7235, 6923, 6924, 6925, 6928, 6932, 6930, - 6933, 6934, 6947, 7235, 7235, 6931, 6937, 6942, 6953, 6954, - 6956, 6957, 6960, 6962, 6963, 6964, 6972, 7235, 6970, 6971, - 6974, 7235, 6975, 6977, 6978, 6980, 6981, 6988, 6984, 6989, - 7235, 6986, 7235, 6991, 6992, 6993, 6994, 6995, 6997, 7005, - 7007, 7008, 7235, 7009, 7015, 7011, 7017, 7019, 7022, 7024, - 7023, 7026, 7028, 7032, 7037, 7038, 7039, 7029, 7044, 7040, - 7235, 7051, 7041, 7235, 7047, 7053, 7043, 7054, 7055, 7235, - 7064, 7057, 7061, 7065, 7068, 7070, 7235, 7072, 7075, 7078, - - 7235, 7079, 7235, 7235, 7081, 7069, 7082, 7090, 7092, 7235, - 7235, 7235, 7115, 7122, 7129, 7136, 7143, 7150, 7157, 88, - 7164, 7171, 7178, 7185, 7192, 7199, 7206, 7213, 7220, 7227 - } ; - -static const flex_int16_t yy_def[3731] = - { 0, - 3712, 1, 3713, 3713, 3714, 3714, 3715, 3715, 3716, 3716, - 3717, 3717, 3718, 3718, 3719, 3719, 3712, 3720, 3712, 3712, - 3712, 3712, 3721, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3722, 3712, 3712, 3712, - 3722, 3723, 3712, 3712, 3712, 3723, 3724, 3712, 3712, 3712, - 3712, 3724, 3725, 3712, 3712, 3712, 3725, 3726, 3712, 3727, - 3712, 3726, 3726, 3728, 3712, 3712, 3712, 3712, 3728, 3729, - 3712, 3712, 3712, 3729, 3720, 3720, 3712, 3730, 3721, 3730, - 3721, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3722, - 3722, 3723, 3723, 3724, 3724, 3712, 3725, 3725, 3726, 3726, - 3727, 3727, 3726, 3728, 3728, 3712, 3729, 3729, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3726, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - - 3720, 3720, 3720, 3720, 3720, 3712, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3712, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3712, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3726, 3720, 3720, 3720, 3720, 3720, 3720, - - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3712, 3720, 3712, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3712, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3712, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3712, 3720, 3720, 3726, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3712, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3726, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3712, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3712, 3720, 3712, 3712, 3720, 3712, 3712, 3720, 3720, - 3712, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3712, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3712, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3712, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3726, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3712, 3720, 3720, 3712, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3712, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3712, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3712, 3720, 3712, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3712, - 3712, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3712, - 3720, 3720, 3712, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3712, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3712, - - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3712, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3712, 3720, 3720, 3720, 3720, - 3720, 3726, 3726, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3712, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3712, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3712, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3712, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3712, 3720, 3720, 3720, 3720, 3720, 3720, - - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3712, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3712, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3712, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3712, 3720, 3720, 3720, 3726, - 3720, 3720, 3720, 3720, 3720, 3712, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - - 3720, 3712, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3712, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3712, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3712, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3712, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3712, 3720, 3712, 3720, 3720, 3720, 3720, 3720, 3712, 3720, - 3712, 3720, 3720, 3720, 3720, 3720, 3712, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - - 3712, 3720, 3720, 3720, 3720, 3726, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3712, 3720, 3720, 3720, 3720, 3712, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3712, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3712, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - - 3712, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3712, 3720, 3712, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3712, 3712, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3712, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3712, 3720, 3720, 3720, 3720, 3720, 3720, 3712, 3720, 3712, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3712, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3712, 3720, 3720, 3720, - 3726, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3712, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3712, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3712, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3712, 3720, - - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3712, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3712, 3712, 3720, 3720, 3720, - 3712, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3712, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3712, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3712, 3720, 3720, 3720, 3720, 3720, - - 3720, 3720, 3712, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3712, 3720, 3720, - 3720, 3720, 3720, 3712, 3720, 3720, 3720, 3712, 3720, 3720, - 3720, 3720, 3720, 3712, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3726, 3720, 3712, 3720, 3720, - 3720, 3712, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3712, 3720, 3712, 3720, 3720, 3720, 3712, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3712, - - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3712, 3712, 3720, 3712, 3720, 3720, 3720, 3720, 3712, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3712, 3720, 3720, 3712, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3712, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3712, 3720, 3720, 3720, 3720, 3720, - 3712, 3720, 3712, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3712, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3712, - - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3712, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3712, - 3720, 3720, 3720, 3712, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3712, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3712, 3712, 3720, 3712, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3712, 3720, 3720, 3726, 3720, 3720, 3720, 3720, - 3720, 3720, 3712, 3712, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3712, 3720, 3720, - - 3720, 3720, 3712, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3712, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3712, - 3720, 3712, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3712, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3712, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3712, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - - 3720, 3720, 3720, 3720, 3720, 3720, 3712, 3720, 3720, 3720, - 3720, 3712, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3712, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3712, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3712, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3712, 3720, 3712, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3726, 3720, 3712, 3720, 3720, 3720, 3720, 3720, 3712, 3720, - 3720, 3720, 3720, 3712, 3720, 3720, 3720, 3720, 3720, 3720, - - 3712, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3712, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3712, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3712, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3712, 3720, 3712, 3720, - 3720, 3720, 3720, 3720, 3712, 3720, 3720, 3720, 3720, 3712, - 3712, 3720, 3720, 3720, 3720, 3720, 3712, 3712, 3720, 3712, - 3720, 3712, 3720, 3720, 3712, 3712, 3720, 3720, 3720, 3720, - 3712, 3720, 3720, 3720, 3712, 3720, 3712, 3720, 3720, 3720, - - 3720, 3720, 3720, 3712, 3720, 3720, 3720, 3720, 3720, 3712, - 3720, 3720, 3720, 3720, 3720, 3720, 3712, 3720, 3720, 3720, - 3720, 3720, 3712, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3726, 3720, - 3720, 3720, 3720, 3712, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3712, 3720, 3712, 3720, 3720, 3720, - - 3720, 3720, 3712, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3712, 3720, 3720, 3720, 3720, 3720, - 3720, 3712, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3712, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3712, 3720, 3712, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3712, 3712, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3712, 3720, 3720, 3720, 3720, - 3720, 3720, 3712, 3720, 3720, 3720, 3720, 3720, 3720, 3712, - - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3712, 3712, 3712, 3712, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3712, 3720, 3712, 3712, 3720, 3712, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3712, 3720, 3712, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3726, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3712, 3712, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3712, 3720, 3720, 3720, - 3712, 3720, 3712, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - - 3720, 3720, 3720, 3720, 3712, 3712, 3720, 3720, 3720, 3712, - 3712, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3712, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3712, 3720, 3712, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3712, 3720, 3720, 3712, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3712, 3720, 3720, 3720, 3720, 3720, 3720, - 3712, 3720, 3720, 3720, 3720, 3712, 3720, 3712, 3720, 3720, - 3720, 3720, 3720, 3712, 3720, 3720, 3720, 3712, 3720, 3720, - 3720, 3720, 3720, 3720, 3712, 3720, 3720, 3712, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - - 3712, 3712, 3720, 3720, 3726, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3712, 3712, 3720, 3712, 3720, 3720, - 3712, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3712, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3712, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3712, 3720, 3720, 3720, - 3720, 3712, 3720, 3720, 3720, 3720, 3720, 3720, 3712, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3712, - 3720, 3720, 3720, 3712, 3720, 3712, 3712, 3712, 3720, 3720, - - 3720, 3712, 3720, 3720, 3720, 3720, 3712, 3720, 3720, 3720, - 3720, 3712, 3712, 3712, 3720, 3720, 3720, 3712, 3720, 3720, - 3712, 3720, 3712, 3720, 3712, 3720, 3720, 3720, 3720, 3712, - 3720, 3720, 3720, 3720, 3712, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3712, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3712, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3712, 3720, 3712, 3720, 3712, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3712, 3712, 3720, 3720, - 3712, 3720, 3720, 3712, 3720, 3712, 3720, 3712, 3720, 3720, - - 3712, 3720, 3720, 3720, 3712, 3712, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3712, 3720, 3720, 3720, 3720, 3720, 3712, - 3720, 3712, 3720, 3720, 3720, 3712, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3712, 3712, 3712, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3712, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3712, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3712, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3712, 3712, - 3720, 3720, 3712, 3720, 3720, 3712, 3720, 3712, 3720, 3720, - - 3720, 3720, 3720, 3712, 3720, 3720, 3720, 3720, 3712, 3720, - 3720, 3720, 3720, 3720, 3712, 3720, 3720, 3720, 3720, 3720, - 3720, 3712, 3712, 3720, 3720, 3712, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3712, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3712, 3720, 3720, 3720, 3720, 3712, 3720, 3720, - 3720, 3720, 3720, 3712, 3720, 3720, 3720, 3720, 3712, 3720, - 3720, 3720, 3712, 3712, 3712, 3720, 3720, 3720, 3712, 3712, - 3712, 3720, 3712, 3720, 3720, 3720, 3720, 3712, 3720, 3712, - 3712, 3720, 3720, 3720, 3720, 3720, 3720, 3712, 3720, 3720, - 3720, 3720, 3720, 3712, 3712, 3720, 3720, 3720, 3720, 3720, - - 3720, 3720, 3720, 3712, 3712, 3720, 3720, 3720, 3720, 3720, - 3712, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3712, 3712, 3720, 3720, - 3712, 3720, 3720, 3712, 3720, 3712, 3720, 3720, 3720, 3720, - 3712, 3720, 3720, 3720, 3720, 3720, 3712, 3720, 3720, 3712, - 3720, 3720, 3720, 3720, 3712, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3712, 3720, 3720, 3712, 3712, 3720, - 3720, 3720, 3720, 3720, 3712, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3712, 3720, 3720, 3712, 3712, 3720, 3720, 3712, - - 3720, 3712, 3720, 3720, 3712, 3712, 3712, 3712, 3712, 3712, - 3712, 3712, 3720, 3720, 3712, 3712, 3720, 3720, 3720, 3720, - 3712, 3720, 3712, 3720, 3720, 3720, 3720, 3712, 3720, 3712, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3712, 3712, 3712, 3712, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3712, 3720, 3720, 3720, 3720, 3712, 3720, 3712, 3720, 3712, - 3712, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - - 3720, 3720, 3712, 3720, 3712, 3712, 3712, 3712, 3720, 3720, - 3712, 3720, 3720, 3712, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3712, 3712, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3712, 3720, 3720, - 3720, 3712, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3712, 3720, 3712, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3712, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, 3720, - 3712, 3720, 3720, 3712, 3720, 3720, 3720, 3720, 3720, 3712, - 3720, 3720, 3720, 3720, 3720, 3720, 3712, 3720, 3720, 3720, - - 3712, 3720, 3712, 3712, 3720, 3720, 3720, 3720, 3720, 3712, - 3712, 0, 3712, 3712, 3712, 3712, 3712, 3712, 3712, 3712, - 3712, 3712, 3712, 3712, 3712, 3712, 3712, 3712, 3712, 3712 - } ; - -static const flex_int16_t yy_nxt[7276] = - { 0, - 18, 19, 20, 21, 22, 23, 22, 18, 18, 18, - 18, 18, 22, 24, 25, 26, 27, 28, 29, 30, - 18, 31, 32, 33, 34, 35, 36, 37, 38, 39, - 40, 41, 42, 43, 44, 45, 18, 18, 18, 46, - 48, 49, 50, 48, 49, 50, 53, 54, 53, 54, - 55, 51, 55, 85, 51, 85, 85, 56, 85, 56, - 58, 59, 60, 61, 85, 22, 58, 59, 60, 61, - 86, 22, 62, 64, 65, 66, 86, 97, 62, 64, - 65, 66, 87, 86, 67, 119, 88, 108, 85, 86, - 67, 19, 20, 21, 69, 70, 71, 75, 76, 77, - - 78, 86, 22, 72, 121, 86, 120, 109, 86, 79, - 160, 160, 73, 19, 20, 21, 69, 70, 71, 75, - 76, 77, 78, 187, 22, 72, 81, 82, 83, 130, - 90, 79, 90, 90, 73, 90, 86, 84, 81, 82, - 83, 90, 91, 86, 86, 98, 92, 93, 170, 84, - 94, 159, 99, 86, 110, 95, 100, 162, 86, 101, - 162, 170, 86, 112, 96, 86, 167, 167, 111, 86, - 102, 113, 137, 115, 103, 173, 116, 104, 86, 105, - 106, 179, 114, 117, 170, 118, 86, 122, 86, 126, - 107, 86, 156, 127, 86, 123, 157, 184, 86, 138, - - 158, 124, 87, 139, 86, 125, 88, 128, 180, 129, - 86, 131, 86, 140, 141, 132, 142, 143, 86, 133, - 144, 86, 148, 86, 149, 134, 86, 145, 135, 86, - 152, 146, 147, 150, 86, 136, 177, 177, 183, 151, - 153, 181, 196, 189, 154, 155, 164, 86, 164, 164, - 90, 164, 90, 90, 169, 90, 169, 169, 174, 169, - 174, 174, 172, 174, 85, 86, 85, 85, 90, 85, - 90, 90, 291, 90, 86, 85, 86, 182, 86, 90, - 91, 185, 190, 188, 86, 86, 197, 86, 191, 86, - 192, 86, 86, 208, 186, 86, 86, 86, 86, 86, - - 200, 199, 193, 194, 86, 198, 86, 195, 86, 201, - 86, 202, 247, 210, 206, 203, 204, 207, 209, 86, - 211, 216, 212, 205, 86, 213, 86, 86, 86, 218, - 86, 219, 86, 221, 86, 86, 227, 222, 214, 215, - 86, 228, 226, 224, 86, 86, 217, 230, 225, 86, - 86, 220, 86, 223, 231, 233, 234, 229, 86, 86, - 86, 86, 232, 236, 86, 238, 86, 242, 235, 239, - 86, 86, 86, 86, 244, 240, 237, 178, 86, 86, - 86, 241, 86, 245, 243, 250, 253, 254, 86, 246, - 255, 249, 86, 86, 86, 256, 251, 248, 262, 259, - - 252, 263, 86, 86, 261, 265, 86, 86, 86, 86, - 260, 269, 257, 86, 266, 258, 86, 86, 264, 268, - 270, 272, 160, 160, 86, 162, 267, 271, 162, 275, - 164, 273, 164, 164, 341, 164, 167, 167, 169, 86, - 169, 169, 90, 169, 90, 90, 170, 90, 174, 274, - 174, 174, 276, 174, 172, 177, 177, 278, 86, 86, - 86, 86, 86, 86, 86, 86, 86, 277, 280, 86, - 283, 286, 282, 86, 279, 281, 86, 289, 288, 285, - 176, 292, 284, 86, 290, 287, 86, 293, 294, 86, - 295, 321, 86, 298, 86, 296, 86, 303, 299, 86, - - 305, 86, 86, 300, 86, 306, 86, 308, 86, 301, - 302, 304, 297, 309, 86, 312, 310, 86, 86, 86, - 307, 86, 314, 86, 315, 86, 86, 86, 175, 86, - 86, 86, 322, 316, 311, 323, 329, 317, 319, 86, - 318, 320, 86, 324, 313, 332, 325, 86, 326, 330, - 336, 86, 86, 333, 86, 331, 86, 334, 338, 339, - 327, 378, 328, 86, 86, 86, 342, 337, 86, 335, - 344, 86, 86, 343, 340, 345, 86, 346, 86, 86, - 347, 349, 86, 86, 86, 348, 86, 86, 351, 86, - 86, 86, 350, 86, 86, 353, 359, 86, 86, 354, - - 86, 357, 86, 86, 352, 364, 360, 358, 355, 86, - 365, 86, 86, 361, 356, 86, 362, 366, 370, 368, - 86, 367, 363, 373, 86, 86, 86, 86, 376, 86, - 86, 369, 375, 86, 379, 380, 382, 86, 371, 372, - 86, 86, 86, 86, 387, 374, 86, 385, 86, 377, - 86, 384, 381, 386, 86, 383, 389, 86, 86, 390, - 170, 86, 86, 393, 86, 86, 86, 86, 388, 86, - 412, 392, 394, 396, 398, 400, 391, 401, 86, 86, - 395, 86, 86, 86, 397, 86, 404, 402, 86, 399, - 403, 86, 86, 405, 86, 86, 86, 407, 411, 86, - - 86, 413, 406, 409, 86, 408, 86, 414, 415, 86, - 417, 86, 86, 418, 416, 86, 419, 86, 86, 410, - 421, 86, 422, 86, 86, 426, 170, 86, 428, 86, - 420, 86, 423, 424, 86, 86, 430, 429, 86, 86, - 425, 427, 86, 431, 86, 433, 86, 435, 436, 438, - 86, 434, 86, 86, 86, 86, 439, 86, 442, 86, - 432, 86, 443, 86, 86, 441, 86, 445, 86, 448, - 86, 440, 86, 437, 446, 450, 86, 453, 86, 444, - 86, 454, 447, 86, 449, 86, 86, 86, 452, 462, - 86, 86, 451, 86, 471, 464, 563, 455, 86, 86, - - 472, 474, 475, 476, 463, 473, 86, 456, 477, 86, - 457, 86, 479, 86, 478, 458, 459, 460, 461, 86, - 86, 86, 465, 480, 466, 86, 481, 86, 86, 86, - 486, 488, 86, 86, 487, 482, 467, 468, 469, 86, - 470, 86, 483, 86, 489, 484, 485, 86, 490, 86, - 491, 86, 86, 497, 492, 495, 493, 494, 86, 499, - 86, 500, 86, 501, 86, 86, 86, 86, 506, 505, - 496, 507, 502, 498, 86, 86, 86, 1605, 86, 503, - 508, 510, 504, 511, 86, 86, 509, 513, 86, 518, - 512, 519, 520, 86, 517, 86, 86, 86, 86, 86, - - 514, 521, 535, 515, 86, 516, 86, 522, 86, 523, - 537, 86, 86, 86, 86, 524, 540, 170, 534, 525, - 536, 86, 602, 538, 526, 539, 542, 527, 86, 528, - 86, 529, 541, 558, 86, 553, 551, 86, 557, 552, - 554, 86, 86, 555, 530, 86, 168, 531, 565, 532, - 556, 533, 86, 86, 543, 544, 86, 559, 86, 86, - 572, 86, 560, 562, 545, 546, 547, 548, 549, 86, - 566, 550, 86, 86, 86, 561, 86, 568, 564, 570, - 567, 571, 86, 575, 86, 576, 86, 573, 574, 86, - 86, 580, 86, 86, 577, 569, 86, 86, 578, 584, - - 585, 583, 86, 86, 579, 86, 86, 86, 86, 582, - 86, 86, 591, 590, 86, 598, 86, 581, 592, 593, - 86, 587, 588, 586, 589, 86, 86, 599, 86, 595, - 596, 86, 86, 86, 86, 600, 594, 614, 617, 604, - 605, 86, 615, 86, 601, 597, 603, 86, 86, 619, - 618, 606, 616, 607, 86, 86, 86, 86, 86, 608, - 86, 622, 621, 623, 86, 86, 166, 609, 610, 620, - 624, 611, 612, 86, 626, 613, 86, 627, 625, 628, - 86, 629, 86, 86, 631, 632, 86, 86, 86, 86, - 633, 86, 86, 86, 636, 630, 86, 637, 86, 638, - - 86, 86, 634, 86, 86, 640, 644, 639, 86, 635, - 86, 86, 86, 643, 86, 646, 641, 647, 642, 86, - 649, 86, 650, 648, 86, 645, 86, 653, 86, 651, - 86, 655, 652, 86, 86, 86, 654, 86, 86, 86, - 86, 657, 86, 661, 659, 86, 86, 668, 670, 656, - 86, 672, 663, 86, 86, 658, 86, 86, 660, 662, - 664, 86, 665, 666, 669, 671, 667, 86, 86, 86, - 86, 86, 673, 677, 681, 674, 675, 86, 86, 676, - 86, 86, 684, 678, 683, 86, 679, 680, 86, 86, - 86, 86, 86, 86, 687, 690, 86, 682, 691, 686, - - 86, 86, 86, 86, 86, 693, 685, 86, 86, 165, - 86, 692, 688, 689, 86, 86, 696, 694, 708, 86, - 710, 695, 86, 697, 705, 707, 709, 86, 698, 706, - 699, 712, 86, 86, 86, 711, 700, 86, 701, 713, - 86, 702, 703, 714, 721, 716, 720, 715, 704, 718, - 86, 86, 719, 86, 86, 722, 86, 725, 86, 86, - 728, 86, 86, 730, 86, 717, 723, 86, 86, 724, - 86, 734, 86, 86, 86, 86, 732, 86, 727, 726, - 737, 86, 731, 733, 86, 86, 729, 86, 86, 743, - 738, 735, 740, 739, 741, 736, 742, 170, 745, 86, - - 86, 744, 86, 748, 86, 86, 86, 86, 86, 86, - 86, 746, 752, 757, 86, 747, 749, 86, 756, 754, - 750, 758, 753, 86, 751, 86, 760, 86, 86, 86, - 86, 755, 86, 762, 86, 759, 86, 761, 86, 765, - 86, 766, 763, 771, 764, 767, 86, 163, 772, 86, - 774, 86, 768, 775, 86, 769, 770, 776, 86, 773, - 777, 86, 779, 86, 778, 86, 780, 86, 86, 86, - 86, 781, 86, 785, 86, 86, 782, 86, 86, 786, - 86, 784, 86, 789, 86, 788, 86, 790, 783, 794, - 793, 86, 86, 86, 787, 86, 796, 86, 798, 86, - - 86, 791, 86, 792, 86, 800, 86, 86, 86, 86, - 807, 795, 803, 799, 86, 797, 86, 801, 86, 808, - 86, 802, 86, 86, 805, 804, 810, 86, 815, 806, - 86, 811, 809, 86, 812, 813, 86, 86, 814, 86, - 816, 818, 819, 822, 86, 86, 817, 820, 824, 86, - 86, 86, 86, 823, 821, 825, 86, 827, 86, 828, - 86, 86, 86, 829, 86, 86, 830, 86, 832, 834, - 836, 86, 86, 86, 86, 833, 837, 826, 831, 839, - 86, 86, 845, 86, 86, 835, 86, 161, 86, 86, - 846, 838, 843, 86, 840, 841, 842, 86, 844, 86, - - 847, 848, 849, 86, 86, 86, 850, 852, 86, 86, - 851, 857, 856, 853, 855, 86, 86, 86, 859, 860, - 858, 86, 854, 86, 86, 86, 864, 86, 862, 86, - 86, 865, 86, 871, 86, 868, 86, 86, 86, 86, - 866, 863, 867, 874, 86, 873, 861, 86, 876, 869, - 870, 877, 86, 872, 881, 86, 86, 875, 879, 878, - 86, 86, 86, 887, 885, 86, 883, 86, 882, 886, - 86, 86, 86, 880, 889, 86, 884, 891, 86, 86, - 86, 86, 897, 86, 86, 86, 890, 898, 86, 892, - 888, 86, 86, 899, 86, 86, 893, 894, 904, 895, - - 900, 896, 86, 907, 86, 86, 901, 905, 86, 86, - 902, 86, 86, 903, 86, 86, 86, 906, 914, 909, - 910, 86, 86, 86, 908, 86, 86, 86, 924, 86, - 911, 86, 916, 912, 913, 86, 922, 86, 86, 915, - 917, 918, 919, 923, 920, 921, 86, 86, 86, 926, - 925, 86, 929, 930, 86, 86, 927, 86, 928, 86, - 86, 86, 86, 86, 934, 935, 936, 931, 933, 86, - 86, 86, 942, 932, 938, 939, 86, 86, 941, 86, - 940, 946, 86, 170, 86, 937, 944, 86, 947, 86, - 943, 945, 948, 86, 86, 86, 950, 949, 86, 952, - - 955, 86, 86, 951, 86, 956, 958, 86, 86, 953, - 86, 960, 962, 957, 86, 959, 86, 86, 86, 954, - 964, 86, 86, 86, 968, 86, 86, 961, 86, 965, - 86, 969, 970, 86, 963, 86, 86, 86, 86, 86, - 967, 86, 86, 86, 971, 983, 966, 984, 981, 986, - 86, 987, 86, 972, 982, 973, 86, 993, 974, 86, - 985, 975, 86, 989, 86, 976, 988, 86, 977, 86, - 990, 86, 991, 992, 996, 978, 979, 86, 980, 86, - 86, 994, 1006, 86, 995, 86, 997, 998, 86, 999, - 86, 86, 1000, 86, 1009, 86, 86, 1001, 1013, 1005, - - 1011, 1008, 86, 1002, 1003, 86, 1004, 1015, 86, 1007, - 86, 178, 1019, 1018, 1014, 1010, 1012, 1020, 86, 86, - 1016, 86, 1022, 86, 86, 86, 1021, 86, 1025, 1024, - 1026, 86, 86, 1017, 1027, 1029, 86, 1028, 1023, 86, - 86, 1030, 86, 86, 86, 86, 86, 1033, 86, 1037, - 86, 86, 1031, 1036, 86, 86, 1040, 86, 86, 1046, - 86, 1032, 1042, 1044, 1034, 1035, 1038, 86, 1039, 86, - 86, 1047, 1045, 86, 86, 1041, 1048, 86, 1049, 1050, - 1043, 86, 86, 1054, 1056, 86, 86, 1055, 1051, 86, - 86, 86, 1058, 1052, 1057, 86, 1060, 86, 1061, 86, - - 86, 1053, 86, 1059, 86, 86, 86, 86, 1062, 1064, - 1065, 86, 1066, 86, 1070, 86, 86, 86, 1073, 86, - 1063, 86, 1074, 86, 1072, 1067, 1071, 1068, 86, 86, - 86, 86, 1069, 86, 86, 86, 86, 86, 1077, 1075, - 1078, 1080, 1076, 1081, 86, 86, 1086, 1082, 86, 1084, - 1083, 1088, 86, 86, 1079, 86, 1089, 86, 1085, 86, - 1091, 1087, 86, 86, 86, 86, 1090, 86, 1092, 86, - 1097, 1094, 86, 86, 1093, 1099, 1100, 86, 1098, 86, - 86, 86, 1096, 86, 1102, 86, 1101, 1095, 86, 86, - 1103, 86, 1104, 1110, 86, 1113, 86, 1108, 86, 86, - - 1105, 86, 86, 1106, 86, 1107, 1109, 1114, 1115, 1111, - 86, 86, 86, 1112, 86, 1116, 1119, 86, 1118, 1120, - 86, 1117, 1122, 1123, 86, 86, 1121, 86, 86, 86, - 86, 86, 1134, 1124, 1126, 86, 1128, 86, 86, 1135, - 1125, 86, 86, 86, 86, 86, 86, 1127, 1137, 1129, - 1131, 1146, 1130, 1140, 86, 1132, 1136, 1133, 1138, 86, - 1141, 1139, 1143, 86, 86, 86, 86, 1142, 86, 1148, - 86, 1149, 1150, 1151, 86, 86, 1144, 86, 86, 1154, - 86, 1156, 86, 86, 1145, 86, 1147, 86, 1153, 86, - 1159, 1162, 1152, 86, 1158, 86, 1163, 170, 86, 1165, - - 1155, 1157, 86, 1160, 86, 1161, 86, 1166, 1164, 1169, - 86, 86, 86, 86, 86, 86, 86, 1182, 86, 86, - 1167, 86, 1168, 1183, 86, 1187, 1172, 1173, 86, 1170, - 1185, 86, 86, 1174, 1208, 1171, 1175, 86, 86, 1184, - 1176, 86, 1177, 1186, 86, 1192, 1178, 1188, 1179, 1190, - 1193, 86, 1189, 1180, 86, 1191, 86, 86, 1181, 86, - 86, 1196, 86, 1194, 86, 1199, 86, 1202, 86, 86, - 1195, 176, 86, 1197, 1198, 1200, 1201, 86, 86, 86, - 1203, 1206, 1207, 1205, 1209, 1210, 1211, 1212, 86, 1204, - 1213, 86, 86, 1214, 86, 86, 86, 86, 86, 86, - - 1215, 86, 1229, 1226, 86, 86, 86, 175, 86, 1225, - 86, 1230, 86, 1216, 1217, 86, 1218, 1228, 1227, 86, - 1231, 1219, 1232, 1220, 86, 86, 1233, 86, 86, 1221, - 86, 1238, 1239, 1234, 1222, 1223, 86, 86, 86, 86, - 1240, 1224, 86, 1235, 1236, 86, 1237, 1245, 86, 1246, - 86, 1248, 86, 86, 1241, 1242, 1243, 86, 86, 86, - 1244, 1249, 1253, 86, 1251, 86, 1252, 86, 86, 86, - 1247, 1250, 1254, 86, 1256, 1259, 86, 86, 1257, 86, - 86, 86, 1255, 86, 1262, 1260, 86, 86, 86, 1258, - 86, 86, 86, 86, 1269, 86, 1261, 1264, 1271, 1266, - - 1263, 1267, 1268, 86, 86, 1273, 1265, 1270, 86, 86, - 1277, 1272, 86, 86, 1276, 86, 86, 86, 1370, 86, - 86, 86, 86, 1274, 1282, 1283, 1284, 1279, 86, 86, - 1281, 1278, 86, 1275, 1287, 1280, 1288, 1285, 86, 1286, - 86, 1289, 86, 86, 1290, 86, 1293, 86, 86, 86, - 1295, 1294, 86, 1296, 86, 86, 1291, 1298, 86, 86, - 86, 1292, 1297, 86, 1305, 86, 1307, 86, 1300, 1299, - 86, 86, 86, 1303, 1301, 86, 1309, 1302, 1304, 86, - 1311, 86, 1308, 86, 1312, 1306, 86, 86, 86, 1310, - 86, 1314, 1315, 86, 86, 86, 86, 1317, 1318, 1319, - - 86, 86, 1321, 86, 1313, 1324, 1316, 1320, 86, 1323, - 1326, 86, 1325, 86, 86, 86, 1322, 1328, 86, 1329, - 86, 86, 86, 86, 1335, 1333, 1327, 86, 1336, 1337, - 86, 170, 1338, 1330, 86, 86, 1334, 86, 1340, 1331, - 86, 1332, 1339, 1342, 86, 1341, 86, 86, 86, 86, - 1346, 1343, 86, 1348, 86, 86, 86, 1347, 86, 86, - 86, 86, 86, 86, 1349, 1344, 1351, 1350, 1345, 86, - 86, 86, 1354, 1355, 1356, 86, 1357, 1352, 86, 1353, - 1358, 86, 1361, 1362, 86, 86, 86, 1359, 86, 86, - 1364, 1365, 86, 86, 86, 86, 1363, 1360, 86, 86, - - 1367, 86, 86, 1366, 170, 1368, 86, 1372, 1376, 86, - 86, 86, 1369, 1371, 1377, 1378, 1379, 86, 1373, 86, - 86, 1375, 86, 86, 1380, 168, 1374, 1384, 86, 1386, - 86, 1381, 1383, 1388, 1382, 1389, 86, 1385, 86, 86, - 86, 86, 86, 1387, 1392, 1391, 86, 86, 86, 86, - 86, 1393, 1390, 1397, 1396, 86, 86, 86, 1402, 86, - 86, 1394, 1395, 1399, 86, 86, 86, 86, 86, 1398, - 1400, 86, 1406, 1414, 1403, 1412, 1401, 86, 86, 86, - 1405, 86, 1404, 1408, 86, 1413, 1416, 1407, 1415, 86, - 86, 1417, 1409, 1418, 1410, 86, 86, 1411, 86, 86, - - 1419, 1425, 86, 1422, 86, 1421, 86, 86, 86, 1426, - 86, 1430, 86, 1420, 1424, 86, 86, 86, 1423, 1428, - 1427, 1431, 1432, 86, 86, 86, 86, 86, 1434, 1429, - 1435, 86, 86, 1436, 86, 1433, 86, 1440, 86, 86, - 1437, 86, 1438, 1443, 86, 86, 1441, 1442, 86, 86, - 1439, 1444, 1451, 86, 1448, 86, 86, 1445, 86, 1449, - 1450, 86, 1446, 1447, 86, 1454, 86, 86, 86, 86, - 86, 1461, 86, 1452, 1463, 1453, 1455, 86, 1457, 86, - 86, 86, 86, 1456, 1460, 86, 1458, 1464, 86, 86, - 1462, 86, 86, 1459, 1469, 1465, 1466, 1470, 1468, 1467, - - 1471, 86, 86, 86, 86, 1472, 86, 86, 1476, 1569, - 1473, 86, 86, 1485, 1486, 1474, 1475, 86, 1477, 86, - 86, 1489, 1478, 1494, 1484, 1479, 1480, 86, 1487, 86, - 1481, 1490, 1512, 86, 1488, 86, 1482, 86, 1491, 86, - 1483, 86, 1493, 86, 1492, 86, 1495, 86, 1500, 86, - 1496, 1501, 1497, 86, 86, 1498, 1502, 86, 1503, 86, - 86, 1499, 86, 86, 1508, 1505, 1509, 86, 86, 86, - 86, 1511, 86, 1510, 86, 86, 1506, 166, 1513, 1504, - 1518, 1507, 86, 1514, 86, 1515, 86, 1516, 1519, 1517, - 86, 1520, 1521, 1522, 86, 86, 86, 1523, 1524, 1525, - - 86, 1529, 1526, 86, 86, 86, 1530, 86, 86, 1528, - 1533, 86, 1531, 86, 1527, 86, 86, 1539, 86, 1540, - 1535, 86, 1534, 86, 86, 86, 1532, 86, 86, 86, - 1538, 86, 1536, 1541, 1537, 1542, 1544, 1546, 1543, 1545, - 86, 86, 86, 86, 1551, 86, 86, 1547, 1550, 1553, - 86, 86, 86, 1554, 1549, 1555, 86, 1552, 86, 1548, - 86, 1556, 1559, 86, 86, 1557, 86, 1558, 1561, 86, - 86, 1562, 86, 86, 1567, 86, 86, 1563, 86, 86, - 1560, 1570, 1572, 86, 86, 1564, 86, 1565, 86, 1573, - 86, 86, 1574, 1575, 1566, 86, 1568, 86, 1577, 1571, - - 86, 86, 86, 86, 1576, 1578, 1580, 1582, 86, 86, - 1579, 1583, 1585, 1584, 1581, 86, 86, 1587, 86, 86, - 1586, 86, 86, 1588, 1593, 86, 1594, 1590, 86, 1591, - 86, 86, 86, 1595, 1597, 86, 1596, 1589, 1592, 86, - 86, 86, 1601, 86, 1598, 86, 86, 170, 86, 86, - 86, 1603, 1600, 1609, 1610, 86, 86, 1612, 1599, 86, - 86, 1611, 1606, 86, 86, 1602, 1604, 86, 86, 1607, - 1613, 86, 86, 1608, 86, 1620, 1614, 86, 86, 86, - 1617, 86, 86, 86, 1615, 1618, 86, 1616, 1624, 86, - 1619, 1625, 86, 165, 1627, 86, 86, 1621, 86, 1623, - - 1629, 1628, 1626, 1622, 1631, 1630, 86, 1632, 86, 1634, - 86, 1635, 86, 86, 86, 86, 1633, 1638, 1643, 86, - 1639, 1641, 1640, 86, 86, 1636, 86, 1644, 1637, 1642, - 1646, 86, 86, 1648, 86, 1647, 86, 1645, 86, 1651, - 86, 86, 86, 1652, 86, 1653, 86, 86, 86, 1656, - 1650, 86, 86, 86, 1661, 86, 86, 1649, 1665, 1654, - 1662, 1658, 1655, 86, 86, 86, 1657, 1664, 86, 1659, - 1660, 86, 86, 1663, 86, 1666, 86, 86, 86, 1674, - 86, 1667, 86, 1673, 86, 1669, 86, 1668, 86, 1670, - 86, 1671, 86, 1675, 86, 1680, 1672, 86, 1676, 1679, - - 1677, 86, 1684, 1678, 1683, 1685, 1682, 1681, 1686, 86, - 86, 86, 86, 1688, 86, 1689, 86, 86, 86, 163, - 86, 1694, 1695, 1687, 1690, 1693, 1691, 86, 86, 1696, - 86, 1697, 86, 1698, 86, 86, 1701, 86, 1692, 86, - 86, 86, 86, 1702, 86, 86, 1705, 86, 1709, 1703, - 86, 1708, 1699, 86, 1700, 86, 1706, 86, 86, 1704, - 1707, 1711, 1712, 86, 86, 1720, 1715, 86, 1717, 1713, - 1710, 1716, 86, 1718, 86, 86, 86, 1714, 86, 86, - 86, 86, 1728, 1719, 1724, 1723, 1721, 86, 86, 86, - 86, 86, 1729, 86, 1722, 1734, 86, 1725, 86, 1727, - - 1726, 86, 1737, 86, 1736, 86, 1732, 1730, 86, 86, - 1731, 86, 86, 86, 86, 1735, 161, 86, 86, 1733, - 86, 1746, 1738, 86, 1739, 86, 1747, 1743, 1740, 86, - 1741, 1742, 1745, 1751, 86, 1744, 86, 1748, 1752, 86, - 86, 1750, 86, 86, 1749, 1753, 1754, 86, 86, 1755, - 86, 86, 86, 1759, 86, 86, 1757, 1760, 1756, 1763, - 86, 1758, 1767, 86, 86, 1769, 86, 1764, 1762, 1768, - 1761, 86, 86, 1772, 86, 1765, 1766, 86, 1774, 86, - 86, 1770, 1773, 86, 1775, 1771, 86, 86, 86, 1780, - 1781, 86, 86, 86, 86, 86, 1778, 86, 1785, 1784, - - 1786, 86, 86, 1776, 1777, 1789, 86, 86, 1779, 86, - 1782, 1788, 86, 86, 1783, 1790, 86, 86, 86, 86, - 1794, 1787, 86, 1791, 86, 1792, 86, 1799, 1797, 1793, - 86, 86, 86, 86, 86, 1805, 86, 1806, 1803, 1795, - 86, 86, 1796, 86, 1798, 1800, 86, 86, 1804, 1807, - 86, 1802, 1801, 86, 1812, 86, 86, 86, 86, 1817, - 86, 1808, 1809, 1815, 86, 86, 86, 1820, 1818, 1813, - 1811, 1810, 1816, 86, 1814, 86, 86, 86, 86, 86, - 86, 1824, 1827, 86, 1826, 1819, 86, 1823, 170, 1828, - 86, 86, 86, 1829, 1822, 1821, 1830, 1825, 86, 86, - - 86, 86, 1838, 86, 1831, 86, 1833, 86, 1832, 86, - 1839, 1842, 86, 1836, 1844, 86, 86, 1834, 1835, 86, - 86, 1846, 1848, 1840, 1843, 1837, 86, 1841, 86, 1850, - 86, 1847, 1852, 86, 86, 86, 1845, 86, 86, 86, - 1849, 86, 86, 1854, 1851, 86, 1855, 86, 1857, 86, - 1858, 86, 86, 1853, 1862, 86, 1859, 1860, 86, 1863, - 1861, 86, 1856, 1870, 86, 86, 86, 1865, 1867, 86, - 1864, 1868, 86, 86, 86, 1874, 1872, 1871, 86, 1875, - 86, 1866, 86, 1869, 1880, 1877, 1878, 86, 1881, 1876, - 86, 86, 1873, 1887, 86, 1885, 1882, 86, 1883, 86, - - 1884, 86, 1879, 86, 86, 86, 86, 86, 1886, 1892, - 1891, 1893, 1894, 86, 86, 86, 86, 86, 86, 1895, - 86, 1896, 1888, 86, 1889, 1898, 1890, 86, 1899, 86, - 86, 86, 86, 86, 1901, 1900, 1897, 86, 86, 86, - 86, 86, 86, 1902, 86, 86, 1903, 1912, 1911, 86, - 86, 1904, 1906, 1905, 1907, 1908, 1914, 1909, 86, 86, - 1918, 1913, 1910, 1917, 86, 86, 86, 86, 86, 86, - 1915, 1916, 1923, 86, 1925, 86, 86, 1927, 86, 86, - 86, 1920, 1922, 86, 1919, 1926, 86, 1921, 1929, 86, - 1924, 1930, 86, 1931, 1933, 1928, 86, 86, 86, 86, - - 86, 1932, 86, 86, 86, 1938, 1936, 86, 1939, 86, - 1945, 1940, 86, 1934, 1935, 1937, 1946, 86, 1941, 1942, - 1947, 86, 86, 86, 1943, 1952, 1950, 1949, 1944, 1951, - 86, 86, 86, 86, 1948, 86, 86, 1954, 1955, 1956, - 86, 86, 86, 86, 86, 1958, 86, 86, 1966, 86, - 1953, 2046, 1961, 86, 86, 1965, 1957, 86, 1960, 86, - 1959, 86, 1963, 1962, 1968, 1964, 1967, 86, 86, 1969, - 86, 1974, 1970, 86, 86, 86, 1975, 86, 1976, 1971, - 86, 86, 1972, 86, 1980, 86, 1973, 1977, 1981, 86, - 1984, 86, 86, 1986, 1985, 86, 86, 1982, 1979, 1978, - - 1983, 86, 86, 86, 1994, 1988, 1990, 1987, 1989, 1995, - 86, 86, 86, 1991, 86, 86, 86, 86, 2001, 86, - 1999, 1993, 86, 1992, 86, 1996, 2004, 1997, 2003, 86, - 2000, 86, 86, 86, 2007, 2002, 1998, 86, 2005, 2009, - 86, 86, 2011, 2008, 86, 2006, 2015, 86, 86, 86, - 2013, 86, 86, 86, 86, 2010, 2014, 2012, 86, 2016, - 86, 86, 86, 3712, 86, 2021, 2020, 86, 2017, 86, - 2022, 86, 2018, 2019, 2030, 2023, 2024, 2025, 2028, 86, - 86, 2031, 86, 2026, 86, 2027, 86, 86, 86, 2032, - 2034, 86, 86, 2038, 86, 2033, 86, 2040, 86, 86, - - 2029, 86, 86, 86, 2035, 86, 2036, 2044, 86, 2039, - 2047, 2037, 86, 86, 86, 2042, 86, 86, 2049, 2043, - 2041, 2050, 2045, 2051, 86, 86, 86, 170, 86, 2055, - 2058, 86, 2048, 86, 2054, 2053, 86, 86, 86, 2056, - 2052, 2062, 86, 2057, 86, 2064, 86, 86, 2060, 86, - 86, 2069, 2059, 86, 86, 86, 2061, 86, 2063, 2065, - 2076, 2066, 86, 2073, 86, 2067, 2070, 86, 2072, 86, - 2068, 2071, 2074, 2075, 86, 2078, 2077, 2079, 86, 86, - 86, 86, 2081, 86, 86, 86, 2082, 86, 86, 86, - 86, 2080, 86, 86, 2087, 2088, 86, 86, 2092, 86, - - 86, 2089, 86, 3712, 2083, 2085, 2086, 2084, 2090, 2093, - 86, 86, 2091, 2100, 86, 2098, 2096, 2099, 2101, 2095, - 86, 86, 2094, 2097, 86, 86, 86, 86, 86, 86, - 86, 2108, 86, 86, 86, 2111, 86, 2103, 2112, 86, - 86, 2102, 86, 2106, 2104, 2105, 2180, 2109, 2107, 2110, - 2113, 86, 2114, 2115, 86, 86, 2116, 2117, 2120, 86, - 86, 2118, 2122, 2119, 2121, 2124, 86, 86, 86, 2123, - 2126, 86, 86, 86, 86, 86, 86, 86, 2128, 86, - 2130, 2131, 86, 86, 2133, 2125, 2134, 86, 86, 86, - 2135, 86, 86, 2139, 2137, 2127, 2138, 86, 2141, 2129, - - 86, 86, 2140, 2132, 86, 86, 86, 86, 86, 2136, - 2149, 86, 2142, 2143, 2144, 86, 86, 86, 2152, 2145, - 2153, 2146, 86, 2147, 2154, 86, 2148, 2150, 2151, 2155, - 86, 2156, 86, 86, 2158, 2161, 2159, 2157, 86, 86, - 86, 86, 2165, 86, 86, 86, 2167, 2162, 2160, 86, - 86, 86, 2170, 2171, 86, 86, 2173, 86, 86, 2163, - 86, 2164, 86, 86, 86, 86, 2182, 86, 2178, 2168, - 2166, 2175, 2169, 2176, 86, 2172, 86, 86, 86, 2181, - 86, 2177, 2179, 2174, 86, 2185, 86, 2188, 86, 2186, - 86, 86, 2184, 2191, 2193, 86, 2192, 2183, 86, 86, - - 86, 2196, 86, 86, 2197, 2195, 2190, 86, 2200, 86, - 2187, 2199, 86, 86, 2189, 2194, 86, 86, 2201, 86, - 86, 2202, 2198, 86, 86, 86, 86, 2206, 2208, 86, - 2212, 2203, 2207, 86, 2211, 2213, 86, 86, 86, 2204, - 86, 86, 2205, 86, 2209, 86, 86, 2216, 2221, 86, - 86, 2220, 86, 2215, 86, 2210, 86, 2214, 86, 86, - 2218, 3712, 2226, 2217, 86, 2227, 86, 2219, 2229, 2224, - 86, 2223, 2228, 86, 2222, 2225, 2230, 86, 86, 2234, - 86, 2232, 2231, 86, 86, 86, 2233, 86, 86, 86, - 2238, 86, 2242, 86, 2235, 86, 86, 2236, 86, 86, - - 2245, 2247, 86, 2237, 86, 2248, 2244, 2239, 2240, 2241, - 86, 2243, 2246, 86, 2249, 86, 2253, 86, 86, 2255, - 86, 3712, 2250, 2254, 2256, 86, 2251, 2257, 2259, 2260, - 86, 2252, 2258, 86, 86, 86, 86, 86, 2264, 86, - 86, 2262, 2263, 2261, 86, 86, 86, 86, 2268, 2265, - 2266, 2267, 2270, 2272, 2273, 86, 86, 86, 86, 86, - 86, 170, 86, 86, 86, 2269, 2276, 2271, 86, 2280, - 86, 2281, 2277, 86, 2278, 2274, 2292, 2275, 86, 2282, - 2283, 86, 2279, 2284, 86, 2286, 86, 86, 86, 86, - 2285, 86, 2287, 2288, 86, 2289, 2290, 86, 86, 2291, - - 86, 2294, 86, 86, 2298, 86, 86, 86, 2297, 2293, - 2295, 86, 2300, 86, 2296, 2299, 2301, 86, 2303, 86, - 2302, 86, 86, 86, 86, 86, 86, 86, 2308, 2310, - 2305, 2309, 86, 2304, 86, 86, 2312, 86, 2315, 86, - 2306, 86, 2307, 2311, 86, 86, 86, 2321, 2314, 2316, - 2313, 86, 86, 2318, 2319, 86, 86, 2317, 86, 86, - 2322, 2320, 2328, 2325, 2323, 2327, 86, 86, 86, 2326, - 86, 86, 86, 2334, 86, 86, 2324, 86, 2336, 86, - 86, 86, 2337, 2329, 2330, 2333, 2331, 2332, 86, 2338, - 86, 2335, 2340, 86, 2342, 86, 2341, 86, 2343, 2339, - - 86, 2346, 86, 86, 86, 86, 2345, 86, 86, 2351, - 2348, 86, 2352, 2344, 86, 86, 2347, 86, 86, 86, - 2353, 86, 86, 86, 86, 2350, 2349, 2355, 86, 2356, - 86, 2358, 2360, 2357, 2362, 2354, 86, 2361, 2365, 2363, - 86, 86, 2366, 86, 2368, 86, 86, 2359, 2371, 86, - 86, 2364, 2378, 2369, 86, 2367, 86, 2370, 86, 2372, - 86, 2374, 86, 2373, 86, 2375, 2376, 2377, 86, 2380, - 86, 86, 2379, 86, 2383, 2381, 86, 86, 2386, 2382, - 2384, 86, 2389, 86, 86, 2385, 2391, 86, 86, 86, - 86, 2393, 86, 86, 2395, 2396, 2387, 86, 86, 86, - - 86, 2388, 2397, 2390, 2392, 2398, 86, 86, 2402, 86, - 86, 86, 2403, 2394, 86, 2406, 2399, 2400, 2408, 86, - 2407, 86, 2404, 2405, 86, 86, 2401, 2412, 86, 86, - 2413, 86, 86, 86, 2417, 86, 2411, 2419, 2409, 2410, - 86, 86, 2414, 86, 86, 86, 2418, 2415, 2423, 86, - 86, 2425, 2421, 2416, 86, 2426, 86, 2424, 86, 86, - 2422, 2420, 86, 2428, 86, 2427, 2430, 86, 86, 2433, - 86, 86, 86, 2431, 2435, 86, 2432, 2429, 86, 2436, - 86, 2438, 2437, 2439, 86, 86, 86, 2440, 86, 2434, - 2441, 2442, 86, 2447, 86, 86, 2444, 2443, 86, 86, - - 86, 2446, 86, 2452, 86, 86, 86, 86, 2445, 86, - 2455, 86, 2459, 2448, 2453, 86, 2449, 2450, 2451, 2454, - 2460, 2456, 86, 2457, 86, 86, 2458, 86, 86, 86, - 86, 2461, 86, 2463, 2465, 86, 86, 2471, 86, 86, - 86, 86, 2462, 86, 2467, 2470, 2464, 2476, 2466, 2472, - 2468, 2473, 86, 2474, 86, 2469, 86, 2480, 2475, 2477, - 2479, 170, 2482, 86, 2484, 2485, 86, 2483, 86, 2478, - 86, 86, 86, 86, 2487, 2486, 2489, 86, 86, 86, - 2490, 2494, 86, 2481, 86, 2495, 86, 2493, 86, 2498, - 86, 86, 86, 2488, 2491, 86, 2499, 2502, 2496, 86, - - 2500, 2501, 86, 2503, 86, 2492, 2497, 86, 2504, 86, - 2505, 2506, 86, 86, 86, 86, 86, 86, 86, 2509, - 86, 86, 2512, 86, 86, 2518, 86, 86, 2516, 86, - 2511, 2519, 2507, 86, 86, 86, 2513, 2514, 2508, 2510, - 2515, 86, 86, 86, 2520, 86, 2517, 2521, 86, 86, - 86, 2522, 86, 2524, 2527, 2525, 2530, 86, 2531, 2529, - 2523, 2528, 86, 86, 2526, 86, 86, 86, 86, 2541, - 86, 2532, 86, 2542, 86, 86, 86, 86, 2547, 86, - 86, 2533, 2534, 86, 2539, 86, 2537, 2544, 2535, 2538, - 2536, 2540, 2543, 86, 2545, 2549, 86, 86, 86, 2546, - - 86, 2551, 2550, 2548, 86, 86, 86, 86, 2556, 2553, - 2557, 86, 86, 2552, 2558, 2559, 86, 86, 2554, 2555, - 2560, 86, 86, 2563, 2565, 86, 2564, 86, 2566, 86, - 2567, 86, 2561, 86, 2562, 2570, 86, 2571, 86, 86, - 2568, 86, 86, 2569, 2572, 86, 2573, 2577, 86, 2578, - 86, 86, 86, 2574, 2580, 86, 86, 2576, 2582, 86, - 86, 86, 2575, 2585, 86, 2584, 86, 2583, 2586, 86, - 2579, 86, 86, 2589, 2581, 2587, 2591, 86, 86, 86, - 2588, 86, 86, 2590, 2595, 86, 2594, 2597, 86, 86, - 86, 86, 2592, 86, 86, 2599, 2601, 2600, 2593, 86, - - 2602, 2596, 2604, 86, 86, 86, 86, 2598, 2607, 86, - 2610, 86, 2611, 2605, 86, 2603, 86, 86, 86, 2606, - 2608, 86, 86, 2617, 86, 86, 2616, 86, 2609, 86, - 86, 2613, 2619, 86, 2612, 86, 2615, 86, 2621, 86, - 2614, 2623, 86, 86, 2618, 2620, 2625, 2626, 86, 2624, - 86, 86, 2622, 2627, 86, 2631, 86, 86, 2633, 86, - 2632, 2628, 2634, 2629, 2637, 86, 86, 86, 86, 2638, - 86, 2639, 2640, 86, 86, 86, 2630, 2635, 86, 2636, - 2645, 2642, 86, 2644, 86, 86, 86, 2647, 86, 2648, - 2641, 2649, 2651, 2652, 2643, 86, 2655, 86, 86, 86, - - 2650, 86, 86, 86, 2646, 86, 2656, 86, 2657, 2653, - 2654, 86, 86, 3712, 2660, 86, 86, 86, 2659, 86, - 86, 2662, 2658, 2667, 2663, 2664, 2665, 2661, 2668, 86, - 86, 86, 86, 2666, 86, 2669, 86, 2673, 2674, 86, - 2670, 2672, 86, 2675, 86, 86, 2678, 170, 2677, 86, - 2671, 2676, 2679, 86, 86, 86, 86, 2684, 86, 86, - 86, 86, 86, 2691, 2686, 86, 86, 3712, 2685, 2680, - 2682, 2681, 2683, 2687, 86, 2688, 86, 2689, 2690, 2692, - 2695, 86, 86, 2696, 86, 2693, 2697, 86, 2694, 86, - 86, 2700, 2698, 2701, 86, 2699, 86, 86, 2704, 86, - - 2703, 86, 86, 2702, 86, 2705, 86, 2710, 2706, 86, - 2709, 86, 86, 86, 86, 2713, 2707, 86, 86, 2712, - 2714, 2715, 86, 2716, 86, 2708, 2711, 86, 86, 2717, - 86, 86, 2722, 86, 86, 2721, 2718, 2719, 86, 86, - 86, 86, 86, 2724, 86, 86, 86, 2723, 2729, 2732, - 2720, 2731, 86, 86, 2734, 86, 2728, 86, 2733, 2725, - 2726, 2727, 86, 2735, 86, 2730, 86, 86, 86, 2741, - 86, 86, 2739, 86, 86, 2736, 2745, 86, 2744, 2748, - 86, 86, 86, 2737, 2746, 2738, 2742, 2743, 2747, 2740, - 86, 86, 86, 86, 2752, 2750, 86, 86, 2754, 2753, - - 2749, 86, 86, 86, 2755, 2756, 2751, 86, 2758, 86, - 2760, 86, 86, 2759, 2762, 86, 86, 2764, 86, 86, - 86, 2763, 86, 2761, 86, 86, 86, 86, 86, 2757, - 2768, 86, 86, 2772, 2766, 86, 2773, 2765, 2767, 2774, - 86, 2775, 86, 2776, 2770, 86, 2778, 86, 2771, 86, - 2769, 2779, 2777, 86, 86, 86, 86, 86, 2781, 2783, - 86, 2786, 86, 86, 86, 2790, 2788, 2784, 86, 2780, - 2789, 86, 2785, 2782, 86, 2793, 86, 86, 86, 2787, - 2794, 86, 86, 2799, 86, 86, 2791, 2800, 86, 2792, - 2801, 86, 86, 86, 86, 86, 86, 2795, 2805, 86, - - 2796, 2797, 2798, 2803, 86, 2804, 2806, 2809, 86, 2802, - 2807, 86, 86, 2808, 86, 86, 2810, 2814, 86, 2813, - 2815, 86, 2816, 86, 2817, 86, 86, 2818, 2811, 86, - 86, 2819, 2812, 86, 2822, 2821, 86, 2823, 86, 2824, - 86, 86, 86, 86, 2820, 86, 86, 2831, 86, 86, - 2833, 86, 2825, 86, 2827, 2834, 86, 2836, 86, 86, - 86, 2826, 2830, 2828, 2835, 86, 2829, 2838, 2832, 86, - 86, 2837, 86, 86, 86, 2841, 86, 2839, 2844, 86, - 2846, 86, 86, 2845, 86, 86, 86, 170, 86, 2840, - 86, 2855, 2842, 2843, 86, 2849, 2853, 86, 86, 2854, - - 2851, 86, 2847, 86, 2848, 86, 2856, 86, 86, 2850, - 2852, 2862, 86, 2857, 86, 86, 2858, 2866, 86, 2864, - 2865, 2859, 2867, 86, 86, 2868, 2863, 2860, 86, 2869, - 2861, 86, 2870, 86, 86, 86, 86, 86, 86, 86, - 86, 86, 86, 86, 86, 2872, 2881, 86, 86, 2879, - 86, 2871, 2874, 86, 2873, 3712, 2875, 2876, 86, 2885, - 2877, 2878, 2880, 2882, 86, 2883, 2884, 2888, 2886, 2887, - 86, 86, 2889, 2891, 86, 86, 2893, 86, 86, 86, - 2890, 86, 86, 86, 2892, 86, 86, 86, 86, 2897, - 86, 2903, 86, 86, 2905, 86, 2894, 2895, 2898, 2896, - - 2904, 2906, 86, 2899, 2900, 86, 2901, 2902, 86, 2910, - 86, 2912, 2907, 86, 2909, 2911, 86, 86, 86, 86, - 86, 86, 86, 2908, 2919, 86, 86, 2918, 86, 86, - 86, 2913, 86, 86, 2915, 2917, 2914, 86, 2925, 2916, - 86, 2923, 2926, 2927, 86, 86, 2920, 2928, 2921, 2922, - 2929, 86, 2924, 86, 86, 86, 2930, 86, 86, 86, - 86, 86, 2931, 2935, 86, 2937, 86, 2933, 86, 86, - 86, 2942, 86, 2932, 2943, 86, 3712, 2934, 86, 2936, - 86, 2938, 86, 2939, 86, 2944, 2940, 2941, 2946, 86, - 2945, 2947, 86, 2948, 86, 86, 2949, 2950, 86, 2951, - - 2952, 86, 2953, 2954, 86, 86, 86, 86, 2955, 86, - 2961, 86, 86, 86, 2959, 86, 2956, 86, 2965, 2964, - 2966, 86, 2963, 86, 2962, 2957, 2958, 2968, 86, 2960, - 86, 86, 86, 86, 86, 2969, 2974, 86, 86, 2975, - 2970, 86, 2967, 86, 86, 2972, 2978, 86, 2971, 86, - 2976, 86, 86, 86, 2973, 2985, 86, 2979, 86, 86, - 86, 2982, 2980, 86, 2981, 2977, 86, 2983, 2984, 2988, - 86, 2989, 86, 2986, 86, 2987, 86, 2990, 86, 86, - 86, 2992, 2994, 86, 86, 86, 2993, 2996, 2991, 2995, - 2998, 86, 3001, 86, 3002, 86, 2999, 86, 2997, 3000, - - 86, 86, 3003, 3005, 170, 86, 86, 86, 3006, 3010, - 3007, 86, 86, 3012, 86, 86, 3011, 86, 86, 3004, - 3015, 86, 3014, 86, 3008, 3009, 3016, 86, 3022, 3013, - 3020, 3017, 3018, 86, 86, 3021, 86, 3019, 86, 86, - 3025, 86, 86, 3023, 86, 3026, 86, 3027, 86, 86, - 86, 86, 86, 3024, 3032, 3033, 3034, 3028, 3030, 3029, - 86, 86, 3036, 86, 3035, 86, 86, 86, 86, 86, - 3031, 3038, 3037, 86, 3041, 86, 3039, 86, 86, 3040, - 3042, 86, 3043, 86, 86, 3048, 3044, 86, 86, 86, - 3046, 3045, 3047, 3050, 86, 3053, 3049, 86, 86, 3051, - - 86, 86, 86, 3054, 86, 86, 3052, 3059, 86, 86, - 86, 86, 3060, 86, 3064, 86, 86, 3055, 86, 3062, - 3056, 86, 3057, 3058, 3063, 86, 3065, 86, 3061, 3067, - 86, 3066, 3072, 86, 86, 3074, 3069, 3068, 3071, 86, - 3075, 86, 86, 3078, 86, 3070, 86, 3079, 86, 86, - 86, 86, 3073, 86, 86, 3082, 86, 3085, 3076, 3080, - 3077, 86, 3083, 86, 3086, 86, 86, 3084, 86, 3081, - 3087, 3090, 86, 86, 3088, 86, 3092, 3094, 86, 3089, - 86, 3096, 86, 3091, 3097, 86, 3098, 86, 86, 86, - 86, 3093, 3099, 86, 3100, 3102, 86, 86, 86, 3101, - - 3106, 86, 3104, 3095, 86, 3107, 86, 86, 86, 3111, - 3105, 3112, 86, 3103, 3113, 86, 3108, 3114, 86, 86, - 86, 3109, 3115, 86, 3118, 86, 86, 3110, 86, 3121, - 86, 86, 3122, 3116, 3123, 86, 3117, 86, 3125, 86, - 86, 86, 86, 3129, 3119, 3130, 86, 86, 3120, 86, - 86, 3131, 3124, 3126, 3132, 3133, 3128, 3134, 86, 3127, - 86, 86, 3135, 86, 86, 86, 3140, 3139, 86, 86, - 3143, 86, 86, 3142, 86, 86, 86, 86, 86, 3144, - 3146, 3136, 86, 3145, 3137, 3138, 86, 86, 3149, 3148, - 86, 86, 86, 3141, 86, 3150, 3151, 3152, 3156, 86, - - 3153, 3147, 86, 86, 86, 3155, 3158, 86, 3157, 86, - 3154, 86, 3163, 3565, 3159, 3162, 3160, 3164, 86, 3165, - 3168, 86, 86, 3161, 3166, 86, 86, 3169, 3167, 86, - 3170, 86, 3171, 86, 3172, 86, 3173, 86, 3174, 86, - 86, 86, 3175, 86, 86, 86, 86, 86, 86, 3180, - 3178, 3182, 86, 86, 3187, 86, 3183, 3179, 86, 3176, - 3188, 86, 86, 86, 3181, 3189, 3177, 3712, 3184, 3191, - 86, 86, 3185, 3186, 3194, 86, 3193, 3192, 3190, 86, - 3196, 86, 86, 3198, 86, 86, 3195, 3197, 86, 3201, - 86, 86, 86, 86, 3199, 3205, 86, 3200, 3206, 86, - - 3202, 3203, 86, 86, 86, 86, 3207, 86, 86, 3213, - 86, 3204, 3208, 86, 3214, 86, 3210, 86, 86, 3216, - 86, 3217, 3211, 3209, 86, 3219, 3215, 86, 3212, 3220, - 86, 3222, 86, 3218, 86, 86, 3226, 86, 3221, 86, - 3228, 3223, 86, 86, 86, 86, 86, 86, 3227, 3231, - 86, 3234, 86, 3225, 3229, 86, 3232, 86, 86, 3224, - 3237, 86, 3235, 3238, 86, 3233, 86, 3239, 3230, 3241, - 3240, 86, 86, 3236, 86, 3244, 3246, 86, 3245, 3247, - 86, 3248, 86, 86, 3242, 86, 3243, 86, 86, 3253, - 86, 86, 3249, 3252, 86, 86, 3254, 3256, 86, 3255, - - 86, 86, 86, 86, 3262, 3250, 3251, 3260, 3257, 86, - 86, 86, 3258, 3264, 86, 3265, 86, 3268, 86, 86, - 86, 3261, 3259, 3266, 3267, 86, 86, 86, 3273, 86, - 86, 86, 86, 86, 3263, 86, 86, 3277, 86, 3269, - 3270, 3271, 86, 3274, 3275, 3276, 3281, 3272, 86, 86, - 86, 3278, 3279, 3282, 3280, 86, 3285, 86, 86, 86, - 3289, 86, 3290, 86, 86, 86, 3286, 3292, 86, 3283, - 3284, 86, 3293, 86, 3295, 86, 3287, 3296, 86, 3294, - 3298, 86, 86, 3291, 86, 3288, 86, 86, 86, 3301, - 86, 3299, 3297, 3303, 3304, 86, 86, 3307, 3300, 3306, - - 3309, 86, 3302, 86, 86, 86, 3311, 3305, 86, 86, - 3316, 86, 3315, 86, 86, 3318, 86, 86, 86, 3308, - 86, 86, 3312, 3310, 86, 3319, 3322, 86, 3313, 3314, - 3323, 86, 86, 86, 3317, 3326, 86, 86, 86, 3320, - 86, 86, 86, 3332, 3321, 3331, 3712, 3324, 3328, 3329, - 86, 86, 86, 3325, 3333, 3327, 3335, 86, 3330, 86, - 86, 3334, 3337, 3338, 3340, 3336, 86, 3339, 86, 3342, - 3343, 86, 3345, 86, 86, 86, 3344, 86, 86, 3348, - 86, 86, 3347, 86, 3351, 86, 3349, 86, 3341, 86, - 86, 86, 3346, 3354, 86, 86, 86, 3355, 3359, 86, - - 86, 86, 3350, 86, 3352, 3353, 3435, 3356, 3358, 3362, - 3363, 86, 3364, 86, 86, 3360, 3357, 3361, 3365, 86, - 86, 86, 3369, 86, 86, 3366, 3368, 86, 3367, 3370, - 86, 3371, 86, 3372, 3373, 86, 86, 3376, 86, 86, - 3374, 3378, 86, 86, 3377, 3380, 86, 3381, 86, 86, - 86, 86, 86, 86, 3379, 86, 3387, 3388, 86, 86, - 86, 86, 3375, 86, 86, 86, 3394, 86, 3382, 3395, - 86, 3385, 3383, 3384, 3393, 3386, 86, 3391, 3398, 3390, - 3396, 3392, 3397, 86, 86, 3389, 86, 86, 86, 86, - 3404, 86, 3401, 3402, 3405, 86, 86, 86, 3408, 86, - - 86, 3406, 86, 3399, 86, 3400, 3413, 3410, 3411, 86, - 3403, 3407, 3409, 86, 86, 86, 86, 86, 3412, 3414, - 86, 86, 3417, 86, 86, 86, 86, 3419, 86, 86, - 3712, 3420, 3418, 86, 86, 3415, 3416, 86, 86, 86, - 3437, 86, 3429, 3421, 3425, 3422, 3423, 3424, 86, 86, - 3426, 3427, 86, 3430, 3432, 3428, 86, 3433, 3431, 3434, - 86, 86, 3436, 3438, 86, 3439, 3441, 86, 86, 86, - 86, 3440, 3712, 3442, 3444, 86, 3446, 86, 3447, 3448, - 86, 86, 86, 3449, 3450, 3445, 86, 3455, 3443, 3451, - 86, 3452, 3453, 86, 86, 86, 86, 3454, 3457, 86, - - 3462, 86, 3460, 86, 3456, 86, 3461, 86, 86, 3465, - 86, 86, 86, 3464, 3458, 3459, 86, 86, 86, 86, - 86, 86, 3470, 86, 3469, 86, 3712, 3463, 3471, 3466, - 3474, 86, 3467, 3475, 86, 3472, 86, 3477, 3480, 3473, - 3476, 3468, 3478, 86, 3479, 86, 86, 86, 3484, 3486, - 86, 3481, 86, 3485, 86, 86, 3482, 86, 86, 3483, - 86, 86, 3712, 3490, 3494, 3491, 86, 3488, 3493, 86, - 86, 86, 3495, 3496, 86, 3487, 3497, 86, 3489, 86, - 3492, 3500, 86, 86, 3499, 86, 3498, 3502, 86, 86, - 3505, 86, 3506, 86, 3503, 3507, 86, 3501, 3508, 86, - - 3509, 86, 3510, 86, 3511, 86, 86, 3504, 3512, 86, - 86, 3515, 86, 3516, 86, 86, 86, 86, 86, 3514, - 3521, 86, 86, 86, 3517, 3523, 86, 86, 3518, 86, - 86, 86, 3513, 3520, 86, 3527, 86, 3519, 3524, 86, - 3525, 3522, 3526, 3528, 86, 86, 3529, 3530, 86, 86, - 86, 3534, 3532, 86, 3531, 3533, 3536, 3535, 3537, 3538, - 86, 86, 86, 86, 86, 3539, 86, 86, 86, 86, - 86, 3547, 3543, 3545, 86, 86, 3544, 86, 3542, 86, - 3540, 3541, 3550, 3546, 86, 3553, 86, 3551, 3554, 86, - 3555, 86, 3552, 3556, 86, 3549, 86, 86, 86, 86, - - 3548, 86, 3559, 86, 86, 86, 3558, 86, 86, 3567, - 3564, 86, 86, 3561, 86, 3563, 86, 86, 86, 3557, - 86, 3560, 3566, 86, 3568, 86, 3562, 3574, 3576, 86, - 86, 3569, 3570, 3571, 86, 3573, 86, 3575, 86, 3579, - 86, 3572, 3578, 3581, 86, 3583, 86, 86, 3586, 86, - 3577, 86, 86, 3588, 86, 3580, 86, 3589, 3582, 86, - 3584, 3587, 3590, 86, 3591, 86, 86, 3585, 86, 3594, - 3592, 86, 86, 3595, 86, 3599, 3596, 86, 86, 3593, - 86, 86, 3603, 86, 86, 3602, 3605, 86, 86, 3598, - 3601, 3600, 3606, 86, 3607, 86, 86, 3597, 3608, 86, - - 3611, 86, 86, 3609, 3604, 86, 3614, 86, 86, 3615, - 86, 86, 86, 3618, 3619, 3610, 86, 3612, 3616, 86, - 86, 86, 86, 3613, 3624, 86, 3620, 3623, 86, 3621, - 3617, 3625, 86, 86, 86, 86, 86, 86, 86, 3629, - 3622, 86, 3631, 86, 86, 86, 86, 86, 3628, 3626, - 86, 3636, 3637, 3627, 3633, 86, 3630, 3632, 3634, 3638, - 86, 3712, 3635, 3644, 3639, 3642, 86, 86, 3640, 86, - 86, 3645, 3643, 86, 3641, 86, 86, 86, 3646, 3650, - 3647, 3648, 3651, 86, 86, 86, 3653, 86, 86, 3652, - 86, 86, 3654, 86, 86, 3659, 3649, 86, 3656, 86, - - 3662, 86, 86, 3663, 86, 86, 86, 86, 86, 3655, - 86, 3666, 3657, 3658, 3664, 3661, 3660, 3665, 86, 3670, - 86, 86, 86, 3669, 86, 3671, 3667, 3668, 86, 3674, - 86, 3676, 86, 3677, 3672, 86, 86, 86, 3681, 86, - 3678, 86, 86, 3675, 3679, 86, 3682, 3683, 3673, 3684, - 86, 86, 86, 86, 86, 3680, 86, 86, 3685, 3686, - 86, 3687, 3688, 3690, 86, 3692, 86, 86, 86, 3696, - 86, 3693, 3689, 3691, 86, 3694, 3697, 86, 86, 3700, - 3701, 86, 86, 86, 3703, 86, 3695, 3704, 86, 3698, - 3702, 86, 86, 3699, 86, 86, 3712, 3706, 3705, 3707, - - 3712, 3708, 3710, 86, 3711, 86, 3712, 3712, 3712, 3712, - 3712, 3712, 3712, 3712, 3709, 47, 47, 47, 47, 47, - 47, 47, 52, 52, 52, 52, 52, 52, 52, 57, - 57, 57, 57, 57, 57, 57, 63, 63, 63, 63, - 63, 63, 63, 68, 68, 68, 68, 68, 68, 68, - 74, 74, 74, 74, 74, 74, 74, 80, 80, 80, - 80, 80, 80, 80, 89, 89, 3712, 89, 89, 89, - 89, 160, 160, 3712, 3712, 3712, 160, 160, 162, 162, - 3712, 3712, 162, 3712, 162, 164, 3712, 3712, 3712, 3712, - 3712, 164, 167, 167, 3712, 3712, 3712, 167, 167, 169, - - 3712, 3712, 3712, 3712, 3712, 169, 171, 171, 3712, 171, - 171, 171, 171, 174, 3712, 3712, 3712, 3712, 3712, 174, - 177, 177, 3712, 3712, 3712, 177, 177, 90, 90, 3712, - 90, 90, 90, 90, 17, 3712, 3712, 3712, 3712, 3712, - 3712, 3712, 3712, 3712, 3712, 3712, 3712, 3712, 3712, 3712, - 3712, 3712, 3712, 3712, 3712, 3712, 3712, 3712, 3712, 3712, - 3712, 3712, 3712, 3712, 3712, 3712, 3712, 3712, 3712, 3712, - 3712, 3712, 3712, 3712, 3712 - } ; - -static const flex_int16_t yy_chk[7276] = - { 0, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 3, 3, 3, 4, 4, 4, 5, 5, 6, 6, - 5, 3, 6, 24, 4, 24, 24, 5, 24, 6, - 7, 7, 7, 7, 24, 7, 8, 8, 8, 8, - 33, 8, 7, 9, 9, 9, 26, 26, 8, 10, - 10, 10, 19, 29, 9, 33, 19, 29, 3720, 35, - 10, 11, 11, 11, 11, 11, 11, 13, 13, 13, - - 13, 34, 13, 11, 35, 99, 34, 29, 38, 13, - 51, 51, 11, 12, 12, 12, 12, 12, 12, 14, - 14, 14, 14, 99, 14, 12, 15, 15, 15, 38, - 23, 14, 23, 23, 12, 23, 46, 15, 16, 16, - 16, 23, 23, 25, 27, 27, 25, 25, 3005, 16, - 25, 46, 27, 30, 30, 25, 27, 56, 40, 27, - 56, 73, 31, 31, 25, 28, 67, 67, 30, 32, - 28, 31, 40, 32, 28, 73, 32, 28, 92, 28, - 28, 92, 31, 32, 1163, 32, 36, 36, 37, 37, - 28, 45, 45, 37, 97, 36, 45, 97, 41, 41, - - 45, 36, 87, 41, 93, 36, 87, 37, 93, 37, - 39, 39, 42, 41, 41, 39, 41, 42, 96, 39, - 42, 43, 43, 105, 43, 39, 44, 42, 39, 101, - 44, 42, 42, 43, 94, 39, 84, 84, 96, 43, - 44, 94, 105, 101, 44, 44, 62, 192, 62, 62, - 70, 62, 70, 70, 72, 70, 72, 72, 79, 72, - 79, 79, 70, 79, 86, 95, 86, 86, 89, 86, - 89, 89, 192, 89, 100, 86, 102, 95, 98, 89, - 89, 98, 102, 100, 103, 104, 106, 107, 102, 113, - 102, 109, 106, 113, 98, 108, 111, 140, 114, 112, - - 108, 107, 103, 103, 110, 106, 116, 104, 115, 108, - 119, 109, 140, 115, 111, 110, 110, 112, 114, 117, - 116, 118, 117, 110, 122, 117, 120, 118, 123, 119, - 121, 120, 124, 121, 125, 130, 124, 121, 117, 117, - 127, 125, 123, 122, 126, 128, 118, 127, 122, 129, - 132, 120, 131, 121, 128, 130, 131, 126, 134, 133, - 135, 136, 129, 133, 138, 135, 137, 137, 132, 135, - 139, 141, 142, 144, 139, 135, 134, 177, 146, 150, - 151, 136, 143, 139, 138, 143, 144, 145, 149, 139, - 146, 142, 148, 145, 147, 147, 143, 141, 150, 148, - - 143, 151, 152, 153, 149, 153, 155, 154, 156, 157, - 148, 155, 147, 227, 153, 147, 158, 159, 152, 154, - 156, 158, 161, 161, 179, 163, 153, 157, 163, 179, - 165, 159, 165, 165, 227, 165, 168, 168, 170, 181, - 170, 170, 171, 170, 171, 171, 173, 171, 175, 173, - 175, 175, 180, 175, 171, 178, 178, 181, 180, 182, - 183, 184, 185, 186, 187, 189, 188, 180, 183, 190, - 185, 188, 184, 213, 182, 183, 193, 191, 190, 187, - 176, 193, 186, 191, 191, 189, 194, 194, 195, 197, - 196, 213, 196, 197, 195, 196, 198, 198, 197, 199, - - 200, 201, 202, 197, 204, 200, 200, 202, 203, 197, - 197, 199, 196, 203, 205, 206, 204, 209, 207, 208, - 201, 206, 207, 210, 208, 211, 212, 214, 174, 218, - 215, 217, 214, 209, 205, 215, 217, 210, 212, 219, - 211, 212, 216, 216, 206, 220, 216, 224, 216, 218, - 223, 220, 221, 221, 260, 219, 223, 222, 225, 226, - 216, 260, 216, 222, 225, 226, 228, 224, 229, 222, - 230, 231, 228, 229, 226, 231, 230, 232, 233, 235, - 233, 234, 236, 232, 237, 233, 239, 234, 236, 238, - 240, 243, 235, 241, 242, 238, 243, 244, 245, 239, - - 246, 241, 247, 250, 237, 248, 244, 242, 239, 252, - 248, 248, 249, 245, 240, 251, 246, 249, 253, 251, - 254, 250, 247, 255, 253, 256, 258, 257, 258, 255, - 259, 252, 257, 263, 261, 262, 264, 266, 254, 254, - 261, 262, 264, 265, 269, 256, 267, 267, 272, 259, - 269, 266, 263, 268, 268, 265, 270, 271, 273, 271, - 274, 275, 270, 273, 277, 276, 279, 292, 269, 278, - 292, 272, 274, 276, 278, 280, 271, 281, 285, 287, - 275, 280, 282, 281, 277, 283, 284, 282, 286, 279, - 283, 288, 284, 285, 290, 289, 296, 287, 291, 293, - - 299, 293, 286, 289, 291, 288, 294, 294, 295, 297, - 297, 295, 298, 298, 296, 300, 299, 301, 302, 290, - 301, 305, 302, 303, 304, 307, 169, 308, 309, 317, - 300, 307, 303, 304, 309, 310, 311, 310, 318, 312, - 305, 308, 311, 312, 313, 313, 314, 315, 316, 317, - 319, 314, 320, 315, 316, 325, 318, 321, 321, 322, - 312, 323, 322, 324, 326, 320, 328, 324, 327, 327, - 400, 319, 329, 316, 325, 329, 330, 331, 332, 323, - 335, 332, 326, 331, 328, 333, 336, 340, 330, 335, - 337, 339, 329, 341, 339, 337, 400, 333, 334, 342, - - 340, 342, 342, 343, 336, 341, 346, 334, 343, 343, - 334, 344, 345, 345, 344, 334, 334, 334, 334, 338, - 347, 350, 338, 346, 338, 351, 346, 348, 349, 356, - 350, 352, 352, 361, 351, 347, 338, 338, 338, 353, - 338, 357, 348, 359, 353, 349, 349, 354, 354, 355, - 355, 360, 358, 361, 356, 359, 357, 358, 362, 363, - 364, 364, 366, 364, 367, 363, 369, 1379, 368, 367, - 360, 369, 364, 362, 368, 370, 372, 1379, 371, 364, - 370, 371, 366, 371, 373, 374, 370, 373, 375, 375, - 372, 376, 377, 377, 374, 383, 378, 376, 381, 382, - - 373, 378, 382, 373, 433, 373, 379, 379, 384, 379, - 383, 385, 388, 387, 395, 379, 387, 394, 381, 379, - 382, 390, 433, 384, 379, 385, 388, 379, 380, 380, - 391, 380, 387, 395, 402, 392, 390, 393, 394, 391, - 392, 392, 396, 393, 380, 407, 167, 380, 402, 380, - 393, 380, 389, 397, 389, 389, 398, 396, 401, 405, - 407, 406, 397, 399, 389, 389, 389, 389, 389, 399, - 403, 389, 404, 409, 412, 398, 403, 404, 401, 405, - 403, 406, 408, 410, 411, 411, 413, 408, 409, 410, - 414, 415, 416, 417, 412, 404, 418, 415, 413, 419, - - 419, 418, 419, 420, 414, 421, 422, 425, 430, 417, - 423, 424, 425, 424, 429, 429, 426, 416, 426, 426, - 431, 421, 422, 420, 423, 427, 428, 430, 432, 427, - 428, 435, 434, 438, 440, 431, 426, 437, 440, 435, - 435, 441, 438, 437, 432, 428, 434, 439, 443, 442, - 441, 435, 439, 435, 436, 442, 444, 445, 448, 436, - 446, 445, 444, 446, 450, 447, 166, 436, 436, 443, - 447, 436, 436, 449, 449, 436, 452, 450, 448, 451, - 451, 452, 453, 454, 454, 455, 456, 457, 458, 459, - 456, 455, 460, 462, 459, 453, 463, 460, 461, 461, - - 464, 465, 457, 466, 467, 462, 466, 461, 471, 458, - 468, 474, 469, 465, 476, 468, 463, 469, 464, 470, - 471, 472, 472, 470, 473, 467, 475, 475, 480, 473, - 478, 478, 474, 481, 482, 483, 476, 484, 485, 486, - 487, 481, 489, 485, 483, 490, 491, 492, 494, 480, - 493, 496, 487, 492, 494, 482, 495, 496, 484, 486, - 489, 498, 489, 490, 493, 495, 491, 497, 499, 501, - 500, 502, 497, 500, 504, 498, 499, 505, 503, 499, - 504, 506, 507, 501, 506, 508, 502, 503, 507, 509, - 510, 512, 511, 513, 509, 512, 514, 505, 513, 508, - - 515, 516, 517, 518, 521, 515, 507, 525, 522, 164, - 523, 514, 510, 511, 524, 526, 518, 516, 524, 527, - 526, 517, 519, 519, 521, 523, 525, 528, 519, 522, - 519, 528, 530, 532, 529, 527, 519, 533, 519, 529, - 531, 519, 519, 529, 534, 531, 533, 530, 519, 532, - 534, 535, 532, 536, 537, 534, 538, 537, 539, 540, - 540, 541, 542, 542, 544, 531, 535, 543, 545, 536, - 546, 546, 547, 548, 551, 549, 544, 552, 539, 538, - 549, 550, 543, 545, 561, 556, 541, 555, 553, 556, - 550, 547, 552, 551, 553, 548, 555, 557, 558, 559, - - 560, 557, 562, 561, 558, 563, 564, 568, 565, 566, - 569, 559, 565, 570, 570, 560, 562, 567, 569, 567, - 563, 571, 566, 572, 564, 574, 573, 571, 576, 577, - 575, 568, 573, 575, 578, 572, 580, 574, 579, 578, - 581, 579, 576, 582, 577, 580, 583, 162, 582, 582, - 584, 584, 580, 585, 585, 580, 581, 586, 591, 583, - 587, 587, 589, 586, 588, 588, 590, 592, 589, 593, - 594, 590, 590, 594, 595, 596, 591, 597, 600, 595, - 598, 593, 599, 598, 601, 597, 602, 599, 592, 603, - 602, 604, 605, 607, 596, 603, 605, 606, 607, 608, - - 611, 600, 610, 601, 609, 609, 613, 612, 614, 615, - 616, 604, 612, 608, 617, 606, 616, 610, 618, 617, - 620, 611, 622, 619, 614, 613, 619, 621, 621, 615, - 623, 619, 618, 626, 619, 619, 624, 625, 620, 627, - 622, 624, 625, 629, 630, 631, 623, 626, 631, 629, - 636, 632, 633, 630, 627, 632, 634, 633, 635, 634, - 637, 638, 639, 635, 640, 641, 636, 643, 638, 640, - 642, 642, 644, 646, 645, 639, 643, 632, 637, 645, - 648, 647, 651, 649, 652, 641, 650, 160, 651, 657, - 652, 644, 649, 661, 646, 647, 648, 653, 650, 658, - - 653, 654, 654, 655, 654, 656, 655, 657, 659, 660, - 656, 662, 661, 658, 660, 663, 665, 662, 664, 665, - 663, 666, 659, 667, 664, 668, 669, 670, 667, 671, - 672, 669, 669, 673, 674, 672, 675, 677, 676, 673, - 670, 668, 671, 676, 679, 675, 666, 678, 678, 672, - 672, 679, 680, 674, 682, 681, 683, 677, 681, 680, - 682, 684, 686, 686, 685, 687, 684, 689, 683, 685, - 685, 691, 688, 681, 688, 690, 684, 690, 692, 693, - 694, 695, 696, 697, 698, 699, 689, 697, 696, 691, - 687, 700, 701, 698, 702, 703, 692, 693, 703, 694, - - 699, 695, 704, 705, 706, 707, 700, 703, 708, 705, - 701, 709, 710, 702, 712, 711, 714, 704, 712, 707, - 708, 713, 715, 716, 706, 717, 718, 721, 721, 720, - 709, 719, 714, 710, 711, 723, 719, 724, 726, 713, - 715, 716, 716, 720, 717, 718, 722, 725, 727, 723, - 722, 728, 726, 727, 729, 730, 724, 731, 725, 733, - 732, 734, 737, 739, 731, 732, 733, 728, 730, 735, - 736, 738, 739, 729, 735, 736, 740, 741, 738, 742, - 737, 743, 747, 744, 749, 734, 741, 743, 744, 745, - 740, 742, 745, 746, 748, 750, 747, 746, 751, 749, - - 752, 752, 756, 748, 753, 753, 754, 754, 758, 750, - 755, 756, 759, 753, 760, 755, 761, 762, 759, 751, - 761, 763, 764, 766, 765, 767, 768, 758, 769, 762, - 765, 766, 767, 773, 760, 770, 779, 776, 782, 790, - 764, 780, 784, 783, 768, 779, 763, 780, 773, 783, - 785, 784, 85, 769, 776, 770, 771, 790, 771, 786, - 782, 771, 789, 786, 792, 771, 785, 791, 771, 787, - 787, 788, 788, 789, 793, 771, 771, 796, 771, 795, - 793, 791, 796, 798, 792, 794, 794, 794, 797, 794, - 799, 800, 794, 802, 799, 803, 801, 794, 802, 795, - - 801, 798, 804, 794, 794, 805, 794, 804, 806, 797, - 807, 80, 808, 807, 803, 800, 801, 808, 808, 809, - 805, 810, 810, 811, 812, 814, 809, 813, 813, 812, - 814, 815, 816, 806, 815, 817, 817, 816, 811, 818, - 819, 818, 820, 821, 822, 824, 823, 821, 825, 825, - 830, 826, 819, 824, 827, 828, 828, 829, 831, 834, - 834, 820, 830, 832, 822, 823, 826, 833, 827, 832, - 839, 835, 833, 837, 840, 829, 835, 835, 837, 838, - 831, 841, 843, 842, 844, 838, 846, 843, 839, 842, - 844, 845, 846, 840, 845, 847, 848, 848, 849, 849, - - 850, 841, 851, 847, 852, 854, 853, 855, 850, 852, - 853, 856, 854, 857, 858, 858, 860, 859, 861, 861, - 851, 863, 862, 864, 860, 855, 859, 856, 862, 866, - 868, 867, 857, 874, 870, 873, 869, 875, 866, 863, - 867, 869, 864, 870, 871, 872, 875, 871, 876, 873, - 872, 877, 878, 880, 868, 881, 877, 877, 874, 879, - 879, 876, 882, 883, 884, 889, 878, 885, 880, 891, - 885, 882, 892, 887, 881, 887, 888, 888, 885, 890, - 893, 894, 884, 897, 890, 895, 889, 883, 896, 898, - 891, 899, 892, 898, 900, 901, 903, 896, 902, 904, - - 893, 901, 905, 894, 906, 895, 897, 902, 903, 899, - 907, 908, 909, 900, 912, 904, 907, 910, 906, 908, - 913, 905, 910, 911, 911, 914, 909, 915, 916, 917, - 918, 919, 922, 912, 914, 920, 916, 921, 922, 923, - 913, 927, 924, 931, 926, 923, 933, 915, 925, 917, - 919, 933, 918, 928, 925, 920, 924, 921, 926, 928, - 929, 927, 931, 930, 932, 934, 929, 930, 935, 935, - 938, 936, 937, 938, 939, 940, 932, 936, 937, 941, - 942, 943, 943, 944, 932, 941, 934, 946, 940, 945, - 946, 947, 939, 948, 945, 949, 947, 947, 951, 949, - - 942, 944, 952, 946, 953, 946, 950, 950, 948, 953, - 954, 956, 957, 960, 959, 961, 963, 963, 967, 964, - 951, 968, 952, 964, 965, 968, 957, 959, 986, 954, - 966, 966, 969, 960, 986, 956, 961, 962, 970, 965, - 962, 972, 962, 967, 971, 973, 962, 969, 962, 971, - 973, 973, 970, 962, 974, 972, 975, 976, 962, 977, - 978, 976, 980, 974, 979, 978, 981, 980, 982, 983, - 975, 75, 984, 976, 977, 978, 979, 985, 993, 987, - 981, 984, 985, 983, 987, 988, 989, 990, 990, 982, - 991, 988, 989, 992, 994, 991, 995, 997, 998, 992, - - 993, 1001, 1001, 998, 999, 1000, 1002, 74, 1004, 997, - 1005, 1002, 1003, 994, 995, 996, 996, 1000, 999, 1006, - 1003, 996, 1004, 996, 1007, 1008, 1005, 1011, 1012, 996, - 1009, 1010, 1011, 1006, 996, 996, 1013, 1010, 1015, 1014, - 1012, 996, 1016, 1007, 1008, 1018, 1009, 1017, 1017, 1018, - 1019, 1021, 1023, 1025, 1013, 1014, 1015, 1021, 1022, 1024, - 1016, 1022, 1026, 1028, 1024, 1030, 1025, 1027, 1026, 1031, - 1019, 1023, 1027, 1032, 1030, 1033, 1034, 1035, 1031, 1036, - 1037, 1033, 1028, 1038, 1036, 1034, 1039, 1040, 1043, 1032, - 1044, 1049, 1041, 1042, 1043, 1047, 1035, 1038, 1045, 1040, - - 1037, 1041, 1042, 1050, 1045, 1049, 1039, 1044, 1051, 1052, - 1053, 1047, 1054, 1055, 1052, 1057, 1053, 1056, 1151, 1058, - 1059, 1062, 1151, 1050, 1058, 1059, 1062, 1055, 1063, 1068, - 1057, 1054, 1067, 1051, 1065, 1056, 1066, 1063, 1064, 1064, - 1065, 1067, 1066, 1069, 1068, 1071, 1072, 1075, 1078, 1074, - 1074, 1072, 1072, 1074, 1076, 1077, 1069, 1076, 1079, 1080, - 1081, 1071, 1075, 1082, 1083, 1084, 1085, 1086, 1078, 1077, - 1083, 1087, 1085, 1081, 1079, 1088, 1087, 1080, 1082, 1090, - 1090, 1091, 1086, 1092, 1091, 1084, 1093, 1094, 1096, 1088, - 1095, 1093, 1094, 1097, 1098, 1099, 1101, 1096, 1097, 1098, - - 1102, 1106, 1101, 1103, 1092, 1104, 1095, 1099, 1107, 1103, - 1106, 1104, 1105, 1105, 1108, 1110, 1102, 1108, 1109, 1109, - 1111, 1112, 1113, 1114, 1115, 1113, 1107, 1118, 1116, 1117, - 1115, 68, 1118, 1110, 1116, 1117, 1114, 1119, 1120, 1111, - 1121, 1112, 1119, 1122, 1120, 1121, 1124, 1125, 1126, 1122, - 1127, 1124, 1128, 1129, 1129, 1130, 1127, 1128, 1131, 1133, - 1134, 1132, 1139, 1137, 1130, 1125, 1132, 1131, 1126, 1135, - 1136, 1138, 1135, 1136, 1137, 1140, 1138, 1133, 1141, 1134, - 1139, 1144, 1142, 1143, 1147, 1145, 1148, 1140, 1142, 1143, - 1145, 1146, 1146, 1149, 1150, 1152, 1144, 1141, 1153, 1154, - - 1148, 1155, 1157, 1147, 1162, 1149, 1159, 1153, 1158, 1158, - 1160, 1161, 1150, 1152, 1159, 1160, 1161, 1164, 1154, 1165, - 1166, 1157, 1167, 1170, 1162, 63, 1155, 1167, 1168, 1169, - 1169, 1164, 1166, 1171, 1165, 1172, 1173, 1168, 1180, 1171, - 1174, 1172, 1175, 1170, 1175, 1174, 1176, 1177, 1178, 1179, - 1181, 1176, 1173, 1180, 1179, 1183, 1182, 1184, 1186, 1186, - 1187, 1177, 1178, 1182, 1188, 1189, 1190, 1191, 1196, 1181, - 1183, 1194, 1190, 1196, 1187, 1194, 1184, 1199, 1192, 1198, - 1189, 1201, 1188, 1192, 1195, 1195, 1198, 1191, 1197, 1197, - 1200, 1199, 1192, 1200, 1192, 1202, 1203, 1192, 1204, 1205, - - 1201, 1207, 1206, 1204, 1208, 1203, 1209, 1207, 1210, 1208, - 1211, 1213, 1213, 1202, 1206, 1216, 1214, 1215, 1205, 1210, - 1209, 1214, 1215, 1217, 1219, 1220, 1218, 1221, 1217, 1211, - 1218, 1222, 1224, 1219, 1223, 1216, 1225, 1223, 1227, 1226, - 1220, 1228, 1221, 1225, 1231, 1229, 1223, 1224, 1230, 1232, - 1222, 1226, 1233, 1234, 1230, 1235, 1236, 1227, 1233, 1231, - 1232, 1237, 1228, 1229, 1238, 1236, 1239, 1240, 1241, 1242, - 1244, 1243, 1247, 1234, 1246, 1235, 1237, 1243, 1239, 1250, - 1246, 1248, 1251, 1238, 1242, 1253, 1240, 1247, 1249, 1252, - 1244, 1255, 1340, 1241, 1252, 1248, 1249, 1253, 1251, 1250, - - 1254, 1256, 1270, 1257, 1261, 1254, 1254, 1258, 1258, 1340, - 1255, 1260, 1265, 1261, 1262, 1256, 1257, 1259, 1259, 1287, - 1262, 1265, 1259, 1270, 1260, 1259, 1259, 1263, 1263, 1264, - 1259, 1266, 1287, 1267, 1264, 1273, 1259, 1266, 1267, 1268, - 1259, 1269, 1269, 1274, 1268, 1271, 1271, 1272, 1275, 1278, - 1272, 1276, 1272, 1277, 1275, 1273, 1277, 1276, 1278, 1279, - 1280, 1274, 1281, 1282, 1283, 1280, 1284, 1286, 1285, 1288, - 1283, 1286, 1284, 1285, 1290, 1289, 1281, 58, 1288, 1279, - 1289, 1282, 1297, 1288, 1296, 1288, 1293, 1288, 1290, 1288, - 1291, 1291, 1292, 1292, 1295, 1292, 1298, 1293, 1295, 1296, - - 1299, 1300, 1297, 1301, 1302, 1303, 1300, 1300, 1304, 1299, - 1303, 1305, 1301, 1306, 1298, 1307, 1308, 1309, 1310, 1310, - 1305, 1311, 1304, 1309, 1313, 1315, 1302, 1312, 1316, 1319, - 1308, 1314, 1306, 1311, 1307, 1312, 1314, 1316, 1313, 1315, - 1317, 1318, 1322, 1320, 1321, 1321, 1328, 1317, 1320, 1323, - 1323, 1324, 1326, 1324, 1319, 1326, 1327, 1322, 1329, 1318, - 1331, 1327, 1330, 1330, 1335, 1328, 1336, 1329, 1332, 1332, - 1333, 1333, 1334, 1337, 1338, 1338, 1339, 1334, 1341, 1342, - 1331, 1341, 1343, 1345, 1344, 1335, 1347, 1336, 1343, 1344, - 1350, 1346, 1345, 1346, 1337, 1349, 1339, 1351, 1349, 1342, - - 1353, 1352, 1354, 1355, 1347, 1350, 1352, 1354, 1356, 1357, - 1351, 1355, 1357, 1356, 1353, 1358, 1359, 1359, 1360, 1361, - 1358, 1362, 1363, 1360, 1366, 1364, 1367, 1362, 1368, 1363, - 1366, 1369, 1367, 1368, 1370, 1371, 1369, 1361, 1364, 1372, - 1370, 1373, 1374, 1374, 1371, 1375, 1377, 1380, 1378, 1381, - 1382, 1377, 1373, 1383, 1384, 1385, 1388, 1387, 1372, 1383, - 1384, 1385, 1380, 1387, 1389, 1375, 1378, 1390, 1391, 1381, - 1388, 1392, 1393, 1382, 1394, 1394, 1388, 1395, 1396, 1400, - 1391, 1397, 1403, 1398, 1389, 1392, 1405, 1390, 1398, 1401, - 1393, 1399, 1399, 57, 1401, 1408, 1409, 1395, 1406, 1397, - - 1404, 1403, 1400, 1396, 1405, 1404, 1404, 1406, 1407, 1408, - 1410, 1409, 1411, 1412, 1420, 1414, 1407, 1411, 1416, 1413, - 1411, 1413, 1412, 1417, 1416, 1410, 1418, 1417, 1410, 1414, - 1419, 1421, 1422, 1420, 1423, 1419, 1419, 1418, 1424, 1423, - 1425, 1426, 1427, 1424, 1428, 1425, 1429, 1431, 1437, 1428, - 1422, 1432, 1433, 1434, 1434, 1436, 1435, 1421, 1438, 1426, - 1435, 1431, 1427, 1439, 1438, 1440, 1429, 1437, 1441, 1432, - 1433, 1442, 1447, 1436, 1443, 1439, 1444, 1445, 1446, 1447, - 1449, 1440, 1451, 1446, 1456, 1442, 1450, 1441, 1448, 1443, - 1452, 1444, 1454, 1448, 1453, 1453, 1445, 1455, 1449, 1452, - - 1450, 1457, 1457, 1451, 1456, 1458, 1455, 1454, 1459, 1460, - 1464, 1458, 1461, 1461, 1459, 1462, 1462, 1465, 1463, 52, - 1466, 1467, 1468, 1460, 1463, 1466, 1464, 1467, 1468, 1469, - 1470, 1470, 1471, 1471, 1477, 1469, 1473, 1473, 1465, 1474, - 1475, 1476, 1478, 1474, 1480, 1479, 1477, 1481, 1481, 1475, - 1482, 1480, 1471, 1483, 1471, 1485, 1478, 1484, 1486, 1476, - 1479, 1483, 1484, 1489, 1490, 1490, 1487, 1491, 1488, 1485, - 1482, 1487, 1487, 1488, 1488, 1492, 1493, 1486, 1495, 1494, - 1496, 1497, 1498, 1489, 1494, 1493, 1491, 1499, 1498, 1500, - 1501, 1502, 1499, 1503, 1492, 1504, 1505, 1495, 1506, 1497, - - 1496, 1504, 1507, 1508, 1506, 1509, 1502, 1500, 1507, 1510, - 1501, 1511, 1512, 1513, 1514, 1505, 47, 1515, 1518, 1503, - 1516, 1516, 1508, 1517, 1509, 1519, 1517, 1513, 1510, 1520, - 1511, 1512, 1515, 1521, 1521, 1514, 1525, 1518, 1522, 1522, - 1523, 1520, 1524, 1526, 1519, 1523, 1524, 1527, 1528, 1525, - 1531, 1529, 1533, 1529, 1532, 1534, 1527, 1529, 1526, 1532, - 1535, 1528, 1536, 1536, 1537, 1538, 1539, 1533, 1531, 1537, - 1529, 1538, 1540, 1541, 1543, 1534, 1535, 1542, 1543, 1541, - 1544, 1539, 1542, 1545, 1544, 1540, 1546, 1547, 1548, 1549, - 1550, 1550, 1552, 1554, 1555, 1549, 1547, 1556, 1556, 1555, - - 1557, 1558, 1562, 1545, 1546, 1562, 1557, 1564, 1548, 1565, - 1552, 1560, 1560, 1566, 1554, 1563, 1563, 1568, 1569, 1571, - 1568, 1558, 1570, 1564, 1572, 1565, 1573, 1573, 1571, 1566, - 1574, 1575, 1576, 1577, 1578, 1579, 1580, 1580, 1577, 1569, - 1581, 1579, 1570, 1582, 1572, 1574, 1584, 1583, 1578, 1581, - 1585, 1576, 1575, 1586, 1586, 1587, 1588, 1590, 1589, 1591, - 1591, 1582, 1583, 1589, 1592, 1593, 1594, 1594, 1592, 1587, - 1585, 1584, 1590, 1595, 1588, 1596, 1597, 1598, 1599, 1600, - 1604, 1598, 1602, 1602, 1600, 1593, 1603, 1597, 1606, 1603, - 1607, 1605, 1608, 1604, 1596, 1595, 1605, 1599, 1609, 1610, - - 1611, 1612, 1612, 1614, 1606, 1613, 1608, 1615, 1607, 1618, - 1613, 1616, 1616, 1610, 1618, 1617, 1619, 1609, 1609, 1620, - 1623, 1620, 1622, 1614, 1617, 1611, 1621, 1615, 1622, 1624, - 1626, 1621, 1627, 1627, 1628, 1624, 1619, 1629, 1632, 1636, - 1623, 1631, 1635, 1629, 1626, 1637, 1631, 1633, 1633, 1634, - 1634, 1638, 1640, 1628, 1638, 1641, 1635, 1636, 1639, 1639, - 1637, 1642, 1632, 1644, 1650, 1643, 1648, 1641, 1643, 1644, - 1640, 1643, 1645, 1646, 1649, 1648, 1646, 1645, 1653, 1649, - 1661, 1642, 1651, 1643, 1654, 1651, 1652, 1652, 1655, 1650, - 1654, 1656, 1646, 1661, 1655, 1659, 1656, 1657, 1657, 1658, - - 1658, 1659, 1653, 1660, 1662, 1663, 1664, 1665, 1660, 1666, - 1665, 1667, 1668, 1671, 1669, 1666, 1675, 1667, 1668, 1669, - 1672, 1670, 1662, 1676, 1663, 1672, 1664, 1670, 1673, 1673, - 1674, 1677, 1678, 1679, 1675, 1674, 1671, 1684, 1680, 1683, - 1681, 1682, 1687, 1676, 1685, 1686, 1677, 1686, 1685, 1688, - 1692, 1678, 1680, 1679, 1681, 1682, 1688, 1683, 1690, 1691, - 1693, 1687, 1684, 1692, 1694, 1695, 1693, 1696, 1697, 1698, - 1690, 1691, 1698, 1699, 1699, 1703, 1700, 1702, 1702, 1705, - 1708, 1695, 1697, 1704, 1694, 1700, 1707, 1696, 1704, 1709, - 1698, 1705, 1706, 1706, 1708, 1703, 1710, 1711, 1713, 1714, - - 1712, 1707, 1715, 1719, 1717, 1713, 1711, 1720, 1714, 1724, - 1720, 1714, 1727, 1709, 1710, 1712, 1721, 1721, 1715, 1717, - 1722, 1722, 1723, 1725, 1717, 1727, 1725, 1724, 1719, 1726, - 1726, 1728, 1729, 1730, 1723, 1732, 1731, 1729, 1730, 1731, - 1733, 1734, 1735, 1736, 1737, 1733, 1739, 1820, 1740, 1743, - 1728, 1820, 1736, 1738, 1740, 1739, 1732, 1742, 1735, 1744, - 1734, 1745, 1738, 1737, 1742, 1738, 1741, 1741, 1746, 1743, - 1747, 1748, 1744, 1749, 1753, 1750, 1748, 1748, 1749, 1745, - 1754, 1757, 1746, 1755, 1755, 1756, 1747, 1750, 1756, 1759, - 1759, 1758, 1760, 1760, 1759, 1763, 1761, 1757, 1754, 1753, - - 1758, 1762, 1764, 1765, 1766, 1761, 1762, 1760, 1761, 1766, - 1766, 1768, 1769, 1763, 1770, 1771, 1772, 1774, 1773, 1782, - 1771, 1765, 18, 1764, 1773, 1768, 1776, 1769, 1775, 1775, - 1772, 1778, 1776, 1777, 1779, 1774, 1770, 1780, 1777, 1782, - 1779, 1783, 1784, 1780, 1785, 1778, 1787, 1786, 1784, 1791, - 1786, 1789, 1787, 1792, 1793, 1783, 1786, 1785, 1794, 1789, - 1795, 1796, 1797, 17, 1799, 1795, 1794, 1798, 1791, 1800, - 1796, 1801, 1792, 1793, 1803, 1797, 1798, 1799, 1802, 1802, - 1803, 1804, 1806, 1800, 1808, 1801, 1805, 1804, 1809, 1805, - 1807, 1807, 1810, 1811, 1811, 1806, 1812, 1813, 1814, 1815, - - 1802, 1816, 1819, 1813, 1808, 1821, 1809, 1818, 1818, 1812, - 1821, 1810, 1822, 1823, 1825, 1815, 1824, 1826, 1823, 1816, - 1814, 1824, 1819, 1825, 1828, 1829, 1830, 1831, 1832, 1830, - 1833, 1833, 1822, 1834, 1829, 1828, 1835, 1836, 1839, 1831, - 1826, 1837, 1837, 1832, 1838, 1839, 1843, 1840, 1835, 1841, - 1844, 1845, 1834, 1847, 1846, 1853, 1836, 1845, 1838, 1840, - 1853, 1841, 1848, 1849, 1849, 1843, 1846, 1854, 1848, 1850, - 1844, 1847, 1850, 1851, 1851, 1855, 1854, 1856, 1856, 1857, - 1858, 1855, 1858, 1859, 1860, 1861, 1859, 1862, 1863, 1864, - 1865, 1857, 1866, 1869, 1864, 1865, 1867, 1868, 1869, 1871, - - 1870, 1866, 1874, 0, 1860, 1862, 1863, 1861, 1867, 1870, - 1873, 1872, 1868, 1875, 1875, 1873, 1872, 1874, 1876, 1871, - 1877, 1879, 1870, 1872, 1876, 1880, 1881, 1882, 1883, 1884, - 1956, 1884, 1889, 1885, 1886, 1886, 1892, 1879, 1887, 1887, - 1893, 1877, 1894, 1882, 1880, 1881, 1956, 1885, 1883, 1885, - 1888, 1888, 1889, 1890, 1890, 1891, 1891, 1892, 1895, 1895, - 1896, 1893, 1897, 1894, 1896, 1900, 1898, 1901, 1897, 1898, - 1902, 1900, 1903, 1904, 1905, 1911, 1902, 1906, 1904, 1909, - 1906, 1907, 1907, 1908, 1909, 1901, 1910, 1910, 1912, 1913, - 1911, 1914, 1915, 1915, 1913, 1903, 1914, 1916, 1917, 1905, - - 1918, 1919, 1916, 1908, 1917, 1920, 1921, 1923, 1924, 1912, - 1922, 1925, 1918, 1918, 1918, 1926, 1922, 1929, 1925, 1918, - 1926, 1919, 1930, 1920, 1928, 1932, 1921, 1923, 1924, 1928, - 1928, 1929, 1931, 1933, 1931, 1934, 1932, 1930, 1935, 1936, - 1937, 1934, 1938, 1938, 1939, 1940, 1940, 1935, 1933, 1941, - 1942, 1943, 1943, 1944, 1944, 1945, 1948, 1948, 1949, 1936, - 1953, 1937, 1950, 1955, 1952, 1957, 1958, 1958, 1954, 1941, - 1939, 1950, 1942, 1952, 1954, 1945, 1959, 1960, 1961, 1957, - 1962, 1953, 1955, 1949, 1963, 1961, 1964, 1964, 1965, 1962, - 1966, 1969, 1960, 1968, 1970, 1971, 1969, 1959, 1972, 1968, - - 1970, 1973, 1974, 1976, 1974, 1972, 1966, 1973, 1978, 1978, - 1963, 1977, 1980, 1979, 1965, 1971, 1981, 1977, 1979, 1982, - 1985, 1980, 1976, 1983, 1984, 1986, 1987, 1984, 1986, 1988, - 1990, 1981, 1985, 1989, 1989, 1991, 1990, 1992, 1993, 1982, - 1996, 1991, 1983, 1994, 1987, 1997, 1998, 1994, 1999, 1999, - 2000, 1998, 2001, 1993, 2002, 1988, 2004, 1992, 2005, 2008, - 1996, 0, 2005, 1994, 2006, 2006, 2007, 1997, 2008, 2002, - 2011, 2001, 2007, 2013, 2000, 2004, 2009, 2009, 2010, 2012, - 2012, 2011, 2010, 2014, 2015, 2016, 2011, 2017, 2018, 2019, - 2016, 2022, 2020, 2021, 2013, 2023, 2031, 2014, 2020, 2024, - - 2023, 2025, 2025, 2015, 2026, 2026, 2022, 2017, 2018, 2019, - 2027, 2021, 2024, 2029, 2027, 2030, 2031, 2040, 2032, 2033, - 2033, 0, 2029, 2032, 2035, 2035, 2030, 2036, 2037, 2039, - 2042, 2030, 2036, 2036, 2037, 2039, 2041, 2045, 2043, 2047, - 2049, 2041, 2042, 2040, 2043, 2051, 2046, 2048, 2048, 2045, - 2046, 2047, 2050, 2052, 2053, 2053, 2054, 2055, 2050, 2052, - 2057, 2056, 2059, 2060, 2061, 2049, 2056, 2051, 2063, 2061, - 2067, 2063, 2057, 2076, 2059, 2054, 2076, 2055, 2064, 2064, - 2065, 2065, 2060, 2066, 2066, 2068, 2069, 2072, 2070, 2071, - 2067, 2068, 2069, 2070, 2074, 2071, 2072, 2077, 2080, 2074, - - 2078, 2078, 2081, 2082, 2083, 2083, 2084, 2085, 2082, 2077, - 2080, 2086, 2085, 2089, 2081, 2084, 2086, 2087, 2088, 2088, - 2087, 2090, 2091, 2092, 2093, 2096, 2094, 2097, 2093, 2095, - 2090, 2094, 2098, 2089, 2099, 2095, 2097, 2101, 2101, 2102, - 2091, 2105, 2092, 2096, 2103, 2104, 2106, 2106, 2099, 2101, - 2098, 2107, 2108, 2103, 2104, 2109, 2111, 2102, 2110, 2116, - 2107, 2105, 2116, 2110, 2108, 2114, 2114, 2117, 2118, 2111, - 2119, 2122, 2121, 2123, 2124, 2127, 2109, 2125, 2125, 2123, - 2126, 2128, 2126, 2117, 2118, 2122, 2119, 2121, 2130, 2127, - 2135, 2124, 2129, 2129, 2132, 2132, 2130, 2133, 2133, 2128, - - 2136, 2137, 2138, 2139, 2140, 2141, 2136, 2137, 2142, 2142, - 2139, 2143, 2143, 2135, 2144, 2145, 2138, 2146, 2147, 2148, - 2143, 2149, 2151, 2150, 2156, 2141, 2140, 2145, 2153, 2146, - 2157, 2148, 2150, 2147, 2152, 2144, 2154, 2151, 2154, 2152, - 2152, 2160, 2154, 2161, 2156, 2158, 2164, 2149, 2159, 2159, - 2167, 2153, 2167, 2157, 2168, 2154, 2174, 2158, 2162, 2160, - 2163, 2162, 2166, 2161, 2169, 2163, 2164, 2166, 2170, 2169, - 2172, 2175, 2168, 2176, 2174, 2170, 2177, 2178, 2177, 2172, - 2175, 2179, 2180, 2181, 2183, 2176, 2183, 2186, 2180, 2187, - 2184, 2185, 2185, 2188, 2187, 2188, 2178, 2189, 2191, 2192, - - 2190, 2179, 2189, 2181, 2184, 2190, 2193, 2195, 2194, 2196, - 2199, 2197, 2195, 2186, 2194, 2198, 2191, 2192, 2199, 2201, - 2198, 2198, 2196, 2197, 2203, 2202, 2193, 2204, 2204, 2205, - 2205, 2206, 2207, 2208, 2209, 2211, 2203, 2211, 2201, 2202, - 2209, 2210, 2206, 2212, 2213, 2215, 2210, 2207, 2214, 2214, - 2216, 2216, 2213, 2208, 2217, 2217, 2218, 2215, 2219, 2220, - 2213, 2212, 2222, 2219, 2223, 2218, 2222, 2224, 2225, 2224, - 2227, 2229, 2228, 2223, 2226, 2231, 2223, 2220, 2243, 2226, - 2226, 2228, 2227, 2229, 2235, 2232, 2233, 2231, 2236, 2225, - 2232, 2233, 2237, 2238, 2238, 2239, 2236, 2235, 2240, 2241, - - 2244, 2237, 2242, 2243, 2245, 2246, 2250, 2251, 2236, 2248, - 2246, 2249, 2251, 2239, 2244, 2252, 2240, 2241, 2242, 2245, - 2252, 2248, 2253, 2249, 2254, 2260, 2250, 2257, 2259, 2261, - 2263, 2253, 2262, 2257, 2259, 2268, 2264, 2265, 2265, 2269, - 2266, 2274, 2254, 2270, 2261, 2264, 2257, 2270, 2260, 2266, - 2262, 2267, 2267, 2268, 2271, 2263, 2272, 2275, 2269, 2271, - 2274, 2276, 2277, 2275, 2278, 2279, 2281, 2277, 2277, 2272, - 2278, 2279, 2280, 2282, 2281, 2280, 2285, 2285, 2287, 2286, - 2286, 2288, 2288, 2276, 2289, 2289, 2290, 2287, 2291, 2292, - 2300, 2293, 2296, 2282, 2286, 2292, 2293, 2296, 2290, 2294, - - 2294, 2295, 2295, 2297, 2299, 2286, 2291, 2301, 2299, 2297, - 2300, 2301, 2302, 2304, 2305, 2307, 2306, 2308, 2309, 2305, - 2311, 2310, 2308, 2312, 2313, 2314, 2314, 2315, 2312, 2316, - 2307, 2315, 2302, 2318, 2319, 2320, 2309, 2310, 2304, 2306, - 2311, 2325, 2317, 2321, 2316, 2322, 2313, 2317, 2324, 2323, - 2328, 2318, 2329, 2320, 2323, 2321, 2326, 2326, 2328, 2325, - 2319, 2324, 2330, 2331, 2322, 2332, 2333, 2334, 2335, 2338, - 2337, 2329, 2336, 2339, 2343, 2338, 2346, 2341, 2346, 2339, - 2344, 2330, 2331, 2347, 2336, 2352, 2334, 2343, 2332, 2335, - 2333, 2337, 2341, 2345, 2344, 2348, 2348, 2349, 2350, 2345, - - 2351, 2350, 2349, 2347, 2353, 2359, 2354, 2355, 2355, 2352, - 2356, 2356, 2357, 2351, 2357, 2358, 2358, 2360, 2353, 2354, - 2359, 2361, 2362, 2362, 2364, 2364, 2362, 2365, 2365, 2366, - 2366, 2367, 2360, 2373, 2361, 2368, 2368, 2369, 2369, 2370, - 2367, 2372, 2374, 2367, 2370, 2375, 2372, 2376, 2376, 2377, - 2377, 2378, 2382, 2373, 2379, 2379, 2380, 2375, 2381, 2381, - 2383, 2386, 2374, 2384, 2384, 2383, 2389, 2382, 2385, 2385, - 2378, 2387, 2388, 2388, 2380, 2386, 2390, 2390, 2391, 2392, - 2387, 2394, 2396, 2389, 2395, 2395, 2394, 2397, 2397, 2398, - 2399, 2400, 2391, 2401, 2404, 2399, 2401, 2400, 2392, 2402, - - 2402, 2396, 2403, 2403, 2405, 2408, 2406, 2398, 2406, 2409, - 2410, 2410, 2411, 2404, 2413, 2402, 2414, 2415, 2411, 2405, - 2408, 2416, 2417, 2418, 2418, 2419, 2417, 2420, 2409, 2425, - 2421, 2414, 2420, 2427, 2413, 2428, 2416, 2422, 2422, 2426, - 2415, 2424, 2424, 2429, 2419, 2421, 2426, 2427, 2430, 2425, - 2431, 2433, 2422, 2428, 2432, 2432, 2434, 2438, 2434, 2435, - 2433, 2429, 2435, 2430, 2437, 2441, 2439, 2440, 2442, 2438, - 2437, 2439, 2440, 2443, 2444, 2445, 2431, 2435, 2446, 2435, - 2445, 2442, 2448, 2444, 2449, 2451, 2450, 2448, 2454, 2449, - 2441, 2450, 2452, 2453, 2443, 2455, 2456, 2459, 2452, 2453, - - 2451, 2457, 2456, 2458, 2446, 2460, 2457, 2462, 2458, 2454, - 2455, 2461, 2463, 0, 2461, 2464, 2465, 2466, 2460, 2467, - 2472, 2463, 2459, 2468, 2464, 2465, 2466, 2462, 2469, 2468, - 2474, 2470, 2475, 2467, 2469, 2470, 2476, 2476, 2477, 2479, - 2472, 2475, 2478, 2478, 2477, 2480, 2480, 2481, 2479, 2482, - 2474, 2478, 2481, 2487, 2484, 2488, 2485, 2486, 2486, 2491, - 2495, 2490, 2492, 2495, 2488, 2497, 2493, 0, 2487, 2482, - 2484, 2482, 2485, 2490, 2496, 2491, 2498, 2492, 2493, 2496, - 2499, 2499, 2500, 2500, 2509, 2497, 2502, 2502, 2498, 2503, - 2504, 2505, 2503, 2506, 2507, 2504, 2511, 2505, 2509, 2506, - - 2508, 2508, 2512, 2507, 2510, 2510, 2513, 2515, 2511, 2514, - 2514, 2519, 2516, 2515, 2517, 2519, 2512, 2520, 2522, 2517, - 2520, 2521, 2521, 2522, 2523, 2513, 2516, 2524, 2525, 2523, - 2526, 2527, 2528, 2528, 2529, 2527, 2524, 2525, 2531, 2532, - 2533, 2534, 2535, 2531, 2536, 2537, 2538, 2529, 2536, 2539, - 2526, 2538, 2540, 2541, 2541, 2539, 2535, 2543, 2540, 2532, - 2533, 2534, 2542, 2542, 2544, 2537, 2545, 2546, 2547, 2548, - 2548, 2551, 2546, 2552, 2550, 2543, 2553, 2556, 2552, 2556, - 2555, 2560, 2553, 2544, 2554, 2545, 2550, 2551, 2555, 2547, - 2554, 2558, 2561, 2562, 2562, 2560, 2563, 2564, 2564, 2563, - - 2558, 2566, 2567, 2568, 2566, 2567, 2561, 2569, 2569, 2572, - 2573, 2574, 2576, 2572, 2575, 2575, 2573, 2579, 2579, 2581, - 2583, 2576, 2584, 2574, 2588, 2587, 2589, 2590, 2592, 2568, - 2587, 2593, 2599, 2592, 2583, 2601, 2593, 2581, 2584, 2594, - 2594, 2596, 2596, 2598, 2589, 2600, 2600, 2602, 2590, 2598, - 2588, 2601, 2599, 2603, 2605, 2607, 2606, 2612, 2603, 2606, - 2608, 2609, 2609, 2611, 2613, 2614, 2612, 2607, 2615, 2602, - 2613, 2614, 2608, 2605, 2616, 2618, 2618, 2619, 2620, 2611, - 2619, 2621, 2624, 2624, 2622, 2626, 2615, 2625, 2625, 2616, - 2626, 2627, 2629, 2630, 2628, 2634, 2632, 2620, 2630, 2633, - - 2621, 2621, 2622, 2628, 2631, 2629, 2631, 2634, 2636, 2627, - 2632, 2635, 2637, 2633, 2638, 2643, 2635, 2639, 2639, 2638, - 2640, 2640, 2641, 2641, 2642, 2642, 2645, 2643, 2636, 2644, - 2646, 2644, 2637, 2647, 2647, 2646, 2648, 2648, 2649, 2649, - 2650, 2651, 2652, 2653, 2645, 2654, 2655, 2656, 2656, 2657, - 2658, 2658, 2650, 2660, 2652, 2659, 2659, 2661, 2661, 2662, - 2663, 2651, 2655, 2653, 2660, 2664, 2654, 2663, 2657, 2665, - 2666, 2662, 2667, 2668, 2670, 2666, 2672, 2664, 2669, 2669, - 2671, 2671, 2674, 2670, 2673, 2675, 2676, 2679, 2677, 2665, - 2680, 2680, 2667, 2668, 2678, 2674, 2678, 2681, 2682, 2679, - - 2676, 2683, 2672, 2685, 2673, 2686, 2681, 2687, 2688, 2675, - 2677, 2688, 2689, 2682, 2690, 2691, 2683, 2692, 2692, 2690, - 2691, 2685, 2693, 2693, 2694, 2694, 2689, 2686, 2696, 2696, - 2687, 2698, 2698, 2699, 2700, 2701, 2704, 2702, 2706, 2705, - 2708, 2707, 2709, 2711, 2710, 2700, 2710, 2712, 2713, 2708, - 2719, 2699, 2702, 2718, 2701, 0, 2704, 2705, 2714, 2714, - 2706, 2707, 2709, 2711, 2716, 2712, 2713, 2718, 2716, 2717, - 2717, 2720, 2719, 2721, 2721, 2723, 2724, 2724, 2725, 2726, - 2720, 2727, 2728, 2729, 2723, 2730, 2731, 2734, 2733, 2728, - 2732, 2734, 2738, 2735, 2736, 2736, 2725, 2726, 2729, 2727, - - 2735, 2737, 2737, 2730, 2731, 2739, 2732, 2733, 2740, 2742, - 2742, 2744, 2738, 2745, 2740, 2743, 2743, 2744, 2746, 2747, - 2748, 2749, 2750, 2739, 2751, 2751, 2752, 2750, 2753, 2754, - 2755, 2745, 2756, 2757, 2747, 2749, 2746, 2763, 2757, 2748, - 2758, 2755, 2758, 2759, 2759, 2760, 2752, 2760, 2753, 2754, - 2761, 2761, 2756, 2765, 2766, 2767, 2763, 2768, 2769, 2770, - 2771, 2772, 2765, 2769, 2773, 2771, 2776, 2767, 2778, 2777, - 2780, 2778, 2781, 2766, 2779, 2779, 0, 2768, 2784, 2770, - 2783, 2772, 2787, 2773, 2788, 2780, 2776, 2777, 2782, 2782, - 2781, 2783, 2785, 2784, 2789, 2792, 2785, 2787, 2790, 2788, - - 2789, 2794, 2790, 2791, 2791, 2795, 2797, 2796, 2792, 2798, - 2799, 2799, 2801, 2802, 2797, 2803, 2794, 2804, 2804, 2803, - 2805, 2805, 2802, 2806, 2801, 2795, 2796, 2807, 2807, 2798, - 2808, 2809, 2810, 2811, 2812, 2808, 2813, 2813, 2818, 2818, - 2809, 2819, 2806, 2820, 2822, 2811, 2821, 2821, 2810, 2823, - 2819, 2824, 2825, 2829, 2812, 2828, 2828, 2822, 2826, 2827, - 2830, 2825, 2823, 2841, 2824, 2820, 2835, 2826, 2827, 2832, - 2832, 2835, 2837, 2829, 2838, 2830, 2839, 2837, 2840, 2843, - 2842, 2839, 2841, 2845, 2849, 2847, 2840, 2843, 2838, 2842, - 2847, 2848, 2850, 2850, 2851, 2851, 2848, 2852, 2845, 2849, - - 2853, 2855, 2852, 2854, 2854, 2856, 2857, 2858, 2855, 2859, - 2856, 2860, 2861, 2861, 2862, 2859, 2860, 2863, 2868, 2853, - 2864, 2864, 2863, 2872, 2857, 2858, 2865, 2865, 2872, 2862, - 2871, 2868, 2869, 2869, 2870, 2871, 2871, 2870, 2873, 2874, - 2875, 2876, 2877, 2873, 2879, 2876, 2875, 2877, 2878, 2881, - 2880, 2884, 2885, 2874, 2882, 2883, 2884, 2878, 2880, 2879, - 2882, 2883, 2886, 2886, 2885, 2888, 2889, 2892, 2897, 2894, - 2881, 2889, 2888, 2890, 2894, 2895, 2890, 2896, 2898, 2892, - 2895, 2899, 2896, 2900, 2901, 2901, 2897, 2902, 2907, 2903, - 2899, 2898, 2900, 2903, 2904, 2908, 2902, 2909, 2912, 2904, - - 2913, 2908, 2914, 2909, 2915, 2917, 2907, 2916, 2916, 2918, - 2920, 2923, 2917, 2922, 2922, 2921, 2924, 2912, 2926, 2920, - 2913, 2928, 2914, 2915, 2921, 2930, 2923, 2933, 2918, 2925, - 2925, 2924, 2932, 2932, 2931, 2934, 2928, 2926, 2931, 2936, - 2935, 2934, 2937, 2938, 2941, 2930, 2935, 2939, 2939, 2938, - 2942, 2940, 2933, 2944, 2945, 2942, 2950, 2947, 2936, 2940, - 2937, 2948, 2944, 2947, 2948, 2951, 2949, 2945, 2953, 2941, - 2949, 2952, 2952, 2956, 2950, 2955, 2955, 2957, 2957, 2951, - 2958, 2959, 2959, 2953, 2960, 2960, 2962, 2962, 2963, 2964, - 2965, 2956, 2963, 2969, 2964, 2967, 2967, 2970, 2971, 2965, - - 2972, 2975, 2970, 2958, 2973, 2972, 2972, 2976, 2977, 2977, - 2971, 2979, 2979, 2969, 2980, 2980, 2973, 2981, 2981, 2982, - 2983, 2975, 2982, 2984, 2986, 2986, 2987, 2976, 2989, 2990, - 2990, 2991, 2991, 2983, 2992, 2992, 2984, 2993, 2994, 2994, - 2995, 2996, 2997, 2998, 2987, 2999, 2999, 3000, 2989, 2998, - 3004, 3000, 2993, 2995, 3003, 3004, 2997, 3006, 3007, 2996, - 3003, 3010, 3006, 3006, 3008, 3009, 3011, 3010, 3012, 3013, - 3014, 3014, 3011, 3013, 3017, 3019, 3022, 3020, 3025, 3017, - 3020, 3007, 3027, 3019, 3008, 3009, 3023, 3024, 3024, 3023, - 3028, 3029, 3026, 3012, 3031, 3025, 3025, 3026, 3030, 3030, - - 3027, 3022, 3033, 3032, 3034, 3029, 3032, 3035, 3031, 3039, - 3028, 3534, 3037, 3534, 3032, 3035, 3033, 3037, 3037, 3038, - 3040, 3040, 3046, 3034, 3038, 3038, 3041, 3041, 3039, 3042, - 3042, 3043, 3043, 3044, 3044, 3045, 3045, 3047, 3046, 3048, - 3049, 3050, 3047, 3051, 3052, 3053, 3054, 3055, 3056, 3052, - 3050, 3054, 3057, 3058, 3060, 3060, 3055, 3051, 3066, 3048, - 3061, 3061, 3062, 3063, 3053, 3062, 3049, 0, 3056, 3064, - 3064, 3065, 3057, 3058, 3068, 3068, 3066, 3065, 3063, 3069, - 3070, 3070, 3071, 3073, 3073, 3074, 3069, 3071, 3075, 3076, - 3076, 3077, 3078, 3080, 3074, 3081, 3081, 3075, 3082, 3082, - - 3077, 3078, 3083, 3084, 3085, 3086, 3083, 3087, 3088, 3089, - 3092, 3080, 3084, 3091, 3089, 3089, 3086, 3093, 3095, 3092, - 3099, 3093, 3087, 3085, 3101, 3099, 3091, 3104, 3088, 3100, - 3100, 3103, 3103, 3095, 3105, 3106, 3108, 3108, 3101, 3109, - 3110, 3104, 3111, 3115, 3116, 3119, 3110, 3117, 3109, 3116, - 3122, 3120, 3124, 3106, 3111, 3126, 3117, 3120, 3127, 3105, - 3126, 3129, 3122, 3127, 3131, 3119, 3128, 3128, 3115, 3131, - 3129, 3132, 3133, 3124, 3134, 3134, 3136, 3136, 3134, 3137, - 3137, 3138, 3138, 3139, 3132, 3140, 3133, 3141, 3142, 3144, - 3148, 3145, 3139, 3142, 3146, 3144, 3145, 3147, 3147, 3146, - - 3149, 3150, 3151, 3152, 3153, 3140, 3141, 3151, 3148, 3154, - 3153, 3157, 3149, 3155, 3155, 3157, 3160, 3160, 3158, 3159, - 3161, 3152, 3150, 3158, 3159, 3162, 3163, 3165, 3167, 3167, - 3169, 3170, 3171, 3172, 3154, 3175, 3174, 3172, 3176, 3161, - 3162, 3163, 3173, 3169, 3170, 3171, 3176, 3165, 3177, 3178, - 3179, 3173, 3174, 3177, 3175, 3180, 3180, 3181, 3182, 3183, - 3184, 3184, 3185, 3185, 3186, 3190, 3181, 3189, 3192, 3178, - 3179, 3195, 3189, 3189, 3192, 3199, 3182, 3193, 3193, 3190, - 3197, 3197, 3200, 3186, 3202, 3183, 3203, 3208, 3204, 3202, - 3209, 3199, 3195, 3204, 3207, 3207, 3211, 3210, 3200, 3209, - - 3212, 3212, 3203, 3210, 3213, 3215, 3215, 3208, 3216, 3217, - 3221, 3218, 3219, 3219, 3223, 3224, 3221, 3227, 3228, 3211, - 3225, 3224, 3216, 3213, 3238, 3225, 3229, 3229, 3217, 3218, - 3230, 3230, 3231, 3232, 3223, 3233, 3233, 3234, 3236, 3227, - 3235, 3240, 3239, 3238, 3228, 3237, 0, 3231, 3234, 3235, - 3242, 3237, 3249, 3232, 3239, 3233, 3241, 3241, 3236, 3243, - 3244, 3240, 3243, 3244, 3249, 3242, 3245, 3245, 3250, 3251, - 3252, 3252, 3254, 3253, 3255, 3251, 3253, 3257, 3254, 3258, - 3258, 3259, 3257, 3260, 3261, 3265, 3259, 3262, 3250, 3266, - 3261, 3267, 3255, 3263, 3263, 3268, 3270, 3265, 3269, 3269, - - 3272, 3271, 3260, 3361, 3262, 3262, 3361, 3266, 3268, 3272, - 3274, 3274, 3275, 3275, 3278, 3270, 3267, 3271, 3276, 3276, - 3277, 3279, 3280, 3280, 3283, 3277, 3279, 3285, 3278, 3281, - 3281, 3282, 3282, 3283, 3284, 3284, 3286, 3287, 3292, 3288, - 3285, 3291, 3291, 3287, 3288, 3294, 3294, 3295, 3295, 3297, - 3299, 3300, 3301, 3302, 3292, 3303, 3303, 3305, 3305, 3306, - 3307, 3310, 3286, 3308, 3316, 3311, 3312, 3312, 3297, 3313, - 3313, 3301, 3299, 3300, 3311, 3302, 3314, 3308, 3317, 3307, - 3314, 3310, 3316, 3318, 3317, 3306, 3319, 3320, 3321, 3324, - 3325, 3325, 3320, 3321, 3327, 3327, 3328, 3329, 3330, 3332, - - 3331, 3328, 3336, 3318, 3330, 3319, 3336, 3332, 3333, 3333, - 3324, 3329, 3331, 3334, 3337, 3338, 3339, 3340, 3334, 3337, - 3341, 3342, 3340, 3344, 3345, 3346, 3347, 3342, 3350, 3349, - 0, 3344, 3341, 3351, 3352, 3338, 3339, 3353, 3356, 3360, - 3366, 3366, 3353, 3345, 3350, 3346, 3347, 3349, 3355, 3362, - 3351, 3351, 3358, 3355, 3357, 3352, 3372, 3358, 3356, 3360, - 3357, 3368, 3362, 3367, 3367, 3368, 3374, 3374, 3375, 3376, - 3379, 3372, 0, 3375, 3377, 3377, 3382, 3382, 3383, 3383, - 3398, 3383, 3389, 3384, 3384, 3379, 3384, 3389, 3376, 3385, - 3385, 3386, 3386, 3387, 3386, 3390, 3392, 3387, 3391, 3391, - - 3398, 3393, 3396, 3396, 3390, 3397, 3397, 3399, 3400, 3401, - 3401, 3402, 3403, 3400, 3392, 3393, 3406, 3407, 3408, 3409, - 3410, 3412, 3408, 3419, 3407, 3413, 0, 3399, 3409, 3402, - 3413, 3415, 3403, 3414, 3414, 3410, 3416, 3416, 3419, 3412, - 3415, 3406, 3417, 3417, 3418, 3418, 3420, 3421, 3422, 3423, - 3424, 3420, 3425, 3422, 3422, 3423, 3421, 3426, 3427, 3421, - 3428, 3429, 0, 3427, 3431, 3428, 3432, 3425, 3430, 3430, - 3431, 3435, 3432, 3433, 3433, 3424, 3434, 3434, 3426, 3436, - 3429, 3439, 3439, 3440, 3436, 3443, 3435, 3442, 3442, 3445, - 3447, 3447, 3448, 3448, 3443, 3449, 3449, 3440, 3450, 3450, - - 3452, 3452, 3453, 3453, 3454, 3454, 3456, 3445, 3455, 3455, - 3458, 3459, 3459, 3461, 3461, 3462, 3463, 3464, 3466, 3458, - 3467, 3467, 3468, 3470, 3462, 3469, 3469, 3471, 3463, 3482, - 3472, 3476, 3456, 3466, 3473, 3473, 3480, 3464, 3470, 3484, - 3471, 3468, 3472, 3474, 3474, 3488, 3476, 3477, 3477, 3481, - 3483, 3483, 3481, 3486, 3480, 3482, 3486, 3484, 3487, 3488, - 3489, 3490, 3492, 3491, 3487, 3489, 3494, 3495, 3499, 3498, - 3501, 3501, 3494, 3498, 3503, 3504, 3495, 3513, 3492, 3517, - 3490, 3491, 3513, 3499, 3514, 3518, 3518, 3514, 3519, 3519, - 3520, 3520, 3517, 3522, 3522, 3504, 3524, 3525, 3526, 3529, - - 3503, 3527, 3526, 3531, 3532, 3533, 3525, 3535, 3536, 3536, - 3533, 3537, 3538, 3529, 3539, 3532, 3541, 3540, 3543, 3524, - 3542, 3527, 3535, 3545, 3537, 3544, 3531, 3543, 3545, 3546, - 3547, 3538, 3539, 3540, 3548, 3542, 3549, 3544, 3551, 3548, - 3552, 3541, 3547, 3550, 3550, 3552, 3557, 3558, 3559, 3559, - 3546, 3565, 3560, 3561, 3561, 3549, 3562, 3562, 3551, 3566, - 3557, 3560, 3563, 3563, 3564, 3564, 3567, 3558, 3568, 3567, - 3565, 3569, 3570, 3568, 3571, 3572, 3569, 3573, 3574, 3566, - 3575, 3572, 3576, 3576, 3577, 3575, 3578, 3578, 3583, 3571, - 3574, 3573, 3579, 3579, 3580, 3580, 3584, 3570, 3582, 3582, - - 3585, 3585, 3587, 3583, 3577, 3589, 3592, 3592, 3593, 3593, - 3594, 3595, 3598, 3596, 3597, 3584, 3599, 3587, 3594, 3596, - 3597, 3600, 3601, 3589, 3602, 3602, 3598, 3601, 3609, 3599, - 3595, 3604, 3604, 3610, 3612, 3613, 3615, 3616, 3617, 3613, - 3600, 3618, 3616, 3620, 3626, 3619, 3621, 3622, 3612, 3609, - 3627, 3621, 3622, 3610, 3618, 3628, 3615, 3617, 3619, 3623, - 3623, 0, 3620, 3631, 3626, 3629, 3629, 3630, 3627, 3631, - 3632, 3632, 3630, 3633, 3628, 3634, 3635, 3636, 3633, 3637, - 3634, 3635, 3639, 3639, 3640, 3637, 3641, 3641, 3643, 3640, - 3644, 3645, 3643, 3646, 3647, 3648, 3636, 3649, 3645, 3652, - - 3652, 3648, 3650, 3654, 3654, 3655, 3656, 3657, 3658, 3644, - 3659, 3656, 3646, 3647, 3655, 3650, 3649, 3655, 3660, 3660, - 3661, 3662, 3664, 3659, 3666, 3661, 3657, 3658, 3665, 3665, - 3667, 3667, 3668, 3668, 3662, 3669, 3671, 3670, 3672, 3672, - 3669, 3673, 3678, 3666, 3670, 3674, 3673, 3674, 3664, 3675, - 3675, 3676, 3677, 3680, 3683, 3671, 3687, 3679, 3676, 3677, - 3685, 3678, 3679, 3682, 3682, 3685, 3686, 3688, 3689, 3689, - 3692, 3686, 3680, 3683, 3693, 3687, 3691, 3691, 3694, 3694, - 3695, 3695, 3706, 3696, 3698, 3698, 3688, 3699, 3699, 3692, - 3696, 3700, 3702, 3693, 3705, 3707, 0, 3702, 3700, 3705, - - 0, 3706, 3708, 3708, 3709, 3709, 0, 0, 0, 0, - 0, 0, 0, 0, 3707, 3713, 3713, 3713, 3713, 3713, - 3713, 3713, 3714, 3714, 3714, 3714, 3714, 3714, 3714, 3715, - 3715, 3715, 3715, 3715, 3715, 3715, 3716, 3716, 3716, 3716, - 3716, 3716, 3716, 3717, 3717, 3717, 3717, 3717, 3717, 3717, - 3718, 3718, 3718, 3718, 3718, 3718, 3718, 3719, 3719, 3719, - 3719, 3719, 3719, 3719, 3721, 3721, 0, 3721, 3721, 3721, - 3721, 3722, 3722, 0, 0, 0, 3722, 3722, 3723, 3723, - 0, 0, 3723, 0, 3723, 3724, 0, 0, 0, 0, - 0, 3724, 3725, 3725, 0, 0, 0, 3725, 3725, 3726, - - 0, 0, 0, 0, 0, 3726, 3727, 3727, 0, 3727, - 3727, 3727, 3727, 3728, 0, 0, 0, 0, 0, 3728, - 3729, 3729, 0, 0, 0, 3729, 3729, 3730, 3730, 0, - 3730, 3730, 3730, 3730, 3712, 3712, 3712, 3712, 3712, 3712, - 3712, 3712, 3712, 3712, 3712, 3712, 3712, 3712, 3712, 3712, - 3712, 3712, 3712, 3712, 3712, 3712, 3712, 3712, 3712, 3712, - 3712, 3712, 3712, 3712, 3712, 3712, 3712, 3712, 3712, 3712, - 3712, 3712, 3712, 3712, 3712 - } ; - -static yy_state_type yy_last_accepting_state; -static char *yy_last_accepting_cpos; - -extern int yy_flex_debug; -int yy_flex_debug = 0; - -/* The intent behind this definition is that it'll catch - * any uses of REJECT which flex missed. - */ -#define REJECT reject_used_but_not_detected -static int yy_more_flag = 0; -static int yy_more_len = 0; -#define yymore() ((yy_more_flag) = 1) -#define YY_MORE_ADJ (yy_more_len) -#define YY_RESTORE_YY_MORE_OFFSET -char *yytext; -#line 1 "./util/configlexer.lex" -#line 2 "./util/configlexer.lex" -/* - * configlexer.lex - lexical analyzer for unbound config file - * - * Copyright (c) 2001-2006, NLnet Labs. All rights reserved - * - * See LICENSE for the license. - * - */ - -/* because flex keeps having sign-unsigned compare problems that are unfixed*/ -#if defined(__clang__)||(defined(__GNUC__)&&((__GNUC__ >4)||(defined(__GNUC_MINOR__)&&(__GNUC__ ==4)&&(__GNUC_MINOR__ >=2)))) -#pragma GCC diagnostic ignored "-Wsign-compare" -#endif - -#include -#include -#ifdef HAVE_GLOB_H -# include -#endif - -#include "util/config_file.h" -#include "util/configparser.h" -void ub_c_error(const char *message); - -#if 0 -#define LEXOUT(s) printf s /* used ONLY when debugging */ -#else -#define LEXOUT(s) -#endif - -/** avoid warning in about fwrite return value */ -#define ECHO ub_c_error_msg("syntax error at text: %s", yytext) - -/** A parser variable, this is a statement in the config file which is - * of the form variable: value1 value2 ... nargs is the number of values. */ -#define YDVAR(nargs, var) \ - num_args=(nargs); \ - LEXOUT(("v(%s%d) ", yytext, num_args)); \ - if(num_args > 0) { BEGIN(val); } \ - return (var); - -struct inc_state { - char* filename; - int line; - YY_BUFFER_STATE buffer; - struct inc_state* next; - int inc_toplevel; -}; -static struct inc_state* config_include_stack = NULL; -static int inc_depth = 0; -static int inc_prev = 0; -static int num_args = 0; -static int inc_toplevel = 0; - -void init_cfg_parse(void) -{ - config_include_stack = NULL; - inc_depth = 0; - inc_prev = 0; - num_args = 0; - inc_toplevel = 0; -} - -static void config_start_include(const char* filename, int toplevel) -{ - FILE *input; - struct inc_state* s; - char* nm; - if(inc_depth+1 > 100000) { - ub_c_error_msg("too many include files"); - return; - } - if(*filename == '\0') { - ub_c_error_msg("empty include file name"); - return; - } - s = (struct inc_state*)malloc(sizeof(*s)); - if(!s) { - ub_c_error_msg("include %s: malloc failure", filename); - return; - } - if(cfg_parser->chroot && strncmp(filename, cfg_parser->chroot, - strlen(cfg_parser->chroot)) == 0) { - filename += strlen(cfg_parser->chroot); - } - nm = strdup(filename); - if(!nm) { - ub_c_error_msg("include %s: strdup failure", filename); - free(s); - return; - } - input = fopen(filename, "r"); - if(!input) { - ub_c_error_msg("cannot open include file '%s': %s", - filename, strerror(errno)); - free(s); - free(nm); - return; - } - LEXOUT(("switch_to_include_file(%s)\n", filename)); - inc_depth++; - s->filename = cfg_parser->filename; - s->line = cfg_parser->line; - s->buffer = YY_CURRENT_BUFFER; - s->inc_toplevel = inc_toplevel; - s->next = config_include_stack; - config_include_stack = s; - cfg_parser->filename = nm; - cfg_parser->line = 1; - inc_toplevel = toplevel; - yy_switch_to_buffer(yy_create_buffer(input, YY_BUF_SIZE)); -} - -static void config_start_include_glob(const char* filename, int toplevel) -{ - - /* check for wildcards */ -#ifdef HAVE_GLOB - glob_t g; - int i, r, flags; - if(!(!strchr(filename, '*') && !strchr(filename, '?') && !strchr(filename, '[') && - !strchr(filename, '{') && !strchr(filename, '~'))) { - flags = 0 -#ifdef GLOB_ERR - | GLOB_ERR -#endif - /* do not set GLOB_NOSORT so the results are sorted - and in a predictable order. */ -#ifdef GLOB_BRACE - | GLOB_BRACE -#endif -#ifdef GLOB_TILDE - | GLOB_TILDE -#endif - ; - memset(&g, 0, sizeof(g)); - if(cfg_parser->chroot && strncmp(filename, cfg_parser->chroot, - strlen(cfg_parser->chroot)) == 0) { - filename += strlen(cfg_parser->chroot); - } - r = glob(filename, flags, NULL, &g); - if(r) { - /* some error */ - globfree(&g); - if(r == GLOB_NOMATCH) - return; /* no matches for pattern */ - config_start_include(filename, toplevel); /* let original deal with it */ - return; - } - /* process files found, if any */ - for(i=(int)g.gl_pathc-1; i>=0; i--) { - config_start_include(g.gl_pathv[i], toplevel); - } - globfree(&g); - return; - } -#endif /* HAVE_GLOB */ - - config_start_include(filename, toplevel); -} - -static void config_end_include(void) -{ - struct inc_state* s = config_include_stack; - --inc_depth; - if(!s) return; - free(cfg_parser->filename); - cfg_parser->filename = s->filename; - cfg_parser->line = s->line; - yy_delete_buffer(YY_CURRENT_BUFFER); - yy_switch_to_buffer(s->buffer); - config_include_stack = s->next; - inc_toplevel = s->inc_toplevel; - free(s); -} - -#ifndef yy_set_bol /* compat definition, for flex 2.4.6 */ -#define yy_set_bol(at_bol) \ - { \ - if ( ! yy_current_buffer ) \ - yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \ - yy_current_buffer->yy_ch_buf[0] = ((at_bol)?'\n':' '); \ - } -#endif - -#line 3456 "" -#define YY_NO_INPUT 1 -#line 191 "./util/configlexer.lex" -#ifndef YY_NO_UNPUT -#define YY_NO_UNPUT 1 -#endif -#ifndef YY_NO_INPUT -#define YY_NO_INPUT 1 -#endif -#line 3465 "" - -#line 3467 "" - -#define INITIAL 0 -#define quotedstring 1 -#define singlequotedstr 2 -#define include 3 -#define include_quoted 4 -#define val 5 -#define include_toplevel 6 -#define include_toplevel_quoted 7 - -#ifndef YY_NO_UNISTD_H -/* Special case for "unistd.h", since it is non-ANSI. We include it way - * down here because we want the user's section 1 to have been scanned first. - * The user has a chance to override it with an option. - */ -#include -#endif - -#ifndef YY_EXTRA_TYPE -#define YY_EXTRA_TYPE void * -#endif - -static int yy_init_globals ( void ); - -/* Accessor methods to globals. - These are made visible to non-reentrant scanners for convenience. */ - -int yylex_destroy ( void ); - -int yyget_debug ( void ); - -void yyset_debug ( int debug_flag ); - -YY_EXTRA_TYPE yyget_extra ( void ); - -void yyset_extra ( YY_EXTRA_TYPE user_defined ); - -FILE *yyget_in ( void ); - -void yyset_in ( FILE * _in_str ); - -FILE *yyget_out ( void ); - -void yyset_out ( FILE * _out_str ); - - int yyget_leng ( void ); - -char *yyget_text ( void ); - -int yyget_lineno ( void ); - -void yyset_lineno ( int _line_number ); - -/* Macros after this point can all be overridden by user definitions in - * section 1. - */ - -#ifndef YY_SKIP_YYWRAP -#ifdef __cplusplus -extern "C" int yywrap ( void ); -#else -extern int yywrap ( void ); -#endif -#endif - -#ifndef YY_NO_UNPUT - -#endif - -#ifndef yytext_ptr -static void yy_flex_strncpy ( char *, const char *, int ); -#endif - -#ifdef YY_NEED_STRLEN -static int yy_flex_strlen ( const char * ); -#endif - -#ifndef YY_NO_INPUT -#ifdef __cplusplus -static int yyinput ( void ); -#else -static int input ( void ); -#endif - -#endif - -/* Amount of stuff to slurp up with each read. */ -#ifndef YY_READ_BUF_SIZE -#ifdef __ia64__ -/* On IA-64, the buffer size is 16k, not 8k */ -#define YY_READ_BUF_SIZE 16384 -#else -#define YY_READ_BUF_SIZE 8192 -#endif /* __ia64__ */ -#endif - -/* Copy whatever the last rule matched to the standard output. */ -#ifndef ECHO -/* This used to be an fputs(), but since the string might contain NUL's, - * we now use fwrite(). - */ -#define ECHO do { if (fwrite( yytext, (size_t) yyleng, 1, yyout )) {} } while (0) -#endif - -/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, - * is returned in "result". - */ -#ifndef YY_INPUT -#define YY_INPUT(buf,result,max_size) \ - if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ - { \ - int c = '*'; \ - int n; \ - for ( n = 0; n < max_size && \ - (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ - buf[n] = (char) c; \ - if ( c == '\n' ) \ - buf[n++] = (char) c; \ - if ( c == EOF && ferror( yyin ) ) \ - YY_FATAL_ERROR( "input in flex scanner failed" ); \ - result = n; \ - } \ - else \ - { \ - errno=0; \ - while ( (result = (int) fread(buf, 1, (yy_size_t) max_size, yyin)) == 0 && ferror(yyin)) \ - { \ - if( errno != EINTR) \ - { \ - YY_FATAL_ERROR( "input in flex scanner failed" ); \ - break; \ - } \ - errno=0; \ - clearerr(yyin); \ - } \ - }\ -\ - -#endif - -/* No semi-colon after return; correct usage is to write "yyterminate();" - - * we don't want an extra ';' after the "return" because that will cause - * some compilers to complain about unreachable statements. - */ -#ifndef yyterminate -#define yyterminate() return YY_NULL -#endif - -/* Number of entries by which start-condition stack grows. */ -#ifndef YY_START_STACK_INCR -#define YY_START_STACK_INCR 25 -#endif - -/* Report a fatal error. */ -#ifndef YY_FATAL_ERROR -#define YY_FATAL_ERROR(msg) yy_fatal_error( msg ) -#endif - -/* end tables serialization structures and prototypes */ - -/* Default declaration of generated scanner - a define so the user can - * easily add parameters. - */ -#ifndef YY_DECL -#define YY_DECL_IS_OURS 1 - -extern int yylex (void); - -#define YY_DECL int yylex (void) -#endif /* !YY_DECL */ - -/* Code executed at the beginning of each rule, after yytext and yyleng - * have been set up. - */ -#ifndef YY_USER_ACTION -#define YY_USER_ACTION -#endif - -/* Code executed at the end of each rule. */ -#ifndef YY_BREAK -#define YY_BREAK /*LINTED*/break; -#endif - -#define YY_RULE_SETUP \ - YY_USER_ACTION - -/** The main scanner function which does all the work. - */ -YY_DECL -{ - yy_state_type yy_current_state; - char *yy_cp, *yy_bp; - int yy_act; - - if ( !(yy_init) ) - { - (yy_init) = 1; - -#ifdef YY_USER_INIT - YY_USER_INIT; -#endif - - if ( ! (yy_start) ) - (yy_start) = 1; /* first start state */ - - if ( ! yyin ) - yyin = stdin; - - if ( ! yyout ) - yyout = stdout; - - if ( ! YY_CURRENT_BUFFER ) { - yyensure_buffer_stack (); - YY_CURRENT_BUFFER_LVALUE = - yy_create_buffer( yyin, YY_BUF_SIZE ); - } - - yy_load_buffer_state( ); - } - - { -#line 211 "./util/configlexer.lex" - -#line 3691 "" - - while ( /*CONSTCOND*/1 ) /* loops until end-of-file is reached */ - { - (yy_more_len) = 0; - if ( (yy_more_flag) ) - { - (yy_more_len) = (int) ((yy_c_buf_p) - (yytext_ptr)); - (yy_more_flag) = 0; - } - yy_cp = (yy_c_buf_p); - - /* Support of yytext. */ - *yy_cp = (yy_hold_char); - - /* yy_bp points to the position in yy_ch_buf of the start of - * the current run. - */ - yy_bp = yy_cp; - - yy_current_state = (yy_start); -yy_match: - do - { - YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)] ; - if ( yy_accept[yy_current_state] ) - { - (yy_last_accepting_state) = yy_current_state; - (yy_last_accepting_cpos) = yy_cp; - } - while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) - { - yy_current_state = (int) yy_def[yy_current_state]; - if ( yy_current_state >= 3713 ) - yy_c = yy_meta[yy_c]; - } - yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c]; - ++yy_cp; - } - while ( yy_base[yy_current_state] != 7235 ); - -yy_find_action: - yy_act = yy_accept[yy_current_state]; - if ( yy_act == 0 ) - { /* have to back up */ - yy_cp = (yy_last_accepting_cpos); - yy_current_state = (yy_last_accepting_state); - yy_act = yy_accept[yy_current_state]; - } - - YY_DO_BEFORE_ACTION; - -do_action: /* This label is used only to access EOF actions. */ - - switch ( yy_act ) - { /* beginning of action switch */ - case 0: /* must back up */ - /* undo the effects of YY_DO_BEFORE_ACTION */ - *yy_cp = (yy_hold_char); - yy_cp = (yy_last_accepting_cpos); - yy_current_state = (yy_last_accepting_state); - goto yy_find_action; - -case 1: -YY_RULE_SETUP -#line 212 "./util/configlexer.lex" -{ - LEXOUT(("SP ")); /* ignore */ } - YY_BREAK -case 2: -YY_RULE_SETUP -#line 214 "./util/configlexer.lex" -{ - /* note that flex makes the longest match and '.' is any but not nl */ - LEXOUT(("comment(%s) ", yytext)); /* ignore */ } - YY_BREAK -case 3: -YY_RULE_SETUP -#line 217 "./util/configlexer.lex" -{ YDVAR(0, VAR_SERVER) } - YY_BREAK -case 4: -YY_RULE_SETUP -#line 218 "./util/configlexer.lex" -{ YDVAR(1, VAR_QNAME_MINIMISATION) } - YY_BREAK -case 5: -YY_RULE_SETUP -#line 219 "./util/configlexer.lex" -{ YDVAR(1, VAR_QNAME_MINIMISATION_STRICT) } - YY_BREAK -case 6: -YY_RULE_SETUP -#line 220 "./util/configlexer.lex" -{ YDVAR(1, VAR_NUM_THREADS) } - YY_BREAK -case 7: -YY_RULE_SETUP -#line 221 "./util/configlexer.lex" -{ YDVAR(1, VAR_VERBOSITY) } - YY_BREAK -case 8: -YY_RULE_SETUP -#line 222 "./util/configlexer.lex" -{ YDVAR(1, VAR_PORT) } - YY_BREAK -case 9: -YY_RULE_SETUP -#line 223 "./util/configlexer.lex" -{ YDVAR(1, VAR_OUTGOING_RANGE) } - YY_BREAK -case 10: -YY_RULE_SETUP -#line 224 "./util/configlexer.lex" -{ YDVAR(1, VAR_OUTGOING_PORT_PERMIT) } - YY_BREAK -case 11: -YY_RULE_SETUP -#line 225 "./util/configlexer.lex" -{ YDVAR(1, VAR_OUTGOING_PORT_AVOID) } - YY_BREAK -case 12: -YY_RULE_SETUP -#line 226 "./util/configlexer.lex" -{ YDVAR(1, VAR_OUTGOING_NUM_TCP) } - YY_BREAK -case 13: -YY_RULE_SETUP -#line 227 "./util/configlexer.lex" -{ YDVAR(1, VAR_INCOMING_NUM_TCP) } - YY_BREAK -case 14: -YY_RULE_SETUP -#line 228 "./util/configlexer.lex" -{ YDVAR(1, VAR_DO_IP4) } - YY_BREAK -case 15: -YY_RULE_SETUP -#line 229 "./util/configlexer.lex" -{ YDVAR(1, VAR_DO_IP6) } - YY_BREAK -case 16: -YY_RULE_SETUP -#line 230 "./util/configlexer.lex" -{ YDVAR(1, VAR_PREFER_IP4) } - YY_BREAK -case 17: -YY_RULE_SETUP -#line 231 "./util/configlexer.lex" -{ YDVAR(1, VAR_PREFER_IP6) } - YY_BREAK -case 18: -YY_RULE_SETUP -#line 232 "./util/configlexer.lex" -{ YDVAR(1, VAR_DO_UDP) } - YY_BREAK -case 19: -YY_RULE_SETUP -#line 233 "./util/configlexer.lex" -{ YDVAR(1, VAR_DO_TCP) } - YY_BREAK -case 20: -YY_RULE_SETUP -#line 234 "./util/configlexer.lex" -{ YDVAR(1, VAR_TCP_UPSTREAM) } - YY_BREAK -case 21: -YY_RULE_SETUP -#line 235 "./util/configlexer.lex" -{ YDVAR(1, VAR_TCP_MSS) } - YY_BREAK -case 22: -YY_RULE_SETUP -#line 236 "./util/configlexer.lex" -{ YDVAR(1, VAR_OUTGOING_TCP_MSS) } - YY_BREAK -case 23: -YY_RULE_SETUP -#line 237 "./util/configlexer.lex" -{ YDVAR(1, VAR_TCP_IDLE_TIMEOUT) } - YY_BREAK -case 24: -YY_RULE_SETUP -#line 238 "./util/configlexer.lex" -{ YDVAR(1, VAR_MAX_REUSE_TCP_QUERIES) } - YY_BREAK -case 25: -YY_RULE_SETUP -#line 239 "./util/configlexer.lex" -{ YDVAR(1, VAR_TCP_REUSE_TIMEOUT) } - YY_BREAK -case 26: -YY_RULE_SETUP -#line 240 "./util/configlexer.lex" -{ YDVAR(1, VAR_TCP_AUTH_QUERY_TIMEOUT) } - YY_BREAK -case 27: -YY_RULE_SETUP -#line 241 "./util/configlexer.lex" -{ YDVAR(1, VAR_EDNS_TCP_KEEPALIVE) } - YY_BREAK -case 28: -YY_RULE_SETUP -#line 242 "./util/configlexer.lex" -{ YDVAR(1, VAR_EDNS_TCP_KEEPALIVE_TIMEOUT) } - YY_BREAK -case 29: -YY_RULE_SETUP -#line 243 "./util/configlexer.lex" -{ YDVAR(1, VAR_SSL_UPSTREAM) } - YY_BREAK -case 30: -YY_RULE_SETUP -#line 244 "./util/configlexer.lex" -{ YDVAR(1, VAR_SSL_UPSTREAM) } - YY_BREAK -case 31: -YY_RULE_SETUP -#line 245 "./util/configlexer.lex" -{ YDVAR(1, VAR_SSL_SERVICE_KEY) } - YY_BREAK -case 32: -YY_RULE_SETUP -#line 246 "./util/configlexer.lex" -{ YDVAR(1, VAR_SSL_SERVICE_KEY) } - YY_BREAK -case 33: -YY_RULE_SETUP -#line 247 "./util/configlexer.lex" -{ YDVAR(1, VAR_SSL_SERVICE_PEM) } - YY_BREAK -case 34: -YY_RULE_SETUP -#line 248 "./util/configlexer.lex" -{ YDVAR(1, VAR_SSL_SERVICE_PEM) } - YY_BREAK -case 35: -YY_RULE_SETUP -#line 249 "./util/configlexer.lex" -{ YDVAR(1, VAR_SSL_PORT) } - YY_BREAK -case 36: -YY_RULE_SETUP -#line 250 "./util/configlexer.lex" -{ YDVAR(1, VAR_SSL_PORT) } - YY_BREAK -case 37: -YY_RULE_SETUP -#line 251 "./util/configlexer.lex" -{ YDVAR(1, VAR_TLS_CERT_BUNDLE) } - YY_BREAK -case 38: -YY_RULE_SETUP -#line 252 "./util/configlexer.lex" -{ YDVAR(1, VAR_TLS_CERT_BUNDLE) } - YY_BREAK -case 39: -YY_RULE_SETUP -#line 253 "./util/configlexer.lex" -{ YDVAR(1, VAR_TLS_WIN_CERT) } - YY_BREAK -case 40: -YY_RULE_SETUP -#line 254 "./util/configlexer.lex" -{ YDVAR(1, VAR_TLS_WIN_CERT) } - YY_BREAK -case 41: -YY_RULE_SETUP -#line 255 "./util/configlexer.lex" -{ YDVAR(1, VAR_TLS_ADDITIONAL_PORT) } - YY_BREAK -case 42: -YY_RULE_SETUP -#line 256 "./util/configlexer.lex" -{ YDVAR(1, VAR_TLS_ADDITIONAL_PORT) } - YY_BREAK -case 43: -YY_RULE_SETUP -#line 257 "./util/configlexer.lex" -{ YDVAR(1, VAR_TLS_ADDITIONAL_PORT) } - YY_BREAK -case 44: -YY_RULE_SETUP -#line 258 "./util/configlexer.lex" -{ YDVAR(1, VAR_TLS_ADDITIONAL_PORT) } - YY_BREAK -case 45: -YY_RULE_SETUP -#line 259 "./util/configlexer.lex" -{ YDVAR(1, VAR_TLS_SESSION_TICKET_KEYS) } - YY_BREAK -case 46: -YY_RULE_SETUP -#line 260 "./util/configlexer.lex" -{ YDVAR(1, VAR_TLS_CIPHERS) } - YY_BREAK -case 47: -YY_RULE_SETUP -#line 261 "./util/configlexer.lex" -{ YDVAR(1, VAR_TLS_CIPHERSUITES) } - YY_BREAK -case 48: -YY_RULE_SETUP -#line 262 "./util/configlexer.lex" -{ YDVAR(1, VAR_TLS_USE_SNI) } - YY_BREAK -case 49: -YY_RULE_SETUP -#line 263 "./util/configlexer.lex" -{ YDVAR(1, VAR_HTTPS_PORT) } - YY_BREAK -case 50: -YY_RULE_SETUP -#line 264 "./util/configlexer.lex" -{ YDVAR(1, VAR_HTTP_ENDPOINT) } - YY_BREAK -case 51: -YY_RULE_SETUP -#line 265 "./util/configlexer.lex" -{ YDVAR(1, VAR_HTTP_MAX_STREAMS) } - YY_BREAK -case 52: -YY_RULE_SETUP -#line 266 "./util/configlexer.lex" -{ YDVAR(1, VAR_HTTP_QUERY_BUFFER_SIZE) } - YY_BREAK -case 53: -YY_RULE_SETUP -#line 267 "./util/configlexer.lex" -{ YDVAR(1, VAR_HTTP_RESPONSE_BUFFER_SIZE) } - YY_BREAK -case 54: -YY_RULE_SETUP -#line 268 "./util/configlexer.lex" -{ YDVAR(1, VAR_HTTP_NODELAY) } - YY_BREAK -case 55: -YY_RULE_SETUP -#line 269 "./util/configlexer.lex" -{ YDVAR(1, VAR_HTTP_NOTLS_DOWNSTREAM) } - YY_BREAK -case 56: -YY_RULE_SETUP -#line 270 "./util/configlexer.lex" -{ YDVAR(1, VAR_USE_SYSTEMD) } - YY_BREAK -case 57: -YY_RULE_SETUP -#line 271 "./util/configlexer.lex" -{ YDVAR(1, VAR_DO_DAEMONIZE) } - YY_BREAK -case 58: -YY_RULE_SETUP -#line 272 "./util/configlexer.lex" -{ YDVAR(1, VAR_INTERFACE) } - YY_BREAK -case 59: -YY_RULE_SETUP -#line 273 "./util/configlexer.lex" -{ YDVAR(1, VAR_INTERFACE) } - YY_BREAK -case 60: -YY_RULE_SETUP -#line 274 "./util/configlexer.lex" -{ YDVAR(1, VAR_OUTGOING_INTERFACE) } - YY_BREAK -case 61: -YY_RULE_SETUP -#line 275 "./util/configlexer.lex" -{ YDVAR(1, VAR_INTERFACE_AUTOMATIC) } - YY_BREAK -case 62: -YY_RULE_SETUP -#line 276 "./util/configlexer.lex" -{ YDVAR(1, VAR_INTERFACE_AUTOMATIC_PORTS) } - YY_BREAK -case 63: -YY_RULE_SETUP -#line 277 "./util/configlexer.lex" -{ YDVAR(1, VAR_SO_RCVBUF) } - YY_BREAK -case 64: -YY_RULE_SETUP -#line 278 "./util/configlexer.lex" -{ YDVAR(1, VAR_SO_SNDBUF) } - YY_BREAK -case 65: -YY_RULE_SETUP -#line 279 "./util/configlexer.lex" -{ YDVAR(1, VAR_SO_REUSEPORT) } - YY_BREAK -case 66: -YY_RULE_SETUP -#line 280 "./util/configlexer.lex" -{ YDVAR(1, VAR_IP_TRANSPARENT) } - YY_BREAK -case 67: -YY_RULE_SETUP -#line 281 "./util/configlexer.lex" -{ YDVAR(1, VAR_IP_FREEBIND) } - YY_BREAK -case 68: -YY_RULE_SETUP -#line 282 "./util/configlexer.lex" -{ YDVAR(1, VAR_IP_DSCP) } - YY_BREAK -case 69: -YY_RULE_SETUP -#line 283 "./util/configlexer.lex" -{ YDVAR(1, VAR_CHROOT) } - YY_BREAK -case 70: -YY_RULE_SETUP -#line 284 "./util/configlexer.lex" -{ YDVAR(1, VAR_USERNAME) } - YY_BREAK -case 71: -YY_RULE_SETUP -#line 285 "./util/configlexer.lex" -{ YDVAR(1, VAR_DIRECTORY) } - YY_BREAK -case 72: -YY_RULE_SETUP -#line 286 "./util/configlexer.lex" -{ YDVAR(1, VAR_LOGFILE) } - YY_BREAK -case 73: -YY_RULE_SETUP -#line 287 "./util/configlexer.lex" -{ YDVAR(1, VAR_PIDFILE) } - YY_BREAK -case 74: -YY_RULE_SETUP -#line 288 "./util/configlexer.lex" -{ YDVAR(1, VAR_ROOT_HINTS) } - YY_BREAK -case 75: -YY_RULE_SETUP -#line 289 "./util/configlexer.lex" -{ YDVAR(1, VAR_STREAM_WAIT_SIZE) } - YY_BREAK -case 76: -YY_RULE_SETUP -#line 290 "./util/configlexer.lex" -{ YDVAR(1, VAR_EDNS_BUFFER_SIZE) } - YY_BREAK -case 77: -YY_RULE_SETUP -#line 291 "./util/configlexer.lex" -{ YDVAR(1, VAR_MSG_BUFFER_SIZE) } - YY_BREAK -case 78: -YY_RULE_SETUP -#line 292 "./util/configlexer.lex" -{ YDVAR(1, VAR_MSG_CACHE_SIZE) } - YY_BREAK -case 79: -YY_RULE_SETUP -#line 293 "./util/configlexer.lex" -{ YDVAR(1, VAR_MSG_CACHE_SLABS) } - YY_BREAK -case 80: -YY_RULE_SETUP -#line 294 "./util/configlexer.lex" -{ YDVAR(1, VAR_RRSET_CACHE_SIZE) } - YY_BREAK -case 81: -YY_RULE_SETUP -#line 295 "./util/configlexer.lex" -{ YDVAR(1, VAR_RRSET_CACHE_SLABS) } - YY_BREAK -case 82: -YY_RULE_SETUP -#line 296 "./util/configlexer.lex" -{ YDVAR(1, VAR_CACHE_MAX_TTL) } - YY_BREAK -case 83: -YY_RULE_SETUP -#line 297 "./util/configlexer.lex" -{ YDVAR(1, VAR_CACHE_MAX_NEGATIVE_TTL) } - YY_BREAK -case 84: -YY_RULE_SETUP -#line 298 "./util/configlexer.lex" -{ YDVAR(1, VAR_CACHE_MIN_TTL) } - YY_BREAK -case 85: -YY_RULE_SETUP -#line 299 "./util/configlexer.lex" -{ YDVAR(1, VAR_INFRA_HOST_TTL) } - YY_BREAK -case 86: -YY_RULE_SETUP -#line 300 "./util/configlexer.lex" -{ YDVAR(1, VAR_INFRA_LAME_TTL) } - YY_BREAK -case 87: -YY_RULE_SETUP -#line 301 "./util/configlexer.lex" -{ YDVAR(1, VAR_INFRA_CACHE_SLABS) } - YY_BREAK -case 88: -YY_RULE_SETUP -#line 302 "./util/configlexer.lex" -{ YDVAR(1, VAR_INFRA_CACHE_NUMHOSTS) } - YY_BREAK -case 89: -YY_RULE_SETUP -#line 303 "./util/configlexer.lex" -{ YDVAR(1, VAR_INFRA_CACHE_LAME_SIZE) } - YY_BREAK -case 90: -YY_RULE_SETUP -#line 304 "./util/configlexer.lex" -{ YDVAR(1, VAR_INFRA_CACHE_MIN_RTT) } - YY_BREAK -case 91: -YY_RULE_SETUP -#line 305 "./util/configlexer.lex" -{ YDVAR(1, VAR_INFRA_CACHE_MAX_RTT) } - YY_BREAK -case 92: -YY_RULE_SETUP -#line 306 "./util/configlexer.lex" -{ YDVAR(1, VAR_INFRA_KEEP_PROBING) } - YY_BREAK -case 93: -YY_RULE_SETUP -#line 307 "./util/configlexer.lex" -{ YDVAR(1, VAR_NUM_QUERIES_PER_THREAD) } - YY_BREAK -case 94: -YY_RULE_SETUP -#line 308 "./util/configlexer.lex" -{ YDVAR(1, VAR_JOSTLE_TIMEOUT) } - YY_BREAK -case 95: -YY_RULE_SETUP -#line 309 "./util/configlexer.lex" -{ YDVAR(1, VAR_DELAY_CLOSE) } - YY_BREAK -case 96: -YY_RULE_SETUP -#line 310 "./util/configlexer.lex" -{ YDVAR(1, VAR_UDP_CONNECT) } - YY_BREAK -case 97: -YY_RULE_SETUP -#line 311 "./util/configlexer.lex" -{ YDVAR(1, VAR_TARGET_FETCH_POLICY) } - YY_BREAK -case 98: -YY_RULE_SETUP -#line 312 "./util/configlexer.lex" -{ YDVAR(1, VAR_HARDEN_SHORT_BUFSIZE) } - YY_BREAK -case 99: -YY_RULE_SETUP -#line 313 "./util/configlexer.lex" -{ YDVAR(1, VAR_HARDEN_LARGE_QUERIES) } - YY_BREAK -case 100: -YY_RULE_SETUP -#line 314 "./util/configlexer.lex" -{ YDVAR(1, VAR_HARDEN_GLUE) } - YY_BREAK -case 101: -YY_RULE_SETUP -#line 315 "./util/configlexer.lex" -{ YDVAR(1, VAR_HARDEN_DNSSEC_STRIPPED) } - YY_BREAK -case 102: -YY_RULE_SETUP -#line 316 "./util/configlexer.lex" -{ YDVAR(1, VAR_HARDEN_BELOW_NXDOMAIN) } - YY_BREAK -case 103: -YY_RULE_SETUP -#line 317 "./util/configlexer.lex" -{ YDVAR(1, VAR_HARDEN_REFERRAL_PATH) } - YY_BREAK -case 104: -YY_RULE_SETUP -#line 318 "./util/configlexer.lex" -{ YDVAR(1, VAR_HARDEN_ALGO_DOWNGRADE) } - YY_BREAK -case 105: -YY_RULE_SETUP -#line 319 "./util/configlexer.lex" -{ YDVAR(1, VAR_HARDEN_UNKNOWN_ADDITIONAL) } - YY_BREAK -case 106: -YY_RULE_SETUP -#line 320 "./util/configlexer.lex" -{ YDVAR(1, VAR_USE_CAPS_FOR_ID) } - YY_BREAK -case 107: -YY_RULE_SETUP -#line 321 "./util/configlexer.lex" -{ YDVAR(1, VAR_CAPS_WHITELIST) } - YY_BREAK -case 108: -YY_RULE_SETUP -#line 322 "./util/configlexer.lex" -{ YDVAR(1, VAR_CAPS_WHITELIST) } - YY_BREAK -case 109: -YY_RULE_SETUP -#line 323 "./util/configlexer.lex" -{ YDVAR(1, VAR_UNWANTED_REPLY_THRESHOLD) } - YY_BREAK -case 110: -YY_RULE_SETUP -#line 324 "./util/configlexer.lex" -{ YDVAR(1, VAR_PRIVATE_ADDRESS) } - YY_BREAK -case 111: -YY_RULE_SETUP -#line 325 "./util/configlexer.lex" -{ YDVAR(1, VAR_PRIVATE_DOMAIN) } - YY_BREAK -case 112: -YY_RULE_SETUP -#line 326 "./util/configlexer.lex" -{ YDVAR(1, VAR_PREFETCH_KEY) } - YY_BREAK -case 113: -YY_RULE_SETUP -#line 327 "./util/configlexer.lex" -{ YDVAR(1, VAR_PREFETCH) } - YY_BREAK -case 114: -YY_RULE_SETUP -#line 328 "./util/configlexer.lex" -{ YDVAR(1, VAR_DENY_ANY) } - YY_BREAK -case 115: -YY_RULE_SETUP -#line 329 "./util/configlexer.lex" -{ YDVAR(0, VAR_STUB_ZONE) } - YY_BREAK -case 116: -YY_RULE_SETUP -#line 330 "./util/configlexer.lex" -{ YDVAR(1, VAR_NAME) } - YY_BREAK -case 117: -YY_RULE_SETUP -#line 331 "./util/configlexer.lex" -{ YDVAR(1, VAR_STUB_ADDR) } - YY_BREAK -case 118: -YY_RULE_SETUP -#line 332 "./util/configlexer.lex" -{ YDVAR(1, VAR_STUB_HOST) } - YY_BREAK -case 119: -YY_RULE_SETUP -#line 333 "./util/configlexer.lex" -{ YDVAR(1, VAR_STUB_PRIME) } - YY_BREAK -case 120: -YY_RULE_SETUP -#line 334 "./util/configlexer.lex" -{ YDVAR(1, VAR_STUB_FIRST) } - YY_BREAK -case 121: -YY_RULE_SETUP -#line 335 "./util/configlexer.lex" -{ YDVAR(1, VAR_STUB_NO_CACHE) } - YY_BREAK -case 122: -YY_RULE_SETUP -#line 336 "./util/configlexer.lex" -{ YDVAR(1, VAR_STUB_SSL_UPSTREAM) } - YY_BREAK -case 123: -YY_RULE_SETUP -#line 337 "./util/configlexer.lex" -{ YDVAR(1, VAR_STUB_SSL_UPSTREAM) } - YY_BREAK -case 124: -YY_RULE_SETUP -#line 338 "./util/configlexer.lex" -{ YDVAR(1, VAR_STUB_TCP_UPSTREAM) } - YY_BREAK -case 125: -YY_RULE_SETUP -#line 339 "./util/configlexer.lex" -{ YDVAR(0, VAR_FORWARD_ZONE) } - YY_BREAK -case 126: -YY_RULE_SETUP -#line 340 "./util/configlexer.lex" -{ YDVAR(1, VAR_FORWARD_ADDR) } - YY_BREAK -case 127: -YY_RULE_SETUP -#line 341 "./util/configlexer.lex" -{ YDVAR(1, VAR_FORWARD_HOST) } - YY_BREAK -case 128: -YY_RULE_SETUP -#line 342 "./util/configlexer.lex" -{ YDVAR(1, VAR_FORWARD_FIRST) } - YY_BREAK -case 129: -YY_RULE_SETUP -#line 343 "./util/configlexer.lex" -{ YDVAR(1, VAR_FORWARD_NO_CACHE) } - YY_BREAK -case 130: -YY_RULE_SETUP -#line 344 "./util/configlexer.lex" -{ YDVAR(1, VAR_FORWARD_SSL_UPSTREAM) } - YY_BREAK -case 131: -YY_RULE_SETUP -#line 345 "./util/configlexer.lex" -{ YDVAR(1, VAR_FORWARD_SSL_UPSTREAM) } - YY_BREAK -case 132: -YY_RULE_SETUP -#line 346 "./util/configlexer.lex" -{ YDVAR(1, VAR_FORWARD_TCP_UPSTREAM) } - YY_BREAK -case 133: -YY_RULE_SETUP -#line 347 "./util/configlexer.lex" -{ YDVAR(0, VAR_AUTH_ZONE) } - YY_BREAK -case 134: -YY_RULE_SETUP -#line 348 "./util/configlexer.lex" -{ YDVAR(0, VAR_RPZ) } - YY_BREAK -case 135: -YY_RULE_SETUP -#line 349 "./util/configlexer.lex" -{ YDVAR(1, VAR_TAGS) } - YY_BREAK -case 136: -YY_RULE_SETUP -#line 350 "./util/configlexer.lex" -{ YDVAR(1, VAR_RPZ_ACTION_OVERRIDE) } - YY_BREAK -case 137: -YY_RULE_SETUP -#line 351 "./util/configlexer.lex" -{ YDVAR(1, VAR_RPZ_CNAME_OVERRIDE) } - YY_BREAK -case 138: -YY_RULE_SETUP -#line 352 "./util/configlexer.lex" -{ YDVAR(1, VAR_RPZ_LOG) } - YY_BREAK -case 139: -YY_RULE_SETUP -#line 353 "./util/configlexer.lex" -{ YDVAR(1, VAR_RPZ_LOG_NAME) } - YY_BREAK -case 140: -YY_RULE_SETUP -#line 354 "./util/configlexer.lex" -{ YDVAR(1, VAR_RPZ_SIGNAL_NXDOMAIN_RA) } - YY_BREAK -case 141: -YY_RULE_SETUP -#line 355 "./util/configlexer.lex" -{ YDVAR(1, VAR_ZONEFILE) } - YY_BREAK -case 142: -YY_RULE_SETUP -#line 356 "./util/configlexer.lex" -{ YDVAR(1, VAR_MASTER) } - YY_BREAK -case 143: -YY_RULE_SETUP -#line 357 "./util/configlexer.lex" -{ YDVAR(1, VAR_MASTER) } - YY_BREAK -case 144: -YY_RULE_SETUP -#line 358 "./util/configlexer.lex" -{ YDVAR(1, VAR_URL) } - YY_BREAK -case 145: -YY_RULE_SETUP -#line 359 "./util/configlexer.lex" -{ YDVAR(1, VAR_ALLOW_NOTIFY) } - YY_BREAK -case 146: -YY_RULE_SETUP -#line 360 "./util/configlexer.lex" -{ YDVAR(1, VAR_FOR_DOWNSTREAM) } - YY_BREAK -case 147: -YY_RULE_SETUP -#line 361 "./util/configlexer.lex" -{ YDVAR(1, VAR_FOR_UPSTREAM) } - YY_BREAK -case 148: -YY_RULE_SETUP -#line 362 "./util/configlexer.lex" -{ YDVAR(1, VAR_FALLBACK_ENABLED) } - YY_BREAK -case 149: -YY_RULE_SETUP -#line 363 "./util/configlexer.lex" -{ YDVAR(0, VAR_VIEW) } - YY_BREAK -case 150: -YY_RULE_SETUP -#line 364 "./util/configlexer.lex" -{ YDVAR(1, VAR_VIEW_FIRST) } - YY_BREAK -case 151: -YY_RULE_SETUP -#line 365 "./util/configlexer.lex" -{ YDVAR(1, VAR_DO_NOT_QUERY_ADDRESS) } - YY_BREAK -case 152: -YY_RULE_SETUP -#line 366 "./util/configlexer.lex" -{ YDVAR(1, VAR_DO_NOT_QUERY_LOCALHOST) } - YY_BREAK -case 153: -YY_RULE_SETUP -#line 367 "./util/configlexer.lex" -{ YDVAR(2, VAR_ACCESS_CONTROL) } - YY_BREAK -case 154: -YY_RULE_SETUP -#line 368 "./util/configlexer.lex" -{ YDVAR(2, VAR_INTERFACE_ACTION) } - YY_BREAK -case 155: -YY_RULE_SETUP -#line 369 "./util/configlexer.lex" -{ YDVAR(1, VAR_SEND_CLIENT_SUBNET) } - YY_BREAK -case 156: -YY_RULE_SETUP -#line 370 "./util/configlexer.lex" -{ YDVAR(1, VAR_CLIENT_SUBNET_ZONE) } - YY_BREAK -case 157: -YY_RULE_SETUP -#line 371 "./util/configlexer.lex" -{ YDVAR(1, VAR_CLIENT_SUBNET_ALWAYS_FORWARD) } - YY_BREAK -case 158: -YY_RULE_SETUP -#line 372 "./util/configlexer.lex" -{ YDVAR(1, VAR_CLIENT_SUBNET_OPCODE) } - YY_BREAK -case 159: -YY_RULE_SETUP -#line 373 "./util/configlexer.lex" -{ YDVAR(1, VAR_MAX_CLIENT_SUBNET_IPV4) } - YY_BREAK -case 160: -YY_RULE_SETUP -#line 374 "./util/configlexer.lex" -{ YDVAR(1, VAR_MAX_CLIENT_SUBNET_IPV6) } - YY_BREAK -case 161: -YY_RULE_SETUP -#line 375 "./util/configlexer.lex" -{ YDVAR(1, VAR_MIN_CLIENT_SUBNET_IPV4) } - YY_BREAK -case 162: -YY_RULE_SETUP -#line 376 "./util/configlexer.lex" -{ YDVAR(1, VAR_MIN_CLIENT_SUBNET_IPV6) } - YY_BREAK -case 163: -YY_RULE_SETUP -#line 377 "./util/configlexer.lex" -{ YDVAR(1, VAR_MAX_ECS_TREE_SIZE_IPV4) } - YY_BREAK -case 164: -YY_RULE_SETUP -#line 378 "./util/configlexer.lex" -{ YDVAR(1, VAR_MAX_ECS_TREE_SIZE_IPV6) } - YY_BREAK -case 165: -YY_RULE_SETUP -#line 379 "./util/configlexer.lex" -{ YDVAR(1, VAR_HIDE_IDENTITY) } - YY_BREAK -case 166: -YY_RULE_SETUP -#line 380 "./util/configlexer.lex" -{ YDVAR(1, VAR_HIDE_VERSION) } - YY_BREAK -case 167: -YY_RULE_SETUP -#line 381 "./util/configlexer.lex" -{ YDVAR(1, VAR_HIDE_TRUSTANCHOR) } - YY_BREAK -case 168: -YY_RULE_SETUP -#line 382 "./util/configlexer.lex" -{ YDVAR(1, VAR_HIDE_HTTP_USER_AGENT) } - YY_BREAK -case 169: -YY_RULE_SETUP -#line 383 "./util/configlexer.lex" -{ YDVAR(1, VAR_IDENTITY) } - YY_BREAK -case 170: -YY_RULE_SETUP -#line 384 "./util/configlexer.lex" -{ YDVAR(1, VAR_VERSION) } - YY_BREAK -case 171: -YY_RULE_SETUP -#line 385 "./util/configlexer.lex" -{ YDVAR(1, VAR_HTTP_USER_AGENT) } - YY_BREAK -case 172: -YY_RULE_SETUP -#line 386 "./util/configlexer.lex" -{ YDVAR(1, VAR_MODULE_CONF) } - YY_BREAK -case 173: -YY_RULE_SETUP -#line 387 "./util/configlexer.lex" -{ YDVAR(1, VAR_DLV_ANCHOR) } - YY_BREAK -case 174: -YY_RULE_SETUP -#line 388 "./util/configlexer.lex" -{ YDVAR(1, VAR_DLV_ANCHOR_FILE) } - YY_BREAK -case 175: -YY_RULE_SETUP -#line 389 "./util/configlexer.lex" -{ YDVAR(1, VAR_TRUST_ANCHOR_FILE) } - YY_BREAK -case 176: -YY_RULE_SETUP -#line 390 "./util/configlexer.lex" -{ YDVAR(1, VAR_AUTO_TRUST_ANCHOR_FILE) } - YY_BREAK -case 177: -YY_RULE_SETUP -#line 391 "./util/configlexer.lex" -{ YDVAR(1, VAR_TRUSTED_KEYS_FILE) } - YY_BREAK -case 178: -YY_RULE_SETUP -#line 392 "./util/configlexer.lex" -{ YDVAR(1, VAR_TRUST_ANCHOR) } - YY_BREAK -case 179: -YY_RULE_SETUP -#line 393 "./util/configlexer.lex" -{ YDVAR(1, VAR_TRUST_ANCHOR_SIGNALING) } - YY_BREAK -case 180: -YY_RULE_SETUP -#line 394 "./util/configlexer.lex" -{ YDVAR(1, VAR_ROOT_KEY_SENTINEL) } - YY_BREAK -case 181: -YY_RULE_SETUP -#line 395 "./util/configlexer.lex" -{ YDVAR(1, VAR_VAL_OVERRIDE_DATE) } - YY_BREAK -case 182: -YY_RULE_SETUP -#line 396 "./util/configlexer.lex" -{ YDVAR(1, VAR_VAL_SIG_SKEW_MIN) } - YY_BREAK -case 183: -YY_RULE_SETUP -#line 397 "./util/configlexer.lex" -{ YDVAR(1, VAR_VAL_SIG_SKEW_MAX) } - YY_BREAK -case 184: -YY_RULE_SETUP -#line 398 "./util/configlexer.lex" -{ YDVAR(1, VAR_VAL_MAX_RESTART) } - YY_BREAK -case 185: -YY_RULE_SETUP -#line 399 "./util/configlexer.lex" -{ YDVAR(1, VAR_BOGUS_TTL) } - YY_BREAK -case 186: -YY_RULE_SETUP -#line 400 "./util/configlexer.lex" -{ YDVAR(1, VAR_VAL_CLEAN_ADDITIONAL) } - YY_BREAK -case 187: -YY_RULE_SETUP -#line 401 "./util/configlexer.lex" -{ YDVAR(1, VAR_VAL_PERMISSIVE_MODE) } - YY_BREAK -case 188: -YY_RULE_SETUP -#line 402 "./util/configlexer.lex" -{ YDVAR(1, VAR_AGGRESSIVE_NSEC) } - YY_BREAK -case 189: -YY_RULE_SETUP -#line 403 "./util/configlexer.lex" -{ YDVAR(1, VAR_IGNORE_CD_FLAG) } - YY_BREAK -case 190: -YY_RULE_SETUP -#line 404 "./util/configlexer.lex" -{ YDVAR(1, VAR_SERVE_EXPIRED) } - YY_BREAK -case 191: -YY_RULE_SETUP -#line 405 "./util/configlexer.lex" -{ YDVAR(1, VAR_SERVE_EXPIRED_TTL) } - YY_BREAK -case 192: -YY_RULE_SETUP -#line 406 "./util/configlexer.lex" -{ YDVAR(1, VAR_SERVE_EXPIRED_TTL_RESET) } - YY_BREAK -case 193: -YY_RULE_SETUP -#line 407 "./util/configlexer.lex" -{ YDVAR(1, VAR_SERVE_EXPIRED_REPLY_TTL) } - YY_BREAK -case 194: -YY_RULE_SETUP -#line 408 "./util/configlexer.lex" -{ YDVAR(1, VAR_SERVE_EXPIRED_CLIENT_TIMEOUT) } - YY_BREAK -case 195: -YY_RULE_SETUP -#line 409 "./util/configlexer.lex" -{ YDVAR(1, VAR_EDE_SERVE_EXPIRED) } - YY_BREAK -case 196: -YY_RULE_SETUP -#line 410 "./util/configlexer.lex" -{ YDVAR(1, VAR_SERVE_ORIGINAL_TTL) } - YY_BREAK -case 197: -YY_RULE_SETUP -#line 411 "./util/configlexer.lex" -{ YDVAR(1, VAR_FAKE_DSA) } - YY_BREAK -case 198: -YY_RULE_SETUP -#line 412 "./util/configlexer.lex" -{ YDVAR(1, VAR_FAKE_SHA1) } - YY_BREAK -case 199: -YY_RULE_SETUP -#line 413 "./util/configlexer.lex" -{ YDVAR(1, VAR_VAL_LOG_LEVEL) } - YY_BREAK -case 200: -YY_RULE_SETUP -#line 414 "./util/configlexer.lex" -{ YDVAR(1, VAR_KEY_CACHE_SIZE) } - YY_BREAK -case 201: -YY_RULE_SETUP -#line 415 "./util/configlexer.lex" -{ YDVAR(1, VAR_KEY_CACHE_SLABS) } - YY_BREAK -case 202: -YY_RULE_SETUP -#line 416 "./util/configlexer.lex" -{ YDVAR(1, VAR_NEG_CACHE_SIZE) } - YY_BREAK -case 203: -YY_RULE_SETUP -#line 417 "./util/configlexer.lex" -{ - YDVAR(1, VAR_VAL_NSEC3_KEYSIZE_ITERATIONS) } - YY_BREAK -case 204: -YY_RULE_SETUP -#line 419 "./util/configlexer.lex" -{ YDVAR(1, VAR_ZONEMD_PERMISSIVE_MODE) } - YY_BREAK -case 205: -YY_RULE_SETUP -#line 420 "./util/configlexer.lex" -{ YDVAR(1, VAR_ZONEMD_CHECK) } - YY_BREAK -case 206: -YY_RULE_SETUP -#line 421 "./util/configlexer.lex" -{ YDVAR(1, VAR_ZONEMD_REJECT_ABSENCE) } - YY_BREAK -case 207: -YY_RULE_SETUP -#line 422 "./util/configlexer.lex" -{ YDVAR(1, VAR_ADD_HOLDDOWN) } - YY_BREAK -case 208: -YY_RULE_SETUP -#line 423 "./util/configlexer.lex" -{ YDVAR(1, VAR_DEL_HOLDDOWN) } - YY_BREAK -case 209: -YY_RULE_SETUP -#line 424 "./util/configlexer.lex" -{ YDVAR(1, VAR_KEEP_MISSING) } - YY_BREAK -case 210: -YY_RULE_SETUP -#line 425 "./util/configlexer.lex" -{ YDVAR(1, VAR_PERMIT_SMALL_HOLDDOWN) } - YY_BREAK -case 211: -YY_RULE_SETUP -#line 426 "./util/configlexer.lex" -{ YDVAR(1, VAR_USE_SYSLOG) } - YY_BREAK -case 212: -YY_RULE_SETUP -#line 427 "./util/configlexer.lex" -{ YDVAR(1, VAR_LOG_IDENTITY) } - YY_BREAK -case 213: -YY_RULE_SETUP -#line 428 "./util/configlexer.lex" -{ YDVAR(1, VAR_LOG_TIME_ASCII) } - YY_BREAK -case 214: -YY_RULE_SETUP -#line 429 "./util/configlexer.lex" -{ YDVAR(1, VAR_LOG_QUERIES) } - YY_BREAK -case 215: -YY_RULE_SETUP -#line 430 "./util/configlexer.lex" -{ YDVAR(1, VAR_LOG_REPLIES) } - YY_BREAK -case 216: -YY_RULE_SETUP -#line 431 "./util/configlexer.lex" -{ YDVAR(1, VAR_LOG_TAG_QUERYREPLY) } - YY_BREAK -case 217: -YY_RULE_SETUP -#line 432 "./util/configlexer.lex" -{ YDVAR(1, VAR_LOG_LOCAL_ACTIONS) } - YY_BREAK -case 218: -YY_RULE_SETUP -#line 433 "./util/configlexer.lex" -{ YDVAR(1, VAR_LOG_SERVFAIL) } - YY_BREAK -case 219: -YY_RULE_SETUP -#line 434 "./util/configlexer.lex" -{ YDVAR(2, VAR_LOCAL_ZONE) } - YY_BREAK -case 220: -YY_RULE_SETUP -#line 435 "./util/configlexer.lex" -{ YDVAR(1, VAR_LOCAL_DATA) } - YY_BREAK -case 221: -YY_RULE_SETUP -#line 436 "./util/configlexer.lex" -{ YDVAR(1, VAR_LOCAL_DATA_PTR) } - YY_BREAK -case 222: -YY_RULE_SETUP -#line 437 "./util/configlexer.lex" -{ YDVAR(1, VAR_UNBLOCK_LAN_ZONES) } - YY_BREAK -case 223: -YY_RULE_SETUP -#line 438 "./util/configlexer.lex" -{ YDVAR(1, VAR_INSECURE_LAN_ZONES) } - YY_BREAK -case 224: -YY_RULE_SETUP -#line 439 "./util/configlexer.lex" -{ YDVAR(1, VAR_STATISTICS_INTERVAL) } - YY_BREAK -case 225: -YY_RULE_SETUP -#line 440 "./util/configlexer.lex" -{ YDVAR(1, VAR_STATISTICS_CUMULATIVE) } - YY_BREAK -case 226: -YY_RULE_SETUP -#line 441 "./util/configlexer.lex" -{ YDVAR(1, VAR_EXTENDED_STATISTICS) } - YY_BREAK -case 227: -YY_RULE_SETUP -#line 442 "./util/configlexer.lex" -{ YDVAR(1, VAR_STATISTICS_INHIBIT_ZERO) } - YY_BREAK -case 228: -YY_RULE_SETUP -#line 443 "./util/configlexer.lex" -{ YDVAR(1, VAR_SHM_ENABLE) } - YY_BREAK -case 229: -YY_RULE_SETUP -#line 444 "./util/configlexer.lex" -{ YDVAR(1, VAR_SHM_KEY) } - YY_BREAK -case 230: -YY_RULE_SETUP -#line 445 "./util/configlexer.lex" -{ YDVAR(0, VAR_REMOTE_CONTROL) } - YY_BREAK -case 231: -YY_RULE_SETUP -#line 446 "./util/configlexer.lex" -{ YDVAR(1, VAR_CONTROL_ENABLE) } - YY_BREAK -case 232: -YY_RULE_SETUP -#line 447 "./util/configlexer.lex" -{ YDVAR(1, VAR_CONTROL_INTERFACE) } - YY_BREAK -case 233: -YY_RULE_SETUP -#line 448 "./util/configlexer.lex" -{ YDVAR(1, VAR_CONTROL_PORT) } - YY_BREAK -case 234: -YY_RULE_SETUP -#line 449 "./util/configlexer.lex" -{ YDVAR(1, VAR_CONTROL_USE_CERT) } - YY_BREAK -case 235: -YY_RULE_SETUP -#line 450 "./util/configlexer.lex" -{ YDVAR(1, VAR_SERVER_KEY_FILE) } - YY_BREAK -case 236: -YY_RULE_SETUP -#line 451 "./util/configlexer.lex" -{ YDVAR(1, VAR_SERVER_CERT_FILE) } - YY_BREAK -case 237: -YY_RULE_SETUP -#line 452 "./util/configlexer.lex" -{ YDVAR(1, VAR_CONTROL_KEY_FILE) } - YY_BREAK -case 238: -YY_RULE_SETUP -#line 453 "./util/configlexer.lex" -{ YDVAR(1, VAR_CONTROL_CERT_FILE) } - YY_BREAK -case 239: -YY_RULE_SETUP -#line 454 "./util/configlexer.lex" -{ YDVAR(1, VAR_PYTHON_SCRIPT) } - YY_BREAK -case 240: -YY_RULE_SETUP -#line 455 "./util/configlexer.lex" -{ YDVAR(0, VAR_PYTHON) } - YY_BREAK -case 241: -YY_RULE_SETUP -#line 456 "./util/configlexer.lex" -{ YDVAR(1, VAR_DYNLIB_FILE) } - YY_BREAK -case 242: -YY_RULE_SETUP -#line 457 "./util/configlexer.lex" -{ YDVAR(0, VAR_DYNLIB) } - YY_BREAK -case 243: -YY_RULE_SETUP -#line 458 "./util/configlexer.lex" -{ YDVAR(1, VAR_DOMAIN_INSECURE) } - YY_BREAK -case 244: -YY_RULE_SETUP -#line 459 "./util/configlexer.lex" -{ YDVAR(1, VAR_MINIMAL_RESPONSES) } - YY_BREAK -case 245: -YY_RULE_SETUP -#line 460 "./util/configlexer.lex" -{ YDVAR(1, VAR_RRSET_ROUNDROBIN) } - YY_BREAK -case 246: -YY_RULE_SETUP -#line 461 "./util/configlexer.lex" -{ YDVAR(1, VAR_UNKNOWN_SERVER_TIME_LIMIT) } - YY_BREAK -case 247: -YY_RULE_SETUP -#line 462 "./util/configlexer.lex" -{ YDVAR(1, VAR_MAX_UDP_SIZE) } - YY_BREAK -case 248: -YY_RULE_SETUP -#line 463 "./util/configlexer.lex" -{ YDVAR(1, VAR_DNS64_PREFIX) } - YY_BREAK -case 249: -YY_RULE_SETUP -#line 464 "./util/configlexer.lex" -{ YDVAR(1, VAR_DNS64_SYNTHALL) } - YY_BREAK -case 250: -YY_RULE_SETUP -#line 465 "./util/configlexer.lex" -{ YDVAR(1, VAR_DNS64_IGNORE_AAAA) } - YY_BREAK -case 251: -YY_RULE_SETUP -#line 466 "./util/configlexer.lex" -{ YDVAR(1, VAR_DEFINE_TAG) } - YY_BREAK -case 252: -YY_RULE_SETUP -#line 467 "./util/configlexer.lex" -{ YDVAR(2, VAR_LOCAL_ZONE_TAG) } - YY_BREAK -case 253: -YY_RULE_SETUP -#line 468 "./util/configlexer.lex" -{ YDVAR(2, VAR_ACCESS_CONTROL_TAG) } - YY_BREAK -case 254: -YY_RULE_SETUP -#line 469 "./util/configlexer.lex" -{ YDVAR(3, VAR_ACCESS_CONTROL_TAG_ACTION) } - YY_BREAK -case 255: -YY_RULE_SETUP -#line 470 "./util/configlexer.lex" -{ YDVAR(3, VAR_ACCESS_CONTROL_TAG_DATA) } - YY_BREAK -case 256: -YY_RULE_SETUP -#line 471 "./util/configlexer.lex" -{ YDVAR(2, VAR_ACCESS_CONTROL_VIEW) } - YY_BREAK -case 257: -YY_RULE_SETUP -#line 472 "./util/configlexer.lex" -{ YDVAR(2, VAR_INTERFACE_TAG) } - YY_BREAK -case 258: -YY_RULE_SETUP -#line 473 "./util/configlexer.lex" -{ YDVAR(3, VAR_INTERFACE_TAG_ACTION) } - YY_BREAK -case 259: -YY_RULE_SETUP -#line 474 "./util/configlexer.lex" -{ YDVAR(3, VAR_INTERFACE_TAG_DATA) } - YY_BREAK -case 260: -YY_RULE_SETUP -#line 475 "./util/configlexer.lex" -{ YDVAR(2, VAR_INTERFACE_VIEW) } - YY_BREAK -case 261: -YY_RULE_SETUP -#line 476 "./util/configlexer.lex" -{ YDVAR(3, VAR_LOCAL_ZONE_OVERRIDE) } - YY_BREAK -case 262: -YY_RULE_SETUP -#line 477 "./util/configlexer.lex" -{ YDVAR(0, VAR_DNSTAP) } - YY_BREAK -case 263: -YY_RULE_SETUP -#line 478 "./util/configlexer.lex" -{ YDVAR(1, VAR_DNSTAP_ENABLE) } - YY_BREAK -case 264: -YY_RULE_SETUP -#line 479 "./util/configlexer.lex" -{ YDVAR(1, VAR_DNSTAP_BIDIRECTIONAL) } - YY_BREAK -case 265: -YY_RULE_SETUP -#line 480 "./util/configlexer.lex" -{ YDVAR(1, VAR_DNSTAP_SOCKET_PATH) } - YY_BREAK -case 266: -YY_RULE_SETUP -#line 481 "./util/configlexer.lex" -{ YDVAR(1, VAR_DNSTAP_IP) } - YY_BREAK -case 267: -YY_RULE_SETUP -#line 482 "./util/configlexer.lex" -{ YDVAR(1, VAR_DNSTAP_TLS) } - YY_BREAK -case 268: -YY_RULE_SETUP -#line 483 "./util/configlexer.lex" -{ YDVAR(1, VAR_DNSTAP_TLS_SERVER_NAME) } - YY_BREAK -case 269: -YY_RULE_SETUP -#line 484 "./util/configlexer.lex" -{ YDVAR(1, VAR_DNSTAP_TLS_CERT_BUNDLE) } - YY_BREAK -case 270: -YY_RULE_SETUP -#line 485 "./util/configlexer.lex" -{ - YDVAR(1, VAR_DNSTAP_TLS_CLIENT_KEY_FILE) } - YY_BREAK -case 271: -YY_RULE_SETUP -#line 487 "./util/configlexer.lex" -{ - YDVAR(1, VAR_DNSTAP_TLS_CLIENT_CERT_FILE) } - YY_BREAK -case 272: -YY_RULE_SETUP -#line 489 "./util/configlexer.lex" -{ YDVAR(1, VAR_DNSTAP_SEND_IDENTITY) } - YY_BREAK -case 273: -YY_RULE_SETUP -#line 490 "./util/configlexer.lex" -{ YDVAR(1, VAR_DNSTAP_SEND_VERSION) } - YY_BREAK -case 274: -YY_RULE_SETUP -#line 491 "./util/configlexer.lex" -{ YDVAR(1, VAR_DNSTAP_IDENTITY) } - YY_BREAK -case 275: -YY_RULE_SETUP -#line 492 "./util/configlexer.lex" -{ YDVAR(1, VAR_DNSTAP_VERSION) } - YY_BREAK -case 276: -YY_RULE_SETUP -#line 493 "./util/configlexer.lex" -{ - YDVAR(1, VAR_DNSTAP_LOG_RESOLVER_QUERY_MESSAGES) } - YY_BREAK -case 277: -YY_RULE_SETUP -#line 495 "./util/configlexer.lex" -{ - YDVAR(1, VAR_DNSTAP_LOG_RESOLVER_RESPONSE_MESSAGES) } - YY_BREAK -case 278: -YY_RULE_SETUP -#line 497 "./util/configlexer.lex" -{ - YDVAR(1, VAR_DNSTAP_LOG_CLIENT_QUERY_MESSAGES) } - YY_BREAK -case 279: -YY_RULE_SETUP -#line 499 "./util/configlexer.lex" -{ - YDVAR(1, VAR_DNSTAP_LOG_CLIENT_RESPONSE_MESSAGES) } - YY_BREAK -case 280: -YY_RULE_SETUP -#line 501 "./util/configlexer.lex" -{ - YDVAR(1, VAR_DNSTAP_LOG_FORWARDER_QUERY_MESSAGES) } - YY_BREAK -case 281: -YY_RULE_SETUP -#line 503 "./util/configlexer.lex" -{ - YDVAR(1, VAR_DNSTAP_LOG_FORWARDER_RESPONSE_MESSAGES) } - YY_BREAK -case 282: -YY_RULE_SETUP -#line 505 "./util/configlexer.lex" -{ YDVAR(1, VAR_DISABLE_DNSSEC_LAME_CHECK) } - YY_BREAK -case 283: -YY_RULE_SETUP -#line 506 "./util/configlexer.lex" -{ YDVAR(1, VAR_IP_RATELIMIT) } - YY_BREAK -case 284: -YY_RULE_SETUP -#line 507 "./util/configlexer.lex" -{ YDVAR(1, VAR_RATELIMIT) } - YY_BREAK -case 285: -YY_RULE_SETUP -#line 508 "./util/configlexer.lex" -{ YDVAR(1, VAR_IP_RATELIMIT_SLABS) } - YY_BREAK -case 286: -YY_RULE_SETUP -#line 509 "./util/configlexer.lex" -{ YDVAR(1, VAR_RATELIMIT_SLABS) } - YY_BREAK -case 287: -YY_RULE_SETUP -#line 510 "./util/configlexer.lex" -{ YDVAR(1, VAR_IP_RATELIMIT_SIZE) } - YY_BREAK -case 288: -YY_RULE_SETUP -#line 511 "./util/configlexer.lex" -{ YDVAR(1, VAR_RATELIMIT_SIZE) } - YY_BREAK -case 289: -YY_RULE_SETUP -#line 512 "./util/configlexer.lex" -{ YDVAR(2, VAR_RATELIMIT_FOR_DOMAIN) } - YY_BREAK -case 290: -YY_RULE_SETUP -#line 513 "./util/configlexer.lex" -{ YDVAR(2, VAR_RATELIMIT_BELOW_DOMAIN) } - YY_BREAK -case 291: -YY_RULE_SETUP -#line 514 "./util/configlexer.lex" -{ YDVAR(1, VAR_IP_RATELIMIT_FACTOR) } - YY_BREAK -case 292: -YY_RULE_SETUP -#line 515 "./util/configlexer.lex" -{ YDVAR(1, VAR_RATELIMIT_FACTOR) } - YY_BREAK -case 293: -YY_RULE_SETUP -#line 516 "./util/configlexer.lex" -{ YDVAR(1, VAR_IP_RATELIMIT_BACKOFF) } - YY_BREAK -case 294: -YY_RULE_SETUP -#line 517 "./util/configlexer.lex" -{ YDVAR(1, VAR_RATELIMIT_BACKOFF) } - YY_BREAK -case 295: -YY_RULE_SETUP -#line 518 "./util/configlexer.lex" -{ YDVAR(1, VAR_OUTBOUND_MSG_RETRY) } - YY_BREAK -case 296: -YY_RULE_SETUP -#line 519 "./util/configlexer.lex" -{ YDVAR(1, VAR_MAX_SENT_COUNT) } - YY_BREAK -case 297: -YY_RULE_SETUP -#line 520 "./util/configlexer.lex" -{ YDVAR(1, VAR_MAX_QUERY_RESTARTS) } - YY_BREAK -case 298: -YY_RULE_SETUP -#line 521 "./util/configlexer.lex" -{ YDVAR(1, VAR_LOW_RTT) } - YY_BREAK -case 299: -YY_RULE_SETUP -#line 522 "./util/configlexer.lex" -{ YDVAR(1, VAR_FAST_SERVER_NUM) } - YY_BREAK -case 300: -YY_RULE_SETUP -#line 523 "./util/configlexer.lex" -{ YDVAR(1, VAR_FAST_SERVER_PERMIL) } - YY_BREAK -case 301: -YY_RULE_SETUP -#line 524 "./util/configlexer.lex" -{ YDVAR(1, VAR_FAST_SERVER_PERMIL) } - YY_BREAK -case 302: -YY_RULE_SETUP -#line 525 "./util/configlexer.lex" -{ YDVAR(1, VAR_FAST_SERVER_PERMIL) } - YY_BREAK -case 303: -YY_RULE_SETUP -#line 526 "./util/configlexer.lex" -{ YDVAR(2, VAR_RESPONSE_IP_TAG) } - YY_BREAK -case 304: -YY_RULE_SETUP -#line 527 "./util/configlexer.lex" -{ YDVAR(2, VAR_RESPONSE_IP) } - YY_BREAK -case 305: -YY_RULE_SETUP -#line 528 "./util/configlexer.lex" -{ YDVAR(2, VAR_RESPONSE_IP_DATA) } - YY_BREAK -case 306: -YY_RULE_SETUP -#line 529 "./util/configlexer.lex" -{ YDVAR(0, VAR_DNSCRYPT) } - YY_BREAK -case 307: -YY_RULE_SETUP -#line 530 "./util/configlexer.lex" -{ YDVAR(1, VAR_DNSCRYPT_ENABLE) } - YY_BREAK -case 308: -YY_RULE_SETUP -#line 531 "./util/configlexer.lex" -{ YDVAR(1, VAR_DNSCRYPT_PORT) } - YY_BREAK -case 309: -YY_RULE_SETUP -#line 532 "./util/configlexer.lex" -{ YDVAR(1, VAR_DNSCRYPT_PROVIDER) } - YY_BREAK -case 310: -YY_RULE_SETUP -#line 533 "./util/configlexer.lex" -{ YDVAR(1, VAR_DNSCRYPT_SECRET_KEY) } - YY_BREAK -case 311: -YY_RULE_SETUP -#line 534 "./util/configlexer.lex" -{ YDVAR(1, VAR_DNSCRYPT_PROVIDER_CERT) } - YY_BREAK -case 312: -YY_RULE_SETUP -#line 535 "./util/configlexer.lex" -{ YDVAR(1, VAR_DNSCRYPT_PROVIDER_CERT_ROTATED) } - YY_BREAK -case 313: -YY_RULE_SETUP -#line 536 "./util/configlexer.lex" -{ - YDVAR(1, VAR_DNSCRYPT_SHARED_SECRET_CACHE_SIZE) } - YY_BREAK -case 314: -YY_RULE_SETUP -#line 538 "./util/configlexer.lex" -{ - YDVAR(1, VAR_DNSCRYPT_SHARED_SECRET_CACHE_SLABS) } - YY_BREAK -case 315: -YY_RULE_SETUP -#line 540 "./util/configlexer.lex" -{ YDVAR(1, VAR_DNSCRYPT_NONCE_CACHE_SIZE) } - YY_BREAK -case 316: -YY_RULE_SETUP -#line 541 "./util/configlexer.lex" -{ YDVAR(1, VAR_DNSCRYPT_NONCE_CACHE_SLABS) } - YY_BREAK -case 317: -YY_RULE_SETUP -#line 542 "./util/configlexer.lex" -{ YDVAR(1, VAR_PAD_RESPONSES) } - YY_BREAK -case 318: -YY_RULE_SETUP -#line 543 "./util/configlexer.lex" -{ YDVAR(1, VAR_PAD_RESPONSES_BLOCK_SIZE) } - YY_BREAK -case 319: -YY_RULE_SETUP -#line 544 "./util/configlexer.lex" -{ YDVAR(1, VAR_PAD_QUERIES) } - YY_BREAK -case 320: -YY_RULE_SETUP -#line 545 "./util/configlexer.lex" -{ YDVAR(1, VAR_PAD_QUERIES_BLOCK_SIZE) } - YY_BREAK -case 321: -YY_RULE_SETUP -#line 546 "./util/configlexer.lex" -{ YDVAR(1, VAR_IPSECMOD_ENABLED) } - YY_BREAK -case 322: -YY_RULE_SETUP -#line 547 "./util/configlexer.lex" -{ YDVAR(1, VAR_IPSECMOD_IGNORE_BOGUS) } - YY_BREAK -case 323: -YY_RULE_SETUP -#line 548 "./util/configlexer.lex" -{ YDVAR(1, VAR_IPSECMOD_HOOK) } - YY_BREAK -case 324: -YY_RULE_SETUP -#line 549 "./util/configlexer.lex" -{ YDVAR(1, VAR_IPSECMOD_MAX_TTL) } - YY_BREAK -case 325: -YY_RULE_SETUP -#line 550 "./util/configlexer.lex" -{ YDVAR(1, VAR_IPSECMOD_WHITELIST) } - YY_BREAK -case 326: -YY_RULE_SETUP -#line 551 "./util/configlexer.lex" -{ YDVAR(1, VAR_IPSECMOD_WHITELIST) } - YY_BREAK -case 327: -YY_RULE_SETUP -#line 552 "./util/configlexer.lex" -{ YDVAR(1, VAR_IPSECMOD_STRICT) } - YY_BREAK -case 328: -YY_RULE_SETUP -#line 553 "./util/configlexer.lex" -{ YDVAR(0, VAR_CACHEDB) } - YY_BREAK -case 329: -YY_RULE_SETUP -#line 554 "./util/configlexer.lex" -{ YDVAR(1, VAR_CACHEDB_BACKEND) } - YY_BREAK -case 330: -YY_RULE_SETUP -#line 555 "./util/configlexer.lex" -{ YDVAR(1, VAR_CACHEDB_SECRETSEED) } - YY_BREAK -case 331: -YY_RULE_SETUP -#line 556 "./util/configlexer.lex" -{ YDVAR(1, VAR_CACHEDB_REDISHOST) } - YY_BREAK -case 332: -YY_RULE_SETUP -#line 557 "./util/configlexer.lex" -{ YDVAR(1, VAR_CACHEDB_REDISPORT) } - YY_BREAK -case 333: -YY_RULE_SETUP -#line 558 "./util/configlexer.lex" -{ YDVAR(1, VAR_CACHEDB_REDISPATH) } - YY_BREAK -case 334: -YY_RULE_SETUP -#line 559 "./util/configlexer.lex" -{ YDVAR(1, VAR_CACHEDB_REDISPASSWORD) } - YY_BREAK -case 335: -YY_RULE_SETUP -#line 560 "./util/configlexer.lex" -{ YDVAR(1, VAR_CACHEDB_REDISTIMEOUT) } - YY_BREAK -case 336: -YY_RULE_SETUP -#line 561 "./util/configlexer.lex" -{ YDVAR(1, VAR_CACHEDB_REDISEXPIRERECORDS) } - YY_BREAK -case 337: -YY_RULE_SETUP -#line 562 "./util/configlexer.lex" -{ YDVAR(0, VAR_IPSET) } - YY_BREAK -case 338: -YY_RULE_SETUP -#line 563 "./util/configlexer.lex" -{ YDVAR(1, VAR_IPSET_NAME_V4) } - YY_BREAK -case 339: -YY_RULE_SETUP -#line 564 "./util/configlexer.lex" -{ YDVAR(1, VAR_IPSET_NAME_V6) } - YY_BREAK -case 340: -YY_RULE_SETUP -#line 565 "./util/configlexer.lex" -{ YDVAR(1, VAR_UDP_UPSTREAM_WITHOUT_DOWNSTREAM) } - YY_BREAK -case 341: -YY_RULE_SETUP -#line 566 "./util/configlexer.lex" -{ YDVAR(2, VAR_TCP_CONNECTION_LIMIT) } - YY_BREAK -case 342: -YY_RULE_SETUP -#line 567 "./util/configlexer.lex" -{ YDVAR(2, VAR_EDNS_CLIENT_STRING) } - YY_BREAK -case 343: -YY_RULE_SETUP -#line 568 "./util/configlexer.lex" -{ YDVAR(1, VAR_EDNS_CLIENT_STRING_OPCODE) } - YY_BREAK -case 344: -YY_RULE_SETUP -#line 569 "./util/configlexer.lex" -{ YDVAR(1, VAR_NSID ) } - YY_BREAK -case 345: -YY_RULE_SETUP -#line 570 "./util/configlexer.lex" -{ YDVAR(1, VAR_EDE ) } - YY_BREAK -case 346: -YY_RULE_SETUP -#line 571 "./util/configlexer.lex" -{ YDVAR(1, VAR_PROXY_PROTOCOL_PORT) } - YY_BREAK -case 347: -/* rule 347 can match eol */ -YY_RULE_SETUP -#line 572 "./util/configlexer.lex" -{ LEXOUT(("NL\n")); cfg_parser->line++; } - YY_BREAK -/* Quoted strings. Strip leading and ending quotes */ -case 348: -YY_RULE_SETUP -#line 575 "./util/configlexer.lex" -{ BEGIN(quotedstring); LEXOUT(("QS ")); } - YY_BREAK -case YY_STATE_EOF(quotedstring): -#line 576 "./util/configlexer.lex" -{ - yyerror("EOF inside quoted string"); - if(--num_args == 0) { BEGIN(INITIAL); } - else { BEGIN(val); } -} - YY_BREAK -case 349: -YY_RULE_SETUP -#line 581 "./util/configlexer.lex" -{ LEXOUT(("STR(%s) ", yytext)); yymore(); } - YY_BREAK -case 350: -/* rule 350 can match eol */ -YY_RULE_SETUP -#line 582 "./util/configlexer.lex" -{ yyerror("newline inside quoted string, no end \""); - cfg_parser->line++; BEGIN(INITIAL); } - YY_BREAK -case 351: -YY_RULE_SETUP -#line 584 "./util/configlexer.lex" -{ - LEXOUT(("QE ")); - if(--num_args == 0) { BEGIN(INITIAL); } - else { BEGIN(val); } - yytext[yyleng - 1] = '\0'; - yylval.str = strdup(yytext); - if(!yylval.str) - yyerror("out of memory"); - return STRING_ARG; -} - YY_BREAK -/* Single Quoted strings. Strip leading and ending quotes */ -case 352: -YY_RULE_SETUP -#line 596 "./util/configlexer.lex" -{ BEGIN(singlequotedstr); LEXOUT(("SQS ")); } - YY_BREAK -case YY_STATE_EOF(singlequotedstr): -#line 597 "./util/configlexer.lex" -{ - yyerror("EOF inside quoted string"); - if(--num_args == 0) { BEGIN(INITIAL); } - else { BEGIN(val); } -} - YY_BREAK -case 353: -YY_RULE_SETUP -#line 602 "./util/configlexer.lex" -{ LEXOUT(("STR(%s) ", yytext)); yymore(); } - YY_BREAK -case 354: -/* rule 354 can match eol */ -YY_RULE_SETUP -#line 603 "./util/configlexer.lex" -{ yyerror("newline inside quoted string, no end '"); - cfg_parser->line++; BEGIN(INITIAL); } - YY_BREAK -case 355: -YY_RULE_SETUP -#line 605 "./util/configlexer.lex" -{ - LEXOUT(("SQE ")); - if(--num_args == 0) { BEGIN(INITIAL); } - else { BEGIN(val); } - yytext[yyleng - 1] = '\0'; - yylval.str = strdup(yytext); - if(!yylval.str) - yyerror("out of memory"); - return STRING_ARG; -} - YY_BREAK -/* include: directive */ -case 356: -YY_RULE_SETUP -#line 617 "./util/configlexer.lex" -{ - LEXOUT(("v(%s) ", yytext)); inc_prev = YYSTATE; BEGIN(include); } - YY_BREAK -case YY_STATE_EOF(include): -#line 619 "./util/configlexer.lex" -{ - yyerror("EOF inside include directive"); - BEGIN(inc_prev); -} - YY_BREAK -case 357: -YY_RULE_SETUP -#line 623 "./util/configlexer.lex" -{ LEXOUT(("ISP ")); /* ignore */ } - YY_BREAK -case 358: -/* rule 358 can match eol */ -YY_RULE_SETUP -#line 624 "./util/configlexer.lex" -{ LEXOUT(("NL\n")); cfg_parser->line++;} - YY_BREAK -case 359: -YY_RULE_SETUP -#line 625 "./util/configlexer.lex" -{ LEXOUT(("IQS ")); BEGIN(include_quoted); } - YY_BREAK -case 360: -YY_RULE_SETUP -#line 626 "./util/configlexer.lex" -{ - LEXOUT(("Iunquotedstr(%s) ", yytext)); - config_start_include_glob(yytext, 0); - BEGIN(inc_prev); -} - YY_BREAK -case YY_STATE_EOF(include_quoted): -#line 631 "./util/configlexer.lex" -{ - yyerror("EOF inside quoted string"); - BEGIN(inc_prev); -} - YY_BREAK -case 361: -YY_RULE_SETUP -#line 635 "./util/configlexer.lex" -{ LEXOUT(("ISTR(%s) ", yytext)); yymore(); } - YY_BREAK -case 362: -/* rule 362 can match eol */ -YY_RULE_SETUP -#line 636 "./util/configlexer.lex" -{ yyerror("newline before \" in include name"); - cfg_parser->line++; BEGIN(inc_prev); } - YY_BREAK -case 363: -YY_RULE_SETUP -#line 638 "./util/configlexer.lex" -{ - LEXOUT(("IQE ")); - yytext[yyleng - 1] = '\0'; - config_start_include_glob(yytext, 0); - BEGIN(inc_prev); -} - YY_BREAK -case YY_STATE_EOF(INITIAL): -case YY_STATE_EOF(val): -#line 644 "./util/configlexer.lex" -{ - LEXOUT(("LEXEOF ")); - yy_set_bol(1); /* Set beginning of line, so "^" rules match. */ - if (!config_include_stack) { - yyterminate(); - } else { - int prev_toplevel = inc_toplevel; - fclose(yyin); - config_end_include(); - if(prev_toplevel) return (VAR_FORCE_TOPLEVEL); - } -} - YY_BREAK -/* include-toplevel: directive */ -case 364: -YY_RULE_SETUP -#line 658 "./util/configlexer.lex" -{ - LEXOUT(("v(%s) ", yytext)); inc_prev = YYSTATE; BEGIN(include_toplevel); -} - YY_BREAK -case YY_STATE_EOF(include_toplevel): -#line 661 "./util/configlexer.lex" -{ - yyerror("EOF inside include_toplevel directive"); - BEGIN(inc_prev); -} - YY_BREAK -case 365: -YY_RULE_SETUP -#line 665 "./util/configlexer.lex" -{ LEXOUT(("ITSP ")); /* ignore */ } - YY_BREAK -case 366: -/* rule 366 can match eol */ -YY_RULE_SETUP -#line 666 "./util/configlexer.lex" -{ LEXOUT(("NL\n")); cfg_parser->line++; } - YY_BREAK -case 367: -YY_RULE_SETUP -#line 667 "./util/configlexer.lex" -{ LEXOUT(("ITQS ")); BEGIN(include_toplevel_quoted); } - YY_BREAK -case 368: -YY_RULE_SETUP -#line 668 "./util/configlexer.lex" -{ - LEXOUT(("ITunquotedstr(%s) ", yytext)); - config_start_include_glob(yytext, 1); - BEGIN(inc_prev); - return (VAR_FORCE_TOPLEVEL); -} - YY_BREAK -case YY_STATE_EOF(include_toplevel_quoted): -#line 674 "./util/configlexer.lex" -{ - yyerror("EOF inside quoted string"); - BEGIN(inc_prev); -} - YY_BREAK -case 369: -YY_RULE_SETUP -#line 678 "./util/configlexer.lex" -{ LEXOUT(("ITSTR(%s) ", yytext)); yymore(); } - YY_BREAK -case 370: -/* rule 370 can match eol */ -YY_RULE_SETUP -#line 679 "./util/configlexer.lex" -{ - yyerror("newline before \" in include name"); - cfg_parser->line++; BEGIN(inc_prev); -} - YY_BREAK -case 371: -YY_RULE_SETUP -#line 683 "./util/configlexer.lex" -{ - LEXOUT(("ITQE ")); - yytext[yyleng - 1] = '\0'; - config_start_include_glob(yytext, 1); - BEGIN(inc_prev); - return (VAR_FORCE_TOPLEVEL); -} - YY_BREAK -case 372: -YY_RULE_SETUP -#line 691 "./util/configlexer.lex" -{ LEXOUT(("unquotedstr(%s) ", yytext)); - if(--num_args == 0) { BEGIN(INITIAL); } - yylval.str = strdup(yytext); return STRING_ARG; } - YY_BREAK -case 373: -YY_RULE_SETUP -#line 695 "./util/configlexer.lex" -{ - ub_c_error_msg("unknown keyword '%s'", yytext); - } - YY_BREAK -case 374: -YY_RULE_SETUP -#line 699 "./util/configlexer.lex" -{ - ub_c_error_msg("stray '%s'", yytext); - } - YY_BREAK -case 375: -YY_RULE_SETUP -#line 703 "./util/configlexer.lex" -ECHO; - YY_BREAK -#line 5767 "" - - case YY_END_OF_BUFFER: - { - /* Amount of text matched not including the EOB char. */ - int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1; - - /* Undo the effects of YY_DO_BEFORE_ACTION. */ - *yy_cp = (yy_hold_char); - YY_RESTORE_YY_MORE_OFFSET - - if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW ) - { - /* We're scanning a new file or input source. It's - * possible that this happened because the user - * just pointed yyin at a new source and called - * yylex(). If so, then we have to assure - * consistency between YY_CURRENT_BUFFER and our - * globals. Here is the right place to do so, because - * this is the first action (other than possibly a - * back-up) that will match for the new input source. - */ - (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; - YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin; - YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL; - } - - /* Note that here we test for yy_c_buf_p "<=" to the position - * of the first EOB in the buffer, since yy_c_buf_p will - * already have been incremented past the NUL character - * (since all states make transitions on EOB to the - * end-of-buffer state). Contrast this with the test - * in input(). - */ - if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) - { /* This was really a NUL. */ - yy_state_type yy_next_state; - - (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text; - - yy_current_state = yy_get_previous_state( ); - - /* Okay, we're now positioned to make the NUL - * transition. We couldn't have - * yy_get_previous_state() go ahead and do it - * for us because it doesn't know how to deal - * with the possibility of jamming (and we don't - * want to build jamming into it because then it - * will run more slowly). - */ - - yy_next_state = yy_try_NUL_trans( yy_current_state ); - - yy_bp = (yytext_ptr) + YY_MORE_ADJ; - - if ( yy_next_state ) - { - /* Consume the NUL. */ - yy_cp = ++(yy_c_buf_p); - yy_current_state = yy_next_state; - goto yy_match; - } - - else - { - yy_cp = (yy_c_buf_p); - goto yy_find_action; - } - } - - else switch ( yy_get_next_buffer( ) ) - { - case EOB_ACT_END_OF_FILE: - { - (yy_did_buffer_switch_on_eof) = 0; - - if ( yywrap( ) ) - { - /* Note: because we've taken care in - * yy_get_next_buffer() to have set up - * yytext, we can now set up - * yy_c_buf_p so that if some total - * hoser (like flex itself) wants to - * call the scanner after we return the - * YY_NULL, it'll still work - another - * YY_NULL will get returned. - */ - (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ; - - yy_act = YY_STATE_EOF(YY_START); - goto do_action; - } - - else - { - if ( ! (yy_did_buffer_switch_on_eof) ) - YY_NEW_FILE; - } - break; - } - - case EOB_ACT_CONTINUE_SCAN: - (yy_c_buf_p) = - (yytext_ptr) + yy_amount_of_matched_text; - - yy_current_state = yy_get_previous_state( ); - - yy_cp = (yy_c_buf_p); - yy_bp = (yytext_ptr) + YY_MORE_ADJ; - goto yy_match; - - case EOB_ACT_LAST_MATCH: - (yy_c_buf_p) = - &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)]; - - yy_current_state = yy_get_previous_state( ); - - yy_cp = (yy_c_buf_p); - yy_bp = (yytext_ptr) + YY_MORE_ADJ; - goto yy_find_action; - } - break; - } - - default: - YY_FATAL_ERROR( - "fatal flex scanner internal error--no action found" ); - } /* end of action switch */ - } /* end of scanning one token */ - } /* end of user's declarations */ -} /* end of yylex */ - -/* yy_get_next_buffer - try to read in a new buffer - * - * Returns a code representing an action: - * EOB_ACT_LAST_MATCH - - * EOB_ACT_CONTINUE_SCAN - continue scanning from current position - * EOB_ACT_END_OF_FILE - end of file - */ -static int yy_get_next_buffer (void) -{ - char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; - char *source = (yytext_ptr); - int number_to_move, i; - int ret_val; - - if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] ) - YY_FATAL_ERROR( - "fatal flex scanner internal error--end of buffer missed" ); - - if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 ) - { /* Don't try to fill the buffer, so this is an EOF. */ - if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 ) - { - /* We matched a single character, the EOB, so - * treat this as a final EOF. - */ - return EOB_ACT_END_OF_FILE; - } - - else - { - /* We matched some text prior to the EOB, first - * process it. - */ - return EOB_ACT_LAST_MATCH; - } - } - - /* Try to read more data. */ - - /* First move last chars to start of buffer. */ - number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr) - 1); - - for ( i = 0; i < number_to_move; ++i ) - *(dest++) = *(source++); - - if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING ) - /* don't do the read, it's not guaranteed to return an EOF, - * just force an EOF - */ - YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0; - - else - { - int num_to_read = - YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; - - while ( num_to_read <= 0 ) - { /* Not enough room in the buffer - grow it. */ - - /* just a shorter name for the current buffer */ - YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE; - - int yy_c_buf_p_offset = - (int) ((yy_c_buf_p) - b->yy_ch_buf); - - if ( b->yy_is_our_buffer ) - { - int new_size = b->yy_buf_size * 2; - - if ( new_size <= 0 ) - b->yy_buf_size += b->yy_buf_size / 8; - else - b->yy_buf_size *= 2; - - b->yy_ch_buf = (char *) - /* Include room in for 2 EOB chars. */ - yyrealloc( (void *) b->yy_ch_buf, - (yy_size_t) (b->yy_buf_size + 2) ); - } - else - /* Can't grow it, we don't own it. */ - b->yy_ch_buf = NULL; - - if ( ! b->yy_ch_buf ) - YY_FATAL_ERROR( - "fatal error - scanner input buffer overflow" ); - - (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset]; - - num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - - number_to_move - 1; - - } - - if ( num_to_read > YY_READ_BUF_SIZE ) - num_to_read = YY_READ_BUF_SIZE; - - /* Read in more data. */ - YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), - (yy_n_chars), num_to_read ); - - YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); - } - - if ( (yy_n_chars) == 0 ) - { - if ( number_to_move == YY_MORE_ADJ ) - { - ret_val = EOB_ACT_END_OF_FILE; - yyrestart( yyin ); - } - - else - { - ret_val = EOB_ACT_LAST_MATCH; - YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = - YY_BUFFER_EOF_PENDING; - } - } - - else - ret_val = EOB_ACT_CONTINUE_SCAN; - - if (((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) { - /* Extend the array by 50%, plus the number we really need. */ - int new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1); - YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc( - (void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, (yy_size_t) new_size ); - if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) - YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" ); - /* "- 2" to take care of EOB's */ - YY_CURRENT_BUFFER_LVALUE->yy_buf_size = (int) (new_size - 2); - } - - (yy_n_chars) += number_to_move; - YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR; - YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR; - - (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0]; - - return ret_val; -} - -/* yy_get_previous_state - get the state just before the EOB char was reached */ - - static yy_state_type yy_get_previous_state (void) -{ - yy_state_type yy_current_state; - char *yy_cp; - - yy_current_state = (yy_start); - - for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp ) - { - YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); - if ( yy_accept[yy_current_state] ) - { - (yy_last_accepting_state) = yy_current_state; - (yy_last_accepting_cpos) = yy_cp; - } - while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) - { - yy_current_state = (int) yy_def[yy_current_state]; - if ( yy_current_state >= 3713 ) - yy_c = yy_meta[yy_c]; - } - yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c]; - } - - return yy_current_state; -} - -/* yy_try_NUL_trans - try to make a transition on the NUL character - * - * synopsis - * next_state = yy_try_NUL_trans( current_state ); - */ - static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state ) -{ - int yy_is_jam; - char *yy_cp = (yy_c_buf_p); - - YY_CHAR yy_c = 1; - if ( yy_accept[yy_current_state] ) - { - (yy_last_accepting_state) = yy_current_state; - (yy_last_accepting_cpos) = yy_cp; - } - while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) - { - yy_current_state = (int) yy_def[yy_current_state]; - if ( yy_current_state >= 3713 ) - yy_c = yy_meta[yy_c]; - } - yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c]; - yy_is_jam = (yy_current_state == 3712); - - return yy_is_jam ? 0 : yy_current_state; -} - -#ifndef YY_NO_UNPUT - -#endif - -#ifndef YY_NO_INPUT -#ifdef __cplusplus - static int yyinput (void) -#else - static int input (void) -#endif - -{ - int c; - - *(yy_c_buf_p) = (yy_hold_char); - - if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR ) - { - /* yy_c_buf_p now points to the character we want to return. - * If this occurs *before* the EOB characters, then it's a - * valid NUL; if not, then we've hit the end of the buffer. - */ - if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) - /* This was really a NUL. */ - *(yy_c_buf_p) = '\0'; - - else - { /* need more input */ - int offset = (int) ((yy_c_buf_p) - (yytext_ptr)); - ++(yy_c_buf_p); - - switch ( yy_get_next_buffer( ) ) - { - case EOB_ACT_LAST_MATCH: - /* This happens because yy_g_n_b() - * sees that we've accumulated a - * token and flags that we need to - * try matching the token before - * proceeding. But for input(), - * there's no matching to consider. - * So convert the EOB_ACT_LAST_MATCH - * to EOB_ACT_END_OF_FILE. - */ - - /* Reset buffer status. */ - yyrestart( yyin ); - - /*FALLTHROUGH*/ - - case EOB_ACT_END_OF_FILE: - { - if ( yywrap( ) ) - return 0; - - if ( ! (yy_did_buffer_switch_on_eof) ) - YY_NEW_FILE; -#ifdef __cplusplus - return yyinput(); -#else - return input(); -#endif - } - - case EOB_ACT_CONTINUE_SCAN: - (yy_c_buf_p) = (yytext_ptr) + offset; - break; - } - } - } - - c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */ - *(yy_c_buf_p) = '\0'; /* preserve yytext */ - (yy_hold_char) = *++(yy_c_buf_p); - - return c; -} -#endif /* ifndef YY_NO_INPUT */ - -/** Immediately switch to a different input stream. - * @param input_file A readable stream. - * - * @note This function does not reset the start condition to @c INITIAL . - */ - void yyrestart (FILE * input_file ) -{ - - if ( ! YY_CURRENT_BUFFER ){ - yyensure_buffer_stack (); - YY_CURRENT_BUFFER_LVALUE = - yy_create_buffer( yyin, YY_BUF_SIZE ); - } - - yy_init_buffer( YY_CURRENT_BUFFER, input_file ); - yy_load_buffer_state( ); -} - -/** Switch to a different input buffer. - * @param new_buffer The new input buffer. - * - */ - void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ) -{ - - /* TODO. We should be able to replace this entire function body - * with - * yypop_buffer_state(); - * yypush_buffer_state(new_buffer); - */ - yyensure_buffer_stack (); - if ( YY_CURRENT_BUFFER == new_buffer ) - return; - - if ( YY_CURRENT_BUFFER ) - { - /* Flush out information for old buffer. */ - *(yy_c_buf_p) = (yy_hold_char); - YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); - YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); - } - - YY_CURRENT_BUFFER_LVALUE = new_buffer; - yy_load_buffer_state( ); - - /* We don't actually know whether we did this switch during - * EOF (yywrap()) processing, but the only time this flag - * is looked at is after yywrap() is called, so it's safe - * to go ahead and always set it. - */ - (yy_did_buffer_switch_on_eof) = 1; -} - -static void yy_load_buffer_state (void) -{ - (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; - (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos; - yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file; - (yy_hold_char) = *(yy_c_buf_p); -} - -/** Allocate and initialize an input buffer state. - * @param file A readable stream. - * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE. - * - * @return the allocated buffer state. - */ - YY_BUFFER_STATE yy_create_buffer (FILE * file, int size ) -{ - YY_BUFFER_STATE b; - - b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) ); - if ( ! b ) - YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); - - b->yy_buf_size = size; - - /* yy_ch_buf has to be 2 characters longer than the size given because - * we need to put in 2 end-of-buffer characters. - */ - b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) ); - if ( ! b->yy_ch_buf ) - YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); - - b->yy_is_our_buffer = 1; - - yy_init_buffer( b, file ); - - return b; -} - -/** Destroy the buffer. - * @param b a buffer created with yy_create_buffer() - * - */ - void yy_delete_buffer (YY_BUFFER_STATE b ) -{ - - if ( ! b ) - return; - - if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */ - YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0; - - if ( b->yy_is_our_buffer ) - yyfree( (void *) b->yy_ch_buf ); - - yyfree( (void *) b ); -} - -/* Initializes or reinitializes a buffer. - * This function is sometimes called more than once on the same buffer, - * such as during a yyrestart() or at EOF. - */ - static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file ) - -{ - int oerrno = errno; - - yy_flush_buffer( b ); - - b->yy_input_file = file; - b->yy_fill_buffer = 1; - - /* If b is the current buffer, then yy_init_buffer was _probably_ - * called from yyrestart() or through yy_get_next_buffer. - * In that case, we don't want to reset the lineno or column. - */ - if (b != YY_CURRENT_BUFFER){ - b->yy_bs_lineno = 1; - b->yy_bs_column = 0; - } - - b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0; - - errno = oerrno; -} - -/** Discard all buffered characters. On the next scan, YY_INPUT will be called. - * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER. - * - */ - void yy_flush_buffer (YY_BUFFER_STATE b ) -{ - if ( ! b ) - return; - - b->yy_n_chars = 0; - - /* We always need two end-of-buffer characters. The first causes - * a transition to the end-of-buffer state. The second causes - * a jam in that state. - */ - b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR; - b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR; - - b->yy_buf_pos = &b->yy_ch_buf[0]; - - b->yy_at_bol = 1; - b->yy_buffer_status = YY_BUFFER_NEW; - - if ( b == YY_CURRENT_BUFFER ) - yy_load_buffer_state( ); -} - -/** Pushes the new state onto the stack. The new state becomes - * the current state. This function will allocate the stack - * if necessary. - * @param new_buffer The new state. - * - */ -void yypush_buffer_state (YY_BUFFER_STATE new_buffer ) -{ - if (new_buffer == NULL) - return; - - yyensure_buffer_stack(); - - /* This block is copied from yy_switch_to_buffer. */ - if ( YY_CURRENT_BUFFER ) - { - /* Flush out information for old buffer. */ - *(yy_c_buf_p) = (yy_hold_char); - YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); - YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); - } - - /* Only push if top exists. Otherwise, replace top. */ - if (YY_CURRENT_BUFFER) - (yy_buffer_stack_top)++; - YY_CURRENT_BUFFER_LVALUE = new_buffer; - - /* copied from yy_switch_to_buffer. */ - yy_load_buffer_state( ); - (yy_did_buffer_switch_on_eof) = 1; -} - -/** Removes and deletes the top of the stack, if present. - * The next element becomes the new top. - * - */ -void yypop_buffer_state (void) -{ - if (!YY_CURRENT_BUFFER) - return; - - yy_delete_buffer(YY_CURRENT_BUFFER ); - YY_CURRENT_BUFFER_LVALUE = NULL; - if ((yy_buffer_stack_top) > 0) - --(yy_buffer_stack_top); - - if (YY_CURRENT_BUFFER) { - yy_load_buffer_state( ); - (yy_did_buffer_switch_on_eof) = 1; - } -} - -/* Allocates the stack if it does not exist. - * Guarantees space for at least one push. - */ -static void yyensure_buffer_stack (void) -{ - yy_size_t num_to_alloc; - - if (!(yy_buffer_stack)) { - - /* First allocation is just for 2 elements, since we don't know if this - * scanner will even need a stack. We use 2 instead of 1 to avoid an - * immediate realloc on the next call. - */ - num_to_alloc = 1; /* After all that talk, this was set to 1 anyways... */ - (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc - (num_to_alloc * sizeof(struct yy_buffer_state*) - ); - if ( ! (yy_buffer_stack) ) - YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" ); - - memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*)); - - (yy_buffer_stack_max) = num_to_alloc; - (yy_buffer_stack_top) = 0; - return; - } - - if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){ - - /* Increase the buffer to prepare for a possible push. */ - yy_size_t grow_size = 8 /* arbitrary grow size */; - - num_to_alloc = (yy_buffer_stack_max) + grow_size; - (yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc - ((yy_buffer_stack), - num_to_alloc * sizeof(struct yy_buffer_state*) - ); - if ( ! (yy_buffer_stack) ) - YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" ); - - /* zero only the new slots.*/ - memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*)); - (yy_buffer_stack_max) = num_to_alloc; - } -} - -/** Setup the input buffer state to scan directly from a user-specified character buffer. - * @param base the character buffer - * @param size the size in bytes of the character buffer - * - * @return the newly allocated buffer state object. - */ -YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size ) -{ - YY_BUFFER_STATE b; - - if ( size < 2 || - base[size-2] != YY_END_OF_BUFFER_CHAR || - base[size-1] != YY_END_OF_BUFFER_CHAR ) - /* They forgot to leave room for the EOB's. */ - return NULL; - - b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) ); - if ( ! b ) - YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" ); - - b->yy_buf_size = (int) (size - 2); /* "- 2" to take care of EOB's */ - b->yy_buf_pos = b->yy_ch_buf = base; - b->yy_is_our_buffer = 0; - b->yy_input_file = NULL; - b->yy_n_chars = b->yy_buf_size; - b->yy_is_interactive = 0; - b->yy_at_bol = 1; - b->yy_fill_buffer = 0; - b->yy_buffer_status = YY_BUFFER_NEW; - - yy_switch_to_buffer( b ); - - return b; -} - -/** Setup the input buffer state to scan a string. The next call to yylex() will - * scan from a @e copy of @a str. - * @param yystr a NUL-terminated string to scan - * - * @return the newly allocated buffer state object. - * @note If you want to scan bytes that may contain NUL values, then use - * yy_scan_bytes() instead. - */ -YY_BUFFER_STATE yy_scan_string (const char * yystr ) -{ - - return yy_scan_bytes( yystr, (int) strlen(yystr) ); -} - -/** Setup the input buffer state to scan the given bytes. The next call to yylex() will - * scan from a @e copy of @a bytes. - * @param yybytes the byte buffer to scan - * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes. - * - * @return the newly allocated buffer state object. - */ -YY_BUFFER_STATE yy_scan_bytes (const char * yybytes, int _yybytes_len ) -{ - YY_BUFFER_STATE b; - char *buf; - yy_size_t n; - int i; - - /* Get memory for full buffer, including space for trailing EOB's. */ - n = (yy_size_t) (_yybytes_len + 2); - buf = (char *) yyalloc( n ); - if ( ! buf ) - YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" ); - - for ( i = 0; i < _yybytes_len; ++i ) - buf[i] = yybytes[i]; - - buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR; - - b = yy_scan_buffer( buf, n ); - if ( ! b ) - YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" ); - - /* It's okay to grow etc. this buffer, and we should throw it - * away when we're done. - */ - b->yy_is_our_buffer = 1; - - return b; -} - -#ifndef YY_EXIT_FAILURE -#define YY_EXIT_FAILURE 2 -#endif - -static void yynoreturn yy_fatal_error (const char* msg ) -{ - fprintf( stderr, "%s\n", msg ); - exit( YY_EXIT_FAILURE ); -} - -/* Redefine yyless() so it works in section 3 code. */ - -#undef yyless -#define yyless(n) \ - do \ - { \ - /* Undo effects of setting up yytext. */ \ - int yyless_macro_arg = (n); \ - YY_LESS_LINENO(yyless_macro_arg);\ - yytext[yyleng] = (yy_hold_char); \ - (yy_c_buf_p) = yytext + yyless_macro_arg; \ - (yy_hold_char) = *(yy_c_buf_p); \ - *(yy_c_buf_p) = '\0'; \ - yyleng = yyless_macro_arg; \ - } \ - while ( 0 ) - -/* Accessor methods (get/set functions) to struct members. */ - -/** Get the current line number. - * - */ -int yyget_lineno (void) -{ - - return yylineno; -} - -/** Get the input stream. - * - */ -FILE *yyget_in (void) -{ - return yyin; -} - -/** Get the output stream. - * - */ -FILE *yyget_out (void) -{ - return yyout; -} - -/** Get the length of the current token. - * - */ -int yyget_leng (void) -{ - return yyleng; -} - -/** Get the current token. - * - */ - -char *yyget_text (void) -{ - return yytext; -} - -/** Set the current line number. - * @param _line_number line number - * - */ -void yyset_lineno (int _line_number ) -{ - - yylineno = _line_number; -} - -/** Set the input stream. This does not discard the current - * input buffer. - * @param _in_str A readable stream. - * - * @see yy_switch_to_buffer - */ -void yyset_in (FILE * _in_str ) -{ - yyin = _in_str ; -} - -void yyset_out (FILE * _out_str ) -{ - yyout = _out_str ; -} - -int yyget_debug (void) -{ - return yy_flex_debug; -} - -void yyset_debug (int _bdebug ) -{ - yy_flex_debug = _bdebug ; -} - -static int yy_init_globals (void) -{ - /* Initialization is the same as for the non-reentrant scanner. - * This function is called from yylex_destroy(), so don't allocate here. - */ - - (yy_buffer_stack) = NULL; - (yy_buffer_stack_top) = 0; - (yy_buffer_stack_max) = 0; - (yy_c_buf_p) = NULL; - (yy_init) = 0; - (yy_start) = 0; - -/* Defined in main.c */ -#ifdef YY_STDINIT - yyin = stdin; - yyout = stdout; -#else - yyin = NULL; - yyout = NULL; -#endif - - /* For future reference: Set errno on error, since we are called by - * yylex_init() - */ - return 0; -} - -/* yylex_destroy is for both reentrant and non-reentrant scanners. */ -int yylex_destroy (void) -{ - - /* Pop the buffer stack, destroying each element. */ - while(YY_CURRENT_BUFFER){ - yy_delete_buffer( YY_CURRENT_BUFFER ); - YY_CURRENT_BUFFER_LVALUE = NULL; - yypop_buffer_state(); - } - - /* Destroy the stack itself. */ - yyfree((yy_buffer_stack) ); - (yy_buffer_stack) = NULL; - - /* Reset the globals. This is important in a non-reentrant scanner so the next time - * yylex() is called, initialization will occur. */ - yy_init_globals( ); - - return 0; -} - -/* - * Internal utility routines. - */ - -#ifndef yytext_ptr -static void yy_flex_strncpy (char* s1, const char * s2, int n ) -{ - - int i; - for ( i = 0; i < n; ++i ) - s1[i] = s2[i]; -} -#endif - -#ifdef YY_NEED_STRLEN -static int yy_flex_strlen (const char * s ) -{ - int n; - for ( n = 0; s[n]; ++n ) - ; - - return n; -} -#endif - -void *yyalloc (yy_size_t size ) -{ - return malloc(size); -} - -void *yyrealloc (void * ptr, yy_size_t size ) -{ - - /* The cast to (char *) in the following accommodates both - * implementations that use char* generic pointers, and those - * that use void* generic pointers. It works with the latter - * because both ANSI C and C++ allow castless assignment from - * any pointer type to void*, and deal with argument conversions - * as though doing an assignment. - */ - return realloc(ptr, size); -} - -void yyfree (void * ptr ) -{ - free( (char *) ptr ); /* see yyrealloc() for (char *) cast */ -} - -#define YYTABLES_NAME "yytables" - -#line 703 "./util/configlexer.lex" - - diff --git a/util/configlexer.lex b/util/configlexer.lex index 7e39f1c92..31b69779d 100644 --- a/util/configlexer.lex +++ b/util/configlexer.lex @@ -209,9 +209,9 @@ SQANY [^\'\n\r\\]|\\. %x quotedstring singlequotedstr include include_quoted val include_toplevel include_toplevel_quoted %% -{SPACE}* { +{SPACE}* { LEXOUT(("SP ")); /* ignore */ } -{SPACE}*{COMMENT}.* { +{SPACE}*{COMMENT}.* { /* note that flex makes the longest match and '.' is any but not nl */ LEXOUT(("comment(%s) ", yytext)); /* ignore */ } server{COLON} { YDVAR(0, VAR_SERVER) } @@ -414,7 +414,7 @@ val-log-level{COLON} { YDVAR(1, VAR_VAL_LOG_LEVEL) } key-cache-size{COLON} { YDVAR(1, VAR_KEY_CACHE_SIZE) } key-cache-slabs{COLON} { YDVAR(1, VAR_KEY_CACHE_SLABS) } neg-cache-size{COLON} { YDVAR(1, VAR_NEG_CACHE_SIZE) } -val-nsec3-keysize-iterations{COLON} { +val-nsec3-keysize-iterations{COLON} { YDVAR(1, VAR_VAL_NSEC3_KEYSIZE_ITERATIONS) } zonemd-permissive-mode{COLON} { YDVAR(1, VAR_ZONEMD_PERMISSIVE_MODE) } zonemd-check{COLON} { YDVAR(1, VAR_ZONEMD_CHECK) } @@ -579,7 +579,7 @@ proxy-protocol-port{COLON} { YDVAR(1, VAR_PROXY_PROTOCOL_PORT) } else { BEGIN(val); } } {DQANY}* { LEXOUT(("STR(%s) ", yytext)); yymore(); } -{NEWLINE} { yyerror("newline inside quoted string, no end \""); +{NEWLINE} { yyerror("newline inside quoted string, no end \""); cfg_parser->line++; BEGIN(INITIAL); } \" { LEXOUT(("QE ")); @@ -600,7 +600,7 @@ proxy-protocol-port{COLON} { YDVAR(1, VAR_PROXY_PROTOCOL_PORT) } else { BEGIN(val); } } {SQANY}* { LEXOUT(("STR(%s) ", yytext)); yymore(); } -{NEWLINE} { yyerror("newline inside quoted string, no end '"); +{NEWLINE} { yyerror("newline inside quoted string, no end '"); cfg_parser->line++; BEGIN(INITIAL); } \' { LEXOUT(("SQE ")); @@ -614,7 +614,7 @@ proxy-protocol-port{COLON} { YDVAR(1, VAR_PROXY_PROTOCOL_PORT) } } /* include: directive */ -include{COLON} { +include{COLON} { LEXOUT(("v(%s) ", yytext)); inc_prev = YYSTATE; BEGIN(include); } <> { yyerror("EOF inside include directive"); @@ -633,7 +633,7 @@ proxy-protocol-port{COLON} { YDVAR(1, VAR_PROXY_PROTOCOL_PORT) } BEGIN(inc_prev); } {DQANY}* { LEXOUT(("ISTR(%s) ", yytext)); yymore(); } -{NEWLINE} { yyerror("newline before \" in include name"); +{NEWLINE} { yyerror("newline before \" in include name"); cfg_parser->line++; BEGIN(inc_prev); } \" { LEXOUT(("IQE ")); @@ -688,7 +688,7 @@ proxy-protocol-port{COLON} { YDVAR(1, VAR_PROXY_PROTOCOL_PORT) } return (VAR_FORCE_TOPLEVEL); } -{UNQUOTEDLETTER}* { LEXOUT(("unquotedstr(%s) ", yytext)); +{UNQUOTEDLETTER}* { LEXOUT(("unquotedstr(%s) ", yytext)); if(--num_args == 0) { BEGIN(INITIAL); } yylval.str = strdup(yytext); return STRING_ARG; } diff --git a/util/configparser.c b/util/configparser.c deleted file mode 100644 index 59be1405f..000000000 --- a/util/configparser.c +++ /dev/null @@ -1,7479 +0,0 @@ -/* A Bison parser, made by GNU Bison 3.8.2. */ - -/* Bison implementation for Yacc-like parsers in C - - Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2021 Free Software Foundation, - Inc. - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . */ - -/* As a special exception, you may create a larger work that contains - part or all of the Bison parser skeleton and distribute that work - under terms of your choice, so long as that work isn't itself a - parser generator using the skeleton or a modified version thereof - as a parser skeleton. Alternatively, if you modify or redistribute - the parser skeleton itself, you may (at your option) remove this - special exception, which will cause the skeleton and the resulting - Bison output files to be licensed under the GNU General Public - License without this special exception. - - This special exception was added by the Free Software Foundation in - version 2.2 of Bison. */ - -/* C LALR(1) parser skeleton written by Richard Stallman, by - simplifying the original so-called "semantic" parser. */ - -/* DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual, - especially those whose name start with YY_ or yy_. They are - private implementation details that can be changed or removed. */ - -/* All symbols defined below should begin with yy or YY, to avoid - infringing on user name space. This should be done even for local - variables, as they might otherwise be expanded by user macros. - There are some unavoidable exceptions within include files to - define necessary library symbols; they are noted "INFRINGES ON - USER NAME SPACE" below. */ - -/* Identify Bison output, and Bison version. */ -#define YYBISON 30802 - -/* Bison version string. */ -#define YYBISON_VERSION "3.8.2" - -/* Skeleton name. */ -#define YYSKELETON_NAME "yacc.c" - -/* Pure parsers. */ -#define YYPURE 0 - -/* Push parsers. */ -#define YYPUSH 0 - -/* Pull parsers. */ -#define YYPULL 1 - - - - -/* First part of user prologue. */ -#line 38 "./util/configparser.y" - -#include "config.h" - -#include -#include -#include -#include -#include - -#include "util/configyyrename.h" -#include "util/config_file.h" -#include "util/net_help.h" - -int ub_c_lex(void); -void ub_c_error(const char *message); - -static void validate_respip_action(const char* action); -static void validate_acl_action(const char* action); - -/* these need to be global, otherwise they cannot be used inside yacc */ -extern struct config_parser_state* cfg_parser; - -#if 0 -#define OUTYY(s) printf s /* used ONLY when debugging */ -#else -#define OUTYY(s) -#endif - - -#line 101 "util/configparser.c" - -# ifndef YY_CAST -# ifdef __cplusplus -# define YY_CAST(Type, Val) static_cast (Val) -# define YY_REINTERPRET_CAST(Type, Val) reinterpret_cast (Val) -# else -# define YY_CAST(Type, Val) ((Type) (Val)) -# define YY_REINTERPRET_CAST(Type, Val) ((Type) (Val)) -# endif -# endif -# ifndef YY_NULLPTR -# if defined __cplusplus -# if 201103L <= __cplusplus -# define YY_NULLPTR nullptr -# else -# define YY_NULLPTR 0 -# endif -# else -# define YY_NULLPTR ((void*)0) -# endif -# endif - -#include "configparser.h" -/* Symbol kind. */ -enum yysymbol_kind_t -{ - YYSYMBOL_YYEMPTY = -2, - YYSYMBOL_YYEOF = 0, /* "end of file" */ - YYSYMBOL_YYerror = 1, /* error */ - YYSYMBOL_YYUNDEF = 2, /* "invalid token" */ - YYSYMBOL_SPACE = 3, /* SPACE */ - YYSYMBOL_LETTER = 4, /* LETTER */ - YYSYMBOL_NEWLINE = 5, /* NEWLINE */ - YYSYMBOL_COMMENT = 6, /* COMMENT */ - YYSYMBOL_COLON = 7, /* COLON */ - YYSYMBOL_ANY = 8, /* ANY */ - YYSYMBOL_ZONESTR = 9, /* ZONESTR */ - YYSYMBOL_STRING_ARG = 10, /* STRING_ARG */ - YYSYMBOL_VAR_FORCE_TOPLEVEL = 11, /* VAR_FORCE_TOPLEVEL */ - YYSYMBOL_VAR_SERVER = 12, /* VAR_SERVER */ - YYSYMBOL_VAR_VERBOSITY = 13, /* VAR_VERBOSITY */ - YYSYMBOL_VAR_NUM_THREADS = 14, /* VAR_NUM_THREADS */ - YYSYMBOL_VAR_PORT = 15, /* VAR_PORT */ - YYSYMBOL_VAR_OUTGOING_RANGE = 16, /* VAR_OUTGOING_RANGE */ - YYSYMBOL_VAR_INTERFACE = 17, /* VAR_INTERFACE */ - YYSYMBOL_VAR_PREFER_IP4 = 18, /* VAR_PREFER_IP4 */ - YYSYMBOL_VAR_DO_IP4 = 19, /* VAR_DO_IP4 */ - YYSYMBOL_VAR_DO_IP6 = 20, /* VAR_DO_IP6 */ - YYSYMBOL_VAR_PREFER_IP6 = 21, /* VAR_PREFER_IP6 */ - YYSYMBOL_VAR_DO_UDP = 22, /* VAR_DO_UDP */ - YYSYMBOL_VAR_DO_TCP = 23, /* VAR_DO_TCP */ - YYSYMBOL_VAR_TCP_MSS = 24, /* VAR_TCP_MSS */ - YYSYMBOL_VAR_OUTGOING_TCP_MSS = 25, /* VAR_OUTGOING_TCP_MSS */ - YYSYMBOL_VAR_TCP_IDLE_TIMEOUT = 26, /* VAR_TCP_IDLE_TIMEOUT */ - YYSYMBOL_VAR_EDNS_TCP_KEEPALIVE = 27, /* VAR_EDNS_TCP_KEEPALIVE */ - YYSYMBOL_VAR_EDNS_TCP_KEEPALIVE_TIMEOUT = 28, /* VAR_EDNS_TCP_KEEPALIVE_TIMEOUT */ - YYSYMBOL_VAR_CHROOT = 29, /* VAR_CHROOT */ - YYSYMBOL_VAR_USERNAME = 30, /* VAR_USERNAME */ - YYSYMBOL_VAR_DIRECTORY = 31, /* VAR_DIRECTORY */ - YYSYMBOL_VAR_LOGFILE = 32, /* VAR_LOGFILE */ - YYSYMBOL_VAR_PIDFILE = 33, /* VAR_PIDFILE */ - YYSYMBOL_VAR_MSG_CACHE_SIZE = 34, /* VAR_MSG_CACHE_SIZE */ - YYSYMBOL_VAR_MSG_CACHE_SLABS = 35, /* VAR_MSG_CACHE_SLABS */ - YYSYMBOL_VAR_NUM_QUERIES_PER_THREAD = 36, /* VAR_NUM_QUERIES_PER_THREAD */ - YYSYMBOL_VAR_RRSET_CACHE_SIZE = 37, /* VAR_RRSET_CACHE_SIZE */ - YYSYMBOL_VAR_RRSET_CACHE_SLABS = 38, /* VAR_RRSET_CACHE_SLABS */ - YYSYMBOL_VAR_OUTGOING_NUM_TCP = 39, /* VAR_OUTGOING_NUM_TCP */ - YYSYMBOL_VAR_INFRA_HOST_TTL = 40, /* VAR_INFRA_HOST_TTL */ - YYSYMBOL_VAR_INFRA_LAME_TTL = 41, /* VAR_INFRA_LAME_TTL */ - YYSYMBOL_VAR_INFRA_CACHE_SLABS = 42, /* VAR_INFRA_CACHE_SLABS */ - YYSYMBOL_VAR_INFRA_CACHE_NUMHOSTS = 43, /* VAR_INFRA_CACHE_NUMHOSTS */ - YYSYMBOL_VAR_INFRA_CACHE_LAME_SIZE = 44, /* VAR_INFRA_CACHE_LAME_SIZE */ - YYSYMBOL_VAR_NAME = 45, /* VAR_NAME */ - YYSYMBOL_VAR_STUB_ZONE = 46, /* VAR_STUB_ZONE */ - YYSYMBOL_VAR_STUB_HOST = 47, /* VAR_STUB_HOST */ - YYSYMBOL_VAR_STUB_ADDR = 48, /* VAR_STUB_ADDR */ - YYSYMBOL_VAR_TARGET_FETCH_POLICY = 49, /* VAR_TARGET_FETCH_POLICY */ - YYSYMBOL_VAR_HARDEN_SHORT_BUFSIZE = 50, /* VAR_HARDEN_SHORT_BUFSIZE */ - YYSYMBOL_VAR_HARDEN_LARGE_QUERIES = 51, /* VAR_HARDEN_LARGE_QUERIES */ - YYSYMBOL_VAR_FORWARD_ZONE = 52, /* VAR_FORWARD_ZONE */ - YYSYMBOL_VAR_FORWARD_HOST = 53, /* VAR_FORWARD_HOST */ - YYSYMBOL_VAR_FORWARD_ADDR = 54, /* VAR_FORWARD_ADDR */ - YYSYMBOL_VAR_DO_NOT_QUERY_ADDRESS = 55, /* VAR_DO_NOT_QUERY_ADDRESS */ - YYSYMBOL_VAR_HIDE_IDENTITY = 56, /* VAR_HIDE_IDENTITY */ - YYSYMBOL_VAR_HIDE_VERSION = 57, /* VAR_HIDE_VERSION */ - YYSYMBOL_VAR_IDENTITY = 58, /* VAR_IDENTITY */ - YYSYMBOL_VAR_VERSION = 59, /* VAR_VERSION */ - YYSYMBOL_VAR_HARDEN_GLUE = 60, /* VAR_HARDEN_GLUE */ - YYSYMBOL_VAR_MODULE_CONF = 61, /* VAR_MODULE_CONF */ - YYSYMBOL_VAR_TRUST_ANCHOR_FILE = 62, /* VAR_TRUST_ANCHOR_FILE */ - YYSYMBOL_VAR_TRUST_ANCHOR = 63, /* VAR_TRUST_ANCHOR */ - YYSYMBOL_VAR_VAL_OVERRIDE_DATE = 64, /* VAR_VAL_OVERRIDE_DATE */ - YYSYMBOL_VAR_BOGUS_TTL = 65, /* VAR_BOGUS_TTL */ - YYSYMBOL_VAR_VAL_CLEAN_ADDITIONAL = 66, /* VAR_VAL_CLEAN_ADDITIONAL */ - YYSYMBOL_VAR_VAL_PERMISSIVE_MODE = 67, /* VAR_VAL_PERMISSIVE_MODE */ - YYSYMBOL_VAR_INCOMING_NUM_TCP = 68, /* VAR_INCOMING_NUM_TCP */ - YYSYMBOL_VAR_MSG_BUFFER_SIZE = 69, /* VAR_MSG_BUFFER_SIZE */ - YYSYMBOL_VAR_KEY_CACHE_SIZE = 70, /* VAR_KEY_CACHE_SIZE */ - YYSYMBOL_VAR_KEY_CACHE_SLABS = 71, /* VAR_KEY_CACHE_SLABS */ - YYSYMBOL_VAR_TRUSTED_KEYS_FILE = 72, /* VAR_TRUSTED_KEYS_FILE */ - YYSYMBOL_VAR_VAL_NSEC3_KEYSIZE_ITERATIONS = 73, /* VAR_VAL_NSEC3_KEYSIZE_ITERATIONS */ - YYSYMBOL_VAR_USE_SYSLOG = 74, /* VAR_USE_SYSLOG */ - YYSYMBOL_VAR_OUTGOING_INTERFACE = 75, /* VAR_OUTGOING_INTERFACE */ - YYSYMBOL_VAR_ROOT_HINTS = 76, /* VAR_ROOT_HINTS */ - YYSYMBOL_VAR_DO_NOT_QUERY_LOCALHOST = 77, /* VAR_DO_NOT_QUERY_LOCALHOST */ - YYSYMBOL_VAR_CACHE_MAX_TTL = 78, /* VAR_CACHE_MAX_TTL */ - YYSYMBOL_VAR_HARDEN_DNSSEC_STRIPPED = 79, /* VAR_HARDEN_DNSSEC_STRIPPED */ - YYSYMBOL_VAR_ACCESS_CONTROL = 80, /* VAR_ACCESS_CONTROL */ - YYSYMBOL_VAR_LOCAL_ZONE = 81, /* VAR_LOCAL_ZONE */ - YYSYMBOL_VAR_LOCAL_DATA = 82, /* VAR_LOCAL_DATA */ - YYSYMBOL_VAR_INTERFACE_AUTOMATIC = 83, /* VAR_INTERFACE_AUTOMATIC */ - YYSYMBOL_VAR_STATISTICS_INTERVAL = 84, /* VAR_STATISTICS_INTERVAL */ - YYSYMBOL_VAR_DO_DAEMONIZE = 85, /* VAR_DO_DAEMONIZE */ - YYSYMBOL_VAR_USE_CAPS_FOR_ID = 86, /* VAR_USE_CAPS_FOR_ID */ - YYSYMBOL_VAR_STATISTICS_CUMULATIVE = 87, /* VAR_STATISTICS_CUMULATIVE */ - YYSYMBOL_VAR_OUTGOING_PORT_PERMIT = 88, /* VAR_OUTGOING_PORT_PERMIT */ - YYSYMBOL_VAR_OUTGOING_PORT_AVOID = 89, /* VAR_OUTGOING_PORT_AVOID */ - YYSYMBOL_VAR_DLV_ANCHOR_FILE = 90, /* VAR_DLV_ANCHOR_FILE */ - YYSYMBOL_VAR_DLV_ANCHOR = 91, /* VAR_DLV_ANCHOR */ - YYSYMBOL_VAR_NEG_CACHE_SIZE = 92, /* VAR_NEG_CACHE_SIZE */ - YYSYMBOL_VAR_HARDEN_REFERRAL_PATH = 93, /* VAR_HARDEN_REFERRAL_PATH */ - YYSYMBOL_VAR_PRIVATE_ADDRESS = 94, /* VAR_PRIVATE_ADDRESS */ - YYSYMBOL_VAR_PRIVATE_DOMAIN = 95, /* VAR_PRIVATE_DOMAIN */ - YYSYMBOL_VAR_REMOTE_CONTROL = 96, /* VAR_REMOTE_CONTROL */ - YYSYMBOL_VAR_CONTROL_ENABLE = 97, /* VAR_CONTROL_ENABLE */ - YYSYMBOL_VAR_CONTROL_INTERFACE = 98, /* VAR_CONTROL_INTERFACE */ - YYSYMBOL_VAR_CONTROL_PORT = 99, /* VAR_CONTROL_PORT */ - YYSYMBOL_VAR_SERVER_KEY_FILE = 100, /* VAR_SERVER_KEY_FILE */ - YYSYMBOL_VAR_SERVER_CERT_FILE = 101, /* VAR_SERVER_CERT_FILE */ - YYSYMBOL_VAR_CONTROL_KEY_FILE = 102, /* VAR_CONTROL_KEY_FILE */ - YYSYMBOL_VAR_CONTROL_CERT_FILE = 103, /* VAR_CONTROL_CERT_FILE */ - YYSYMBOL_VAR_CONTROL_USE_CERT = 104, /* VAR_CONTROL_USE_CERT */ - YYSYMBOL_VAR_TCP_REUSE_TIMEOUT = 105, /* VAR_TCP_REUSE_TIMEOUT */ - YYSYMBOL_VAR_MAX_REUSE_TCP_QUERIES = 106, /* VAR_MAX_REUSE_TCP_QUERIES */ - YYSYMBOL_VAR_EXTENDED_STATISTICS = 107, /* VAR_EXTENDED_STATISTICS */ - YYSYMBOL_VAR_LOCAL_DATA_PTR = 108, /* VAR_LOCAL_DATA_PTR */ - YYSYMBOL_VAR_JOSTLE_TIMEOUT = 109, /* VAR_JOSTLE_TIMEOUT */ - YYSYMBOL_VAR_STUB_PRIME = 110, /* VAR_STUB_PRIME */ - YYSYMBOL_VAR_UNWANTED_REPLY_THRESHOLD = 111, /* VAR_UNWANTED_REPLY_THRESHOLD */ - YYSYMBOL_VAR_LOG_TIME_ASCII = 112, /* VAR_LOG_TIME_ASCII */ - YYSYMBOL_VAR_DOMAIN_INSECURE = 113, /* VAR_DOMAIN_INSECURE */ - YYSYMBOL_VAR_PYTHON = 114, /* VAR_PYTHON */ - YYSYMBOL_VAR_PYTHON_SCRIPT = 115, /* VAR_PYTHON_SCRIPT */ - YYSYMBOL_VAR_VAL_SIG_SKEW_MIN = 116, /* VAR_VAL_SIG_SKEW_MIN */ - YYSYMBOL_VAR_VAL_SIG_SKEW_MAX = 117, /* VAR_VAL_SIG_SKEW_MAX */ - YYSYMBOL_VAR_VAL_MAX_RESTART = 118, /* VAR_VAL_MAX_RESTART */ - YYSYMBOL_VAR_CACHE_MIN_TTL = 119, /* VAR_CACHE_MIN_TTL */ - YYSYMBOL_VAR_VAL_LOG_LEVEL = 120, /* VAR_VAL_LOG_LEVEL */ - YYSYMBOL_VAR_AUTO_TRUST_ANCHOR_FILE = 121, /* VAR_AUTO_TRUST_ANCHOR_FILE */ - YYSYMBOL_VAR_KEEP_MISSING = 122, /* VAR_KEEP_MISSING */ - YYSYMBOL_VAR_ADD_HOLDDOWN = 123, /* VAR_ADD_HOLDDOWN */ - YYSYMBOL_VAR_DEL_HOLDDOWN = 124, /* VAR_DEL_HOLDDOWN */ - YYSYMBOL_VAR_SO_RCVBUF = 125, /* VAR_SO_RCVBUF */ - YYSYMBOL_VAR_EDNS_BUFFER_SIZE = 126, /* VAR_EDNS_BUFFER_SIZE */ - YYSYMBOL_VAR_PREFETCH = 127, /* VAR_PREFETCH */ - YYSYMBOL_VAR_PREFETCH_KEY = 128, /* VAR_PREFETCH_KEY */ - YYSYMBOL_VAR_SO_SNDBUF = 129, /* VAR_SO_SNDBUF */ - YYSYMBOL_VAR_SO_REUSEPORT = 130, /* VAR_SO_REUSEPORT */ - YYSYMBOL_VAR_HARDEN_BELOW_NXDOMAIN = 131, /* VAR_HARDEN_BELOW_NXDOMAIN */ - YYSYMBOL_VAR_IGNORE_CD_FLAG = 132, /* VAR_IGNORE_CD_FLAG */ - YYSYMBOL_VAR_LOG_QUERIES = 133, /* VAR_LOG_QUERIES */ - YYSYMBOL_VAR_LOG_REPLIES = 134, /* VAR_LOG_REPLIES */ - YYSYMBOL_VAR_LOG_LOCAL_ACTIONS = 135, /* VAR_LOG_LOCAL_ACTIONS */ - YYSYMBOL_VAR_TCP_UPSTREAM = 136, /* VAR_TCP_UPSTREAM */ - YYSYMBOL_VAR_SSL_UPSTREAM = 137, /* VAR_SSL_UPSTREAM */ - YYSYMBOL_VAR_TCP_AUTH_QUERY_TIMEOUT = 138, /* VAR_TCP_AUTH_QUERY_TIMEOUT */ - YYSYMBOL_VAR_SSL_SERVICE_KEY = 139, /* VAR_SSL_SERVICE_KEY */ - YYSYMBOL_VAR_SSL_SERVICE_PEM = 140, /* VAR_SSL_SERVICE_PEM */ - YYSYMBOL_VAR_SSL_PORT = 141, /* VAR_SSL_PORT */ - YYSYMBOL_VAR_FORWARD_FIRST = 142, /* VAR_FORWARD_FIRST */ - YYSYMBOL_VAR_STUB_SSL_UPSTREAM = 143, /* VAR_STUB_SSL_UPSTREAM */ - YYSYMBOL_VAR_FORWARD_SSL_UPSTREAM = 144, /* VAR_FORWARD_SSL_UPSTREAM */ - YYSYMBOL_VAR_TLS_CERT_BUNDLE = 145, /* VAR_TLS_CERT_BUNDLE */ - YYSYMBOL_VAR_STUB_TCP_UPSTREAM = 146, /* VAR_STUB_TCP_UPSTREAM */ - YYSYMBOL_VAR_FORWARD_TCP_UPSTREAM = 147, /* VAR_FORWARD_TCP_UPSTREAM */ - YYSYMBOL_VAR_HTTPS_PORT = 148, /* VAR_HTTPS_PORT */ - YYSYMBOL_VAR_HTTP_ENDPOINT = 149, /* VAR_HTTP_ENDPOINT */ - YYSYMBOL_VAR_HTTP_MAX_STREAMS = 150, /* VAR_HTTP_MAX_STREAMS */ - YYSYMBOL_VAR_HTTP_QUERY_BUFFER_SIZE = 151, /* VAR_HTTP_QUERY_BUFFER_SIZE */ - YYSYMBOL_VAR_HTTP_RESPONSE_BUFFER_SIZE = 152, /* VAR_HTTP_RESPONSE_BUFFER_SIZE */ - YYSYMBOL_VAR_HTTP_NODELAY = 153, /* VAR_HTTP_NODELAY */ - YYSYMBOL_VAR_HTTP_NOTLS_DOWNSTREAM = 154, /* VAR_HTTP_NOTLS_DOWNSTREAM */ - YYSYMBOL_VAR_STUB_FIRST = 155, /* VAR_STUB_FIRST */ - YYSYMBOL_VAR_MINIMAL_RESPONSES = 156, /* VAR_MINIMAL_RESPONSES */ - YYSYMBOL_VAR_RRSET_ROUNDROBIN = 157, /* VAR_RRSET_ROUNDROBIN */ - YYSYMBOL_VAR_MAX_UDP_SIZE = 158, /* VAR_MAX_UDP_SIZE */ - YYSYMBOL_VAR_DELAY_CLOSE = 159, /* VAR_DELAY_CLOSE */ - YYSYMBOL_VAR_UDP_CONNECT = 160, /* VAR_UDP_CONNECT */ - YYSYMBOL_VAR_UNBLOCK_LAN_ZONES = 161, /* VAR_UNBLOCK_LAN_ZONES */ - YYSYMBOL_VAR_INSECURE_LAN_ZONES = 162, /* VAR_INSECURE_LAN_ZONES */ - YYSYMBOL_VAR_INFRA_CACHE_MIN_RTT = 163, /* VAR_INFRA_CACHE_MIN_RTT */ - YYSYMBOL_VAR_INFRA_CACHE_MAX_RTT = 164, /* VAR_INFRA_CACHE_MAX_RTT */ - YYSYMBOL_VAR_INFRA_KEEP_PROBING = 165, /* VAR_INFRA_KEEP_PROBING */ - YYSYMBOL_VAR_DNS64_PREFIX = 166, /* VAR_DNS64_PREFIX */ - YYSYMBOL_VAR_DNS64_SYNTHALL = 167, /* VAR_DNS64_SYNTHALL */ - YYSYMBOL_VAR_DNS64_IGNORE_AAAA = 168, /* VAR_DNS64_IGNORE_AAAA */ - YYSYMBOL_VAR_DNSTAP = 169, /* VAR_DNSTAP */ - YYSYMBOL_VAR_DNSTAP_ENABLE = 170, /* VAR_DNSTAP_ENABLE */ - YYSYMBOL_VAR_DNSTAP_SOCKET_PATH = 171, /* VAR_DNSTAP_SOCKET_PATH */ - YYSYMBOL_VAR_DNSTAP_IP = 172, /* VAR_DNSTAP_IP */ - YYSYMBOL_VAR_DNSTAP_TLS = 173, /* VAR_DNSTAP_TLS */ - YYSYMBOL_VAR_DNSTAP_TLS_SERVER_NAME = 174, /* VAR_DNSTAP_TLS_SERVER_NAME */ - YYSYMBOL_VAR_DNSTAP_TLS_CERT_BUNDLE = 175, /* VAR_DNSTAP_TLS_CERT_BUNDLE */ - YYSYMBOL_VAR_DNSTAP_TLS_CLIENT_KEY_FILE = 176, /* VAR_DNSTAP_TLS_CLIENT_KEY_FILE */ - YYSYMBOL_VAR_DNSTAP_TLS_CLIENT_CERT_FILE = 177, /* VAR_DNSTAP_TLS_CLIENT_CERT_FILE */ - YYSYMBOL_VAR_DNSTAP_SEND_IDENTITY = 178, /* VAR_DNSTAP_SEND_IDENTITY */ - YYSYMBOL_VAR_DNSTAP_SEND_VERSION = 179, /* VAR_DNSTAP_SEND_VERSION */ - YYSYMBOL_VAR_DNSTAP_BIDIRECTIONAL = 180, /* VAR_DNSTAP_BIDIRECTIONAL */ - YYSYMBOL_VAR_DNSTAP_IDENTITY = 181, /* VAR_DNSTAP_IDENTITY */ - YYSYMBOL_VAR_DNSTAP_VERSION = 182, /* VAR_DNSTAP_VERSION */ - YYSYMBOL_VAR_DNSTAP_LOG_RESOLVER_QUERY_MESSAGES = 183, /* VAR_DNSTAP_LOG_RESOLVER_QUERY_MESSAGES */ - YYSYMBOL_VAR_DNSTAP_LOG_RESOLVER_RESPONSE_MESSAGES = 184, /* VAR_DNSTAP_LOG_RESOLVER_RESPONSE_MESSAGES */ - YYSYMBOL_VAR_DNSTAP_LOG_CLIENT_QUERY_MESSAGES = 185, /* VAR_DNSTAP_LOG_CLIENT_QUERY_MESSAGES */ - YYSYMBOL_VAR_DNSTAP_LOG_CLIENT_RESPONSE_MESSAGES = 186, /* VAR_DNSTAP_LOG_CLIENT_RESPONSE_MESSAGES */ - YYSYMBOL_VAR_DNSTAP_LOG_FORWARDER_QUERY_MESSAGES = 187, /* VAR_DNSTAP_LOG_FORWARDER_QUERY_MESSAGES */ - YYSYMBOL_VAR_DNSTAP_LOG_FORWARDER_RESPONSE_MESSAGES = 188, /* VAR_DNSTAP_LOG_FORWARDER_RESPONSE_MESSAGES */ - YYSYMBOL_VAR_RESPONSE_IP_TAG = 189, /* VAR_RESPONSE_IP_TAG */ - YYSYMBOL_VAR_RESPONSE_IP = 190, /* VAR_RESPONSE_IP */ - YYSYMBOL_VAR_RESPONSE_IP_DATA = 191, /* VAR_RESPONSE_IP_DATA */ - YYSYMBOL_VAR_HARDEN_ALGO_DOWNGRADE = 192, /* VAR_HARDEN_ALGO_DOWNGRADE */ - YYSYMBOL_VAR_IP_TRANSPARENT = 193, /* VAR_IP_TRANSPARENT */ - YYSYMBOL_VAR_IP_DSCP = 194, /* VAR_IP_DSCP */ - YYSYMBOL_VAR_DISABLE_DNSSEC_LAME_CHECK = 195, /* VAR_DISABLE_DNSSEC_LAME_CHECK */ - YYSYMBOL_VAR_IP_RATELIMIT = 196, /* VAR_IP_RATELIMIT */ - YYSYMBOL_VAR_IP_RATELIMIT_SLABS = 197, /* VAR_IP_RATELIMIT_SLABS */ - YYSYMBOL_VAR_IP_RATELIMIT_SIZE = 198, /* VAR_IP_RATELIMIT_SIZE */ - YYSYMBOL_VAR_RATELIMIT = 199, /* VAR_RATELIMIT */ - YYSYMBOL_VAR_RATELIMIT_SLABS = 200, /* VAR_RATELIMIT_SLABS */ - YYSYMBOL_VAR_RATELIMIT_SIZE = 201, /* VAR_RATELIMIT_SIZE */ - YYSYMBOL_VAR_OUTBOUND_MSG_RETRY = 202, /* VAR_OUTBOUND_MSG_RETRY */ - YYSYMBOL_VAR_MAX_SENT_COUNT = 203, /* VAR_MAX_SENT_COUNT */ - YYSYMBOL_VAR_MAX_QUERY_RESTARTS = 204, /* VAR_MAX_QUERY_RESTARTS */ - YYSYMBOL_VAR_RATELIMIT_FOR_DOMAIN = 205, /* VAR_RATELIMIT_FOR_DOMAIN */ - YYSYMBOL_VAR_RATELIMIT_BELOW_DOMAIN = 206, /* VAR_RATELIMIT_BELOW_DOMAIN */ - YYSYMBOL_VAR_IP_RATELIMIT_FACTOR = 207, /* VAR_IP_RATELIMIT_FACTOR */ - YYSYMBOL_VAR_RATELIMIT_FACTOR = 208, /* VAR_RATELIMIT_FACTOR */ - YYSYMBOL_VAR_IP_RATELIMIT_BACKOFF = 209, /* VAR_IP_RATELIMIT_BACKOFF */ - YYSYMBOL_VAR_RATELIMIT_BACKOFF = 210, /* VAR_RATELIMIT_BACKOFF */ - YYSYMBOL_VAR_SEND_CLIENT_SUBNET = 211, /* VAR_SEND_CLIENT_SUBNET */ - YYSYMBOL_VAR_CLIENT_SUBNET_ZONE = 212, /* VAR_CLIENT_SUBNET_ZONE */ - YYSYMBOL_VAR_CLIENT_SUBNET_ALWAYS_FORWARD = 213, /* VAR_CLIENT_SUBNET_ALWAYS_FORWARD */ - YYSYMBOL_VAR_CLIENT_SUBNET_OPCODE = 214, /* VAR_CLIENT_SUBNET_OPCODE */ - YYSYMBOL_VAR_MAX_CLIENT_SUBNET_IPV4 = 215, /* VAR_MAX_CLIENT_SUBNET_IPV4 */ - YYSYMBOL_VAR_MAX_CLIENT_SUBNET_IPV6 = 216, /* VAR_MAX_CLIENT_SUBNET_IPV6 */ - YYSYMBOL_VAR_MIN_CLIENT_SUBNET_IPV4 = 217, /* VAR_MIN_CLIENT_SUBNET_IPV4 */ - YYSYMBOL_VAR_MIN_CLIENT_SUBNET_IPV6 = 218, /* VAR_MIN_CLIENT_SUBNET_IPV6 */ - YYSYMBOL_VAR_MAX_ECS_TREE_SIZE_IPV4 = 219, /* VAR_MAX_ECS_TREE_SIZE_IPV4 */ - YYSYMBOL_VAR_MAX_ECS_TREE_SIZE_IPV6 = 220, /* VAR_MAX_ECS_TREE_SIZE_IPV6 */ - YYSYMBOL_VAR_CAPS_WHITELIST = 221, /* VAR_CAPS_WHITELIST */ - YYSYMBOL_VAR_CACHE_MAX_NEGATIVE_TTL = 222, /* VAR_CACHE_MAX_NEGATIVE_TTL */ - YYSYMBOL_VAR_PERMIT_SMALL_HOLDDOWN = 223, /* VAR_PERMIT_SMALL_HOLDDOWN */ - YYSYMBOL_VAR_QNAME_MINIMISATION = 224, /* VAR_QNAME_MINIMISATION */ - YYSYMBOL_VAR_QNAME_MINIMISATION_STRICT = 225, /* VAR_QNAME_MINIMISATION_STRICT */ - YYSYMBOL_VAR_IP_FREEBIND = 226, /* VAR_IP_FREEBIND */ - YYSYMBOL_VAR_DEFINE_TAG = 227, /* VAR_DEFINE_TAG */ - YYSYMBOL_VAR_LOCAL_ZONE_TAG = 228, /* VAR_LOCAL_ZONE_TAG */ - YYSYMBOL_VAR_ACCESS_CONTROL_TAG = 229, /* VAR_ACCESS_CONTROL_TAG */ - YYSYMBOL_VAR_LOCAL_ZONE_OVERRIDE = 230, /* VAR_LOCAL_ZONE_OVERRIDE */ - YYSYMBOL_VAR_ACCESS_CONTROL_TAG_ACTION = 231, /* VAR_ACCESS_CONTROL_TAG_ACTION */ - YYSYMBOL_VAR_ACCESS_CONTROL_TAG_DATA = 232, /* VAR_ACCESS_CONTROL_TAG_DATA */ - YYSYMBOL_VAR_VIEW = 233, /* VAR_VIEW */ - YYSYMBOL_VAR_ACCESS_CONTROL_VIEW = 234, /* VAR_ACCESS_CONTROL_VIEW */ - YYSYMBOL_VAR_VIEW_FIRST = 235, /* VAR_VIEW_FIRST */ - YYSYMBOL_VAR_SERVE_EXPIRED = 236, /* VAR_SERVE_EXPIRED */ - YYSYMBOL_VAR_SERVE_EXPIRED_TTL = 237, /* VAR_SERVE_EXPIRED_TTL */ - YYSYMBOL_VAR_SERVE_EXPIRED_TTL_RESET = 238, /* VAR_SERVE_EXPIRED_TTL_RESET */ - YYSYMBOL_VAR_SERVE_EXPIRED_REPLY_TTL = 239, /* VAR_SERVE_EXPIRED_REPLY_TTL */ - YYSYMBOL_VAR_SERVE_EXPIRED_CLIENT_TIMEOUT = 240, /* VAR_SERVE_EXPIRED_CLIENT_TIMEOUT */ - YYSYMBOL_VAR_EDE_SERVE_EXPIRED = 241, /* VAR_EDE_SERVE_EXPIRED */ - YYSYMBOL_VAR_SERVE_ORIGINAL_TTL = 242, /* VAR_SERVE_ORIGINAL_TTL */ - YYSYMBOL_VAR_FAKE_DSA = 243, /* VAR_FAKE_DSA */ - YYSYMBOL_VAR_FAKE_SHA1 = 244, /* VAR_FAKE_SHA1 */ - YYSYMBOL_VAR_LOG_IDENTITY = 245, /* VAR_LOG_IDENTITY */ - YYSYMBOL_VAR_HIDE_TRUSTANCHOR = 246, /* VAR_HIDE_TRUSTANCHOR */ - YYSYMBOL_VAR_HIDE_HTTP_USER_AGENT = 247, /* VAR_HIDE_HTTP_USER_AGENT */ - YYSYMBOL_VAR_HTTP_USER_AGENT = 248, /* VAR_HTTP_USER_AGENT */ - YYSYMBOL_VAR_TRUST_ANCHOR_SIGNALING = 249, /* VAR_TRUST_ANCHOR_SIGNALING */ - YYSYMBOL_VAR_AGGRESSIVE_NSEC = 250, /* VAR_AGGRESSIVE_NSEC */ - YYSYMBOL_VAR_USE_SYSTEMD = 251, /* VAR_USE_SYSTEMD */ - YYSYMBOL_VAR_SHM_ENABLE = 252, /* VAR_SHM_ENABLE */ - YYSYMBOL_VAR_SHM_KEY = 253, /* VAR_SHM_KEY */ - YYSYMBOL_VAR_ROOT_KEY_SENTINEL = 254, /* VAR_ROOT_KEY_SENTINEL */ - YYSYMBOL_VAR_DNSCRYPT = 255, /* VAR_DNSCRYPT */ - YYSYMBOL_VAR_DNSCRYPT_ENABLE = 256, /* VAR_DNSCRYPT_ENABLE */ - YYSYMBOL_VAR_DNSCRYPT_PORT = 257, /* VAR_DNSCRYPT_PORT */ - YYSYMBOL_VAR_DNSCRYPT_PROVIDER = 258, /* VAR_DNSCRYPT_PROVIDER */ - YYSYMBOL_VAR_DNSCRYPT_SECRET_KEY = 259, /* VAR_DNSCRYPT_SECRET_KEY */ - YYSYMBOL_VAR_DNSCRYPT_PROVIDER_CERT = 260, /* VAR_DNSCRYPT_PROVIDER_CERT */ - YYSYMBOL_VAR_DNSCRYPT_PROVIDER_CERT_ROTATED = 261, /* VAR_DNSCRYPT_PROVIDER_CERT_ROTATED */ - YYSYMBOL_VAR_DNSCRYPT_SHARED_SECRET_CACHE_SIZE = 262, /* VAR_DNSCRYPT_SHARED_SECRET_CACHE_SIZE */ - YYSYMBOL_VAR_DNSCRYPT_SHARED_SECRET_CACHE_SLABS = 263, /* VAR_DNSCRYPT_SHARED_SECRET_CACHE_SLABS */ - YYSYMBOL_VAR_DNSCRYPT_NONCE_CACHE_SIZE = 264, /* VAR_DNSCRYPT_NONCE_CACHE_SIZE */ - YYSYMBOL_VAR_DNSCRYPT_NONCE_CACHE_SLABS = 265, /* VAR_DNSCRYPT_NONCE_CACHE_SLABS */ - YYSYMBOL_VAR_PAD_RESPONSES = 266, /* VAR_PAD_RESPONSES */ - YYSYMBOL_VAR_PAD_RESPONSES_BLOCK_SIZE = 267, /* VAR_PAD_RESPONSES_BLOCK_SIZE */ - YYSYMBOL_VAR_PAD_QUERIES = 268, /* VAR_PAD_QUERIES */ - YYSYMBOL_VAR_PAD_QUERIES_BLOCK_SIZE = 269, /* VAR_PAD_QUERIES_BLOCK_SIZE */ - YYSYMBOL_VAR_IPSECMOD_ENABLED = 270, /* VAR_IPSECMOD_ENABLED */ - YYSYMBOL_VAR_IPSECMOD_HOOK = 271, /* VAR_IPSECMOD_HOOK */ - YYSYMBOL_VAR_IPSECMOD_IGNORE_BOGUS = 272, /* VAR_IPSECMOD_IGNORE_BOGUS */ - YYSYMBOL_VAR_IPSECMOD_MAX_TTL = 273, /* VAR_IPSECMOD_MAX_TTL */ - YYSYMBOL_VAR_IPSECMOD_WHITELIST = 274, /* VAR_IPSECMOD_WHITELIST */ - YYSYMBOL_VAR_IPSECMOD_STRICT = 275, /* VAR_IPSECMOD_STRICT */ - YYSYMBOL_VAR_CACHEDB = 276, /* VAR_CACHEDB */ - YYSYMBOL_VAR_CACHEDB_BACKEND = 277, /* VAR_CACHEDB_BACKEND */ - YYSYMBOL_VAR_CACHEDB_SECRETSEED = 278, /* VAR_CACHEDB_SECRETSEED */ - YYSYMBOL_VAR_CACHEDB_REDISHOST = 279, /* VAR_CACHEDB_REDISHOST */ - YYSYMBOL_VAR_CACHEDB_REDISPORT = 280, /* VAR_CACHEDB_REDISPORT */ - YYSYMBOL_VAR_CACHEDB_REDISTIMEOUT = 281, /* VAR_CACHEDB_REDISTIMEOUT */ - YYSYMBOL_VAR_CACHEDB_REDISEXPIRERECORDS = 282, /* VAR_CACHEDB_REDISEXPIRERECORDS */ - YYSYMBOL_VAR_CACHEDB_REDISPATH = 283, /* VAR_CACHEDB_REDISPATH */ - YYSYMBOL_VAR_CACHEDB_REDISPASSWORD = 284, /* VAR_CACHEDB_REDISPASSWORD */ - YYSYMBOL_VAR_UDP_UPSTREAM_WITHOUT_DOWNSTREAM = 285, /* VAR_UDP_UPSTREAM_WITHOUT_DOWNSTREAM */ - YYSYMBOL_VAR_FOR_UPSTREAM = 286, /* VAR_FOR_UPSTREAM */ - YYSYMBOL_VAR_AUTH_ZONE = 287, /* VAR_AUTH_ZONE */ - YYSYMBOL_VAR_ZONEFILE = 288, /* VAR_ZONEFILE */ - YYSYMBOL_VAR_MASTER = 289, /* VAR_MASTER */ - YYSYMBOL_VAR_URL = 290, /* VAR_URL */ - YYSYMBOL_VAR_FOR_DOWNSTREAM = 291, /* VAR_FOR_DOWNSTREAM */ - YYSYMBOL_VAR_FALLBACK_ENABLED = 292, /* VAR_FALLBACK_ENABLED */ - YYSYMBOL_VAR_TLS_ADDITIONAL_PORT = 293, /* VAR_TLS_ADDITIONAL_PORT */ - YYSYMBOL_VAR_LOW_RTT = 294, /* VAR_LOW_RTT */ - YYSYMBOL_VAR_LOW_RTT_PERMIL = 295, /* VAR_LOW_RTT_PERMIL */ - YYSYMBOL_VAR_FAST_SERVER_PERMIL = 296, /* VAR_FAST_SERVER_PERMIL */ - YYSYMBOL_VAR_FAST_SERVER_NUM = 297, /* VAR_FAST_SERVER_NUM */ - YYSYMBOL_VAR_ALLOW_NOTIFY = 298, /* VAR_ALLOW_NOTIFY */ - YYSYMBOL_VAR_TLS_WIN_CERT = 299, /* VAR_TLS_WIN_CERT */ - YYSYMBOL_VAR_TCP_CONNECTION_LIMIT = 300, /* VAR_TCP_CONNECTION_LIMIT */ - YYSYMBOL_VAR_FORWARD_NO_CACHE = 301, /* VAR_FORWARD_NO_CACHE */ - YYSYMBOL_VAR_STUB_NO_CACHE = 302, /* VAR_STUB_NO_CACHE */ - YYSYMBOL_VAR_LOG_SERVFAIL = 303, /* VAR_LOG_SERVFAIL */ - YYSYMBOL_VAR_DENY_ANY = 304, /* VAR_DENY_ANY */ - YYSYMBOL_VAR_UNKNOWN_SERVER_TIME_LIMIT = 305, /* VAR_UNKNOWN_SERVER_TIME_LIMIT */ - YYSYMBOL_VAR_LOG_TAG_QUERYREPLY = 306, /* VAR_LOG_TAG_QUERYREPLY */ - YYSYMBOL_VAR_STREAM_WAIT_SIZE = 307, /* VAR_STREAM_WAIT_SIZE */ - YYSYMBOL_VAR_TLS_CIPHERS = 308, /* VAR_TLS_CIPHERS */ - YYSYMBOL_VAR_TLS_CIPHERSUITES = 309, /* VAR_TLS_CIPHERSUITES */ - YYSYMBOL_VAR_TLS_USE_SNI = 310, /* VAR_TLS_USE_SNI */ - YYSYMBOL_VAR_IPSET = 311, /* VAR_IPSET */ - YYSYMBOL_VAR_IPSET_NAME_V4 = 312, /* VAR_IPSET_NAME_V4 */ - YYSYMBOL_VAR_IPSET_NAME_V6 = 313, /* VAR_IPSET_NAME_V6 */ - YYSYMBOL_VAR_TLS_SESSION_TICKET_KEYS = 314, /* VAR_TLS_SESSION_TICKET_KEYS */ - YYSYMBOL_VAR_RPZ = 315, /* VAR_RPZ */ - YYSYMBOL_VAR_TAGS = 316, /* VAR_TAGS */ - YYSYMBOL_VAR_RPZ_ACTION_OVERRIDE = 317, /* VAR_RPZ_ACTION_OVERRIDE */ - YYSYMBOL_VAR_RPZ_CNAME_OVERRIDE = 318, /* VAR_RPZ_CNAME_OVERRIDE */ - YYSYMBOL_VAR_RPZ_LOG = 319, /* VAR_RPZ_LOG */ - YYSYMBOL_VAR_RPZ_LOG_NAME = 320, /* VAR_RPZ_LOG_NAME */ - YYSYMBOL_VAR_DYNLIB = 321, /* VAR_DYNLIB */ - YYSYMBOL_VAR_DYNLIB_FILE = 322, /* VAR_DYNLIB_FILE */ - YYSYMBOL_VAR_EDNS_CLIENT_STRING = 323, /* VAR_EDNS_CLIENT_STRING */ - YYSYMBOL_VAR_EDNS_CLIENT_STRING_OPCODE = 324, /* VAR_EDNS_CLIENT_STRING_OPCODE */ - YYSYMBOL_VAR_NSID = 325, /* VAR_NSID */ - YYSYMBOL_VAR_ZONEMD_PERMISSIVE_MODE = 326, /* VAR_ZONEMD_PERMISSIVE_MODE */ - YYSYMBOL_VAR_ZONEMD_CHECK = 327, /* VAR_ZONEMD_CHECK */ - YYSYMBOL_VAR_ZONEMD_REJECT_ABSENCE = 328, /* VAR_ZONEMD_REJECT_ABSENCE */ - YYSYMBOL_VAR_RPZ_SIGNAL_NXDOMAIN_RA = 329, /* VAR_RPZ_SIGNAL_NXDOMAIN_RA */ - YYSYMBOL_VAR_INTERFACE_AUTOMATIC_PORTS = 330, /* VAR_INTERFACE_AUTOMATIC_PORTS */ - YYSYMBOL_VAR_EDE = 331, /* VAR_EDE */ - YYSYMBOL_VAR_INTERFACE_ACTION = 332, /* VAR_INTERFACE_ACTION */ - YYSYMBOL_VAR_INTERFACE_VIEW = 333, /* VAR_INTERFACE_VIEW */ - YYSYMBOL_VAR_INTERFACE_TAG = 334, /* VAR_INTERFACE_TAG */ - YYSYMBOL_VAR_INTERFACE_TAG_ACTION = 335, /* VAR_INTERFACE_TAG_ACTION */ - YYSYMBOL_VAR_INTERFACE_TAG_DATA = 336, /* VAR_INTERFACE_TAG_DATA */ - YYSYMBOL_VAR_PROXY_PROTOCOL_PORT = 337, /* VAR_PROXY_PROTOCOL_PORT */ - YYSYMBOL_VAR_STATISTICS_INHIBIT_ZERO = 338, /* VAR_STATISTICS_INHIBIT_ZERO */ - YYSYMBOL_VAR_HARDEN_UNKNOWN_ADDITIONAL = 339, /* VAR_HARDEN_UNKNOWN_ADDITIONAL */ - YYSYMBOL_YYACCEPT = 340, /* $accept */ - YYSYMBOL_toplevelvars = 341, /* toplevelvars */ - YYSYMBOL_toplevelvar = 342, /* toplevelvar */ - YYSYMBOL_force_toplevel = 343, /* force_toplevel */ - YYSYMBOL_serverstart = 344, /* serverstart */ - YYSYMBOL_contents_server = 345, /* contents_server */ - YYSYMBOL_content_server = 346, /* content_server */ - YYSYMBOL_stubstart = 347, /* stubstart */ - YYSYMBOL_contents_stub = 348, /* contents_stub */ - YYSYMBOL_content_stub = 349, /* content_stub */ - YYSYMBOL_forwardstart = 350, /* forwardstart */ - YYSYMBOL_contents_forward = 351, /* contents_forward */ - YYSYMBOL_content_forward = 352, /* content_forward */ - YYSYMBOL_viewstart = 353, /* viewstart */ - YYSYMBOL_contents_view = 354, /* contents_view */ - YYSYMBOL_content_view = 355, /* content_view */ - YYSYMBOL_authstart = 356, /* authstart */ - YYSYMBOL_contents_auth = 357, /* contents_auth */ - YYSYMBOL_content_auth = 358, /* content_auth */ - YYSYMBOL_rpz_tag = 359, /* rpz_tag */ - YYSYMBOL_rpz_action_override = 360, /* rpz_action_override */ - YYSYMBOL_rpz_cname_override = 361, /* rpz_cname_override */ - YYSYMBOL_rpz_log = 362, /* rpz_log */ - YYSYMBOL_rpz_log_name = 363, /* rpz_log_name */ - YYSYMBOL_rpz_signal_nxdomain_ra = 364, /* rpz_signal_nxdomain_ra */ - YYSYMBOL_rpzstart = 365, /* rpzstart */ - YYSYMBOL_contents_rpz = 366, /* contents_rpz */ - YYSYMBOL_content_rpz = 367, /* content_rpz */ - YYSYMBOL_server_num_threads = 368, /* server_num_threads */ - YYSYMBOL_server_verbosity = 369, /* server_verbosity */ - YYSYMBOL_server_statistics_interval = 370, /* server_statistics_interval */ - YYSYMBOL_server_statistics_cumulative = 371, /* server_statistics_cumulative */ - YYSYMBOL_server_extended_statistics = 372, /* server_extended_statistics */ - YYSYMBOL_server_statistics_inhibit_zero = 373, /* server_statistics_inhibit_zero */ - YYSYMBOL_server_shm_enable = 374, /* server_shm_enable */ - YYSYMBOL_server_shm_key = 375, /* server_shm_key */ - YYSYMBOL_server_port = 376, /* server_port */ - YYSYMBOL_server_send_client_subnet = 377, /* server_send_client_subnet */ - YYSYMBOL_server_client_subnet_zone = 378, /* server_client_subnet_zone */ - YYSYMBOL_server_client_subnet_always_forward = 379, /* server_client_subnet_always_forward */ - YYSYMBOL_server_client_subnet_opcode = 380, /* server_client_subnet_opcode */ - YYSYMBOL_server_max_client_subnet_ipv4 = 381, /* server_max_client_subnet_ipv4 */ - YYSYMBOL_server_max_client_subnet_ipv6 = 382, /* server_max_client_subnet_ipv6 */ - YYSYMBOL_server_min_client_subnet_ipv4 = 383, /* server_min_client_subnet_ipv4 */ - YYSYMBOL_server_min_client_subnet_ipv6 = 384, /* server_min_client_subnet_ipv6 */ - YYSYMBOL_server_max_ecs_tree_size_ipv4 = 385, /* server_max_ecs_tree_size_ipv4 */ - YYSYMBOL_server_max_ecs_tree_size_ipv6 = 386, /* server_max_ecs_tree_size_ipv6 */ - YYSYMBOL_server_interface = 387, /* server_interface */ - YYSYMBOL_server_outgoing_interface = 388, /* server_outgoing_interface */ - YYSYMBOL_server_outgoing_range = 389, /* server_outgoing_range */ - YYSYMBOL_server_outgoing_port_permit = 390, /* server_outgoing_port_permit */ - YYSYMBOL_server_outgoing_port_avoid = 391, /* server_outgoing_port_avoid */ - YYSYMBOL_server_outgoing_num_tcp = 392, /* server_outgoing_num_tcp */ - YYSYMBOL_server_incoming_num_tcp = 393, /* server_incoming_num_tcp */ - YYSYMBOL_server_interface_automatic = 394, /* server_interface_automatic */ - YYSYMBOL_server_interface_automatic_ports = 395, /* server_interface_automatic_ports */ - YYSYMBOL_server_do_ip4 = 396, /* server_do_ip4 */ - YYSYMBOL_server_do_ip6 = 397, /* server_do_ip6 */ - YYSYMBOL_server_do_udp = 398, /* server_do_udp */ - YYSYMBOL_server_do_tcp = 399, /* server_do_tcp */ - YYSYMBOL_server_prefer_ip4 = 400, /* server_prefer_ip4 */ - YYSYMBOL_server_prefer_ip6 = 401, /* server_prefer_ip6 */ - YYSYMBOL_server_tcp_mss = 402, /* server_tcp_mss */ - YYSYMBOL_server_outgoing_tcp_mss = 403, /* server_outgoing_tcp_mss */ - YYSYMBOL_server_tcp_idle_timeout = 404, /* server_tcp_idle_timeout */ - YYSYMBOL_server_max_reuse_tcp_queries = 405, /* server_max_reuse_tcp_queries */ - YYSYMBOL_server_tcp_reuse_timeout = 406, /* server_tcp_reuse_timeout */ - YYSYMBOL_server_tcp_auth_query_timeout = 407, /* server_tcp_auth_query_timeout */ - YYSYMBOL_server_tcp_keepalive = 408, /* server_tcp_keepalive */ - YYSYMBOL_server_tcp_keepalive_timeout = 409, /* server_tcp_keepalive_timeout */ - YYSYMBOL_server_tcp_upstream = 410, /* server_tcp_upstream */ - YYSYMBOL_server_udp_upstream_without_downstream = 411, /* server_udp_upstream_without_downstream */ - YYSYMBOL_server_ssl_upstream = 412, /* server_ssl_upstream */ - YYSYMBOL_server_ssl_service_key = 413, /* server_ssl_service_key */ - YYSYMBOL_server_ssl_service_pem = 414, /* server_ssl_service_pem */ - YYSYMBOL_server_ssl_port = 415, /* server_ssl_port */ - YYSYMBOL_server_tls_cert_bundle = 416, /* server_tls_cert_bundle */ - YYSYMBOL_server_tls_win_cert = 417, /* server_tls_win_cert */ - YYSYMBOL_server_tls_additional_port = 418, /* server_tls_additional_port */ - YYSYMBOL_server_tls_ciphers = 419, /* server_tls_ciphers */ - YYSYMBOL_server_tls_ciphersuites = 420, /* server_tls_ciphersuites */ - YYSYMBOL_server_tls_session_ticket_keys = 421, /* server_tls_session_ticket_keys */ - YYSYMBOL_server_tls_use_sni = 422, /* server_tls_use_sni */ - YYSYMBOL_server_https_port = 423, /* server_https_port */ - YYSYMBOL_server_http_endpoint = 424, /* server_http_endpoint */ - YYSYMBOL_server_http_max_streams = 425, /* server_http_max_streams */ - YYSYMBOL_server_http_query_buffer_size = 426, /* server_http_query_buffer_size */ - YYSYMBOL_server_http_response_buffer_size = 427, /* server_http_response_buffer_size */ - YYSYMBOL_server_http_nodelay = 428, /* server_http_nodelay */ - YYSYMBOL_server_http_notls_downstream = 429, /* server_http_notls_downstream */ - YYSYMBOL_server_use_systemd = 430, /* server_use_systemd */ - YYSYMBOL_server_do_daemonize = 431, /* server_do_daemonize */ - YYSYMBOL_server_use_syslog = 432, /* server_use_syslog */ - YYSYMBOL_server_log_time_ascii = 433, /* server_log_time_ascii */ - YYSYMBOL_server_log_queries = 434, /* server_log_queries */ - YYSYMBOL_server_log_replies = 435, /* server_log_replies */ - YYSYMBOL_server_log_tag_queryreply = 436, /* server_log_tag_queryreply */ - YYSYMBOL_server_log_servfail = 437, /* server_log_servfail */ - YYSYMBOL_server_log_local_actions = 438, /* server_log_local_actions */ - YYSYMBOL_server_chroot = 439, /* server_chroot */ - YYSYMBOL_server_username = 440, /* server_username */ - YYSYMBOL_server_directory = 441, /* server_directory */ - YYSYMBOL_server_logfile = 442, /* server_logfile */ - YYSYMBOL_server_pidfile = 443, /* server_pidfile */ - YYSYMBOL_server_root_hints = 444, /* server_root_hints */ - YYSYMBOL_server_dlv_anchor_file = 445, /* server_dlv_anchor_file */ - YYSYMBOL_server_dlv_anchor = 446, /* server_dlv_anchor */ - YYSYMBOL_server_auto_trust_anchor_file = 447, /* server_auto_trust_anchor_file */ - YYSYMBOL_server_trust_anchor_file = 448, /* server_trust_anchor_file */ - YYSYMBOL_server_trusted_keys_file = 449, /* server_trusted_keys_file */ - YYSYMBOL_server_trust_anchor = 450, /* server_trust_anchor */ - YYSYMBOL_server_trust_anchor_signaling = 451, /* server_trust_anchor_signaling */ - YYSYMBOL_server_root_key_sentinel = 452, /* server_root_key_sentinel */ - YYSYMBOL_server_domain_insecure = 453, /* server_domain_insecure */ - YYSYMBOL_server_hide_identity = 454, /* server_hide_identity */ - YYSYMBOL_server_hide_version = 455, /* server_hide_version */ - YYSYMBOL_server_hide_trustanchor = 456, /* server_hide_trustanchor */ - YYSYMBOL_server_hide_http_user_agent = 457, /* server_hide_http_user_agent */ - YYSYMBOL_server_identity = 458, /* server_identity */ - YYSYMBOL_server_version = 459, /* server_version */ - YYSYMBOL_server_http_user_agent = 460, /* server_http_user_agent */ - YYSYMBOL_server_nsid = 461, /* server_nsid */ - YYSYMBOL_server_so_rcvbuf = 462, /* server_so_rcvbuf */ - YYSYMBOL_server_so_sndbuf = 463, /* server_so_sndbuf */ - YYSYMBOL_server_so_reuseport = 464, /* server_so_reuseport */ - YYSYMBOL_server_ip_transparent = 465, /* server_ip_transparent */ - YYSYMBOL_server_ip_freebind = 466, /* server_ip_freebind */ - YYSYMBOL_server_ip_dscp = 467, /* server_ip_dscp */ - YYSYMBOL_server_stream_wait_size = 468, /* server_stream_wait_size */ - YYSYMBOL_server_edns_buffer_size = 469, /* server_edns_buffer_size */ - YYSYMBOL_server_msg_buffer_size = 470, /* server_msg_buffer_size */ - YYSYMBOL_server_msg_cache_size = 471, /* server_msg_cache_size */ - YYSYMBOL_server_msg_cache_slabs = 472, /* server_msg_cache_slabs */ - YYSYMBOL_server_num_queries_per_thread = 473, /* server_num_queries_per_thread */ - YYSYMBOL_server_jostle_timeout = 474, /* server_jostle_timeout */ - YYSYMBOL_server_delay_close = 475, /* server_delay_close */ - YYSYMBOL_server_udp_connect = 476, /* server_udp_connect */ - YYSYMBOL_server_unblock_lan_zones = 477, /* server_unblock_lan_zones */ - YYSYMBOL_server_insecure_lan_zones = 478, /* server_insecure_lan_zones */ - YYSYMBOL_server_rrset_cache_size = 479, /* server_rrset_cache_size */ - YYSYMBOL_server_rrset_cache_slabs = 480, /* server_rrset_cache_slabs */ - YYSYMBOL_server_infra_host_ttl = 481, /* server_infra_host_ttl */ - YYSYMBOL_server_infra_lame_ttl = 482, /* server_infra_lame_ttl */ - YYSYMBOL_server_infra_cache_numhosts = 483, /* server_infra_cache_numhosts */ - YYSYMBOL_server_infra_cache_lame_size = 484, /* server_infra_cache_lame_size */ - YYSYMBOL_server_infra_cache_slabs = 485, /* server_infra_cache_slabs */ - YYSYMBOL_server_infra_cache_min_rtt = 486, /* server_infra_cache_min_rtt */ - YYSYMBOL_server_infra_cache_max_rtt = 487, /* server_infra_cache_max_rtt */ - YYSYMBOL_server_infra_keep_probing = 488, /* server_infra_keep_probing */ - YYSYMBOL_server_target_fetch_policy = 489, /* server_target_fetch_policy */ - YYSYMBOL_server_harden_short_bufsize = 490, /* server_harden_short_bufsize */ - YYSYMBOL_server_harden_large_queries = 491, /* server_harden_large_queries */ - YYSYMBOL_server_harden_glue = 492, /* server_harden_glue */ - YYSYMBOL_server_harden_dnssec_stripped = 493, /* server_harden_dnssec_stripped */ - YYSYMBOL_server_harden_below_nxdomain = 494, /* server_harden_below_nxdomain */ - YYSYMBOL_server_harden_referral_path = 495, /* server_harden_referral_path */ - YYSYMBOL_server_harden_algo_downgrade = 496, /* server_harden_algo_downgrade */ - YYSYMBOL_server_harden_unknown_additional = 497, /* server_harden_unknown_additional */ - YYSYMBOL_server_use_caps_for_id = 498, /* server_use_caps_for_id */ - YYSYMBOL_server_caps_whitelist = 499, /* server_caps_whitelist */ - YYSYMBOL_server_private_address = 500, /* server_private_address */ - YYSYMBOL_server_private_domain = 501, /* server_private_domain */ - YYSYMBOL_server_prefetch = 502, /* server_prefetch */ - YYSYMBOL_server_prefetch_key = 503, /* server_prefetch_key */ - YYSYMBOL_server_deny_any = 504, /* server_deny_any */ - YYSYMBOL_server_unwanted_reply_threshold = 505, /* server_unwanted_reply_threshold */ - YYSYMBOL_server_do_not_query_address = 506, /* server_do_not_query_address */ - YYSYMBOL_server_do_not_query_localhost = 507, /* server_do_not_query_localhost */ - YYSYMBOL_server_access_control = 508, /* server_access_control */ - YYSYMBOL_server_interface_action = 509, /* server_interface_action */ - YYSYMBOL_server_module_conf = 510, /* server_module_conf */ - YYSYMBOL_server_val_override_date = 511, /* server_val_override_date */ - YYSYMBOL_server_val_sig_skew_min = 512, /* server_val_sig_skew_min */ - YYSYMBOL_server_val_sig_skew_max = 513, /* server_val_sig_skew_max */ - YYSYMBOL_server_val_max_restart = 514, /* server_val_max_restart */ - YYSYMBOL_server_cache_max_ttl = 515, /* server_cache_max_ttl */ - YYSYMBOL_server_cache_max_negative_ttl = 516, /* server_cache_max_negative_ttl */ - YYSYMBOL_server_cache_min_ttl = 517, /* server_cache_min_ttl */ - YYSYMBOL_server_bogus_ttl = 518, /* server_bogus_ttl */ - YYSYMBOL_server_val_clean_additional = 519, /* server_val_clean_additional */ - YYSYMBOL_server_val_permissive_mode = 520, /* server_val_permissive_mode */ - YYSYMBOL_server_aggressive_nsec = 521, /* server_aggressive_nsec */ - YYSYMBOL_server_ignore_cd_flag = 522, /* server_ignore_cd_flag */ - YYSYMBOL_server_serve_expired = 523, /* server_serve_expired */ - YYSYMBOL_server_serve_expired_ttl = 524, /* server_serve_expired_ttl */ - YYSYMBOL_server_serve_expired_ttl_reset = 525, /* server_serve_expired_ttl_reset */ - YYSYMBOL_server_serve_expired_reply_ttl = 526, /* server_serve_expired_reply_ttl */ - YYSYMBOL_server_serve_expired_client_timeout = 527, /* server_serve_expired_client_timeout */ - YYSYMBOL_server_ede_serve_expired = 528, /* server_ede_serve_expired */ - YYSYMBOL_server_serve_original_ttl = 529, /* server_serve_original_ttl */ - YYSYMBOL_server_fake_dsa = 530, /* server_fake_dsa */ - YYSYMBOL_server_fake_sha1 = 531, /* server_fake_sha1 */ - YYSYMBOL_server_val_log_level = 532, /* server_val_log_level */ - YYSYMBOL_server_val_nsec3_keysize_iterations = 533, /* server_val_nsec3_keysize_iterations */ - YYSYMBOL_server_zonemd_permissive_mode = 534, /* server_zonemd_permissive_mode */ - YYSYMBOL_server_add_holddown = 535, /* server_add_holddown */ - YYSYMBOL_server_del_holddown = 536, /* server_del_holddown */ - YYSYMBOL_server_keep_missing = 537, /* server_keep_missing */ - YYSYMBOL_server_permit_small_holddown = 538, /* server_permit_small_holddown */ - YYSYMBOL_server_key_cache_size = 539, /* server_key_cache_size */ - YYSYMBOL_server_key_cache_slabs = 540, /* server_key_cache_slabs */ - YYSYMBOL_server_neg_cache_size = 541, /* server_neg_cache_size */ - YYSYMBOL_server_local_zone = 542, /* server_local_zone */ - YYSYMBOL_server_local_data = 543, /* server_local_data */ - YYSYMBOL_server_local_data_ptr = 544, /* server_local_data_ptr */ - YYSYMBOL_server_minimal_responses = 545, /* server_minimal_responses */ - YYSYMBOL_server_rrset_roundrobin = 546, /* server_rrset_roundrobin */ - YYSYMBOL_server_unknown_server_time_limit = 547, /* server_unknown_server_time_limit */ - YYSYMBOL_server_max_udp_size = 548, /* server_max_udp_size */ - YYSYMBOL_server_dns64_prefix = 549, /* server_dns64_prefix */ - YYSYMBOL_server_dns64_synthall = 550, /* server_dns64_synthall */ - YYSYMBOL_server_dns64_ignore_aaaa = 551, /* server_dns64_ignore_aaaa */ - YYSYMBOL_server_define_tag = 552, /* server_define_tag */ - YYSYMBOL_server_local_zone_tag = 553, /* server_local_zone_tag */ - YYSYMBOL_server_access_control_tag = 554, /* server_access_control_tag */ - YYSYMBOL_server_access_control_tag_action = 555, /* server_access_control_tag_action */ - YYSYMBOL_server_access_control_tag_data = 556, /* server_access_control_tag_data */ - YYSYMBOL_server_local_zone_override = 557, /* server_local_zone_override */ - YYSYMBOL_server_access_control_view = 558, /* server_access_control_view */ - YYSYMBOL_server_interface_tag = 559, /* server_interface_tag */ - YYSYMBOL_server_interface_tag_action = 560, /* server_interface_tag_action */ - YYSYMBOL_server_interface_tag_data = 561, /* server_interface_tag_data */ - YYSYMBOL_server_interface_view = 562, /* server_interface_view */ - YYSYMBOL_server_response_ip_tag = 563, /* server_response_ip_tag */ - YYSYMBOL_server_ip_ratelimit = 564, /* server_ip_ratelimit */ - YYSYMBOL_server_ratelimit = 565, /* server_ratelimit */ - YYSYMBOL_server_ip_ratelimit_size = 566, /* server_ip_ratelimit_size */ - YYSYMBOL_server_ratelimit_size = 567, /* server_ratelimit_size */ - YYSYMBOL_server_ip_ratelimit_slabs = 568, /* server_ip_ratelimit_slabs */ - YYSYMBOL_server_ratelimit_slabs = 569, /* server_ratelimit_slabs */ - YYSYMBOL_server_ratelimit_for_domain = 570, /* server_ratelimit_for_domain */ - YYSYMBOL_server_ratelimit_below_domain = 571, /* server_ratelimit_below_domain */ - YYSYMBOL_server_ip_ratelimit_factor = 572, /* server_ip_ratelimit_factor */ - YYSYMBOL_server_ratelimit_factor = 573, /* server_ratelimit_factor */ - YYSYMBOL_server_ip_ratelimit_backoff = 574, /* server_ip_ratelimit_backoff */ - YYSYMBOL_server_ratelimit_backoff = 575, /* server_ratelimit_backoff */ - YYSYMBOL_server_outbound_msg_retry = 576, /* server_outbound_msg_retry */ - YYSYMBOL_server_max_sent_count = 577, /* server_max_sent_count */ - YYSYMBOL_server_max_query_restarts = 578, /* server_max_query_restarts */ - YYSYMBOL_server_low_rtt = 579, /* server_low_rtt */ - YYSYMBOL_server_fast_server_num = 580, /* server_fast_server_num */ - YYSYMBOL_server_fast_server_permil = 581, /* server_fast_server_permil */ - YYSYMBOL_server_qname_minimisation = 582, /* server_qname_minimisation */ - YYSYMBOL_server_qname_minimisation_strict = 583, /* server_qname_minimisation_strict */ - YYSYMBOL_server_pad_responses = 584, /* server_pad_responses */ - YYSYMBOL_server_pad_responses_block_size = 585, /* server_pad_responses_block_size */ - YYSYMBOL_server_pad_queries = 586, /* server_pad_queries */ - YYSYMBOL_server_pad_queries_block_size = 587, /* server_pad_queries_block_size */ - YYSYMBOL_server_ipsecmod_enabled = 588, /* server_ipsecmod_enabled */ - YYSYMBOL_server_ipsecmod_ignore_bogus = 589, /* server_ipsecmod_ignore_bogus */ - YYSYMBOL_server_ipsecmod_hook = 590, /* server_ipsecmod_hook */ - YYSYMBOL_server_ipsecmod_max_ttl = 591, /* server_ipsecmod_max_ttl */ - YYSYMBOL_server_ipsecmod_whitelist = 592, /* server_ipsecmod_whitelist */ - YYSYMBOL_server_ipsecmod_strict = 593, /* server_ipsecmod_strict */ - YYSYMBOL_server_edns_client_string = 594, /* server_edns_client_string */ - YYSYMBOL_server_edns_client_string_opcode = 595, /* server_edns_client_string_opcode */ - YYSYMBOL_server_ede = 596, /* server_ede */ - YYSYMBOL_server_proxy_protocol_port = 597, /* server_proxy_protocol_port */ - YYSYMBOL_stub_name = 598, /* stub_name */ - YYSYMBOL_stub_host = 599, /* stub_host */ - YYSYMBOL_stub_addr = 600, /* stub_addr */ - YYSYMBOL_stub_first = 601, /* stub_first */ - YYSYMBOL_stub_no_cache = 602, /* stub_no_cache */ - YYSYMBOL_stub_ssl_upstream = 603, /* stub_ssl_upstream */ - YYSYMBOL_stub_tcp_upstream = 604, /* stub_tcp_upstream */ - YYSYMBOL_stub_prime = 605, /* stub_prime */ - YYSYMBOL_forward_name = 606, /* forward_name */ - YYSYMBOL_forward_host = 607, /* forward_host */ - YYSYMBOL_forward_addr = 608, /* forward_addr */ - YYSYMBOL_forward_first = 609, /* forward_first */ - YYSYMBOL_forward_no_cache = 610, /* forward_no_cache */ - YYSYMBOL_forward_ssl_upstream = 611, /* forward_ssl_upstream */ - YYSYMBOL_forward_tcp_upstream = 612, /* forward_tcp_upstream */ - YYSYMBOL_auth_name = 613, /* auth_name */ - YYSYMBOL_auth_zonefile = 614, /* auth_zonefile */ - YYSYMBOL_auth_master = 615, /* auth_master */ - YYSYMBOL_auth_url = 616, /* auth_url */ - YYSYMBOL_auth_allow_notify = 617, /* auth_allow_notify */ - YYSYMBOL_auth_zonemd_check = 618, /* auth_zonemd_check */ - YYSYMBOL_auth_zonemd_reject_absence = 619, /* auth_zonemd_reject_absence */ - YYSYMBOL_auth_for_downstream = 620, /* auth_for_downstream */ - YYSYMBOL_auth_for_upstream = 621, /* auth_for_upstream */ - YYSYMBOL_auth_fallback_enabled = 622, /* auth_fallback_enabled */ - YYSYMBOL_view_name = 623, /* view_name */ - YYSYMBOL_view_local_zone = 624, /* view_local_zone */ - YYSYMBOL_view_response_ip = 625, /* view_response_ip */ - YYSYMBOL_view_response_ip_data = 626, /* view_response_ip_data */ - YYSYMBOL_view_local_data = 627, /* view_local_data */ - YYSYMBOL_view_local_data_ptr = 628, /* view_local_data_ptr */ - YYSYMBOL_view_first = 629, /* view_first */ - YYSYMBOL_rcstart = 630, /* rcstart */ - YYSYMBOL_contents_rc = 631, /* contents_rc */ - YYSYMBOL_content_rc = 632, /* content_rc */ - YYSYMBOL_rc_control_enable = 633, /* rc_control_enable */ - YYSYMBOL_rc_control_port = 634, /* rc_control_port */ - YYSYMBOL_rc_control_interface = 635, /* rc_control_interface */ - YYSYMBOL_rc_control_use_cert = 636, /* rc_control_use_cert */ - YYSYMBOL_rc_server_key_file = 637, /* rc_server_key_file */ - YYSYMBOL_rc_server_cert_file = 638, /* rc_server_cert_file */ - YYSYMBOL_rc_control_key_file = 639, /* rc_control_key_file */ - YYSYMBOL_rc_control_cert_file = 640, /* rc_control_cert_file */ - YYSYMBOL_dtstart = 641, /* dtstart */ - YYSYMBOL_contents_dt = 642, /* contents_dt */ - YYSYMBOL_content_dt = 643, /* content_dt */ - YYSYMBOL_dt_dnstap_enable = 644, /* dt_dnstap_enable */ - YYSYMBOL_dt_dnstap_bidirectional = 645, /* dt_dnstap_bidirectional */ - YYSYMBOL_dt_dnstap_socket_path = 646, /* dt_dnstap_socket_path */ - YYSYMBOL_dt_dnstap_ip = 647, /* dt_dnstap_ip */ - YYSYMBOL_dt_dnstap_tls = 648, /* dt_dnstap_tls */ - YYSYMBOL_dt_dnstap_tls_server_name = 649, /* dt_dnstap_tls_server_name */ - YYSYMBOL_dt_dnstap_tls_cert_bundle = 650, /* dt_dnstap_tls_cert_bundle */ - YYSYMBOL_dt_dnstap_tls_client_key_file = 651, /* dt_dnstap_tls_client_key_file */ - YYSYMBOL_dt_dnstap_tls_client_cert_file = 652, /* dt_dnstap_tls_client_cert_file */ - YYSYMBOL_dt_dnstap_send_identity = 653, /* dt_dnstap_send_identity */ - YYSYMBOL_dt_dnstap_send_version = 654, /* dt_dnstap_send_version */ - YYSYMBOL_dt_dnstap_identity = 655, /* dt_dnstap_identity */ - YYSYMBOL_dt_dnstap_version = 656, /* dt_dnstap_version */ - YYSYMBOL_dt_dnstap_log_resolver_query_messages = 657, /* dt_dnstap_log_resolver_query_messages */ - YYSYMBOL_dt_dnstap_log_resolver_response_messages = 658, /* dt_dnstap_log_resolver_response_messages */ - YYSYMBOL_dt_dnstap_log_client_query_messages = 659, /* dt_dnstap_log_client_query_messages */ - YYSYMBOL_dt_dnstap_log_client_response_messages = 660, /* dt_dnstap_log_client_response_messages */ - YYSYMBOL_dt_dnstap_log_forwarder_query_messages = 661, /* dt_dnstap_log_forwarder_query_messages */ - YYSYMBOL_dt_dnstap_log_forwarder_response_messages = 662, /* dt_dnstap_log_forwarder_response_messages */ - YYSYMBOL_pythonstart = 663, /* pythonstart */ - YYSYMBOL_contents_py = 664, /* contents_py */ - YYSYMBOL_content_py = 665, /* content_py */ - YYSYMBOL_py_script = 666, /* py_script */ - YYSYMBOL_dynlibstart = 667, /* dynlibstart */ - YYSYMBOL_contents_dl = 668, /* contents_dl */ - YYSYMBOL_content_dl = 669, /* content_dl */ - YYSYMBOL_dl_file = 670, /* dl_file */ - YYSYMBOL_server_disable_dnssec_lame_check = 671, /* server_disable_dnssec_lame_check */ - YYSYMBOL_server_log_identity = 672, /* server_log_identity */ - YYSYMBOL_server_response_ip = 673, /* server_response_ip */ - YYSYMBOL_server_response_ip_data = 674, /* server_response_ip_data */ - YYSYMBOL_dnscstart = 675, /* dnscstart */ - YYSYMBOL_contents_dnsc = 676, /* contents_dnsc */ - YYSYMBOL_content_dnsc = 677, /* content_dnsc */ - YYSYMBOL_dnsc_dnscrypt_enable = 678, /* dnsc_dnscrypt_enable */ - YYSYMBOL_dnsc_dnscrypt_port = 679, /* dnsc_dnscrypt_port */ - YYSYMBOL_dnsc_dnscrypt_provider = 680, /* dnsc_dnscrypt_provider */ - YYSYMBOL_dnsc_dnscrypt_provider_cert = 681, /* dnsc_dnscrypt_provider_cert */ - YYSYMBOL_dnsc_dnscrypt_provider_cert_rotated = 682, /* dnsc_dnscrypt_provider_cert_rotated */ - YYSYMBOL_dnsc_dnscrypt_secret_key = 683, /* dnsc_dnscrypt_secret_key */ - YYSYMBOL_dnsc_dnscrypt_shared_secret_cache_size = 684, /* dnsc_dnscrypt_shared_secret_cache_size */ - YYSYMBOL_dnsc_dnscrypt_shared_secret_cache_slabs = 685, /* dnsc_dnscrypt_shared_secret_cache_slabs */ - YYSYMBOL_dnsc_dnscrypt_nonce_cache_size = 686, /* dnsc_dnscrypt_nonce_cache_size */ - YYSYMBOL_dnsc_dnscrypt_nonce_cache_slabs = 687, /* dnsc_dnscrypt_nonce_cache_slabs */ - YYSYMBOL_cachedbstart = 688, /* cachedbstart */ - YYSYMBOL_contents_cachedb = 689, /* contents_cachedb */ - YYSYMBOL_content_cachedb = 690, /* content_cachedb */ - YYSYMBOL_cachedb_backend_name = 691, /* cachedb_backend_name */ - YYSYMBOL_cachedb_secret_seed = 692, /* cachedb_secret_seed */ - YYSYMBOL_redis_server_host = 693, /* redis_server_host */ - YYSYMBOL_redis_server_port = 694, /* redis_server_port */ - YYSYMBOL_redis_server_path = 695, /* redis_server_path */ - YYSYMBOL_redis_server_password = 696, /* redis_server_password */ - YYSYMBOL_redis_timeout = 697, /* redis_timeout */ - YYSYMBOL_redis_expire_records = 698, /* redis_expire_records */ - YYSYMBOL_server_tcp_connection_limit = 699, /* server_tcp_connection_limit */ - YYSYMBOL_ipsetstart = 700, /* ipsetstart */ - YYSYMBOL_contents_ipset = 701, /* contents_ipset */ - YYSYMBOL_content_ipset = 702, /* content_ipset */ - YYSYMBOL_ipset_name_v4 = 703, /* ipset_name_v4 */ - YYSYMBOL_ipset_name_v6 = 704 /* ipset_name_v6 */ -}; -typedef enum yysymbol_kind_t yysymbol_kind_t; - - - - -#ifdef short -# undef short -#endif - -/* On compilers that do not define __PTRDIFF_MAX__ etc., make sure - and (if available) are included - so that the code can choose integer types of a good width. */ - -#ifndef __PTRDIFF_MAX__ -# include /* INFRINGES ON USER NAME SPACE */ -# if defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__ -# include /* INFRINGES ON USER NAME SPACE */ -# define YY_STDINT_H -# endif -#endif - -/* Narrow types that promote to a signed type and that can represent a - signed or unsigned integer of at least N bits. In tables they can - save space and decrease cache pressure. Promoting to a signed type - helps avoid bugs in integer arithmetic. */ - -#ifdef __INT_LEAST8_MAX__ -typedef __INT_LEAST8_TYPE__ yytype_int8; -#elif defined YY_STDINT_H -typedef int_least8_t yytype_int8; -#else -typedef signed char yytype_int8; -#endif - -#ifdef __INT_LEAST16_MAX__ -typedef __INT_LEAST16_TYPE__ yytype_int16; -#elif defined YY_STDINT_H -typedef int_least16_t yytype_int16; -#else -typedef short yytype_int16; -#endif - -/* Work around bug in HP-UX 11.23, which defines these macros - incorrectly for preprocessor constants. This workaround can likely - be removed in 2023, as HPE has promised support for HP-UX 11.23 - (aka HP-UX 11i v2) only through the end of 2022; see Table 2 of - . */ -#ifdef __hpux -# undef UINT_LEAST8_MAX -# undef UINT_LEAST16_MAX -# define UINT_LEAST8_MAX 255 -# define UINT_LEAST16_MAX 65535 -#endif - -#if defined __UINT_LEAST8_MAX__ && __UINT_LEAST8_MAX__ <= __INT_MAX__ -typedef __UINT_LEAST8_TYPE__ yytype_uint8; -#elif (!defined __UINT_LEAST8_MAX__ && defined YY_STDINT_H \ - && UINT_LEAST8_MAX <= INT_MAX) -typedef uint_least8_t yytype_uint8; -#elif !defined __UINT_LEAST8_MAX__ && UCHAR_MAX <= INT_MAX -typedef unsigned char yytype_uint8; -#else -typedef short yytype_uint8; -#endif - -#if defined __UINT_LEAST16_MAX__ && __UINT_LEAST16_MAX__ <= __INT_MAX__ -typedef __UINT_LEAST16_TYPE__ yytype_uint16; -#elif (!defined __UINT_LEAST16_MAX__ && defined YY_STDINT_H \ - && UINT_LEAST16_MAX <= INT_MAX) -typedef uint_least16_t yytype_uint16; -#elif !defined __UINT_LEAST16_MAX__ && USHRT_MAX <= INT_MAX -typedef unsigned short yytype_uint16; -#else -typedef int yytype_uint16; -#endif - -#ifndef YYPTRDIFF_T -# if defined __PTRDIFF_TYPE__ && defined __PTRDIFF_MAX__ -# define YYPTRDIFF_T __PTRDIFF_TYPE__ -# define YYPTRDIFF_MAXIMUM __PTRDIFF_MAX__ -# elif defined PTRDIFF_MAX -# ifndef ptrdiff_t -# include /* INFRINGES ON USER NAME SPACE */ -# endif -# define YYPTRDIFF_T ptrdiff_t -# define YYPTRDIFF_MAXIMUM PTRDIFF_MAX -# else -# define YYPTRDIFF_T long -# define YYPTRDIFF_MAXIMUM LONG_MAX -# endif -#endif - -#ifndef YYSIZE_T -# ifdef __SIZE_TYPE__ -# define YYSIZE_T __SIZE_TYPE__ -# elif defined size_t -# define YYSIZE_T size_t -# elif defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__ -# include /* INFRINGES ON USER NAME SPACE */ -# define YYSIZE_T size_t -# else -# define YYSIZE_T unsigned -# endif -#endif - -#define YYSIZE_MAXIMUM \ - YY_CAST (YYPTRDIFF_T, \ - (YYPTRDIFF_MAXIMUM < YY_CAST (YYSIZE_T, -1) \ - ? YYPTRDIFF_MAXIMUM \ - : YY_CAST (YYSIZE_T, -1))) - -#define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X)) - - -/* Stored state numbers (used for stacks). */ -typedef yytype_int16 yy_state_t; - -/* State numbers in computations. */ -typedef int yy_state_fast_t; - -#ifndef YY_ -# if defined YYENABLE_NLS && YYENABLE_NLS -# if ENABLE_NLS -# include /* INFRINGES ON USER NAME SPACE */ -# define YY_(Msgid) dgettext ("bison-runtime", Msgid) -# endif -# endif -# ifndef YY_ -# define YY_(Msgid) Msgid -# endif -#endif - - -#ifndef YY_ATTRIBUTE_PURE -# if defined __GNUC__ && 2 < __GNUC__ + (96 <= __GNUC_MINOR__) -# define YY_ATTRIBUTE_PURE __attribute__ ((__pure__)) -# else -# define YY_ATTRIBUTE_PURE -# endif -#endif - -#ifndef YY_ATTRIBUTE_UNUSED -# if defined __GNUC__ && 2 < __GNUC__ + (7 <= __GNUC_MINOR__) -# define YY_ATTRIBUTE_UNUSED __attribute__ ((__unused__)) -# else -# define YY_ATTRIBUTE_UNUSED -# endif -#endif - -/* Suppress unused-variable warnings by "using" E. */ -#if ! defined lint || defined __GNUC__ -# define YY_USE(E) ((void) (E)) -#else -# define YY_USE(E) /* empty */ -#endif - -/* Suppress an incorrect diagnostic about yylval being uninitialized. */ -#if defined __GNUC__ && ! defined __ICC && 406 <= __GNUC__ * 100 + __GNUC_MINOR__ -# if __GNUC__ * 100 + __GNUC_MINOR__ < 407 -# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \ - _Pragma ("GCC diagnostic push") \ - _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"") -# else -# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \ - _Pragma ("GCC diagnostic push") \ - _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"") \ - _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"") -# endif -# define YY_IGNORE_MAYBE_UNINITIALIZED_END \ - _Pragma ("GCC diagnostic pop") -#else -# define YY_INITIAL_VALUE(Value) Value -#endif -#ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN -# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN -# define YY_IGNORE_MAYBE_UNINITIALIZED_END -#endif -#ifndef YY_INITIAL_VALUE -# define YY_INITIAL_VALUE(Value) /* Nothing. */ -#endif - -#if defined __cplusplus && defined __GNUC__ && ! defined __ICC && 6 <= __GNUC__ -# define YY_IGNORE_USELESS_CAST_BEGIN \ - _Pragma ("GCC diagnostic push") \ - _Pragma ("GCC diagnostic ignored \"-Wuseless-cast\"") -# define YY_IGNORE_USELESS_CAST_END \ - _Pragma ("GCC diagnostic pop") -#endif -#ifndef YY_IGNORE_USELESS_CAST_BEGIN -# define YY_IGNORE_USELESS_CAST_BEGIN -# define YY_IGNORE_USELESS_CAST_END -#endif - - -#define YY_ASSERT(E) ((void) (0 && (E))) - -#if !defined yyoverflow - -/* The parser invokes alloca or malloc; define the necessary symbols. */ - -# ifdef YYSTACK_USE_ALLOCA -# if YYSTACK_USE_ALLOCA -# ifdef __GNUC__ -# define YYSTACK_ALLOC __builtin_alloca -# elif defined __BUILTIN_VA_ARG_INCR -# include /* INFRINGES ON USER NAME SPACE */ -# elif defined _AIX -# define YYSTACK_ALLOC __alloca -# elif defined _MSC_VER -# include /* INFRINGES ON USER NAME SPACE */ -# define alloca _alloca -# else -# define YYSTACK_ALLOC alloca -# if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS -# include /* INFRINGES ON USER NAME SPACE */ - /* Use EXIT_SUCCESS as a witness for stdlib.h. */ -# ifndef EXIT_SUCCESS -# define EXIT_SUCCESS 0 -# endif -# endif -# endif -# endif -# endif - -# ifdef YYSTACK_ALLOC - /* Pacify GCC's 'empty if-body' warning. */ -# define YYSTACK_FREE(Ptr) do { /* empty */; } while (0) -# ifndef YYSTACK_ALLOC_MAXIMUM - /* The OS might guarantee only one guard page at the bottom of the stack, - and a page size can be as small as 4096 bytes. So we cannot safely - invoke alloca (N) if N exceeds 4096. Use a slightly smaller number - to allow for a few compiler-allocated temporary stack slots. */ -# define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */ -# endif -# else -# define YYSTACK_ALLOC YYMALLOC -# define YYSTACK_FREE YYFREE -# ifndef YYSTACK_ALLOC_MAXIMUM -# define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM -# endif -# if (defined __cplusplus && ! defined EXIT_SUCCESS \ - && ! ((defined YYMALLOC || defined malloc) \ - && (defined YYFREE || defined free))) -# include /* INFRINGES ON USER NAME SPACE */ -# ifndef EXIT_SUCCESS -# define EXIT_SUCCESS 0 -# endif -# endif -# ifndef YYMALLOC -# define YYMALLOC malloc -# if ! defined malloc && ! defined EXIT_SUCCESS -void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */ -# endif -# endif -# ifndef YYFREE -# define YYFREE free -# if ! defined free && ! defined EXIT_SUCCESS -void free (void *); /* INFRINGES ON USER NAME SPACE */ -# endif -# endif -# endif -#endif /* !defined yyoverflow */ - -#if (! defined yyoverflow \ - && (! defined __cplusplus \ - || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))) - -/* A type that is properly aligned for any stack member. */ -union yyalloc -{ - yy_state_t yyss_alloc; - YYSTYPE yyvs_alloc; -}; - -/* The size of the maximum gap between one aligned stack and the next. */ -# define YYSTACK_GAP_MAXIMUM (YYSIZEOF (union yyalloc) - 1) - -/* The size of an array large to enough to hold all stacks, each with - N elements. */ -# define YYSTACK_BYTES(N) \ - ((N) * (YYSIZEOF (yy_state_t) + YYSIZEOF (YYSTYPE)) \ - + YYSTACK_GAP_MAXIMUM) - -# define YYCOPY_NEEDED 1 - -/* Relocate STACK from its old location to the new one. The - local variables YYSIZE and YYSTACKSIZE give the old and new number of - elements in the stack, and YYPTR gives the new location of the - stack. Advance YYPTR to a properly aligned location for the next - stack. */ -# define YYSTACK_RELOCATE(Stack_alloc, Stack) \ - do \ - { \ - YYPTRDIFF_T yynewbytes; \ - YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \ - Stack = &yyptr->Stack_alloc; \ - yynewbytes = yystacksize * YYSIZEOF (*Stack) + YYSTACK_GAP_MAXIMUM; \ - yyptr += yynewbytes / YYSIZEOF (*yyptr); \ - } \ - while (0) - -#endif - -#if defined YYCOPY_NEEDED && YYCOPY_NEEDED -/* Copy COUNT objects from SRC to DST. The source and destination do - not overlap. */ -# ifndef YYCOPY -# if defined __GNUC__ && 1 < __GNUC__ -# define YYCOPY(Dst, Src, Count) \ - __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src))) -# else -# define YYCOPY(Dst, Src, Count) \ - do \ - { \ - YYPTRDIFF_T yyi; \ - for (yyi = 0; yyi < (Count); yyi++) \ - (Dst)[yyi] = (Src)[yyi]; \ - } \ - while (0) -# endif -# endif -#endif /* !YYCOPY_NEEDED */ - -/* YYFINAL -- State number of the termination state. */ -#define YYFINAL 2 -/* YYLAST -- Last index in YYTABLE. */ -#define YYLAST 725 - -/* YYNTOKENS -- Number of terminals. */ -#define YYNTOKENS 340 -/* YYNNTS -- Number of nonterminals. */ -#define YYNNTS 365 -/* YYNRULES -- Number of rules. */ -#define YYNRULES 707 -/* YYNSTATES -- Number of states. */ -#define YYNSTATES 1058 - -/* YYMAXUTOK -- Last valid token kind. */ -#define YYMAXUTOK 594 - - -/* YYTRANSLATE(TOKEN-NUM) -- Symbol number corresponding to TOKEN-NUM - as returned by yylex, with out-of-bounds checking. */ -#define YYTRANSLATE(YYX) \ - (0 <= (YYX) && (YYX) <= YYMAXUTOK \ - ? YY_CAST (yysymbol_kind_t, yytranslate[YYX]) \ - : YYSYMBOL_YYUNDEF) - -/* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM - as returned by yylex. */ -static const yytype_int16 yytranslate[] = -{ - 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 1, 2, 3, 4, - 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, - 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, - 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, - 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, - 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, - 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, - 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, - 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, - 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, - 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, - 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, - 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, - 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, - 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, - 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, - 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, - 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, - 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, - 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, - 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, - 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, - 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, - 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, - 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, - 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, - 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, - 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, - 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, - 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, - 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, - 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, - 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, - 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, - 335, 336, 337, 338, 339 -}; - -#if YYDEBUG -/* YYRLINE[YYN] -- Source line where rule number YYN was defined. */ -static const yytype_int16 yyrline[] = -{ - 0, 200, 200, 200, 201, 201, 202, 202, 203, 203, - 203, 204, 204, 205, 205, 206, 206, 207, 209, 216, - 222, 223, 224, 224, 224, 225, 225, 226, 226, 226, - 227, 227, 228, 228, 228, 229, 229, 230, 230, 230, - 231, 231, 231, 232, 232, 233, 233, 234, 234, 235, - 235, 236, 236, 237, 237, 238, 238, 239, 239, 240, - 240, 240, 241, 241, 242, 242, 242, 243, 243, 243, - 244, 244, 245, 245, 246, 246, 247, 247, 248, 248, - 248, 249, 249, 250, 250, 251, 251, 251, 252, 252, - 253, 253, 254, 254, 255, 255, 255, 256, 256, 257, - 257, 258, 258, 259, 259, 260, 260, 261, 261, 262, - 262, 263, 263, 264, 264, 264, 265, 265, 265, 266, - 266, 266, 267, 267, 267, 267, 268, 269, 269, 269, - 270, 270, 270, 271, 271, 272, 272, 273, 273, 273, - 274, 274, 274, 275, 275, 276, 276, 276, 277, 277, - 277, 278, 278, 278, 279, 279, 280, 280, 281, 281, - 282, 283, 283, 284, 284, 285, 285, 286, 286, 287, - 287, 288, 288, 289, 289, 290, 290, 291, 291, 292, - 292, 293, 293, 294, 294, 294, 295, 295, 296, 296, - 297, 297, 298, 298, 298, 299, 299, 300, 301, 301, - 302, 302, 303, 304, 304, 305, 305, 306, 306, 306, - 307, 307, 308, 308, 308, 309, 309, 309, 310, 310, - 311, 312, 312, 313, 313, 314, 314, 315, 315, 316, - 316, 316, 317, 317, 317, 318, 318, 318, 319, 319, - 320, 320, 321, 321, 322, 322, 323, 323, 324, 324, - 325, 325, 326, 326, 327, 327, 328, 330, 344, 345, - 346, 346, 346, 346, 346, 347, 347, 347, 349, 363, - 364, 365, 365, 365, 365, 366, 366, 366, 368, 384, - 385, 386, 386, 386, 386, 387, 387, 387, 389, 410, - 411, 412, 412, 412, 412, 413, 413, 413, 414, 414, - 414, 417, 436, 453, 461, 471, 478, 488, 507, 508, - 509, 509, 509, 509, 509, 510, 510, 510, 511, 511, - 511, 511, 513, 522, 531, 542, 551, 560, 569, 578, - 589, 598, 610, 624, 639, 650, 667, 684, 701, 718, - 733, 748, 761, 776, 785, 794, 803, 812, 821, 830, - 837, 846, 855, 864, 873, 882, 891, 900, 909, 922, - 933, 944, 955, 964, 977, 986, 995, 1004, 1011, 1018, - 1027, 1034, 1043, 1051, 1058, 1065, 1073, 1082, 1090, 1106, - 1114, 1122, 1130, 1138, 1146, 1155, 1164, 1178, 1187, 1196, - 1205, 1214, 1223, 1232, 1239, 1246, 1272, 1280, 1287, 1294, - 1301, 1308, 1316, 1324, 1332, 1339, 1350, 1361, 1368, 1377, - 1386, 1395, 1404, 1411, 1418, 1425, 1441, 1449, 1457, 1467, - 1477, 1487, 1501, 1509, 1522, 1533, 1541, 1554, 1563, 1572, - 1581, 1590, 1600, 1610, 1618, 1631, 1640, 1648, 1657, 1665, - 1678, 1687, 1696, 1706, 1713, 1723, 1733, 1743, 1753, 1763, - 1773, 1783, 1793, 1803, 1810, 1817, 1824, 1833, 1842, 1851, - 1860, 1867, 1877, 1885, 1894, 1901, 1919, 1932, 1945, 1958, - 1967, 1976, 1985, 1994, 2004, 2014, 2025, 2034, 2043, 2052, - 2061, 2070, 2079, 2088, 2097, 2110, 2123, 2132, 2139, 2148, - 2157, 2166, 2175, 2184, 2192, 2205, 2213, 2269, 2276, 2291, - 2301, 2311, 2318, 2325, 2332, 2341, 2349, 2363, 2384, 2405, - 2417, 2429, 2441, 2450, 2471, 2483, 2495, 2504, 2525, 2534, - 2543, 2551, 2559, 2572, 2585, 2600, 2615, 2624, 2633, 2643, - 2653, 2662, 2671, 2680, 2686, 2695, 2704, 2714, 2724, 2734, - 2743, 2753, 2762, 2775, 2788, 2800, 2814, 2826, 2840, 2849, - 2860, 2869, 2876, 2886, 2893, 2900, 2909, 2918, 2928, 2938, - 2948, 2958, 2965, 2972, 2981, 2990, 3000, 3010, 3020, 3027, - 3034, 3041, 3049, 3059, 3069, 3079, 3089, 3099, 3109, 3165, - 3175, 3183, 3191, 3206, 3215, 3221, 3222, 3223, 3223, 3223, - 3224, 3224, 3224, 3225, 3225, 3227, 3237, 3246, 3253, 3260, - 3267, 3274, 3281, 3288, 3294, 3295, 3296, 3296, 3296, 3297, - 3297, 3297, 3298, 3299, 3299, 3300, 3300, 3301, 3301, 3302, - 3303, 3304, 3305, 3306, 3307, 3309, 3318, 3328, 3335, 3342, - 3351, 3358, 3365, 3372, 3379, 3388, 3397, 3404, 3411, 3421, - 3431, 3441, 3451, 3461, 3471, 3477, 3478, 3479, 3481, 3487, - 3493, 3494, 3495, 3497, 3503, 3513, 3520, 3529, 3537, 3543, - 3544, 3546, 3546, 3546, 3547, 3547, 3548, 3549, 3550, 3551, - 3552, 3554, 3564, 3573, 3580, 3589, 3596, 3605, 3613, 3626, - 3634, 3647, 3653, 3654, 3655, 3655, 3656, 3656, 3656, 3657, - 3657, 3657, 3659, 3671, 3683, 3695, 3710, 3722, 3734, 3747, - 3760, 3771, 3777, 3778, 3779, 3779, 3781, 3796 -}; -#endif - -/** Accessing symbol of state STATE. */ -#define YY_ACCESSING_SYMBOL(State) YY_CAST (yysymbol_kind_t, yystos[State]) - -#if YYDEBUG || 0 -/* The user-facing name of the symbol whose (internal) number is - YYSYMBOL. No bounds checking. */ -static const char *yysymbol_name (yysymbol_kind_t yysymbol) YY_ATTRIBUTE_UNUSED; - -/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. - First, the terminals, then, starting at YYNTOKENS, nonterminals. */ -static const char *const yytname[] = -{ - "\"end of file\"", "error", "\"invalid token\"", "SPACE", "LETTER", - "NEWLINE", "COMMENT", "COLON", "ANY", "ZONESTR", "STRING_ARG", - "VAR_FORCE_TOPLEVEL", "VAR_SERVER", "VAR_VERBOSITY", "VAR_NUM_THREADS", - "VAR_PORT", "VAR_OUTGOING_RANGE", "VAR_INTERFACE", "VAR_PREFER_IP4", - "VAR_DO_IP4", "VAR_DO_IP6", "VAR_PREFER_IP6", "VAR_DO_UDP", "VAR_DO_TCP", - "VAR_TCP_MSS", "VAR_OUTGOING_TCP_MSS", "VAR_TCP_IDLE_TIMEOUT", - "VAR_EDNS_TCP_KEEPALIVE", "VAR_EDNS_TCP_KEEPALIVE_TIMEOUT", "VAR_CHROOT", - "VAR_USERNAME", "VAR_DIRECTORY", "VAR_LOGFILE", "VAR_PIDFILE", - "VAR_MSG_CACHE_SIZE", "VAR_MSG_CACHE_SLABS", - "VAR_NUM_QUERIES_PER_THREAD", "VAR_RRSET_CACHE_SIZE", - "VAR_RRSET_CACHE_SLABS", "VAR_OUTGOING_NUM_TCP", "VAR_INFRA_HOST_TTL", - "VAR_INFRA_LAME_TTL", "VAR_INFRA_CACHE_SLABS", - "VAR_INFRA_CACHE_NUMHOSTS", "VAR_INFRA_CACHE_LAME_SIZE", "VAR_NAME", - "VAR_STUB_ZONE", "VAR_STUB_HOST", "VAR_STUB_ADDR", - "VAR_TARGET_FETCH_POLICY", "VAR_HARDEN_SHORT_BUFSIZE", - "VAR_HARDEN_LARGE_QUERIES", "VAR_FORWARD_ZONE", "VAR_FORWARD_HOST", - "VAR_FORWARD_ADDR", "VAR_DO_NOT_QUERY_ADDRESS", "VAR_HIDE_IDENTITY", - "VAR_HIDE_VERSION", "VAR_IDENTITY", "VAR_VERSION", "VAR_HARDEN_GLUE", - "VAR_MODULE_CONF", "VAR_TRUST_ANCHOR_FILE", "VAR_TRUST_ANCHOR", - "VAR_VAL_OVERRIDE_DATE", "VAR_BOGUS_TTL", "VAR_VAL_CLEAN_ADDITIONAL", - "VAR_VAL_PERMISSIVE_MODE", "VAR_INCOMING_NUM_TCP", "VAR_MSG_BUFFER_SIZE", - "VAR_KEY_CACHE_SIZE", "VAR_KEY_CACHE_SLABS", "VAR_TRUSTED_KEYS_FILE", - "VAR_VAL_NSEC3_KEYSIZE_ITERATIONS", "VAR_USE_SYSLOG", - "VAR_OUTGOING_INTERFACE", "VAR_ROOT_HINTS", "VAR_DO_NOT_QUERY_LOCALHOST", - "VAR_CACHE_MAX_TTL", "VAR_HARDEN_DNSSEC_STRIPPED", "VAR_ACCESS_CONTROL", - "VAR_LOCAL_ZONE", "VAR_LOCAL_DATA", "VAR_INTERFACE_AUTOMATIC", - "VAR_STATISTICS_INTERVAL", "VAR_DO_DAEMONIZE", "VAR_USE_CAPS_FOR_ID", - "VAR_STATISTICS_CUMULATIVE", "VAR_OUTGOING_PORT_PERMIT", - "VAR_OUTGOING_PORT_AVOID", "VAR_DLV_ANCHOR_FILE", "VAR_DLV_ANCHOR", - "VAR_NEG_CACHE_SIZE", "VAR_HARDEN_REFERRAL_PATH", "VAR_PRIVATE_ADDRESS", - "VAR_PRIVATE_DOMAIN", "VAR_REMOTE_CONTROL", "VAR_CONTROL_ENABLE", - "VAR_CONTROL_INTERFACE", "VAR_CONTROL_PORT", "VAR_SERVER_KEY_FILE", - "VAR_SERVER_CERT_FILE", "VAR_CONTROL_KEY_FILE", "VAR_CONTROL_CERT_FILE", - "VAR_CONTROL_USE_CERT", "VAR_TCP_REUSE_TIMEOUT", - "VAR_MAX_REUSE_TCP_QUERIES", "VAR_EXTENDED_STATISTICS", - "VAR_LOCAL_DATA_PTR", "VAR_JOSTLE_TIMEOUT", "VAR_STUB_PRIME", - "VAR_UNWANTED_REPLY_THRESHOLD", "VAR_LOG_TIME_ASCII", - "VAR_DOMAIN_INSECURE", "VAR_PYTHON", "VAR_PYTHON_SCRIPT", - "VAR_VAL_SIG_SKEW_MIN", "VAR_VAL_SIG_SKEW_MAX", "VAR_VAL_MAX_RESTART", - "VAR_CACHE_MIN_TTL", "VAR_VAL_LOG_LEVEL", "VAR_AUTO_TRUST_ANCHOR_FILE", - "VAR_KEEP_MISSING", "VAR_ADD_HOLDDOWN", "VAR_DEL_HOLDDOWN", - "VAR_SO_RCVBUF", "VAR_EDNS_BUFFER_SIZE", "VAR_PREFETCH", - "VAR_PREFETCH_KEY", "VAR_SO_SNDBUF", "VAR_SO_REUSEPORT", - "VAR_HARDEN_BELOW_NXDOMAIN", "VAR_IGNORE_CD_FLAG", "VAR_LOG_QUERIES", - "VAR_LOG_REPLIES", "VAR_LOG_LOCAL_ACTIONS", "VAR_TCP_UPSTREAM", - "VAR_SSL_UPSTREAM", "VAR_TCP_AUTH_QUERY_TIMEOUT", "VAR_SSL_SERVICE_KEY", - "VAR_SSL_SERVICE_PEM", "VAR_SSL_PORT", "VAR_FORWARD_FIRST", - "VAR_STUB_SSL_UPSTREAM", "VAR_FORWARD_SSL_UPSTREAM", - "VAR_TLS_CERT_BUNDLE", "VAR_STUB_TCP_UPSTREAM", - "VAR_FORWARD_TCP_UPSTREAM", "VAR_HTTPS_PORT", "VAR_HTTP_ENDPOINT", - "VAR_HTTP_MAX_STREAMS", "VAR_HTTP_QUERY_BUFFER_SIZE", - "VAR_HTTP_RESPONSE_BUFFER_SIZE", "VAR_HTTP_NODELAY", - "VAR_HTTP_NOTLS_DOWNSTREAM", "VAR_STUB_FIRST", "VAR_MINIMAL_RESPONSES", - "VAR_RRSET_ROUNDROBIN", "VAR_MAX_UDP_SIZE", "VAR_DELAY_CLOSE", - "VAR_UDP_CONNECT", "VAR_UNBLOCK_LAN_ZONES", "VAR_INSECURE_LAN_ZONES", - "VAR_INFRA_CACHE_MIN_RTT", "VAR_INFRA_CACHE_MAX_RTT", - "VAR_INFRA_KEEP_PROBING", "VAR_DNS64_PREFIX", "VAR_DNS64_SYNTHALL", - "VAR_DNS64_IGNORE_AAAA", "VAR_DNSTAP", "VAR_DNSTAP_ENABLE", - "VAR_DNSTAP_SOCKET_PATH", "VAR_DNSTAP_IP", "VAR_DNSTAP_TLS", - "VAR_DNSTAP_TLS_SERVER_NAME", "VAR_DNSTAP_TLS_CERT_BUNDLE", - "VAR_DNSTAP_TLS_CLIENT_KEY_FILE", "VAR_DNSTAP_TLS_CLIENT_CERT_FILE", - "VAR_DNSTAP_SEND_IDENTITY", "VAR_DNSTAP_SEND_VERSION", - "VAR_DNSTAP_BIDIRECTIONAL", "VAR_DNSTAP_IDENTITY", "VAR_DNSTAP_VERSION", - "VAR_DNSTAP_LOG_RESOLVER_QUERY_MESSAGES", - "VAR_DNSTAP_LOG_RESOLVER_RESPONSE_MESSAGES", - "VAR_DNSTAP_LOG_CLIENT_QUERY_MESSAGES", - "VAR_DNSTAP_LOG_CLIENT_RESPONSE_MESSAGES", - "VAR_DNSTAP_LOG_FORWARDER_QUERY_MESSAGES", - "VAR_DNSTAP_LOG_FORWARDER_RESPONSE_MESSAGES", "VAR_RESPONSE_IP_TAG", - "VAR_RESPONSE_IP", "VAR_RESPONSE_IP_DATA", "VAR_HARDEN_ALGO_DOWNGRADE", - "VAR_IP_TRANSPARENT", "VAR_IP_DSCP", "VAR_DISABLE_DNSSEC_LAME_CHECK", - "VAR_IP_RATELIMIT", "VAR_IP_RATELIMIT_SLABS", "VAR_IP_RATELIMIT_SIZE", - "VAR_RATELIMIT", "VAR_RATELIMIT_SLABS", "VAR_RATELIMIT_SIZE", - "VAR_OUTBOUND_MSG_RETRY", "VAR_MAX_SENT_COUNT", "VAR_MAX_QUERY_RESTARTS", - "VAR_RATELIMIT_FOR_DOMAIN", "VAR_RATELIMIT_BELOW_DOMAIN", - "VAR_IP_RATELIMIT_FACTOR", "VAR_RATELIMIT_FACTOR", - "VAR_IP_RATELIMIT_BACKOFF", "VAR_RATELIMIT_BACKOFF", - "VAR_SEND_CLIENT_SUBNET", "VAR_CLIENT_SUBNET_ZONE", - "VAR_CLIENT_SUBNET_ALWAYS_FORWARD", "VAR_CLIENT_SUBNET_OPCODE", - "VAR_MAX_CLIENT_SUBNET_IPV4", "VAR_MAX_CLIENT_SUBNET_IPV6", - "VAR_MIN_CLIENT_SUBNET_IPV4", "VAR_MIN_CLIENT_SUBNET_IPV6", - "VAR_MAX_ECS_TREE_SIZE_IPV4", "VAR_MAX_ECS_TREE_SIZE_IPV6", - "VAR_CAPS_WHITELIST", "VAR_CACHE_MAX_NEGATIVE_TTL", - "VAR_PERMIT_SMALL_HOLDDOWN", "VAR_QNAME_MINIMISATION", - "VAR_QNAME_MINIMISATION_STRICT", "VAR_IP_FREEBIND", "VAR_DEFINE_TAG", - "VAR_LOCAL_ZONE_TAG", "VAR_ACCESS_CONTROL_TAG", - "VAR_LOCAL_ZONE_OVERRIDE", "VAR_ACCESS_CONTROL_TAG_ACTION", - "VAR_ACCESS_CONTROL_TAG_DATA", "VAR_VIEW", "VAR_ACCESS_CONTROL_VIEW", - "VAR_VIEW_FIRST", "VAR_SERVE_EXPIRED", "VAR_SERVE_EXPIRED_TTL", - "VAR_SERVE_EXPIRED_TTL_RESET", "VAR_SERVE_EXPIRED_REPLY_TTL", - "VAR_SERVE_EXPIRED_CLIENT_TIMEOUT", "VAR_EDE_SERVE_EXPIRED", - "VAR_SERVE_ORIGINAL_TTL", "VAR_FAKE_DSA", "VAR_FAKE_SHA1", - "VAR_LOG_IDENTITY", "VAR_HIDE_TRUSTANCHOR", "VAR_HIDE_HTTP_USER_AGENT", - "VAR_HTTP_USER_AGENT", "VAR_TRUST_ANCHOR_SIGNALING", - "VAR_AGGRESSIVE_NSEC", "VAR_USE_SYSTEMD", "VAR_SHM_ENABLE", - "VAR_SHM_KEY", "VAR_ROOT_KEY_SENTINEL", "VAR_DNSCRYPT", - "VAR_DNSCRYPT_ENABLE", "VAR_DNSCRYPT_PORT", "VAR_DNSCRYPT_PROVIDER", - "VAR_DNSCRYPT_SECRET_KEY", "VAR_DNSCRYPT_PROVIDER_CERT", - "VAR_DNSCRYPT_PROVIDER_CERT_ROTATED", - "VAR_DNSCRYPT_SHARED_SECRET_CACHE_SIZE", - "VAR_DNSCRYPT_SHARED_SECRET_CACHE_SLABS", - "VAR_DNSCRYPT_NONCE_CACHE_SIZE", "VAR_DNSCRYPT_NONCE_CACHE_SLABS", - "VAR_PAD_RESPONSES", "VAR_PAD_RESPONSES_BLOCK_SIZE", "VAR_PAD_QUERIES", - "VAR_PAD_QUERIES_BLOCK_SIZE", "VAR_IPSECMOD_ENABLED", - "VAR_IPSECMOD_HOOK", "VAR_IPSECMOD_IGNORE_BOGUS", "VAR_IPSECMOD_MAX_TTL", - "VAR_IPSECMOD_WHITELIST", "VAR_IPSECMOD_STRICT", "VAR_CACHEDB", - "VAR_CACHEDB_BACKEND", "VAR_CACHEDB_SECRETSEED", "VAR_CACHEDB_REDISHOST", - "VAR_CACHEDB_REDISPORT", "VAR_CACHEDB_REDISTIMEOUT", - "VAR_CACHEDB_REDISEXPIRERECORDS", "VAR_CACHEDB_REDISPATH", - "VAR_CACHEDB_REDISPASSWORD", "VAR_UDP_UPSTREAM_WITHOUT_DOWNSTREAM", - "VAR_FOR_UPSTREAM", "VAR_AUTH_ZONE", "VAR_ZONEFILE", "VAR_MASTER", - "VAR_URL", "VAR_FOR_DOWNSTREAM", "VAR_FALLBACK_ENABLED", - "VAR_TLS_ADDITIONAL_PORT", "VAR_LOW_RTT", "VAR_LOW_RTT_PERMIL", - "VAR_FAST_SERVER_PERMIL", "VAR_FAST_SERVER_NUM", "VAR_ALLOW_NOTIFY", - "VAR_TLS_WIN_CERT", "VAR_TCP_CONNECTION_LIMIT", "VAR_FORWARD_NO_CACHE", - "VAR_STUB_NO_CACHE", "VAR_LOG_SERVFAIL", "VAR_DENY_ANY", - "VAR_UNKNOWN_SERVER_TIME_LIMIT", "VAR_LOG_TAG_QUERYREPLY", - "VAR_STREAM_WAIT_SIZE", "VAR_TLS_CIPHERS", "VAR_TLS_CIPHERSUITES", - "VAR_TLS_USE_SNI", "VAR_IPSET", "VAR_IPSET_NAME_V4", "VAR_IPSET_NAME_V6", - "VAR_TLS_SESSION_TICKET_KEYS", "VAR_RPZ", "VAR_TAGS", - "VAR_RPZ_ACTION_OVERRIDE", "VAR_RPZ_CNAME_OVERRIDE", "VAR_RPZ_LOG", - "VAR_RPZ_LOG_NAME", "VAR_DYNLIB", "VAR_DYNLIB_FILE", - "VAR_EDNS_CLIENT_STRING", "VAR_EDNS_CLIENT_STRING_OPCODE", "VAR_NSID", - "VAR_ZONEMD_PERMISSIVE_MODE", "VAR_ZONEMD_CHECK", - "VAR_ZONEMD_REJECT_ABSENCE", "VAR_RPZ_SIGNAL_NXDOMAIN_RA", - "VAR_INTERFACE_AUTOMATIC_PORTS", "VAR_EDE", "VAR_INTERFACE_ACTION", - "VAR_INTERFACE_VIEW", "VAR_INTERFACE_TAG", "VAR_INTERFACE_TAG_ACTION", - "VAR_INTERFACE_TAG_DATA", "VAR_PROXY_PROTOCOL_PORT", - "VAR_STATISTICS_INHIBIT_ZERO", "VAR_HARDEN_UNKNOWN_ADDITIONAL", - "$accept", "toplevelvars", "toplevelvar", "force_toplevel", - "serverstart", "contents_server", "content_server", "stubstart", - "contents_stub", "content_stub", "forwardstart", "contents_forward", - "content_forward", "viewstart", "contents_view", "content_view", - "authstart", "contents_auth", "content_auth", "rpz_tag", - "rpz_action_override", "rpz_cname_override", "rpz_log", "rpz_log_name", - "rpz_signal_nxdomain_ra", "rpzstart", "contents_rpz", "content_rpz", - "server_num_threads", "server_verbosity", "server_statistics_interval", - "server_statistics_cumulative", "server_extended_statistics", - "server_statistics_inhibit_zero", "server_shm_enable", "server_shm_key", - "server_port", "server_send_client_subnet", "server_client_subnet_zone", - "server_client_subnet_always_forward", "server_client_subnet_opcode", - "server_max_client_subnet_ipv4", "server_max_client_subnet_ipv6", - "server_min_client_subnet_ipv4", "server_min_client_subnet_ipv6", - "server_max_ecs_tree_size_ipv4", "server_max_ecs_tree_size_ipv6", - "server_interface", "server_outgoing_interface", "server_outgoing_range", - "server_outgoing_port_permit", "server_outgoing_port_avoid", - "server_outgoing_num_tcp", "server_incoming_num_tcp", - "server_interface_automatic", "server_interface_automatic_ports", - "server_do_ip4", "server_do_ip6", "server_do_udp", "server_do_tcp", - "server_prefer_ip4", "server_prefer_ip6", "server_tcp_mss", - "server_outgoing_tcp_mss", "server_tcp_idle_timeout", - "server_max_reuse_tcp_queries", "server_tcp_reuse_timeout", - "server_tcp_auth_query_timeout", "server_tcp_keepalive", - "server_tcp_keepalive_timeout", "server_tcp_upstream", - "server_udp_upstream_without_downstream", "server_ssl_upstream", - "server_ssl_service_key", "server_ssl_service_pem", "server_ssl_port", - "server_tls_cert_bundle", "server_tls_win_cert", - "server_tls_additional_port", "server_tls_ciphers", - "server_tls_ciphersuites", "server_tls_session_ticket_keys", - "server_tls_use_sni", "server_https_port", "server_http_endpoint", - "server_http_max_streams", "server_http_query_buffer_size", - "server_http_response_buffer_size", "server_http_nodelay", - "server_http_notls_downstream", "server_use_systemd", - "server_do_daemonize", "server_use_syslog", "server_log_time_ascii", - "server_log_queries", "server_log_replies", "server_log_tag_queryreply", - "server_log_servfail", "server_log_local_actions", "server_chroot", - "server_username", "server_directory", "server_logfile", - "server_pidfile", "server_root_hints", "server_dlv_anchor_file", - "server_dlv_anchor", "server_auto_trust_anchor_file", - "server_trust_anchor_file", "server_trusted_keys_file", - "server_trust_anchor", "server_trust_anchor_signaling", - "server_root_key_sentinel", "server_domain_insecure", - "server_hide_identity", "server_hide_version", "server_hide_trustanchor", - "server_hide_http_user_agent", "server_identity", "server_version", - "server_http_user_agent", "server_nsid", "server_so_rcvbuf", - "server_so_sndbuf", "server_so_reuseport", "server_ip_transparent", - "server_ip_freebind", "server_ip_dscp", "server_stream_wait_size", - "server_edns_buffer_size", "server_msg_buffer_size", - "server_msg_cache_size", "server_msg_cache_slabs", - "server_num_queries_per_thread", "server_jostle_timeout", - "server_delay_close", "server_udp_connect", "server_unblock_lan_zones", - "server_insecure_lan_zones", "server_rrset_cache_size", - "server_rrset_cache_slabs", "server_infra_host_ttl", - "server_infra_lame_ttl", "server_infra_cache_numhosts", - "server_infra_cache_lame_size", "server_infra_cache_slabs", - "server_infra_cache_min_rtt", "server_infra_cache_max_rtt", - "server_infra_keep_probing", "server_target_fetch_policy", - "server_harden_short_bufsize", "server_harden_large_queries", - "server_harden_glue", "server_harden_dnssec_stripped", - "server_harden_below_nxdomain", "server_harden_referral_path", - "server_harden_algo_downgrade", "server_harden_unknown_additional", - "server_use_caps_for_id", "server_caps_whitelist", - "server_private_address", "server_private_domain", "server_prefetch", - "server_prefetch_key", "server_deny_any", - "server_unwanted_reply_threshold", "server_do_not_query_address", - "server_do_not_query_localhost", "server_access_control", - "server_interface_action", "server_module_conf", - "server_val_override_date", "server_val_sig_skew_min", - "server_val_sig_skew_max", "server_val_max_restart", - "server_cache_max_ttl", "server_cache_max_negative_ttl", - "server_cache_min_ttl", "server_bogus_ttl", - "server_val_clean_additional", "server_val_permissive_mode", - "server_aggressive_nsec", "server_ignore_cd_flag", - "server_serve_expired", "server_serve_expired_ttl", - "server_serve_expired_ttl_reset", "server_serve_expired_reply_ttl", - "server_serve_expired_client_timeout", "server_ede_serve_expired", - "server_serve_original_ttl", "server_fake_dsa", "server_fake_sha1", - "server_val_log_level", "server_val_nsec3_keysize_iterations", - "server_zonemd_permissive_mode", "server_add_holddown", - "server_del_holddown", "server_keep_missing", - "server_permit_small_holddown", "server_key_cache_size", - "server_key_cache_slabs", "server_neg_cache_size", "server_local_zone", - "server_local_data", "server_local_data_ptr", "server_minimal_responses", - "server_rrset_roundrobin", "server_unknown_server_time_limit", - "server_max_udp_size", "server_dns64_prefix", "server_dns64_synthall", - "server_dns64_ignore_aaaa", "server_define_tag", "server_local_zone_tag", - "server_access_control_tag", "server_access_control_tag_action", - "server_access_control_tag_data", "server_local_zone_override", - "server_access_control_view", "server_interface_tag", - "server_interface_tag_action", "server_interface_tag_data", - "server_interface_view", "server_response_ip_tag", "server_ip_ratelimit", - "server_ratelimit", "server_ip_ratelimit_size", "server_ratelimit_size", - "server_ip_ratelimit_slabs", "server_ratelimit_slabs", - "server_ratelimit_for_domain", "server_ratelimit_below_domain", - "server_ip_ratelimit_factor", "server_ratelimit_factor", - "server_ip_ratelimit_backoff", "server_ratelimit_backoff", - "server_outbound_msg_retry", "server_max_sent_count", - "server_max_query_restarts", "server_low_rtt", "server_fast_server_num", - "server_fast_server_permil", "server_qname_minimisation", - "server_qname_minimisation_strict", "server_pad_responses", - "server_pad_responses_block_size", "server_pad_queries", - "server_pad_queries_block_size", "server_ipsecmod_enabled", - "server_ipsecmod_ignore_bogus", "server_ipsecmod_hook", - "server_ipsecmod_max_ttl", "server_ipsecmod_whitelist", - "server_ipsecmod_strict", "server_edns_client_string", - "server_edns_client_string_opcode", "server_ede", - "server_proxy_protocol_port", "stub_name", "stub_host", "stub_addr", - "stub_first", "stub_no_cache", "stub_ssl_upstream", "stub_tcp_upstream", - "stub_prime", "forward_name", "forward_host", "forward_addr", - "forward_first", "forward_no_cache", "forward_ssl_upstream", - "forward_tcp_upstream", "auth_name", "auth_zonefile", "auth_master", - "auth_url", "auth_allow_notify", "auth_zonemd_check", - "auth_zonemd_reject_absence", "auth_for_downstream", "auth_for_upstream", - "auth_fallback_enabled", "view_name", "view_local_zone", - "view_response_ip", "view_response_ip_data", "view_local_data", - "view_local_data_ptr", "view_first", "rcstart", "contents_rc", - "content_rc", "rc_control_enable", "rc_control_port", - "rc_control_interface", "rc_control_use_cert", "rc_server_key_file", - "rc_server_cert_file", "rc_control_key_file", "rc_control_cert_file", - "dtstart", "contents_dt", "content_dt", "dt_dnstap_enable", - "dt_dnstap_bidirectional", "dt_dnstap_socket_path", "dt_dnstap_ip", - "dt_dnstap_tls", "dt_dnstap_tls_server_name", - "dt_dnstap_tls_cert_bundle", "dt_dnstap_tls_client_key_file", - "dt_dnstap_tls_client_cert_file", "dt_dnstap_send_identity", - "dt_dnstap_send_version", "dt_dnstap_identity", "dt_dnstap_version", - "dt_dnstap_log_resolver_query_messages", - "dt_dnstap_log_resolver_response_messages", - "dt_dnstap_log_client_query_messages", - "dt_dnstap_log_client_response_messages", - "dt_dnstap_log_forwarder_query_messages", - "dt_dnstap_log_forwarder_response_messages", "pythonstart", - "contents_py", "content_py", "py_script", "dynlibstart", "contents_dl", - "content_dl", "dl_file", "server_disable_dnssec_lame_check", - "server_log_identity", "server_response_ip", "server_response_ip_data", - "dnscstart", "contents_dnsc", "content_dnsc", "dnsc_dnscrypt_enable", - "dnsc_dnscrypt_port", "dnsc_dnscrypt_provider", - "dnsc_dnscrypt_provider_cert", "dnsc_dnscrypt_provider_cert_rotated", - "dnsc_dnscrypt_secret_key", "dnsc_dnscrypt_shared_secret_cache_size", - "dnsc_dnscrypt_shared_secret_cache_slabs", - "dnsc_dnscrypt_nonce_cache_size", "dnsc_dnscrypt_nonce_cache_slabs", - "cachedbstart", "contents_cachedb", "content_cachedb", - "cachedb_backend_name", "cachedb_secret_seed", "redis_server_host", - "redis_server_port", "redis_server_path", "redis_server_password", - "redis_timeout", "redis_expire_records", "server_tcp_connection_limit", - "ipsetstart", "contents_ipset", "content_ipset", "ipset_name_v4", - "ipset_name_v6", YY_NULLPTR -}; - -static const char * -yysymbol_name (yysymbol_kind_t yysymbol) -{ - return yytname[yysymbol]; -} -#endif - -#define YYPACT_NINF (-288) - -#define yypact_value_is_default(Yyn) \ - ((Yyn) == YYPACT_NINF) - -#define YYTABLE_NINF (-1) - -#define yytable_value_is_error(Yyn) \ - 0 - -/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing - STATE-NUM. */ -static const yytype_int16 yypact[] = -{ - -288, 252, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -13, 221, 254, 197, 52, 39, 147, -14, - -81, -287, 146, 135, -280, 29, 30, 31, 73, 75, - 76, 77, 78, 79, 80, 81, 91, 92, 119, 120, - 121, 123, 124, 132, 165, 210, 212, 233, 255, 257, - 260, 261, 263, 264, 265, 266, 267, 272, 275, 278, - 279, 290, 292, 293, 296, 299, 304, 305, 306, 322, - 323, 324, 325, 326, 329, 335, 336, 337, 339, 341, - 342, 343, 344, 350, 351, 352, 353, 355, 359, 360, - 361, 362, 363, 364, 365, 367, 368, 371, 372, 373, - 374, 375, 376, 379, 380, 381, 382, 383, 384, 385, - 387, 389, 390, 410, 412, 413, 414, 415, 416, 417, - 418, 419, 420, 421, 423, 424, 425, 426, 427, 428, - 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, - 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, - 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, - 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, - 469, 470, 471, 472, 473, 474, 476, 477, 478, 479, - 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, - 490, 491, 492, 493, 494, 495, 496, 498, 499, 500, - 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, - 511, 512, 514, 515, 516, 517, 519, 520, 521, 522, - 523, 524, 525, 526, 527, 528, 530, 531, 532, 533, - 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, - 544, 546, 547, 548, 549, 550, 551, 552, 554, 555, - 556, 558, 559, 560, 561, 562, 564, 565, 566, 567, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, 568, 569, 570, 571, - 572, 573, 574, 575, -288, -288, -288, -288, -288, -288, - -288, -288, -288, 576, 577, 578, 579, 580, 581, 582, - -288, -288, -288, -288, -288, -288, -288, -288, 583, 584, - 585, 586, 587, 588, 589, -288, -288, -288, -288, -288, - -288, -288, -288, 590, 591, 592, 593, 594, 595, 596, - 597, 598, 599, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, 600, 601, 602, 603, 604, 605, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, 606, 607, 608, 609, 610, 611, 612, - 613, -288, -288, -288, -288, -288, -288, -288, -288, -288, - 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, - 624, 625, 626, 627, 628, 629, 630, 631, 632, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, 633, - -288, -288, 634, -288, -288, 635, 636, 637, 638, 639, - 640, 641, 642, 643, 644, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, 645, 646, 647, 648, - 649, 650, 651, 652, -288, -288, -288, -288, -288, -288, - -288, -288, -288, 653, 654, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, 655, 656, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, 657, - 658, 659, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, 660, 661, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, 662, 663, - 664, 665, 666, 667, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, 668, - -288, -288, -288, -288, -288, -288, -288, -288, -288, 669, - -288, -288, -288, -288, -288, 670, 671, 672, 673, 674, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, 675, - -288, -288, 676, 677, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, 678, - 679, 680, -288, -288, -288, -288, -288, -288, 681, 682, - -288, -288, -288, -288, -288, -288, -288, -288 -}; - -/* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM. - Performed when YYTABLE does not specify something else to do. Zero - means the default is an error. */ -static const yytype_int16 yydefact[] = -{ - 2, 0, 1, 18, 19, 257, 268, 584, 644, 603, - 278, 658, 681, 288, 701, 307, 649, 3, 17, 21, - 259, 270, 280, 290, 309, 586, 605, 646, 651, 660, - 683, 703, 4, 5, 6, 10, 14, 15, 8, 9, - 7, 16, 11, 12, 13, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 20, 22, 23, 88, 91, 100, 255, 215, 216, 24, - 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, - 37, 79, 25, 92, 93, 48, 72, 87, 252, 26, - 27, 30, 31, 28, 29, 32, 33, 34, 249, 250, - 251, 35, 36, 124, 227, 125, 127, 128, 129, 229, - 234, 230, 241, 242, 243, 244, 130, 131, 132, 133, - 134, 135, 136, 211, 89, 78, 104, 122, 123, 239, - 236, 126, 38, 39, 40, 41, 42, 80, 94, 95, - 111, 66, 76, 67, 219, 220, 105, 58, 59, 218, - 62, 60, 61, 63, 247, 115, 119, 140, 151, 183, - 154, 240, 116, 73, 43, 44, 45, 102, 141, 142, - 143, 144, 46, 47, 49, 50, 52, 53, 51, 148, - 149, 155, 54, 55, 56, 64, 83, 120, 97, 150, - 256, 90, 179, 98, 99, 117, 118, 237, 103, 57, - 81, 84, 192, 65, 68, 106, 107, 108, 82, 180, - 109, 69, 70, 71, 228, 121, 202, 203, 204, 205, - 206, 207, 208, 209, 217, 110, 77, 248, 112, 113, - 114, 181, 74, 75, 96, 85, 86, 101, 137, 138, - 238, 139, 145, 146, 147, 184, 185, 187, 189, 190, - 188, 191, 194, 195, 196, 193, 212, 152, 153, 158, - 159, 156, 157, 160, 161, 163, 162, 165, 164, 166, - 167, 168, 231, 233, 232, 182, 197, 198, 199, 200, - 201, 221, 223, 222, 224, 225, 226, 245, 246, 253, - 254, 186, 210, 213, 214, 235, 0, 0, 0, 0, - 0, 0, 0, 0, 258, 260, 261, 262, 264, 265, - 266, 267, 263, 0, 0, 0, 0, 0, 0, 0, - 269, 271, 272, 273, 274, 275, 276, 277, 0, 0, - 0, 0, 0, 0, 0, 279, 281, 282, 285, 286, - 283, 287, 284, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 289, 291, 292, 293, 294, 298, 299, - 300, 295, 296, 297, 0, 0, 0, 0, 0, 0, - 312, 316, 317, 318, 319, 320, 308, 310, 311, 313, - 314, 315, 321, 0, 0, 0, 0, 0, 0, 0, - 0, 585, 587, 589, 588, 594, 590, 591, 592, 593, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 604, - 606, 608, 607, 609, 610, 611, 612, 613, 614, 615, - 616, 617, 618, 619, 620, 621, 622, 623, 624, 0, - 645, 647, 0, 650, 652, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 659, 661, 662, 663, 665, - 666, 664, 667, 668, 669, 670, 0, 0, 0, 0, - 0, 0, 0, 0, 682, 684, 685, 686, 687, 690, - 691, 688, 689, 0, 0, 702, 704, 705, 323, 322, - 330, 343, 341, 354, 350, 351, 355, 352, 353, 356, - 357, 358, 362, 363, 393, 394, 395, 396, 397, 425, - 426, 427, 433, 434, 346, 435, 436, 439, 437, 438, - 443, 444, 445, 460, 408, 409, 412, 413, 446, 464, - 402, 404, 465, 472, 473, 474, 347, 424, 493, 494, - 403, 487, 386, 342, 398, 461, 469, 447, 0, 0, - 497, 348, 324, 385, 452, 325, 344, 345, 399, 400, - 495, 449, 454, 455, 360, 359, 326, 498, 428, 459, - 387, 407, 466, 467, 468, 471, 486, 401, 491, 489, - 490, 416, 423, 456, 457, 417, 418, 448, 476, 388, - 389, 392, 364, 366, 361, 367, 368, 369, 370, 377, - 378, 379, 380, 381, 382, 383, 499, 500, 502, 429, - 430, 431, 432, 440, 441, 442, 503, 504, 505, 0, - 0, 0, 450, 419, 421, 654, 518, 522, 520, 519, - 523, 521, 530, 531, 532, 0, 0, 526, 527, 528, - 529, 331, 332, 333, 334, 335, 336, 337, 338, 339, - 340, 453, 470, 492, 536, 537, 420, 506, 0, 0, - 0, 0, 0, 0, 477, 478, 479, 480, 481, 482, - 483, 484, 485, 655, 410, 411, 414, 405, 475, 384, - 328, 329, 406, 538, 539, 540, 541, 542, 544, 543, - 545, 546, 547, 365, 372, 533, 535, 534, 371, 0, - 391, 458, 501, 390, 422, 373, 374, 376, 375, 0, - 549, 415, 488, 349, 550, 0, 0, 0, 0, 0, - 551, 327, 451, 552, 553, 554, 559, 557, 558, 555, - 556, 560, 561, 562, 563, 565, 566, 564, 577, 0, - 581, 582, 0, 0, 583, 567, 575, 568, 569, 570, - 574, 576, 571, 572, 573, 301, 302, 303, 304, 305, - 306, 595, 597, 596, 599, 600, 601, 602, 598, 625, - 627, 628, 629, 630, 631, 632, 633, 634, 635, 626, - 636, 637, 638, 639, 640, 641, 642, 643, 648, 653, - 671, 672, 673, 676, 674, 675, 677, 678, 679, 680, - 692, 693, 694, 695, 698, 699, 696, 697, 706, 707, - 462, 496, 517, 656, 657, 524, 525, 507, 508, 0, - 0, 0, 512, 700, 548, 463, 516, 513, 0, 0, - 578, 579, 580, 511, 509, 510, 514, 515 -}; - -/* YYPGOTO[NTERM-NUM]. */ -static const yytype_int16 yypgoto[] = -{ - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, 683, 684, 685, 686, 687, -288, -288, - 688, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288, -288, -288, -288, -288, -288, - -288, -288, -288, -288, -288 -}; - -/* YYDEFGOTO[NTERM-NUM]. */ -static const yytype_int16 yydefgoto[] = -{ - 0, 1, 17, 18, 19, 32, 280, 20, 33, 524, - 21, 34, 540, 22, 35, 555, 23, 36, 573, 590, - 591, 592, 593, 594, 595, 24, 37, 596, 281, 282, - 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, - 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, - 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, - 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, - 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, - 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, - 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, - 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, - 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, - 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, - 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, - 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, - 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, - 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, - 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, - 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, - 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, - 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, - 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, - 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, - 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, - 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, - 503, 504, 505, 506, 507, 508, 509, 510, 525, 526, - 527, 528, 529, 530, 531, 532, 541, 542, 543, 544, - 545, 546, 547, 574, 575, 576, 577, 578, 579, 580, - 581, 582, 583, 556, 557, 558, 559, 560, 561, 562, - 25, 38, 611, 612, 613, 614, 615, 616, 617, 618, - 619, 26, 39, 639, 640, 641, 642, 643, 644, 645, - 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, - 656, 657, 658, 27, 40, 660, 661, 28, 41, 663, - 664, 511, 512, 513, 514, 29, 42, 675, 676, 677, - 678, 679, 680, 681, 682, 683, 684, 685, 30, 43, - 694, 695, 696, 697, 698, 699, 700, 701, 702, 515, - 31, 44, 705, 706, 707 -}; - -/* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM. If - positive, shift that token. If negative, reduce the rule whose - number is the opposite. If YYTABLE_NINF, syntax error. */ -static const yytype_int16 yytable[] = -{ - 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, - 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, - 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, - 75, 76, 703, 704, 659, 662, 77, 78, 79, 708, - 709, 710, 80, 81, 82, 83, 84, 85, 86, 87, - 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, - 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, - 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, - 118, 119, 120, 711, 563, 712, 713, 714, 715, 716, - 717, 718, 121, 122, 123, 124, 125, 563, 126, 127, - 128, 719, 720, 129, 130, 131, 132, 133, 134, 135, - 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, - 146, 147, 148, 149, 150, 151, 152, 153, 154, 721, - 722, 723, 155, 724, 725, 156, 157, 158, 159, 160, - 161, 162, 726, 163, 164, 165, 166, 167, 168, 169, - 170, 171, 172, 173, 174, 175, 620, 621, 622, 623, - 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, - 634, 635, 636, 637, 638, 727, 176, 177, 178, 179, - 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, - 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, - 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, - 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, - 728, 220, 729, 221, 222, 223, 224, 225, 226, 227, - 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, - 238, 239, 548, 730, 603, 604, 605, 606, 607, 608, - 609, 610, 2, 240, 241, 242, 243, 244, 245, 246, - 247, 248, 249, 3, 4, 731, 516, 732, 517, 518, - 733, 734, 250, 735, 736, 737, 738, 739, 549, 550, - 251, 252, 740, 253, 254, 741, 255, 256, 742, 743, - 257, 258, 259, 260, 261, 262, 263, 264, 5, 533, - 744, 265, 745, 746, 6, 551, 747, 534, 535, 748, - 266, 267, 268, 269, 749, 750, 751, 270, 271, 272, - 273, 274, 275, 276, 277, 278, 279, 565, 566, 567, - 568, 519, 752, 753, 754, 755, 756, 570, 564, 757, - 565, 566, 567, 568, 569, 758, 759, 760, 7, 761, - 570, 762, 763, 764, 765, 584, 585, 586, 587, 588, - 766, 767, 768, 769, 520, 770, 8, 521, 589, 771, - 772, 773, 774, 775, 776, 777, 522, 778, 779, 571, - 572, 780, 781, 782, 783, 784, 785, 552, 553, 786, - 787, 788, 789, 790, 791, 792, 536, 793, 537, 794, - 795, 538, 665, 666, 667, 668, 669, 670, 671, 672, - 673, 674, 686, 687, 688, 689, 690, 691, 692, 693, - 796, 9, 797, 798, 799, 800, 801, 802, 803, 804, - 805, 806, 554, 807, 808, 809, 810, 811, 812, 813, - 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, - 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, - 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, - 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, - 854, 855, 856, 857, 858, 10, 859, 860, 861, 862, - 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, - 873, 874, 875, 876, 877, 878, 879, 11, 880, 881, - 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, - 892, 893, 894, 523, 895, 896, 897, 898, 12, 899, - 900, 901, 902, 903, 904, 905, 906, 907, 908, 13, - 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, - 919, 920, 921, 922, 923, 539, 924, 925, 926, 927, - 928, 929, 930, 14, 931, 932, 933, 15, 934, 935, - 936, 937, 938, 16, 939, 940, 941, 942, 943, 944, - 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, - 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, - 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, - 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, - 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, - 995, 996, 997, 998, 999, 1000, 1001, 1002, 1003, 1004, - 1005, 1006, 1007, 1008, 1009, 1010, 1011, 1012, 1013, 1014, - 1015, 1016, 1017, 1018, 1019, 1020, 1021, 1022, 1023, 1024, - 1025, 1026, 1027, 1028, 1029, 1030, 1031, 1032, 1033, 1034, - 1035, 1036, 1037, 1038, 1039, 1040, 1041, 1042, 1043, 1044, - 1045, 1046, 1047, 1048, 1049, 1050, 1051, 1052, 1053, 1054, - 1055, 1056, 1057, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 597, 598, 599, 600, 601, 602 -}; - -static const yytype_int16 yycheck[] = -{ - 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, - 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, - 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, - 43, 44, 312, 313, 115, 322, 49, 50, 51, 10, - 10, 10, 55, 56, 57, 58, 59, 60, 61, 62, - 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, - 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, - 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, - 93, 94, 95, 10, 45, 10, 10, 10, 10, 10, - 10, 10, 105, 106, 107, 108, 109, 45, 111, 112, - 113, 10, 10, 116, 117, 118, 119, 120, 121, 122, - 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, - 133, 134, 135, 136, 137, 138, 139, 140, 141, 10, - 10, 10, 145, 10, 10, 148, 149, 150, 151, 152, - 153, 154, 10, 156, 157, 158, 159, 160, 161, 162, - 163, 164, 165, 166, 167, 168, 170, 171, 172, 173, - 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, - 184, 185, 186, 187, 188, 10, 189, 190, 191, 192, - 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, - 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, - 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, - 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, - 10, 234, 10, 236, 237, 238, 239, 240, 241, 242, - 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, - 253, 254, 45, 10, 97, 98, 99, 100, 101, 102, - 103, 104, 0, 266, 267, 268, 269, 270, 271, 272, - 273, 274, 275, 11, 12, 10, 45, 10, 47, 48, - 10, 10, 285, 10, 10, 10, 10, 10, 81, 82, - 293, 294, 10, 296, 297, 10, 299, 300, 10, 10, - 303, 304, 305, 306, 307, 308, 309, 310, 46, 45, - 10, 314, 10, 10, 52, 108, 10, 53, 54, 10, - 323, 324, 325, 326, 10, 10, 10, 330, 331, 332, - 333, 334, 335, 336, 337, 338, 339, 288, 289, 290, - 291, 110, 10, 10, 10, 10, 10, 298, 286, 10, - 288, 289, 290, 291, 292, 10, 10, 10, 96, 10, - 298, 10, 10, 10, 10, 316, 317, 318, 319, 320, - 10, 10, 10, 10, 143, 10, 114, 146, 329, 10, - 10, 10, 10, 10, 10, 10, 155, 10, 10, 327, - 328, 10, 10, 10, 10, 10, 10, 190, 191, 10, - 10, 10, 10, 10, 10, 10, 142, 10, 144, 10, - 10, 147, 256, 257, 258, 259, 260, 261, 262, 263, - 264, 265, 277, 278, 279, 280, 281, 282, 283, 284, - 10, 169, 10, 10, 10, 10, 10, 10, 10, 10, - 10, 10, 235, 10, 10, 10, 10, 10, 10, 10, - 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, - 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, - 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, - 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, - 10, 10, 10, 10, 10, 233, 10, 10, 10, 10, - 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, - 10, 10, 10, 10, 10, 10, 10, 255, 10, 10, - 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, - 10, 10, 10, 302, 10, 10, 10, 10, 276, 10, - 10, 10, 10, 10, 10, 10, 10, 10, 10, 287, - 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, - 10, 10, 10, 10, 10, 301, 10, 10, 10, 10, - 10, 10, 10, 311, 10, 10, 10, 315, 10, 10, - 10, 10, 10, 321, 10, 10, 10, 10, 10, 10, - 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, - 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, - 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, - 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, - 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, - 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, - 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, - 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, - 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, - 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, - 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, - 10, 10, 10, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - 37, 37, 37, 37, 37, 37 -}; - -/* YYSTOS[STATE-NUM] -- The symbol kind of the accessing symbol of - state STATE-NUM. */ -static const yytype_int16 yystos[] = -{ - 0, 341, 0, 11, 12, 46, 52, 96, 114, 169, - 233, 255, 276, 287, 311, 315, 321, 342, 343, 344, - 347, 350, 353, 356, 365, 630, 641, 663, 667, 675, - 688, 700, 345, 348, 351, 354, 357, 366, 631, 642, - 664, 668, 676, 689, 701, 13, 14, 15, 16, 17, - 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, - 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, - 38, 39, 40, 41, 42, 43, 44, 49, 50, 51, - 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, - 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, - 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, - 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, - 95, 105, 106, 107, 108, 109, 111, 112, 113, 116, - 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, - 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, - 137, 138, 139, 140, 141, 145, 148, 149, 150, 151, - 152, 153, 154, 156, 157, 158, 159, 160, 161, 162, - 163, 164, 165, 166, 167, 168, 189, 190, 191, 192, - 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, - 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, - 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, - 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, - 234, 236, 237, 238, 239, 240, 241, 242, 243, 244, - 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, - 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, - 285, 293, 294, 296, 297, 299, 300, 303, 304, 305, - 306, 307, 308, 309, 310, 314, 323, 324, 325, 326, - 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, - 346, 368, 369, 370, 371, 372, 373, 374, 375, 376, - 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, - 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, - 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, - 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, - 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, - 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, - 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, - 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, - 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, - 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, - 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, - 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, - 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, - 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, - 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, - 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, - 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, - 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, - 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, - 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, - 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, - 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, - 597, 671, 672, 673, 674, 699, 45, 47, 48, 110, - 143, 146, 155, 302, 349, 598, 599, 600, 601, 602, - 603, 604, 605, 45, 53, 54, 142, 144, 147, 301, - 352, 606, 607, 608, 609, 610, 611, 612, 45, 81, - 82, 108, 190, 191, 235, 355, 623, 624, 625, 626, - 627, 628, 629, 45, 286, 288, 289, 290, 291, 292, - 298, 327, 328, 358, 613, 614, 615, 616, 617, 618, - 619, 620, 621, 622, 316, 317, 318, 319, 320, 329, - 359, 360, 361, 362, 363, 364, 367, 613, 614, 615, - 616, 617, 620, 97, 98, 99, 100, 101, 102, 103, - 104, 632, 633, 634, 635, 636, 637, 638, 639, 640, - 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, - 180, 181, 182, 183, 184, 185, 186, 187, 188, 643, - 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, - 654, 655, 656, 657, 658, 659, 660, 661, 662, 115, - 665, 666, 322, 669, 670, 256, 257, 258, 259, 260, - 261, 262, 263, 264, 265, 677, 678, 679, 680, 681, - 682, 683, 684, 685, 686, 687, 277, 278, 279, 280, - 281, 282, 283, 284, 690, 691, 692, 693, 694, 695, - 696, 697, 698, 312, 313, 702, 703, 704, 10, 10, - 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, - 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, - 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, - 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, - 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, - 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, - 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, - 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, - 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, - 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, - 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, - 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, - 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, - 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, - 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, - 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, - 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, - 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, - 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, - 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, - 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, - 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, - 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, - 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, - 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, - 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, - 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, - 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, - 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, - 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, - 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, - 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, - 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, - 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, - 10, 10, 10, 10, 10, 10, 10, 10 -}; - -/* YYR1[RULE-NUM] -- Symbol kind of the left-hand side of rule RULE-NUM. */ -static const yytype_int16 yyr1[] = -{ - 0, 340, 341, 341, 342, 342, 342, 342, 342, 342, - 342, 342, 342, 342, 342, 342, 342, 342, 343, 344, - 345, 345, 346, 346, 346, 346, 346, 346, 346, 346, - 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, - 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, - 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, - 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, - 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, - 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, - 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, - 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, - 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, - 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, - 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, - 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, - 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, - 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, - 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, - 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, - 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, - 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, - 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, - 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, - 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, - 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, - 346, 346, 346, 346, 346, 346, 346, 347, 348, 348, - 349, 349, 349, 349, 349, 349, 349, 349, 350, 351, - 351, 352, 352, 352, 352, 352, 352, 352, 353, 354, - 354, 355, 355, 355, 355, 355, 355, 355, 356, 357, - 357, 358, 358, 358, 358, 358, 358, 358, 358, 358, - 358, 359, 360, 361, 362, 363, 364, 365, 366, 366, - 367, 367, 367, 367, 367, 367, 367, 367, 367, 367, - 367, 367, 368, 369, 370, 371, 372, 373, 374, 375, - 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, - 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, - 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, - 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, - 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, - 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, - 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, - 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, - 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, - 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, - 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, - 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, - 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, - 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, - 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, - 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, - 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, - 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, - 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, - 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, - 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, - 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, - 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, - 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, - 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, - 626, 627, 628, 629, 630, 631, 631, 632, 632, 632, - 632, 632, 632, 632, 632, 633, 634, 635, 636, 637, - 638, 639, 640, 641, 642, 642, 643, 643, 643, 643, - 643, 643, 643, 643, 643, 643, 643, 643, 643, 643, - 643, 643, 643, 643, 643, 644, 645, 646, 647, 648, - 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, - 659, 660, 661, 662, 663, 664, 664, 665, 666, 667, - 668, 668, 669, 670, 671, 672, 673, 674, 675, 676, - 676, 677, 677, 677, 677, 677, 677, 677, 677, 677, - 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, - 687, 688, 689, 689, 690, 690, 690, 690, 690, 690, - 690, 690, 691, 692, 693, 694, 695, 696, 697, 698, - 699, 700, 701, 701, 702, 702, 703, 704 -}; - -/* YYR2[RULE-NUM] -- Number of symbols on the right-hand side of rule RULE-NUM. */ -static const yytype_int8 yyr2[] = -{ - 0, 2, 0, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, - 2, 0, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 2, 0, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, - 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, - 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, - 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 2, 2, 2, 2, 2, 2, 1, 2, 0, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 3, 3, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 3, 3, 4, - 4, 4, 3, 3, 4, 4, 3, 3, 2, 2, - 2, 2, 2, 2, 3, 3, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 3, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, - 3, 2, 2, 2, 1, 2, 0, 1, 1, 1, - 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, - 2, 2, 2, 1, 2, 0, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 1, 2, 0, 1, 2, 1, - 2, 0, 1, 2, 2, 2, 3, 3, 1, 2, - 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 1, 2, 0, 1, 1, 1, 1, 1, 1, - 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, - 3, 1, 2, 0, 1, 1, 2, 2 -}; - - -enum { YYENOMEM = -2 }; - -#define yyerrok (yyerrstatus = 0) -#define yyclearin (yychar = YYEMPTY) - -#define YYACCEPT goto yyacceptlab -#define YYABORT goto yyabortlab -#define YYERROR goto yyerrorlab -#define YYNOMEM goto yyexhaustedlab - - -#define YYRECOVERING() (!!yyerrstatus) - -#define YYBACKUP(Token, Value) \ - do \ - if (yychar == YYEMPTY) \ - { \ - yychar = (Token); \ - yylval = (Value); \ - YYPOPSTACK (yylen); \ - yystate = *yyssp; \ - goto yybackup; \ - } \ - else \ - { \ - yyerror (YY_("syntax error: cannot back up")); \ - YYERROR; \ - } \ - while (0) - -/* Backward compatibility with an undocumented macro. - Use YYerror or YYUNDEF. */ -#define YYERRCODE YYUNDEF - - -/* Enable debugging if requested. */ -#if YYDEBUG - -# ifndef YYFPRINTF -# include /* INFRINGES ON USER NAME SPACE */ -# define YYFPRINTF fprintf -# endif - -# define YYDPRINTF(Args) \ -do { \ - if (yydebug) \ - YYFPRINTF Args; \ -} while (0) - - - - -# define YY_SYMBOL_PRINT(Title, Kind, Value, Location) \ -do { \ - if (yydebug) \ - { \ - YYFPRINTF (stderr, "%s ", Title); \ - yy_symbol_print (stderr, \ - Kind, Value); \ - YYFPRINTF (stderr, "\n"); \ - } \ -} while (0) - - -/*-----------------------------------. -| Print this symbol's value on YYO. | -`-----------------------------------*/ - -static void -yy_symbol_value_print (FILE *yyo, - yysymbol_kind_t yykind, YYSTYPE const * const yyvaluep) -{ - FILE *yyoutput = yyo; - YY_USE (yyoutput); - if (!yyvaluep) - return; - YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN - YY_USE (yykind); - YY_IGNORE_MAYBE_UNINITIALIZED_END -} - - -/*---------------------------. -| Print this symbol on YYO. | -`---------------------------*/ - -static void -yy_symbol_print (FILE *yyo, - yysymbol_kind_t yykind, YYSTYPE const * const yyvaluep) -{ - YYFPRINTF (yyo, "%s %s (", - yykind < YYNTOKENS ? "token" : "nterm", yysymbol_name (yykind)); - - yy_symbol_value_print (yyo, yykind, yyvaluep); - YYFPRINTF (yyo, ")"); -} - -/*------------------------------------------------------------------. -| yy_stack_print -- Print the state stack from its BOTTOM up to its | -| TOP (included). | -`------------------------------------------------------------------*/ - -static void -yy_stack_print (yy_state_t *yybottom, yy_state_t *yytop) -{ - YYFPRINTF (stderr, "Stack now"); - for (; yybottom <= yytop; yybottom++) - { - int yybot = *yybottom; - YYFPRINTF (stderr, " %d", yybot); - } - YYFPRINTF (stderr, "\n"); -} - -# define YY_STACK_PRINT(Bottom, Top) \ -do { \ - if (yydebug) \ - yy_stack_print ((Bottom), (Top)); \ -} while (0) - - -/*------------------------------------------------. -| Report that the YYRULE is going to be reduced. | -`------------------------------------------------*/ - -static void -yy_reduce_print (yy_state_t *yyssp, YYSTYPE *yyvsp, - int yyrule) -{ - int yylno = yyrline[yyrule]; - int yynrhs = yyr2[yyrule]; - int yyi; - YYFPRINTF (stderr, "Reducing stack by rule %d (line %d):\n", - yyrule - 1, yylno); - /* The symbols being reduced. */ - for (yyi = 0; yyi < yynrhs; yyi++) - { - YYFPRINTF (stderr, " $%d = ", yyi + 1); - yy_symbol_print (stderr, - YY_ACCESSING_SYMBOL (+yyssp[yyi + 1 - yynrhs]), - &yyvsp[(yyi + 1) - (yynrhs)]); - YYFPRINTF (stderr, "\n"); - } -} - -# define YY_REDUCE_PRINT(Rule) \ -do { \ - if (yydebug) \ - yy_reduce_print (yyssp, yyvsp, Rule); \ -} while (0) - -/* Nonzero means print parse trace. It is left uninitialized so that - multiple parsers can coexist. */ -int yydebug; -#else /* !YYDEBUG */ -# define YYDPRINTF(Args) ((void) 0) -# define YY_SYMBOL_PRINT(Title, Kind, Value, Location) -# define YY_STACK_PRINT(Bottom, Top) -# define YY_REDUCE_PRINT(Rule) -#endif /* !YYDEBUG */ - - -/* YYINITDEPTH -- initial size of the parser's stacks. */ -#ifndef YYINITDEPTH -# define YYINITDEPTH 200 -#endif - -/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only - if the built-in stack extension method is used). - - Do not make this value too large; the results are undefined if - YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH) - evaluated with infinite-precision integer arithmetic. */ - -#ifndef YYMAXDEPTH -# define YYMAXDEPTH 10000 -#endif - - - - - - -/*-----------------------------------------------. -| Release the memory associated to this symbol. | -`-----------------------------------------------*/ - -static void -yydestruct (const char *yymsg, - yysymbol_kind_t yykind, YYSTYPE *yyvaluep) -{ - YY_USE (yyvaluep); - if (!yymsg) - yymsg = "Deleting"; - YY_SYMBOL_PRINT (yymsg, yykind, yyvaluep, yylocationp); - - YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN - YY_USE (yykind); - YY_IGNORE_MAYBE_UNINITIALIZED_END -} - - -/* Lookahead token kind. */ -int yychar; - -/* The semantic value of the lookahead symbol. */ -YYSTYPE yylval; -/* Number of syntax errors so far. */ -int yynerrs; - - - - -/*----------. -| yyparse. | -`----------*/ - -int -yyparse (void) -{ - yy_state_fast_t yystate = 0; - /* Number of tokens to shift before error messages enabled. */ - int yyerrstatus = 0; - - /* Refer to the stacks through separate pointers, to allow yyoverflow - to reallocate them elsewhere. */ - - /* Their size. */ - YYPTRDIFF_T yystacksize = YYINITDEPTH; - - /* The state stack: array, bottom, top. */ - yy_state_t yyssa[YYINITDEPTH]; - yy_state_t *yyss = yyssa; - yy_state_t *yyssp = yyss; - - /* The semantic value stack: array, bottom, top. */ - YYSTYPE yyvsa[YYINITDEPTH]; - YYSTYPE *yyvs = yyvsa; - YYSTYPE *yyvsp = yyvs; - - int yyn; - /* The return value of yyparse. */ - int yyresult; - /* Lookahead symbol kind. */ - yysymbol_kind_t yytoken = YYSYMBOL_YYEMPTY; - /* The variables used to return semantic value and location from the - action routines. */ - YYSTYPE yyval; - - - -#define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) - - /* The number of symbols on the RHS of the reduced rule. - Keep to zero when no symbol should be popped. */ - int yylen = 0; - - YYDPRINTF ((stderr, "Starting parse\n")); - - yychar = YYEMPTY; /* Cause a token to be read. */ - - goto yysetstate; - - -/*------------------------------------------------------------. -| yynewstate -- push a new state, which is found in yystate. | -`------------------------------------------------------------*/ -yynewstate: - /* In all cases, when you get here, the value and location stacks - have just been pushed. So pushing a state here evens the stacks. */ - yyssp++; - - -/*--------------------------------------------------------------------. -| yysetstate -- set current state (the top of the stack) to yystate. | -`--------------------------------------------------------------------*/ -yysetstate: - YYDPRINTF ((stderr, "Entering state %d\n", yystate)); - YY_ASSERT (0 <= yystate && yystate < YYNSTATES); - YY_IGNORE_USELESS_CAST_BEGIN - *yyssp = YY_CAST (yy_state_t, yystate); - YY_IGNORE_USELESS_CAST_END - YY_STACK_PRINT (yyss, yyssp); - - if (yyss + yystacksize - 1 <= yyssp) -#if !defined yyoverflow && !defined YYSTACK_RELOCATE - YYNOMEM; -#else - { - /* Get the current used size of the three stacks, in elements. */ - YYPTRDIFF_T yysize = yyssp - yyss + 1; - -# if defined yyoverflow - { - /* Give user a chance to reallocate the stack. Use copies of - these so that the &'s don't force the real ones into - memory. */ - yy_state_t *yyss1 = yyss; - YYSTYPE *yyvs1 = yyvs; - - /* Each stack pointer address is followed by the size of the - data in use in that stack, in bytes. This used to be a - conditional around just the two extra args, but that might - be undefined if yyoverflow is a macro. */ - yyoverflow (YY_("memory exhausted"), - &yyss1, yysize * YYSIZEOF (*yyssp), - &yyvs1, yysize * YYSIZEOF (*yyvsp), - &yystacksize); - yyss = yyss1; - yyvs = yyvs1; - } -# else /* defined YYSTACK_RELOCATE */ - /* Extend the stack our own way. */ - if (YYMAXDEPTH <= yystacksize) - YYNOMEM; - yystacksize *= 2; - if (YYMAXDEPTH < yystacksize) - yystacksize = YYMAXDEPTH; - - { - yy_state_t *yyss1 = yyss; - union yyalloc *yyptr = - YY_CAST (union yyalloc *, - YYSTACK_ALLOC (YY_CAST (YYSIZE_T, YYSTACK_BYTES (yystacksize)))); - if (! yyptr) - YYNOMEM; - YYSTACK_RELOCATE (yyss_alloc, yyss); - YYSTACK_RELOCATE (yyvs_alloc, yyvs); -# undef YYSTACK_RELOCATE - if (yyss1 != yyssa) - YYSTACK_FREE (yyss1); - } -# endif - - yyssp = yyss + yysize - 1; - yyvsp = yyvs + yysize - 1; - - YY_IGNORE_USELESS_CAST_BEGIN - YYDPRINTF ((stderr, "Stack size increased to %ld\n", - YY_CAST (long, yystacksize))); - YY_IGNORE_USELESS_CAST_END - - if (yyss + yystacksize - 1 <= yyssp) - YYABORT; - } -#endif /* !defined yyoverflow && !defined YYSTACK_RELOCATE */ - - - if (yystate == YYFINAL) - YYACCEPT; - - goto yybackup; - - -/*-----------. -| yybackup. | -`-----------*/ -yybackup: - /* Do appropriate processing given the current state. Read a - lookahead token if we need one and don't already have one. */ - - /* First try to decide what to do without reference to lookahead token. */ - yyn = yypact[yystate]; - if (yypact_value_is_default (yyn)) - goto yydefault; - - /* Not known => get a lookahead token if don't already have one. */ - - /* YYCHAR is either empty, or end-of-input, or a valid lookahead. */ - if (yychar == YYEMPTY) - { - YYDPRINTF ((stderr, "Reading a token\n")); - yychar = yylex (); - } - - if (yychar <= YYEOF) - { - yychar = YYEOF; - yytoken = YYSYMBOL_YYEOF; - YYDPRINTF ((stderr, "Now at end of input.\n")); - } - else if (yychar == YYerror) - { - /* The scanner already issued an error message, process directly - to error recovery. But do not keep the error token as - lookahead, it is too special and may lead us to an endless - loop in error recovery. */ - yychar = YYUNDEF; - yytoken = YYSYMBOL_YYerror; - goto yyerrlab1; - } - else - { - yytoken = YYTRANSLATE (yychar); - YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc); - } - - /* If the proper action on seeing token YYTOKEN is to reduce or to - detect an error, take that action. */ - yyn += yytoken; - if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) - goto yydefault; - yyn = yytable[yyn]; - if (yyn <= 0) - { - if (yytable_value_is_error (yyn)) - goto yyerrlab; - yyn = -yyn; - goto yyreduce; - } - - /* Count tokens shifted since error; after three, turn off error - status. */ - if (yyerrstatus) - yyerrstatus--; - - /* Shift the lookahead token. */ - YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc); - yystate = yyn; - YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN - *++yyvsp = yylval; - YY_IGNORE_MAYBE_UNINITIALIZED_END - - /* Discard the shifted token. */ - yychar = YYEMPTY; - goto yynewstate; - - -/*-----------------------------------------------------------. -| yydefault -- do the default action for the current state. | -`-----------------------------------------------------------*/ -yydefault: - yyn = yydefact[yystate]; - if (yyn == 0) - goto yyerrlab; - goto yyreduce; - - -/*-----------------------------. -| yyreduce -- do a reduction. | -`-----------------------------*/ -yyreduce: - /* yyn is the number of a rule to reduce with. */ - yylen = yyr2[yyn]; - - /* If YYLEN is nonzero, implement the default value of the action: - '$$ = $1'. - - Otherwise, the following line sets YYVAL to garbage. - This behavior is undocumented and Bison - users should not rely upon it. Assigning to YYVAL - unconditionally makes the parser a bit smaller, and it avoids a - GCC warning that YYVAL may be used uninitialized. */ - yyval = yyvsp[1-yylen]; - - - YY_REDUCE_PRINT (yyn); - switch (yyn) - { - case 18: /* force_toplevel: VAR_FORCE_TOPLEVEL */ -#line 210 "./util/configparser.y" - { - OUTYY(("\nP(force-toplevel)\n")); - cfg_parser->started_toplevel = 0; - } -#line 2830 "util/configparser.c" - break; - - case 19: /* serverstart: VAR_SERVER */ -#line 217 "./util/configparser.y" - { - OUTYY(("\nP(server:)\n")); - cfg_parser->started_toplevel = 1; - } -#line 2839 "util/configparser.c" - break; - - case 257: /* stubstart: VAR_STUB_ZONE */ -#line 331 "./util/configparser.y" - { - struct config_stub* s; - OUTYY(("\nP(stub_zone:)\n")); - cfg_parser->started_toplevel = 1; - s = (struct config_stub*)calloc(1, sizeof(struct config_stub)); - if(s) { - s->next = cfg_parser->cfg->stubs; - cfg_parser->cfg->stubs = s; - } else { - yyerror("out of memory"); - } - } -#line 2856 "util/configparser.c" - break; - - case 268: /* forwardstart: VAR_FORWARD_ZONE */ -#line 350 "./util/configparser.y" - { - struct config_stub* s; - OUTYY(("\nP(forward_zone:)\n")); - cfg_parser->started_toplevel = 1; - s = (struct config_stub*)calloc(1, sizeof(struct config_stub)); - if(s) { - s->next = cfg_parser->cfg->forwards; - cfg_parser->cfg->forwards = s; - } else { - yyerror("out of memory"); - } - } -#line 2873 "util/configparser.c" - break; - - case 278: /* viewstart: VAR_VIEW */ -#line 369 "./util/configparser.y" - { - struct config_view* s; - OUTYY(("\nP(view:)\n")); - cfg_parser->started_toplevel = 1; - s = (struct config_view*)calloc(1, sizeof(struct config_view)); - if(s) { - s->next = cfg_parser->cfg->views; - if(s->next && !s->next->name) - yyerror("view without name"); - cfg_parser->cfg->views = s; - } else { - yyerror("out of memory"); - } - } -#line 2892 "util/configparser.c" - break; - - case 288: /* authstart: VAR_AUTH_ZONE */ -#line 390 "./util/configparser.y" - { - struct config_auth* s; - OUTYY(("\nP(auth_zone:)\n")); - cfg_parser->started_toplevel = 1; - s = (struct config_auth*)calloc(1, sizeof(struct config_auth)); - if(s) { - s->next = cfg_parser->cfg->auths; - cfg_parser->cfg->auths = s; - /* defaults for auth zone */ - s->for_downstream = 1; - s->for_upstream = 1; - s->fallback_enabled = 0; - s->zonemd_check = 0; - s->zonemd_reject_absence = 0; - s->isrpz = 0; - } else { - yyerror("out of memory"); - } - } -#line 2916 "util/configparser.c" - break; - - case 301: /* rpz_tag: VAR_TAGS STRING_ARG */ -#line 418 "./util/configparser.y" - { - uint8_t* bitlist; - size_t len = 0; - OUTYY(("P(server_local_zone_tag:%s)\n", (yyvsp[0].str))); - bitlist = config_parse_taglist(cfg_parser->cfg, (yyvsp[0].str), - &len); - free((yyvsp[0].str)); - if(!bitlist) { - yyerror("could not parse tags, (define-tag them first)"); - } - if(bitlist) { - cfg_parser->cfg->auths->rpz_taglist = bitlist; - cfg_parser->cfg->auths->rpz_taglistlen = len; - - } - } -#line 2937 "util/configparser.c" - break; - - case 302: /* rpz_action_override: VAR_RPZ_ACTION_OVERRIDE STRING_ARG */ -#line 437 "./util/configparser.y" - { - OUTYY(("P(rpz_action_override:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "nxdomain")!=0 && strcmp((yyvsp[0].str), "nodata")!=0 && - strcmp((yyvsp[0].str), "passthru")!=0 && strcmp((yyvsp[0].str), "drop")!=0 && - strcmp((yyvsp[0].str), "cname")!=0 && strcmp((yyvsp[0].str), "disabled")!=0) { - yyerror("rpz-action-override action: expected nxdomain, " - "nodata, passthru, drop, cname or disabled"); - free((yyvsp[0].str)); - cfg_parser->cfg->auths->rpz_action_override = NULL; - } - else { - cfg_parser->cfg->auths->rpz_action_override = (yyvsp[0].str); - } - } -#line 2956 "util/configparser.c" - break; - - case 303: /* rpz_cname_override: VAR_RPZ_CNAME_OVERRIDE STRING_ARG */ -#line 454 "./util/configparser.y" - { - OUTYY(("P(rpz_cname_override:%s)\n", (yyvsp[0].str))); - free(cfg_parser->cfg->auths->rpz_cname); - cfg_parser->cfg->auths->rpz_cname = (yyvsp[0].str); - } -#line 2966 "util/configparser.c" - break; - - case 304: /* rpz_log: VAR_RPZ_LOG STRING_ARG */ -#line 462 "./util/configparser.y" - { - OUTYY(("P(rpz_log:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->auths->rpz_log = (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 2978 "util/configparser.c" - break; - - case 305: /* rpz_log_name: VAR_RPZ_LOG_NAME STRING_ARG */ -#line 472 "./util/configparser.y" - { - OUTYY(("P(rpz_log_name:%s)\n", (yyvsp[0].str))); - free(cfg_parser->cfg->auths->rpz_log_name); - cfg_parser->cfg->auths->rpz_log_name = (yyvsp[0].str); - } -#line 2988 "util/configparser.c" - break; - - case 306: /* rpz_signal_nxdomain_ra: VAR_RPZ_SIGNAL_NXDOMAIN_RA STRING_ARG */ -#line 479 "./util/configparser.y" - { - OUTYY(("P(rpz_signal_nxdomain_ra:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->auths->rpz_signal_nxdomain_ra = (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 3000 "util/configparser.c" - break; - - case 307: /* rpzstart: VAR_RPZ */ -#line 489 "./util/configparser.y" - { - struct config_auth* s; - OUTYY(("\nP(rpz:)\n")); - cfg_parser->started_toplevel = 1; - s = (struct config_auth*)calloc(1, sizeof(struct config_auth)); - if(s) { - s->next = cfg_parser->cfg->auths; - cfg_parser->cfg->auths = s; - /* defaults for RPZ auth zone */ - s->for_downstream = 0; - s->for_upstream = 0; - s->fallback_enabled = 0; - s->isrpz = 1; - } else { - yyerror("out of memory"); - } - } -#line 3022 "util/configparser.c" - break; - - case 322: /* server_num_threads: VAR_NUM_THREADS STRING_ARG */ -#line 514 "./util/configparser.y" - { - OUTYY(("P(server_num_threads:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0) - yyerror("number expected"); - else cfg_parser->cfg->num_threads = atoi((yyvsp[0].str)); - free((yyvsp[0].str)); - } -#line 3034 "util/configparser.c" - break; - - case 323: /* server_verbosity: VAR_VERBOSITY STRING_ARG */ -#line 523 "./util/configparser.y" - { - OUTYY(("P(server_verbosity:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0) - yyerror("number expected"); - else cfg_parser->cfg->verbosity = atoi((yyvsp[0].str)); - free((yyvsp[0].str)); - } -#line 3046 "util/configparser.c" - break; - - case 324: /* server_statistics_interval: VAR_STATISTICS_INTERVAL STRING_ARG */ -#line 532 "./util/configparser.y" - { - OUTYY(("P(server_statistics_interval:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "") == 0 || strcmp((yyvsp[0].str), "0") == 0) - cfg_parser->cfg->stat_interval = 0; - else if(atoi((yyvsp[0].str)) == 0) - yyerror("number expected"); - else cfg_parser->cfg->stat_interval = atoi((yyvsp[0].str)); - free((yyvsp[0].str)); - } -#line 3060 "util/configparser.c" - break; - - case 325: /* server_statistics_cumulative: VAR_STATISTICS_CUMULATIVE STRING_ARG */ -#line 543 "./util/configparser.y" - { - OUTYY(("P(server_statistics_cumulative:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->stat_cumulative = (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 3072 "util/configparser.c" - break; - - case 326: /* server_extended_statistics: VAR_EXTENDED_STATISTICS STRING_ARG */ -#line 552 "./util/configparser.y" - { - OUTYY(("P(server_extended_statistics:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->stat_extended = (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 3084 "util/configparser.c" - break; - - case 327: /* server_statistics_inhibit_zero: VAR_STATISTICS_INHIBIT_ZERO STRING_ARG */ -#line 561 "./util/configparser.y" - { - OUTYY(("P(server_statistics_inhibit_zero:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->stat_inhibit_zero = (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 3096 "util/configparser.c" - break; - - case 328: /* server_shm_enable: VAR_SHM_ENABLE STRING_ARG */ -#line 570 "./util/configparser.y" - { - OUTYY(("P(server_shm_enable:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->shm_enable = (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 3108 "util/configparser.c" - break; - - case 329: /* server_shm_key: VAR_SHM_KEY STRING_ARG */ -#line 579 "./util/configparser.y" - { - OUTYY(("P(server_shm_key:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "") == 0 || strcmp((yyvsp[0].str), "0") == 0) - cfg_parser->cfg->shm_key = 0; - else if(atoi((yyvsp[0].str)) == 0) - yyerror("number expected"); - else cfg_parser->cfg->shm_key = atoi((yyvsp[0].str)); - free((yyvsp[0].str)); - } -#line 3122 "util/configparser.c" - break; - - case 330: /* server_port: VAR_PORT STRING_ARG */ -#line 590 "./util/configparser.y" - { - OUTYY(("P(server_port:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0) - yyerror("port number expected"); - else cfg_parser->cfg->port = atoi((yyvsp[0].str)); - free((yyvsp[0].str)); - } -#line 3134 "util/configparser.c" - break; - - case 331: /* server_send_client_subnet: VAR_SEND_CLIENT_SUBNET STRING_ARG */ -#line 599 "./util/configparser.y" - { - #ifdef CLIENT_SUBNET - OUTYY(("P(server_send_client_subnet:%s)\n", (yyvsp[0].str))); - if(!cfg_strlist_insert(&cfg_parser->cfg->client_subnet, (yyvsp[0].str))) - fatal_exit("out of memory adding client-subnet"); - #else - OUTYY(("P(Compiled without edns subnet option, ignoring)\n")); - free((yyvsp[0].str)); - #endif - } -#line 3149 "util/configparser.c" - break; - - case 332: /* server_client_subnet_zone: VAR_CLIENT_SUBNET_ZONE STRING_ARG */ -#line 611 "./util/configparser.y" - { - #ifdef CLIENT_SUBNET - OUTYY(("P(server_client_subnet_zone:%s)\n", (yyvsp[0].str))); - if(!cfg_strlist_insert(&cfg_parser->cfg->client_subnet_zone, - (yyvsp[0].str))) - fatal_exit("out of memory adding client-subnet-zone"); - #else - OUTYY(("P(Compiled without edns subnet option, ignoring)\n")); - free((yyvsp[0].str)); - #endif - } -#line 3165 "util/configparser.c" - break; - - case 333: /* server_client_subnet_always_forward: VAR_CLIENT_SUBNET_ALWAYS_FORWARD STRING_ARG */ -#line 625 "./util/configparser.y" - { - #ifdef CLIENT_SUBNET - OUTYY(("P(server_client_subnet_always_forward:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else - cfg_parser->cfg->client_subnet_always_forward = - (strcmp((yyvsp[0].str), "yes")==0); - #else - OUTYY(("P(Compiled without edns subnet option, ignoring)\n")); - #endif - free((yyvsp[0].str)); - } -#line 3183 "util/configparser.c" - break; - - case 334: /* server_client_subnet_opcode: VAR_CLIENT_SUBNET_OPCODE STRING_ARG */ -#line 640 "./util/configparser.y" - { - #ifdef CLIENT_SUBNET - OUTYY(("P(client_subnet_opcode:%s)\n", (yyvsp[0].str))); - OUTYY(("P(Deprecated option, ignoring)\n")); - #else - OUTYY(("P(Compiled without edns subnet option, ignoring)\n")); - #endif - free((yyvsp[0].str)); - } -#line 3197 "util/configparser.c" - break; - - case 335: /* server_max_client_subnet_ipv4: VAR_MAX_CLIENT_SUBNET_IPV4 STRING_ARG */ -#line 651 "./util/configparser.y" - { - #ifdef CLIENT_SUBNET - OUTYY(("P(max_client_subnet_ipv4:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0) - yyerror("IPv4 subnet length expected"); - else if (atoi((yyvsp[0].str)) > 32) - cfg_parser->cfg->max_client_subnet_ipv4 = 32; - else if (atoi((yyvsp[0].str)) < 0) - cfg_parser->cfg->max_client_subnet_ipv4 = 0; - else cfg_parser->cfg->max_client_subnet_ipv4 = (uint8_t)atoi((yyvsp[0].str)); - #else - OUTYY(("P(Compiled without edns subnet option, ignoring)\n")); - #endif - free((yyvsp[0].str)); - } -#line 3217 "util/configparser.c" - break; - - case 336: /* server_max_client_subnet_ipv6: VAR_MAX_CLIENT_SUBNET_IPV6 STRING_ARG */ -#line 668 "./util/configparser.y" - { - #ifdef CLIENT_SUBNET - OUTYY(("P(max_client_subnet_ipv6:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0) - yyerror("Ipv6 subnet length expected"); - else if (atoi((yyvsp[0].str)) > 128) - cfg_parser->cfg->max_client_subnet_ipv6 = 128; - else if (atoi((yyvsp[0].str)) < 0) - cfg_parser->cfg->max_client_subnet_ipv6 = 0; - else cfg_parser->cfg->max_client_subnet_ipv6 = (uint8_t)atoi((yyvsp[0].str)); - #else - OUTYY(("P(Compiled without edns subnet option, ignoring)\n")); - #endif - free((yyvsp[0].str)); - } -#line 3237 "util/configparser.c" - break; - - case 337: /* server_min_client_subnet_ipv4: VAR_MIN_CLIENT_SUBNET_IPV4 STRING_ARG */ -#line 685 "./util/configparser.y" - { - #ifdef CLIENT_SUBNET - OUTYY(("P(min_client_subnet_ipv4:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0) - yyerror("IPv4 subnet length expected"); - else if (atoi((yyvsp[0].str)) > 32) - cfg_parser->cfg->min_client_subnet_ipv4 = 32; - else if (atoi((yyvsp[0].str)) < 0) - cfg_parser->cfg->min_client_subnet_ipv4 = 0; - else cfg_parser->cfg->min_client_subnet_ipv4 = (uint8_t)atoi((yyvsp[0].str)); - #else - OUTYY(("P(Compiled without edns subnet option, ignoring)\n")); - #endif - free((yyvsp[0].str)); - } -#line 3257 "util/configparser.c" - break; - - case 338: /* server_min_client_subnet_ipv6: VAR_MIN_CLIENT_SUBNET_IPV6 STRING_ARG */ -#line 702 "./util/configparser.y" - { - #ifdef CLIENT_SUBNET - OUTYY(("P(min_client_subnet_ipv6:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0) - yyerror("Ipv6 subnet length expected"); - else if (atoi((yyvsp[0].str)) > 128) - cfg_parser->cfg->min_client_subnet_ipv6 = 128; - else if (atoi((yyvsp[0].str)) < 0) - cfg_parser->cfg->min_client_subnet_ipv6 = 0; - else cfg_parser->cfg->min_client_subnet_ipv6 = (uint8_t)atoi((yyvsp[0].str)); - #else - OUTYY(("P(Compiled without edns subnet option, ignoring)\n")); - #endif - free((yyvsp[0].str)); - } -#line 3277 "util/configparser.c" - break; - - case 339: /* server_max_ecs_tree_size_ipv4: VAR_MAX_ECS_TREE_SIZE_IPV4 STRING_ARG */ -#line 719 "./util/configparser.y" - { - #ifdef CLIENT_SUBNET - OUTYY(("P(max_ecs_tree_size_ipv4:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0) - yyerror("IPv4 ECS tree size expected"); - else if (atoi((yyvsp[0].str)) < 0) - cfg_parser->cfg->max_ecs_tree_size_ipv4 = 0; - else cfg_parser->cfg->max_ecs_tree_size_ipv4 = (uint32_t)atoi((yyvsp[0].str)); - #else - OUTYY(("P(Compiled without edns subnet option, ignoring)\n")); - #endif - free((yyvsp[0].str)); - } -#line 3295 "util/configparser.c" - break; - - case 340: /* server_max_ecs_tree_size_ipv6: VAR_MAX_ECS_TREE_SIZE_IPV6 STRING_ARG */ -#line 734 "./util/configparser.y" - { - #ifdef CLIENT_SUBNET - OUTYY(("P(max_ecs_tree_size_ipv6:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0) - yyerror("IPv6 ECS tree size expected"); - else if (atoi((yyvsp[0].str)) < 0) - cfg_parser->cfg->max_ecs_tree_size_ipv6 = 0; - else cfg_parser->cfg->max_ecs_tree_size_ipv6 = (uint32_t)atoi((yyvsp[0].str)); - #else - OUTYY(("P(Compiled without edns subnet option, ignoring)\n")); - #endif - free((yyvsp[0].str)); - } -#line 3313 "util/configparser.c" - break; - - case 341: /* server_interface: VAR_INTERFACE STRING_ARG */ -#line 749 "./util/configparser.y" - { - OUTYY(("P(server_interface:%s)\n", (yyvsp[0].str))); - if(cfg_parser->cfg->num_ifs == 0) - cfg_parser->cfg->ifs = calloc(1, sizeof(char*)); - else cfg_parser->cfg->ifs = realloc(cfg_parser->cfg->ifs, - (cfg_parser->cfg->num_ifs+1)*sizeof(char*)); - if(!cfg_parser->cfg->ifs) - yyerror("out of memory"); - else - cfg_parser->cfg->ifs[cfg_parser->cfg->num_ifs++] = (yyvsp[0].str); - } -#line 3329 "util/configparser.c" - break; - - case 342: /* server_outgoing_interface: VAR_OUTGOING_INTERFACE STRING_ARG */ -#line 762 "./util/configparser.y" - { - OUTYY(("P(server_outgoing_interface:%s)\n", (yyvsp[0].str))); - if(cfg_parser->cfg->num_out_ifs == 0) - cfg_parser->cfg->out_ifs = calloc(1, sizeof(char*)); - else cfg_parser->cfg->out_ifs = realloc( - cfg_parser->cfg->out_ifs, - (cfg_parser->cfg->num_out_ifs+1)*sizeof(char*)); - if(!cfg_parser->cfg->out_ifs) - yyerror("out of memory"); - else - cfg_parser->cfg->out_ifs[ - cfg_parser->cfg->num_out_ifs++] = (yyvsp[0].str); - } -#line 3347 "util/configparser.c" - break; - - case 343: /* server_outgoing_range: VAR_OUTGOING_RANGE STRING_ARG */ -#line 777 "./util/configparser.y" - { - OUTYY(("P(server_outgoing_range:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0) - yyerror("number expected"); - else cfg_parser->cfg->outgoing_num_ports = atoi((yyvsp[0].str)); - free((yyvsp[0].str)); - } -#line 3359 "util/configparser.c" - break; - - case 344: /* server_outgoing_port_permit: VAR_OUTGOING_PORT_PERMIT STRING_ARG */ -#line 786 "./util/configparser.y" - { - OUTYY(("P(server_outgoing_port_permit:%s)\n", (yyvsp[0].str))); - if(!cfg_mark_ports((yyvsp[0].str), 1, - cfg_parser->cfg->outgoing_avail_ports, 65536)) - yyerror("port number or range (\"low-high\") expected"); - free((yyvsp[0].str)); - } -#line 3371 "util/configparser.c" - break; - - case 345: /* server_outgoing_port_avoid: VAR_OUTGOING_PORT_AVOID STRING_ARG */ -#line 795 "./util/configparser.y" - { - OUTYY(("P(server_outgoing_port_avoid:%s)\n", (yyvsp[0].str))); - if(!cfg_mark_ports((yyvsp[0].str), 0, - cfg_parser->cfg->outgoing_avail_ports, 65536)) - yyerror("port number or range (\"low-high\") expected"); - free((yyvsp[0].str)); - } -#line 3383 "util/configparser.c" - break; - - case 346: /* server_outgoing_num_tcp: VAR_OUTGOING_NUM_TCP STRING_ARG */ -#line 804 "./util/configparser.y" - { - OUTYY(("P(server_outgoing_num_tcp:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0) - yyerror("number expected"); - else cfg_parser->cfg->outgoing_num_tcp = atoi((yyvsp[0].str)); - free((yyvsp[0].str)); - } -#line 3395 "util/configparser.c" - break; - - case 347: /* server_incoming_num_tcp: VAR_INCOMING_NUM_TCP STRING_ARG */ -#line 813 "./util/configparser.y" - { - OUTYY(("P(server_incoming_num_tcp:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0) - yyerror("number expected"); - else cfg_parser->cfg->incoming_num_tcp = atoi((yyvsp[0].str)); - free((yyvsp[0].str)); - } -#line 3407 "util/configparser.c" - break; - - case 348: /* server_interface_automatic: VAR_INTERFACE_AUTOMATIC STRING_ARG */ -#line 822 "./util/configparser.y" - { - OUTYY(("P(server_interface_automatic:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->if_automatic = (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 3419 "util/configparser.c" - break; - - case 349: /* server_interface_automatic_ports: VAR_INTERFACE_AUTOMATIC_PORTS STRING_ARG */ -#line 831 "./util/configparser.y" - { - OUTYY(("P(server_interface_automatic_ports:%s)\n", (yyvsp[0].str))); - free(cfg_parser->cfg->if_automatic_ports); - cfg_parser->cfg->if_automatic_ports = (yyvsp[0].str); - } -#line 3429 "util/configparser.c" - break; - - case 350: /* server_do_ip4: VAR_DO_IP4 STRING_ARG */ -#line 838 "./util/configparser.y" - { - OUTYY(("P(server_do_ip4:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->do_ip4 = (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 3441 "util/configparser.c" - break; - - case 351: /* server_do_ip6: VAR_DO_IP6 STRING_ARG */ -#line 847 "./util/configparser.y" - { - OUTYY(("P(server_do_ip6:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->do_ip6 = (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 3453 "util/configparser.c" - break; - - case 352: /* server_do_udp: VAR_DO_UDP STRING_ARG */ -#line 856 "./util/configparser.y" - { - OUTYY(("P(server_do_udp:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->do_udp = (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 3465 "util/configparser.c" - break; - - case 353: /* server_do_tcp: VAR_DO_TCP STRING_ARG */ -#line 865 "./util/configparser.y" - { - OUTYY(("P(server_do_tcp:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->do_tcp = (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 3477 "util/configparser.c" - break; - - case 354: /* server_prefer_ip4: VAR_PREFER_IP4 STRING_ARG */ -#line 874 "./util/configparser.y" - { - OUTYY(("P(server_prefer_ip4:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->prefer_ip4 = (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 3489 "util/configparser.c" - break; - - case 355: /* server_prefer_ip6: VAR_PREFER_IP6 STRING_ARG */ -#line 883 "./util/configparser.y" - { - OUTYY(("P(server_prefer_ip6:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->prefer_ip6 = (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 3501 "util/configparser.c" - break; - - case 356: /* server_tcp_mss: VAR_TCP_MSS STRING_ARG */ -#line 892 "./util/configparser.y" - { - OUTYY(("P(server_tcp_mss:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0) - yyerror("number expected"); - else cfg_parser->cfg->tcp_mss = atoi((yyvsp[0].str)); - free((yyvsp[0].str)); - } -#line 3513 "util/configparser.c" - break; - - case 357: /* server_outgoing_tcp_mss: VAR_OUTGOING_TCP_MSS STRING_ARG */ -#line 901 "./util/configparser.y" - { - OUTYY(("P(server_outgoing_tcp_mss:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0) - yyerror("number expected"); - else cfg_parser->cfg->outgoing_tcp_mss = atoi((yyvsp[0].str)); - free((yyvsp[0].str)); - } -#line 3525 "util/configparser.c" - break; - - case 358: /* server_tcp_idle_timeout: VAR_TCP_IDLE_TIMEOUT STRING_ARG */ -#line 910 "./util/configparser.y" - { - OUTYY(("P(server_tcp_idle_timeout:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0) - yyerror("number expected"); - else if (atoi((yyvsp[0].str)) > 120000) - cfg_parser->cfg->tcp_idle_timeout = 120000; - else if (atoi((yyvsp[0].str)) < 1) - cfg_parser->cfg->tcp_idle_timeout = 1; - else cfg_parser->cfg->tcp_idle_timeout = atoi((yyvsp[0].str)); - free((yyvsp[0].str)); - } -#line 3541 "util/configparser.c" - break; - - case 359: /* server_max_reuse_tcp_queries: VAR_MAX_REUSE_TCP_QUERIES STRING_ARG */ -#line 923 "./util/configparser.y" - { - OUTYY(("P(server_max_reuse_tcp_queries:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0) - yyerror("number expected"); - else if (atoi((yyvsp[0].str)) < 1) - cfg_parser->cfg->max_reuse_tcp_queries = 0; - else cfg_parser->cfg->max_reuse_tcp_queries = atoi((yyvsp[0].str)); - free((yyvsp[0].str)); - } -#line 3555 "util/configparser.c" - break; - - case 360: /* server_tcp_reuse_timeout: VAR_TCP_REUSE_TIMEOUT STRING_ARG */ -#line 934 "./util/configparser.y" - { - OUTYY(("P(server_tcp_reuse_timeout:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0) - yyerror("number expected"); - else if (atoi((yyvsp[0].str)) < 1) - cfg_parser->cfg->tcp_reuse_timeout = 0; - else cfg_parser->cfg->tcp_reuse_timeout = atoi((yyvsp[0].str)); - free((yyvsp[0].str)); - } -#line 3569 "util/configparser.c" - break; - - case 361: /* server_tcp_auth_query_timeout: VAR_TCP_AUTH_QUERY_TIMEOUT STRING_ARG */ -#line 945 "./util/configparser.y" - { - OUTYY(("P(server_tcp_auth_query_timeout:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0) - yyerror("number expected"); - else if (atoi((yyvsp[0].str)) < 1) - cfg_parser->cfg->tcp_auth_query_timeout = 0; - else cfg_parser->cfg->tcp_auth_query_timeout = atoi((yyvsp[0].str)); - free((yyvsp[0].str)); - } -#line 3583 "util/configparser.c" - break; - - case 362: /* server_tcp_keepalive: VAR_EDNS_TCP_KEEPALIVE STRING_ARG */ -#line 956 "./util/configparser.y" - { - OUTYY(("P(server_tcp_keepalive:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->do_tcp_keepalive = (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 3595 "util/configparser.c" - break; - - case 363: /* server_tcp_keepalive_timeout: VAR_EDNS_TCP_KEEPALIVE_TIMEOUT STRING_ARG */ -#line 965 "./util/configparser.y" - { - OUTYY(("P(server_tcp_keepalive_timeout:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0) - yyerror("number expected"); - else if (atoi((yyvsp[0].str)) > 6553500) - cfg_parser->cfg->tcp_keepalive_timeout = 6553500; - else if (atoi((yyvsp[0].str)) < 1) - cfg_parser->cfg->tcp_keepalive_timeout = 0; - else cfg_parser->cfg->tcp_keepalive_timeout = atoi((yyvsp[0].str)); - free((yyvsp[0].str)); - } -#line 3611 "util/configparser.c" - break; - - case 364: /* server_tcp_upstream: VAR_TCP_UPSTREAM STRING_ARG */ -#line 978 "./util/configparser.y" - { - OUTYY(("P(server_tcp_upstream:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->tcp_upstream = (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 3623 "util/configparser.c" - break; - - case 365: /* server_udp_upstream_without_downstream: VAR_UDP_UPSTREAM_WITHOUT_DOWNSTREAM STRING_ARG */ -#line 987 "./util/configparser.y" - { - OUTYY(("P(server_udp_upstream_without_downstream:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->udp_upstream_without_downstream = (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 3635 "util/configparser.c" - break; - - case 366: /* server_ssl_upstream: VAR_SSL_UPSTREAM STRING_ARG */ -#line 996 "./util/configparser.y" - { - OUTYY(("P(server_ssl_upstream:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->ssl_upstream = (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 3647 "util/configparser.c" - break; - - case 367: /* server_ssl_service_key: VAR_SSL_SERVICE_KEY STRING_ARG */ -#line 1005 "./util/configparser.y" - { - OUTYY(("P(server_ssl_service_key:%s)\n", (yyvsp[0].str))); - free(cfg_parser->cfg->ssl_service_key); - cfg_parser->cfg->ssl_service_key = (yyvsp[0].str); - } -#line 3657 "util/configparser.c" - break; - - case 368: /* server_ssl_service_pem: VAR_SSL_SERVICE_PEM STRING_ARG */ -#line 1012 "./util/configparser.y" - { - OUTYY(("P(server_ssl_service_pem:%s)\n", (yyvsp[0].str))); - free(cfg_parser->cfg->ssl_service_pem); - cfg_parser->cfg->ssl_service_pem = (yyvsp[0].str); - } -#line 3667 "util/configparser.c" - break; - - case 369: /* server_ssl_port: VAR_SSL_PORT STRING_ARG */ -#line 1019 "./util/configparser.y" - { - OUTYY(("P(server_ssl_port:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0) - yyerror("port number expected"); - else cfg_parser->cfg->ssl_port = atoi((yyvsp[0].str)); - free((yyvsp[0].str)); - } -#line 3679 "util/configparser.c" - break; - - case 370: /* server_tls_cert_bundle: VAR_TLS_CERT_BUNDLE STRING_ARG */ -#line 1028 "./util/configparser.y" - { - OUTYY(("P(server_tls_cert_bundle:%s)\n", (yyvsp[0].str))); - free(cfg_parser->cfg->tls_cert_bundle); - cfg_parser->cfg->tls_cert_bundle = (yyvsp[0].str); - } -#line 3689 "util/configparser.c" - break; - - case 371: /* server_tls_win_cert: VAR_TLS_WIN_CERT STRING_ARG */ -#line 1035 "./util/configparser.y" - { - OUTYY(("P(server_tls_win_cert:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->tls_win_cert = (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 3701 "util/configparser.c" - break; - - case 372: /* server_tls_additional_port: VAR_TLS_ADDITIONAL_PORT STRING_ARG */ -#line 1044 "./util/configparser.y" - { - OUTYY(("P(server_tls_additional_port:%s)\n", (yyvsp[0].str))); - if(!cfg_strlist_insert(&cfg_parser->cfg->tls_additional_port, - (yyvsp[0].str))) - yyerror("out of memory"); - } -#line 3712 "util/configparser.c" - break; - - case 373: /* server_tls_ciphers: VAR_TLS_CIPHERS STRING_ARG */ -#line 1052 "./util/configparser.y" - { - OUTYY(("P(server_tls_ciphers:%s)\n", (yyvsp[0].str))); - free(cfg_parser->cfg->tls_ciphers); - cfg_parser->cfg->tls_ciphers = (yyvsp[0].str); - } -#line 3722 "util/configparser.c" - break; - - case 374: /* server_tls_ciphersuites: VAR_TLS_CIPHERSUITES STRING_ARG */ -#line 1059 "./util/configparser.y" - { - OUTYY(("P(server_tls_ciphersuites:%s)\n", (yyvsp[0].str))); - free(cfg_parser->cfg->tls_ciphersuites); - cfg_parser->cfg->tls_ciphersuites = (yyvsp[0].str); - } -#line 3732 "util/configparser.c" - break; - - case 375: /* server_tls_session_ticket_keys: VAR_TLS_SESSION_TICKET_KEYS STRING_ARG */ -#line 1066 "./util/configparser.y" - { - OUTYY(("P(server_tls_session_ticket_keys:%s)\n", (yyvsp[0].str))); - if(!cfg_strlist_append(&cfg_parser->cfg->tls_session_ticket_keys, - (yyvsp[0].str))) - yyerror("out of memory"); - } -#line 3743 "util/configparser.c" - break; - - case 376: /* server_tls_use_sni: VAR_TLS_USE_SNI STRING_ARG */ -#line 1074 "./util/configparser.y" - { - OUTYY(("P(server_tls_use_sni:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->tls_use_sni = (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 3755 "util/configparser.c" - break; - - case 377: /* server_https_port: VAR_HTTPS_PORT STRING_ARG */ -#line 1083 "./util/configparser.y" - { - OUTYY(("P(server_https_port:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0) - yyerror("port number expected"); - else cfg_parser->cfg->https_port = atoi((yyvsp[0].str)); - free((yyvsp[0].str)); - } -#line 3767 "util/configparser.c" - break; - - case 378: /* server_http_endpoint: VAR_HTTP_ENDPOINT STRING_ARG */ -#line 1091 "./util/configparser.y" - { - OUTYY(("P(server_http_endpoint:%s)\n", (yyvsp[0].str))); - free(cfg_parser->cfg->http_endpoint); - if((yyvsp[0].str) && (yyvsp[0].str)[0] != '/') { - cfg_parser->cfg->http_endpoint = malloc(strlen((yyvsp[0].str))+2); - if(!cfg_parser->cfg->http_endpoint) - yyerror("out of memory"); - cfg_parser->cfg->http_endpoint[0] = '/'; - memmove(cfg_parser->cfg->http_endpoint+1, (yyvsp[0].str), - strlen((yyvsp[0].str))+1); - free((yyvsp[0].str)); - } else { - cfg_parser->cfg->http_endpoint = (yyvsp[0].str); - } - } -#line 3787 "util/configparser.c" - break; - - case 379: /* server_http_max_streams: VAR_HTTP_MAX_STREAMS STRING_ARG */ -#line 1107 "./util/configparser.y" - { - OUTYY(("P(server_http_max_streams:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0) - yyerror("number expected"); - else cfg_parser->cfg->http_max_streams = atoi((yyvsp[0].str)); - free((yyvsp[0].str)); - } -#line 3799 "util/configparser.c" - break; - - case 380: /* server_http_query_buffer_size: VAR_HTTP_QUERY_BUFFER_SIZE STRING_ARG */ -#line 1115 "./util/configparser.y" - { - OUTYY(("P(server_http_query_buffer_size:%s)\n", (yyvsp[0].str))); - if(!cfg_parse_memsize((yyvsp[0].str), - &cfg_parser->cfg->http_query_buffer_size)) - yyerror("memory size expected"); - free((yyvsp[0].str)); - } -#line 3811 "util/configparser.c" - break; - - case 381: /* server_http_response_buffer_size: VAR_HTTP_RESPONSE_BUFFER_SIZE STRING_ARG */ -#line 1123 "./util/configparser.y" - { - OUTYY(("P(server_http_response_buffer_size:%s)\n", (yyvsp[0].str))); - if(!cfg_parse_memsize((yyvsp[0].str), - &cfg_parser->cfg->http_response_buffer_size)) - yyerror("memory size expected"); - free((yyvsp[0].str)); - } -#line 3823 "util/configparser.c" - break; - - case 382: /* server_http_nodelay: VAR_HTTP_NODELAY STRING_ARG */ -#line 1131 "./util/configparser.y" - { - OUTYY(("P(server_http_nodelay:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->http_nodelay = (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 3835 "util/configparser.c" - break; - - case 383: /* server_http_notls_downstream: VAR_HTTP_NOTLS_DOWNSTREAM STRING_ARG */ -#line 1139 "./util/configparser.y" - { - OUTYY(("P(server_http_notls_downstream:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->http_notls_downstream = (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 3847 "util/configparser.c" - break; - - case 384: /* server_use_systemd: VAR_USE_SYSTEMD STRING_ARG */ -#line 1147 "./util/configparser.y" - { - OUTYY(("P(server_use_systemd:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->use_systemd = (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 3859 "util/configparser.c" - break; - - case 385: /* server_do_daemonize: VAR_DO_DAEMONIZE STRING_ARG */ -#line 1156 "./util/configparser.y" - { - OUTYY(("P(server_do_daemonize:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->do_daemonize = (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 3871 "util/configparser.c" - break; - - case 386: /* server_use_syslog: VAR_USE_SYSLOG STRING_ARG */ -#line 1165 "./util/configparser.y" - { - OUTYY(("P(server_use_syslog:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->use_syslog = (strcmp((yyvsp[0].str), "yes")==0); -#if !defined(HAVE_SYSLOG_H) && !defined(UB_ON_WINDOWS) - if(strcmp((yyvsp[0].str), "yes") == 0) - yyerror("no syslog services are available. " - "(reconfigure and compile to add)"); -#endif - free((yyvsp[0].str)); - } -#line 3888 "util/configparser.c" - break; - - case 387: /* server_log_time_ascii: VAR_LOG_TIME_ASCII STRING_ARG */ -#line 1179 "./util/configparser.y" - { - OUTYY(("P(server_log_time_ascii:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->log_time_ascii = (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 3900 "util/configparser.c" - break; - - case 388: /* server_log_queries: VAR_LOG_QUERIES STRING_ARG */ -#line 1188 "./util/configparser.y" - { - OUTYY(("P(server_log_queries:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->log_queries = (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 3912 "util/configparser.c" - break; - - case 389: /* server_log_replies: VAR_LOG_REPLIES STRING_ARG */ -#line 1197 "./util/configparser.y" - { - OUTYY(("P(server_log_replies:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->log_replies = (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 3924 "util/configparser.c" - break; - - case 390: /* server_log_tag_queryreply: VAR_LOG_TAG_QUERYREPLY STRING_ARG */ -#line 1206 "./util/configparser.y" - { - OUTYY(("P(server_log_tag_queryreply:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->log_tag_queryreply = (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 3936 "util/configparser.c" - break; - - case 391: /* server_log_servfail: VAR_LOG_SERVFAIL STRING_ARG */ -#line 1215 "./util/configparser.y" - { - OUTYY(("P(server_log_servfail:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->log_servfail = (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 3948 "util/configparser.c" - break; - - case 392: /* server_log_local_actions: VAR_LOG_LOCAL_ACTIONS STRING_ARG */ -#line 1224 "./util/configparser.y" - { - OUTYY(("P(server_log_local_actions:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->log_local_actions = (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 3960 "util/configparser.c" - break; - - case 393: /* server_chroot: VAR_CHROOT STRING_ARG */ -#line 1233 "./util/configparser.y" - { - OUTYY(("P(server_chroot:%s)\n", (yyvsp[0].str))); - free(cfg_parser->cfg->chrootdir); - cfg_parser->cfg->chrootdir = (yyvsp[0].str); - } -#line 3970 "util/configparser.c" - break; - - case 394: /* server_username: VAR_USERNAME STRING_ARG */ -#line 1240 "./util/configparser.y" - { - OUTYY(("P(server_username:%s)\n", (yyvsp[0].str))); - free(cfg_parser->cfg->username); - cfg_parser->cfg->username = (yyvsp[0].str); - } -#line 3980 "util/configparser.c" - break; - - case 395: /* server_directory: VAR_DIRECTORY STRING_ARG */ -#line 1247 "./util/configparser.y" - { - OUTYY(("P(server_directory:%s)\n", (yyvsp[0].str))); - free(cfg_parser->cfg->directory); - cfg_parser->cfg->directory = (yyvsp[0].str); - /* change there right away for includes relative to this */ - if((yyvsp[0].str)[0]) { - char* d; -#ifdef UB_ON_WINDOWS - w_config_adjust_directory(cfg_parser->cfg); -#endif - d = cfg_parser->cfg->directory; - /* adjust directory if we have already chroot, - * like, we reread after sighup */ - if(cfg_parser->chroot && cfg_parser->chroot[0] && - strncmp(d, cfg_parser->chroot, strlen( - cfg_parser->chroot)) == 0) - d += strlen(cfg_parser->chroot); - if(d[0]) { - if(chdir(d)) - log_err("cannot chdir to directory: %s (%s)", - d, strerror(errno)); - } - } - } -#line 4009 "util/configparser.c" - break; - - case 396: /* server_logfile: VAR_LOGFILE STRING_ARG */ -#line 1273 "./util/configparser.y" - { - OUTYY(("P(server_logfile:%s)\n", (yyvsp[0].str))); - free(cfg_parser->cfg->logfile); - cfg_parser->cfg->logfile = (yyvsp[0].str); - cfg_parser->cfg->use_syslog = 0; - } -#line 4020 "util/configparser.c" - break; - - case 397: /* server_pidfile: VAR_PIDFILE STRING_ARG */ -#line 1281 "./util/configparser.y" - { - OUTYY(("P(server_pidfile:%s)\n", (yyvsp[0].str))); - free(cfg_parser->cfg->pidfile); - cfg_parser->cfg->pidfile = (yyvsp[0].str); - } -#line 4030 "util/configparser.c" - break; - - case 398: /* server_root_hints: VAR_ROOT_HINTS STRING_ARG */ -#line 1288 "./util/configparser.y" - { - OUTYY(("P(server_root_hints:%s)\n", (yyvsp[0].str))); - if(!cfg_strlist_insert(&cfg_parser->cfg->root_hints, (yyvsp[0].str))) - yyerror("out of memory"); - } -#line 4040 "util/configparser.c" - break; - - case 399: /* server_dlv_anchor_file: VAR_DLV_ANCHOR_FILE STRING_ARG */ -#line 1295 "./util/configparser.y" - { - OUTYY(("P(server_dlv_anchor_file:%s)\n", (yyvsp[0].str))); - log_warn("option dlv-anchor-file ignored: DLV is decommissioned"); - free((yyvsp[0].str)); - } -#line 4050 "util/configparser.c" - break; - - case 400: /* server_dlv_anchor: VAR_DLV_ANCHOR STRING_ARG */ -#line 1302 "./util/configparser.y" - { - OUTYY(("P(server_dlv_anchor:%s)\n", (yyvsp[0].str))); - log_warn("option dlv-anchor ignored: DLV is decommissioned"); - free((yyvsp[0].str)); - } -#line 4060 "util/configparser.c" - break; - - case 401: /* server_auto_trust_anchor_file: VAR_AUTO_TRUST_ANCHOR_FILE STRING_ARG */ -#line 1309 "./util/configparser.y" - { - OUTYY(("P(server_auto_trust_anchor_file:%s)\n", (yyvsp[0].str))); - if(!cfg_strlist_insert(&cfg_parser->cfg-> - auto_trust_anchor_file_list, (yyvsp[0].str))) - yyerror("out of memory"); - } -#line 4071 "util/configparser.c" - break; - - case 402: /* server_trust_anchor_file: VAR_TRUST_ANCHOR_FILE STRING_ARG */ -#line 1317 "./util/configparser.y" - { - OUTYY(("P(server_trust_anchor_file:%s)\n", (yyvsp[0].str))); - if(!cfg_strlist_insert(&cfg_parser->cfg-> - trust_anchor_file_list, (yyvsp[0].str))) - yyerror("out of memory"); - } -#line 4082 "util/configparser.c" - break; - - case 403: /* server_trusted_keys_file: VAR_TRUSTED_KEYS_FILE STRING_ARG */ -#line 1325 "./util/configparser.y" - { - OUTYY(("P(server_trusted_keys_file:%s)\n", (yyvsp[0].str))); - if(!cfg_strlist_insert(&cfg_parser->cfg-> - trusted_keys_file_list, (yyvsp[0].str))) - yyerror("out of memory"); - } -#line 4093 "util/configparser.c" - break; - - case 404: /* server_trust_anchor: VAR_TRUST_ANCHOR STRING_ARG */ -#line 1333 "./util/configparser.y" - { - OUTYY(("P(server_trust_anchor:%s)\n", (yyvsp[0].str))); - if(!cfg_strlist_insert(&cfg_parser->cfg->trust_anchor_list, (yyvsp[0].str))) - yyerror("out of memory"); - } -#line 4103 "util/configparser.c" - break; - - case 405: /* server_trust_anchor_signaling: VAR_TRUST_ANCHOR_SIGNALING STRING_ARG */ -#line 1340 "./util/configparser.y" - { - OUTYY(("P(server_trust_anchor_signaling:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else - cfg_parser->cfg->trust_anchor_signaling = - (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 4117 "util/configparser.c" - break; - - case 406: /* server_root_key_sentinel: VAR_ROOT_KEY_SENTINEL STRING_ARG */ -#line 1351 "./util/configparser.y" - { - OUTYY(("P(server_root_key_sentinel:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else - cfg_parser->cfg->root_key_sentinel = - (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 4131 "util/configparser.c" - break; - - case 407: /* server_domain_insecure: VAR_DOMAIN_INSECURE STRING_ARG */ -#line 1362 "./util/configparser.y" - { - OUTYY(("P(server_domain_insecure:%s)\n", (yyvsp[0].str))); - if(!cfg_strlist_insert(&cfg_parser->cfg->domain_insecure, (yyvsp[0].str))) - yyerror("out of memory"); - } -#line 4141 "util/configparser.c" - break; - - case 408: /* server_hide_identity: VAR_HIDE_IDENTITY STRING_ARG */ -#line 1369 "./util/configparser.y" - { - OUTYY(("P(server_hide_identity:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->hide_identity = (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 4153 "util/configparser.c" - break; - - case 409: /* server_hide_version: VAR_HIDE_VERSION STRING_ARG */ -#line 1378 "./util/configparser.y" - { - OUTYY(("P(server_hide_version:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->hide_version = (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 4165 "util/configparser.c" - break; - - case 410: /* server_hide_trustanchor: VAR_HIDE_TRUSTANCHOR STRING_ARG */ -#line 1387 "./util/configparser.y" - { - OUTYY(("P(server_hide_trustanchor:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->hide_trustanchor = (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 4177 "util/configparser.c" - break; - - case 411: /* server_hide_http_user_agent: VAR_HIDE_HTTP_USER_AGENT STRING_ARG */ -#line 1396 "./util/configparser.y" - { - OUTYY(("P(server_hide_user_agent:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->hide_http_user_agent = (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 4189 "util/configparser.c" - break; - - case 412: /* server_identity: VAR_IDENTITY STRING_ARG */ -#line 1405 "./util/configparser.y" - { - OUTYY(("P(server_identity:%s)\n", (yyvsp[0].str))); - free(cfg_parser->cfg->identity); - cfg_parser->cfg->identity = (yyvsp[0].str); - } -#line 4199 "util/configparser.c" - break; - - case 413: /* server_version: VAR_VERSION STRING_ARG */ -#line 1412 "./util/configparser.y" - { - OUTYY(("P(server_version:%s)\n", (yyvsp[0].str))); - free(cfg_parser->cfg->version); - cfg_parser->cfg->version = (yyvsp[0].str); - } -#line 4209 "util/configparser.c" - break; - - case 414: /* server_http_user_agent: VAR_HTTP_USER_AGENT STRING_ARG */ -#line 1419 "./util/configparser.y" - { - OUTYY(("P(server_http_user_agent:%s)\n", (yyvsp[0].str))); - free(cfg_parser->cfg->http_user_agent); - cfg_parser->cfg->http_user_agent = (yyvsp[0].str); - } -#line 4219 "util/configparser.c" - break; - - case 415: /* server_nsid: VAR_NSID STRING_ARG */ -#line 1426 "./util/configparser.y" - { - OUTYY(("P(server_nsid:%s)\n", (yyvsp[0].str))); - free(cfg_parser->cfg->nsid_cfg_str); - cfg_parser->cfg->nsid_cfg_str = (yyvsp[0].str); - free(cfg_parser->cfg->nsid); - cfg_parser->cfg->nsid = NULL; - cfg_parser->cfg->nsid_len = 0; - if (*(yyvsp[0].str) == 0) - ; /* pass; empty string is not setting nsid */ - else if (!(cfg_parser->cfg->nsid = cfg_parse_nsid( - (yyvsp[0].str), &cfg_parser->cfg->nsid_len))) - yyerror("the NSID must be either a hex string or an " - "ascii character string prepended with ascii_."); - } -#line 4238 "util/configparser.c" - break; - - case 416: /* server_so_rcvbuf: VAR_SO_RCVBUF STRING_ARG */ -#line 1442 "./util/configparser.y" - { - OUTYY(("P(server_so_rcvbuf:%s)\n", (yyvsp[0].str))); - if(!cfg_parse_memsize((yyvsp[0].str), &cfg_parser->cfg->so_rcvbuf)) - yyerror("buffer size expected"); - free((yyvsp[0].str)); - } -#line 4249 "util/configparser.c" - break; - - case 417: /* server_so_sndbuf: VAR_SO_SNDBUF STRING_ARG */ -#line 1450 "./util/configparser.y" - { - OUTYY(("P(server_so_sndbuf:%s)\n", (yyvsp[0].str))); - if(!cfg_parse_memsize((yyvsp[0].str), &cfg_parser->cfg->so_sndbuf)) - yyerror("buffer size expected"); - free((yyvsp[0].str)); - } -#line 4260 "util/configparser.c" - break; - - case 418: /* server_so_reuseport: VAR_SO_REUSEPORT STRING_ARG */ -#line 1458 "./util/configparser.y" - { - OUTYY(("P(server_so_reuseport:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->so_reuseport = - (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 4273 "util/configparser.c" - break; - - case 419: /* server_ip_transparent: VAR_IP_TRANSPARENT STRING_ARG */ -#line 1468 "./util/configparser.y" - { - OUTYY(("P(server_ip_transparent:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->ip_transparent = - (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 4286 "util/configparser.c" - break; - - case 420: /* server_ip_freebind: VAR_IP_FREEBIND STRING_ARG */ -#line 1478 "./util/configparser.y" - { - OUTYY(("P(server_ip_freebind:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->ip_freebind = - (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 4299 "util/configparser.c" - break; - - case 421: /* server_ip_dscp: VAR_IP_DSCP STRING_ARG */ -#line 1488 "./util/configparser.y" - { - OUTYY(("P(server_ip_dscp:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0) - yyerror("number expected"); - else if (atoi((yyvsp[0].str)) > 63) - yyerror("value too large (max 63)"); - else if (atoi((yyvsp[0].str)) < 0) - yyerror("value too small (min 0)"); - else - cfg_parser->cfg->ip_dscp = atoi((yyvsp[0].str)); - free((yyvsp[0].str)); - } -#line 4316 "util/configparser.c" - break; - - case 422: /* server_stream_wait_size: VAR_STREAM_WAIT_SIZE STRING_ARG */ -#line 1502 "./util/configparser.y" - { - OUTYY(("P(server_stream_wait_size:%s)\n", (yyvsp[0].str))); - if(!cfg_parse_memsize((yyvsp[0].str), &cfg_parser->cfg->stream_wait_size)) - yyerror("memory size expected"); - free((yyvsp[0].str)); - } -#line 4327 "util/configparser.c" - break; - - case 423: /* server_edns_buffer_size: VAR_EDNS_BUFFER_SIZE STRING_ARG */ -#line 1510 "./util/configparser.y" - { - OUTYY(("P(server_edns_buffer_size:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0) - yyerror("number expected"); - else if (atoi((yyvsp[0].str)) < 12) - yyerror("edns buffer size too small"); - else if (atoi((yyvsp[0].str)) > 65535) - cfg_parser->cfg->edns_buffer_size = 65535; - else cfg_parser->cfg->edns_buffer_size = atoi((yyvsp[0].str)); - free((yyvsp[0].str)); - } -#line 4343 "util/configparser.c" - break; - - case 424: /* server_msg_buffer_size: VAR_MSG_BUFFER_SIZE STRING_ARG */ -#line 1523 "./util/configparser.y" - { - OUTYY(("P(server_msg_buffer_size:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0) - yyerror("number expected"); - else if (atoi((yyvsp[0].str)) < 4096) - yyerror("message buffer size too small (use 4096)"); - else cfg_parser->cfg->msg_buffer_size = atoi((yyvsp[0].str)); - free((yyvsp[0].str)); - } -#line 4357 "util/configparser.c" - break; - - case 425: /* server_msg_cache_size: VAR_MSG_CACHE_SIZE STRING_ARG */ -#line 1534 "./util/configparser.y" - { - OUTYY(("P(server_msg_cache_size:%s)\n", (yyvsp[0].str))); - if(!cfg_parse_memsize((yyvsp[0].str), &cfg_parser->cfg->msg_cache_size)) - yyerror("memory size expected"); - free((yyvsp[0].str)); - } -#line 4368 "util/configparser.c" - break; - - case 426: /* server_msg_cache_slabs: VAR_MSG_CACHE_SLABS STRING_ARG */ -#line 1542 "./util/configparser.y" - { - OUTYY(("P(server_msg_cache_slabs:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0) { - yyerror("number expected"); - } else { - cfg_parser->cfg->msg_cache_slabs = atoi((yyvsp[0].str)); - if(!is_pow2(cfg_parser->cfg->msg_cache_slabs)) - yyerror("must be a power of 2"); - } - free((yyvsp[0].str)); - } -#line 4384 "util/configparser.c" - break; - - case 427: /* server_num_queries_per_thread: VAR_NUM_QUERIES_PER_THREAD STRING_ARG */ -#line 1555 "./util/configparser.y" - { - OUTYY(("P(server_num_queries_per_thread:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0) - yyerror("number expected"); - else cfg_parser->cfg->num_queries_per_thread = atoi((yyvsp[0].str)); - free((yyvsp[0].str)); - } -#line 4396 "util/configparser.c" - break; - - case 428: /* server_jostle_timeout: VAR_JOSTLE_TIMEOUT STRING_ARG */ -#line 1564 "./util/configparser.y" - { - OUTYY(("P(server_jostle_timeout:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0) - yyerror("number expected"); - else cfg_parser->cfg->jostle_time = atoi((yyvsp[0].str)); - free((yyvsp[0].str)); - } -#line 4408 "util/configparser.c" - break; - - case 429: /* server_delay_close: VAR_DELAY_CLOSE STRING_ARG */ -#line 1573 "./util/configparser.y" - { - OUTYY(("P(server_delay_close:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0) - yyerror("number expected"); - else cfg_parser->cfg->delay_close = atoi((yyvsp[0].str)); - free((yyvsp[0].str)); - } -#line 4420 "util/configparser.c" - break; - - case 430: /* server_udp_connect: VAR_UDP_CONNECT STRING_ARG */ -#line 1582 "./util/configparser.y" - { - OUTYY(("P(server_udp_connect:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->udp_connect = (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 4432 "util/configparser.c" - break; - - case 431: /* server_unblock_lan_zones: VAR_UNBLOCK_LAN_ZONES STRING_ARG */ -#line 1591 "./util/configparser.y" - { - OUTYY(("P(server_unblock_lan_zones:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->unblock_lan_zones = - (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 4445 "util/configparser.c" - break; - - case 432: /* server_insecure_lan_zones: VAR_INSECURE_LAN_ZONES STRING_ARG */ -#line 1601 "./util/configparser.y" - { - OUTYY(("P(server_insecure_lan_zones:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->insecure_lan_zones = - (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 4458 "util/configparser.c" - break; - - case 433: /* server_rrset_cache_size: VAR_RRSET_CACHE_SIZE STRING_ARG */ -#line 1611 "./util/configparser.y" - { - OUTYY(("P(server_rrset_cache_size:%s)\n", (yyvsp[0].str))); - if(!cfg_parse_memsize((yyvsp[0].str), &cfg_parser->cfg->rrset_cache_size)) - yyerror("memory size expected"); - free((yyvsp[0].str)); - } -#line 4469 "util/configparser.c" - break; - - case 434: /* server_rrset_cache_slabs: VAR_RRSET_CACHE_SLABS STRING_ARG */ -#line 1619 "./util/configparser.y" - { - OUTYY(("P(server_rrset_cache_slabs:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0) { - yyerror("number expected"); - } else { - cfg_parser->cfg->rrset_cache_slabs = atoi((yyvsp[0].str)); - if(!is_pow2(cfg_parser->cfg->rrset_cache_slabs)) - yyerror("must be a power of 2"); - } - free((yyvsp[0].str)); - } -#line 4485 "util/configparser.c" - break; - - case 435: /* server_infra_host_ttl: VAR_INFRA_HOST_TTL STRING_ARG */ -#line 1632 "./util/configparser.y" - { - OUTYY(("P(server_infra_host_ttl:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0) - yyerror("number expected"); - else cfg_parser->cfg->host_ttl = atoi((yyvsp[0].str)); - free((yyvsp[0].str)); - } -#line 4497 "util/configparser.c" - break; - - case 436: /* server_infra_lame_ttl: VAR_INFRA_LAME_TTL STRING_ARG */ -#line 1641 "./util/configparser.y" - { - OUTYY(("P(server_infra_lame_ttl:%s)\n", (yyvsp[0].str))); - verbose(VERB_DETAIL, "ignored infra-lame-ttl: %s (option " - "removed, use infra-host-ttl)", (yyvsp[0].str)); - free((yyvsp[0].str)); - } -#line 4508 "util/configparser.c" - break; - - case 437: /* server_infra_cache_numhosts: VAR_INFRA_CACHE_NUMHOSTS STRING_ARG */ -#line 1649 "./util/configparser.y" - { - OUTYY(("P(server_infra_cache_numhosts:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0) - yyerror("number expected"); - else cfg_parser->cfg->infra_cache_numhosts = atoi((yyvsp[0].str)); - free((yyvsp[0].str)); - } -#line 4520 "util/configparser.c" - break; - - case 438: /* server_infra_cache_lame_size: VAR_INFRA_CACHE_LAME_SIZE STRING_ARG */ -#line 1658 "./util/configparser.y" - { - OUTYY(("P(server_infra_cache_lame_size:%s)\n", (yyvsp[0].str))); - verbose(VERB_DETAIL, "ignored infra-cache-lame-size: %s " - "(option removed, use infra-cache-numhosts)", (yyvsp[0].str)); - free((yyvsp[0].str)); - } -#line 4531 "util/configparser.c" - break; - - case 439: /* server_infra_cache_slabs: VAR_INFRA_CACHE_SLABS STRING_ARG */ -#line 1666 "./util/configparser.y" - { - OUTYY(("P(server_infra_cache_slabs:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0) { - yyerror("number expected"); - } else { - cfg_parser->cfg->infra_cache_slabs = atoi((yyvsp[0].str)); - if(!is_pow2(cfg_parser->cfg->infra_cache_slabs)) - yyerror("must be a power of 2"); - } - free((yyvsp[0].str)); - } -#line 4547 "util/configparser.c" - break; - - case 440: /* server_infra_cache_min_rtt: VAR_INFRA_CACHE_MIN_RTT STRING_ARG */ -#line 1679 "./util/configparser.y" - { - OUTYY(("P(server_infra_cache_min_rtt:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0) - yyerror("number expected"); - else cfg_parser->cfg->infra_cache_min_rtt = atoi((yyvsp[0].str)); - free((yyvsp[0].str)); - } -#line 4559 "util/configparser.c" - break; - - case 441: /* server_infra_cache_max_rtt: VAR_INFRA_CACHE_MAX_RTT STRING_ARG */ -#line 1688 "./util/configparser.y" - { - OUTYY(("P(server_infra_cache_max_rtt:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0) - yyerror("number expected"); - else cfg_parser->cfg->infra_cache_max_rtt = atoi((yyvsp[0].str)); - free((yyvsp[0].str)); - } -#line 4571 "util/configparser.c" - break; - - case 442: /* server_infra_keep_probing: VAR_INFRA_KEEP_PROBING STRING_ARG */ -#line 1697 "./util/configparser.y" - { - OUTYY(("P(server_infra_keep_probing:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->infra_keep_probing = - (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 4584 "util/configparser.c" - break; - - case 443: /* server_target_fetch_policy: VAR_TARGET_FETCH_POLICY STRING_ARG */ -#line 1707 "./util/configparser.y" - { - OUTYY(("P(server_target_fetch_policy:%s)\n", (yyvsp[0].str))); - free(cfg_parser->cfg->target_fetch_policy); - cfg_parser->cfg->target_fetch_policy = (yyvsp[0].str); - } -#line 4594 "util/configparser.c" - break; - - case 444: /* server_harden_short_bufsize: VAR_HARDEN_SHORT_BUFSIZE STRING_ARG */ -#line 1714 "./util/configparser.y" - { - OUTYY(("P(server_harden_short_bufsize:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->harden_short_bufsize = - (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 4607 "util/configparser.c" - break; - - case 445: /* server_harden_large_queries: VAR_HARDEN_LARGE_QUERIES STRING_ARG */ -#line 1724 "./util/configparser.y" - { - OUTYY(("P(server_harden_large_queries:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->harden_large_queries = - (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 4620 "util/configparser.c" - break; - - case 446: /* server_harden_glue: VAR_HARDEN_GLUE STRING_ARG */ -#line 1734 "./util/configparser.y" - { - OUTYY(("P(server_harden_glue:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->harden_glue = - (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 4633 "util/configparser.c" - break; - - case 447: /* server_harden_dnssec_stripped: VAR_HARDEN_DNSSEC_STRIPPED STRING_ARG */ -#line 1744 "./util/configparser.y" - { - OUTYY(("P(server_harden_dnssec_stripped:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->harden_dnssec_stripped = - (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 4646 "util/configparser.c" - break; - - case 448: /* server_harden_below_nxdomain: VAR_HARDEN_BELOW_NXDOMAIN STRING_ARG */ -#line 1754 "./util/configparser.y" - { - OUTYY(("P(server_harden_below_nxdomain:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->harden_below_nxdomain = - (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 4659 "util/configparser.c" - break; - - case 449: /* server_harden_referral_path: VAR_HARDEN_REFERRAL_PATH STRING_ARG */ -#line 1764 "./util/configparser.y" - { - OUTYY(("P(server_harden_referral_path:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->harden_referral_path = - (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 4672 "util/configparser.c" - break; - - case 450: /* server_harden_algo_downgrade: VAR_HARDEN_ALGO_DOWNGRADE STRING_ARG */ -#line 1774 "./util/configparser.y" - { - OUTYY(("P(server_harden_algo_downgrade:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->harden_algo_downgrade = - (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 4685 "util/configparser.c" - break; - - case 451: /* server_harden_unknown_additional: VAR_HARDEN_UNKNOWN_ADDITIONAL STRING_ARG */ -#line 1784 "./util/configparser.y" - { - OUTYY(("P(server_harden_unknown_additional:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->harden_unknown_additional = - (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 4698 "util/configparser.c" - break; - - case 452: /* server_use_caps_for_id: VAR_USE_CAPS_FOR_ID STRING_ARG */ -#line 1794 "./util/configparser.y" - { - OUTYY(("P(server_use_caps_for_id:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->use_caps_bits_for_id = - (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 4711 "util/configparser.c" - break; - - case 453: /* server_caps_whitelist: VAR_CAPS_WHITELIST STRING_ARG */ -#line 1804 "./util/configparser.y" - { - OUTYY(("P(server_caps_whitelist:%s)\n", (yyvsp[0].str))); - if(!cfg_strlist_insert(&cfg_parser->cfg->caps_whitelist, (yyvsp[0].str))) - yyerror("out of memory"); - } -#line 4721 "util/configparser.c" - break; - - case 454: /* server_private_address: VAR_PRIVATE_ADDRESS STRING_ARG */ -#line 1811 "./util/configparser.y" - { - OUTYY(("P(server_private_address:%s)\n", (yyvsp[0].str))); - if(!cfg_strlist_insert(&cfg_parser->cfg->private_address, (yyvsp[0].str))) - yyerror("out of memory"); - } -#line 4731 "util/configparser.c" - break; - - case 455: /* server_private_domain: VAR_PRIVATE_DOMAIN STRING_ARG */ -#line 1818 "./util/configparser.y" - { - OUTYY(("P(server_private_domain:%s)\n", (yyvsp[0].str))); - if(!cfg_strlist_insert(&cfg_parser->cfg->private_domain, (yyvsp[0].str))) - yyerror("out of memory"); - } -#line 4741 "util/configparser.c" - break; - - case 456: /* server_prefetch: VAR_PREFETCH STRING_ARG */ -#line 1825 "./util/configparser.y" - { - OUTYY(("P(server_prefetch:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->prefetch = (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 4753 "util/configparser.c" - break; - - case 457: /* server_prefetch_key: VAR_PREFETCH_KEY STRING_ARG */ -#line 1834 "./util/configparser.y" - { - OUTYY(("P(server_prefetch_key:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->prefetch_key = (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 4765 "util/configparser.c" - break; - - case 458: /* server_deny_any: VAR_DENY_ANY STRING_ARG */ -#line 1843 "./util/configparser.y" - { - OUTYY(("P(server_deny_any:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->deny_any = (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 4777 "util/configparser.c" - break; - - case 459: /* server_unwanted_reply_threshold: VAR_UNWANTED_REPLY_THRESHOLD STRING_ARG */ -#line 1852 "./util/configparser.y" - { - OUTYY(("P(server_unwanted_reply_threshold:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0) - yyerror("number expected"); - else cfg_parser->cfg->unwanted_threshold = atoi((yyvsp[0].str)); - free((yyvsp[0].str)); - } -#line 4789 "util/configparser.c" - break; - - case 460: /* server_do_not_query_address: VAR_DO_NOT_QUERY_ADDRESS STRING_ARG */ -#line 1861 "./util/configparser.y" - { - OUTYY(("P(server_do_not_query_address:%s)\n", (yyvsp[0].str))); - if(!cfg_strlist_insert(&cfg_parser->cfg->donotqueryaddrs, (yyvsp[0].str))) - yyerror("out of memory"); - } -#line 4799 "util/configparser.c" - break; - - case 461: /* server_do_not_query_localhost: VAR_DO_NOT_QUERY_LOCALHOST STRING_ARG */ -#line 1868 "./util/configparser.y" - { - OUTYY(("P(server_do_not_query_localhost:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->donotquery_localhost = - (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 4812 "util/configparser.c" - break; - - case 462: /* server_access_control: VAR_ACCESS_CONTROL STRING_ARG STRING_ARG */ -#line 1878 "./util/configparser.y" - { - OUTYY(("P(server_access_control:%s %s)\n", (yyvsp[-1].str), (yyvsp[0].str))); - validate_acl_action((yyvsp[0].str)); - if(!cfg_str2list_insert(&cfg_parser->cfg->acls, (yyvsp[-1].str), (yyvsp[0].str))) - fatal_exit("out of memory adding acl"); - } -#line 4823 "util/configparser.c" - break; - - case 463: /* server_interface_action: VAR_INTERFACE_ACTION STRING_ARG STRING_ARG */ -#line 1886 "./util/configparser.y" - { - OUTYY(("P(server_interface_action:%s %s)\n", (yyvsp[-1].str), (yyvsp[0].str))); - validate_acl_action((yyvsp[0].str)); - if(!cfg_str2list_insert( - &cfg_parser->cfg->interface_actions, (yyvsp[-1].str), (yyvsp[0].str))) - fatal_exit("out of memory adding acl"); - } -#line 4835 "util/configparser.c" - break; - - case 464: /* server_module_conf: VAR_MODULE_CONF STRING_ARG */ -#line 1895 "./util/configparser.y" - { - OUTYY(("P(server_module_conf:%s)\n", (yyvsp[0].str))); - free(cfg_parser->cfg->module_conf); - cfg_parser->cfg->module_conf = (yyvsp[0].str); - } -#line 4845 "util/configparser.c" - break; - - case 465: /* server_val_override_date: VAR_VAL_OVERRIDE_DATE STRING_ARG */ -#line 1902 "./util/configparser.y" - { - OUTYY(("P(server_val_override_date:%s)\n", (yyvsp[0].str))); - if(*(yyvsp[0].str) == '\0' || strcmp((yyvsp[0].str), "0") == 0) { - cfg_parser->cfg->val_date_override = 0; - } else if(strlen((yyvsp[0].str)) == 14) { - cfg_parser->cfg->val_date_override = - cfg_convert_timeval((yyvsp[0].str)); - if(!cfg_parser->cfg->val_date_override) - yyerror("bad date/time specification"); - } else { - if(atoi((yyvsp[0].str)) == 0) - yyerror("number expected"); - cfg_parser->cfg->val_date_override = atoi((yyvsp[0].str)); - } - free((yyvsp[0].str)); - } -#line 4866 "util/configparser.c" - break; - - case 466: /* server_val_sig_skew_min: VAR_VAL_SIG_SKEW_MIN STRING_ARG */ -#line 1920 "./util/configparser.y" - { - OUTYY(("P(server_val_sig_skew_min:%s)\n", (yyvsp[0].str))); - if(*(yyvsp[0].str) == '\0' || strcmp((yyvsp[0].str), "0") == 0) { - cfg_parser->cfg->val_sig_skew_min = 0; - } else { - cfg_parser->cfg->val_sig_skew_min = atoi((yyvsp[0].str)); - if(!cfg_parser->cfg->val_sig_skew_min) - yyerror("number expected"); - } - free((yyvsp[0].str)); - } -#line 4882 "util/configparser.c" - break; - - case 467: /* server_val_sig_skew_max: VAR_VAL_SIG_SKEW_MAX STRING_ARG */ -#line 1933 "./util/configparser.y" - { - OUTYY(("P(server_val_sig_skew_max:%s)\n", (yyvsp[0].str))); - if(*(yyvsp[0].str) == '\0' || strcmp((yyvsp[0].str), "0") == 0) { - cfg_parser->cfg->val_sig_skew_max = 0; - } else { - cfg_parser->cfg->val_sig_skew_max = atoi((yyvsp[0].str)); - if(!cfg_parser->cfg->val_sig_skew_max) - yyerror("number expected"); - } - free((yyvsp[0].str)); - } -#line 4898 "util/configparser.c" - break; - - case 468: /* server_val_max_restart: VAR_VAL_MAX_RESTART STRING_ARG */ -#line 1946 "./util/configparser.y" - { - OUTYY(("P(server_val_max_restart:%s)\n", (yyvsp[0].str))); - if(*(yyvsp[0].str) == '\0' || strcmp((yyvsp[0].str), "0") == 0) { - cfg_parser->cfg->val_max_restart = 0; - } else { - cfg_parser->cfg->val_max_restart = atoi((yyvsp[0].str)); - if(!cfg_parser->cfg->val_max_restart) - yyerror("number expected"); - } - free((yyvsp[0].str)); - } -#line 4914 "util/configparser.c" - break; - - case 469: /* server_cache_max_ttl: VAR_CACHE_MAX_TTL STRING_ARG */ -#line 1959 "./util/configparser.y" - { - OUTYY(("P(server_cache_max_ttl:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0) - yyerror("number expected"); - else cfg_parser->cfg->max_ttl = atoi((yyvsp[0].str)); - free((yyvsp[0].str)); - } -#line 4926 "util/configparser.c" - break; - - case 470: /* server_cache_max_negative_ttl: VAR_CACHE_MAX_NEGATIVE_TTL STRING_ARG */ -#line 1968 "./util/configparser.y" - { - OUTYY(("P(server_cache_max_negative_ttl:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0) - yyerror("number expected"); - else cfg_parser->cfg->max_negative_ttl = atoi((yyvsp[0].str)); - free((yyvsp[0].str)); - } -#line 4938 "util/configparser.c" - break; - - case 471: /* server_cache_min_ttl: VAR_CACHE_MIN_TTL STRING_ARG */ -#line 1977 "./util/configparser.y" - { - OUTYY(("P(server_cache_min_ttl:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0) - yyerror("number expected"); - else cfg_parser->cfg->min_ttl = atoi((yyvsp[0].str)); - free((yyvsp[0].str)); - } -#line 4950 "util/configparser.c" - break; - - case 472: /* server_bogus_ttl: VAR_BOGUS_TTL STRING_ARG */ -#line 1986 "./util/configparser.y" - { - OUTYY(("P(server_bogus_ttl:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0) - yyerror("number expected"); - else cfg_parser->cfg->bogus_ttl = atoi((yyvsp[0].str)); - free((yyvsp[0].str)); - } -#line 4962 "util/configparser.c" - break; - - case 473: /* server_val_clean_additional: VAR_VAL_CLEAN_ADDITIONAL STRING_ARG */ -#line 1995 "./util/configparser.y" - { - OUTYY(("P(server_val_clean_additional:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->val_clean_additional = - (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 4975 "util/configparser.c" - break; - - case 474: /* server_val_permissive_mode: VAR_VAL_PERMISSIVE_MODE STRING_ARG */ -#line 2005 "./util/configparser.y" - { - OUTYY(("P(server_val_permissive_mode:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->val_permissive_mode = - (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 4988 "util/configparser.c" - break; - - case 475: /* server_aggressive_nsec: VAR_AGGRESSIVE_NSEC STRING_ARG */ -#line 2015 "./util/configparser.y" - { - OUTYY(("P(server_aggressive_nsec:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else - cfg_parser->cfg->aggressive_nsec = - (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 5002 "util/configparser.c" - break; - - case 476: /* server_ignore_cd_flag: VAR_IGNORE_CD_FLAG STRING_ARG */ -#line 2026 "./util/configparser.y" - { - OUTYY(("P(server_ignore_cd_flag:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->ignore_cd = (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 5014 "util/configparser.c" - break; - - case 477: /* server_serve_expired: VAR_SERVE_EXPIRED STRING_ARG */ -#line 2035 "./util/configparser.y" - { - OUTYY(("P(server_serve_expired:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->serve_expired = (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 5026 "util/configparser.c" - break; - - case 478: /* server_serve_expired_ttl: VAR_SERVE_EXPIRED_TTL STRING_ARG */ -#line 2044 "./util/configparser.y" - { - OUTYY(("P(server_serve_expired_ttl:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0) - yyerror("number expected"); - else cfg_parser->cfg->serve_expired_ttl = atoi((yyvsp[0].str)); - free((yyvsp[0].str)); - } -#line 5038 "util/configparser.c" - break; - - case 479: /* server_serve_expired_ttl_reset: VAR_SERVE_EXPIRED_TTL_RESET STRING_ARG */ -#line 2053 "./util/configparser.y" - { - OUTYY(("P(server_serve_expired_ttl_reset:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->serve_expired_ttl_reset = (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 5050 "util/configparser.c" - break; - - case 480: /* server_serve_expired_reply_ttl: VAR_SERVE_EXPIRED_REPLY_TTL STRING_ARG */ -#line 2062 "./util/configparser.y" - { - OUTYY(("P(server_serve_expired_reply_ttl:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0) - yyerror("number expected"); - else cfg_parser->cfg->serve_expired_reply_ttl = atoi((yyvsp[0].str)); - free((yyvsp[0].str)); - } -#line 5062 "util/configparser.c" - break; - - case 481: /* server_serve_expired_client_timeout: VAR_SERVE_EXPIRED_CLIENT_TIMEOUT STRING_ARG */ -#line 2071 "./util/configparser.y" - { - OUTYY(("P(server_serve_expired_client_timeout:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0) - yyerror("number expected"); - else cfg_parser->cfg->serve_expired_client_timeout = atoi((yyvsp[0].str)); - free((yyvsp[0].str)); - } -#line 5074 "util/configparser.c" - break; - - case 482: /* server_ede_serve_expired: VAR_EDE_SERVE_EXPIRED STRING_ARG */ -#line 2080 "./util/configparser.y" - { - OUTYY(("P(server_ede_serve_expired:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->ede_serve_expired = (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 5086 "util/configparser.c" - break; - - case 483: /* server_serve_original_ttl: VAR_SERVE_ORIGINAL_TTL STRING_ARG */ -#line 2089 "./util/configparser.y" - { - OUTYY(("P(server_serve_original_ttl:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->serve_original_ttl = (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 5098 "util/configparser.c" - break; - - case 484: /* server_fake_dsa: VAR_FAKE_DSA STRING_ARG */ -#line 2098 "./util/configparser.y" - { - OUTYY(("P(server_fake_dsa:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); -#if defined(HAVE_SSL) || defined(HAVE_NETTLE) - else fake_dsa = (strcmp((yyvsp[0].str), "yes")==0); - if(fake_dsa) - log_warn("test option fake_dsa is enabled"); -#endif - free((yyvsp[0].str)); - } -#line 5114 "util/configparser.c" - break; - - case 485: /* server_fake_sha1: VAR_FAKE_SHA1 STRING_ARG */ -#line 2111 "./util/configparser.y" - { - OUTYY(("P(server_fake_sha1:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); -#if defined(HAVE_SSL) || defined(HAVE_NETTLE) - else fake_sha1 = (strcmp((yyvsp[0].str), "yes")==0); - if(fake_sha1) - log_warn("test option fake_sha1 is enabled"); -#endif - free((yyvsp[0].str)); - } -#line 5130 "util/configparser.c" - break; - - case 486: /* server_val_log_level: VAR_VAL_LOG_LEVEL STRING_ARG */ -#line 2124 "./util/configparser.y" - { - OUTYY(("P(server_val_log_level:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0) - yyerror("number expected"); - else cfg_parser->cfg->val_log_level = atoi((yyvsp[0].str)); - free((yyvsp[0].str)); - } -#line 5142 "util/configparser.c" - break; - - case 487: /* server_val_nsec3_keysize_iterations: VAR_VAL_NSEC3_KEYSIZE_ITERATIONS STRING_ARG */ -#line 2133 "./util/configparser.y" - { - OUTYY(("P(server_val_nsec3_keysize_iterations:%s)\n", (yyvsp[0].str))); - free(cfg_parser->cfg->val_nsec3_key_iterations); - cfg_parser->cfg->val_nsec3_key_iterations = (yyvsp[0].str); - } -#line 5152 "util/configparser.c" - break; - - case 488: /* server_zonemd_permissive_mode: VAR_ZONEMD_PERMISSIVE_MODE STRING_ARG */ -#line 2140 "./util/configparser.y" - { - OUTYY(("P(server_zonemd_permissive_mode:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->zonemd_permissive_mode = (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 5164 "util/configparser.c" - break; - - case 489: /* server_add_holddown: VAR_ADD_HOLDDOWN STRING_ARG */ -#line 2149 "./util/configparser.y" - { - OUTYY(("P(server_add_holddown:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0) - yyerror("number expected"); - else cfg_parser->cfg->add_holddown = atoi((yyvsp[0].str)); - free((yyvsp[0].str)); - } -#line 5176 "util/configparser.c" - break; - - case 490: /* server_del_holddown: VAR_DEL_HOLDDOWN STRING_ARG */ -#line 2158 "./util/configparser.y" - { - OUTYY(("P(server_del_holddown:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0) - yyerror("number expected"); - else cfg_parser->cfg->del_holddown = atoi((yyvsp[0].str)); - free((yyvsp[0].str)); - } -#line 5188 "util/configparser.c" - break; - - case 491: /* server_keep_missing: VAR_KEEP_MISSING STRING_ARG */ -#line 2167 "./util/configparser.y" - { - OUTYY(("P(server_keep_missing:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0) - yyerror("number expected"); - else cfg_parser->cfg->keep_missing = atoi((yyvsp[0].str)); - free((yyvsp[0].str)); - } -#line 5200 "util/configparser.c" - break; - - case 492: /* server_permit_small_holddown: VAR_PERMIT_SMALL_HOLDDOWN STRING_ARG */ -#line 2176 "./util/configparser.y" - { - OUTYY(("P(server_permit_small_holddown:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->permit_small_holddown = - (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 5213 "util/configparser.c" - break; - - case 493: /* server_key_cache_size: VAR_KEY_CACHE_SIZE STRING_ARG */ -#line 2185 "./util/configparser.y" - { - OUTYY(("P(server_key_cache_size:%s)\n", (yyvsp[0].str))); - if(!cfg_parse_memsize((yyvsp[0].str), &cfg_parser->cfg->key_cache_size)) - yyerror("memory size expected"); - free((yyvsp[0].str)); - } -#line 5224 "util/configparser.c" - break; - - case 494: /* server_key_cache_slabs: VAR_KEY_CACHE_SLABS STRING_ARG */ -#line 2193 "./util/configparser.y" - { - OUTYY(("P(server_key_cache_slabs:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0) { - yyerror("number expected"); - } else { - cfg_parser->cfg->key_cache_slabs = atoi((yyvsp[0].str)); - if(!is_pow2(cfg_parser->cfg->key_cache_slabs)) - yyerror("must be a power of 2"); - } - free((yyvsp[0].str)); - } -#line 5240 "util/configparser.c" - break; - - case 495: /* server_neg_cache_size: VAR_NEG_CACHE_SIZE STRING_ARG */ -#line 2206 "./util/configparser.y" - { - OUTYY(("P(server_neg_cache_size:%s)\n", (yyvsp[0].str))); - if(!cfg_parse_memsize((yyvsp[0].str), &cfg_parser->cfg->neg_cache_size)) - yyerror("memory size expected"); - free((yyvsp[0].str)); - } -#line 5251 "util/configparser.c" - break; - - case 496: /* server_local_zone: VAR_LOCAL_ZONE STRING_ARG STRING_ARG */ -#line 2214 "./util/configparser.y" - { - OUTYY(("P(server_local_zone:%s %s)\n", (yyvsp[-1].str), (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "static")!=0 && strcmp((yyvsp[0].str), "deny")!=0 && - strcmp((yyvsp[0].str), "refuse")!=0 && strcmp((yyvsp[0].str), "redirect")!=0 && - strcmp((yyvsp[0].str), "transparent")!=0 && strcmp((yyvsp[0].str), "nodefault")!=0 - && strcmp((yyvsp[0].str), "typetransparent")!=0 - && strcmp((yyvsp[0].str), "always_transparent")!=0 - && strcmp((yyvsp[0].str), "block_a")!=0 - && strcmp((yyvsp[0].str), "always_refuse")!=0 - && strcmp((yyvsp[0].str), "always_nxdomain")!=0 - && strcmp((yyvsp[0].str), "always_nodata")!=0 - && strcmp((yyvsp[0].str), "always_deny")!=0 - && strcmp((yyvsp[0].str), "always_null")!=0 - && strcmp((yyvsp[0].str), "noview")!=0 - && strcmp((yyvsp[0].str), "inform")!=0 && strcmp((yyvsp[0].str), "inform_deny")!=0 - && strcmp((yyvsp[0].str), "inform_redirect") != 0 - && strcmp((yyvsp[0].str), "ipset") != 0) { - yyerror("local-zone type: expected static, deny, " - "refuse, redirect, transparent, " - "typetransparent, inform, inform_deny, " - "inform_redirect, always_transparent, block_a," - "always_refuse, always_nxdomain, " - "always_nodata, always_deny, always_null, " - "noview, nodefault or ipset"); - free((yyvsp[-1].str)); - free((yyvsp[0].str)); - } else if(strcmp((yyvsp[0].str), "nodefault")==0) { - if(!cfg_strlist_insert(&cfg_parser->cfg-> - local_zones_nodefault, (yyvsp[-1].str))) - fatal_exit("out of memory adding local-zone"); - free((yyvsp[0].str)); -#ifdef USE_IPSET - } else if(strcmp((yyvsp[0].str), "ipset")==0) { - size_t len = strlen((yyvsp[-1].str)); - /* Make sure to add the trailing dot. - * These are str compared to domain names. */ - if((yyvsp[-1].str)[len-1] != '.') { - if(!((yyvsp[-1].str) = realloc((yyvsp[-1].str), len+2))) { - fatal_exit("out of memory adding local-zone"); - } - (yyvsp[-1].str)[len] = '.'; - (yyvsp[-1].str)[len+1] = 0; - } - if(!cfg_strlist_insert(&cfg_parser->cfg-> - local_zones_ipset, (yyvsp[-1].str))) - fatal_exit("out of memory adding local-zone"); - free((yyvsp[0].str)); -#endif - } else { - if(!cfg_str2list_insert(&cfg_parser->cfg->local_zones, - (yyvsp[-1].str), (yyvsp[0].str))) - fatal_exit("out of memory adding local-zone"); - } - } -#line 5310 "util/configparser.c" - break; - - case 497: /* server_local_data: VAR_LOCAL_DATA STRING_ARG */ -#line 2270 "./util/configparser.y" - { - OUTYY(("P(server_local_data:%s)\n", (yyvsp[0].str))); - if(!cfg_strlist_insert(&cfg_parser->cfg->local_data, (yyvsp[0].str))) - fatal_exit("out of memory adding local-data"); - } -#line 5320 "util/configparser.c" - break; - - case 498: /* server_local_data_ptr: VAR_LOCAL_DATA_PTR STRING_ARG */ -#line 2277 "./util/configparser.y" - { - char* ptr; - OUTYY(("P(server_local_data_ptr:%s)\n", (yyvsp[0].str))); - ptr = cfg_ptr_reverse((yyvsp[0].str)); - free((yyvsp[0].str)); - if(ptr) { - if(!cfg_strlist_insert(&cfg_parser->cfg-> - local_data, ptr)) - fatal_exit("out of memory adding local-data"); - } else { - yyerror("local-data-ptr could not be reversed"); - } - } -#line 5338 "util/configparser.c" - break; - - case 499: /* server_minimal_responses: VAR_MINIMAL_RESPONSES STRING_ARG */ -#line 2292 "./util/configparser.y" - { - OUTYY(("P(server_minimal_responses:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->minimal_responses = - (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 5351 "util/configparser.c" - break; - - case 500: /* server_rrset_roundrobin: VAR_RRSET_ROUNDROBIN STRING_ARG */ -#line 2302 "./util/configparser.y" - { - OUTYY(("P(server_rrset_roundrobin:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->rrset_roundrobin = - (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 5364 "util/configparser.c" - break; - - case 501: /* server_unknown_server_time_limit: VAR_UNKNOWN_SERVER_TIME_LIMIT STRING_ARG */ -#line 2312 "./util/configparser.y" - { - OUTYY(("P(server_unknown_server_time_limit:%s)\n", (yyvsp[0].str))); - cfg_parser->cfg->unknown_server_time_limit = atoi((yyvsp[0].str)); - free((yyvsp[0].str)); - } -#line 5374 "util/configparser.c" - break; - - case 502: /* server_max_udp_size: VAR_MAX_UDP_SIZE STRING_ARG */ -#line 2319 "./util/configparser.y" - { - OUTYY(("P(server_max_udp_size:%s)\n", (yyvsp[0].str))); - cfg_parser->cfg->max_udp_size = atoi((yyvsp[0].str)); - free((yyvsp[0].str)); - } -#line 5384 "util/configparser.c" - break; - - case 503: /* server_dns64_prefix: VAR_DNS64_PREFIX STRING_ARG */ -#line 2326 "./util/configparser.y" - { - OUTYY(("P(dns64_prefix:%s)\n", (yyvsp[0].str))); - free(cfg_parser->cfg->dns64_prefix); - cfg_parser->cfg->dns64_prefix = (yyvsp[0].str); - } -#line 5394 "util/configparser.c" - break; - - case 504: /* server_dns64_synthall: VAR_DNS64_SYNTHALL STRING_ARG */ -#line 2333 "./util/configparser.y" - { - OUTYY(("P(server_dns64_synthall:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->dns64_synthall = (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 5406 "util/configparser.c" - break; - - case 505: /* server_dns64_ignore_aaaa: VAR_DNS64_IGNORE_AAAA STRING_ARG */ -#line 2342 "./util/configparser.y" - { - OUTYY(("P(dns64_ignore_aaaa:%s)\n", (yyvsp[0].str))); - if(!cfg_strlist_insert(&cfg_parser->cfg->dns64_ignore_aaaa, - (yyvsp[0].str))) - fatal_exit("out of memory adding dns64-ignore-aaaa"); - } -#line 5417 "util/configparser.c" - break; - - case 506: /* server_define_tag: VAR_DEFINE_TAG STRING_ARG */ -#line 2350 "./util/configparser.y" - { - char* p, *s = (yyvsp[0].str); - OUTYY(("P(server_define_tag:%s)\n", (yyvsp[0].str))); - while((p=strsep(&s, " \t\n")) != NULL) { - if(*p) { - if(!config_add_tag(cfg_parser->cfg, p)) - yyerror("could not define-tag, " - "out of memory"); - } - } - free((yyvsp[0].str)); - } -#line 5434 "util/configparser.c" - break; - - case 507: /* server_local_zone_tag: VAR_LOCAL_ZONE_TAG STRING_ARG STRING_ARG */ -#line 2364 "./util/configparser.y" - { - size_t len = 0; - uint8_t* bitlist = config_parse_taglist(cfg_parser->cfg, (yyvsp[0].str), - &len); - free((yyvsp[0].str)); - OUTYY(("P(server_local_zone_tag:%s)\n", (yyvsp[-1].str))); - if(!bitlist) { - yyerror("could not parse tags, (define-tag them first)"); - free((yyvsp[-1].str)); - } - if(bitlist) { - if(!cfg_strbytelist_insert( - &cfg_parser->cfg->local_zone_tags, - (yyvsp[-1].str), bitlist, len)) { - yyerror("out of memory"); - free((yyvsp[-1].str)); - } - } - } -#line 5458 "util/configparser.c" - break; - - case 508: /* server_access_control_tag: VAR_ACCESS_CONTROL_TAG STRING_ARG STRING_ARG */ -#line 2385 "./util/configparser.y" - { - size_t len = 0; - uint8_t* bitlist = config_parse_taglist(cfg_parser->cfg, (yyvsp[0].str), - &len); - free((yyvsp[0].str)); - OUTYY(("P(server_access_control_tag:%s)\n", (yyvsp[-1].str))); - if(!bitlist) { - yyerror("could not parse tags, (define-tag them first)"); - free((yyvsp[-1].str)); - } - if(bitlist) { - if(!cfg_strbytelist_insert( - &cfg_parser->cfg->acl_tags, - (yyvsp[-1].str), bitlist, len)) { - yyerror("out of memory"); - free((yyvsp[-1].str)); - } - } - } -#line 5482 "util/configparser.c" - break; - - case 509: /* server_access_control_tag_action: VAR_ACCESS_CONTROL_TAG_ACTION STRING_ARG STRING_ARG STRING_ARG */ -#line 2406 "./util/configparser.y" - { - OUTYY(("P(server_access_control_tag_action:%s %s %s)\n", (yyvsp[-2].str), (yyvsp[-1].str), (yyvsp[0].str))); - if(!cfg_str3list_insert(&cfg_parser->cfg->acl_tag_actions, - (yyvsp[-2].str), (yyvsp[-1].str), (yyvsp[0].str))) { - yyerror("out of memory"); - free((yyvsp[-2].str)); - free((yyvsp[-1].str)); - free((yyvsp[0].str)); - } - } -#line 5497 "util/configparser.c" - break; - - case 510: /* server_access_control_tag_data: VAR_ACCESS_CONTROL_TAG_DATA STRING_ARG STRING_ARG STRING_ARG */ -#line 2418 "./util/configparser.y" - { - OUTYY(("P(server_access_control_tag_data:%s %s %s)\n", (yyvsp[-2].str), (yyvsp[-1].str), (yyvsp[0].str))); - if(!cfg_str3list_insert(&cfg_parser->cfg->acl_tag_datas, - (yyvsp[-2].str), (yyvsp[-1].str), (yyvsp[0].str))) { - yyerror("out of memory"); - free((yyvsp[-2].str)); - free((yyvsp[-1].str)); - free((yyvsp[0].str)); - } - } -#line 5512 "util/configparser.c" - break; - - case 511: /* server_local_zone_override: VAR_LOCAL_ZONE_OVERRIDE STRING_ARG STRING_ARG STRING_ARG */ -#line 2430 "./util/configparser.y" - { - OUTYY(("P(server_local_zone_override:%s %s %s)\n", (yyvsp[-2].str), (yyvsp[-1].str), (yyvsp[0].str))); - if(!cfg_str3list_insert(&cfg_parser->cfg->local_zone_overrides, - (yyvsp[-2].str), (yyvsp[-1].str), (yyvsp[0].str))) { - yyerror("out of memory"); - free((yyvsp[-2].str)); - free((yyvsp[-1].str)); - free((yyvsp[0].str)); - } - } -#line 5527 "util/configparser.c" - break; - - case 512: /* server_access_control_view: VAR_ACCESS_CONTROL_VIEW STRING_ARG STRING_ARG */ -#line 2442 "./util/configparser.y" - { - OUTYY(("P(server_access_control_view:%s %s)\n", (yyvsp[-1].str), (yyvsp[0].str))); - if(!cfg_str2list_insert(&cfg_parser->cfg->acl_view, - (yyvsp[-1].str), (yyvsp[0].str))) { - yyerror("out of memory"); - } - } -#line 5539 "util/configparser.c" - break; - - case 513: /* server_interface_tag: VAR_INTERFACE_TAG STRING_ARG STRING_ARG */ -#line 2451 "./util/configparser.y" - { - size_t len = 0; - uint8_t* bitlist = config_parse_taglist(cfg_parser->cfg, (yyvsp[0].str), - &len); - free((yyvsp[0].str)); - OUTYY(("P(server_interface_tag:%s)\n", (yyvsp[-1].str))); - if(!bitlist) { - yyerror("could not parse tags, (define-tag them first)"); - free((yyvsp[-1].str)); - } - if(bitlist) { - if(!cfg_strbytelist_insert( - &cfg_parser->cfg->interface_tags, - (yyvsp[-1].str), bitlist, len)) { - yyerror("out of memory"); - free((yyvsp[-1].str)); - } - } - } -#line 5563 "util/configparser.c" - break; - - case 514: /* server_interface_tag_action: VAR_INTERFACE_TAG_ACTION STRING_ARG STRING_ARG STRING_ARG */ -#line 2472 "./util/configparser.y" - { - OUTYY(("P(server_interface_tag_action:%s %s %s)\n", (yyvsp[-2].str), (yyvsp[-1].str), (yyvsp[0].str))); - if(!cfg_str3list_insert(&cfg_parser->cfg->interface_tag_actions, - (yyvsp[-2].str), (yyvsp[-1].str), (yyvsp[0].str))) { - yyerror("out of memory"); - free((yyvsp[-2].str)); - free((yyvsp[-1].str)); - free((yyvsp[0].str)); - } - } -#line 5578 "util/configparser.c" - break; - - case 515: /* server_interface_tag_data: VAR_INTERFACE_TAG_DATA STRING_ARG STRING_ARG STRING_ARG */ -#line 2484 "./util/configparser.y" - { - OUTYY(("P(server_interface_tag_data:%s %s %s)\n", (yyvsp[-2].str), (yyvsp[-1].str), (yyvsp[0].str))); - if(!cfg_str3list_insert(&cfg_parser->cfg->interface_tag_datas, - (yyvsp[-2].str), (yyvsp[-1].str), (yyvsp[0].str))) { - yyerror("out of memory"); - free((yyvsp[-2].str)); - free((yyvsp[-1].str)); - free((yyvsp[0].str)); - } - } -#line 5593 "util/configparser.c" - break; - - case 516: /* server_interface_view: VAR_INTERFACE_VIEW STRING_ARG STRING_ARG */ -#line 2496 "./util/configparser.y" - { - OUTYY(("P(server_interface_view:%s %s)\n", (yyvsp[-1].str), (yyvsp[0].str))); - if(!cfg_str2list_insert(&cfg_parser->cfg->interface_view, - (yyvsp[-1].str), (yyvsp[0].str))) { - yyerror("out of memory"); - } - } -#line 5605 "util/configparser.c" - break; - - case 517: /* server_response_ip_tag: VAR_RESPONSE_IP_TAG STRING_ARG STRING_ARG */ -#line 2505 "./util/configparser.y" - { - size_t len = 0; - uint8_t* bitlist = config_parse_taglist(cfg_parser->cfg, (yyvsp[0].str), - &len); - free((yyvsp[0].str)); - OUTYY(("P(response_ip_tag:%s)\n", (yyvsp[-1].str))); - if(!bitlist) { - yyerror("could not parse tags, (define-tag them first)"); - free((yyvsp[-1].str)); - } - if(bitlist) { - if(!cfg_strbytelist_insert( - &cfg_parser->cfg->respip_tags, - (yyvsp[-1].str), bitlist, len)) { - yyerror("out of memory"); - free((yyvsp[-1].str)); - } - } - } -#line 5629 "util/configparser.c" - break; - - case 518: /* server_ip_ratelimit: VAR_IP_RATELIMIT STRING_ARG */ -#line 2526 "./util/configparser.y" - { - OUTYY(("P(server_ip_ratelimit:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0) - yyerror("number expected"); - else cfg_parser->cfg->ip_ratelimit = atoi((yyvsp[0].str)); - free((yyvsp[0].str)); - } -#line 5641 "util/configparser.c" - break; - - case 519: /* server_ratelimit: VAR_RATELIMIT STRING_ARG */ -#line 2535 "./util/configparser.y" - { - OUTYY(("P(server_ratelimit:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0) - yyerror("number expected"); - else cfg_parser->cfg->ratelimit = atoi((yyvsp[0].str)); - free((yyvsp[0].str)); - } -#line 5653 "util/configparser.c" - break; - - case 520: /* server_ip_ratelimit_size: VAR_IP_RATELIMIT_SIZE STRING_ARG */ -#line 2544 "./util/configparser.y" - { - OUTYY(("P(server_ip_ratelimit_size:%s)\n", (yyvsp[0].str))); - if(!cfg_parse_memsize((yyvsp[0].str), &cfg_parser->cfg->ip_ratelimit_size)) - yyerror("memory size expected"); - free((yyvsp[0].str)); - } -#line 5664 "util/configparser.c" - break; - - case 521: /* server_ratelimit_size: VAR_RATELIMIT_SIZE STRING_ARG */ -#line 2552 "./util/configparser.y" - { - OUTYY(("P(server_ratelimit_size:%s)\n", (yyvsp[0].str))); - if(!cfg_parse_memsize((yyvsp[0].str), &cfg_parser->cfg->ratelimit_size)) - yyerror("memory size expected"); - free((yyvsp[0].str)); - } -#line 5675 "util/configparser.c" - break; - - case 522: /* server_ip_ratelimit_slabs: VAR_IP_RATELIMIT_SLABS STRING_ARG */ -#line 2560 "./util/configparser.y" - { - OUTYY(("P(server_ip_ratelimit_slabs:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0) { - yyerror("number expected"); - } else { - cfg_parser->cfg->ip_ratelimit_slabs = atoi((yyvsp[0].str)); - if(!is_pow2(cfg_parser->cfg->ip_ratelimit_slabs)) - yyerror("must be a power of 2"); - } - free((yyvsp[0].str)); - } -#line 5691 "util/configparser.c" - break; - - case 523: /* server_ratelimit_slabs: VAR_RATELIMIT_SLABS STRING_ARG */ -#line 2573 "./util/configparser.y" - { - OUTYY(("P(server_ratelimit_slabs:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0) { - yyerror("number expected"); - } else { - cfg_parser->cfg->ratelimit_slabs = atoi((yyvsp[0].str)); - if(!is_pow2(cfg_parser->cfg->ratelimit_slabs)) - yyerror("must be a power of 2"); - } - free((yyvsp[0].str)); - } -#line 5707 "util/configparser.c" - break; - - case 524: /* server_ratelimit_for_domain: VAR_RATELIMIT_FOR_DOMAIN STRING_ARG STRING_ARG */ -#line 2586 "./util/configparser.y" - { - OUTYY(("P(server_ratelimit_for_domain:%s %s)\n", (yyvsp[-1].str), (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0) { - yyerror("number expected"); - free((yyvsp[-1].str)); - free((yyvsp[0].str)); - } else { - if(!cfg_str2list_insert(&cfg_parser->cfg-> - ratelimit_for_domain, (yyvsp[-1].str), (yyvsp[0].str))) - fatal_exit("out of memory adding " - "ratelimit-for-domain"); - } - } -#line 5725 "util/configparser.c" - break; - - case 525: /* server_ratelimit_below_domain: VAR_RATELIMIT_BELOW_DOMAIN STRING_ARG STRING_ARG */ -#line 2601 "./util/configparser.y" - { - OUTYY(("P(server_ratelimit_below_domain:%s %s)\n", (yyvsp[-1].str), (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0) { - yyerror("number expected"); - free((yyvsp[-1].str)); - free((yyvsp[0].str)); - } else { - if(!cfg_str2list_insert(&cfg_parser->cfg-> - ratelimit_below_domain, (yyvsp[-1].str), (yyvsp[0].str))) - fatal_exit("out of memory adding " - "ratelimit-below-domain"); - } - } -#line 5743 "util/configparser.c" - break; - - case 526: /* server_ip_ratelimit_factor: VAR_IP_RATELIMIT_FACTOR STRING_ARG */ -#line 2616 "./util/configparser.y" - { - OUTYY(("P(server_ip_ratelimit_factor:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0) - yyerror("number expected"); - else cfg_parser->cfg->ip_ratelimit_factor = atoi((yyvsp[0].str)); - free((yyvsp[0].str)); - } -#line 5755 "util/configparser.c" - break; - - case 527: /* server_ratelimit_factor: VAR_RATELIMIT_FACTOR STRING_ARG */ -#line 2625 "./util/configparser.y" - { - OUTYY(("P(server_ratelimit_factor:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0) - yyerror("number expected"); - else cfg_parser->cfg->ratelimit_factor = atoi((yyvsp[0].str)); - free((yyvsp[0].str)); - } -#line 5767 "util/configparser.c" - break; - - case 528: /* server_ip_ratelimit_backoff: VAR_IP_RATELIMIT_BACKOFF STRING_ARG */ -#line 2634 "./util/configparser.y" - { - OUTYY(("P(server_ip_ratelimit_backoff:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->ip_ratelimit_backoff = - (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 5780 "util/configparser.c" - break; - - case 529: /* server_ratelimit_backoff: VAR_RATELIMIT_BACKOFF STRING_ARG */ -#line 2644 "./util/configparser.y" - { - OUTYY(("P(server_ratelimit_backoff:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->ratelimit_backoff = - (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 5793 "util/configparser.c" - break; - - case 530: /* server_outbound_msg_retry: VAR_OUTBOUND_MSG_RETRY STRING_ARG */ -#line 2654 "./util/configparser.y" - { - OUTYY(("P(server_outbound_msg_retry:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0) - yyerror("number expected"); - else cfg_parser->cfg->outbound_msg_retry = atoi((yyvsp[0].str)); - free((yyvsp[0].str)); - } -#line 5805 "util/configparser.c" - break; - - case 531: /* server_max_sent_count: VAR_MAX_SENT_COUNT STRING_ARG */ -#line 2663 "./util/configparser.y" - { - OUTYY(("P(server_max_sent_count:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0) - yyerror("number expected"); - else cfg_parser->cfg->max_sent_count = atoi((yyvsp[0].str)); - free((yyvsp[0].str)); - } -#line 5817 "util/configparser.c" - break; - - case 532: /* server_max_query_restarts: VAR_MAX_QUERY_RESTARTS STRING_ARG */ -#line 2672 "./util/configparser.y" - { - OUTYY(("P(server_max_query_restarts:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0) - yyerror("number expected"); - else cfg_parser->cfg->max_query_restarts = atoi((yyvsp[0].str)); - free((yyvsp[0].str)); - } -#line 5829 "util/configparser.c" - break; - - case 533: /* server_low_rtt: VAR_LOW_RTT STRING_ARG */ -#line 2681 "./util/configparser.y" - { - OUTYY(("P(low-rtt option is deprecated, use fast-server-num instead)\n")); - free((yyvsp[0].str)); - } -#line 5838 "util/configparser.c" - break; - - case 534: /* server_fast_server_num: VAR_FAST_SERVER_NUM STRING_ARG */ -#line 2687 "./util/configparser.y" - { - OUTYY(("P(server_fast_server_num:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) <= 0) - yyerror("number expected"); - else cfg_parser->cfg->fast_server_num = atoi((yyvsp[0].str)); - free((yyvsp[0].str)); - } -#line 5850 "util/configparser.c" - break; - - case 535: /* server_fast_server_permil: VAR_FAST_SERVER_PERMIL STRING_ARG */ -#line 2696 "./util/configparser.y" - { - OUTYY(("P(server_fast_server_permil:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0) - yyerror("number expected"); - else cfg_parser->cfg->fast_server_permil = atoi((yyvsp[0].str)); - free((yyvsp[0].str)); - } -#line 5862 "util/configparser.c" - break; - - case 536: /* server_qname_minimisation: VAR_QNAME_MINIMISATION STRING_ARG */ -#line 2705 "./util/configparser.y" - { - OUTYY(("P(server_qname_minimisation:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->qname_minimisation = - (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 5875 "util/configparser.c" - break; - - case 537: /* server_qname_minimisation_strict: VAR_QNAME_MINIMISATION_STRICT STRING_ARG */ -#line 2715 "./util/configparser.y" - { - OUTYY(("P(server_qname_minimisation_strict:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->qname_minimisation_strict = - (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 5888 "util/configparser.c" - break; - - case 538: /* server_pad_responses: VAR_PAD_RESPONSES STRING_ARG */ -#line 2725 "./util/configparser.y" - { - OUTYY(("P(server_pad_responses:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->pad_responses = - (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 5901 "util/configparser.c" - break; - - case 539: /* server_pad_responses_block_size: VAR_PAD_RESPONSES_BLOCK_SIZE STRING_ARG */ -#line 2735 "./util/configparser.y" - { - OUTYY(("P(server_pad_responses_block_size:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0) - yyerror("number expected"); - else cfg_parser->cfg->pad_responses_block_size = atoi((yyvsp[0].str)); - free((yyvsp[0].str)); - } -#line 5913 "util/configparser.c" - break; - - case 540: /* server_pad_queries: VAR_PAD_QUERIES STRING_ARG */ -#line 2744 "./util/configparser.y" - { - OUTYY(("P(server_pad_queries:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->pad_queries = - (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 5926 "util/configparser.c" - break; - - case 541: /* server_pad_queries_block_size: VAR_PAD_QUERIES_BLOCK_SIZE STRING_ARG */ -#line 2754 "./util/configparser.y" - { - OUTYY(("P(server_pad_queries_block_size:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0) - yyerror("number expected"); - else cfg_parser->cfg->pad_queries_block_size = atoi((yyvsp[0].str)); - free((yyvsp[0].str)); - } -#line 5938 "util/configparser.c" - break; - - case 542: /* server_ipsecmod_enabled: VAR_IPSECMOD_ENABLED STRING_ARG */ -#line 2763 "./util/configparser.y" - { - #ifdef USE_IPSECMOD - OUTYY(("P(server_ipsecmod_enabled:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->ipsecmod_enabled = (strcmp((yyvsp[0].str), "yes")==0); - #else - OUTYY(("P(Compiled without IPsec module, ignoring)\n")); - #endif - free((yyvsp[0].str)); - } -#line 5954 "util/configparser.c" - break; - - case 543: /* server_ipsecmod_ignore_bogus: VAR_IPSECMOD_IGNORE_BOGUS STRING_ARG */ -#line 2776 "./util/configparser.y" - { - #ifdef USE_IPSECMOD - OUTYY(("P(server_ipsecmod_ignore_bogus:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->ipsecmod_ignore_bogus = (strcmp((yyvsp[0].str), "yes")==0); - #else - OUTYY(("P(Compiled without IPsec module, ignoring)\n")); - #endif - free((yyvsp[0].str)); - } -#line 5970 "util/configparser.c" - break; - - case 544: /* server_ipsecmod_hook: VAR_IPSECMOD_HOOK STRING_ARG */ -#line 2789 "./util/configparser.y" - { - #ifdef USE_IPSECMOD - OUTYY(("P(server_ipsecmod_hook:%s)\n", (yyvsp[0].str))); - free(cfg_parser->cfg->ipsecmod_hook); - cfg_parser->cfg->ipsecmod_hook = (yyvsp[0].str); - #else - OUTYY(("P(Compiled without IPsec module, ignoring)\n")); - free((yyvsp[0].str)); - #endif - } -#line 5985 "util/configparser.c" - break; - - case 545: /* server_ipsecmod_max_ttl: VAR_IPSECMOD_MAX_TTL STRING_ARG */ -#line 2801 "./util/configparser.y" - { - #ifdef USE_IPSECMOD - OUTYY(("P(server_ipsecmod_max_ttl:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0) - yyerror("number expected"); - else cfg_parser->cfg->ipsecmod_max_ttl = atoi((yyvsp[0].str)); - free((yyvsp[0].str)); - #else - OUTYY(("P(Compiled without IPsec module, ignoring)\n")); - free((yyvsp[0].str)); - #endif - } -#line 6002 "util/configparser.c" - break; - - case 546: /* server_ipsecmod_whitelist: VAR_IPSECMOD_WHITELIST STRING_ARG */ -#line 2815 "./util/configparser.y" - { - #ifdef USE_IPSECMOD - OUTYY(("P(server_ipsecmod_whitelist:%s)\n", (yyvsp[0].str))); - if(!cfg_strlist_insert(&cfg_parser->cfg->ipsecmod_whitelist, (yyvsp[0].str))) - yyerror("out of memory"); - #else - OUTYY(("P(Compiled without IPsec module, ignoring)\n")); - free((yyvsp[0].str)); - #endif - } -#line 6017 "util/configparser.c" - break; - - case 547: /* server_ipsecmod_strict: VAR_IPSECMOD_STRICT STRING_ARG */ -#line 2827 "./util/configparser.y" - { - #ifdef USE_IPSECMOD - OUTYY(("P(server_ipsecmod_strict:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->ipsecmod_strict = (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - #else - OUTYY(("P(Compiled without IPsec module, ignoring)\n")); - free((yyvsp[0].str)); - #endif - } -#line 6034 "util/configparser.c" - break; - - case 548: /* server_edns_client_string: VAR_EDNS_CLIENT_STRING STRING_ARG STRING_ARG */ -#line 2841 "./util/configparser.y" - { - OUTYY(("P(server_edns_client_string:%s %s)\n", (yyvsp[-1].str), (yyvsp[0].str))); - if(!cfg_str2list_insert( - &cfg_parser->cfg->edns_client_strings, (yyvsp[-1].str), (yyvsp[0].str))) - fatal_exit("out of memory adding " - "edns-client-string"); - } -#line 6046 "util/configparser.c" - break; - - case 549: /* server_edns_client_string_opcode: VAR_EDNS_CLIENT_STRING_OPCODE STRING_ARG */ -#line 2850 "./util/configparser.y" - { - OUTYY(("P(edns_client_string_opcode:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0) - yyerror("option code expected"); - else if(atoi((yyvsp[0].str)) > 65535 || atoi((yyvsp[0].str)) < 0) - yyerror("option code must be in interval [0, 65535]"); - else cfg_parser->cfg->edns_client_string_opcode = atoi((yyvsp[0].str)); - free((yyvsp[0].str)); - } -#line 6060 "util/configparser.c" - break; - - case 550: /* server_ede: VAR_EDE STRING_ARG */ -#line 2861 "./util/configparser.y" - { - OUTYY(("P(server_ede:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->ede = (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 6072 "util/configparser.c" - break; - - case 551: /* server_proxy_protocol_port: VAR_PROXY_PROTOCOL_PORT STRING_ARG */ -#line 2870 "./util/configparser.y" - { - OUTYY(("P(server_proxy_protocol_port:%s)\n", (yyvsp[0].str))); - if(!cfg_strlist_insert(&cfg_parser->cfg->proxy_protocol_port, (yyvsp[0].str))) - yyerror("out of memory"); - } -#line 6082 "util/configparser.c" - break; - - case 552: /* stub_name: VAR_NAME STRING_ARG */ -#line 2877 "./util/configparser.y" - { - OUTYY(("P(name:%s)\n", (yyvsp[0].str))); - if(cfg_parser->cfg->stubs->name) - yyerror("stub name override, there must be one name " - "for one stub-zone"); - free(cfg_parser->cfg->stubs->name); - cfg_parser->cfg->stubs->name = (yyvsp[0].str); - } -#line 6095 "util/configparser.c" - break; - - case 553: /* stub_host: VAR_STUB_HOST STRING_ARG */ -#line 2887 "./util/configparser.y" - { - OUTYY(("P(stub-host:%s)\n", (yyvsp[0].str))); - if(!cfg_strlist_insert(&cfg_parser->cfg->stubs->hosts, (yyvsp[0].str))) - yyerror("out of memory"); - } -#line 6105 "util/configparser.c" - break; - - case 554: /* stub_addr: VAR_STUB_ADDR STRING_ARG */ -#line 2894 "./util/configparser.y" - { - OUTYY(("P(stub-addr:%s)\n", (yyvsp[0].str))); - if(!cfg_strlist_insert(&cfg_parser->cfg->stubs->addrs, (yyvsp[0].str))) - yyerror("out of memory"); - } -#line 6115 "util/configparser.c" - break; - - case 555: /* stub_first: VAR_STUB_FIRST STRING_ARG */ -#line 2901 "./util/configparser.y" - { - OUTYY(("P(stub-first:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->stubs->isfirst=(strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 6127 "util/configparser.c" - break; - - case 556: /* stub_no_cache: VAR_STUB_NO_CACHE STRING_ARG */ -#line 2910 "./util/configparser.y" - { - OUTYY(("P(stub-no-cache:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->stubs->no_cache=(strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 6139 "util/configparser.c" - break; - - case 557: /* stub_ssl_upstream: VAR_STUB_SSL_UPSTREAM STRING_ARG */ -#line 2919 "./util/configparser.y" - { - OUTYY(("P(stub-ssl-upstream:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->stubs->ssl_upstream = - (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 6152 "util/configparser.c" - break; - - case 558: /* stub_tcp_upstream: VAR_STUB_TCP_UPSTREAM STRING_ARG */ -#line 2929 "./util/configparser.y" - { - OUTYY(("P(stub-tcp-upstream:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->stubs->tcp_upstream = - (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 6165 "util/configparser.c" - break; - - case 559: /* stub_prime: VAR_STUB_PRIME STRING_ARG */ -#line 2939 "./util/configparser.y" - { - OUTYY(("P(stub-prime:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->stubs->isprime = - (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 6178 "util/configparser.c" - break; - - case 560: /* forward_name: VAR_NAME STRING_ARG */ -#line 2949 "./util/configparser.y" - { - OUTYY(("P(name:%s)\n", (yyvsp[0].str))); - if(cfg_parser->cfg->forwards->name) - yyerror("forward name override, there must be one " - "name for one forward-zone"); - free(cfg_parser->cfg->forwards->name); - cfg_parser->cfg->forwards->name = (yyvsp[0].str); - } -#line 6191 "util/configparser.c" - break; - - case 561: /* forward_host: VAR_FORWARD_HOST STRING_ARG */ -#line 2959 "./util/configparser.y" - { - OUTYY(("P(forward-host:%s)\n", (yyvsp[0].str))); - if(!cfg_strlist_insert(&cfg_parser->cfg->forwards->hosts, (yyvsp[0].str))) - yyerror("out of memory"); - } -#line 6201 "util/configparser.c" - break; - - case 562: /* forward_addr: VAR_FORWARD_ADDR STRING_ARG */ -#line 2966 "./util/configparser.y" - { - OUTYY(("P(forward-addr:%s)\n", (yyvsp[0].str))); - if(!cfg_strlist_insert(&cfg_parser->cfg->forwards->addrs, (yyvsp[0].str))) - yyerror("out of memory"); - } -#line 6211 "util/configparser.c" - break; - - case 563: /* forward_first: VAR_FORWARD_FIRST STRING_ARG */ -#line 2973 "./util/configparser.y" - { - OUTYY(("P(forward-first:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->forwards->isfirst=(strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 6223 "util/configparser.c" - break; - - case 564: /* forward_no_cache: VAR_FORWARD_NO_CACHE STRING_ARG */ -#line 2982 "./util/configparser.y" - { - OUTYY(("P(forward-no-cache:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->forwards->no_cache=(strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 6235 "util/configparser.c" - break; - - case 565: /* forward_ssl_upstream: VAR_FORWARD_SSL_UPSTREAM STRING_ARG */ -#line 2991 "./util/configparser.y" - { - OUTYY(("P(forward-ssl-upstream:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->forwards->ssl_upstream = - (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 6248 "util/configparser.c" - break; - - case 566: /* forward_tcp_upstream: VAR_FORWARD_TCP_UPSTREAM STRING_ARG */ -#line 3001 "./util/configparser.y" - { - OUTYY(("P(forward-tcp-upstream:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->forwards->tcp_upstream = - (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 6261 "util/configparser.c" - break; - - case 567: /* auth_name: VAR_NAME STRING_ARG */ -#line 3011 "./util/configparser.y" - { - OUTYY(("P(name:%s)\n", (yyvsp[0].str))); - if(cfg_parser->cfg->auths->name) - yyerror("auth name override, there must be one name " - "for one auth-zone"); - free(cfg_parser->cfg->auths->name); - cfg_parser->cfg->auths->name = (yyvsp[0].str); - } -#line 6274 "util/configparser.c" - break; - - case 568: /* auth_zonefile: VAR_ZONEFILE STRING_ARG */ -#line 3021 "./util/configparser.y" - { - OUTYY(("P(zonefile:%s)\n", (yyvsp[0].str))); - free(cfg_parser->cfg->auths->zonefile); - cfg_parser->cfg->auths->zonefile = (yyvsp[0].str); - } -#line 6284 "util/configparser.c" - break; - - case 569: /* auth_master: VAR_MASTER STRING_ARG */ -#line 3028 "./util/configparser.y" - { - OUTYY(("P(master:%s)\n", (yyvsp[0].str))); - if(!cfg_strlist_insert(&cfg_parser->cfg->auths->masters, (yyvsp[0].str))) - yyerror("out of memory"); - } -#line 6294 "util/configparser.c" - break; - - case 570: /* auth_url: VAR_URL STRING_ARG */ -#line 3035 "./util/configparser.y" - { - OUTYY(("P(url:%s)\n", (yyvsp[0].str))); - if(!cfg_strlist_insert(&cfg_parser->cfg->auths->urls, (yyvsp[0].str))) - yyerror("out of memory"); - } -#line 6304 "util/configparser.c" - break; - - case 571: /* auth_allow_notify: VAR_ALLOW_NOTIFY STRING_ARG */ -#line 3042 "./util/configparser.y" - { - OUTYY(("P(allow-notify:%s)\n", (yyvsp[0].str))); - if(!cfg_strlist_insert(&cfg_parser->cfg->auths->allow_notify, - (yyvsp[0].str))) - yyerror("out of memory"); - } -#line 6315 "util/configparser.c" - break; - - case 572: /* auth_zonemd_check: VAR_ZONEMD_CHECK STRING_ARG */ -#line 3050 "./util/configparser.y" - { - OUTYY(("P(zonemd-check:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->auths->zonemd_check = - (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 6328 "util/configparser.c" - break; - - case 573: /* auth_zonemd_reject_absence: VAR_ZONEMD_REJECT_ABSENCE STRING_ARG */ -#line 3060 "./util/configparser.y" - { - OUTYY(("P(zonemd-reject-absence:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->auths->zonemd_reject_absence = - (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 6341 "util/configparser.c" - break; - - case 574: /* auth_for_downstream: VAR_FOR_DOWNSTREAM STRING_ARG */ -#line 3070 "./util/configparser.y" - { - OUTYY(("P(for-downstream:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->auths->for_downstream = - (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 6354 "util/configparser.c" - break; - - case 575: /* auth_for_upstream: VAR_FOR_UPSTREAM STRING_ARG */ -#line 3080 "./util/configparser.y" - { - OUTYY(("P(for-upstream:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->auths->for_upstream = - (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 6367 "util/configparser.c" - break; - - case 576: /* auth_fallback_enabled: VAR_FALLBACK_ENABLED STRING_ARG */ -#line 3090 "./util/configparser.y" - { - OUTYY(("P(fallback-enabled:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->auths->fallback_enabled = - (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 6380 "util/configparser.c" - break; - - case 577: /* view_name: VAR_NAME STRING_ARG */ -#line 3100 "./util/configparser.y" - { - OUTYY(("P(name:%s)\n", (yyvsp[0].str))); - if(cfg_parser->cfg->views->name) - yyerror("view name override, there must be one " - "name for one view"); - free(cfg_parser->cfg->views->name); - cfg_parser->cfg->views->name = (yyvsp[0].str); - } -#line 6393 "util/configparser.c" - break; - - case 578: /* view_local_zone: VAR_LOCAL_ZONE STRING_ARG STRING_ARG */ -#line 3110 "./util/configparser.y" - { - OUTYY(("P(view_local_zone:%s %s)\n", (yyvsp[-1].str), (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "static")!=0 && strcmp((yyvsp[0].str), "deny")!=0 && - strcmp((yyvsp[0].str), "refuse")!=0 && strcmp((yyvsp[0].str), "redirect")!=0 && - strcmp((yyvsp[0].str), "transparent")!=0 && strcmp((yyvsp[0].str), "nodefault")!=0 - && strcmp((yyvsp[0].str), "typetransparent")!=0 - && strcmp((yyvsp[0].str), "always_transparent")!=0 - && strcmp((yyvsp[0].str), "always_refuse")!=0 - && strcmp((yyvsp[0].str), "always_nxdomain")!=0 - && strcmp((yyvsp[0].str), "always_nodata")!=0 - && strcmp((yyvsp[0].str), "always_deny")!=0 - && strcmp((yyvsp[0].str), "always_null")!=0 - && strcmp((yyvsp[0].str), "noview")!=0 - && strcmp((yyvsp[0].str), "inform")!=0 && strcmp((yyvsp[0].str), "inform_deny")!=0 - && strcmp((yyvsp[0].str), "inform_redirect") != 0 - && strcmp((yyvsp[0].str), "ipset") != 0) { - yyerror("local-zone type: expected static, deny, " - "refuse, redirect, transparent, " - "typetransparent, inform, inform_deny, " - "inform_redirect, always_transparent, " - "always_refuse, always_nxdomain, " - "always_nodata, always_deny, always_null, " - "noview, nodefault or ipset"); - free((yyvsp[-1].str)); - free((yyvsp[0].str)); - } else if(strcmp((yyvsp[0].str), "nodefault")==0) { - if(!cfg_strlist_insert(&cfg_parser->cfg->views-> - local_zones_nodefault, (yyvsp[-1].str))) - fatal_exit("out of memory adding local-zone"); - free((yyvsp[0].str)); -#ifdef USE_IPSET - } else if(strcmp((yyvsp[0].str), "ipset")==0) { - size_t len = strlen((yyvsp[-1].str)); - /* Make sure to add the trailing dot. - * These are str compared to domain names. */ - if((yyvsp[-1].str)[len-1] != '.') { - if(!((yyvsp[-1].str) = realloc((yyvsp[-1].str), len+2))) { - fatal_exit("out of memory adding local-zone"); - } - (yyvsp[-1].str)[len] = '.'; - (yyvsp[-1].str)[len+1] = 0; - } - if(!cfg_strlist_insert(&cfg_parser->cfg->views-> - local_zones_ipset, (yyvsp[-1].str))) - fatal_exit("out of memory adding local-zone"); - free((yyvsp[0].str)); -#endif - } else { - if(!cfg_str2list_insert( - &cfg_parser->cfg->views->local_zones, - (yyvsp[-1].str), (yyvsp[0].str))) - fatal_exit("out of memory adding local-zone"); - } - } -#line 6452 "util/configparser.c" - break; - - case 579: /* view_response_ip: VAR_RESPONSE_IP STRING_ARG STRING_ARG */ -#line 3166 "./util/configparser.y" - { - OUTYY(("P(view_response_ip:%s %s)\n", (yyvsp[-1].str), (yyvsp[0].str))); - validate_respip_action((yyvsp[0].str)); - if(!cfg_str2list_insert( - &cfg_parser->cfg->views->respip_actions, (yyvsp[-1].str), (yyvsp[0].str))) - fatal_exit("out of memory adding per-view " - "response-ip action"); - } -#line 6465 "util/configparser.c" - break; - - case 580: /* view_response_ip_data: VAR_RESPONSE_IP_DATA STRING_ARG STRING_ARG */ -#line 3176 "./util/configparser.y" - { - OUTYY(("P(view_response_ip_data:%s)\n", (yyvsp[-1].str))); - if(!cfg_str2list_insert( - &cfg_parser->cfg->views->respip_data, (yyvsp[-1].str), (yyvsp[0].str))) - fatal_exit("out of memory adding response-ip-data"); - } -#line 6476 "util/configparser.c" - break; - - case 581: /* view_local_data: VAR_LOCAL_DATA STRING_ARG */ -#line 3184 "./util/configparser.y" - { - OUTYY(("P(view_local_data:%s)\n", (yyvsp[0].str))); - if(!cfg_strlist_insert(&cfg_parser->cfg->views->local_data, (yyvsp[0].str))) { - fatal_exit("out of memory adding local-data"); - } - } -#line 6487 "util/configparser.c" - break; - - case 582: /* view_local_data_ptr: VAR_LOCAL_DATA_PTR STRING_ARG */ -#line 3192 "./util/configparser.y" - { - char* ptr; - OUTYY(("P(view_local_data_ptr:%s)\n", (yyvsp[0].str))); - ptr = cfg_ptr_reverse((yyvsp[0].str)); - free((yyvsp[0].str)); - if(ptr) { - if(!cfg_strlist_insert(&cfg_parser->cfg->views-> - local_data, ptr)) - fatal_exit("out of memory adding local-data"); - } else { - yyerror("local-data-ptr could not be reversed"); - } - } -#line 6505 "util/configparser.c" - break; - - case 583: /* view_first: VAR_VIEW_FIRST STRING_ARG */ -#line 3207 "./util/configparser.y" - { - OUTYY(("P(view-first:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->views->isfirst=(strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 6517 "util/configparser.c" - break; - - case 584: /* rcstart: VAR_REMOTE_CONTROL */ -#line 3216 "./util/configparser.y" - { - OUTYY(("\nP(remote-control:)\n")); - cfg_parser->started_toplevel = 1; - } -#line 6526 "util/configparser.c" - break; - - case 595: /* rc_control_enable: VAR_CONTROL_ENABLE STRING_ARG */ -#line 3228 "./util/configparser.y" - { - OUTYY(("P(control_enable:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->remote_control_enable = - (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 6539 "util/configparser.c" - break; - - case 596: /* rc_control_port: VAR_CONTROL_PORT STRING_ARG */ -#line 3238 "./util/configparser.y" - { - OUTYY(("P(control_port:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0) - yyerror("control port number expected"); - else cfg_parser->cfg->control_port = atoi((yyvsp[0].str)); - free((yyvsp[0].str)); - } -#line 6551 "util/configparser.c" - break; - - case 597: /* rc_control_interface: VAR_CONTROL_INTERFACE STRING_ARG */ -#line 3247 "./util/configparser.y" - { - OUTYY(("P(control_interface:%s)\n", (yyvsp[0].str))); - if(!cfg_strlist_append(&cfg_parser->cfg->control_ifs, (yyvsp[0].str))) - yyerror("out of memory"); - } -#line 6561 "util/configparser.c" - break; - - case 598: /* rc_control_use_cert: VAR_CONTROL_USE_CERT STRING_ARG */ -#line 3254 "./util/configparser.y" - { - OUTYY(("P(control_use_cert:%s)\n", (yyvsp[0].str))); - cfg_parser->cfg->control_use_cert = (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 6571 "util/configparser.c" - break; - - case 599: /* rc_server_key_file: VAR_SERVER_KEY_FILE STRING_ARG */ -#line 3261 "./util/configparser.y" - { - OUTYY(("P(rc_server_key_file:%s)\n", (yyvsp[0].str))); - free(cfg_parser->cfg->server_key_file); - cfg_parser->cfg->server_key_file = (yyvsp[0].str); - } -#line 6581 "util/configparser.c" - break; - - case 600: /* rc_server_cert_file: VAR_SERVER_CERT_FILE STRING_ARG */ -#line 3268 "./util/configparser.y" - { - OUTYY(("P(rc_server_cert_file:%s)\n", (yyvsp[0].str))); - free(cfg_parser->cfg->server_cert_file); - cfg_parser->cfg->server_cert_file = (yyvsp[0].str); - } -#line 6591 "util/configparser.c" - break; - - case 601: /* rc_control_key_file: VAR_CONTROL_KEY_FILE STRING_ARG */ -#line 3275 "./util/configparser.y" - { - OUTYY(("P(rc_control_key_file:%s)\n", (yyvsp[0].str))); - free(cfg_parser->cfg->control_key_file); - cfg_parser->cfg->control_key_file = (yyvsp[0].str); - } -#line 6601 "util/configparser.c" - break; - - case 602: /* rc_control_cert_file: VAR_CONTROL_CERT_FILE STRING_ARG */ -#line 3282 "./util/configparser.y" - { - OUTYY(("P(rc_control_cert_file:%s)\n", (yyvsp[0].str))); - free(cfg_parser->cfg->control_cert_file); - cfg_parser->cfg->control_cert_file = (yyvsp[0].str); - } -#line 6611 "util/configparser.c" - break; - - case 603: /* dtstart: VAR_DNSTAP */ -#line 3289 "./util/configparser.y" - { - OUTYY(("\nP(dnstap:)\n")); - cfg_parser->started_toplevel = 1; - } -#line 6620 "util/configparser.c" - break; - - case 625: /* dt_dnstap_enable: VAR_DNSTAP_ENABLE STRING_ARG */ -#line 3310 "./util/configparser.y" - { - OUTYY(("P(dt_dnstap_enable:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->dnstap = (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 6632 "util/configparser.c" - break; - - case 626: /* dt_dnstap_bidirectional: VAR_DNSTAP_BIDIRECTIONAL STRING_ARG */ -#line 3319 "./util/configparser.y" - { - OUTYY(("P(dt_dnstap_bidirectional:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->dnstap_bidirectional = - (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 6645 "util/configparser.c" - break; - - case 627: /* dt_dnstap_socket_path: VAR_DNSTAP_SOCKET_PATH STRING_ARG */ -#line 3329 "./util/configparser.y" - { - OUTYY(("P(dt_dnstap_socket_path:%s)\n", (yyvsp[0].str))); - free(cfg_parser->cfg->dnstap_socket_path); - cfg_parser->cfg->dnstap_socket_path = (yyvsp[0].str); - } -#line 6655 "util/configparser.c" - break; - - case 628: /* dt_dnstap_ip: VAR_DNSTAP_IP STRING_ARG */ -#line 3336 "./util/configparser.y" - { - OUTYY(("P(dt_dnstap_ip:%s)\n", (yyvsp[0].str))); - free(cfg_parser->cfg->dnstap_ip); - cfg_parser->cfg->dnstap_ip = (yyvsp[0].str); - } -#line 6665 "util/configparser.c" - break; - - case 629: /* dt_dnstap_tls: VAR_DNSTAP_TLS STRING_ARG */ -#line 3343 "./util/configparser.y" - { - OUTYY(("P(dt_dnstap_tls:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->dnstap_tls = (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 6677 "util/configparser.c" - break; - - case 630: /* dt_dnstap_tls_server_name: VAR_DNSTAP_TLS_SERVER_NAME STRING_ARG */ -#line 3352 "./util/configparser.y" - { - OUTYY(("P(dt_dnstap_tls_server_name:%s)\n", (yyvsp[0].str))); - free(cfg_parser->cfg->dnstap_tls_server_name); - cfg_parser->cfg->dnstap_tls_server_name = (yyvsp[0].str); - } -#line 6687 "util/configparser.c" - break; - - case 631: /* dt_dnstap_tls_cert_bundle: VAR_DNSTAP_TLS_CERT_BUNDLE STRING_ARG */ -#line 3359 "./util/configparser.y" - { - OUTYY(("P(dt_dnstap_tls_cert_bundle:%s)\n", (yyvsp[0].str))); - free(cfg_parser->cfg->dnstap_tls_cert_bundle); - cfg_parser->cfg->dnstap_tls_cert_bundle = (yyvsp[0].str); - } -#line 6697 "util/configparser.c" - break; - - case 632: /* dt_dnstap_tls_client_key_file: VAR_DNSTAP_TLS_CLIENT_KEY_FILE STRING_ARG */ -#line 3366 "./util/configparser.y" - { - OUTYY(("P(dt_dnstap_tls_client_key_file:%s)\n", (yyvsp[0].str))); - free(cfg_parser->cfg->dnstap_tls_client_key_file); - cfg_parser->cfg->dnstap_tls_client_key_file = (yyvsp[0].str); - } -#line 6707 "util/configparser.c" - break; - - case 633: /* dt_dnstap_tls_client_cert_file: VAR_DNSTAP_TLS_CLIENT_CERT_FILE STRING_ARG */ -#line 3373 "./util/configparser.y" - { - OUTYY(("P(dt_dnstap_tls_client_cert_file:%s)\n", (yyvsp[0].str))); - free(cfg_parser->cfg->dnstap_tls_client_cert_file); - cfg_parser->cfg->dnstap_tls_client_cert_file = (yyvsp[0].str); - } -#line 6717 "util/configparser.c" - break; - - case 634: /* dt_dnstap_send_identity: VAR_DNSTAP_SEND_IDENTITY STRING_ARG */ -#line 3380 "./util/configparser.y" - { - OUTYY(("P(dt_dnstap_send_identity:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->dnstap_send_identity = (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 6729 "util/configparser.c" - break; - - case 635: /* dt_dnstap_send_version: VAR_DNSTAP_SEND_VERSION STRING_ARG */ -#line 3389 "./util/configparser.y" - { - OUTYY(("P(dt_dnstap_send_version:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->dnstap_send_version = (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 6741 "util/configparser.c" - break; - - case 636: /* dt_dnstap_identity: VAR_DNSTAP_IDENTITY STRING_ARG */ -#line 3398 "./util/configparser.y" - { - OUTYY(("P(dt_dnstap_identity:%s)\n", (yyvsp[0].str))); - free(cfg_parser->cfg->dnstap_identity); - cfg_parser->cfg->dnstap_identity = (yyvsp[0].str); - } -#line 6751 "util/configparser.c" - break; - - case 637: /* dt_dnstap_version: VAR_DNSTAP_VERSION STRING_ARG */ -#line 3405 "./util/configparser.y" - { - OUTYY(("P(dt_dnstap_version:%s)\n", (yyvsp[0].str))); - free(cfg_parser->cfg->dnstap_version); - cfg_parser->cfg->dnstap_version = (yyvsp[0].str); - } -#line 6761 "util/configparser.c" - break; - - case 638: /* dt_dnstap_log_resolver_query_messages: VAR_DNSTAP_LOG_RESOLVER_QUERY_MESSAGES STRING_ARG */ -#line 3412 "./util/configparser.y" - { - OUTYY(("P(dt_dnstap_log_resolver_query_messages:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->dnstap_log_resolver_query_messages = - (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 6774 "util/configparser.c" - break; - - case 639: /* dt_dnstap_log_resolver_response_messages: VAR_DNSTAP_LOG_RESOLVER_RESPONSE_MESSAGES STRING_ARG */ -#line 3422 "./util/configparser.y" - { - OUTYY(("P(dt_dnstap_log_resolver_response_messages:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->dnstap_log_resolver_response_messages = - (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 6787 "util/configparser.c" - break; - - case 640: /* dt_dnstap_log_client_query_messages: VAR_DNSTAP_LOG_CLIENT_QUERY_MESSAGES STRING_ARG */ -#line 3432 "./util/configparser.y" - { - OUTYY(("P(dt_dnstap_log_client_query_messages:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->dnstap_log_client_query_messages = - (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 6800 "util/configparser.c" - break; - - case 641: /* dt_dnstap_log_client_response_messages: VAR_DNSTAP_LOG_CLIENT_RESPONSE_MESSAGES STRING_ARG */ -#line 3442 "./util/configparser.y" - { - OUTYY(("P(dt_dnstap_log_client_response_messages:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->dnstap_log_client_response_messages = - (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 6813 "util/configparser.c" - break; - - case 642: /* dt_dnstap_log_forwarder_query_messages: VAR_DNSTAP_LOG_FORWARDER_QUERY_MESSAGES STRING_ARG */ -#line 3452 "./util/configparser.y" - { - OUTYY(("P(dt_dnstap_log_forwarder_query_messages:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->dnstap_log_forwarder_query_messages = - (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 6826 "util/configparser.c" - break; - - case 643: /* dt_dnstap_log_forwarder_response_messages: VAR_DNSTAP_LOG_FORWARDER_RESPONSE_MESSAGES STRING_ARG */ -#line 3462 "./util/configparser.y" - { - OUTYY(("P(dt_dnstap_log_forwarder_response_messages:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->dnstap_log_forwarder_response_messages = - (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 6839 "util/configparser.c" - break; - - case 644: /* pythonstart: VAR_PYTHON */ -#line 3472 "./util/configparser.y" - { - OUTYY(("\nP(python:)\n")); - cfg_parser->started_toplevel = 1; - } -#line 6848 "util/configparser.c" - break; - - case 648: /* py_script: VAR_PYTHON_SCRIPT STRING_ARG */ -#line 3482 "./util/configparser.y" - { - OUTYY(("P(python-script:%s)\n", (yyvsp[0].str))); - if(!cfg_strlist_append_ex(&cfg_parser->cfg->python_script, (yyvsp[0].str))) - yyerror("out of memory"); - } -#line 6858 "util/configparser.c" - break; - - case 649: /* dynlibstart: VAR_DYNLIB */ -#line 3488 "./util/configparser.y" - { - OUTYY(("\nP(dynlib:)\n")); - cfg_parser->started_toplevel = 1; - } -#line 6867 "util/configparser.c" - break; - - case 653: /* dl_file: VAR_DYNLIB_FILE STRING_ARG */ -#line 3498 "./util/configparser.y" - { - OUTYY(("P(dynlib-file:%s)\n", (yyvsp[0].str))); - if(!cfg_strlist_append_ex(&cfg_parser->cfg->dynlib_file, (yyvsp[0].str))) - yyerror("out of memory"); - } -#line 6877 "util/configparser.c" - break; - - case 654: /* server_disable_dnssec_lame_check: VAR_DISABLE_DNSSEC_LAME_CHECK STRING_ARG */ -#line 3504 "./util/configparser.y" - { - OUTYY(("P(disable_dnssec_lame_check:%s)\n", (yyvsp[0].str))); - if (strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->disable_dnssec_lame_check = - (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 6890 "util/configparser.c" - break; - - case 655: /* server_log_identity: VAR_LOG_IDENTITY STRING_ARG */ -#line 3514 "./util/configparser.y" - { - OUTYY(("P(server_log_identity:%s)\n", (yyvsp[0].str))); - free(cfg_parser->cfg->log_identity); - cfg_parser->cfg->log_identity = (yyvsp[0].str); - } -#line 6900 "util/configparser.c" - break; - - case 656: /* server_response_ip: VAR_RESPONSE_IP STRING_ARG STRING_ARG */ -#line 3521 "./util/configparser.y" - { - OUTYY(("P(server_response_ip:%s %s)\n", (yyvsp[-1].str), (yyvsp[0].str))); - validate_respip_action((yyvsp[0].str)); - if(!cfg_str2list_insert(&cfg_parser->cfg->respip_actions, - (yyvsp[-1].str), (yyvsp[0].str))) - fatal_exit("out of memory adding response-ip"); - } -#line 6912 "util/configparser.c" - break; - - case 657: /* server_response_ip_data: VAR_RESPONSE_IP_DATA STRING_ARG STRING_ARG */ -#line 3530 "./util/configparser.y" - { - OUTYY(("P(server_response_ip_data:%s)\n", (yyvsp[-1].str))); - if(!cfg_str2list_insert(&cfg_parser->cfg->respip_data, - (yyvsp[-1].str), (yyvsp[0].str))) - fatal_exit("out of memory adding response-ip-data"); - } -#line 6923 "util/configparser.c" - break; - - case 658: /* dnscstart: VAR_DNSCRYPT */ -#line 3538 "./util/configparser.y" - { - OUTYY(("\nP(dnscrypt:)\n")); - cfg_parser->started_toplevel = 1; - } -#line 6932 "util/configparser.c" - break; - - case 671: /* dnsc_dnscrypt_enable: VAR_DNSCRYPT_ENABLE STRING_ARG */ -#line 3555 "./util/configparser.y" - { - OUTYY(("P(dnsc_dnscrypt_enable:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->dnscrypt = (strcmp((yyvsp[0].str), "yes")==0); - free((yyvsp[0].str)); - } -#line 6944 "util/configparser.c" - break; - - case 672: /* dnsc_dnscrypt_port: VAR_DNSCRYPT_PORT STRING_ARG */ -#line 3565 "./util/configparser.y" - { - OUTYY(("P(dnsc_dnscrypt_port:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0) - yyerror("port number expected"); - else cfg_parser->cfg->dnscrypt_port = atoi((yyvsp[0].str)); - free((yyvsp[0].str)); - } -#line 6956 "util/configparser.c" - break; - - case 673: /* dnsc_dnscrypt_provider: VAR_DNSCRYPT_PROVIDER STRING_ARG */ -#line 3574 "./util/configparser.y" - { - OUTYY(("P(dnsc_dnscrypt_provider:%s)\n", (yyvsp[0].str))); - free(cfg_parser->cfg->dnscrypt_provider); - cfg_parser->cfg->dnscrypt_provider = (yyvsp[0].str); - } -#line 6966 "util/configparser.c" - break; - - case 674: /* dnsc_dnscrypt_provider_cert: VAR_DNSCRYPT_PROVIDER_CERT STRING_ARG */ -#line 3581 "./util/configparser.y" - { - OUTYY(("P(dnsc_dnscrypt_provider_cert:%s)\n", (yyvsp[0].str))); - if(cfg_strlist_find(cfg_parser->cfg->dnscrypt_provider_cert, (yyvsp[0].str))) - log_warn("dnscrypt-provider-cert %s is a duplicate", (yyvsp[0].str)); - if(!cfg_strlist_insert(&cfg_parser->cfg->dnscrypt_provider_cert, (yyvsp[0].str))) - fatal_exit("out of memory adding dnscrypt-provider-cert"); - } -#line 6978 "util/configparser.c" - break; - - case 675: /* dnsc_dnscrypt_provider_cert_rotated: VAR_DNSCRYPT_PROVIDER_CERT_ROTATED STRING_ARG */ -#line 3590 "./util/configparser.y" - { - OUTYY(("P(dnsc_dnscrypt_provider_cert_rotated:%s)\n", (yyvsp[0].str))); - if(!cfg_strlist_insert(&cfg_parser->cfg->dnscrypt_provider_cert_rotated, (yyvsp[0].str))) - fatal_exit("out of memory adding dnscrypt-provider-cert-rotated"); - } -#line 6988 "util/configparser.c" - break; - - case 676: /* dnsc_dnscrypt_secret_key: VAR_DNSCRYPT_SECRET_KEY STRING_ARG */ -#line 3597 "./util/configparser.y" - { - OUTYY(("P(dnsc_dnscrypt_secret_key:%s)\n", (yyvsp[0].str))); - if(cfg_strlist_find(cfg_parser->cfg->dnscrypt_secret_key, (yyvsp[0].str))) - log_warn("dnscrypt-secret-key: %s is a duplicate", (yyvsp[0].str)); - if(!cfg_strlist_insert(&cfg_parser->cfg->dnscrypt_secret_key, (yyvsp[0].str))) - fatal_exit("out of memory adding dnscrypt-secret-key"); - } -#line 7000 "util/configparser.c" - break; - - case 677: /* dnsc_dnscrypt_shared_secret_cache_size: VAR_DNSCRYPT_SHARED_SECRET_CACHE_SIZE STRING_ARG */ -#line 3606 "./util/configparser.y" - { - OUTYY(("P(dnscrypt_shared_secret_cache_size:%s)\n", (yyvsp[0].str))); - if(!cfg_parse_memsize((yyvsp[0].str), &cfg_parser->cfg->dnscrypt_shared_secret_cache_size)) - yyerror("memory size expected"); - free((yyvsp[0].str)); - } -#line 7011 "util/configparser.c" - break; - - case 678: /* dnsc_dnscrypt_shared_secret_cache_slabs: VAR_DNSCRYPT_SHARED_SECRET_CACHE_SLABS STRING_ARG */ -#line 3614 "./util/configparser.y" - { - OUTYY(("P(dnscrypt_shared_secret_cache_slabs:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0) { - yyerror("number expected"); - } else { - cfg_parser->cfg->dnscrypt_shared_secret_cache_slabs = atoi((yyvsp[0].str)); - if(!is_pow2(cfg_parser->cfg->dnscrypt_shared_secret_cache_slabs)) - yyerror("must be a power of 2"); - } - free((yyvsp[0].str)); - } -#line 7027 "util/configparser.c" - break; - - case 679: /* dnsc_dnscrypt_nonce_cache_size: VAR_DNSCRYPT_NONCE_CACHE_SIZE STRING_ARG */ -#line 3627 "./util/configparser.y" - { - OUTYY(("P(dnscrypt_nonce_cache_size:%s)\n", (yyvsp[0].str))); - if(!cfg_parse_memsize((yyvsp[0].str), &cfg_parser->cfg->dnscrypt_nonce_cache_size)) - yyerror("memory size expected"); - free((yyvsp[0].str)); - } -#line 7038 "util/configparser.c" - break; - - case 680: /* dnsc_dnscrypt_nonce_cache_slabs: VAR_DNSCRYPT_NONCE_CACHE_SLABS STRING_ARG */ -#line 3635 "./util/configparser.y" - { - OUTYY(("P(dnscrypt_nonce_cache_slabs:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0) { - yyerror("number expected"); - } else { - cfg_parser->cfg->dnscrypt_nonce_cache_slabs = atoi((yyvsp[0].str)); - if(!is_pow2(cfg_parser->cfg->dnscrypt_nonce_cache_slabs)) - yyerror("must be a power of 2"); - } - free((yyvsp[0].str)); - } -#line 7054 "util/configparser.c" - break; - - case 681: /* cachedbstart: VAR_CACHEDB */ -#line 3648 "./util/configparser.y" - { - OUTYY(("\nP(cachedb:)\n")); - cfg_parser->started_toplevel = 1; - } -#line 7063 "util/configparser.c" - break; - - case 692: /* cachedb_backend_name: VAR_CACHEDB_BACKEND STRING_ARG */ -#line 3660 "./util/configparser.y" - { - #ifdef USE_CACHEDB - OUTYY(("P(backend:%s)\n", (yyvsp[0].str))); - free(cfg_parser->cfg->cachedb_backend); - cfg_parser->cfg->cachedb_backend = (yyvsp[0].str); - #else - OUTYY(("P(Compiled without cachedb, ignoring)\n")); - free((yyvsp[0].str)); - #endif - } -#line 7078 "util/configparser.c" - break; - - case 693: /* cachedb_secret_seed: VAR_CACHEDB_SECRETSEED STRING_ARG */ -#line 3672 "./util/configparser.y" - { - #ifdef USE_CACHEDB - OUTYY(("P(secret-seed:%s)\n", (yyvsp[0].str))); - free(cfg_parser->cfg->cachedb_secret); - cfg_parser->cfg->cachedb_secret = (yyvsp[0].str); - #else - OUTYY(("P(Compiled without cachedb, ignoring)\n")); - free((yyvsp[0].str)); - #endif - } -#line 7093 "util/configparser.c" - break; - - case 694: /* redis_server_host: VAR_CACHEDB_REDISHOST STRING_ARG */ -#line 3684 "./util/configparser.y" - { - #if defined(USE_CACHEDB) && defined(USE_REDIS) - OUTYY(("P(redis_server_host:%s)\n", (yyvsp[0].str))); - free(cfg_parser->cfg->redis_server_host); - cfg_parser->cfg->redis_server_host = (yyvsp[0].str); - #else - OUTYY(("P(Compiled without cachedb or redis, ignoring)\n")); - free((yyvsp[0].str)); - #endif - } -#line 7108 "util/configparser.c" - break; - - case 695: /* redis_server_port: VAR_CACHEDB_REDISPORT STRING_ARG */ -#line 3696 "./util/configparser.y" - { - #if defined(USE_CACHEDB) && defined(USE_REDIS) - int port; - OUTYY(("P(redis_server_port:%s)\n", (yyvsp[0].str))); - port = atoi((yyvsp[0].str)); - if(port == 0 || port < 0 || port > 65535) - yyerror("valid redis server port number expected"); - else cfg_parser->cfg->redis_server_port = port; - #else - OUTYY(("P(Compiled without cachedb or redis, ignoring)\n")); - #endif - free((yyvsp[0].str)); - } -#line 7126 "util/configparser.c" - break; - - case 696: /* redis_server_path: VAR_CACHEDB_REDISPATH STRING_ARG */ -#line 3711 "./util/configparser.y" - { - #if defined(USE_CACHEDB) && defined(USE_REDIS) - OUTYY(("P(redis_server_path:%s)\n", (yyvsp[0].str))); - free(cfg_parser->cfg->redis_server_path); - cfg_parser->cfg->redis_server_path = (yyvsp[0].str); - #else - OUTYY(("P(Compiled without cachedb or redis, ignoring)\n")); - free((yyvsp[0].str)); - #endif - } -#line 7141 "util/configparser.c" - break; - - case 697: /* redis_server_password: VAR_CACHEDB_REDISPASSWORD STRING_ARG */ -#line 3723 "./util/configparser.y" - { - #if defined(USE_CACHEDB) && defined(USE_REDIS) - OUTYY(("P(redis_server_password:%s)\n", (yyvsp[0].str))); - free(cfg_parser->cfg->redis_server_password); - cfg_parser->cfg->redis_server_password = (yyvsp[0].str); - #else - OUTYY(("P(Compiled without cachedb or redis, ignoring)\n")); - free((yyvsp[0].str)); - #endif - } -#line 7156 "util/configparser.c" - break; - - case 698: /* redis_timeout: VAR_CACHEDB_REDISTIMEOUT STRING_ARG */ -#line 3735 "./util/configparser.y" - { - #if defined(USE_CACHEDB) && defined(USE_REDIS) - OUTYY(("P(redis_timeout:%s)\n", (yyvsp[0].str))); - if(atoi((yyvsp[0].str)) == 0) - yyerror("redis timeout value expected"); - else cfg_parser->cfg->redis_timeout = atoi((yyvsp[0].str)); - #else - OUTYY(("P(Compiled without cachedb or redis, ignoring)\n")); - #endif - free((yyvsp[0].str)); - } -#line 7172 "util/configparser.c" - break; - - case 699: /* redis_expire_records: VAR_CACHEDB_REDISEXPIRERECORDS STRING_ARG */ -#line 3748 "./util/configparser.y" - { - #if defined(USE_CACHEDB) && defined(USE_REDIS) - OUTYY(("P(redis_expire_records:%s)\n", (yyvsp[0].str))); - if(strcmp((yyvsp[0].str), "yes") != 0 && strcmp((yyvsp[0].str), "no") != 0) - yyerror("expected yes or no."); - else cfg_parser->cfg->redis_expire_records = (strcmp((yyvsp[0].str), "yes")==0); - #else - OUTYY(("P(Compiled without cachedb or redis, ignoring)\n")); - #endif - free((yyvsp[0].str)); - } -#line 7188 "util/configparser.c" - break; - - case 700: /* server_tcp_connection_limit: VAR_TCP_CONNECTION_LIMIT STRING_ARG STRING_ARG */ -#line 3761 "./util/configparser.y" - { - OUTYY(("P(server_tcp_connection_limit:%s %s)\n", (yyvsp[-1].str), (yyvsp[0].str))); - if (atoi((yyvsp[0].str)) < 0) - yyerror("positive number expected"); - else { - if(!cfg_str2list_insert(&cfg_parser->cfg->tcp_connection_limits, (yyvsp[-1].str), (yyvsp[0].str))) - fatal_exit("out of memory adding tcp connection limit"); - } - } -#line 7202 "util/configparser.c" - break; - - case 701: /* ipsetstart: VAR_IPSET */ -#line 3772 "./util/configparser.y" - { - OUTYY(("\nP(ipset:)\n")); - cfg_parser->started_toplevel = 1; - } -#line 7211 "util/configparser.c" - break; - - case 706: /* ipset_name_v4: VAR_IPSET_NAME_V4 STRING_ARG */ -#line 3782 "./util/configparser.y" - { - #ifdef USE_IPSET - OUTYY(("P(name-v4:%s)\n", (yyvsp[0].str))); - if(cfg_parser->cfg->ipset_name_v4) - yyerror("ipset name v4 override, there must be one " - "name for ip v4"); - free(cfg_parser->cfg->ipset_name_v4); - cfg_parser->cfg->ipset_name_v4 = (yyvsp[0].str); - #else - OUTYY(("P(Compiled without ipset, ignoring)\n")); - free((yyvsp[0].str)); - #endif - } -#line 7229 "util/configparser.c" - break; - - case 707: /* ipset_name_v6: VAR_IPSET_NAME_V6 STRING_ARG */ -#line 3797 "./util/configparser.y" - { - #ifdef USE_IPSET - OUTYY(("P(name-v6:%s)\n", (yyvsp[0].str))); - if(cfg_parser->cfg->ipset_name_v6) - yyerror("ipset name v6 override, there must be one " - "name for ip v6"); - free(cfg_parser->cfg->ipset_name_v6); - cfg_parser->cfg->ipset_name_v6 = (yyvsp[0].str); - #else - OUTYY(("P(Compiled without ipset, ignoring)\n")); - free((yyvsp[0].str)); - #endif - } -#line 7247 "util/configparser.c" - break; - - -#line 7251 "util/configparser.c" - - default: break; - } - /* User semantic actions sometimes alter yychar, and that requires - that yytoken be updated with the new translation. We take the - approach of translating immediately before every use of yytoken. - One alternative is translating here after every semantic action, - but that translation would be missed if the semantic action invokes - YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or - if it invokes YYBACKUP. In the case of YYABORT or YYACCEPT, an - incorrect destructor might then be invoked immediately. In the - case of YYERROR or YYBACKUP, subsequent parser actions might lead - to an incorrect destructor call or verbose syntax error message - before the lookahead is translated. */ - YY_SYMBOL_PRINT ("-> $$ =", YY_CAST (yysymbol_kind_t, yyr1[yyn]), &yyval, &yyloc); - - YYPOPSTACK (yylen); - yylen = 0; - - *++yyvsp = yyval; - - /* Now 'shift' the result of the reduction. Determine what state - that goes to, based on the state we popped back to and the rule - number reduced by. */ - { - const int yylhs = yyr1[yyn] - YYNTOKENS; - const int yyi = yypgoto[yylhs] + *yyssp; - yystate = (0 <= yyi && yyi <= YYLAST && yycheck[yyi] == *yyssp - ? yytable[yyi] - : yydefgoto[yylhs]); - } - - goto yynewstate; - - -/*--------------------------------------. -| yyerrlab -- here on detecting error. | -`--------------------------------------*/ -yyerrlab: - /* Make sure we have latest lookahead translation. See comments at - user semantic actions for why this is necessary. */ - yytoken = yychar == YYEMPTY ? YYSYMBOL_YYEMPTY : YYTRANSLATE (yychar); - /* If not already recovering from an error, report this error. */ - if (!yyerrstatus) - { - ++yynerrs; - yyerror (YY_("syntax error")); - } - - if (yyerrstatus == 3) - { - /* If just tried and failed to reuse lookahead token after an - error, discard it. */ - - if (yychar <= YYEOF) - { - /* Return failure if at end of input. */ - if (yychar == YYEOF) - YYABORT; - } - else - { - yydestruct ("Error: discarding", - yytoken, &yylval); - yychar = YYEMPTY; - } - } - - /* Else will try to reuse lookahead token after shifting the error - token. */ - goto yyerrlab1; - - -/*---------------------------------------------------. -| yyerrorlab -- error raised explicitly by YYERROR. | -`---------------------------------------------------*/ -yyerrorlab: - /* Pacify compilers when the user code never invokes YYERROR and the - label yyerrorlab therefore never appears in user code. */ - if (0) - YYERROR; - ++yynerrs; - - /* Do not reclaim the symbols of the rule whose action triggered - this YYERROR. */ - YYPOPSTACK (yylen); - yylen = 0; - YY_STACK_PRINT (yyss, yyssp); - yystate = *yyssp; - goto yyerrlab1; - - -/*-------------------------------------------------------------. -| yyerrlab1 -- common code for both syntax error and YYERROR. | -`-------------------------------------------------------------*/ -yyerrlab1: - yyerrstatus = 3; /* Each real token shifted decrements this. */ - - /* Pop stack until we find a state that shifts the error token. */ - for (;;) - { - yyn = yypact[yystate]; - if (!yypact_value_is_default (yyn)) - { - yyn += YYSYMBOL_YYerror; - if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) - { - yyn = yytable[yyn]; - if (0 < yyn) - break; - } - } - - /* Pop the current state because it cannot handle the error token. */ - if (yyssp == yyss) - YYABORT; - - - yydestruct ("Error: popping", - YY_ACCESSING_SYMBOL (yystate), yyvsp); - YYPOPSTACK (1); - yystate = *yyssp; - YY_STACK_PRINT (yyss, yyssp); - } - - YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN - *++yyvsp = yylval; - YY_IGNORE_MAYBE_UNINITIALIZED_END - - - /* Shift the error token. */ - YY_SYMBOL_PRINT ("Shifting", YY_ACCESSING_SYMBOL (yyn), yyvsp, yylsp); - - yystate = yyn; - goto yynewstate; - - -/*-------------------------------------. -| yyacceptlab -- YYACCEPT comes here. | -`-------------------------------------*/ -yyacceptlab: - yyresult = 0; - goto yyreturnlab; - - -/*-----------------------------------. -| yyabortlab -- YYABORT comes here. | -`-----------------------------------*/ -yyabortlab: - yyresult = 1; - goto yyreturnlab; - - -/*-----------------------------------------------------------. -| yyexhaustedlab -- YYNOMEM (memory exhaustion) comes here. | -`-----------------------------------------------------------*/ -yyexhaustedlab: - yyerror (YY_("memory exhausted")); - yyresult = 2; - goto yyreturnlab; - - -/*----------------------------------------------------------. -| yyreturnlab -- parsing is finished, clean up and return. | -`----------------------------------------------------------*/ -yyreturnlab: - if (yychar != YYEMPTY) - { - /* Make sure we have latest lookahead translation. See comments at - user semantic actions for why this is necessary. */ - yytoken = YYTRANSLATE (yychar); - yydestruct ("Cleanup: discarding lookahead", - yytoken, &yylval); - } - /* Do not reclaim the symbols of the rule whose action triggered - this YYABORT or YYACCEPT. */ - YYPOPSTACK (yylen); - YY_STACK_PRINT (yyss, yyssp); - while (yyssp != yyss) - { - yydestruct ("Cleanup: popping", - YY_ACCESSING_SYMBOL (+*yyssp), yyvsp); - YYPOPSTACK (1); - } -#ifndef yyoverflow - if (yyss != yyssa) - YYSTACK_FREE (yyss); -#endif - - return yyresult; -} - -#line 3811 "./util/configparser.y" - - -/* parse helper routines could be here */ -static void -validate_respip_action(const char* action) -{ - if(strcmp(action, "deny")!=0 && - strcmp(action, "redirect")!=0 && - strcmp(action, "inform")!=0 && - strcmp(action, "inform_deny")!=0 && - strcmp(action, "always_transparent")!=0 && - strcmp(action, "always_refuse")!=0 && - strcmp(action, "always_nxdomain")!=0) - { - yyerror("response-ip action: expected deny, redirect, " - "inform, inform_deny, always_transparent, " - "always_refuse or always_nxdomain"); - } -} - -static void -validate_acl_action(const char* action) -{ - if(strcmp(action, "deny")!=0 && - strcmp(action, "refuse")!=0 && - strcmp(action, "deny_non_local")!=0 && - strcmp(action, "refuse_non_local")!=0 && - strcmp(action, "allow_setrd")!=0 && - strcmp(action, "allow")!=0 && - strcmp(action, "allow_snoop")!=0) - { - yyerror("expected deny, refuse, deny_non_local, " - "refuse_non_local, allow, allow_setrd or " - "allow_snoop as access control action"); - } -} diff --git a/util/configparser.h b/util/configparser.h deleted file mode 100644 index 1ce85380b..000000000 --- a/util/configparser.h +++ /dev/null @@ -1,763 +0,0 @@ -/* A Bison parser, made by GNU Bison 3.8.2. */ - -/* Bison interface for Yacc-like parsers in C - - Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2021 Free Software Foundation, - Inc. - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . */ - -/* As a special exception, you may create a larger work that contains - part or all of the Bison parser skeleton and distribute that work - under terms of your choice, so long as that work isn't itself a - parser generator using the skeleton or a modified version thereof - as a parser skeleton. Alternatively, if you modify or redistribute - the parser skeleton itself, you may (at your option) remove this - special exception, which will cause the skeleton and the resulting - Bison output files to be licensed under the GNU General Public - License without this special exception. - - This special exception was added by the Free Software Foundation in - version 2.2 of Bison. */ - -/* DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual, - especially those whose name start with YY_ or yy_. They are - private implementation details that can be changed or removed. */ - -#ifndef YY_YY_UTIL_CONFIGPARSER_H_INCLUDED -# define YY_YY_UTIL_CONFIGPARSER_H_INCLUDED -/* Debug traces. */ -#ifndef YYDEBUG -# define YYDEBUG 0 -#endif -#if YYDEBUG -extern int yydebug; -#endif - -/* Token kinds. */ -#ifndef YYTOKENTYPE -# define YYTOKENTYPE - enum yytokentype - { - YYEMPTY = -2, - YYEOF = 0, /* "end of file" */ - YYerror = 256, /* error */ - YYUNDEF = 257, /* "invalid token" */ - SPACE = 258, /* SPACE */ - LETTER = 259, /* LETTER */ - NEWLINE = 260, /* NEWLINE */ - COMMENT = 261, /* COMMENT */ - COLON = 262, /* COLON */ - ANY = 263, /* ANY */ - ZONESTR = 264, /* ZONESTR */ - STRING_ARG = 265, /* STRING_ARG */ - VAR_FORCE_TOPLEVEL = 266, /* VAR_FORCE_TOPLEVEL */ - VAR_SERVER = 267, /* VAR_SERVER */ - VAR_VERBOSITY = 268, /* VAR_VERBOSITY */ - VAR_NUM_THREADS = 269, /* VAR_NUM_THREADS */ - VAR_PORT = 270, /* VAR_PORT */ - VAR_OUTGOING_RANGE = 271, /* VAR_OUTGOING_RANGE */ - VAR_INTERFACE = 272, /* VAR_INTERFACE */ - VAR_PREFER_IP4 = 273, /* VAR_PREFER_IP4 */ - VAR_DO_IP4 = 274, /* VAR_DO_IP4 */ - VAR_DO_IP6 = 275, /* VAR_DO_IP6 */ - VAR_PREFER_IP6 = 276, /* VAR_PREFER_IP6 */ - VAR_DO_UDP = 277, /* VAR_DO_UDP */ - VAR_DO_TCP = 278, /* VAR_DO_TCP */ - VAR_TCP_MSS = 279, /* VAR_TCP_MSS */ - VAR_OUTGOING_TCP_MSS = 280, /* VAR_OUTGOING_TCP_MSS */ - VAR_TCP_IDLE_TIMEOUT = 281, /* VAR_TCP_IDLE_TIMEOUT */ - VAR_EDNS_TCP_KEEPALIVE = 282, /* VAR_EDNS_TCP_KEEPALIVE */ - VAR_EDNS_TCP_KEEPALIVE_TIMEOUT = 283, /* VAR_EDNS_TCP_KEEPALIVE_TIMEOUT */ - VAR_CHROOT = 284, /* VAR_CHROOT */ - VAR_USERNAME = 285, /* VAR_USERNAME */ - VAR_DIRECTORY = 286, /* VAR_DIRECTORY */ - VAR_LOGFILE = 287, /* VAR_LOGFILE */ - VAR_PIDFILE = 288, /* VAR_PIDFILE */ - VAR_MSG_CACHE_SIZE = 289, /* VAR_MSG_CACHE_SIZE */ - VAR_MSG_CACHE_SLABS = 290, /* VAR_MSG_CACHE_SLABS */ - VAR_NUM_QUERIES_PER_THREAD = 291, /* VAR_NUM_QUERIES_PER_THREAD */ - VAR_RRSET_CACHE_SIZE = 292, /* VAR_RRSET_CACHE_SIZE */ - VAR_RRSET_CACHE_SLABS = 293, /* VAR_RRSET_CACHE_SLABS */ - VAR_OUTGOING_NUM_TCP = 294, /* VAR_OUTGOING_NUM_TCP */ - VAR_INFRA_HOST_TTL = 295, /* VAR_INFRA_HOST_TTL */ - VAR_INFRA_LAME_TTL = 296, /* VAR_INFRA_LAME_TTL */ - VAR_INFRA_CACHE_SLABS = 297, /* VAR_INFRA_CACHE_SLABS */ - VAR_INFRA_CACHE_NUMHOSTS = 298, /* VAR_INFRA_CACHE_NUMHOSTS */ - VAR_INFRA_CACHE_LAME_SIZE = 299, /* VAR_INFRA_CACHE_LAME_SIZE */ - VAR_NAME = 300, /* VAR_NAME */ - VAR_STUB_ZONE = 301, /* VAR_STUB_ZONE */ - VAR_STUB_HOST = 302, /* VAR_STUB_HOST */ - VAR_STUB_ADDR = 303, /* VAR_STUB_ADDR */ - VAR_TARGET_FETCH_POLICY = 304, /* VAR_TARGET_FETCH_POLICY */ - VAR_HARDEN_SHORT_BUFSIZE = 305, /* VAR_HARDEN_SHORT_BUFSIZE */ - VAR_HARDEN_LARGE_QUERIES = 306, /* VAR_HARDEN_LARGE_QUERIES */ - VAR_FORWARD_ZONE = 307, /* VAR_FORWARD_ZONE */ - VAR_FORWARD_HOST = 308, /* VAR_FORWARD_HOST */ - VAR_FORWARD_ADDR = 309, /* VAR_FORWARD_ADDR */ - VAR_DO_NOT_QUERY_ADDRESS = 310, /* VAR_DO_NOT_QUERY_ADDRESS */ - VAR_HIDE_IDENTITY = 311, /* VAR_HIDE_IDENTITY */ - VAR_HIDE_VERSION = 312, /* VAR_HIDE_VERSION */ - VAR_IDENTITY = 313, /* VAR_IDENTITY */ - VAR_VERSION = 314, /* VAR_VERSION */ - VAR_HARDEN_GLUE = 315, /* VAR_HARDEN_GLUE */ - VAR_MODULE_CONF = 316, /* VAR_MODULE_CONF */ - VAR_TRUST_ANCHOR_FILE = 317, /* VAR_TRUST_ANCHOR_FILE */ - VAR_TRUST_ANCHOR = 318, /* VAR_TRUST_ANCHOR */ - VAR_VAL_OVERRIDE_DATE = 319, /* VAR_VAL_OVERRIDE_DATE */ - VAR_BOGUS_TTL = 320, /* VAR_BOGUS_TTL */ - VAR_VAL_CLEAN_ADDITIONAL = 321, /* VAR_VAL_CLEAN_ADDITIONAL */ - VAR_VAL_PERMISSIVE_MODE = 322, /* VAR_VAL_PERMISSIVE_MODE */ - VAR_INCOMING_NUM_TCP = 323, /* VAR_INCOMING_NUM_TCP */ - VAR_MSG_BUFFER_SIZE = 324, /* VAR_MSG_BUFFER_SIZE */ - VAR_KEY_CACHE_SIZE = 325, /* VAR_KEY_CACHE_SIZE */ - VAR_KEY_CACHE_SLABS = 326, /* VAR_KEY_CACHE_SLABS */ - VAR_TRUSTED_KEYS_FILE = 327, /* VAR_TRUSTED_KEYS_FILE */ - VAR_VAL_NSEC3_KEYSIZE_ITERATIONS = 328, /* VAR_VAL_NSEC3_KEYSIZE_ITERATIONS */ - VAR_USE_SYSLOG = 329, /* VAR_USE_SYSLOG */ - VAR_OUTGOING_INTERFACE = 330, /* VAR_OUTGOING_INTERFACE */ - VAR_ROOT_HINTS = 331, /* VAR_ROOT_HINTS */ - VAR_DO_NOT_QUERY_LOCALHOST = 332, /* VAR_DO_NOT_QUERY_LOCALHOST */ - VAR_CACHE_MAX_TTL = 333, /* VAR_CACHE_MAX_TTL */ - VAR_HARDEN_DNSSEC_STRIPPED = 334, /* VAR_HARDEN_DNSSEC_STRIPPED */ - VAR_ACCESS_CONTROL = 335, /* VAR_ACCESS_CONTROL */ - VAR_LOCAL_ZONE = 336, /* VAR_LOCAL_ZONE */ - VAR_LOCAL_DATA = 337, /* VAR_LOCAL_DATA */ - VAR_INTERFACE_AUTOMATIC = 338, /* VAR_INTERFACE_AUTOMATIC */ - VAR_STATISTICS_INTERVAL = 339, /* VAR_STATISTICS_INTERVAL */ - VAR_DO_DAEMONIZE = 340, /* VAR_DO_DAEMONIZE */ - VAR_USE_CAPS_FOR_ID = 341, /* VAR_USE_CAPS_FOR_ID */ - VAR_STATISTICS_CUMULATIVE = 342, /* VAR_STATISTICS_CUMULATIVE */ - VAR_OUTGOING_PORT_PERMIT = 343, /* VAR_OUTGOING_PORT_PERMIT */ - VAR_OUTGOING_PORT_AVOID = 344, /* VAR_OUTGOING_PORT_AVOID */ - VAR_DLV_ANCHOR_FILE = 345, /* VAR_DLV_ANCHOR_FILE */ - VAR_DLV_ANCHOR = 346, /* VAR_DLV_ANCHOR */ - VAR_NEG_CACHE_SIZE = 347, /* VAR_NEG_CACHE_SIZE */ - VAR_HARDEN_REFERRAL_PATH = 348, /* VAR_HARDEN_REFERRAL_PATH */ - VAR_PRIVATE_ADDRESS = 349, /* VAR_PRIVATE_ADDRESS */ - VAR_PRIVATE_DOMAIN = 350, /* VAR_PRIVATE_DOMAIN */ - VAR_REMOTE_CONTROL = 351, /* VAR_REMOTE_CONTROL */ - VAR_CONTROL_ENABLE = 352, /* VAR_CONTROL_ENABLE */ - VAR_CONTROL_INTERFACE = 353, /* VAR_CONTROL_INTERFACE */ - VAR_CONTROL_PORT = 354, /* VAR_CONTROL_PORT */ - VAR_SERVER_KEY_FILE = 355, /* VAR_SERVER_KEY_FILE */ - VAR_SERVER_CERT_FILE = 356, /* VAR_SERVER_CERT_FILE */ - VAR_CONTROL_KEY_FILE = 357, /* VAR_CONTROL_KEY_FILE */ - VAR_CONTROL_CERT_FILE = 358, /* VAR_CONTROL_CERT_FILE */ - VAR_CONTROL_USE_CERT = 359, /* VAR_CONTROL_USE_CERT */ - VAR_TCP_REUSE_TIMEOUT = 360, /* VAR_TCP_REUSE_TIMEOUT */ - VAR_MAX_REUSE_TCP_QUERIES = 361, /* VAR_MAX_REUSE_TCP_QUERIES */ - VAR_EXTENDED_STATISTICS = 362, /* VAR_EXTENDED_STATISTICS */ - VAR_LOCAL_DATA_PTR = 363, /* VAR_LOCAL_DATA_PTR */ - VAR_JOSTLE_TIMEOUT = 364, /* VAR_JOSTLE_TIMEOUT */ - VAR_STUB_PRIME = 365, /* VAR_STUB_PRIME */ - VAR_UNWANTED_REPLY_THRESHOLD = 366, /* VAR_UNWANTED_REPLY_THRESHOLD */ - VAR_LOG_TIME_ASCII = 367, /* VAR_LOG_TIME_ASCII */ - VAR_DOMAIN_INSECURE = 368, /* VAR_DOMAIN_INSECURE */ - VAR_PYTHON = 369, /* VAR_PYTHON */ - VAR_PYTHON_SCRIPT = 370, /* VAR_PYTHON_SCRIPT */ - VAR_VAL_SIG_SKEW_MIN = 371, /* VAR_VAL_SIG_SKEW_MIN */ - VAR_VAL_SIG_SKEW_MAX = 372, /* VAR_VAL_SIG_SKEW_MAX */ - VAR_VAL_MAX_RESTART = 373, /* VAR_VAL_MAX_RESTART */ - VAR_CACHE_MIN_TTL = 374, /* VAR_CACHE_MIN_TTL */ - VAR_VAL_LOG_LEVEL = 375, /* VAR_VAL_LOG_LEVEL */ - VAR_AUTO_TRUST_ANCHOR_FILE = 376, /* VAR_AUTO_TRUST_ANCHOR_FILE */ - VAR_KEEP_MISSING = 377, /* VAR_KEEP_MISSING */ - VAR_ADD_HOLDDOWN = 378, /* VAR_ADD_HOLDDOWN */ - VAR_DEL_HOLDDOWN = 379, /* VAR_DEL_HOLDDOWN */ - VAR_SO_RCVBUF = 380, /* VAR_SO_RCVBUF */ - VAR_EDNS_BUFFER_SIZE = 381, /* VAR_EDNS_BUFFER_SIZE */ - VAR_PREFETCH = 382, /* VAR_PREFETCH */ - VAR_PREFETCH_KEY = 383, /* VAR_PREFETCH_KEY */ - VAR_SO_SNDBUF = 384, /* VAR_SO_SNDBUF */ - VAR_SO_REUSEPORT = 385, /* VAR_SO_REUSEPORT */ - VAR_HARDEN_BELOW_NXDOMAIN = 386, /* VAR_HARDEN_BELOW_NXDOMAIN */ - VAR_IGNORE_CD_FLAG = 387, /* VAR_IGNORE_CD_FLAG */ - VAR_LOG_QUERIES = 388, /* VAR_LOG_QUERIES */ - VAR_LOG_REPLIES = 389, /* VAR_LOG_REPLIES */ - VAR_LOG_LOCAL_ACTIONS = 390, /* VAR_LOG_LOCAL_ACTIONS */ - VAR_TCP_UPSTREAM = 391, /* VAR_TCP_UPSTREAM */ - VAR_SSL_UPSTREAM = 392, /* VAR_SSL_UPSTREAM */ - VAR_TCP_AUTH_QUERY_TIMEOUT = 393, /* VAR_TCP_AUTH_QUERY_TIMEOUT */ - VAR_SSL_SERVICE_KEY = 394, /* VAR_SSL_SERVICE_KEY */ - VAR_SSL_SERVICE_PEM = 395, /* VAR_SSL_SERVICE_PEM */ - VAR_SSL_PORT = 396, /* VAR_SSL_PORT */ - VAR_FORWARD_FIRST = 397, /* VAR_FORWARD_FIRST */ - VAR_STUB_SSL_UPSTREAM = 398, /* VAR_STUB_SSL_UPSTREAM */ - VAR_FORWARD_SSL_UPSTREAM = 399, /* VAR_FORWARD_SSL_UPSTREAM */ - VAR_TLS_CERT_BUNDLE = 400, /* VAR_TLS_CERT_BUNDLE */ - VAR_STUB_TCP_UPSTREAM = 401, /* VAR_STUB_TCP_UPSTREAM */ - VAR_FORWARD_TCP_UPSTREAM = 402, /* VAR_FORWARD_TCP_UPSTREAM */ - VAR_HTTPS_PORT = 403, /* VAR_HTTPS_PORT */ - VAR_HTTP_ENDPOINT = 404, /* VAR_HTTP_ENDPOINT */ - VAR_HTTP_MAX_STREAMS = 405, /* VAR_HTTP_MAX_STREAMS */ - VAR_HTTP_QUERY_BUFFER_SIZE = 406, /* VAR_HTTP_QUERY_BUFFER_SIZE */ - VAR_HTTP_RESPONSE_BUFFER_SIZE = 407, /* VAR_HTTP_RESPONSE_BUFFER_SIZE */ - VAR_HTTP_NODELAY = 408, /* VAR_HTTP_NODELAY */ - VAR_HTTP_NOTLS_DOWNSTREAM = 409, /* VAR_HTTP_NOTLS_DOWNSTREAM */ - VAR_STUB_FIRST = 410, /* VAR_STUB_FIRST */ - VAR_MINIMAL_RESPONSES = 411, /* VAR_MINIMAL_RESPONSES */ - VAR_RRSET_ROUNDROBIN = 412, /* VAR_RRSET_ROUNDROBIN */ - VAR_MAX_UDP_SIZE = 413, /* VAR_MAX_UDP_SIZE */ - VAR_DELAY_CLOSE = 414, /* VAR_DELAY_CLOSE */ - VAR_UDP_CONNECT = 415, /* VAR_UDP_CONNECT */ - VAR_UNBLOCK_LAN_ZONES = 416, /* VAR_UNBLOCK_LAN_ZONES */ - VAR_INSECURE_LAN_ZONES = 417, /* VAR_INSECURE_LAN_ZONES */ - VAR_INFRA_CACHE_MIN_RTT = 418, /* VAR_INFRA_CACHE_MIN_RTT */ - VAR_INFRA_CACHE_MAX_RTT = 419, /* VAR_INFRA_CACHE_MAX_RTT */ - VAR_INFRA_KEEP_PROBING = 420, /* VAR_INFRA_KEEP_PROBING */ - VAR_DNS64_PREFIX = 421, /* VAR_DNS64_PREFIX */ - VAR_DNS64_SYNTHALL = 422, /* VAR_DNS64_SYNTHALL */ - VAR_DNS64_IGNORE_AAAA = 423, /* VAR_DNS64_IGNORE_AAAA */ - VAR_DNSTAP = 424, /* VAR_DNSTAP */ - VAR_DNSTAP_ENABLE = 425, /* VAR_DNSTAP_ENABLE */ - VAR_DNSTAP_SOCKET_PATH = 426, /* VAR_DNSTAP_SOCKET_PATH */ - VAR_DNSTAP_IP = 427, /* VAR_DNSTAP_IP */ - VAR_DNSTAP_TLS = 428, /* VAR_DNSTAP_TLS */ - VAR_DNSTAP_TLS_SERVER_NAME = 429, /* VAR_DNSTAP_TLS_SERVER_NAME */ - VAR_DNSTAP_TLS_CERT_BUNDLE = 430, /* VAR_DNSTAP_TLS_CERT_BUNDLE */ - VAR_DNSTAP_TLS_CLIENT_KEY_FILE = 431, /* VAR_DNSTAP_TLS_CLIENT_KEY_FILE */ - VAR_DNSTAP_TLS_CLIENT_CERT_FILE = 432, /* VAR_DNSTAP_TLS_CLIENT_CERT_FILE */ - VAR_DNSTAP_SEND_IDENTITY = 433, /* VAR_DNSTAP_SEND_IDENTITY */ - VAR_DNSTAP_SEND_VERSION = 434, /* VAR_DNSTAP_SEND_VERSION */ - VAR_DNSTAP_BIDIRECTIONAL = 435, /* VAR_DNSTAP_BIDIRECTIONAL */ - VAR_DNSTAP_IDENTITY = 436, /* VAR_DNSTAP_IDENTITY */ - VAR_DNSTAP_VERSION = 437, /* VAR_DNSTAP_VERSION */ - VAR_DNSTAP_LOG_RESOLVER_QUERY_MESSAGES = 438, /* VAR_DNSTAP_LOG_RESOLVER_QUERY_MESSAGES */ - VAR_DNSTAP_LOG_RESOLVER_RESPONSE_MESSAGES = 439, /* VAR_DNSTAP_LOG_RESOLVER_RESPONSE_MESSAGES */ - VAR_DNSTAP_LOG_CLIENT_QUERY_MESSAGES = 440, /* VAR_DNSTAP_LOG_CLIENT_QUERY_MESSAGES */ - VAR_DNSTAP_LOG_CLIENT_RESPONSE_MESSAGES = 441, /* VAR_DNSTAP_LOG_CLIENT_RESPONSE_MESSAGES */ - VAR_DNSTAP_LOG_FORWARDER_QUERY_MESSAGES = 442, /* VAR_DNSTAP_LOG_FORWARDER_QUERY_MESSAGES */ - VAR_DNSTAP_LOG_FORWARDER_RESPONSE_MESSAGES = 443, /* VAR_DNSTAP_LOG_FORWARDER_RESPONSE_MESSAGES */ - VAR_RESPONSE_IP_TAG = 444, /* VAR_RESPONSE_IP_TAG */ - VAR_RESPONSE_IP = 445, /* VAR_RESPONSE_IP */ - VAR_RESPONSE_IP_DATA = 446, /* VAR_RESPONSE_IP_DATA */ - VAR_HARDEN_ALGO_DOWNGRADE = 447, /* VAR_HARDEN_ALGO_DOWNGRADE */ - VAR_IP_TRANSPARENT = 448, /* VAR_IP_TRANSPARENT */ - VAR_IP_DSCP = 449, /* VAR_IP_DSCP */ - VAR_DISABLE_DNSSEC_LAME_CHECK = 450, /* VAR_DISABLE_DNSSEC_LAME_CHECK */ - VAR_IP_RATELIMIT = 451, /* VAR_IP_RATELIMIT */ - VAR_IP_RATELIMIT_SLABS = 452, /* VAR_IP_RATELIMIT_SLABS */ - VAR_IP_RATELIMIT_SIZE = 453, /* VAR_IP_RATELIMIT_SIZE */ - VAR_RATELIMIT = 454, /* VAR_RATELIMIT */ - VAR_RATELIMIT_SLABS = 455, /* VAR_RATELIMIT_SLABS */ - VAR_RATELIMIT_SIZE = 456, /* VAR_RATELIMIT_SIZE */ - VAR_OUTBOUND_MSG_RETRY = 457, /* VAR_OUTBOUND_MSG_RETRY */ - VAR_MAX_SENT_COUNT = 458, /* VAR_MAX_SENT_COUNT */ - VAR_MAX_QUERY_RESTARTS = 459, /* VAR_MAX_QUERY_RESTARTS */ - VAR_RATELIMIT_FOR_DOMAIN = 460, /* VAR_RATELIMIT_FOR_DOMAIN */ - VAR_RATELIMIT_BELOW_DOMAIN = 461, /* VAR_RATELIMIT_BELOW_DOMAIN */ - VAR_IP_RATELIMIT_FACTOR = 462, /* VAR_IP_RATELIMIT_FACTOR */ - VAR_RATELIMIT_FACTOR = 463, /* VAR_RATELIMIT_FACTOR */ - VAR_IP_RATELIMIT_BACKOFF = 464, /* VAR_IP_RATELIMIT_BACKOFF */ - VAR_RATELIMIT_BACKOFF = 465, /* VAR_RATELIMIT_BACKOFF */ - VAR_SEND_CLIENT_SUBNET = 466, /* VAR_SEND_CLIENT_SUBNET */ - VAR_CLIENT_SUBNET_ZONE = 467, /* VAR_CLIENT_SUBNET_ZONE */ - VAR_CLIENT_SUBNET_ALWAYS_FORWARD = 468, /* VAR_CLIENT_SUBNET_ALWAYS_FORWARD */ - VAR_CLIENT_SUBNET_OPCODE = 469, /* VAR_CLIENT_SUBNET_OPCODE */ - VAR_MAX_CLIENT_SUBNET_IPV4 = 470, /* VAR_MAX_CLIENT_SUBNET_IPV4 */ - VAR_MAX_CLIENT_SUBNET_IPV6 = 471, /* VAR_MAX_CLIENT_SUBNET_IPV6 */ - VAR_MIN_CLIENT_SUBNET_IPV4 = 472, /* VAR_MIN_CLIENT_SUBNET_IPV4 */ - VAR_MIN_CLIENT_SUBNET_IPV6 = 473, /* VAR_MIN_CLIENT_SUBNET_IPV6 */ - VAR_MAX_ECS_TREE_SIZE_IPV4 = 474, /* VAR_MAX_ECS_TREE_SIZE_IPV4 */ - VAR_MAX_ECS_TREE_SIZE_IPV6 = 475, /* VAR_MAX_ECS_TREE_SIZE_IPV6 */ - VAR_CAPS_WHITELIST = 476, /* VAR_CAPS_WHITELIST */ - VAR_CACHE_MAX_NEGATIVE_TTL = 477, /* VAR_CACHE_MAX_NEGATIVE_TTL */ - VAR_PERMIT_SMALL_HOLDDOWN = 478, /* VAR_PERMIT_SMALL_HOLDDOWN */ - VAR_QNAME_MINIMISATION = 479, /* VAR_QNAME_MINIMISATION */ - VAR_QNAME_MINIMISATION_STRICT = 480, /* VAR_QNAME_MINIMISATION_STRICT */ - VAR_IP_FREEBIND = 481, /* VAR_IP_FREEBIND */ - VAR_DEFINE_TAG = 482, /* VAR_DEFINE_TAG */ - VAR_LOCAL_ZONE_TAG = 483, /* VAR_LOCAL_ZONE_TAG */ - VAR_ACCESS_CONTROL_TAG = 484, /* VAR_ACCESS_CONTROL_TAG */ - VAR_LOCAL_ZONE_OVERRIDE = 485, /* VAR_LOCAL_ZONE_OVERRIDE */ - VAR_ACCESS_CONTROL_TAG_ACTION = 486, /* VAR_ACCESS_CONTROL_TAG_ACTION */ - VAR_ACCESS_CONTROL_TAG_DATA = 487, /* VAR_ACCESS_CONTROL_TAG_DATA */ - VAR_VIEW = 488, /* VAR_VIEW */ - VAR_ACCESS_CONTROL_VIEW = 489, /* VAR_ACCESS_CONTROL_VIEW */ - VAR_VIEW_FIRST = 490, /* VAR_VIEW_FIRST */ - VAR_SERVE_EXPIRED = 491, /* VAR_SERVE_EXPIRED */ - VAR_SERVE_EXPIRED_TTL = 492, /* VAR_SERVE_EXPIRED_TTL */ - VAR_SERVE_EXPIRED_TTL_RESET = 493, /* VAR_SERVE_EXPIRED_TTL_RESET */ - VAR_SERVE_EXPIRED_REPLY_TTL = 494, /* VAR_SERVE_EXPIRED_REPLY_TTL */ - VAR_SERVE_EXPIRED_CLIENT_TIMEOUT = 495, /* VAR_SERVE_EXPIRED_CLIENT_TIMEOUT */ - VAR_EDE_SERVE_EXPIRED = 496, /* VAR_EDE_SERVE_EXPIRED */ - VAR_SERVE_ORIGINAL_TTL = 497, /* VAR_SERVE_ORIGINAL_TTL */ - VAR_FAKE_DSA = 498, /* VAR_FAKE_DSA */ - VAR_FAKE_SHA1 = 499, /* VAR_FAKE_SHA1 */ - VAR_LOG_IDENTITY = 500, /* VAR_LOG_IDENTITY */ - VAR_HIDE_TRUSTANCHOR = 501, /* VAR_HIDE_TRUSTANCHOR */ - VAR_HIDE_HTTP_USER_AGENT = 502, /* VAR_HIDE_HTTP_USER_AGENT */ - VAR_HTTP_USER_AGENT = 503, /* VAR_HTTP_USER_AGENT */ - VAR_TRUST_ANCHOR_SIGNALING = 504, /* VAR_TRUST_ANCHOR_SIGNALING */ - VAR_AGGRESSIVE_NSEC = 505, /* VAR_AGGRESSIVE_NSEC */ - VAR_USE_SYSTEMD = 506, /* VAR_USE_SYSTEMD */ - VAR_SHM_ENABLE = 507, /* VAR_SHM_ENABLE */ - VAR_SHM_KEY = 508, /* VAR_SHM_KEY */ - VAR_ROOT_KEY_SENTINEL = 509, /* VAR_ROOT_KEY_SENTINEL */ - VAR_DNSCRYPT = 510, /* VAR_DNSCRYPT */ - VAR_DNSCRYPT_ENABLE = 511, /* VAR_DNSCRYPT_ENABLE */ - VAR_DNSCRYPT_PORT = 512, /* VAR_DNSCRYPT_PORT */ - VAR_DNSCRYPT_PROVIDER = 513, /* VAR_DNSCRYPT_PROVIDER */ - VAR_DNSCRYPT_SECRET_KEY = 514, /* VAR_DNSCRYPT_SECRET_KEY */ - VAR_DNSCRYPT_PROVIDER_CERT = 515, /* VAR_DNSCRYPT_PROVIDER_CERT */ - VAR_DNSCRYPT_PROVIDER_CERT_ROTATED = 516, /* VAR_DNSCRYPT_PROVIDER_CERT_ROTATED */ - VAR_DNSCRYPT_SHARED_SECRET_CACHE_SIZE = 517, /* VAR_DNSCRYPT_SHARED_SECRET_CACHE_SIZE */ - VAR_DNSCRYPT_SHARED_SECRET_CACHE_SLABS = 518, /* VAR_DNSCRYPT_SHARED_SECRET_CACHE_SLABS */ - VAR_DNSCRYPT_NONCE_CACHE_SIZE = 519, /* VAR_DNSCRYPT_NONCE_CACHE_SIZE */ - VAR_DNSCRYPT_NONCE_CACHE_SLABS = 520, /* VAR_DNSCRYPT_NONCE_CACHE_SLABS */ - VAR_PAD_RESPONSES = 521, /* VAR_PAD_RESPONSES */ - VAR_PAD_RESPONSES_BLOCK_SIZE = 522, /* VAR_PAD_RESPONSES_BLOCK_SIZE */ - VAR_PAD_QUERIES = 523, /* VAR_PAD_QUERIES */ - VAR_PAD_QUERIES_BLOCK_SIZE = 524, /* VAR_PAD_QUERIES_BLOCK_SIZE */ - VAR_IPSECMOD_ENABLED = 525, /* VAR_IPSECMOD_ENABLED */ - VAR_IPSECMOD_HOOK = 526, /* VAR_IPSECMOD_HOOK */ - VAR_IPSECMOD_IGNORE_BOGUS = 527, /* VAR_IPSECMOD_IGNORE_BOGUS */ - VAR_IPSECMOD_MAX_TTL = 528, /* VAR_IPSECMOD_MAX_TTL */ - VAR_IPSECMOD_WHITELIST = 529, /* VAR_IPSECMOD_WHITELIST */ - VAR_IPSECMOD_STRICT = 530, /* VAR_IPSECMOD_STRICT */ - VAR_CACHEDB = 531, /* VAR_CACHEDB */ - VAR_CACHEDB_BACKEND = 532, /* VAR_CACHEDB_BACKEND */ - VAR_CACHEDB_SECRETSEED = 533, /* VAR_CACHEDB_SECRETSEED */ - VAR_CACHEDB_REDISHOST = 534, /* VAR_CACHEDB_REDISHOST */ - VAR_CACHEDB_REDISPORT = 535, /* VAR_CACHEDB_REDISPORT */ - VAR_CACHEDB_REDISTIMEOUT = 536, /* VAR_CACHEDB_REDISTIMEOUT */ - VAR_CACHEDB_REDISEXPIRERECORDS = 537, /* VAR_CACHEDB_REDISEXPIRERECORDS */ - VAR_CACHEDB_REDISPATH = 538, /* VAR_CACHEDB_REDISPATH */ - VAR_CACHEDB_REDISPASSWORD = 539, /* VAR_CACHEDB_REDISPASSWORD */ - VAR_UDP_UPSTREAM_WITHOUT_DOWNSTREAM = 540, /* VAR_UDP_UPSTREAM_WITHOUT_DOWNSTREAM */ - VAR_FOR_UPSTREAM = 541, /* VAR_FOR_UPSTREAM */ - VAR_AUTH_ZONE = 542, /* VAR_AUTH_ZONE */ - VAR_ZONEFILE = 543, /* VAR_ZONEFILE */ - VAR_MASTER = 544, /* VAR_MASTER */ - VAR_URL = 545, /* VAR_URL */ - VAR_FOR_DOWNSTREAM = 546, /* VAR_FOR_DOWNSTREAM */ - VAR_FALLBACK_ENABLED = 547, /* VAR_FALLBACK_ENABLED */ - VAR_TLS_ADDITIONAL_PORT = 548, /* VAR_TLS_ADDITIONAL_PORT */ - VAR_LOW_RTT = 549, /* VAR_LOW_RTT */ - VAR_LOW_RTT_PERMIL = 550, /* VAR_LOW_RTT_PERMIL */ - VAR_FAST_SERVER_PERMIL = 551, /* VAR_FAST_SERVER_PERMIL */ - VAR_FAST_SERVER_NUM = 552, /* VAR_FAST_SERVER_NUM */ - VAR_ALLOW_NOTIFY = 553, /* VAR_ALLOW_NOTIFY */ - VAR_TLS_WIN_CERT = 554, /* VAR_TLS_WIN_CERT */ - VAR_TCP_CONNECTION_LIMIT = 555, /* VAR_TCP_CONNECTION_LIMIT */ - VAR_FORWARD_NO_CACHE = 556, /* VAR_FORWARD_NO_CACHE */ - VAR_STUB_NO_CACHE = 557, /* VAR_STUB_NO_CACHE */ - VAR_LOG_SERVFAIL = 558, /* VAR_LOG_SERVFAIL */ - VAR_DENY_ANY = 559, /* VAR_DENY_ANY */ - VAR_UNKNOWN_SERVER_TIME_LIMIT = 560, /* VAR_UNKNOWN_SERVER_TIME_LIMIT */ - VAR_LOG_TAG_QUERYREPLY = 561, /* VAR_LOG_TAG_QUERYREPLY */ - VAR_STREAM_WAIT_SIZE = 562, /* VAR_STREAM_WAIT_SIZE */ - VAR_TLS_CIPHERS = 563, /* VAR_TLS_CIPHERS */ - VAR_TLS_CIPHERSUITES = 564, /* VAR_TLS_CIPHERSUITES */ - VAR_TLS_USE_SNI = 565, /* VAR_TLS_USE_SNI */ - VAR_IPSET = 566, /* VAR_IPSET */ - VAR_IPSET_NAME_V4 = 567, /* VAR_IPSET_NAME_V4 */ - VAR_IPSET_NAME_V6 = 568, /* VAR_IPSET_NAME_V6 */ - VAR_TLS_SESSION_TICKET_KEYS = 569, /* VAR_TLS_SESSION_TICKET_KEYS */ - VAR_RPZ = 570, /* VAR_RPZ */ - VAR_TAGS = 571, /* VAR_TAGS */ - VAR_RPZ_ACTION_OVERRIDE = 572, /* VAR_RPZ_ACTION_OVERRIDE */ - VAR_RPZ_CNAME_OVERRIDE = 573, /* VAR_RPZ_CNAME_OVERRIDE */ - VAR_RPZ_LOG = 574, /* VAR_RPZ_LOG */ - VAR_RPZ_LOG_NAME = 575, /* VAR_RPZ_LOG_NAME */ - VAR_DYNLIB = 576, /* VAR_DYNLIB */ - VAR_DYNLIB_FILE = 577, /* VAR_DYNLIB_FILE */ - VAR_EDNS_CLIENT_STRING = 578, /* VAR_EDNS_CLIENT_STRING */ - VAR_EDNS_CLIENT_STRING_OPCODE = 579, /* VAR_EDNS_CLIENT_STRING_OPCODE */ - VAR_NSID = 580, /* VAR_NSID */ - VAR_ZONEMD_PERMISSIVE_MODE = 581, /* VAR_ZONEMD_PERMISSIVE_MODE */ - VAR_ZONEMD_CHECK = 582, /* VAR_ZONEMD_CHECK */ - VAR_ZONEMD_REJECT_ABSENCE = 583, /* VAR_ZONEMD_REJECT_ABSENCE */ - VAR_RPZ_SIGNAL_NXDOMAIN_RA = 584, /* VAR_RPZ_SIGNAL_NXDOMAIN_RA */ - VAR_INTERFACE_AUTOMATIC_PORTS = 585, /* VAR_INTERFACE_AUTOMATIC_PORTS */ - VAR_EDE = 586, /* VAR_EDE */ - VAR_INTERFACE_ACTION = 587, /* VAR_INTERFACE_ACTION */ - VAR_INTERFACE_VIEW = 588, /* VAR_INTERFACE_VIEW */ - VAR_INTERFACE_TAG = 589, /* VAR_INTERFACE_TAG */ - VAR_INTERFACE_TAG_ACTION = 590, /* VAR_INTERFACE_TAG_ACTION */ - VAR_INTERFACE_TAG_DATA = 591, /* VAR_INTERFACE_TAG_DATA */ - VAR_PROXY_PROTOCOL_PORT = 592, /* VAR_PROXY_PROTOCOL_PORT */ - VAR_STATISTICS_INHIBIT_ZERO = 593, /* VAR_STATISTICS_INHIBIT_ZERO */ - VAR_HARDEN_UNKNOWN_ADDITIONAL = 594 /* VAR_HARDEN_UNKNOWN_ADDITIONAL */ - }; - typedef enum yytokentype yytoken_kind_t; -#endif -/* Token kinds. */ -#define YYEMPTY -2 -#define YYEOF 0 -#define YYerror 256 -#define YYUNDEF 257 -#define SPACE 258 -#define LETTER 259 -#define NEWLINE 260 -#define COMMENT 261 -#define COLON 262 -#define ANY 263 -#define ZONESTR 264 -#define STRING_ARG 265 -#define VAR_FORCE_TOPLEVEL 266 -#define VAR_SERVER 267 -#define VAR_VERBOSITY 268 -#define VAR_NUM_THREADS 269 -#define VAR_PORT 270 -#define VAR_OUTGOING_RANGE 271 -#define VAR_INTERFACE 272 -#define VAR_PREFER_IP4 273 -#define VAR_DO_IP4 274 -#define VAR_DO_IP6 275 -#define VAR_PREFER_IP6 276 -#define VAR_DO_UDP 277 -#define VAR_DO_TCP 278 -#define VAR_TCP_MSS 279 -#define VAR_OUTGOING_TCP_MSS 280 -#define VAR_TCP_IDLE_TIMEOUT 281 -#define VAR_EDNS_TCP_KEEPALIVE 282 -#define VAR_EDNS_TCP_KEEPALIVE_TIMEOUT 283 -#define VAR_CHROOT 284 -#define VAR_USERNAME 285 -#define VAR_DIRECTORY 286 -#define VAR_LOGFILE 287 -#define VAR_PIDFILE 288 -#define VAR_MSG_CACHE_SIZE 289 -#define VAR_MSG_CACHE_SLABS 290 -#define VAR_NUM_QUERIES_PER_THREAD 291 -#define VAR_RRSET_CACHE_SIZE 292 -#define VAR_RRSET_CACHE_SLABS 293 -#define VAR_OUTGOING_NUM_TCP 294 -#define VAR_INFRA_HOST_TTL 295 -#define VAR_INFRA_LAME_TTL 296 -#define VAR_INFRA_CACHE_SLABS 297 -#define VAR_INFRA_CACHE_NUMHOSTS 298 -#define VAR_INFRA_CACHE_LAME_SIZE 299 -#define VAR_NAME 300 -#define VAR_STUB_ZONE 301 -#define VAR_STUB_HOST 302 -#define VAR_STUB_ADDR 303 -#define VAR_TARGET_FETCH_POLICY 304 -#define VAR_HARDEN_SHORT_BUFSIZE 305 -#define VAR_HARDEN_LARGE_QUERIES 306 -#define VAR_FORWARD_ZONE 307 -#define VAR_FORWARD_HOST 308 -#define VAR_FORWARD_ADDR 309 -#define VAR_DO_NOT_QUERY_ADDRESS 310 -#define VAR_HIDE_IDENTITY 311 -#define VAR_HIDE_VERSION 312 -#define VAR_IDENTITY 313 -#define VAR_VERSION 314 -#define VAR_HARDEN_GLUE 315 -#define VAR_MODULE_CONF 316 -#define VAR_TRUST_ANCHOR_FILE 317 -#define VAR_TRUST_ANCHOR 318 -#define VAR_VAL_OVERRIDE_DATE 319 -#define VAR_BOGUS_TTL 320 -#define VAR_VAL_CLEAN_ADDITIONAL 321 -#define VAR_VAL_PERMISSIVE_MODE 322 -#define VAR_INCOMING_NUM_TCP 323 -#define VAR_MSG_BUFFER_SIZE 324 -#define VAR_KEY_CACHE_SIZE 325 -#define VAR_KEY_CACHE_SLABS 326 -#define VAR_TRUSTED_KEYS_FILE 327 -#define VAR_VAL_NSEC3_KEYSIZE_ITERATIONS 328 -#define VAR_USE_SYSLOG 329 -#define VAR_OUTGOING_INTERFACE 330 -#define VAR_ROOT_HINTS 331 -#define VAR_DO_NOT_QUERY_LOCALHOST 332 -#define VAR_CACHE_MAX_TTL 333 -#define VAR_HARDEN_DNSSEC_STRIPPED 334 -#define VAR_ACCESS_CONTROL 335 -#define VAR_LOCAL_ZONE 336 -#define VAR_LOCAL_DATA 337 -#define VAR_INTERFACE_AUTOMATIC 338 -#define VAR_STATISTICS_INTERVAL 339 -#define VAR_DO_DAEMONIZE 340 -#define VAR_USE_CAPS_FOR_ID 341 -#define VAR_STATISTICS_CUMULATIVE 342 -#define VAR_OUTGOING_PORT_PERMIT 343 -#define VAR_OUTGOING_PORT_AVOID 344 -#define VAR_DLV_ANCHOR_FILE 345 -#define VAR_DLV_ANCHOR 346 -#define VAR_NEG_CACHE_SIZE 347 -#define VAR_HARDEN_REFERRAL_PATH 348 -#define VAR_PRIVATE_ADDRESS 349 -#define VAR_PRIVATE_DOMAIN 350 -#define VAR_REMOTE_CONTROL 351 -#define VAR_CONTROL_ENABLE 352 -#define VAR_CONTROL_INTERFACE 353 -#define VAR_CONTROL_PORT 354 -#define VAR_SERVER_KEY_FILE 355 -#define VAR_SERVER_CERT_FILE 356 -#define VAR_CONTROL_KEY_FILE 357 -#define VAR_CONTROL_CERT_FILE 358 -#define VAR_CONTROL_USE_CERT 359 -#define VAR_TCP_REUSE_TIMEOUT 360 -#define VAR_MAX_REUSE_TCP_QUERIES 361 -#define VAR_EXTENDED_STATISTICS 362 -#define VAR_LOCAL_DATA_PTR 363 -#define VAR_JOSTLE_TIMEOUT 364 -#define VAR_STUB_PRIME 365 -#define VAR_UNWANTED_REPLY_THRESHOLD 366 -#define VAR_LOG_TIME_ASCII 367 -#define VAR_DOMAIN_INSECURE 368 -#define VAR_PYTHON 369 -#define VAR_PYTHON_SCRIPT 370 -#define VAR_VAL_SIG_SKEW_MIN 371 -#define VAR_VAL_SIG_SKEW_MAX 372 -#define VAR_VAL_MAX_RESTART 373 -#define VAR_CACHE_MIN_TTL 374 -#define VAR_VAL_LOG_LEVEL 375 -#define VAR_AUTO_TRUST_ANCHOR_FILE 376 -#define VAR_KEEP_MISSING 377 -#define VAR_ADD_HOLDDOWN 378 -#define VAR_DEL_HOLDDOWN 379 -#define VAR_SO_RCVBUF 380 -#define VAR_EDNS_BUFFER_SIZE 381 -#define VAR_PREFETCH 382 -#define VAR_PREFETCH_KEY 383 -#define VAR_SO_SNDBUF 384 -#define VAR_SO_REUSEPORT 385 -#define VAR_HARDEN_BELOW_NXDOMAIN 386 -#define VAR_IGNORE_CD_FLAG 387 -#define VAR_LOG_QUERIES 388 -#define VAR_LOG_REPLIES 389 -#define VAR_LOG_LOCAL_ACTIONS 390 -#define VAR_TCP_UPSTREAM 391 -#define VAR_SSL_UPSTREAM 392 -#define VAR_TCP_AUTH_QUERY_TIMEOUT 393 -#define VAR_SSL_SERVICE_KEY 394 -#define VAR_SSL_SERVICE_PEM 395 -#define VAR_SSL_PORT 396 -#define VAR_FORWARD_FIRST 397 -#define VAR_STUB_SSL_UPSTREAM 398 -#define VAR_FORWARD_SSL_UPSTREAM 399 -#define VAR_TLS_CERT_BUNDLE 400 -#define VAR_STUB_TCP_UPSTREAM 401 -#define VAR_FORWARD_TCP_UPSTREAM 402 -#define VAR_HTTPS_PORT 403 -#define VAR_HTTP_ENDPOINT 404 -#define VAR_HTTP_MAX_STREAMS 405 -#define VAR_HTTP_QUERY_BUFFER_SIZE 406 -#define VAR_HTTP_RESPONSE_BUFFER_SIZE 407 -#define VAR_HTTP_NODELAY 408 -#define VAR_HTTP_NOTLS_DOWNSTREAM 409 -#define VAR_STUB_FIRST 410 -#define VAR_MINIMAL_RESPONSES 411 -#define VAR_RRSET_ROUNDROBIN 412 -#define VAR_MAX_UDP_SIZE 413 -#define VAR_DELAY_CLOSE 414 -#define VAR_UDP_CONNECT 415 -#define VAR_UNBLOCK_LAN_ZONES 416 -#define VAR_INSECURE_LAN_ZONES 417 -#define VAR_INFRA_CACHE_MIN_RTT 418 -#define VAR_INFRA_CACHE_MAX_RTT 419 -#define VAR_INFRA_KEEP_PROBING 420 -#define VAR_DNS64_PREFIX 421 -#define VAR_DNS64_SYNTHALL 422 -#define VAR_DNS64_IGNORE_AAAA 423 -#define VAR_DNSTAP 424 -#define VAR_DNSTAP_ENABLE 425 -#define VAR_DNSTAP_SOCKET_PATH 426 -#define VAR_DNSTAP_IP 427 -#define VAR_DNSTAP_TLS 428 -#define VAR_DNSTAP_TLS_SERVER_NAME 429 -#define VAR_DNSTAP_TLS_CERT_BUNDLE 430 -#define VAR_DNSTAP_TLS_CLIENT_KEY_FILE 431 -#define VAR_DNSTAP_TLS_CLIENT_CERT_FILE 432 -#define VAR_DNSTAP_SEND_IDENTITY 433 -#define VAR_DNSTAP_SEND_VERSION 434 -#define VAR_DNSTAP_BIDIRECTIONAL 435 -#define VAR_DNSTAP_IDENTITY 436 -#define VAR_DNSTAP_VERSION 437 -#define VAR_DNSTAP_LOG_RESOLVER_QUERY_MESSAGES 438 -#define VAR_DNSTAP_LOG_RESOLVER_RESPONSE_MESSAGES 439 -#define VAR_DNSTAP_LOG_CLIENT_QUERY_MESSAGES 440 -#define VAR_DNSTAP_LOG_CLIENT_RESPONSE_MESSAGES 441 -#define VAR_DNSTAP_LOG_FORWARDER_QUERY_MESSAGES 442 -#define VAR_DNSTAP_LOG_FORWARDER_RESPONSE_MESSAGES 443 -#define VAR_RESPONSE_IP_TAG 444 -#define VAR_RESPONSE_IP 445 -#define VAR_RESPONSE_IP_DATA 446 -#define VAR_HARDEN_ALGO_DOWNGRADE 447 -#define VAR_IP_TRANSPARENT 448 -#define VAR_IP_DSCP 449 -#define VAR_DISABLE_DNSSEC_LAME_CHECK 450 -#define VAR_IP_RATELIMIT 451 -#define VAR_IP_RATELIMIT_SLABS 452 -#define VAR_IP_RATELIMIT_SIZE 453 -#define VAR_RATELIMIT 454 -#define VAR_RATELIMIT_SLABS 455 -#define VAR_RATELIMIT_SIZE 456 -#define VAR_OUTBOUND_MSG_RETRY 457 -#define VAR_MAX_SENT_COUNT 458 -#define VAR_MAX_QUERY_RESTARTS 459 -#define VAR_RATELIMIT_FOR_DOMAIN 460 -#define VAR_RATELIMIT_BELOW_DOMAIN 461 -#define VAR_IP_RATELIMIT_FACTOR 462 -#define VAR_RATELIMIT_FACTOR 463 -#define VAR_IP_RATELIMIT_BACKOFF 464 -#define VAR_RATELIMIT_BACKOFF 465 -#define VAR_SEND_CLIENT_SUBNET 466 -#define VAR_CLIENT_SUBNET_ZONE 467 -#define VAR_CLIENT_SUBNET_ALWAYS_FORWARD 468 -#define VAR_CLIENT_SUBNET_OPCODE 469 -#define VAR_MAX_CLIENT_SUBNET_IPV4 470 -#define VAR_MAX_CLIENT_SUBNET_IPV6 471 -#define VAR_MIN_CLIENT_SUBNET_IPV4 472 -#define VAR_MIN_CLIENT_SUBNET_IPV6 473 -#define VAR_MAX_ECS_TREE_SIZE_IPV4 474 -#define VAR_MAX_ECS_TREE_SIZE_IPV6 475 -#define VAR_CAPS_WHITELIST 476 -#define VAR_CACHE_MAX_NEGATIVE_TTL 477 -#define VAR_PERMIT_SMALL_HOLDDOWN 478 -#define VAR_QNAME_MINIMISATION 479 -#define VAR_QNAME_MINIMISATION_STRICT 480 -#define VAR_IP_FREEBIND 481 -#define VAR_DEFINE_TAG 482 -#define VAR_LOCAL_ZONE_TAG 483 -#define VAR_ACCESS_CONTROL_TAG 484 -#define VAR_LOCAL_ZONE_OVERRIDE 485 -#define VAR_ACCESS_CONTROL_TAG_ACTION 486 -#define VAR_ACCESS_CONTROL_TAG_DATA 487 -#define VAR_VIEW 488 -#define VAR_ACCESS_CONTROL_VIEW 489 -#define VAR_VIEW_FIRST 490 -#define VAR_SERVE_EXPIRED 491 -#define VAR_SERVE_EXPIRED_TTL 492 -#define VAR_SERVE_EXPIRED_TTL_RESET 493 -#define VAR_SERVE_EXPIRED_REPLY_TTL 494 -#define VAR_SERVE_EXPIRED_CLIENT_TIMEOUT 495 -#define VAR_EDE_SERVE_EXPIRED 496 -#define VAR_SERVE_ORIGINAL_TTL 497 -#define VAR_FAKE_DSA 498 -#define VAR_FAKE_SHA1 499 -#define VAR_LOG_IDENTITY 500 -#define VAR_HIDE_TRUSTANCHOR 501 -#define VAR_HIDE_HTTP_USER_AGENT 502 -#define VAR_HTTP_USER_AGENT 503 -#define VAR_TRUST_ANCHOR_SIGNALING 504 -#define VAR_AGGRESSIVE_NSEC 505 -#define VAR_USE_SYSTEMD 506 -#define VAR_SHM_ENABLE 507 -#define VAR_SHM_KEY 508 -#define VAR_ROOT_KEY_SENTINEL 509 -#define VAR_DNSCRYPT 510 -#define VAR_DNSCRYPT_ENABLE 511 -#define VAR_DNSCRYPT_PORT 512 -#define VAR_DNSCRYPT_PROVIDER 513 -#define VAR_DNSCRYPT_SECRET_KEY 514 -#define VAR_DNSCRYPT_PROVIDER_CERT 515 -#define VAR_DNSCRYPT_PROVIDER_CERT_ROTATED 516 -#define VAR_DNSCRYPT_SHARED_SECRET_CACHE_SIZE 517 -#define VAR_DNSCRYPT_SHARED_SECRET_CACHE_SLABS 518 -#define VAR_DNSCRYPT_NONCE_CACHE_SIZE 519 -#define VAR_DNSCRYPT_NONCE_CACHE_SLABS 520 -#define VAR_PAD_RESPONSES 521 -#define VAR_PAD_RESPONSES_BLOCK_SIZE 522 -#define VAR_PAD_QUERIES 523 -#define VAR_PAD_QUERIES_BLOCK_SIZE 524 -#define VAR_IPSECMOD_ENABLED 525 -#define VAR_IPSECMOD_HOOK 526 -#define VAR_IPSECMOD_IGNORE_BOGUS 527 -#define VAR_IPSECMOD_MAX_TTL 528 -#define VAR_IPSECMOD_WHITELIST 529 -#define VAR_IPSECMOD_STRICT 530 -#define VAR_CACHEDB 531 -#define VAR_CACHEDB_BACKEND 532 -#define VAR_CACHEDB_SECRETSEED 533 -#define VAR_CACHEDB_REDISHOST 534 -#define VAR_CACHEDB_REDISPORT 535 -#define VAR_CACHEDB_REDISTIMEOUT 536 -#define VAR_CACHEDB_REDISEXPIRERECORDS 537 -#define VAR_CACHEDB_REDISPATH 538 -#define VAR_CACHEDB_REDISPASSWORD 539 -#define VAR_UDP_UPSTREAM_WITHOUT_DOWNSTREAM 540 -#define VAR_FOR_UPSTREAM 541 -#define VAR_AUTH_ZONE 542 -#define VAR_ZONEFILE 543 -#define VAR_MASTER 544 -#define VAR_URL 545 -#define VAR_FOR_DOWNSTREAM 546 -#define VAR_FALLBACK_ENABLED 547 -#define VAR_TLS_ADDITIONAL_PORT 548 -#define VAR_LOW_RTT 549 -#define VAR_LOW_RTT_PERMIL 550 -#define VAR_FAST_SERVER_PERMIL 551 -#define VAR_FAST_SERVER_NUM 552 -#define VAR_ALLOW_NOTIFY 553 -#define VAR_TLS_WIN_CERT 554 -#define VAR_TCP_CONNECTION_LIMIT 555 -#define VAR_FORWARD_NO_CACHE 556 -#define VAR_STUB_NO_CACHE 557 -#define VAR_LOG_SERVFAIL 558 -#define VAR_DENY_ANY 559 -#define VAR_UNKNOWN_SERVER_TIME_LIMIT 560 -#define VAR_LOG_TAG_QUERYREPLY 561 -#define VAR_STREAM_WAIT_SIZE 562 -#define VAR_TLS_CIPHERS 563 -#define VAR_TLS_CIPHERSUITES 564 -#define VAR_TLS_USE_SNI 565 -#define VAR_IPSET 566 -#define VAR_IPSET_NAME_V4 567 -#define VAR_IPSET_NAME_V6 568 -#define VAR_TLS_SESSION_TICKET_KEYS 569 -#define VAR_RPZ 570 -#define VAR_TAGS 571 -#define VAR_RPZ_ACTION_OVERRIDE 572 -#define VAR_RPZ_CNAME_OVERRIDE 573 -#define VAR_RPZ_LOG 574 -#define VAR_RPZ_LOG_NAME 575 -#define VAR_DYNLIB 576 -#define VAR_DYNLIB_FILE 577 -#define VAR_EDNS_CLIENT_STRING 578 -#define VAR_EDNS_CLIENT_STRING_OPCODE 579 -#define VAR_NSID 580 -#define VAR_ZONEMD_PERMISSIVE_MODE 581 -#define VAR_ZONEMD_CHECK 582 -#define VAR_ZONEMD_REJECT_ABSENCE 583 -#define VAR_RPZ_SIGNAL_NXDOMAIN_RA 584 -#define VAR_INTERFACE_AUTOMATIC_PORTS 585 -#define VAR_EDE 586 -#define VAR_INTERFACE_ACTION 587 -#define VAR_INTERFACE_VIEW 588 -#define VAR_INTERFACE_TAG 589 -#define VAR_INTERFACE_TAG_ACTION 590 -#define VAR_INTERFACE_TAG_DATA 591 -#define VAR_PROXY_PROTOCOL_PORT 592 -#define VAR_STATISTICS_INHIBIT_ZERO 593 -#define VAR_HARDEN_UNKNOWN_ADDITIONAL 594 - -/* Value type. */ -#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED -union YYSTYPE -{ -#line 67 "./util/configparser.y" - - char* str; - -#line 749 "util/configparser.h" - -}; -typedef union YYSTYPE YYSTYPE; -# define YYSTYPE_IS_TRIVIAL 1 -# define YYSTYPE_IS_DECLARED 1 -#endif - - -extern YYSTYPE yylval; - - -int yyparse (void); - - -#endif /* !YY_YY_UTIL_CONFIGPARSER_H_INCLUDED */ diff --git a/util/configparser.y b/util/configparser.y index 4011bf8c5..4f00ecc0d 100644 --- a/util/configparser.y +++ b/util/configparser.y @@ -303,7 +303,7 @@ content_server: server_num_threads | server_verbosity | server_port | server_serve_expired | server_serve_expired_ttl | server_serve_expired_ttl_reset | server_serve_expired_reply_ttl | server_serve_expired_client_timeout | - server_ede_serve_expired | server_serve_original_ttl | server_fake_dsa | + server_ede_serve_expired | server_serve_original_ttl | server_fake_dsa | server_log_identity | server_use_systemd | server_response_ip_tag | server_response_ip | server_response_ip_data | server_shm_enable | server_shm_key | server_fake_sha1 | @@ -488,7 +488,7 @@ rpz_signal_nxdomain_ra: VAR_RPZ_SIGNAL_NXDOMAIN_RA STRING_ARG rpzstart: VAR_RPZ { struct config_auth* s; - OUTYY(("\nP(rpz:)\n")); + OUTYY(("\nP(rpz:)\n")); cfg_parser->started_toplevel = 1; s = (struct config_auth*)calloc(1, sizeof(struct config_auth)); if(s) { @@ -504,7 +504,7 @@ rpzstart: VAR_RPZ } } ; -contents_rpz: contents_rpz content_rpz +contents_rpz: contents_rpz content_rpz | ; content_rpz: auth_name | auth_zonefile | rpz_tag | auth_master | auth_url | auth_allow_notify | rpz_action_override | rpz_cname_override | @@ -2726,7 +2726,7 @@ server_pad_responses: VAR_PAD_RESPONSES STRING_ARG OUTYY(("P(server_pad_responses:%s)\n", $2)); if(strcmp($2, "yes") != 0 && strcmp($2, "no") != 0) yyerror("expected yes or no."); - else cfg_parser->cfg->pad_responses = + else cfg_parser->cfg->pad_responses = (strcmp($2, "yes")==0); free($2); } @@ -2745,7 +2745,7 @@ server_pad_queries: VAR_PAD_QUERIES STRING_ARG OUTYY(("P(server_pad_queries:%s)\n", $2)); if(strcmp($2, "yes") != 0 && strcmp($2, "no") != 0) yyerror("expected yes or no."); - else cfg_parser->cfg->pad_queries = + else cfg_parser->cfg->pad_queries = (strcmp($2, "yes")==0); free($2); } @@ -3485,8 +3485,8 @@ py_script: VAR_PYTHON_SCRIPT STRING_ARG yyerror("out of memory"); } dynlibstart: VAR_DYNLIB - { - OUTYY(("\nP(dynlib:)\n")); + { + OUTYY(("\nP(dynlib:)\n")); cfg_parser->started_toplevel = 1; } ; diff --git a/util/netevent.c b/util/netevent.c index fe3d51164..a98d12ccc 100644 --- a/util/netevent.c +++ b/util/netevent.c @@ -4,22 +4,22 @@ * Copyright (c) 2007, NLnet Labs. All rights reserved. * * This software is open source. - * + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: - * + * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. - * + * * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. - * + * * Neither the name of the NLNET LABS nor the names of its contributors may * be used to endorse or promote products derived from this software without * specific prior written permission. - * + * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR @@ -177,7 +177,7 @@ static struct comm_point* comm_point_create_tcp_handler( /* -------- End of local definitions -------- */ -struct comm_base* +struct comm_base* comm_base_create(int sigs) { struct comm_base* b = (struct comm_base*)calloc(1, @@ -220,7 +220,7 @@ comm_base_create_event(struct ub_event_base* base) return b; } -void +void comm_base_delete(struct comm_base* b) { if(!b) @@ -237,7 +237,7 @@ comm_base_delete(struct comm_base* b) free(b); } -void +void comm_base_delete_no_base(struct comm_base* b) { if(!b) @@ -253,14 +253,14 @@ comm_base_delete_no_base(struct comm_base* b) free(b); } -void +void comm_base_timept(struct comm_base* b, time_t** tt, struct timeval** tv) { *tt = &b->eb->secs; *tv = &b->eb->now; } -void +void comm_base_dispatch(struct comm_base* b) { int retval; @@ -470,7 +470,7 @@ comm_point_send_udp_msg(struct comm_point *c, sldns_buffer* packet, (struct sockaddr_storage*)addr, addrlen); return 0; } else if((size_t)sent != sldns_buffer_remaining(packet)) { - log_err("sent %d in place of %d bytes", + log_err("sent %d in place of %d bytes", (int)sent, (int)sldns_buffer_remaining(packet)); return 0; } @@ -489,7 +489,7 @@ static void p_ancil(const char* str, struct comm_reply* r) if(r->srctype == 6) { #ifdef IPV6_PKTINFO char buf[1024]; - if(inet_ntop(AF_INET6, &r->pktinfo.v6info.ipi6_addr, + if(inet_ntop(AF_INET6, &r->pktinfo.v6info.ipi6_addr, buf, (socklen_t)sizeof(buf)) == 0) { (void)strlcpy(buf, "(inet_ntop error)", sizeof(buf)); } @@ -499,13 +499,13 @@ static void p_ancil(const char* str, struct comm_reply* r) } else if(r->srctype == 4) { #ifdef IP_PKTINFO char buf1[1024], buf2[1024]; - if(inet_ntop(AF_INET, &r->pktinfo.v4info.ipi_addr, + if(inet_ntop(AF_INET, &r->pktinfo.v4info.ipi_addr, buf1, (socklen_t)sizeof(buf1)) == 0) { (void)strlcpy(buf1, "(inet_ntop error)", sizeof(buf1)); } buf1[sizeof(buf1)-1]=0; #ifdef HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST - if(inet_ntop(AF_INET, &r->pktinfo.v4info.ipi_spec_dst, + if(inet_ntop(AF_INET, &r->pktinfo.v4info.ipi_spec_dst, buf2, (socklen_t)sizeof(buf2)) == 0) { (void)strlcpy(buf2, "(inet_ntop error)", sizeof(buf2)); } @@ -517,7 +517,7 @@ static void p_ancil(const char* str, struct comm_reply* r) buf1, buf2); #elif defined(IP_RECVDSTADDR) char buf1[1024]; - if(inet_ntop(AF_INET, &r->pktinfo.v4addr, + if(inet_ntop(AF_INET, &r->pktinfo.v4addr, buf1, (socklen_t)sizeof(buf1)) == 0) { (void)strlcpy(buf1, "(inet_ntop error)", sizeof(buf1)); } @@ -531,7 +531,7 @@ static void p_ancil(const char* str, struct comm_reply* r) /** send a UDP reply over specified interface*/ static int comm_point_send_udp_msg_if(struct comm_point *c, sldns_buffer* packet, - struct sockaddr* addr, socklen_t addrlen, struct comm_reply* r) + struct sockaddr* addr, socklen_t addrlen, struct comm_reply* r) { #if defined(AF_INET6) && defined(IPV6_PKTINFO) && defined(HAVE_SENDMSG) ssize_t sent; @@ -695,7 +695,7 @@ comm_point_send_udp_msg_if(struct comm_point *c, sldns_buffer* packet, if(!udp_send_errno_needs_log(addr, addrlen)) return 0; verbose(VERB_OPS, "sendmsg failed: %s", strerror(errno)); - log_addr(VERB_OPS, "remote address is", + log_addr(VERB_OPS, "remote address is", (struct sockaddr_storage*)addr, addrlen); #ifdef __NetBSD__ /* netbsd 7 has IP_PKTINFO for recv but not send */ @@ -705,7 +705,7 @@ comm_point_send_udp_msg_if(struct comm_point *c, sldns_buffer* packet, #endif return 0; } else if((size_t)sent != sldns_buffer_remaining(packet)) { - log_err("sent %d in place of %d bytes", + log_err("sent %d in place of %d bytes", (int)sent, (int)sldns_buffer_remaining(packet)); return 0; } @@ -817,7 +817,7 @@ done: return 1; } -void +void comm_point_udp_ancil_callback(int fd, short event, void* arg) { #if defined(AF_INET6) && defined(IPV6_PKTINFO) && defined(HAVE_RECVMSG) @@ -930,7 +930,7 @@ comm_point_udp_ancil_callback(int fd, short event, void* arg) #endif /* AF_INET6 && IPV6_PKTINFO && HAVE_RECVMSG */ } -void +void comm_point_udp_callback(int fd, short event, void* arg) { struct comm_reply rep; @@ -950,14 +950,14 @@ comm_point_udp_callback(int fd, short event, void* arg) rep.remote_addrlen = (socklen_t)sizeof(rep.remote_addr); log_assert(fd != -1); log_assert(sldns_buffer_remaining(rep.c->buffer) > 0); - rcv = recvfrom(fd, (void*)sldns_buffer_begin(rep.c->buffer), + rcv = recvfrom(fd, (void*)sldns_buffer_begin(rep.c->buffer), sldns_buffer_remaining(rep.c->buffer), MSG_DONTWAIT, (struct sockaddr*)&rep.remote_addr, &rep.remote_addrlen); if(rcv == -1) { #ifndef USE_WINSOCK if(errno != EAGAIN && errno != EINTR && udp_recv_needs_log(errno)) - log_err("recvfrom %d failed: %s", + log_err("recvfrom %d failed: %s", fd, strerror(errno)); #else if(WSAGetLastError() != WSAEINPROGRESS && @@ -1012,7 +1012,7 @@ int adjusted_tcp_timeout(struct comm_point* c) /** Use a new tcp handler for new query fd, set to read query */ static void -setup_tcp_handler(struct comm_point* c, int fd, int cur, int max) +setup_tcp_handler(struct comm_point* c, int fd, int cur, int max) { int handler_usage; log_assert(c->type == comm_tcp || c->type == comm_http); @@ -1076,10 +1076,10 @@ int comm_point_perform_accept(struct comm_point* c, /* EINTR is signal interrupt. others are closed connection. */ if( errno == EINTR || errno == EAGAIN #ifdef EWOULDBLOCK - || errno == EWOULDBLOCK + || errno == EWOULDBLOCK #endif #ifdef ECONNABORTED - || errno == ECONNABORTED + || errno == ECONNABORTED #endif #ifdef EPROTO || errno == EPROTO @@ -1253,7 +1253,7 @@ static int http2_submit_settings(struct http2_session* h2_session) #endif /* HAVE_NGHTTP2 */ -void +void comm_point_tcp_accept_callback(int fd, short event, void* arg) { struct comm_point* c = (struct comm_point*)arg, *c_hdl; @@ -2161,7 +2161,7 @@ comm_point_tcp_handle_read(int fd, struct comm_point* c, int short_ok) log_err("in comm_point_tcp_handle_read buffer_remaining is " "not > 0 as expected, continuing with (harmless) 0 " "length recv"); - r = recv(fd, (void*)sldns_buffer_current(c->buffer), + r = recv(fd, (void*)sldns_buffer_current(c->buffer), sldns_buffer_remaining(c->buffer), MSG_DONTWAIT); if(r == 0) { if(c->tcp_req_info) @@ -2252,8 +2252,8 @@ recv_error: return 0; } -/** - * Handle tcp writing callback. +/** + * Handle tcp writing callback. * @param fd: file descriptor of socket. * @param c: comm point to write buffer out of. * @return: 0 on error @@ -2277,7 +2277,7 @@ comm_point_tcp_handle_write(int fd, struct comm_point* c) /* from Stevens, unix network programming, vol1, 3rd ed, p450*/ int error = 0; socklen_t len = (socklen_t)sizeof(error); - if(getsockopt(fd, SOL_SOCKET, SO_ERROR, (void*)&error, + if(getsockopt(fd, SOL_SOCKET, SO_ERROR, (void*)&error, &len) < 0){ #ifndef USE_WINSOCK error = errno; /* on solaris errno is error */ @@ -2318,7 +2318,7 @@ comm_point_tcp_handle_write(int fd, struct comm_point* c) return ssl_handle_it(c, 1); #ifdef USE_MSG_FASTOPEN - /* Only try this on first use of a connection that uses tfo, + /* Only try this on first use of a connection that uses tfo, otherwise fall through to normal write */ /* Also, TFO support on WINDOWS not implemented at the moment */ if(c->tcp_do_fastopen == 1) { @@ -2473,7 +2473,7 @@ comm_point_tcp_handle_write(int fd, struct comm_point* c) if(WSAGetLastError() == WSAEWOULDBLOCK) { ub_winsock_tcp_wouldblock(c->ev->ev, UB_EV_WRITE); - return 1; + return 1; } if(WSAGetLastError() == WSAECONNRESET && verbosity < 2) return 0; /* silence reset by peer */ @@ -2522,7 +2522,7 @@ comm_point_tcp_handle_write(int fd, struct comm_point* c) return 1; if(WSAGetLastError() == WSAEWOULDBLOCK) { ub_winsock_tcp_wouldblock(c->ev->ev, UB_EV_WRITE); - return 1; + return 1; } if(WSAGetLastError() == WSAECONNRESET && verbosity < 2) return 0; /* silence reset by peer */ @@ -2541,7 +2541,7 @@ comm_point_tcp_handle_write(int fd, struct comm_point* c) if((!c->tcp_write_and_read && sldns_buffer_remaining(buffer) == 0) || (c->tcp_write_and_read && c->tcp_write_byte_count == c->tcp_write_pkt_len + 2)) { tcp_callback_writer(c); } - + return 1; } @@ -2561,7 +2561,7 @@ tcp_req_info_read_again(int fd, struct comm_point* c) if(!c->tcp_do_close) { fptr_ok(fptr_whitelist_comm_point( c->callback)); - (void)(*c->callback)(c, c->cb_arg, + (void)(*c->callback)(c, c->cb_arg, NETEVENT_CLOSED, NULL); } return 0; @@ -2618,7 +2618,7 @@ tcp_more_write_again(int fd, struct comm_point* c) } } -void +void comm_point_tcp_handle_callback(int fd, short event, void* arg) { struct comm_point* c = (struct comm_point*)arg; @@ -2783,7 +2783,7 @@ http_read_more(int fd, struct comm_point* c) { ssize_t r; log_assert(sldns_buffer_remaining(c->buffer) > 0); - r = recv(fd, (void*)sldns_buffer_current(c->buffer), + r = recv(fd, (void*)sldns_buffer_current(c->buffer), sldns_buffer_remaining(c->buffer), MSG_DONTWAIT); if(r == 0) { return 0; @@ -3052,7 +3052,7 @@ http_chunked_segment(struct comm_point* c) /* return and wait to read more */ return 1; } - + /* callback of http reader for a new part of the data */ c->http_stored = 0; sldns_buffer_set_position(c->buffer, 0); @@ -3402,7 +3402,7 @@ http_check_connect(int fd, struct comm_point* c) /* from Stevens, unix network programming, vol1, 3rd ed, p450*/ int error = 0; socklen_t len = (socklen_t)sizeof(error); - if(getsockopt(fd, SOL_SOCKET, SO_ERROR, (void*)&error, + if(getsockopt(fd, SOL_SOCKET, SO_ERROR, (void*)&error, &len) < 0){ #ifndef USE_WINSOCK error = errno; /* on solaris errno is error */ @@ -3487,7 +3487,7 @@ http_write_more(int fd, struct comm_point* c) { ssize_t r; log_assert(sldns_buffer_remaining(c->buffer) > 0); - r = send(fd, (void*)sldns_buffer_current(c->buffer), + r = send(fd, (void*)sldns_buffer_current(c->buffer), sldns_buffer_remaining(c->buffer), 0); if(r == -1) { #ifndef USE_WINSOCK @@ -3498,7 +3498,7 @@ http_write_more(int fd, struct comm_point* c) return 1; if(WSAGetLastError() == WSAEWOULDBLOCK) { ub_winsock_tcp_wouldblock(c->ev->ev, UB_EV_WRITE); - return 1; + return 1; } #endif log_err_addr("http send r", sock_strerror(errno), @@ -3619,8 +3619,8 @@ comm_point_http2_handle_write(int ATTR_UNUSED(fd), struct comm_point* c) #endif } -/** - * Handle http writing callback. +/** + * Handle http writing callback. * @param fd: file descriptor of socket. * @param c: comm point to write buffer out of. * @return: 0 on error @@ -3686,7 +3686,7 @@ comm_point_http_handle_write(int fd, struct comm_point* c) return 1; } -void +void comm_point_http_handle_callback(int fd, short event, void* arg) { struct comm_point* c = (struct comm_point*)arg; @@ -3739,7 +3739,7 @@ void comm_point_local_handle_callback(int fd, short event, void* arg) if(event&UB_EV_READ) { if(!comm_point_tcp_handle_read(fd, c, 1)) { fptr_ok(fptr_whitelist_comm_point(c->callback)); - (void)(*c->callback)(c, c->cb_arg, NETEVENT_CLOSED, + (void)(*c->callback)(c, c->cb_arg, NETEVENT_CLOSED, NULL); } return; @@ -3747,21 +3747,21 @@ void comm_point_local_handle_callback(int fd, short event, void* arg) log_err("Ignored event %d for localhdl.", event); } -void comm_point_raw_handle_callback(int ATTR_UNUSED(fd), +void comm_point_raw_handle_callback(int ATTR_UNUSED(fd), short event, void* arg) { struct comm_point* c = (struct comm_point*)arg; int err = NETEVENT_NOERROR; log_assert(c->type == comm_raw); ub_comm_base_now(c->ev->base); - + if(event&UB_EV_TIMEOUT) err = NETEVENT_TIMEOUT; fptr_ok(fptr_whitelist_comm_point_raw(c->callback)); (void)(*c->callback)(c, c->cb_arg, err, NULL); } -struct comm_point* +struct comm_point* comm_point_create_udp(struct comm_base *base, int fd, sldns_buffer* buffer, int pp2_enabled, comm_point_callback_type* callback, void* callback_arg, struct unbound_socket* socket) @@ -3824,7 +3824,7 @@ comm_point_create_udp(struct comm_base *base, int fd, sldns_buffer* buffer, return c; } -struct comm_point* +struct comm_point* comm_point_create_udp_ancil(struct comm_base *base, int fd, sldns_buffer* buffer, int pp2_enabled, comm_point_callback_type* callback, void* callback_arg, struct unbound_socket* socket) @@ -3887,8 +3887,8 @@ comm_point_create_udp_ancil(struct comm_base *base, int fd, return c; } -static struct comm_point* -comm_point_create_tcp_handler(struct comm_base *base, +static struct comm_point* +comm_point_create_tcp_handler(struct comm_base *base, struct comm_point* parent, size_t bufsize, struct sldns_buffer* spoolbuf, comm_point_callback_type* callback, void* callback_arg, struct unbound_socket* socket) @@ -3985,8 +3985,8 @@ comm_point_create_tcp_handler(struct comm_base *base, return c; } -static struct comm_point* -comm_point_create_http_handler(struct comm_base *base, +static struct comm_point* +comm_point_create_http_handler(struct comm_base *base, struct comm_point* parent, size_t bufsize, int harden_large_queries, uint32_t http_max_streams, char* http_endpoint, comm_point_callback_type* callback, void* callback_arg, @@ -4083,7 +4083,7 @@ comm_point_create_http_handler(struct comm_base *base, return NULL; } #endif - + /* add to parent free list */ c->tcp_free = parent->tcp_free; parent->tcp_free = c; @@ -4105,7 +4105,7 @@ comm_point_create_http_handler(struct comm_base *base, return c; } -struct comm_point* +struct comm_point* comm_point_create_tcp(struct comm_base *base, int fd, int num, int idle_timeout, int harden_large_queries, uint32_t http_max_streams, char* http_endpoint, @@ -4203,11 +4203,11 @@ comm_point_create_tcp(struct comm_base *base, int fd, int num, return NULL; } } - + return c; } -struct comm_point* +struct comm_point* comm_point_create_tcp_out(struct comm_base *base, size_t bufsize, comm_point_callback_type* callback, void* callback_arg) { @@ -4274,7 +4274,7 @@ comm_point_create_tcp_out(struct comm_base *base, size_t bufsize, return c; } -struct comm_point* +struct comm_point* comm_point_create_http_out(struct comm_base *base, size_t bufsize, comm_point_callback_type* callback, void* callback_arg, sldns_buffer* temp) @@ -4345,7 +4345,7 @@ comm_point_create_http_out(struct comm_base *base, size_t bufsize, return c; } -struct comm_point* +struct comm_point* comm_point_create_local(struct comm_base *base, int fd, size_t bufsize, comm_point_callback_type* callback, void* callback_arg) { @@ -4413,8 +4413,8 @@ comm_point_create_local(struct comm_base *base, int fd, size_t bufsize, return c; } -struct comm_point* -comm_point_create_raw(struct comm_base* base, int fd, int writing, +struct comm_point* +comm_point_create_raw(struct comm_base* base, int fd, int writing, comm_point_callback_type* callback, void* callback_arg) { struct comm_point* c = (struct comm_point*)calloc(1, @@ -4478,7 +4478,7 @@ comm_point_create_raw(struct comm_base* base, int fd, int writing, return c; } -void +void comm_point_close(struct comm_point* c) { if(!c) @@ -4518,10 +4518,10 @@ comm_point_close(struct comm_point* c) c->fd = -1; } -void +void comm_point_delete(struct comm_point* c) { - if(!c) + if(!c) return; if((c->type == comm_tcp || c->type == comm_http) && c->ssl) { #ifdef HAVE_SSL @@ -4560,7 +4560,7 @@ comm_point_delete(struct comm_point* c) free(c); } -void +void comm_point_send_reply(struct comm_reply *repinfo) { struct sldns_buffer* buffer; @@ -4624,7 +4624,7 @@ comm_point_send_reply(struct comm_reply *repinfo) } } -void +void comm_point_drop_reply(struct comm_reply* repinfo) { if(!repinfo) @@ -4648,7 +4648,7 @@ comm_point_drop_reply(struct comm_reply* repinfo) reclaim_tcp_handler(repinfo->c); } -void +void comm_point_stop_listening(struct comm_point* c) { verbose(VERB_ALGO, "comm point stop listening %d", c->fd); @@ -4660,10 +4660,10 @@ comm_point_stop_listening(struct comm_point* c) } } -void +void comm_point_start_listening(struct comm_point* c, int newfd, int msec) { - verbose(VERB_ALGO, "comm point start listening %d (%d msec)", + verbose(VERB_ALGO, "comm point start listening %d (%d msec)", c->fd==-1?newfd:c->fd, msec); if(c->type == comm_tcp_accept && !c->tcp_free) { /* no use to start listening no free slots. */ @@ -4747,10 +4747,10 @@ void comm_point_listen_for_rw(struct comm_point* c, int rd, int wr) size_t comm_point_get_mem(struct comm_point* c) { size_t s; - if(!c) + if(!c) return 0; s = sizeof(*c) + sizeof(*c->ev); - if(c->timeout) + if(c->timeout) s += sizeof(*c->timeout); if(c->type == comm_tcp || c->type == comm_local) { s += sizeof(*c->buffer) + sldns_buffer_capacity(c->buffer); @@ -4769,7 +4769,7 @@ size_t comm_point_get_mem(struct comm_point* c) return s; } -struct comm_timer* +struct comm_timer* comm_timer_create(struct comm_base* base, void (*cb)(void*), void* cb_arg) { struct internal_timer *tm = (struct internal_timer*)calloc(1, @@ -4782,7 +4782,7 @@ comm_timer_create(struct comm_base* base, void (*cb)(void*), void* cb_arg) tm->base = base; tm->super.callback = cb; tm->super.cb_arg = cb_arg; - tm->ev = ub_event_new(base->eb->base, -1, UB_EV_TIMEOUT, + tm->ev = ub_event_new(base->eb->base, -1, UB_EV_TIMEOUT, comm_timer_callback, &tm->super); if(tm->ev == NULL) { log_err("timer_create: event_base_set failed."); @@ -4792,7 +4792,7 @@ comm_timer_create(struct comm_base* base, void (*cb)(void*), void* cb_arg) return &tm->super; } -void +void comm_timer_disable(struct comm_timer* timer) { if(!timer) @@ -4801,7 +4801,7 @@ comm_timer_disable(struct comm_timer* timer) timer->ev_timer->enabled = 0; } -void +void comm_timer_set(struct comm_timer* timer, struct timeval* tv) { log_assert(tv); @@ -4813,7 +4813,7 @@ comm_timer_set(struct comm_timer* timer, struct timeval* tv) timer->ev_timer->enabled = 1; } -void +void comm_timer_delete(struct comm_timer* timer) { if(!timer) @@ -4826,7 +4826,7 @@ comm_timer_delete(struct comm_timer* timer) free(timer->ev_timer); } -void +void comm_timer_callback(int ATTR_UNUSED(fd), short event, void* arg) { struct comm_timer* tm = (struct comm_timer*)arg; @@ -4838,19 +4838,19 @@ comm_timer_callback(int ATTR_UNUSED(fd), short event, void* arg) (*tm->callback)(tm->cb_arg); } -int +int comm_timer_is_set(struct comm_timer* timer) { return (int)timer->ev_timer->enabled; } -size_t +size_t comm_timer_get_mem(struct comm_timer* ATTR_UNUSED(timer)) { return sizeof(struct internal_timer); } -struct comm_signal* +struct comm_signal* comm_signal_create(struct comm_base* base, void (*callback)(int, void*), void* cb_arg) { @@ -4867,7 +4867,7 @@ comm_signal_create(struct comm_base* base, return com; } -void +void comm_signal_callback(int sig, short event, void* arg) { struct comm_signal* comsig = (struct comm_signal*)arg; @@ -4878,10 +4878,10 @@ comm_signal_callback(int sig, short event, void* arg) (*comsig->callback)(sig, comsig->cb_arg); } -int +int comm_signal_bind(struct comm_signal* comsig, int sig) { - struct internal_signal* entry = (struct internal_signal*)calloc(1, + struct internal_signal* entry = (struct internal_signal*)calloc(1, sizeof(struct internal_signal)); if(!entry) { log_err("malloc failed"); @@ -4908,7 +4908,7 @@ comm_signal_bind(struct comm_signal* comsig, int sig) return 1; } -void +void comm_signal_delete(struct comm_signal* comsig) { struct internal_signal* p, *np; diff --git a/util/netevent.h b/util/netevent.h index 3e7849c13..433c14c3c 100644 --- a/util/netevent.h +++ b/util/netevent.h @@ -4,22 +4,22 @@ * Copyright (c) 2007, NLnet Labs. All rights reserved. * * This software is open source. - * + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: - * + * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. - * + * * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. - * + * * Neither the name of the NLNET LABS nor the names of its contributors may * be used to endorse or promote products derived from this software without * specific prior written permission. - * + * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR @@ -83,7 +83,7 @@ struct internal_timer; /* A sub struct of the comm_timer super struct */ enum listen_type; /** callback from communication point function type */ -typedef int comm_point_callback_type(struct comm_point*, void*, int, +typedef int comm_point_callback_type(struct comm_point*, void*, int, struct comm_reply*); /** to pass no_error to callback function */ @@ -91,7 +91,7 @@ typedef int comm_point_callback_type(struct comm_point*, void*, int, /** to pass closed connection to callback function */ #define NETEVENT_CLOSED -1 /** to pass timeout happened to callback function */ -#define NETEVENT_TIMEOUT -2 +#define NETEVENT_TIMEOUT -2 /** to pass fallback from capsforID to callback function; 0x20 failed */ #define NETEVENT_CAPSFAIL -3 /** to pass done transfer to callback function; http file is complete */ @@ -165,8 +165,8 @@ struct comm_reply { socklen_t client_addrlen; }; -/** - * Communication point to the network +/** + * Communication point to the network * These behaviours can be accomplished by setting the flags * and passing return values from the callback. * udp frontside: called after readdone. sendafter. @@ -206,7 +206,7 @@ struct comm_point { int max_tcp_count; /** current number of tcp handler in-use for this accept socket */ int cur_tcp_count; - /** malloced array of tcp handlers for a tcp-accept, + /** malloced array of tcp handlers for a tcp-accept, of size max_tcp_count. */ struct comm_point** tcp_handlers; /** linked list of free tcp_handlers to use for new queries. @@ -271,9 +271,9 @@ struct comm_point { /** is this a UDP, TCP-accept or TCP socket. */ enum comm_point_type { /** UDP socket - handle datagrams. */ - comm_udp, + comm_udp, /** TCP accept socket - only creates handlers if readable. */ - comm_tcp_accept, + comm_tcp_accept, /** TCP handler socket - handle byteperbyte readwrite. */ comm_tcp, /** HTTP handler socket */ @@ -282,7 +282,7 @@ struct comm_point { comm_local, /** raw - not DNS format - for pipe readers and writers */ comm_raw - } + } /** variable with type of socket, UDP,TCP-accept,TCP,pipe */ type; @@ -303,7 +303,7 @@ struct comm_point { /** if set the connection is NOT closed on delete. */ int do_not_close; - /** if set, the connection is closed on error, on timeout, + /** if set, the connection is closed on error, on timeout, and after read/write completes. No callback is done. */ int tcp_do_close; @@ -387,11 +387,11 @@ struct comm_point { /** callback when done. tcp_accept does not get called back, is NULL then. If a timeout happens, callback with timeout=1 is called. - If an error happens, callback is called with error set + If an error happens, callback is called with error set nonzero. If not NETEVENT_NOERROR, it is an errno value. If the connection is closed (by remote end) then the callback is called with error set to NETEVENT_CLOSED=-1. - If a timeout happens on the connection, the error is set to + If a timeout happens on the connection, the error is set to NETEVENT_TIMEOUT=-2. The reply_info can be copied if the reply needs to happen at a later time. It consists of a struct with commpoint and address. @@ -399,7 +399,7 @@ struct comm_point { Note the reply information is temporary and must be copied. NULL is passed for_reply info, in cases where error happened. - declare as: + declare as: int my_callback(struct comm_point* c, void* my_arg, int error, struct comm_reply *reply_info); @@ -446,14 +446,14 @@ struct comm_signal { /** * Create a new comm base. - * @param sigs: if true it attempts to create a default loop for + * @param sigs: if true it attempts to create a default loop for * signal handling. * @return: the new comm base. NULL on error. */ struct comm_base* comm_base_create(int sigs); /** - * Create comm base that uses the given ub_event_base (underlying pluggable + * Create comm base that uses the given ub_event_base (underlying pluggable * event mechanism pointer). * @param base: underlying pluggable event base. * @return: the new comm base. NULL on error. @@ -619,7 +619,7 @@ struct comm_point* comm_point_create_http_out(struct comm_base* base, * @return: the commpoint or NULL on error. */ struct comm_point* comm_point_create_local(struct comm_base* base, - int fd, size_t bufsize, + int fd, size_t bufsize, comm_point_callback_type* callback, void* callback_arg); /** @@ -632,7 +632,7 @@ struct comm_point* comm_point_create_local(struct comm_base* base, * @return: the commpoint or NULL on error. */ struct comm_point* comm_point_create_raw(struct comm_base* base, - int fd, int writing, + int fd, int writing, comm_point_callback_type* callback, void* callback_arg); /** @@ -722,7 +722,7 @@ size_t comm_point_get_mem(struct comm_point* c); * @param cb_arg: user callback argument. * @return: the new timer or NULL on error. */ -struct comm_timer* comm_timer_create(struct comm_base* base, +struct comm_timer* comm_timer_create(struct comm_base* base, void (*cb)(void*), void* cb_arg); /** @@ -792,7 +792,7 @@ void comm_signal_delete(struct comm_signal* comsig); * if -1, error message has been printed if necessary, simply drop * out of the reading handler. */ -int comm_point_perform_accept(struct comm_point* c, +int comm_point_perform_accept(struct comm_point* c, struct sockaddr_storage* addr, socklen_t* addrlen); /**** internal routines ****/ @@ -801,7 +801,7 @@ int comm_point_perform_accept(struct comm_point* c, * This routine is published for checks and tests, and is only used internally. * handle libevent callback for udp comm point. * @param fd: file descriptor. - * @param event: event bits from libevent: + * @param event: event bits from libevent: * EV_READ, EV_WRITE, EV_SIGNAL, EV_TIMEOUT. * @param arg: the comm_point structure. */ @@ -811,7 +811,7 @@ void comm_point_udp_callback(int fd, short event, void* arg); * This routine is published for checks and tests, and is only used internally. * handle libevent callback for udp ancillary data comm point. * @param fd: file descriptor. - * @param event: event bits from libevent: + * @param event: event bits from libevent: * EV_READ, EV_WRITE, EV_SIGNAL, EV_TIMEOUT. * @param arg: the comm_point structure. */ @@ -821,7 +821,7 @@ void comm_point_udp_ancil_callback(int fd, short event, void* arg); * This routine is published for checks and tests, and is only used internally. * handle libevent callback for tcp accept comm point * @param fd: file descriptor. - * @param event: event bits from libevent: + * @param event: event bits from libevent: * EV_READ, EV_WRITE, EV_SIGNAL, EV_TIMEOUT. * @param arg: the comm_point structure. */ @@ -831,7 +831,7 @@ void comm_point_tcp_accept_callback(int fd, short event, void* arg); * This routine is published for checks and tests, and is only used internally. * handle libevent callback for tcp data comm point * @param fd: file descriptor. - * @param event: event bits from libevent: + * @param event: event bits from libevent: * EV_READ, EV_WRITE, EV_SIGNAL, EV_TIMEOUT. * @param arg: the comm_point structure. */ @@ -841,7 +841,7 @@ void comm_point_tcp_handle_callback(int fd, short event, void* arg); * This routine is published for checks and tests, and is only used internally. * handle libevent callback for tcp data comm point * @param fd: file descriptor. - * @param event: event bits from libevent: + * @param event: event bits from libevent: * EV_READ, EV_WRITE, EV_SIGNAL, EV_TIMEOUT. * @param arg: the comm_point structure. */ @@ -955,7 +955,7 @@ void http2_stream_add_meshstate(struct http2_stream* h2_stream, * This routine is published for checks and tests, and is only used internally. * handle libevent callback for timer comm. * @param fd: file descriptor (always -1). - * @param event: event bits from libevent: + * @param event: event bits from libevent: * EV_READ, EV_WRITE, EV_SIGNAL, EV_TIMEOUT. * @param arg: the comm_timer structure. */ @@ -965,7 +965,7 @@ void comm_timer_callback(int fd, short event, void* arg); * This routine is published for checks and tests, and is only used internally. * handle libevent callback for signal comm. * @param fd: file descriptor (used for the signal number). - * @param event: event bits from libevent: + * @param event: event bits from libevent: * EV_READ, EV_WRITE, EV_SIGNAL, EV_TIMEOUT. * @param arg: the internal commsignal structure. */ @@ -975,7 +975,7 @@ void comm_signal_callback(int fd, short event, void* arg); * This routine is published for checks and tests, and is only used internally. * libevent callback for AF_UNIX fds * @param fd: file descriptor. - * @param event: event bits from libevent: + * @param event: event bits from libevent: * EV_READ, EV_WRITE, EV_SIGNAL, EV_TIMEOUT. * @param arg: the comm_point structure. */ @@ -985,7 +985,7 @@ void comm_point_local_handle_callback(int fd, short event, void* arg); * This routine is published for checks and tests, and is only used internally. * libevent callback for raw fd access. * @param fd: file descriptor. - * @param event: event bits from libevent: + * @param event: event bits from libevent: * EV_READ, EV_WRITE, EV_SIGNAL, EV_TIMEOUT. * @param arg: the comm_point structure. */ @@ -995,7 +995,7 @@ void comm_point_raw_handle_callback(int fd, short event, void* arg); * This routine is published for checks and tests, and is only used internally. * libevent callback for timeout on slow accept. * @param fd: file descriptor. - * @param event: event bits from libevent: + * @param event: event bits from libevent: * EV_READ, EV_WRITE, EV_SIGNAL, EV_TIMEOUT. * @param arg: the comm_point structure. */ diff --git a/util/timehist.c b/util/timehist.c index 61cc995fd..515cf61f3 100644 --- a/util/timehist.c +++ b/util/timehist.c @@ -4,22 +4,22 @@ * Copyright (c) 2007, NLnet Labs. All rights reserved. * * This software is open source. - * + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: - * + * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. - * + * * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. - * + * * Neither the name of the NLNET LABS nor the names of its contributors may * be used to endorse or promote products derived from this software without * specific prior written permission. - * + * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR @@ -83,12 +83,12 @@ dosetup(struct timehist* hist) struct timehist* timehist_setup(void) { - struct timehist* hist = (struct timehist*)calloc(1, + struct timehist* hist = (struct timehist*)calloc(1, sizeof(struct timehist)); if(!hist) return NULL; hist->num = NUM_BUCKETS_HIST; - hist->buckets = (struct th_buck*)calloc(hist->num, + hist->buckets = (struct th_buck*)calloc(hist->num, sizeof(struct th_buck)); if(!hist->buckets) { free(hist); @@ -194,7 +194,7 @@ timehist_count(struct timehist* hist) return res; } -double +double timehist_quartile(struct timehist* hist, double q) { double lookfor, passed, res; @@ -209,22 +209,22 @@ timehist_quartile(struct timehist* hist, double q) lookfor *= q; passed = 0; i = 0; - while(i+1 < hist->num && + while(i+1 < hist->num && passed+(double)hist->buckets[i].count < lookfor) { passed += (double)hist->buckets[i++].count; } /* got the right bucket */ #ifndef S_SPLINT_S - low = (double)hist->buckets[i].lower.tv_sec + + low = (double)hist->buckets[i].lower.tv_sec + (double)hist->buckets[i].lower.tv_usec/1000000.; - up = (double)hist->buckets[i].upper.tv_sec + + up = (double)hist->buckets[i].upper.tv_sec + (double)hist->buckets[i].upper.tv_usec/1000000.; #endif res = (lookfor - passed)*(up-low)/((double)hist->buckets[i].count); return low+res; } -void +void timehist_export(struct timehist* hist, long long* array, size_t sz) { size_t i; @@ -235,7 +235,7 @@ timehist_export(struct timehist* hist, long long* array, size_t sz) array[i] = (long long)hist->buckets[i].count; } -void +void timehist_import(struct timehist* hist, long long* array, size_t sz) { size_t i;