pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/43123 (milter-greylist not building on amd64-current)
/* A Bison parser, made by GNU Bison 2.4.1. */
/* Skeleton implementation for Bison's Yacc-like parsers in C
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
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 <http://www.gnu.org/licenses/>. */
/* 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. */
/* 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. */
#define YYBISON 1
/* Bison version. */
#define YYBISON_VERSION "2.4.1"
/* Skeleton name. */
#define YYSKELETON_NAME "yacc.c"
/* Pure parsers. */
#define YYPURE 0
/* Push parsers. */
#define YYPUSH 0
/* Pull parsers. */
#define YYPULL 1
/* Using locations. */
#define YYLSP_NEEDED 0
/* Substitute the variable and function names. */
#define yyparse conf_parse
#define yylex conf_lex
#define yyerror conf_error
#define yylval conf_lval
#define yychar conf_char
#define yydebug conf_debug
#define yynerrs conf_nerrs
/* Copy the first part of user declarations. */
/* Line 189 of yacc.c */
#line 19 "conf_yacc.y"
#include "config.h"
#ifdef HAVE_SYS_CDEFS_H
#include <sys/cdefs.h>
#ifdef __RCSID
__RCSID("$Id: conf_yacc.y,v 1.96.2.5 2009/04/09 03:37:07 manu Exp $");
#endif
#endif
#include <stdlib.h>
#include <limits.h>
#include <string.h>
#include <syslog.h>
#include <sysexits.h>
#ifdef USE_DMALLOC
#include <dmalloc.h>
#endif
#include "conf.h"
#include "spf.h"
#include "acl.h"
#include "sync.h"
#include "list.h"
#include "macro.h"
#ifdef USE_DNSRBL
#include "dnsrbl.h"
#endif
#ifdef USE_CURL
#include "urlcheck.h"
#endif
#ifdef USE_LDAP
#include "ldapcheck.h"
#endif
#if defined(USE_CURL) || defined(USE_LDAP)
#include "prop.h"
#endif
#ifdef USE_GEOIP
#include "geoip.h"
#endif
#ifdef USE_P0F
#include "p0f.h"
#endif
#ifdef USE_SPAMD
#include "spamd.h"
#endif
#include "stat.h"
#include "clock.h"
#include "spf.h"
#include "milter-greylist.h"
#define LEN4 sizeof(struct sockaddr_in)
#define IP4TOSTRING(ip4, str) iptostring(SA(&(ip4)), LEN4, (str), IPADDRSTRLEN)
#define LEN6 sizeof(struct sockaddr_in6)
#define IP6TOSTRING(ip6, str) iptostring(SA(&(ip6)), LEN6, (str), IPADDRSTRLEN)
int conf_lex(void);
void conf_error(char *);
/* Line 189 of yacc.c */
#line 143 "y.tab.c"
/* Enabling traces. */
#ifndef YYDEBUG
# define YYDEBUG 0
#endif
/* Enabling verbose error messages. */
#ifdef YYERROR_VERBOSE
# undef YYERROR_VERBOSE
# define YYERROR_VERBOSE 1
#else
# define YYERROR_VERBOSE 0
#endif
/* Enabling the token table. */
#ifndef YYTOKEN_TABLE
# define YYTOKEN_TABLE 0
#endif
/* Tokens. */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
/* Put the tokens into the symbol table, so that GDB and other debuggers
know about them. */
enum yytokentype {
TNUMBER = 258,
ADDR = 259,
IPADDR = 260,
IP6ADDR = 261,
CIDR = 262,
HELO = 263,
FROM = 264,
RCPT = 265,
EMAIL = 266,
PEER = 267,
AUTOWHITE = 268,
GREYLIST = 269,
NOAUTH = 270,
NOACCESSDB = 271,
EXTENDEDREGEX = 272,
NOSPF = 273,
QUIET = 274,
TESTMODE = 275,
VERBOSE = 276,
PIDFILE = 277,
GLDUMPFILE = 278,
QSTRING = 279,
TDELAY = 280,
SUBNETMATCH = 281,
SUBNETMATCH6 = 282,
SOCKET = 283,
USER = 284,
NODETACH = 285,
REGEX = 286,
REPORT = 287,
NONE = 288,
DELAYS = 289,
NODELAYS = 290,
ALL = 291,
LAZYAW = 292,
GLDUMPFREQ = 293,
GLTIMEOUT = 294,
DOMAIN = 295,
DOMAINNAME = 296,
SYNCADDR = 297,
SYNCSRCADDR = 298,
SYNCMAXQLEN = 299,
PORT = 300,
ACL = 301,
WHITELIST = 302,
DEFAULT = 303,
STAR = 304,
DELAYEDREJECT = 305,
DB = 306,
NODRAC = 307,
DRAC = 308,
DUMP_NO_TIME_TRANSLATION = 309,
LOGEXPIRED = 310,
GLXDELAY = 311,
DNSRBL = 312,
LIST = 313,
OPENLIST = 314,
CLOSELIST = 315,
BLACKLIST = 316,
FLUSHADDR = 317,
CODE = 318,
ECODE = 319,
MSG = 320,
SM_MACRO = 321,
UNSET = 322,
URLCHECK = 323,
RACL = 324,
DACL = 325,
GLHEADER = 326,
BODY = 327,
MAXPEEK = 328,
STAT = 329,
POSTMSG = 330,
FORK = 331,
GETPROP = 332,
CLEAR = 333,
PROP = 334,
AUTH = 335,
TLS = 336,
SPF = 337,
MSGSIZE = 338,
RCPTCOUNT = 339,
OP = 340,
NO = 341,
SLASH = 342,
MINUS = 343,
COMMA = 344,
TIME = 345,
GEOIPDB = 346,
GEOIP = 347,
PASS = 348,
FAIL = 349,
SOFTFAIL = 350,
NEUTRAL = 351,
UNKNWON = 352,
ERROR = 353,
SELF = 354,
SPF_STATUS = 355,
LDAPCONF = 356,
LDAPCHECK = 357,
LOGFAC = 358,
LOGFAC_KERN = 359,
LOGFAC_USER = 360,
LOGFAC_MAIL = 361,
LOGFAC_DAEMON = 362,
LOGFAC_AUTH = 363,
LOGFAC_SYSLOG = 364,
LOGFAC_LPR = 365,
LOGFAC_NEWS = 366,
LOGFAC_UUCP = 367,
LOGFAC_CRON = 368,
LOGFAC_AUTHPRIV = 369,
LOGFAC_FTP = 370,
LOGFAC_LOCAL0 = 371,
LOGFAC_LOCAL1 = 372,
LOGFAC_LOCAL2 = 373,
LOGFAC_LOCAL3 = 374,
LOGFAC_LOCAL4 = 375,
LOGFAC_LOCAL5 = 376,
LOGFAC_LOCAL6 = 377,
LOGFAC_LOCAL7 = 378,
P0F = 379,
P0FSOCK = 380,
DKIMCHECK = 381,
SPAMDSOCK = 382,
SPAMDSOCKT = 383,
SPAMD = 384,
DOMAINEXACT = 385,
ADDHEADER = 386,
NOLOG = 387
};
#endif
/* Tokens. */
#define TNUMBER 258
#define ADDR 259
#define IPADDR 260
#define IP6ADDR 261
#define CIDR 262
#define HELO 263
#define FROM 264
#define RCPT 265
#define EMAIL 266
#define PEER 267
#define AUTOWHITE 268
#define GREYLIST 269
#define NOAUTH 270
#define NOACCESSDB 271
#define EXTENDEDREGEX 272
#define NOSPF 273
#define QUIET 274
#define TESTMODE 275
#define VERBOSE 276
#define PIDFILE 277
#define GLDUMPFILE 278
#define QSTRING 279
#define TDELAY 280
#define SUBNETMATCH 281
#define SUBNETMATCH6 282
#define SOCKET 283
#define USER 284
#define NODETACH 285
#define REGEX 286
#define REPORT 287
#define NONE 288
#define DELAYS 289
#define NODELAYS 290
#define ALL 291
#define LAZYAW 292
#define GLDUMPFREQ 293
#define GLTIMEOUT 294
#define DOMAIN 295
#define DOMAINNAME 296
#define SYNCADDR 297
#define SYNCSRCADDR 298
#define SYNCMAXQLEN 299
#define PORT 300
#define ACL 301
#define WHITELIST 302
#define DEFAULT 303
#define STAR 304
#define DELAYEDREJECT 305
#define DB 306
#define NODRAC 307
#define DRAC 308
#define DUMP_NO_TIME_TRANSLATION 309
#define LOGEXPIRED 310
#define GLXDELAY 311
#define DNSRBL 312
#define LIST 313
#define OPENLIST 314
#define CLOSELIST 315
#define BLACKLIST 316
#define FLUSHADDR 317
#define CODE 318
#define ECODE 319
#define MSG 320
#define SM_MACRO 321
#define UNSET 322
#define URLCHECK 323
#define RACL 324
#define DACL 325
#define GLHEADER 326
#define BODY 327
#define MAXPEEK 328
#define STAT 329
#define POSTMSG 330
#define FORK 331
#define GETPROP 332
#define CLEAR 333
#define PROP 334
#define AUTH 335
#define TLS 336
#define SPF 337
#define MSGSIZE 338
#define RCPTCOUNT 339
#define OP 340
#define NO 341
#define SLASH 342
#define MINUS 343
#define COMMA 344
#define TIME 345
#define GEOIPDB 346
#define GEOIP 347
#define PASS 348
#define FAIL 349
#define SOFTFAIL 350
#define NEUTRAL 351
#define UNKNWON 352
#define ERROR 353
#define SELF 354
#define SPF_STATUS 355
#define LDAPCONF 356
#define LDAPCHECK 357
#define LOGFAC 358
#define LOGFAC_KERN 359
#define LOGFAC_USER 360
#define LOGFAC_MAIL 361
#define LOGFAC_DAEMON 362
#define LOGFAC_AUTH 363
#define LOGFAC_SYSLOG 364
#define LOGFAC_LPR 365
#define LOGFAC_NEWS 366
#define LOGFAC_UUCP 367
#define LOGFAC_CRON 368
#define LOGFAC_AUTHPRIV 369
#define LOGFAC_FTP 370
#define LOGFAC_LOCAL0 371
#define LOGFAC_LOCAL1 372
#define LOGFAC_LOCAL2 373
#define LOGFAC_LOCAL3 374
#define LOGFAC_LOCAL4 375
#define LOGFAC_LOCAL5 376
#define LOGFAC_LOCAL6 377
#define LOGFAC_LOCAL7 378
#define P0F 379
#define P0FSOCK 380
#define DKIMCHECK 381
#define SPAMDSOCK 382
#define SPAMDSOCKT 383
#define SPAMD 384
#define DOMAINEXACT 385
#define ADDHEADER 386
#define NOLOG 387
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef union YYSTYPE
{
/* Line 214 of yacc.c */
#line 80 "conf_yacc.y"
struct sockaddr_in ipaddr;
#ifdef AF_INET6
struct sockaddr_in6 ip6addr;
#else
struct sockaddr_in ip6addr; /* XXX: for dummy */
#endif
int cidr;
char email[ADDRLEN + 1];
char domainname[ADDRLEN + 1];
char qstring[QSTRLEN + 1];
char delay[NUMLEN + 1];
char regex[REGEXLEN + 1];
enum operator op;
char prop[QSTRLEN + 1];
enum spf_status spf_status;
enum spf_status dkim_status;
char spamdsockt[QSTRLEN + 1];
/* Line 214 of yacc.c */
#line 465 "y.tab.c"
} YYSTYPE;
# define YYSTYPE_IS_TRIVIAL 1
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1
#endif
/* Copy the second part of user declarations. */
/* Line 264 of yacc.c */
#line 477 "y.tab.c"
#ifdef short
# undef short
#endif
#ifdef YYTYPE_UINT8
typedef YYTYPE_UINT8 yytype_uint8;
#else
typedef unsigned char yytype_uint8;
#endif
#ifdef YYTYPE_INT8
typedef YYTYPE_INT8 yytype_int8;
#elif (defined __STDC__ || defined __C99__FUNC__ \
|| defined __cplusplus || defined _MSC_VER)
typedef signed char yytype_int8;
#else
typedef short int yytype_int8;
#endif
#ifdef YYTYPE_UINT16
typedef YYTYPE_UINT16 yytype_uint16;
#else
typedef unsigned short int yytype_uint16;
#endif
#ifdef YYTYPE_INT16
typedef YYTYPE_INT16 yytype_int16;
#else
typedef short int yytype_int16;
#endif
#ifndef YYSIZE_T
# ifdef __SIZE_TYPE__
# define YYSIZE_T __SIZE_TYPE__
# elif defined size_t
# define YYSIZE_T size_t
# elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \
|| defined __cplusplus || defined _MSC_VER)
# include <stddef.h> /* INFRINGES ON USER NAME SPACE */
# define YYSIZE_T size_t
# else
# define YYSIZE_T unsigned int
# endif
#endif
#define YYSIZE_MAXIMUM ((YYSIZE_T) -1)
#ifndef YY_
# if YYENABLE_NLS
# if ENABLE_NLS
# include <libintl.h> /* INFRINGES ON USER NAME SPACE */
# define YY_(msgid) dgettext ("bison-runtime", msgid)
# endif
# endif
# ifndef YY_
# define YY_(msgid) msgid
# endif
#endif
/* Suppress unused-variable warnings by "using" E. */
#if ! defined lint || defined __GNUC__
# define YYUSE(e) ((void) (e))
#else
# define YYUSE(e) /* empty */
#endif
/* Identity function, used to suppress warnings about constant conditions. */
#ifndef lint
# define YYID(n) (n)
#else
#if (defined __STDC__ || defined __C99__FUNC__ \
|| defined __cplusplus || defined _MSC_VER)
static int
YYID (int yyi)
#else
static int
YYID (yyi)
int yyi;
#endif
{
return yyi;
}
#endif
#if ! defined yyoverflow || YYERROR_VERBOSE
/* 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 <alloca.h> /* INFRINGES ON USER NAME SPACE */
# elif defined _AIX
# define YYSTACK_ALLOC __alloca
# elif defined _MSC_VER
# include <malloc.h> /* INFRINGES ON USER NAME SPACE */
# define alloca _alloca
# else
# define YYSTACK_ALLOC alloca
# if ! defined _ALLOCA_H && ! defined _STDLIB_H && (defined __STDC__ ||
defined __C99__FUNC__ \
|| defined __cplusplus || defined _MSC_VER)
# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
# ifndef _STDLIB_H
# define _STDLIB_H 1
# endif
# endif
# endif
# endif
# endif
# ifdef YYSTACK_ALLOC
/* Pacify GCC's `empty if-body' warning. */
# define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (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 _STDLIB_H \
&& ! ((defined YYMALLOC || defined malloc) \
&& (defined YYFREE || defined free)))
# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
# ifndef _STDLIB_H
# define _STDLIB_H 1
# endif
# endif
# ifndef YYMALLOC
# define YYMALLOC malloc
# if ! defined malloc && ! defined _STDLIB_H && (defined __STDC__ || defined
__C99__FUNC__ \
|| defined __cplusplus || defined _MSC_VER)
void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
# endif
# endif
# ifndef YYFREE
# define YYFREE free
# if ! defined free && ! defined _STDLIB_H && (defined __STDC__ || defined
__C99__FUNC__ \
|| defined __cplusplus || defined _MSC_VER)
void free (void *); /* INFRINGES ON USER NAME SPACE */
# endif
# endif
# endif
#endif /* ! defined yyoverflow || YYERROR_VERBOSE */
#if (! defined yyoverflow \
&& (! defined __cplusplus \
|| (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
/* A type that is properly aligned for any stack member. */
union yyalloc
{
yytype_int16 yyss_alloc;
YYSTYPE yyvs_alloc;
};
/* The size of the maximum gap between one aligned stack and the next. */
# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
/* The size of an array large to enough to hold all stacks, each with
N elements. */
# define YYSTACK_BYTES(N) \
((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \
+ YYSTACK_GAP_MAXIMUM)
/* Copy COUNT objects from FROM to TO. The source and destination do
not overlap. */
# ifndef YYCOPY
# if defined __GNUC__ && 1 < __GNUC__
# define YYCOPY(To, From, Count) \
__builtin_memcpy (To, From, (Count) * sizeof (*(From)))
# else
# define YYCOPY(To, From, Count) \
do \
{ \
YYSIZE_T yyi; \
for (yyi = 0; yyi < (Count); yyi++) \
(To)[yyi] = (From)[yyi]; \
} \
while (YYID (0))
# endif
# endif
/* 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 \
{ \
YYSIZE_T yynewbytes; \
YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
Stack = &yyptr->Stack_alloc; \
yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
yyptr += yynewbytes / sizeof (*yyptr); \
} \
while (YYID (0))
#endif
/* YYFINAL -- State number of the termination state. */
#define YYFINAL 2
/* YYLAST -- Last index in YYTABLE. */
#define YYLAST 504
/* YYNTOKENS -- Number of terminals. */
#define YYNTOKENS 134
/* YYNNTS -- Number of nonterminals. */
#define YYNNTS 130
/* YYNRULES -- Number of rules. */
#define YYNRULES 332
/* YYNRULES -- Number of states. */
#define YYNSTATES 536
/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
#define YYUNDEFTOK 2
#define YYMAXUTOK 387
#define YYTRANSLATE(YYX) \
((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */
static const yytype_uint8 yytranslate[] =
{
0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
133, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 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
};
#if YYDEBUG
/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
YYRHS. */
static const yytype_uint16 yyprhs[] =
{
0, 0, 3, 7, 11, 15, 19, 23, 27, 31,
35, 39, 43, 47, 51, 55, 59, 63, 67, 71,
75, 79, 83, 87, 91, 95, 99, 103, 107, 111,
115, 119, 123, 127, 131, 135, 139, 143, 147, 151,
155, 159, 163, 167, 171, 175, 179, 183, 187, 191,
195, 199, 203, 207, 211, 214, 215, 219, 222, 226,
229, 232, 235, 238, 241, 244, 247, 252, 257, 262,
267, 272, 277, 280, 283, 286, 289, 292, 295, 298,
300, 302, 304, 306, 308, 310, 312, 314, 316, 318,
320, 322, 324, 327, 330, 334, 337, 340, 343, 347,
350, 353, 357, 360, 363, 366, 369, 372, 375, 378,
381, 384, 387, 390, 393, 396, 399, 402, 405, 408,
411, 414, 417, 420, 423, 426, 429, 432, 435, 439,
442, 445, 448, 451, 454, 457, 460, 465, 470, 475,
478, 481, 484, 489, 494, 499, 502, 506, 510, 514,
519, 524, 529, 534, 539, 544, 546, 547, 549, 551,
554, 556, 559, 561, 563, 566, 568, 570, 572, 574,
576, 578, 580, 582, 584, 586, 588, 590, 592, 594,
596, 598, 600, 602, 604, 606, 608, 610, 612, 614,
616, 618, 620, 622, 624, 626, 628, 630, 632, 634,
636, 638, 640, 643, 645, 647, 649, 651, 653, 655,
657, 659, 661, 664, 667, 669, 671, 674, 677, 680,
683, 686, 688, 695, 698, 701, 703, 707, 710, 713,
716, 719, 722, 725, 728, 731, 734, 737, 740, 743,
746, 749, 752, 755, 758, 761, 764, 767, 769, 772,
775, 778, 781, 784, 787, 791, 794, 798, 801, 805,
809, 813, 815, 818, 820, 822, 827, 833, 835, 837,
839, 844, 849, 852, 853, 855, 861, 864, 867, 871,
874, 875, 877, 879, 881, 883, 887, 890, 892, 893,
898, 903, 907, 909, 911, 915, 919, 925, 927, 931,
935, 940, 945, 950, 955, 960, 965, 970, 975, 980,
985, 990, 995, 1000, 1005, 1010, 1012, 1015, 1017, 1019,
1021, 1024, 1026, 1028, 1030, 1033, 1035, 1037, 1039, 1042,
1045, 1047, 1050
};
/* YYRHS -- A `-1'-separated list of the rules' RHS. */
static const yytype_int16 yyrhs[] =
{
135, 0, -1, 135, 136, 133, -1, 135, 137, 133,
-1, 135, 138, 133, -1, 135, 139, 133, -1, 135,
140, 133, -1, 135, 141, 133, -1, 135, 142, 133,
-1, 135, 143, 133, -1, 135, 146, 133, -1, 135,
147, 133, -1, 135, 149, 133, -1, 135, 150, 133,
-1, 135, 151, 133, -1, 135, 152, 133, -1, 135,
153, 133, -1, 135, 154, 133, -1, 135, 155, 133,
-1, 135, 144, 133, -1, 135, 145, 133, -1, 135,
159, 133, -1, 135, 160, 133, -1, 135, 161, 133,
-1, 135, 162, 133, -1, 135, 163, 133, -1, 135,
164, 133, -1, 135, 167, 133, -1, 135, 156, 133,
-1, 135, 157, 133, -1, 135, 168, 133, -1, 135,
169, 133, -1, 135, 170, 133, -1, 135, 171, 133,
-1, 135, 172, 133, -1, 135, 173, 133, -1, 135,
174, 133, -1, 135, 176, 133, -1, 135, 177, 133,
-1, 135, 178, 133, -1, 135, 230, 133, -1, 135,
234, 133, -1, 135, 233, 133, -1, 135, 148, 133,
-1, 135, 235, 133, -1, 135, 238, 133, -1, 135,
243, 133, -1, 135, 240, 133, -1, 135, 249, 133,
-1, 135, 165, 133, -1, 135, 166, 133, -1, 135,
255, 133, -1, 135, 158, 133, -1, 135, 175, 133,
-1, 135, 133, -1, -1, 4, 5, 7, -1, 4,
5, -1, 4, 6, 7, -1, 4, 6, -1, 9,
11, -1, 10, 11, -1, 9, 31, -1, 10, 31,
-1, 40, 41, -1, 40, 31, -1, 12, 5, 39,
25, -1, 12, 6, 39, 25, -1, 12, 41, 39,
25, -1, 12, 5, 39, 3, -1, 12, 6, 39,
3, -1, 12, 41, 39, 3, -1, 12, 5, -1,
12, 6, -1, 12, 41, -1, 13, 25, -1, 13,
3, -1, 14, 25, -1, 14, 3, -1, 21, -1,
54, -1, 55, -1, 19, -1, 15, -1, 16, -1,
17, -1, 18, -1, 50, -1, 20, -1, 30, -1,
37, -1, 130, -1, 22, 24, -1, 23, 24, -1,
23, 24, 3, -1, 26, 7, -1, 27, 7, -1,
28, 24, -1, 28, 24, 3, -1, 29, 24, -1,
125, 24, -1, 127, 128, 24, -1, 91, 24, -1,
32, 33, -1, 32, 34, -1, 32, 35, -1, 32,
36, -1, 103, 33, -1, 103, 104, -1, 103, 105,
-1, 103, 106, -1, 103, 107, -1, 103, 108, -1,
103, 109, -1, 103, 110, -1, 103, 111, -1, 103,
112, -1, 103, 113, -1, 103, 114, -1, 103, 115,
-1, 103, 116, -1, 103, 117, -1, 103, 118, -1,
103, 119, -1, 103, 120, -1, 103, 121, -1, 103,
122, -1, 103, 123, -1, 74, 24, 24, -1, 38,
25, -1, 38, 3, -1, 39, 25, -1, 39, 3,
-1, 42, 49, -1, 42, 5, -1, 42, 6, -1,
42, 49, 45, 3, -1, 42, 5, 45, 3, -1,
42, 6, 45, 3, -1, 43, 49, -1, 43, 5,
-1, 43, 6, -1, 43, 49, 45, 3, -1, 43,
5, 45, 3, -1, 43, 6, 45, 3, -1, 44,
3, -1, 46, 14, 180, -1, 46, 47, 180, -1,
46, 61, 180, -1, 69, 179, 14, 180, -1, 69,
179, 47, 180, -1, 69, 179, 61, 180, -1, 70,
179, 14, 180, -1, 70, 179, 47, 180, -1, 70,
179, 61, 180, -1, 24, -1, -1, 181, -1, 182,
-1, 48, 185, -1, 48, -1, 183, 185, -1, 183,
-1, 184, -1, 183, 184, -1, 203, -1, 204, -1,
205, -1, 206, -1, 207, -1, 208, -1, 209, -1,
210, -1, 229, -1, 211, -1, 212, -1, 224, -1,
225, -1, 198, -1, 199, -1, 228, -1, 213, -1,
214, -1, 215, -1, 216, -1, 217, -1, 218, -1,
219, -1, 220, -1, 221, -1, 222, -1, 223, -1,
231, -1, 232, -1, 196, -1, 197, -1, 202, -1,
226, -1, 227, -1, 200, -1, 201, -1, 186, -1,
185, 186, -1, 187, -1, 188, -1, 191, -1, 192,
-1, 193, -1, 194, -1, 189, -1, 190, -1, 195,
-1, 56, 25, -1, 13, 25, -1, 62, -1, 132,
-1, 63, 24, -1, 64, 24, -1, 65, 24, -1,
32, 24, -1, 131, 24, -1, 86, -1, 90, 253,
253, 253, 253, 253, -1, 124, 24, -1, 124, 31,
-1, 129, -1, 129, 85, 3, -1, 92, 24, -1,
8, 24, -1, 8, 31, -1, 9, 11, -1, 9,
31, -1, 10, 11, -1, 10, 31, -1, 40, 41,
-1, 40, 31, -1, 57, 24, -1, 66, 24, -1,
71, 24, -1, 71, 31, -1, 72, 24, -1, 72,
31, -1, 80, 24, -1, 80, 31, -1, 81, 24,
-1, 81, 31, -1, 82, 100, -1, 82, -1, 126,
100, -1, 68, 24, -1, 102, 24, -1, 79, 24,
-1, 79, 31, -1, 58, 24, -1, 4, 5, 7,
-1, 4, 5, -1, 4, 6, 7, -1, 4, 6,
-1, 53, 51, 24, -1, 83, 85, 3, -1, 84,
85, 3, -1, 52, -1, 73, 3, -1, 236, -1,
237, -1, 57, 24, 41, 5, -1, 57, 24, 41,
5, 7, -1, 239, -1, 251, -1, 252, -1, 66,
24, 24, 24, -1, 102, 24, 24, 241, -1, 241,
242, -1, -1, 78, -1, 68, 24, 24, 3, 244,
-1, 244, 245, -1, 244, 246, -1, 244, 246, 247,
-1, 244, 248, -1, -1, 75, -1, 77, -1, 78,
-1, 76, -1, 101, 24, 250, -1, 39, 25, -1,
3, -1, -1, 66, 24, 24, 31, -1, 66, 24,
24, 67, -1, 254, 89, 253, -1, 254, -1, 3,
-1, 3, 87, 3, -1, 3, 88, 3, -1, 3,
88, 3, 87, 3, -1, 49, -1, 49, 87, 3,
-1, 58, 24, 228, -1, 8, 59, 260, 60, -1,
9, 59, 256, 60, -1, 10, 59, 256, 60, -1,
40, 59, 258, 60, -1, 57, 59, 260, 60, -1,
68, 59, 260, 60, -1, 72, 59, 260, 60, -1,
71, 59, 260, 60, -1, 66, 59, 260, 60, -1,
4, 59, 262, 60, -1, 80, 59, 260, 60, -1,
81, 59, 260, 60, -1, 90, 59, 260, 60, -1,
92, 59, 260, 60, -1, 124, 59, 260, 60, -1,
257, -1, 256, 257, -1, 11, -1, 31, -1, 259,
-1, 258, 259, -1, 41, -1, 31, -1, 261, -1,
260, 261, -1, 24, -1, 31, -1, 263, -1, 262,
263, -1, 5, 7, -1, 5, -1, 6, 7, -1,
6, -1
};
/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
static const yytype_uint16 yyrline[] =
{
0, 114, 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, 169, 179, 189, 206,
224, 229, 238, 243, 251, 256, 261, 272, 289, 298,
309, 326, 335, 346, 363, 373, 377, 382, 386, 391,
393, 395, 397, 399, 401, 403, 405, 407, 409, 411,
413, 415, 419, 425, 430, 439, 443, 453, 458, 480,
485, 498, 512, 525, 526, 527, 528, 531, 532, 533,
534, 535, 536, 537, 538, 539, 540, 541, 542, 552,
562, 563, 564, 565, 566, 567, 568, 569, 572, 581,
584, 588, 591, 595, 599, 608, 622, 628, 639, 657,
661, 670, 684, 690, 701, 719, 723, 726, 729, 735,
738, 741, 747, 750, 753, 758, 763, 766, 767, 770,
770, 771, 771, 773, 774, 777, 778, 779, 780, 781,
782, 783, 784, 785, 786, 787, 788, 789, 790, 791,
792, 793, 794, 795, 796, 797, 798, 799, 800, 801,
802, 803, 804, 805, 806, 807, 808, 809, 810, 811,
812, 815, 816, 819, 820, 821, 822, 823, 824, 825,
826, 827, 830, 833, 836, 838, 840, 846, 852, 858,
864, 870, 873, 877, 891, 902, 913, 928, 944, 952,
955, 958, 961, 964, 967, 970, 973, 987, 995, 1003,
1006, 1014, 1017, 1026, 1032, 1041, 1047, 1062, 1079, 1092,
1106, 1121, 1139, 1155, 1162, 1171, 1180, 1196, 1213, 1224,
1234, 1245, 1248, 1251, 1251, 1254, 1268, 1282, 1282, 1282,
1284, 1295, 1310, 1311, 1314, 1325, 1341, 1342, 1343, 1344,
1345, 1348, 1358, 1368, 1378, 1389, 1401, 1410, 1419, 1422,
1431, 1440, 1441, 1443, 1445, 1447, 1449, 1451, 1453, 1457,
1465, 1467, 1469, 1471, 1473, 1475, 1477, 1479, 1481, 1483,
1485, 1487, 1489, 1491, 1493, 1497, 1498, 1501, 1502, 1505,
1506, 1509, 1510, 1513, 1514, 1517, 1523, 1526, 1527, 1530,
1538, 1546, 1560
};
#endif
#if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE
/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
First, the terminals, then, starting at YYNTOKENS, nonterminals. */
static const char *const yytname[] =
{
"$end", "error", "$undefined", "TNUMBER", "ADDR", "IPADDR", "IP6ADDR",
"CIDR", "HELO", "FROM", "RCPT", "EMAIL", "PEER", "AUTOWHITE", "GREYLIST",
"NOAUTH", "NOACCESSDB", "EXTENDEDREGEX", "NOSPF", "QUIET", "TESTMODE",
"VERBOSE", "PIDFILE", "GLDUMPFILE", "QSTRING", "TDELAY", "SUBNETMATCH",
"SUBNETMATCH6", "SOCKET", "USER", "NODETACH", "REGEX", "REPORT", "NONE",
"DELAYS", "NODELAYS", "ALL", "LAZYAW", "GLDUMPFREQ", "GLTIMEOUT",
"DOMAIN", "DOMAINNAME", "SYNCADDR", "SYNCSRCADDR", "SYNCMAXQLEN", "PORT",
"ACL", "WHITELIST", "DEFAULT", "STAR", "DELAYEDREJECT", "DB", "NODRAC",
"DRAC", "DUMP_NO_TIME_TRANSLATION", "LOGEXPIRED", "GLXDELAY", "DNSRBL",
"LIST", "OPENLIST", "CLOSELIST", "BLACKLIST", "FLUSHADDR", "CODE",
"ECODE", "MSG", "SM_MACRO", "UNSET", "URLCHECK", "RACL", "DACL",
"GLHEADER", "BODY", "MAXPEEK", "STAT", "POSTMSG", "FORK", "GETPROP",
"CLEAR", "PROP", "AUTH", "TLS", "SPF", "MSGSIZE", "RCPTCOUNT", "OP",
"NO", "SLASH", "MINUS", "COMMA", "TIME", "GEOIPDB", "GEOIP", "PASS",
"FAIL", "SOFTFAIL", "NEUTRAL", "UNKNWON", "ERROR", "SELF", "SPF_STATUS",
"LDAPCONF", "LDAPCHECK", "LOGFAC", "LOGFAC_KERN", "LOGFAC_USER",
"LOGFAC_MAIL", "LOGFAC_DAEMON", "LOGFAC_AUTH", "LOGFAC_SYSLOG",
"LOGFAC_LPR", "LOGFAC_NEWS", "LOGFAC_UUCP", "LOGFAC_CRON",
"LOGFAC_AUTHPRIV", "LOGFAC_FTP", "LOGFAC_LOCAL0", "LOGFAC_LOCAL1",
"LOGFAC_LOCAL2", "LOGFAC_LOCAL3", "LOGFAC_LOCAL4", "LOGFAC_LOCAL5",
"LOGFAC_LOCAL6", "LOGFAC_LOCAL7", "P0F", "P0FSOCK", "DKIMCHECK",
"SPAMDSOCK", "SPAMDSOCKT", "SPAMD", "DOMAINEXACT", "ADDHEADER", "NOLOG",
"'\\n'", "$accept", "lines", "netblock", "fromaddr", "rcptaddr",
"fromregex", "rcptregex", "domainaddr", "domainregex", "peeraddr",
"autowhite", "greylist", "verbose", "dump_no_time_translation",
"logexpired", "quiet", "noauth", "noaccessdb", "extendedregex", "nospf",
"delayedreject", "testmode", "nodetach", "lazyaw", "domainexact",
"pidfile", "dumpfile", "subnetmatch", "subnetmatch6", "socket", "user",
"p0fsockdef", "spamdsockdef", "geoipdb", "report", "logfac", "statdef",
"dumpfreq", "timeout", "syncaddr", "syncsrcaddr", "syncmaxqlen",
"access_list", "rcpt_access_list", "data_access_list", "id", "acl_entry",
"acl_default_entry", "acl_plain_entry", "acl_clauses", "acl_clause",
"acl_values", "acl_value", "greylist_value", "autowhite_value",
"flush_value", "nolog_value", "code_value", "ecode_value", "msg_value",
"report_value", "addheader_value", "no_clause", "time_clause",
"p0f_clause", "p0fregex_clause", "spamd_clause", "spamd_score_clause",
"geoip_clause", "helo_clause", "heloregex_clause", "fromaddr_clause",
"fromregex_clause", "rcptaddr_clause", "rcptregex_clause",
"domainaddr_clause", "domainregex_clause", "dnsrbl_clause",
"macro_clause", "header_clause", "headerregex_clause", "body_clause",
"bodyregex_clause", "auth_clause", "authregex_clause", "tls_clause",
"tlsregex_clause", "spf_clause", "spf_compat_clause", "dkim_clause",
"urlcheck_clause", "ldapcheck_clause", "prop_clause", "propregex_clause",
"list_clause", "netblock_clause", "dracdb", "msgsize_clause",
"rcptcount_clause", "nodrac", "maxpeek", "dnsrbldef", "dnsrbldefip",
"dnsrbldefnetblock", "macrodef", "macrodef_string", "ldapcheckdef",
"ldapcheckdef_flags", "ldapcheckdef_clear", "urlcheckdef",
"urlcheckdef_flags", "urlcheckdef_postmsg", "urlcheckdef_getprop",
"urlcheckdef_clear", "urlcheckdef_fork", "ldapconfdef", "ldaptimeout",
"macrodef_regex", "macrodef_unset", "clockspec", "clockspec_item",
"listdef", "email_list", "email_item", "domain_list", "domain_item",
"qstring_list", "qstring_item", "addr_list", "addr_item", 0
};
#endif
# ifdef YYPRINT
/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
token YYLEX-NUM. */
static const yytype_uint16 yytoknum[] =
{
0, 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, 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, 10
};
# endif
/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
static const yytype_uint16 yyr1[] =
{
0, 134, 135, 135, 135, 135, 135, 135, 135, 135,
135, 135, 135, 135, 135, 135, 135, 135, 135, 135,
135, 135, 135, 135, 135, 135, 135, 135, 135, 135,
135, 135, 135, 135, 135, 135, 135, 135, 135, 135,
135, 135, 135, 135, 135, 135, 135, 135, 135, 135,
135, 135, 135, 135, 135, 135, 136, 136, 136, 136,
137, 138, 139, 140, 141, 142, 143, 143, 143, 143,
143, 143, 143, 143, 143, 144, 144, 145, 145, 146,
147, 148, 149, 150, 151, 152, 153, 154, 155, 156,
157, 158, 159, 160, 160, 161, 162, 163, 163, 164,
165, 166, 167, 168, 168, 168, 168, 169, 169, 169,
169, 169, 169, 169, 169, 169, 169, 169, 169, 169,
169, 169, 169, 169, 169, 169, 169, 169, 170, 171,
171, 172, 172, 173, 173, 173, 173, 173, 173, 174,
174, 174, 174, 174, 174, 175, 176, 176, 176, 177,
177, 177, 178, 178, 178, 179, 179, 180, 180, 181,
181, 182, 182, 183, 183, 184, 184, 184, 184, 184,
184, 184, 184, 184, 184, 184, 184, 184, 184, 184,
184, 184, 184, 184, 184, 184, 184, 184, 184, 184,
184, 184, 184, 184, 184, 184, 184, 184, 184, 184,
184, 185, 185, 186, 186, 186, 186, 186, 186, 186,
186, 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, 229, 229, 229, 230, 231,
232, 233, 234, 235, 235, 236, 237, 238, 238, 238,
239, 240, 241, 241, 242, 243, 244, 244, 244, 244,
244, 245, 246, 247, 248, 249, 250, 250, 250, 251,
252, 253, 253, 254, 254, 254, 254, 254, 254, 255,
228, 228, 228, 228, 228, 228, 228, 228, 228, 228,
228, 228, 228, 228, 228, 256, 256, 257, 257, 258,
258, 259, 259, 260, 260, 261, 261, 262, 262, 263,
263, 263, 263
};
/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
static const yytype_uint8 yyr2[] =
{
0, 2, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 2, 0, 3, 2, 3, 2,
2, 2, 2, 2, 2, 2, 4, 4, 4, 4,
4, 4, 2, 2, 2, 2, 2, 2, 2, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 2, 2, 3, 2, 2, 2, 3, 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, 3, 2,
2, 2, 2, 2, 2, 2, 4, 4, 4, 2,
2, 2, 4, 4, 4, 2, 3, 3, 3, 4,
4, 4, 4, 4, 4, 1, 0, 1, 1, 2,
1, 2, 1, 1, 2, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 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, 1, 1, 1, 1, 1, 1, 1,
1, 1, 2, 2, 1, 1, 2, 2, 2, 2,
2, 1, 6, 2, 2, 1, 3, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 1, 2, 2,
2, 2, 2, 2, 3, 2, 3, 2, 3, 3,
3, 1, 2, 1, 1, 4, 5, 1, 1, 1,
4, 4, 2, 0, 1, 5, 2, 2, 3, 2,
0, 1, 1, 1, 1, 3, 2, 1, 0, 4,
4, 3, 1, 1, 3, 3, 5, 1, 3, 3,
4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
4, 4, 4, 4, 4, 1, 2, 1, 1, 1,
2, 1, 1, 1, 2, 1, 1, 1, 2, 2,
1, 2, 1
};
/* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state
STATE-NUM when YYTABLE doesn't specify something else to do. Zero
means the default is an error. */
static const yytype_uint16 yydefact[] =
{
55, 0, 1, 0, 0, 0, 0, 0, 0, 83,
84, 85, 86, 82, 88, 79, 0, 0, 0, 0,
0, 0, 89, 0, 90, 0, 0, 0, 0, 0,
0, 0, 87, 261, 0, 80, 81, 0, 0, 0,
0, 156, 156, 0, 0, 0, 0, 0, 0, 0,
0, 91, 54, 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,
263, 264, 0, 267, 0, 0, 0, 268, 269, 0,
57, 59, 60, 62, 61, 63, 72, 73, 74, 76,
75, 78, 77, 92, 93, 95, 96, 97, 99, 103,
104, 105, 106, 130, 129, 132, 131, 65, 64, 134,
135, 133, 140, 141, 139, 145, 0, 0, 0, 0,
0, 0, 0, 0, 155, 0, 0, 262, 0, 102,
288, 0, 107, 108, 109, 110, 111, 112, 113, 114,
115, 116, 117, 118, 119, 120, 121, 122, 123, 124,
125, 126, 127, 100, 0, 2, 3, 4, 5, 6,
7, 8, 9, 19, 20, 10, 11, 43, 12, 13,
14, 15, 16, 17, 18, 28, 29, 52, 21, 22,
23, 24, 25, 26, 49, 50, 27, 30, 31, 32,
33, 34, 35, 36, 53, 37, 38, 39, 40, 42,
41, 44, 45, 47, 46, 48, 51, 56, 58, 0,
0, 0, 94, 98, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 160, 0, 0, 0, 0,
0, 0, 0, 0, 0, 247, 0, 0, 221, 0,
0, 0, 0, 0, 225, 146, 157, 158, 162, 163,
194, 195, 178, 179, 199, 200, 196, 165, 166, 167,
168, 169, 170, 171, 172, 174, 175, 181, 182, 183,
184, 185, 186, 187, 188, 189, 190, 191, 176, 177,
197, 198, 180, 173, 192, 193, 147, 148, 258, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 299, 0, 0, 0, 0,
0, 0, 0, 0, 128, 287, 0, 285, 273, 101,
69, 66, 70, 67, 71, 68, 137, 138, 136, 143,
144, 142, 255, 257, 0, 228, 229, 0, 230, 231,
0, 232, 233, 0, 235, 234, 0, 0, 0, 0,
214, 0, 0, 0, 0, 215, 159, 201, 203, 204,
209, 210, 205, 206, 207, 208, 211, 236, 0, 253,
237, 0, 249, 0, 238, 239, 0, 240, 241, 0,
251, 252, 242, 243, 0, 244, 245, 0, 246, 0,
0, 293, 297, 0, 0, 292, 227, 0, 250, 223,
224, 0, 248, 0, 164, 161, 265, 270, 289, 290,
280, 149, 150, 151, 152, 153, 154, 286, 271, 254,
256, 330, 332, 0, 327, 325, 326, 0, 323, 317,
318, 0, 315, 0, 322, 321, 0, 319, 213, 219,
212, 216, 217, 218, 220, 202, 0, 0, 0, 0,
0, 0, 0, 259, 260, 0, 0, 0, 0, 0,
0, 0, 0, 226, 266, 275, 274, 272, 329, 331,
309, 328, 300, 324, 301, 316, 302, 303, 320, 304,
308, 305, 307, 306, 310, 311, 294, 295, 298, 312,
0, 291, 313, 314, 281, 284, 282, 276, 277, 279,
0, 0, 283, 278, 296, 222
};
/* YYDEFGOTO[NTERM-NUM]. */
static const yytype_int16 yydefgoto[] =
{
-1, 1, 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, 155, 275, 276, 277, 278,
279, 386, 387, 388, 389, 390, 391, 392, 393, 394,
395, 396, 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, 96, 314, 315, 97,
98, 99, 100, 101, 102, 103, 104, 448, 497, 105,
495, 527, 528, 533, 529, 106, 347, 107, 108, 424,
425, 109, 461, 462, 466, 467, 457, 458, 453, 454
};
/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
STATE-NUM. */
#define YYPACT_NINF -412
static const yytype_int16 yypact[] =
{
-412, 2, -412, 45, 200, 230, 109, 40, 108, -412,
-412, -412, -412, -412, -412, -412, -19, -14, 28, 59,
50, 71, -412, 299, -412, 153, 174, -5, 32, 82,
133, 87, -412, -412, 118, -412, -412, 160, 219, 248,
260, 263, 263, 227, 279, 312, 313, 315, 206, 316,
126, -412, -412, 213, 214, 215, 223, 224, 225, 226,
229, 234, 237, 239, 240, 242, 243, 244, 250, 251,
252, 253, 254, 256, 257, 258, 261, 264, 265, 266,
268, 269, 270, 272, 273, 274, 275, 277, 278, 280,
281, 282, 283, 284, 285, 286, 287, 288, 289, 290,
-412, -412, 291, -412, 292, 293, 294, -412, -412, 295,
338, 353, -412, -412, -412, -412, 330, 339, 341, -412,
-412, -412, -412, -412, 378, -412, -412, 390, -412, -412,
-412, -412, -412, -412, -412, -412, -412, -412, -412, 350,
355, 359, 364, 367, 384, -412, 166, 166, 166, 406,
391, 217, 407, 409, -412, 93, 94, -412, 410, -412,
44, 411, -412, -412, -412, -412, -412, -412, -412, -412,
-412, -412, -412, -412, -412, -412, -412, -412, -412, -412,
-412, -412, -412, -412, 412, -412, -412, -412, -412, -412,
-412, -412, -412, -412, -412, -412, -412, -412, -412, -412,
-412, -412, -412, -412, -412, -412, -412, -412, -412, -412,
-412, -412, -412, -412, -412, -412, -412, -412, -412, -412,
-412, -412, -412, -412, -412, -412, -412, -412, -412, -412,
-412, -412, -412, -412, -412, -412, -412, -412, -412, 177,
195, 276, -412, -412, 434, 435, 436, 437, 438, 439,
3, 185, 53, 69, 222, 54, 37, 419, 98, 142,
235, 245, 262, 246, 247, 344, 360, 361, -412, 4,
144, 423, 249, 348, 365, -412, -412, -412, 81, -412,
-412, -412, -412, -412, -412, -412, -412, -412, -412, -412,
-412, -412, -412, -412, -412, -412, -412, -412, -412, -412,
-412, -412, -412, -412, -412, -412, -412, -412, -412, -412,
-412, -412, -412, -412, -412, -412, -412, -412, -412, 444,
392, 393, 394, 395, 396, 397, 398, 399, 400, 401,
402, 403, 404, 405, 408, -412, 75, 462, 166, 166,
166, 166, 166, 166, -412, -412, 441, -412, -412, -412,
-412, -412, -412, -412, -412, -412, -412, -412, -412, -412,
-412, -412, 461, 463, 119, -412, -412, 307, -412, -412,
271, -412, -412, 271, -412, -412, 61, 446, 445, 447,
-412, 449, 450, 451, 452, -412, 54, -412, -412, -412,
-412, -412, -412, -412, -412, -412, -412, -412, 307, -412,
-412, 307, -412, 307, -412, -412, 307, -412, -412, 307,
-412, -412, -412, -412, 307, -412, -412, 307, -412, 474,
475, 212, 413, 307, 24, 414, -412, 307, -412, -412,
-412, 307, -412, 476, -412, 54, 473, -412, -412, -412,
-412, -412, -412, -412, -412, -412, -412, -412, 415, -412,
-412, 477, 478, -2, -412, -412, -412, 99, -412, -412,
-412, 38, -412, 66, -412, -412, 159, -412, -412, -412,
-412, -412, -412, -412, -412, -412, 127, 148, 157, 158,
173, 191, 204, -412, -412, 479, 480, 483, 205, 24,
24, 231, 236, -412, -412, 267, -412, -412, -412, -412,
-412, -412, -412, -412, -412, -412, -412, -412, -412, -412,
-412, -412, -412, -412, -412, -412, -412, 417, -412, -412,
24, -412, -412, -412, -412, -412, -412, -412, 416, -412,
484, 24, -412, -412, -412, -412
};
/* YYPGOTO[NTERM-NUM]. */
static const yytype_int16 yypgoto[] =
{
-412, -412, -412, -412, -412, -412, -412, -412, -412, -412,
-412, -412, -412, -412, -412, -412, -412, -412, -412, -412,
-412, -412, -412, -412, -412, -412, -412, -412, -412, -412,
-412, -412, -412, -412, -412, -412, -412, -412, -412, -412,
-412, -412, -412, -412, -412, 448, -147, -412, -412, -412,
203, 210, -353, -412, -412, -412, -412, -412, -412, -412,
-412, -412, -412, -412, -412, -412, -412, -412, -412, -412,
-412, -412, -412, -412, -412, -412, -412, -412, -412, -412,
-412, -412, -412, -412, -412, -412, -412, -412, -412, -412,
-412, -412, -412, -412, 340, -412, -412, -412, -412, -412,
-412, -412, -412, -412, -412, -412, -412, -412, -412, -412,
-412, -412, -412, -412, -412, -412, -412, -412, -412, -411,
-412, -412, 116, -221, -412, 26, -35, -127, -412, 42
};
/* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If
positive, shift that token. If negative, reduce the rule which
number is the opposite. If zero, do what YYDEFACT says.
If YYTABLE_NINF, syntax error. */
#define YYTABLE_NINF -1
static const yytype_uint16 yytable[] =
{
316, 317, 2, 451, 452, 123, 3, 421, 362, 363,
124, 4, 5, 489, 6, 7, 8, 9, 10, 11,
12, 13, 14, 15, 16, 17, 137, 421, 18, 19,
20, 21, 22, 475, 23, 125, 138, 139, 140, 24,
25, 26, 27, 119, 28, 29, 30, 345, 31, 459,
110, 111, 32, 422, 33, 34, 35, 36, 500, 37,
38, 397, 364, 423, 368, 120, 126, 377, 39, 460,
40, 41, 42, 422, 127, 43, 44, 459, 520, 521,
371, 141, 475, 346, 369, 250, 378, 142, 143, 251,
252, 253, 464, 45, 377, 128, 398, 460, 504, 437,
372, 146, 465, 46, 47, 48, 438, 338, 341, 531,
379, 121, 370, 378, 116, 117, 380, 381, 382, 383,
535, 254, 400, 455, 451, 452, 506, 49, 373, 50,
456, 144, 51, 122, 147, 52, 145, 379, 256, 257,
339, 342, 439, 380, 381, 382, 383, 258, 148, 259,
118, 455, 260, 261, 340, 343, 133, 401, 456, 502,
262, 263, 264, 265, 266, 267, 402, 268, 426, 149,
250, 269, 455, 270, 251, 252, 253, 135, 134, 456,
350, 455, 455, 271, 150, 384, 385, 509, 456, 456,
464, 441, 442, 443, 444, 445, 446, 455, 352, 136,
465, 403, 351, 427, 456, 272, 254, 273, 510, 365,
274, 112, 384, 385, 255, 455, 366, 511, 512, 507,
353, 320, 456, 256, 257, 321, 322, 323, 455, 455,
157, 113, 258, 513, 259, 456, 456, 260, 261, 162,
505, 114, 505, 151, 367, 262, 263, 264, 265, 266,
267, 514, 268, 374, 184, 455, 269, 324, 270, 404,
455, 115, 456, 375, 515, 519, 405, 456, 271, 407,
412, 415, 152, 429, 325, 257, 408, 413, 416, 354,
430, 376, 459, 326, 153, 327, 410, 154, 328, 329,
272, 522, 273, 411, 406, 274, 523, 330, 331, 485,
486, 355, 460, 158, 409, 414, 417, 332, 431, 333,
163, 164, 165, 166, 167, 168, 169, 170, 171, 172,
173, 174, 175, 176, 177, 178, 179, 180, 181, 182,
503, 455, 129, 130, 131, 132, 159, 160, 456, 161,
183, 334, 524, 525, 526, 237, 185, 186, 187, 503,
503, 503, 503, 503, 503, 503, 188, 189, 190, 191,
238, 503, 192, 476, 503, 503, 477, 193, 478, 239,
194, 479, 195, 196, 480, 197, 198, 199, 240, 481,
241, 242, 482, 200, 201, 202, 203, 204, 488, 205,
206, 207, 491, 243, 208, 244, 492, 209, 210, 211,
245, 212, 213, 214, 246, 215, 216, 217, 218, 247,
219, 220, 248, 221, 222, 223, 224, 225, 226, 227,
228, 229, 230, 231, 232, 233, 234, 235, 236, 249,
318, 336, 319, 337, 344, 348, 349, 356, 357, 358,
359, 360, 361, 399, 418, 419, 420, 428, 432, 436,
433, 364, 367, 370, 373, 376, 398, 401, 403, 406,
409, 414, 417, 423, 427, 440, 447, 431, 449, 469,
450, 468, 470, 471, 472, 473, 474, 483, 484, 493,
494, 434, 516, 517, 498, 499, 518, 534, 435, 463,
156, 335, 508, 496, 532, 501, 0, 0, 0, 0,
487, 0, 0, 490, 530
};
static const yytype_int16 yycheck[] =
{
147, 148, 0, 5, 6, 24, 4, 3, 5, 6,
24, 9, 10, 424, 12, 13, 14, 15, 16, 17,
18, 19, 20, 21, 22, 23, 31, 3, 26, 27,
28, 29, 30, 386, 32, 7, 41, 5, 6, 37,
38, 39, 40, 3, 42, 43, 44, 3, 46, 11,
5, 6, 50, 49, 52, 53, 54, 55, 60, 57,
58, 24, 59, 59, 11, 25, 7, 13, 66, 31,
68, 69, 70, 49, 24, 73, 74, 11, 489, 490,
11, 49, 435, 39, 31, 4, 32, 5, 6, 8,
9, 10, 31, 91, 13, 24, 59, 31, 60, 24,
31, 14, 41, 101, 102, 103, 31, 14, 14, 520,
56, 3, 59, 32, 5, 6, 62, 63, 64, 65,
531, 40, 24, 24, 5, 6, 60, 125, 59, 127,
31, 49, 130, 25, 47, 133, 3, 56, 57, 58,
47, 47, 67, 62, 63, 64, 65, 66, 61, 68,
41, 24, 71, 72, 61, 61, 3, 59, 31, 60,
79, 80, 81, 82, 83, 84, 24, 86, 24, 51,
4, 90, 24, 92, 8, 9, 10, 3, 25, 31,
3, 24, 24, 102, 24, 131, 132, 60, 31, 31,
31, 338, 339, 340, 341, 342, 343, 24, 3, 25,
41, 59, 25, 59, 31, 124, 40, 126, 60, 24,
129, 11, 131, 132, 48, 24, 31, 60, 60, 60,
25, 4, 31, 57, 58, 8, 9, 10, 24, 24,
3, 31, 66, 60, 68, 31, 31, 71, 72, 33,
461, 11, 463, 24, 59, 79, 80, 81, 82, 83,
84, 60, 86, 31, 128, 24, 90, 40, 92, 24,
24, 31, 31, 41, 60, 60, 31, 31, 102, 24,
24, 24, 24, 24, 57, 58, 31, 31, 31, 3,
31, 59, 11, 66, 24, 68, 24, 24, 71, 72,
124, 60, 126, 31, 59, 129, 60, 80, 81, 87,
88, 25, 31, 24, 59, 59, 59, 90, 59, 92,
104, 105, 106, 107, 108, 109, 110, 111, 112, 113,
114, 115, 116, 117, 118, 119, 120, 121, 122, 123,
457, 24, 33, 34, 35, 36, 24, 24, 31, 24,
24, 124, 75, 76, 77, 7, 133, 133, 133, 476,
477, 478, 479, 480, 481, 482, 133, 133, 133, 133,
7, 488, 133, 398, 491, 492, 401, 133, 403, 39,
133, 406, 133, 133, 409, 133, 133, 133, 39, 414,
39, 3, 417, 133, 133, 133, 133, 133, 423, 133,
133, 133, 427, 3, 133, 45, 431, 133, 133, 133,
45, 133, 133, 133, 45, 133, 133, 133, 133, 45,
133, 133, 45, 133, 133, 133, 133, 133, 133, 133,
133, 133, 133, 133, 133, 133, 133, 133, 133, 45,
24, 24, 41, 24, 24, 24, 24, 3, 3, 3,
3, 3, 3, 24, 100, 85, 85, 24, 100, 5,
85, 59, 59, 59, 59, 59, 59, 59, 59, 59,
59, 59, 59, 59, 59, 3, 25, 59, 7, 24,
7, 25, 25, 24, 24, 24, 24, 3, 3, 3,
7, 278, 3, 3, 7, 7, 3, 3, 278, 373,
42, 151, 466, 78, 78, 453, -1, -1, -1, -1,
87, -1, -1, 89, 87
};
/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
symbol of state STATE-NUM. */
static const yytype_uint16 yystos[] =
{
0, 135, 0, 4, 9, 10, 12, 13, 14, 15,
16, 17, 18, 19, 20, 21, 22, 23, 26, 27,
28, 29, 30, 32, 37, 38, 39, 40, 42, 43,
44, 46, 50, 52, 53, 54, 55, 57, 58, 66,
68, 69, 70, 73, 74, 91, 101, 102, 103, 125,
127, 130, 133, 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, 230, 233, 234, 235,
236, 237, 238, 239, 240, 243, 249, 251, 252, 255,
5, 6, 11, 31, 11, 31, 5, 6, 41, 3,
25, 3, 25, 24, 24, 7, 7, 24, 24, 33,
34, 35, 36, 3, 25, 3, 25, 31, 41, 5,
6, 49, 5, 6, 49, 3, 14, 47, 61, 51,
24, 24, 24, 24, 24, 179, 179, 3, 24, 24,
24, 24, 33, 104, 105, 106, 107, 108, 109, 110,
111, 112, 113, 114, 115, 116, 117, 118, 119, 120,
121, 122, 123, 24, 128, 133, 133, 133, 133, 133,
133, 133, 133, 133, 133, 133, 133, 133, 133, 133,
133, 133, 133, 133, 133, 133, 133, 133, 133, 133,
133, 133, 133, 133, 133, 133, 133, 133, 133, 133,
133, 133, 133, 133, 133, 133, 133, 133, 133, 133,
133, 133, 133, 133, 133, 133, 133, 7, 7, 39,
39, 39, 3, 3, 45, 45, 45, 45, 45, 45,
4, 8, 9, 10, 40, 48, 57, 58, 66, 68,
71, 72, 79, 80, 81, 82, 83, 84, 86, 90,
92, 102, 124, 126, 129, 180, 181, 182, 183, 184,
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, 231, 232, 180, 180, 24, 41,
4, 8, 9, 10, 40, 57, 66, 68, 71, 72,
80, 81, 90, 92, 124, 228, 24, 24, 14, 47,
61, 14, 47, 61, 24, 3, 39, 250, 24, 24,
3, 25, 3, 25, 3, 25, 3, 3, 3, 3,
3, 3, 5, 6, 59, 24, 31, 59, 11, 31,
59, 11, 31, 59, 31, 41, 59, 13, 32, 56,
62, 63, 64, 65, 131, 132, 185, 186, 187, 188,
189, 190, 191, 192, 193, 194, 195, 24, 59, 24,
24, 59, 24, 59, 24, 31, 59, 24, 31, 59,
24, 31, 24, 31, 59, 24, 31, 59, 100, 85,
85, 3, 49, 59, 253, 254, 24, 59, 24, 24,
31, 59, 100, 85, 184, 185, 5, 24, 31, 67,
3, 180, 180, 180, 180, 180, 180, 25, 241, 7,
7, 5, 6, 262, 263, 24, 31, 260, 261, 11,
31, 256, 257, 256, 31, 41, 258, 259, 25, 24,
25, 24, 24, 24, 24, 186, 260, 260, 260, 260,
260, 260, 260, 3, 3, 87, 88, 87, 260, 253,
89, 260, 260, 3, 7, 244, 78, 242, 7, 7,
60, 263, 60, 261, 60, 257, 60, 60, 259, 60,
60, 60, 60, 60, 60, 60, 3, 3, 3, 60,
253, 253, 60, 60, 75, 76, 77, 245, 246, 248,
87, 253, 78, 247, 3, 253
};
#define yyerrok (yyerrstatus = 0)
#define yyclearin (yychar = YYEMPTY)
#define YYEMPTY (-2)
#define YYEOF 0
#define YYACCEPT goto yyacceptlab
#define YYABORT goto yyabortlab
#define YYERROR goto yyerrorlab
/* Like YYERROR except do call yyerror. This remains here temporarily
to ease the transition to the new meaning of YYERROR, for GCC.
Once GCC version 2 has supplanted version 1, this can go. */
#define YYFAIL goto yyerrlab
#define YYRECOVERING() (!!yyerrstatus)
#define YYBACKUP(Token, Value) \
do \
if (yychar == YYEMPTY && yylen == 1) \
{ \
yychar = (Token); \
yylval = (Value); \
yytoken = YYTRANSLATE (yychar); \
YYPOPSTACK (1); \
goto yybackup; \
} \
else \
{ \
yyerror (YY_("syntax error: cannot back up")); \
YYERROR; \
} \
while (YYID (0))
#define YYTERROR 1
#define YYERRCODE 256
/* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N].
If N is 0, then set CURRENT to the empty location which ends
the previous symbol: RHS[0] (always defined). */
#define YYRHSLOC(Rhs, K) ((Rhs)[K])
#ifndef YYLLOC_DEFAULT
# define YYLLOC_DEFAULT(Current, Rhs, N) \
do \
if (YYID (N)) \
{ \
(Current).first_line = YYRHSLOC (Rhs, 1).first_line; \
(Current).first_column = YYRHSLOC (Rhs, 1).first_column; \
(Current).last_line = YYRHSLOC (Rhs, N).last_line; \
(Current).last_column = YYRHSLOC (Rhs, N).last_column; \
} \
else \
{ \
(Current).first_line = (Current).last_line = \
YYRHSLOC (Rhs, 0).last_line; \
(Current).first_column = (Current).last_column = \
YYRHSLOC (Rhs, 0).last_column; \
} \
while (YYID (0))
#endif
/* YY_LOCATION_PRINT -- Print the location on the stream.
This macro was not mandated originally: define only if we know
we won't break user code: when these are the locations we know. */
#ifndef YY_LOCATION_PRINT
# if YYLTYPE_IS_TRIVIAL
# define YY_LOCATION_PRINT(File, Loc) \
fprintf (File, "%d.%d-%d.%d", \
(Loc).first_line, (Loc).first_column, \
(Loc).last_line, (Loc).last_column)
# else
# define YY_LOCATION_PRINT(File, Loc) ((void) 0)
# endif
#endif
/* YYLEX -- calling `yylex' with the right arguments. */
#ifdef YYLEX_PARAM
# define YYLEX yylex (YYLEX_PARAM)
#else
# define YYLEX yylex ()
#endif
/* Enable debugging if requested. */
#if YYDEBUG
# ifndef YYFPRINTF
# include <stdio.h> /* INFRINGES ON USER NAME SPACE */
# define YYFPRINTF fprintf
# endif
# define YYDPRINTF(Args) \
do { \
if (yydebug) \
YYFPRINTF Args; \
} while (YYID (0))
# define YY_SYMBOL_PRINT(Title, Type, Value, Location) \
do { \
if (yydebug) \
{ \
YYFPRINTF (stderr, "%s ", Title);
\
yy_symbol_print (stderr, \
Type, Value); \
YYFPRINTF (stderr, "\n");
\
} \
} while (YYID (0))
/*--------------------------------.
| Print this symbol on YYOUTPUT. |
`--------------------------------*/
/*ARGSUSED*/
#if (defined __STDC__ || defined __C99__FUNC__ \
|| defined __cplusplus || defined _MSC_VER)
static void
yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const
yyvaluep)
#else
static void
yy_symbol_value_print (yyoutput, yytype, yyvaluep)
FILE *yyoutput;
int yytype;
YYSTYPE const * const yyvaluep;
#endif
{
if (!yyvaluep)
return;
# ifdef YYPRINT
if (yytype < YYNTOKENS)
YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
# else
YYUSE (yyoutput);
# endif
switch (yytype)
{
default:
break;
}
}
/*--------------------------------.
| Print this symbol on YYOUTPUT. |
`--------------------------------*/
#if (defined __STDC__ || defined __C99__FUNC__ \
|| defined __cplusplus || defined _MSC_VER)
static void
yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep)
#else
static void
yy_symbol_print (yyoutput, yytype, yyvaluep)
FILE *yyoutput;
int yytype;
YYSTYPE const * const yyvaluep;
#endif
{
if (yytype < YYNTOKENS)
YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
else
YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);
yy_symbol_value_print (yyoutput, yytype, yyvaluep);
YYFPRINTF (yyoutput, ")");
}
/*------------------------------------------------------------------.
| yy_stack_print -- Print the state stack from its BOTTOM up to its |
| TOP (included). |
`------------------------------------------------------------------*/
#if (defined __STDC__ || defined __C99__FUNC__ \
|| defined __cplusplus || defined _MSC_VER)
static void
yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop)
#else
static void
yy_stack_print (yybottom, yytop)
yytype_int16 *yybottom;
yytype_int16 *yytop;
#endif
{
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 (YYID (0))
/*------------------------------------------------.
| Report that the YYRULE is going to be reduced. |
`------------------------------------------------*/
#if (defined __STDC__ || defined __C99__FUNC__ \
|| defined __cplusplus || defined _MSC_VER)
static void
yy_reduce_print (YYSTYPE *yyvsp, int yyrule)
#else
static void
yy_reduce_print (yyvsp, yyrule)
YYSTYPE *yyvsp;
int yyrule;
#endif
{
int yynrhs = yyr2[yyrule];
int yyi;
unsigned long int yylno = yyrline[yyrule];
YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n",
yyrule - 1, yylno);
/* The symbols being reduced. */
for (yyi = 0; yyi < yynrhs; yyi++)
{
YYFPRINTF (stderr, " $%d = ", yyi + 1);
yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi],
&(yyvsp[(yyi + 1) - (yynrhs)])
);
YYFPRINTF (stderr, "\n");
}
}
# define YY_REDUCE_PRINT(Rule) \
do { \
if (yydebug) \
yy_reduce_print (yyvsp, Rule); \
} while (YYID (0))
/* Nonzero means print parse trace. It is left uninitialized so that
multiple parsers can coexist. */
int yydebug;
#else /* !YYDEBUG */
# define YYDPRINTF(Args)
# define YY_SYMBOL_PRINT(Title, Type, 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
#if YYERROR_VERBOSE
# ifndef yystrlen
# if defined __GLIBC__ && defined _STRING_H
# define yystrlen strlen
# else
/* Return the length of YYSTR. */
#if (defined __STDC__ || defined __C99__FUNC__ \
|| defined __cplusplus || defined _MSC_VER)
static YYSIZE_T
yystrlen (const char *yystr)
#else
static YYSIZE_T
yystrlen (yystr)
const char *yystr;
#endif
{
YYSIZE_T yylen;
for (yylen = 0; yystr[yylen]; yylen++)
continue;
return yylen;
}
# endif
# endif
# ifndef yystpcpy
# if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE
# define yystpcpy stpcpy
# else
/* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
YYDEST. */
#if (defined __STDC__ || defined __C99__FUNC__ \
|| defined __cplusplus || defined _MSC_VER)
static char *
yystpcpy (char *yydest, const char *yysrc)
#else
static char *
yystpcpy (yydest, yysrc)
char *yydest;
const char *yysrc;
#endif
{
char *yyd = yydest;
const char *yys = yysrc;
while ((*yyd++ = *yys++) != '\0')
continue;
return yyd - 1;
}
# endif
# endif
# ifndef yytnamerr
/* Copy to YYRES the contents of YYSTR after stripping away unnecessary
quotes and backslashes, so that it's suitable for yyerror. The
heuristic is that double-quoting is unnecessary unless the string
contains an apostrophe, a comma, or backslash (other than
backslash-backslash). YYSTR is taken from yytname. If YYRES is
null, do not copy; instead, return the length of what the result
would have been. */
static YYSIZE_T
yytnamerr (char *yyres, const char *yystr)
{
if (*yystr == '"')
{
YYSIZE_T yyn = 0;
char const *yyp = yystr;
for (;;)
switch (*++yyp)
{
case '\'':
case ',':
goto do_not_strip_quotes;
case '\\':
if (*++yyp != '\\')
goto do_not_strip_quotes;
/* Fall through. */
default:
if (yyres)
yyres[yyn] = *yyp;
yyn++;
break;
case '"':
if (yyres)
yyres[yyn] = '\0';
return yyn;
}
do_not_strip_quotes: ;
}
if (! yyres)
return yystrlen (yystr);
return yystpcpy (yyres, yystr) - yyres;
}
# endif
/* Copy into YYRESULT an error message about the unexpected token
YYCHAR while in state YYSTATE. Return the number of bytes copied,
including the terminating null byte. If YYRESULT is null, do not
copy anything; just return the number of bytes that would be
copied. As a special case, return 0 if an ordinary "syntax error"
message will do. Return YYSIZE_MAXIMUM if overflow occurs during
size calculation. */
static YYSIZE_T
yysyntax_error (char *yyresult, int yystate, int yychar)
{
int yyn = yypact[yystate];
if (! (YYPACT_NINF < yyn && yyn <= YYLAST))
return 0;
else
{
int yytype = YYTRANSLATE (yychar);
YYSIZE_T yysize0 = yytnamerr (0, yytname[yytype]);
YYSIZE_T yysize = yysize0;
YYSIZE_T yysize1;
int yysize_overflow = 0;
enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
int yyx;
# if 0
/* This is so xgettext sees the translatable formats that are
constructed on the fly. */
YY_("syntax error, unexpected %s");
YY_("syntax error, unexpected %s, expecting %s");
YY_("syntax error, unexpected %s, expecting %s or %s");
YY_("syntax error, unexpected %s, expecting %s or %s or %s");
YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s");
# endif
char *yyfmt;
char const *yyf;
static char const yyunexpected[] = "syntax error, unexpected %s";
static char const yyexpecting[] = ", expecting %s";
static char const yyor[] = " or %s";
char yyformat[sizeof yyunexpected
+ sizeof yyexpecting - 1
+ ((YYERROR_VERBOSE_ARGS_MAXIMUM - 2)
* (sizeof yyor - 1))];
char const *yyprefix = yyexpecting;
/* Start YYX at -YYN if negative to avoid negative indexes in
YYCHECK. */
int yyxbegin = yyn < 0 ? -yyn : 0;
/* Stay within bounds of both yycheck and yytname. */
int yychecklim = YYLAST - yyn + 1;
int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
int yycount = 1;
yyarg[0] = yytname[yytype];
yyfmt = yystpcpy (yyformat, yyunexpected);
for (yyx = yyxbegin; yyx < yyxend; ++yyx)
if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
{
if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
{
yycount = 1;
yysize = yysize0;
yyformat[sizeof yyunexpected - 1] = '\0';
break;
}
yyarg[yycount++] = yytname[yyx];
yysize1 = yysize + yytnamerr (0, yytname[yyx]);
yysize_overflow |= (yysize1 < yysize);
yysize = yysize1;
yyfmt = yystpcpy (yyfmt, yyprefix);
yyprefix = yyor;
}
yyf = YY_(yyformat);
yysize1 = yysize + yystrlen (yyf);
yysize_overflow |= (yysize1 < yysize);
yysize = yysize1;
if (yysize_overflow)
return YYSIZE_MAXIMUM;
if (yyresult)
{
/* Avoid sprintf, as that infringes on the user's name space.
Don't have undefined behavior even if the translation
produced a string with the wrong number of "%s"s. */
char *yyp = yyresult;
int yyi = 0;
while ((*yyp = *yyf) != '\0')
{
if (*yyp == '%' && yyf[1] == 's' && yyi < yycount)
{
yyp += yytnamerr (yyp, yyarg[yyi++]);
yyf += 2;
}
else
{
yyp++;
yyf++;
}
}
}
return yysize;
}
}
#endif /* YYERROR_VERBOSE */
/*-----------------------------------------------.
| Release the memory associated to this symbol. |
`-----------------------------------------------*/
/*ARGSUSED*/
#if (defined __STDC__ || defined __C99__FUNC__ \
|| defined __cplusplus || defined _MSC_VER)
static void
yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep)
#else
static void
yydestruct (yymsg, yytype, yyvaluep)
const char *yymsg;
int yytype;
YYSTYPE *yyvaluep;
#endif
{
YYUSE (yyvaluep);
if (!yymsg)
yymsg = "Deleting";
YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);
switch (yytype)
{
default:
break;
}
}
/* Prevent warnings from -Wmissing-prototypes. */
#ifdef YYPARSE_PARAM
#if defined __STDC__ || defined __cplusplus
int yyparse (void *YYPARSE_PARAM);
#else
int yyparse ();
#endif
#else /* ! YYPARSE_PARAM */
#if defined __STDC__ || defined __cplusplus
int yyparse (void);
#else
int yyparse ();
#endif
#endif /* ! YYPARSE_PARAM */
/* The lookahead symbol. */
int yychar;
/* The semantic value of the lookahead symbol. */
YYSTYPE yylval;
/* Number of syntax errors so far. */
int yynerrs;
/*-------------------------.
| yyparse or yypush_parse. |
`-------------------------*/
#ifdef YYPARSE_PARAM
#if (defined __STDC__ || defined __C99__FUNC__ \
|| defined __cplusplus || defined _MSC_VER)
int
yyparse (void *YYPARSE_PARAM)
#else
int
yyparse (YYPARSE_PARAM)
void *YYPARSE_PARAM;
#endif
#else /* ! YYPARSE_PARAM */
#if (defined __STDC__ || defined __C99__FUNC__ \
|| defined __cplusplus || defined _MSC_VER)
int
yyparse (void)
#else
int
yyparse ()
#endif
#endif
{
int yystate;
/* Number of tokens to shift before error messages enabled. */
int yyerrstatus;
/* The stacks and their tools:
`yyss': related to states.
`yyvs': related to semantic values.
Refer to the stacks thru separate pointers, to allow yyoverflow
to reallocate them elsewhere. */
/* The state stack. */
yytype_int16 yyssa[YYINITDEPTH];
yytype_int16 *yyss;
yytype_int16 *yyssp;
/* The semantic value stack. */
YYSTYPE yyvsa[YYINITDEPTH];
YYSTYPE *yyvs;
YYSTYPE *yyvsp;
YYSIZE_T yystacksize;
int yyn;
int yyresult;
/* Lookahead token as an internal (translated) token number. */
int yytoken;
/* The variables used to return semantic value and location from the
action routines. */
YYSTYPE yyval;
#if YYERROR_VERBOSE
/* Buffer for error messages, and its allocated size. */
char yymsgbuf[128];
char *yymsg = yymsgbuf;
YYSIZE_T yymsg_alloc = sizeof yymsgbuf;
#endif
#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;
yytoken = 0;
yyss = yyssa;
yyvs = yyvsa;
yystacksize = YYINITDEPTH;
YYDPRINTF ((stderr, "Starting parse\n"));
yystate = 0;
yyerrstatus = 0;
yynerrs = 0;
yychar = YYEMPTY; /* Cause a token to be read. */
/* Initialize stack pointers.
Waste one element of value and location stack
so that they stay on the same level as the state stack.
The wasted elements are never initialized. */
yyssp = yyss;
yyvsp = yyvs;
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:
*yyssp = yystate;
if (yyss + yystacksize - 1 <= yyssp)
{
/* Get the current used size of the three stacks, in elements. */
YYSIZE_T yysize = yyssp - yyss + 1;
#ifdef 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. */
YYSTYPE *yyvs1 = yyvs;
yytype_int16 *yyss1 = yyss;
/* 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 * sizeof (*yyssp),
&yyvs1, yysize * sizeof (*yyvsp),
&yystacksize);
yyss = yyss1;
yyvs = yyvs1;
}
#else /* no yyoverflow */
# ifndef YYSTACK_RELOCATE
goto yyexhaustedlab;
# else
/* Extend the stack our own way. */
if (YYMAXDEPTH <= yystacksize)
goto yyexhaustedlab;
yystacksize *= 2;
if (YYMAXDEPTH < yystacksize)
yystacksize = YYMAXDEPTH;
{
yytype_int16 *yyss1 = yyss;
union yyalloc *yyptr =
(union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
if (! yyptr)
goto yyexhaustedlab;
YYSTACK_RELOCATE (yyss_alloc, yyss);
YYSTACK_RELOCATE (yyvs_alloc, yyvs);
# undef YYSTACK_RELOCATE
if (yyss1 != yyssa)
YYSTACK_FREE (yyss1);
}
# endif
#endif /* no yyoverflow */
yyssp = yyss + yysize - 1;
yyvsp = yyvs + yysize - 1;
YYDPRINTF ((stderr, "Stack size increased to %lu\n",
(unsigned long int) yystacksize));
if (yyss + yystacksize - 1 <= yyssp)
YYABORT;
}
YYDPRINTF ((stderr, "Entering state %d\n", yystate));
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 (yyn == YYPACT_NINF)
goto yydefault;
/* Not known => get a lookahead token if don't already have one. */
/* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */
if (yychar == YYEMPTY)
{
YYDPRINTF ((stderr, "Reading a token: "));
yychar = YYLEX;
}
if (yychar <= YYEOF)
{
yychar = yytoken = YYEOF;
YYDPRINTF ((stderr, "Now at end of input.\n"));
}
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 (yyn == 0 || yyn == YYTABLE_NINF)
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);
/* Discard the shifted token. */
yychar = YYEMPTY;
yystate = yyn;
*++yyvsp = yylval;
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 56:
/* Line 1455 of yacc.c */
#line 169 "conf_yacc.y"
{
struct acl_netblock_data and;
and.addr = SA(&(yyvsp[(2) - (3)].ipaddr));
and.salen = sizeof(struct sockaddr_in);
and.cidr = (yyvsp[(3) - (3)].cidr);
acl_add_clause(AC_NETBLOCK, &and);
acl_register_entry_first(AS_RCPT, A_WHITELIST);
}
break;
case 57:
/* Line 1455 of yacc.c */
#line 179 "conf_yacc.y"
{
struct acl_netblock_data and;
and.addr = SA(&(yyvsp[(2) - (2)].ipaddr));
and.salen = sizeof(struct sockaddr_in);
and.cidr = 32;
acl_add_clause(AC_NETBLOCK, &and);
acl_register_entry_first(AS_RCPT, A_WHITELIST);
}
break;
case 58:
/* Line 1455 of yacc.c */
#line 189 "conf_yacc.y"
{
#ifdef AF_INET6
struct acl_netblock_data and;
and.addr = SA(&(yyvsp[(2) - (3)].ip6addr));
and.salen = sizeof(struct sockaddr_in6);
and.cidr = (yyvsp[(3) - (3)].cidr);
acl_add_clause(AC_NETBLOCK, &and);
acl_register_entry_first(AS_RCPT, A_WHITELIST);
#else
acl_drop();
mg_log(LOG_INFO,
"IPv6 is not supported, ignore line %d",
conf_line);
#endif
}
break;
case 59:
/* Line 1455 of yacc.c */
#line 206 "conf_yacc.y"
{
#ifdef AF_INET6
struct acl_netblock_data and;
and.addr = SA(&(yyvsp[(2) - (2)].ip6addr));
and.salen = sizeof(struct sockaddr_in6);
and.cidr = 128;
acl_add_clause(AC_NETBLOCK, &and);
acl_register_entry_first(AS_RCPT, A_WHITELIST);
#else
acl_drop();
mg_log(LOG_INFO,
"IPv6 is not supported, ignore line %d",
conf_line);
#endif
}
break;
case 60:
/* Line 1455 of yacc.c */
#line 224 "conf_yacc.y"
{
acl_add_clause(AC_FROM, (yyvsp[(2) - (2)].email));
acl_register_entry_first(AS_RCPT, A_WHITELIST);
}
break;
case 61:
/* Line 1455 of yacc.c */
#line 229 "conf_yacc.y"
{
acl_add_clause(AC_RCPT, (yyvsp[(2) - (2)].email));
if (conf.c_testmode)
acl_register_entry_first(AS_RCPT, A_GREYLIST);
else
acl_register_entry_first(AS_RCPT, A_WHITELIST);
}
break;
case 62:
/* Line 1455 of yacc.c */
#line 238 "conf_yacc.y"
{
acl_add_clause(AC_FROM_RE, (yyvsp[(2) - (2)].regex));
acl_register_entry_first(AS_RCPT, A_WHITELIST);
}
break;
case 63:
/* Line 1455 of yacc.c */
#line 243 "conf_yacc.y"
{
acl_add_clause(AC_RCPT_RE, (yyvsp[(2) - (2)].regex));
if (conf.c_testmode)
acl_register_entry_first(AS_RCPT, A_GREYLIST);
else
acl_register_entry_first(AS_RCPT, A_WHITELIST);
}
break;
case 64:
/* Line 1455 of yacc.c */
#line 251 "conf_yacc.y"
{
acl_add_clause(AC_DOMAIN, (yyvsp[(2) -
(2)].domainname));
acl_register_entry_first(AS_RCPT, A_WHITELIST);
}
break;
case 65:
/* Line 1455 of yacc.c */
#line 256 "conf_yacc.y"
{
acl_add_clause(AC_DOMAIN_RE, (yyvsp[(2) - (2)].regex));
acl_register_entry_first(AS_RCPT, A_WHITELIST);
}
break;
case 66:
/* Line 1455 of yacc.c */
#line 261 "conf_yacc.y"
{
char addr[IPADDRSTRLEN];
if (IP4TOSTRING((yyvsp[(2) - (4)].ipaddr), addr) ==
NULL) {
mg_log(LOG_ERR,
"invalid IPv4 address line %d",
conf_line);
exit(EX_DATAERR);
}
peer_add(addr, (time_t)humanized_atoi((yyvsp[(4) -
(4)].delay)));
}
break;
case 67:
/* Line 1455 of yacc.c */
#line 272 "conf_yacc.y"
{
#ifdef AF_INET6
char addr[IPADDRSTRLEN];
if (IP6TOSTRING((yyvsp[(2) - (4)].ip6addr), addr) ==
NULL) {
mg_log(LOG_ERR,
"invalid IPv6 address line %d",
conf_line);
exit(EX_DATAERR);
}
peer_add(addr, (time_t)humanized_atoi((yyvsp[(4) -
(4)].delay)));
#else
mg_log(LOG_INFO,
"IPv6 is not supported, ignore line %d",
conf_line);
#endif
}
break;
case 68:
/* Line 1455 of yacc.c */
#line 289 "conf_yacc.y"
{
#ifdef HAVE_GETADDRINFO
peer_add((yyvsp[(2) - (4)].domainname),
(time_t)humanized_atoi((yyvsp[(4) - (4)].delay)));
#else
mg_log(LOG_INFO,
"FQDN in peer is not supported, "
"ignore line %d", conf_line);
#endif
}
break;
case 69:
/* Line 1455 of yacc.c */
#line 298 "conf_yacc.y"
{
char addr[IPADDRSTRLEN];
if (IP4TOSTRING((yyvsp[(2) - (4)].ipaddr), addr) ==
NULL) {
mg_log(LOG_ERR,
"invalid IPv4 address line %d",
conf_line);
exit(EX_DATAERR);
}
peer_add(addr, (time_t)humanized_atoi((yyvsp[(4) -
(4)].delay)));
}
break;
case 70:
/* Line 1455 of yacc.c */
#line 309 "conf_yacc.y"
{
#ifdef AF_INET6
char addr[IPADDRSTRLEN];
if (IP6TOSTRING((yyvsp[(2) - (4)].ip6addr), addr) ==
NULL) {
mg_log(LOG_ERR,
"invalid IPv6 address line %d",
conf_line);
exit(EX_DATAERR);
}
peer_add(addr, (time_t)humanized_atoi((yyvsp[(4) -
(4)].delay)));
#else
mg_log(LOG_INFO,
"IPv6 is not supported, ignore line %d",
conf_line);
#endif
}
break;
case 71:
/* Line 1455 of yacc.c */
#line 326 "conf_yacc.y"
{
#ifdef HAVE_GETADDRINFO
peer_add((yyvsp[(2) - (4)].domainname),
(time_t)humanized_atoi((yyvsp[(4) - (4)].delay)));
#else
mg_log(LOG_INFO,
"FQDN in peer is not supported, "
"ignore line %d", conf_line);
#endif
}
break;
case 72:
/* Line 1455 of yacc.c */
#line 335 "conf_yacc.y"
{
char addr[IPADDRSTRLEN];
if (IP4TOSTRING((yyvsp[(2) - (2)].ipaddr), addr) ==
NULL) {
mg_log(LOG_ERR,
"invalid IPv4 address line %d",
conf_line);
exit(EX_DATAERR);
}
peer_add(addr, (time_t)COM_TIMEOUT);
}
break;
case 73:
/* Line 1455 of yacc.c */
#line 346 "conf_yacc.y"
{
#ifdef AF_INET6
char addr[IPADDRSTRLEN];
if (IP6TOSTRING((yyvsp[(2) - (2)].ip6addr), addr) ==
NULL) {
mg_log(LOG_ERR,
"invalid IPv6 address line %d",
conf_line);
exit(EX_DATAERR);
}
peer_add(addr, (time_t)COM_TIMEOUT);
#else
mg_log(LOG_INFO,
"IPv6 is not supported, ignore line %d",
conf_line);
#endif
}
break;
case 74:
/* Line 1455 of yacc.c */
#line 363 "conf_yacc.y"
{
#ifdef HAVE_GETADDRINFO
peer_add((yyvsp[(2) - (2)].domainname),
(time_t)COM_TIMEOUT);
#else
mg_log(LOG_INFO,
"FQDN in peer is not supported, "
"ignore line %d", conf_line);
#endif
}
break;
case 75:
/* Line 1455 of yacc.c */
#line 373 "conf_yacc.y"
{ if (C_NOTFORCED(C_AUTOWHITE))
conf.c_autowhite_validity =
(time_t)humanized_atoi((yyvsp[(2) -
(2)].delay));
}
break;
case 76:
/* Line 1455 of yacc.c */
#line 377 "conf_yacc.y"
{ if (C_NOTFORCED(C_AUTOWHITE))
conf.c_autowhite_validity =
(time_t)humanized_atoi((yyvsp[(2) -
(2)].delay));
}
break;
case 77:
/* Line 1455 of yacc.c */
#line 382 "conf_yacc.y"
{ if (C_NOTFORCED(C_DELAY))
conf.c_delay =
(time_t)humanized_atoi((yyvsp[(2) -
(2)].delay));
}
break;
case 78:
/* Line 1455 of yacc.c */
#line 386 "conf_yacc.y"
{ if (C_NOTFORCED(C_DELAY))
conf.c_delay =
(time_t)humanized_atoi((yyvsp[(2) -
(2)].delay));
}
break;
case 79:
/* Line 1455 of yacc.c */
#line 391 "conf_yacc.y"
{ if (C_NOTFORCED(C_DEBUG)) conf.c_debug = 1; }
break;
case 80:
/* Line 1455 of yacc.c */
#line 393 "conf_yacc.y"
{ conf.c_dump_no_time_translation = 1; }
break;
case 81:
/* Line 1455 of yacc.c */
#line 395 "conf_yacc.y"
{ conf.c_logexpired = 1; }
break;
case 82:
/* Line 1455 of yacc.c */
#line 397 "conf_yacc.y"
{ if (C_NOTFORCED(C_QUIET)) conf.c_quiet = 1; }
break;
case 83:
/* Line 1455 of yacc.c */
#line 399 "conf_yacc.y"
{ if (C_NOTFORCED(C_NOAUTH)) conf.c_noauth = 1; }
break;
case 84:
/* Line 1455 of yacc.c */
#line 401 "conf_yacc.y"
{ conf.c_noaccessdb = 1; }
break;
case 85:
/* Line 1455 of yacc.c */
#line 403 "conf_yacc.y"
{ conf.c_extendedregex = 1; }
break;
case 86:
/* Line 1455 of yacc.c */
#line 405 "conf_yacc.y"
{ if (C_NOTFORCED(C_NOSPF)) conf.c_nospf = 1; }
break;
case 87:
/* Line 1455 of yacc.c */
#line 407 "conf_yacc.y"
{ conf.c_delayedreject = 1; }
break;
case 88:
/* Line 1455 of yacc.c */
#line 409 "conf_yacc.y"
{ if (C_NOTFORCED(C_TESTMODE)) conf.c_testmode = 1; }
break;
case 89:
/* Line 1455 of yacc.c */
#line 411 "conf_yacc.y"
{ if (C_NOTFORCED(C_NODETACH)) conf.c_nodetach = 1; }
break;
case 90:
/* Line 1455 of yacc.c */
#line 413 "conf_yacc.y"
{ if (C_NOTFORCED(C_LAZYAW)) conf.c_lazyaw = 1; }
break;
case 91:
/* Line 1455 of yacc.c */
#line 415 "conf_yacc.y"
{ if (C_NOTFORCED(C_DOMAINEXACT))
conf.c_domainexact = 1;
}
break;
case 92:
/* Line 1455 of yacc.c */
#line 419 "conf_yacc.y"
{ if (C_NOTFORCED(C_PIDFILE))
conf.c_pidfile =
quotepath(conf.c_pidfile_storage,
(yyvsp[(2) - (2)].qstring),
QSTRLEN);
}
break;
case 93:
/* Line 1455 of yacc.c */
#line 425 "conf_yacc.y"
{ if (C_NOTFORCED(C_DUMPFILE))
conf.c_dumpfile =
quotepath(conf.c_dumpfile_storage,
(yyvsp[(2) - (2)].qstring),
QSTRLEN);
}
break;
case 94:
/* Line 1455 of yacc.c */
#line 430 "conf_yacc.y"
{
if (C_NOTFORCED(C_SOCKET))
conf.c_dumpfile =
quotepath(conf.c_dumpfile_storage,
(yyvsp[(2) - (3)].qstring),
QSTRLEN);
conf.c_dumpfile_mode = (int)strtol((yyvsp[(3) -
(3)].delay), NULL, 8);
}
break;
case 95:
/* Line 1455 of yacc.c */
#line 439 "conf_yacc.y"
{ if (C_NOTFORCED(C_MATCHMASK))
prefix2mask4((yyvsp[(2) - (2)].cidr),
&conf.c_match_mask);
}
break;
case 96:
/* Line 1455 of yacc.c */
#line 443 "conf_yacc.y"
{
#ifdef AF_INET6
if (C_NOTFORCED(C_MATCHMASK6))
prefix2mask6((yyvsp[(2) - (2)].cidr),
&conf.c_match_mask6);
#else
mg_log(LOG_INFO, "IPv6 is not supported, "
"ignore line %d", conf_line);
#endif
}
break;
case 97:
/* Line 1455 of yacc.c */
#line 453 "conf_yacc.y"
{ if (C_NOTFORCED(C_SOCKET))
conf.c_socket =
quotepath(conf.c_socket_storage,
(yyvsp[(2) - (2)].qstring),
QSTRLEN);
}
break;
case 98:
/* Line 1455 of yacc.c */
#line 458 "conf_yacc.y"
{
int mode = atoi((yyvsp[(3) - (3)].delay));
if (C_NOTFORCED(C_SOCKET))
conf.c_socket =
quotepath(conf.c_socket_storage,
(yyvsp[(2) - (3)].qstring),
QSTRLEN);
switch(mode) {
case 666:
case 660:
case 600:
conf.c_socket_mode = mode;
break;
default:
mg_log(LOG_ERR, "socket mode %d is "
"not allowed, Use either 666, "
"660, or 600", mode);
exit(EX_DATAERR);
}
}
break;
case 99:
/* Line 1455 of yacc.c */
#line 480 "conf_yacc.y"
{ if (C_NOTFORCED(C_USER))
conf.c_user =
quotepath(conf.c_user_storage,
(yyvsp[(2) - (2)].qstring), QSTRLEN);
}
break;
case 100:
/* Line 1455 of yacc.c */
#line 485 "conf_yacc.y"
{
#ifdef USE_P0F
char path[QSTRLEN + 1];
p0f_sock_set(quotepath(path, (yyvsp[(2) -
(2)].qstring), QSTRLEN));
#else
mg_log(LOG_INFO,
"p0f support not compiled in, "
"ignore line %d",
conf_line);
#endif
}
break;
case 101:
/* Line 1455 of yacc.c */
#line 498 "conf_yacc.y"
{
#ifdef USE_SPAMD
char path[QSTRLEN + 1];
spamd_sock_set((yyvsp[(2) - (3)].spamdsockt),
quotepath(path, (yyvsp[(3) -
(3)].qstring), QSTRLEN));
#else
mg_log(LOG_INFO,
"spamassassin support not compiled in, "
"ignore line %d",
conf_line);
#endif
}
break;
case 102:
/* Line 1455 of yacc.c */
#line 512 "conf_yacc.y"
{
#ifdef USE_GEOIP
char path[QSTRLEN + 1];
geoip_set_db(quotepath(path, (yyvsp[(2) -
(2)].qstring), QSTRLEN));
#else
mg_log(LOG_INFO,
"GeoIP support not compiled in, "
"ignore line %d",
conf_line);
#endif
}
break;
case 103:
/* Line 1455 of yacc.c */
#line 525 "conf_yacc.y"
{ conf.c_report = C_GLNONE; }
break;
case 104:
/* Line 1455 of yacc.c */
#line 526 "conf_yacc.y"
{ conf.c_report = C_DELAYS; }
break;
case 105:
/* Line 1455 of yacc.c */
#line 527 "conf_yacc.y"
{ conf.c_report = C_NODELAYS; }
break;
case 106:
/* Line 1455 of yacc.c */
#line 528 "conf_yacc.y"
{ conf.c_report = C_ALL; }
break;
case 107:
/* Line 1455 of yacc.c */
#line 531 "conf_yacc.y"
{ conf.c_logfac = -1; }
break;
case 108:
/* Line 1455 of yacc.c */
#line 532 "conf_yacc.y"
{ conf.c_logfac = LOG_KERN; }
break;
case 109:
/* Line 1455 of yacc.c */
#line 533 "conf_yacc.y"
{ conf.c_logfac = LOG_USER; }
break;
case 110:
/* Line 1455 of yacc.c */
#line 534 "conf_yacc.y"
{ conf.c_logfac = LOG_MAIL; }
break;
case 111:
/* Line 1455 of yacc.c */
#line 535 "conf_yacc.y"
{ conf.c_logfac = LOG_DAEMON; }
break;
case 112:
/* Line 1455 of yacc.c */
#line 536 "conf_yacc.y"
{ conf.c_logfac = LOG_AUTH; }
break;
case 113:
/* Line 1455 of yacc.c */
#line 537 "conf_yacc.y"
{ conf.c_logfac = LOG_SYSLOG; }
break;
case 114:
/* Line 1455 of yacc.c */
#line 538 "conf_yacc.y"
{ conf.c_logfac = LOG_LPR; }
break;
case 115:
/* Line 1455 of yacc.c */
#line 539 "conf_yacc.y"
{ conf.c_logfac = LOG_NEWS; }
break;
case 116:
/* Line 1455 of yacc.c */
#line 540 "conf_yacc.y"
{ conf.c_logfac = LOG_UUCP; }
break;
case 117:
/* Line 1455 of yacc.c */
#line 541 "conf_yacc.y"
{ conf.c_logfac = LOG_CRON; }
break;
case 118:
/* Line 1455 of yacc.c */
#line 542 "conf_yacc.y"
{
#ifdef LOG_AUTHPRIV
conf.c_logfac = LOG_AUTHPRIV;
#else
mg_log(LOG_ERR, "Your system does not support "
"authpriv syslog facility, line %d",
conf_line);
exit(EX_DATAERR);
#endif
}
break;
case 119:
/* Line 1455 of yacc.c */
#line 552 "conf_yacc.y"
{
#ifdef LOG_FTP
conf.c_logfac = LOG_FTP;
#else
mg_log(LOG_ERR, "Your system does not support "
"ftp syslog facility, line %d",
conf_line);
exit(EX_DATAERR);
#endif
}
break;
case 120:
/* Line 1455 of yacc.c */
#line 562 "conf_yacc.y"
{ conf.c_logfac = LOG_LOCAL0; }
break;
case 121:
/* Line 1455 of yacc.c */
#line 563 "conf_yacc.y"
{ conf.c_logfac = LOG_LOCAL1; }
break;
case 122:
/* Line 1455 of yacc.c */
#line 564 "conf_yacc.y"
{ conf.c_logfac = LOG_LOCAL2; }
break;
case 123:
/* Line 1455 of yacc.c */
#line 565 "conf_yacc.y"
{ conf.c_logfac = LOG_LOCAL3; }
break;
case 124:
/* Line 1455 of yacc.c */
#line 566 "conf_yacc.y"
{ conf.c_logfac = LOG_LOCAL4; }
break;
case 125:
/* Line 1455 of yacc.c */
#line 567 "conf_yacc.y"
{ conf.c_logfac = LOG_LOCAL5; }
break;
case 126:
/* Line 1455 of yacc.c */
#line 568 "conf_yacc.y"
{ conf.c_logfac = LOG_LOCAL6; }
break;
case 127:
/* Line 1455 of yacc.c */
#line 569 "conf_yacc.y"
{ conf.c_logfac = LOG_LOCAL7; }
break;
case 128:
/* Line 1455 of yacc.c */
#line 572 "conf_yacc.y"
{
char output[QSTRLEN + 1];
char format[QSTRLEN + 1];
mg_stat_def(quotepath(output, (yyvsp[(2) -
(3)].qstring), QSTRLEN),
quotepath(format, (yyvsp[(3) -
(3)].qstring), QSTRLEN));
}
break;
case 129:
/* Line 1455 of yacc.c */
#line 581 "conf_yacc.y"
{ conf.c_dumpfreq =
(time_t)humanized_atoi((yyvsp[(2) -
(2)].delay));
}
break;
case 130:
/* Line 1455 of yacc.c */
#line 584 "conf_yacc.y"
{ conf.c_dumpfreq =
(time_t)humanized_atoi((yyvsp[(2) -
(2)].delay));
}
break;
case 131:
/* Line 1455 of yacc.c */
#line 588 "conf_yacc.y"
{ conf.c_timeout =
(time_t)humanized_atoi((yyvsp[(2) -
(2)].delay));
}
break;
case 132:
/* Line 1455 of yacc.c */
#line 591 "conf_yacc.y"
{ conf.c_timeout =
(time_t)humanized_atoi((yyvsp[(2) -
(2)].delay));
}
break;
case 133:
/* Line 1455 of yacc.c */
#line 595 "conf_yacc.y"
{
conf.c_syncaddr = NULL;
conf.c_syncport = NULL;
}
break;
case 134:
/* Line 1455 of yacc.c */
#line 599 "conf_yacc.y"
{
if (IP4TOSTRING((yyvsp[(2) - (2)].ipaddr),
conf.c_syncaddr_storage) == NULL) {
mg_log(LOG_ERR, "invalid IPv4 address "
"line %d", conf_line);
exit(EX_DATAERR);
}
conf.c_syncaddr = conf.c_syncaddr_storage;
conf.c_syncport = NULL;
}
break;
case 135:
/* Line 1455 of yacc.c */
#line 608 "conf_yacc.y"
{
#ifdef AF_INET6
if (IP6TOSTRING((yyvsp[(2) - (2)].ip6addr),
conf.c_syncaddr_storage) == NULL) {
mg_log(LOG_ERR, "invalid IPv6 address "
"line %d", conf_line);
exit(EX_DATAERR);
}
conf.c_syncaddr = conf.c_syncaddr_storage;
conf.c_syncport = NULL;
#else /* AF_INET6 */
mg_log(LOG_INFO, "IPv6 is not supported, "
"ignore line %d", conf_line);
#endif /* AF_INET6 */
}
break;
case 136:
/* Line 1455 of yacc.c */
#line 622 "conf_yacc.y"
{
conf.c_syncaddr = NULL;
conf.c_syncport = conf.c_syncport_storage;
strncpy(conf.c_syncport, (yyvsp[(4) -
(4)].delay), NUMLEN);
conf.c_syncport[NUMLEN] = '\0';
}
break;
case 137:
/* Line 1455 of yacc.c */
#line 628 "conf_yacc.y"
{
if (IP4TOSTRING((yyvsp[(2) - (4)].ipaddr),
conf.c_syncaddr_storage) == NULL) {
mg_log(LOG_ERR, "invalid IPv4 address "
"line %d", conf_line);
exit(EX_DATAERR);
}
conf.c_syncaddr = conf.c_syncaddr_storage;
conf.c_syncport = conf.c_syncport_storage;
strncpy(conf.c_syncport, (yyvsp[(4) -
(4)].delay), NUMLEN);
conf.c_syncport[NUMLEN] = '\0';
}
break;
case 138:
/* Line 1455 of yacc.c */
#line 639 "conf_yacc.y"
{
#ifdef AF_INET6
if (IP6TOSTRING((yyvsp[(2) - (4)].ip6addr),
conf.c_syncaddr_storage) == NULL) {
mg_log(LOG_ERR, "invalid IPv6 address "
"line %d", conf_line);
exit(EX_DATAERR);
}
conf.c_syncaddr = conf.c_syncaddr_storage;
conf.c_syncport = conf.c_syncport_storage;
strncpy(conf.c_syncport, (yyvsp[(4) -
(4)].delay), NUMLEN);
conf.c_syncport[NUMLEN] = '\0';
#else /* AF_INET6 */
mg_log(LOG_INFO, "IPv6 is not supported, "
"ignore line %d", conf_line);
#endif /* AF_INET6 */
}
break;
case 139:
/* Line 1455 of yacc.c */
#line 657 "conf_yacc.y"
{
conf.c_syncsrcaddr = NULL;
conf.c_syncsrcport = NULL;
}
break;
case 140:
/* Line 1455 of yacc.c */
#line 661 "conf_yacc.y"
{
if (IP4TOSTRING((yyvsp[(2) - (2)].ipaddr),
conf.c_syncsrcaddr_storage) == NULL) {
mg_log(LOG_ERR, "invalid IPv4 address "
"line %d", conf_line);
exit(EX_DATAERR);
}
conf.c_syncsrcaddr = conf.c_syncsrcaddr_storage;
conf.c_syncsrcport = NULL;
}
break;
case 141:
/* Line 1455 of yacc.c */
#line 670 "conf_yacc.y"
{
#ifdef AF_INET6
if (IP6TOSTRING((yyvsp[(2) - (2)].ip6addr),
conf.c_syncsrcaddr_storage) == NULL) {
mg_log(LOG_ERR, "invalid IPv6 address "
"line %d", conf_line);
exit(EX_DATAERR);
}
conf.c_syncsrcaddr = conf.c_syncsrcaddr_storage;
conf.c_syncsrcport = NULL;
#else /* AF_INET6 */
mg_log(LOG_INFO, "IPv6 is not supported, "
"ignore line %d", conf_line);
#endif /* AF_INET6 */
}
break;
case 142:
/* Line 1455 of yacc.c */
#line 684 "conf_yacc.y"
{
conf.c_syncsrcaddr = NULL;
conf.c_syncsrcport = conf.c_syncsrcport_storage;
strncpy(conf.c_syncsrcport, (yyvsp[(4) -
(4)].delay), NUMLEN);
conf.c_syncsrcport[NUMLEN] = '\0';
}
break;
case 143:
/* Line 1455 of yacc.c */
#line 690 "conf_yacc.y"
{
if (IP4TOSTRING((yyvsp[(2) - (4)].ipaddr),
conf.c_syncsrcaddr_storage) == NULL) {
mg_log(LOG_ERR, "invalid IPv4 address "
"line %d", conf_line);
exit(EX_DATAERR);
}
conf.c_syncsrcaddr = conf.c_syncsrcaddr_storage;
conf.c_syncsrcport = conf.c_syncsrcport_storage;
strncpy(conf.c_syncsrcport, (yyvsp[(4) -
(4)].delay), NUMLEN);
conf.c_syncsrcport[NUMLEN] = '\0';
}
break;
case 144:
/* Line 1455 of yacc.c */
#line 701 "conf_yacc.y"
{
#ifdef AF_INET6
if (IP6TOSTRING((yyvsp[(2) - (4)].ip6addr),
conf.c_syncsrcaddr_storage) == NULL) {
mg_log(LOG_ERR, "invalid IPv6 address "
"line %d", conf_line);
exit(EX_DATAERR);
}
conf.c_syncsrcaddr = conf.c_syncsrcaddr_storage;
conf.c_syncsrcport = conf.c_syncsrcport_storage;
strncpy(conf.c_syncsrcport, (yyvsp[(4) -
(4)].delay), NUMLEN);
conf.c_syncsrcport[NUMLEN] = '\0';
#else /* AF_INET6 */
mg_log(LOG_INFO, "IPv6 is not supported, "
"ignore line %d", conf_line);
#endif /* AF_INET6 */
}
break;
case 145:
/* Line 1455 of yacc.c */
#line 719 "conf_yacc.y"
{ conf.c_syncmaxqlen = atoi((yyvsp[(2) - (2)].delay)) ;
}
break;
case 146:
/* Line 1455 of yacc.c */
#line 723 "conf_yacc.y"
{
acl_register_entry_last(AS_RCPT, A_GREYLIST);
}
break;
case 147:
/* Line 1455 of yacc.c */
#line 726 "conf_yacc.y"
{
acl_register_entry_last(AS_RCPT, A_WHITELIST);
}
break;
case 148:
/* Line 1455 of yacc.c */
#line 729 "conf_yacc.y"
{
acl_register_entry_last(AS_RCPT, A_BLACKLIST);
}
break;
case 149:
/* Line 1455 of yacc.c */
#line 735 "conf_yacc.y"
{
acl_register_entry_last(AS_RCPT, A_GREYLIST);
}
break;
case 150:
/* Line 1455 of yacc.c */
#line 738 "conf_yacc.y"
{
acl_register_entry_last(AS_RCPT, A_WHITELIST);
}
break;
case 151:
/* Line 1455 of yacc.c */
#line 741 "conf_yacc.y"
{
acl_register_entry_last(AS_RCPT, A_BLACKLIST);
}
break;
case 152:
/* Line 1455 of yacc.c */
#line 747 "conf_yacc.y"
{
acl_register_entry_last(AS_DATA, A_GREYLIST);
}
break;
case 153:
/* Line 1455 of yacc.c */
#line 750 "conf_yacc.y"
{
acl_register_entry_last(AS_DATA, A_WHITELIST);
}
break;
case 154:
/* Line 1455 of yacc.c */
#line 753 "conf_yacc.y"
{
acl_register_entry_last(AS_DATA, A_BLACKLIST);
}
break;
case 155:
/* Line 1455 of yacc.c */
#line 758 "conf_yacc.y"
{
char id[QSTRLEN + 1];
acl_add_id(quotepath(id, (yyvsp[(1) - (1)].qstring),
QSTRLEN));
}
break;
case 157:
/* Line 1455 of yacc.c */
#line 766 "conf_yacc.y"
{ conf_acl_end = 1; }
break;
case 212:
/* Line 1455 of yacc.c */
#line 831 "conf_yacc.y"
{ acl_add_delay((time_t)humanized_atoi((yyvsp[(2) - (2)].delay))); }
break;
case 213:
/* Line 1455 of yacc.c */
#line 834 "conf_yacc.y"
{ acl_add_autowhite((time_t)humanized_atoi((yyvsp[(2) - (2)].delay))); }
break;
case 214:
/* Line 1455 of yacc.c */
#line 836 "conf_yacc.y"
{ acl_add_flushaddr(); }
break;
case 215:
/* Line 1455 of yacc.c */
#line 838 "conf_yacc.y"
{ acl_add_nolog(); }
break;
case 216:
/* Line 1455 of yacc.c */
#line 840 "conf_yacc.y"
{
char code[QSTRLEN + 1];
acl_add_code(quotepath(code, (yyvsp[(2) -
(2)].qstring), QSTRLEN));
}
break;
case 217:
/* Line 1455 of yacc.c */
#line 846 "conf_yacc.y"
{
char ecode[QSTRLEN + 1];
acl_add_ecode(quotepath(ecode, (yyvsp[(2) -
(2)].qstring), QSTRLEN));
}
break;
case 218:
/* Line 1455 of yacc.c */
#line 852 "conf_yacc.y"
{
char msg[QSTRLEN + 1];
acl_add_msg(quotepath(msg, (yyvsp[(2) -
(2)].qstring), QSTRLEN));
}
break;
case 219:
/* Line 1455 of yacc.c */
#line 858 "conf_yacc.y"
{
char msg[QSTRLEN + 1];
acl_add_report(quotepath(msg, (yyvsp[(2) -
(2)].qstring), QSTRLEN));
}
break;
case 220:
/* Line 1455 of yacc.c */
#line 864 "conf_yacc.y"
{
char hdr[QSTRLEN + 1];
acl_add_addheader(quotepath(hdr, (yyvsp[(2) -
(2)].qstring), QSTRLEN));
}
break;
case 221:
/* Line 1455 of yacc.c */
#line 870 "conf_yacc.y"
{ acl_negate_clause(); }
break;
case 222:
/* Line 1455 of yacc.c */
#line 874 "conf_yacc.y"
{ acl_add_clause(AC_CLOCKSPEC, register_clock()); }
break;
case 223:
/* Line 1455 of yacc.c */
#line 877 "conf_yacc.y"
{
#ifdef USE_P0F
char name[QSTRLEN + 1];
acl_add_clause(AC_P0F,
quotepath(name, (yyvsp[(2) -
(2)].qstring), QSTRLEN));
#else
acl_drop();
mg_log(LOG_INFO,
"p0f support not compiled in, ignore line %d",
conf_line);
#endif
}
break;
case 224:
/* Line 1455 of yacc.c */
#line 891 "conf_yacc.y"
{
#ifdef USE_P0F
acl_add_clause(AC_P0F_RE, (yyvsp[(2) - (2)].regex));
#else
acl_drop();
mg_log(LOG_INFO,
"p0f support not compiled in, ignore line %d",
conf_line);
#endif
}
break;
case 225:
/* Line 1455 of yacc.c */
#line 902 "conf_yacc.y"
{
#ifdef USE_SPAMD
acl_add_clause(AC_SA, NULL);
#else
mg_log(LOG_INFO,
"spamassassin support "
"not compiled in, ignore line %d",
conf_line);
#endif
}
break;
case 226:
/* Line 1455 of yacc.c */
#line 913 "conf_yacc.y"
{
#ifdef USE_SPAMD
struct acl_opnum_data aond;
aond.op = (yyvsp[(2) - (3)].op);
aond.num = atoi((yyvsp[(3) - (3)].delay));
acl_add_clause(AC_SASCORE, &aond);
#else
mg_log(LOG_INFO,
"spamassassin support not compiled in, ignore
line %d",
conf_line);
#endif
}
break;
case 227:
/* Line 1455 of yacc.c */
#line 928 "conf_yacc.y"
{
#ifdef USE_GEOIP
char ccode[IPADDRSTRLEN + 1];
acl_add_clause(AC_GEOIP,
quotepath(ccode, (yyvsp[(2) -
(2)].qstring), IPADDRSTRLEN));
#else
acl_drop();
mg_log(LOG_INFO,
"GeoIP support not compiled in, "
"ignoting line %d",
conf_line);
#endif
}
break;
case 228:
/* Line 1455 of yacc.c */
#line 944 "conf_yacc.y"
{
char string[QSTRLEN + 1];
acl_add_clause(AC_HELO,
quotepath(string, (yyvsp[(2) -
(2)].qstring), QSTRLEN));
}
break;
case 229:
/* Line 1455 of yacc.c */
#line 952 "conf_yacc.y"
{ acl_add_clause(AC_HELO_RE, (yyvsp[(2) - (2)].regex)); }
break;
case 230:
/* Line 1455 of yacc.c */
#line 955 "conf_yacc.y"
{ acl_add_clause(AC_FROM, (yyvsp[(2) - (2)].email)); }
break;
case 231:
/* Line 1455 of yacc.c */
#line 958 "conf_yacc.y"
{ acl_add_clause(AC_FROM_RE, (yyvsp[(2) - (2)].regex)); }
break;
case 232:
/* Line 1455 of yacc.c */
#line 961 "conf_yacc.y"
{ acl_add_clause(AC_RCPT, (yyvsp[(2) - (2)].email)); }
break;
case 233:
/* Line 1455 of yacc.c */
#line 964 "conf_yacc.y"
{ acl_add_clause(AC_RCPT_RE, (yyvsp[(2) - (2)].regex)); }
break;
case 234:
/* Line 1455 of yacc.c */
#line 967 "conf_yacc.y"
{ acl_add_clause(AC_DOMAIN, (yyvsp[(2) - (2)].domainname)); }
break;
case 235:
/* Line 1455 of yacc.c */
#line 970 "conf_yacc.y"
{ acl_add_clause(AC_DOMAIN_RE, (yyvsp[(2) - (2)].regex)); }
break;
case 236:
/* Line 1455 of yacc.c */
#line 973 "conf_yacc.y"
{
#ifdef USE_DNSRBL
char path[QSTRLEN + 1];
acl_add_clause(AC_DNSRBL, quotepath(path, (yyvsp[(2) -
(2)].qstring), QSTRLEN));
#else
acl_drop();
mg_log(LOG_INFO,
"DNSRBL support not compiled in, ignore line %d",
conf_line);
#endif
}
break;
case 237:
/* Line 1455 of yacc.c */
#line 987 "conf_yacc.y"
{
char qstring[QSTRLEN + 1];
acl_add_clause(AC_MACRO,
quotepath(qstring, (yyvsp[(2) -
(2)].qstring), QSTRLEN));
}
break;
case 238:
/* Line 1455 of yacc.c */
#line 995 "conf_yacc.y"
{
char qstring[QSTRLEN + 1];
acl_add_clause(AC_HEADER,
quotepath(qstring, (yyvsp[(2) -
(2)].qstring), QSTRLEN));
}
break;
case 239:
/* Line 1455 of yacc.c */
#line 1003 "conf_yacc.y"
{ acl_add_clause(AC_HEADER_RE, (yyvsp[(2) - (2)].regex)); }
break;
case 240:
/* Line 1455 of yacc.c */
#line 1006 "conf_yacc.y"
{
char qstring[QSTRLEN + 1];
acl_add_clause(AC_BODY,
quotepath(qstring, (yyvsp[(2) -
(2)].qstring), QSTRLEN));
}
break;
case 241:
/* Line 1455 of yacc.c */
#line 1014 "conf_yacc.y"
{ acl_add_clause(AC_BODY_RE, (yyvsp[(2) - (2)].regex)); }
break;
case 242:
/* Line 1455 of yacc.c */
#line 1017 "conf_yacc.y"
{
char qstring[QSTRLEN + 1];
acl_add_clause(AC_AUTH,
quotepath(qstring, (yyvsp[(2) -
(2)].qstring), QSTRLEN));
conf.c_noauth = 1;
}
break;
case 243:
/* Line 1455 of yacc.c */
#line 1026 "conf_yacc.y"
{
acl_add_clause(AC_AUTH_RE, (yyvsp[(2) -
(2)].regex));
conf.c_noauth = 1;
}
break;
case 244:
/* Line 1455 of yacc.c */
#line 1032 "conf_yacc.y"
{
char qstring[QSTRLEN + 1];
acl_add_clause(AC_TLS,
quotepath(qstring, (yyvsp[(2) -
(2)].qstring), QSTRLEN));
conf.c_noauth = 1;
}
break;
case 245:
/* Line 1455 of yacc.c */
#line 1041 "conf_yacc.y"
{
acl_add_clause(AC_TLS_RE, (yyvsp[(2) -
(2)].regex));
conf.c_noauth = 1;
}
break;
case 246:
/* Line 1455 of yacc.c */
#line 1047 "conf_yacc.y"
{
#if (defined(HAVE_SPF) || defined(HAVE_SPF_ALT) || \
defined(HAVE_SPF2_10) || defined(HAVE_SPF2))
acl_add_clause(AC_SPF, &(yyvsp[(2) -
(2)].spf_status));
conf.c_nospf = 1;
#else
acl_drop();
mg_log(LOG_INFO,
"SPF support not compiled in, "
"ignore line %d",
conf_line);
#endif
}
break;
case 247:
/* Line 1455 of yacc.c */
#line 1062 "conf_yacc.y"
{
#if (defined(HAVE_SPF) || defined(HAVE_SPF_ALT) || \
defined(HAVE_SPF2_10) || defined(HAVE_SPF2))
enum spf_status status = MGSPF_PASS;
acl_add_clause(AC_SPF, &status);
conf.c_nospf = 1;
#else
acl_drop();
mg_log(LOG_INFO,
"SPF support not compiled in, "
"ignore line %d",
conf_line);
#endif
}
break;
case 248:
/* Line 1455 of yacc.c */
#line 1079 "conf_yacc.y"
{
#ifdef USE_DKIM
acl_add_clause(AC_DKIM, &(yyvsp[(2) - (2)].spf_status));
#else
acl_drop();
mg_log(LOG_INFO,
"DKIM support not compiled in, "
"ignore line %d",
conf_line);
#endif
}
break;
case 249:
/* Line 1455 of yacc.c */
#line 1092 "conf_yacc.y"
{
#ifdef USE_CURL
char path[QSTRLEN + 1];
acl_add_clause(AC_URLCHECK,
quotepath(path, (yyvsp[(2) -
(2)].qstring), QSTRLEN));
#else
acl_drop();
mg_log(LOG_INFO,
"CURL support not compiled in, ignore line %d",
conf_line);
#endif
}
break;
case 250:
/* Line 1455 of yacc.c */
#line 1106 "conf_yacc.y"
{
#ifdef USE_LDAP
char name[QSTRLEN + 1];
acl_add_clause(AC_LDAPCHECK,
quotepath(name, (yyvsp[(2) -
(2)].qstring), QSTRLEN));
#else
acl_drop();
mg_log(LOG_INFO,
"LDAP support not compiled in, ignore line %d",
conf_line);
#endif
}
break;
case 251:
/* Line 1455 of yacc.c */
#line 1121 "conf_yacc.y"
{
#if defined(USE_CURL) || defined(USE_LDAP)
struct prop_data upd;
char qstring[QSTRLEN + 1];
upd.upd_name = (yyvsp[(1) - (2)].prop);
upd.upd_data = quotepath(qstring, (yyvsp[(2) -
(2)].qstring), QSTRLEN);
acl_add_clause(AC_PROP, &upd);
#else
acl_drop();
mg_log(LOG_INFO,
"no CURL or LDAP support not compiled in, "
"ignore line %d", conf_line);
#endif
}
break;
case 252:
/* Line 1455 of yacc.c */
#line 1139 "conf_yacc.y"
{
#if defined(USE_CURL) || defined(USE_LDAP)
struct prop_data upd;
upd.upd_name = (yyvsp[(1) - (2)].prop);
upd.upd_data = (yyvsp[(2) - (2)].regex);
acl_add_clause(AC_PROP_RE, &upd);
#else
acl_drop();
mg_log(LOG_INFO,
"no CURL or LDAP support not compiled in, "
"ignore line %d", conf_line);
#endif
}
break;
case 253:
/* Line 1455 of yacc.c */
#line 1155 "conf_yacc.y"
{
char path[QSTRLEN + 1];
acl_add_clause(AC_LIST,
quotepath(path, (yyvsp[(2) -
(2)].qstring), QSTRLEN));
}
break;
case 254:
/* Line 1455 of yacc.c */
#line 1162 "conf_yacc.y"
{
struct acl_netblock_data and;
and.addr = SA(&(yyvsp[(2) - (3)].ipaddr));
and.salen = sizeof(struct sockaddr_in);
and.cidr = (yyvsp[(3) - (3)].cidr);
acl_add_clause(AC_NETBLOCK, &and);
}
break;
case 255:
/* Line 1455 of yacc.c */
#line 1171 "conf_yacc.y"
{
struct acl_netblock_data and;
and.addr = SA(&(yyvsp[(2) - (2)].ipaddr));
and.salen = sizeof(struct sockaddr_in);
and.cidr = 32;
acl_add_clause(AC_NETBLOCK, &and);
}
break;
case 256:
/* Line 1455 of yacc.c */
#line 1180 "conf_yacc.y"
{
#ifdef AF_INET6
struct acl_netblock_data and;
and.addr = SA(&(yyvsp[(2) - (3)].ip6addr));
and.salen = sizeof(struct sockaddr_in6);
and.cidr = (yyvsp[(3) - (3)].cidr);
acl_add_clause(AC_NETBLOCK, &and);
#else
acl_drop();
mg_log(LOG_INFO,
"IPv6 is not supported, ignore line %d",
conf_line);
#endif
}
break;
case 257:
/* Line 1455 of yacc.c */
#line 1196 "conf_yacc.y"
{
#ifdef AF_INET6
struct acl_netblock_data and;
and.addr = SA(&(yyvsp[(2) - (2)].ip6addr));
and.salen = sizeof(struct sockaddr_in6);
and.cidr = 128;
acl_add_clause(AC_NETBLOCK, &and);
#else
acl_drop();
mg_log(LOG_INFO, "IPv6 is not supported, "
"ignore line %d", conf_line);
#endif
}
break;
case 258:
/* Line 1455 of yacc.c */
#line 1213 "conf_yacc.y"
{
#ifdef USE_DRAC
conf.c_dracdb =
quotepath(conf.c_dracdb_storage,
(yyvsp[(3) - (3)].qstring), QSTRLEN);
#else
mg_log(LOG_INFO, "DRAC support not compiled "
"in, ignore line %d", conf_line);
#endif
}
break;
case 259:
/* Line 1455 of yacc.c */
#line 1224 "conf_yacc.y"
{
struct acl_opnum_data aond;
aond.op = (yyvsp[(2) - (3)].op);
aond.num = humanized_atoi((yyvsp[(3) -
(3)].delay));
acl_add_clause(AC_MSGSIZE, &aond);
}
break;
case 260:
/* Line 1455 of yacc.c */
#line 1234 "conf_yacc.y"
{
struct acl_opnum_data aond;
aond.op = (yyvsp[(2) - (3)].op);
aond.num = humanized_atoi((yyvsp[(3) -
(3)].delay));
acl_add_clause(AC_RCPTCOUNT, &aond);
}
break;
case 261:
/* Line 1455 of yacc.c */
#line 1245 "conf_yacc.y"
{ conf.c_nodrac = 1; }
break;
case 262:
/* Line 1455 of yacc.c */
#line 1248 "conf_yacc.y"
{ conf.c_maxpeek = humanized_atoi((yyvsp[(2) - (2)].delay)); }
break;
case 265:
/* Line 1455 of yacc.c */
#line 1254 "conf_yacc.y"
{
#ifdef USE_DNSRBL
char path[QSTRLEN + 1];
dnsrbl_source_add(quotepath(path, (yyvsp[(2) -
(4)].qstring), QSTRLEN),
(yyvsp[(3) - (4)].domainname), SA(&(yyvsp[(4) -
(4)].ipaddr)), 32);
#else
mg_log(LOG_INFO,
"DNSRBL support not compiled in, ignore line %d",
conf_line);
#endif
}
break;
case 266:
/* Line 1455 of yacc.c */
#line 1268 "conf_yacc.y"
{
#ifdef USE_DNSRBL
char path[QSTRLEN + 1];
dnsrbl_source_add(quotepath(path, (yyvsp[(2) -
(5)].qstring), QSTRLEN),
(yyvsp[(3) - (5)].domainname), SA(&(yyvsp[(4) -
(5)].ipaddr)), (yyvsp[(5) - (5)].cidr));
#else
mg_log(LOG_INFO,
"DNSRBL support not compiled in, ignore line %d",
conf_line);
#endif
}
break;
case 270:
/* Line 1455 of yacc.c */
#line 1284 "conf_yacc.y"
{
char name[QSTRLEN + 1];
char macro[QSTRLEN + 1];
char value[QSTRLEN + 1];
macro_add_string(quotepath(name, (yyvsp[(2) -
(4)].qstring), QSTRLEN),
quotepath(macro, (yyvsp[(3) -
(4)].qstring), QSTRLEN),
quotepath(value, (yyvsp[(4) -
(4)].qstring), QSTRLEN));
}
break;
case 271:
/* Line 1455 of yacc.c */
#line 1295 "conf_yacc.y"
{
#ifdef USE_LDAP
char name[QSTRLEN + 1];
char url[QSTRLEN + 1];
ldapcheck_def_add(quotepath(name, (yyvsp[(2) -
(4)].qstring), QSTRLEN),
quotepath(url, (yyvsp[(3) - (4)].qstring),
QSTRLEN), ldapcheck_gflags);
#else
mg_log(LOG_INFO,
"LDAP support not compiled in, ignore line %d",
conf_line);
#endif
}
break;
case 274:
/* Line 1455 of yacc.c */
#line 1314 "conf_yacc.y"
{
#ifdef USE_LDAP
ldapcheck_gflags |= L_CLEARPROP;
#else
mg_log(LOG_INFO,
"LDAP support not compiled in, ignore line %d",
conf_line);
#endif
}
break;
case 275:
/* Line 1455 of yacc.c */
#line 1325 "conf_yacc.y"
{
#ifdef USE_CURL
char path1[QSTRLEN + 1];
char path2[QSTRLEN + 1];
urlcheck_def_add(quotepath(path1, (yyvsp[(2) -
(5)].qstring), QSTRLEN),
quotepath(path2, (yyvsp[(3) - (5)].qstring),
QSTRLEN), atoi((yyvsp[(4) - (5)].delay)),
urlcheck_gflags);
#else
mg_log(LOG_INFO,
"CURL support not compiled in, ignore line %d",
conf_line);
#endif
}
break;
case 281:
/* Line 1455 of yacc.c */
#line 1348 "conf_yacc.y"
{
#ifdef USE_CURL
urlcheck_gflags |= U_POSTMSG;
#else
mg_log(LOG_INFO,
"CURL support not compiled in, ignore line %d",
conf_line);
#endif
}
break;
case 282:
/* Line 1455 of yacc.c */
#line 1358 "conf_yacc.y"
{
#ifdef USE_CURL
urlcheck_gflags |= U_GETPROP;
#else
mg_log(LOG_INFO,
"CURL support not compiled in, ignore line %d",
conf_line);
#endif
}
break;
case 283:
/* Line 1455 of yacc.c */
#line 1368 "conf_yacc.y"
{
#ifdef USE_CURL
urlcheck_gflags |= U_CLEARPROP;
#else
mg_log(LOG_INFO,
"CURL support not compiled in, ignore line %d",
conf_line);
#endif
}
break;
case 284:
/* Line 1455 of yacc.c */
#line 1378 "conf_yacc.y"
{
#ifdef USE_CURL
urlcheck_gflags |= U_FORK;
#else
mg_log(LOG_INFO,
"CURL support not compiled in, ignore line %d",
conf_line);
#endif
}
break;
case 285:
/* Line 1455 of yacc.c */
#line 1389 "conf_yacc.y"
{
#ifdef USE_LDAP
char uris[QSTRLEN + 1];
ldapcheck_conf_add(quotepath(uris, (yyvsp[(2) -
(3)].qstring), QSTRLEN));
#else
mg_log(LOG_INFO,
"LDAP support not compiled in, ignore line %d",
conf_line);
#endif
}
break;
case 286:
/* Line 1455 of yacc.c */
#line 1401 "conf_yacc.y"
{
#ifdef USE_LDAP
ldapcheck_timeout_set(humanized_atoi((yyvsp[(2) -
(2)].delay)));
#else
mg_log(LOG_INFO,
"LDAP support not compiled in, ignore line %d",
conf_line);
#endif
}
break;
case 287:
/* Line 1455 of yacc.c */
#line 1410 "conf_yacc.y"
{ /* 4.2.1 backward compatiblity */
#ifdef USE_LDAP
ldapcheck_timeout_set(atoi((yyvsp[(1) - (1)].delay)));
#else
mg_log(LOG_INFO,
"LDAP support not compiled in, ignore line %d",
conf_line);
#endif
}
break;
case 289:
/* Line 1455 of yacc.c */
#line 1422 "conf_yacc.y"
{
char name[QSTRLEN + 1];
char macro[QSTRLEN + 1];
macro_add_regex(quotepath(name, (yyvsp[(2) -
(4)].qstring), QSTRLEN),
quotepath(macro, (yyvsp[(3) -
(4)].qstring), QSTRLEN), (yyvsp[(4) - (4)].regex));
}
break;
case 290:
/* Line 1455 of yacc.c */
#line 1431 "conf_yacc.y"
{
char name[QSTRLEN + 1];
char macro[QSTRLEN + 1];
macro_add_unset(quotepath(name, (yyvsp[(2) -
(4)].qstring), QSTRLEN),
quotepath(macro, (yyvsp[(3) -
(4)].qstring), QSTRLEN));
}
break;
case 292:
/* Line 1455 of yacc.c */
#line 1441 "conf_yacc.y"
{ next_clock_spec(); }
break;
case 293:
/* Line 1455 of yacc.c */
#line 1444 "conf_yacc.y"
{ add_clock_item(atoi((yyvsp[(1) - (1)].delay)), atoi((yyvsp[(1) -
(1)].delay)), 0); }
break;
case 294:
/* Line 1455 of yacc.c */
#line 1446 "conf_yacc.y"
{ add_clock_item(atoi((yyvsp[(1) - (3)].delay)), atoi((yyvsp[(1) -
(3)].delay)), atoi((yyvsp[(3) - (3)].delay))); }
break;
case 295:
/* Line 1455 of yacc.c */
#line 1448 "conf_yacc.y"
{ add_clock_item(atoi((yyvsp[(1) - (3)].delay)), atoi((yyvsp[(3) -
(3)].delay)), 0); }
break;
case 296:
/* Line 1455 of yacc.c */
#line 1450 "conf_yacc.y"
{ add_clock_item(atoi((yyvsp[(1) - (5)].delay)), atoi((yyvsp[(3) -
(5)].delay)), atoi((yyvsp[(5) - (5)].delay))); }
break;
case 297:
/* Line 1455 of yacc.c */
#line 1452 "conf_yacc.y"
{ add_clock_item(-1, -1, 0); }
break;
case 298:
/* Line 1455 of yacc.c */
#line 1454 "conf_yacc.y"
{ add_clock_item(-1, -1, atoi((yyvsp[(3) - (3)].delay))); }
break;
case 299:
/* Line 1455 of yacc.c */
#line 1457 "conf_yacc.y"
{
char path[QSTRLEN + 1];
all_list_setname(glist, quotepath(path, (yyvsp[(2) -
(3)].qstring), QSTRLEN));
glist_init();
}
break;
case 300:
/* Line 1455 of yacc.c */
#line 1466 "conf_yacc.y"
{ all_list_settype(glist, AC_HELO_LIST); }
break;
case 301:
/* Line 1455 of yacc.c */
#line 1468 "conf_yacc.y"
{ all_list_settype(glist, AC_FROM_LIST); }
break;
case 302:
/* Line 1455 of yacc.c */
#line 1470 "conf_yacc.y"
{ all_list_settype(glist, AC_RCPT_LIST); }
break;
case 303:
/* Line 1455 of yacc.c */
#line 1472 "conf_yacc.y"
{ all_list_settype(glist, AC_DOMAIN_LIST); }
break;
case 304:
/* Line 1455 of yacc.c */
#line 1474 "conf_yacc.y"
{ all_list_settype(glist, AC_DNSRBL_LIST); }
break;
case 305:
/* Line 1455 of yacc.c */
#line 1476 "conf_yacc.y"
{ all_list_settype(glist, AC_URLCHECK_LIST); }
break;
case 306:
/* Line 1455 of yacc.c */
#line 1478 "conf_yacc.y"
{ all_list_settype(glist, AC_BODY_LIST); }
break;
case 307:
/* Line 1455 of yacc.c */
#line 1480 "conf_yacc.y"
{ all_list_settype(glist, AC_HEADER_LIST); }
break;
case 308:
/* Line 1455 of yacc.c */
#line 1482 "conf_yacc.y"
{ all_list_settype(glist, AC_MACRO_LIST); }
break;
case 309:
/* Line 1455 of yacc.c */
#line 1484 "conf_yacc.y"
{ all_list_settype(glist, AC_NETBLOCK_LIST); }
break;
case 310:
/* Line 1455 of yacc.c */
#line 1486 "conf_yacc.y"
{ all_list_settype(glist, AC_AUTH_LIST); }
break;
case 311:
/* Line 1455 of yacc.c */
#line 1488 "conf_yacc.y"
{ all_list_settype(glist, AC_TLS_LIST); }
break;
case 312:
/* Line 1455 of yacc.c */
#line 1490 "conf_yacc.y"
{ all_list_settype(glist, AC_CLOCKSPEC_LIST); }
break;
case 313:
/* Line 1455 of yacc.c */
#line 1492 "conf_yacc.y"
{ all_list_settype(glist, AC_GEOIP_LIST); }
break;
case 314:
/* Line 1455 of yacc.c */
#line 1494 "conf_yacc.y"
{ all_list_settype(glist, AC_P0F_LIST); }
break;
case 317:
/* Line 1455 of yacc.c */
#line 1501 "conf_yacc.y"
{ list_add(glist, AC_EMAIL, (yyvsp[(1) - (1)].email)); }
break;
case 318:
/* Line 1455 of yacc.c */
#line 1502 "conf_yacc.y"
{ list_add(glist, AC_REGEX, (yyvsp[(1) - (1)].regex)); }
break;
case 321:
/* Line 1455 of yacc.c */
#line 1509 "conf_yacc.y"
{ list_add(glist, AC_DOMAIN, (yyvsp[(1) - (1)].domainname)); }
break;
case 322:
/* Line 1455 of yacc.c */
#line 1510 "conf_yacc.y"
{ list_add(glist, AC_REGEX, (yyvsp[(1) - (1)].regex)); }
break;
case 325:
/* Line 1455 of yacc.c */
#line 1517 "conf_yacc.y"
{
char tmpstr[QSTRLEN + 1];
list_add(glist, AC_STRING,
quotepath(tmpstr, (yyvsp[(1) - (1)].qstring),
QSTRLEN));
}
break;
case 326:
/* Line 1455 of yacc.c */
#line 1523 "conf_yacc.y"
{ list_add(glist, AC_REGEX, (yyvsp[(1) - (1)].regex)); }
break;
case 329:
/* Line 1455 of yacc.c */
#line 1530 "conf_yacc.y"
{
struct acl_netblock_data and;
and.addr = SA(&(yyvsp[(1) - (2)].ipaddr));
and.salen = sizeof(struct sockaddr_in);
and.cidr = (yyvsp[(2) - (2)].cidr);
list_add(glist, AC_NETBLOCK, &and);
}
break;
case 330:
/* Line 1455 of yacc.c */
#line 1538 "conf_yacc.y"
{
struct acl_netblock_data and;
and.addr = SA(&(yyvsp[(1) - (1)].ipaddr));
and.salen = sizeof(struct sockaddr_in);
and.cidr = 32;
list_add(glist, AC_NETBLOCK, &and);
}
break;
case 331:
/* Line 1455 of yacc.c */
#line 1546 "conf_yacc.y"
{
#ifdef AF_INET6
struct acl_netblock_data and;
and.addr = SA(&(yyvsp[(1) - (2)].ip6addr));
and.salen = sizeof(struct sockaddr_in6);
and.cidr = (yyvsp[(2) - (2)].cidr);
list_add(glist, AC_NETBLOCK, &and);
#else
mg_log(LOG_INFO,
"IPv6 is not supported, ignore line %d",
conf_line);
#endif
}
break;
case 332:
/* Line 1455 of yacc.c */
#line 1560 "conf_yacc.y"
{
#ifdef AF_INET6
struct acl_netblock_data and;
and.addr = SA(&(yyvsp[(1) - (1)].ip6addr));
and.salen = sizeof(struct sockaddr_in6);
and.cidr = 128;
list_add(glist, AC_NETBLOCK, &and);
#else
mg_log(LOG_ERR,
"IPv6 is not supported, ignore line %d",
conf_line);
#endif
}
break;
/* Line 1455 of yacc.c */
#line 4557 "y.tab.c"
default: break;
}
YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);
YYPOPSTACK (yylen);
yylen = 0;
YY_STACK_PRINT (yyss, yyssp);
*++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. */
yyn = yyr1[yyn];
yystate = yypgoto[yyn - YYNTOKENS] + *yyssp;
if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp)
yystate = yytable[yystate];
else
yystate = yydefgoto[yyn - YYNTOKENS];
goto yynewstate;
/*------------------------------------.
| yyerrlab -- here on detecting error |
`------------------------------------*/
yyerrlab:
/* If not already recovering from an error, report this error. */
if (!yyerrstatus)
{
++yynerrs;
#if ! YYERROR_VERBOSE
yyerror (YY_("syntax error"));
#else
{
YYSIZE_T yysize = yysyntax_error (0, yystate, yychar);
if (yymsg_alloc < yysize && yymsg_alloc < YYSTACK_ALLOC_MAXIMUM)
{
YYSIZE_T yyalloc = 2 * yysize;
if (! (yysize <= yyalloc && yyalloc <= YYSTACK_ALLOC_MAXIMUM))
yyalloc = YYSTACK_ALLOC_MAXIMUM;
if (yymsg != yymsgbuf)
YYSTACK_FREE (yymsg);
yymsg = (char *) YYSTACK_ALLOC (yyalloc);
if (yymsg)
yymsg_alloc = yyalloc;
else
{
yymsg = yymsgbuf;
yymsg_alloc = sizeof yymsgbuf;
}
}
if (0 < yysize && yysize <= yymsg_alloc)
{
(void) yysyntax_error (yymsg, yystate, yychar);
yyerror (yymsg);
}
else
{
yyerror (YY_("syntax error"));
if (yysize != 0)
goto yyexhaustedlab;
}
}
#endif
}
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 like GCC when the user code never invokes
YYERROR and the label yyerrorlab therefore never appears in user
code. */
if (/*CONSTCOND*/ 0)
goto yyerrorlab;
/* Do not reclaim the symbols of the rule which 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. */
for (;;)
{
yyn = yypact[yystate];
if (yyn != YYPACT_NINF)
{
yyn += YYTERROR;
if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
{
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",
yystos[yystate], yyvsp);
YYPOPSTACK (1);
yystate = *yyssp;
YY_STACK_PRINT (yyss, yyssp);
}
*++yyvsp = yylval;
/* Shift the error token. */
YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp);
yystate = yyn;
goto yynewstate;
/*-------------------------------------.
| yyacceptlab -- YYACCEPT comes here. |
`-------------------------------------*/
yyacceptlab:
yyresult = 0;
goto yyreturn;
/*-----------------------------------.
| yyabortlab -- YYABORT comes here. |
`-----------------------------------*/
yyabortlab:
yyresult = 1;
goto yyreturn;
#if !defined(yyoverflow) || YYERROR_VERBOSE
/*-------------------------------------------------.
| yyexhaustedlab -- memory exhaustion comes here. |
`-------------------------------------------------*/
yyexhaustedlab:
yyerror (YY_("memory exhausted"));
yyresult = 2;
/* Fall through. */
#endif
yyreturn:
if (yychar != YYEMPTY)
yydestruct ("Cleanup: discarding lookahead",
yytoken, &yylval);
/* Do not reclaim the symbols of the rule which action triggered
this YYABORT or YYACCEPT. */
YYPOPSTACK (yylen);
YY_STACK_PRINT (yyss, yyssp);
while (yyssp != yyss)
{
yydestruct ("Cleanup: popping",
yystos[*yyssp], yyvsp);
YYPOPSTACK (1);
}
#ifndef yyoverflow
if (yyss != yyssa)
YYSTACK_FREE (yyss);
#endif
#if YYERROR_VERBOSE
if (yymsg != yymsgbuf)
YYSTACK_FREE (yymsg);
#endif
/* Make sure YYID is used. */
return YYID (yyresult);
}
/* Line 1675 of yacc.c */
#line 1575 "conf_yacc.y"
#include "conf_lex.c"
Home |
Main Index |
Thread Index |
Old Index