/* A Bison parser, made by GNU Bison 3.0.1. */
/* Bison implementation for Yacc-like parsers in C
Copyright (C) 1984, 1989-1990, 2000-2013 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see . */
/* As a special exception, you may create a larger work that contains
part or all of the Bison parser skeleton and distribute that work
under terms of your choice, so long as that work isn't itself a
parser generator using the skeleton or a modified version thereof
as a parser skeleton. Alternatively, if you modify or redistribute
the parser skeleton itself, you may (at your option) remove this
special exception, which will cause the skeleton and the resulting
Bison output files to be licensed under the GNU General Public
License without this special exception.
This special exception was added by the Free Software Foundation in
version 2.2 of Bison. */
/* C LALR(1) parser skeleton written by Richard Stallman, by
simplifying the original so-called "semantic" parser. */
/* 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 "3.0.1"
/* Skeleton name. */
#define YYSKELETON_NAME "yacc.c"
/* Pure parsers. */
#define YYPURE 0
/* Push parsers. */
#define YYPUSH 0
/* Pull parsers. */
#define YYPULL 1
/* Copy the first part of user declarations. */
#line 25 "conf_parser.y" /* yacc.c:339 */
#define YY_NO_UNPUT
#include
#include
#include "config.h"
#include "stdinc.h"
#include "ircd.h"
#include "list.h"
#include "conf.h"
#include "conf_class.h"
#include "event.h"
#include "log.h"
#include "client.h" /* for UMODE_ALL only */
#include "irc_string.h"
#include "memory.h"
#include "modules.h"
#include "s_serv.h"
#include "hostmask.h"
#include "send.h"
#include "listener.h"
#include "resv.h"
#include "numeric.h"
#include "s_user.h"
#include "motd.h"
#ifdef HAVE_LIBCRYPTO
#include
#include
#include
#include
#endif
#include "rsa.h"
int yylex(void);
static struct
{
struct {
dlink_list list;
} mask,
leaf,
hub;
struct {
char buf[IRCD_BUFSIZE];
} name,
user,
host,
addr,
bind,
file,
ciph,
cert,
rpass,
spass,
class;
struct {
unsigned int value;
} flags,
modes,
size,
type,
port,
aftype,
ping_freq,
max_perip,
con_freq,
min_idle,
max_idle,
max_total,
max_global,
max_local,
max_ident,
max_sendq,
max_recvq,
cidr_bitlen_ipv4,
cidr_bitlen_ipv6,
number_per_cidr;
} block_state;
static void
reset_block_state(void)
{
dlink_node *ptr = NULL, *ptr_next = NULL;
DLINK_FOREACH_SAFE(ptr, ptr_next, block_state.mask.list.head)
{
MyFree(ptr->data);
dlinkDelete(ptr, &block_state.mask.list);
free_dlink_node(ptr);
}
DLINK_FOREACH_SAFE(ptr, ptr_next, block_state.leaf.list.head)
{
MyFree(ptr->data);
dlinkDelete(ptr, &block_state.leaf.list);
free_dlink_node(ptr);
}
DLINK_FOREACH_SAFE(ptr, ptr_next, block_state.hub.list.head)
{
MyFree(ptr->data);
dlinkDelete(ptr, &block_state.hub.list);
free_dlink_node(ptr);
}
memset(&block_state, 0, sizeof(block_state));
}
#line 181 "conf_parser.c" /* yacc.c:339 */
# ifndef YY_NULLPTR
# if defined __cplusplus && 201103L <= __cplusplus
# define YY_NULLPTR nullptr
# else
# define YY_NULLPTR 0
# endif
# endif
/* Enabling verbose error messages. */
#ifdef YYERROR_VERBOSE
# undef YYERROR_VERBOSE
# define YYERROR_VERBOSE 1
#else
# define YYERROR_VERBOSE 0
#endif
/* In a future release of Bison, this section will be replaced
by #include "y.tab.h". */
#ifndef YY_YY_CONF_PARSER_H_INCLUDED
# define YY_YY_CONF_PARSER_H_INCLUDED
/* Debug traces. */
#ifndef YYDEBUG
# define YYDEBUG 0
#endif
#if YYDEBUG
extern int yydebug;
#endif
/* Token type. */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
enum yytokentype
{
ACCEPT_PASSWORD = 258,
ADMIN = 259,
AFTYPE = 260,
ANTI_NICK_FLOOD = 261,
ANTI_SPAM_EXIT_MESSAGE_TIME = 262,
AUTOCONN = 263,
BYTES = 264,
KBYTES = 265,
MBYTES = 266,
CALLER_ID_WAIT = 267,
CAN_FLOOD = 268,
CHANNEL = 269,
CIDR_BITLEN_IPV4 = 270,
CIDR_BITLEN_IPV6 = 271,
CLASS = 272,
CONNECT = 273,
CONNECTFREQ = 274,
CYCLE_ON_HOST_CHANGE = 275,
DEFAULT_FLOODCOUNT = 276,
DEFAULT_SPLIT_SERVER_COUNT = 277,
DEFAULT_SPLIT_USER_COUNT = 278,
DENY = 279,
DESCRIPTION = 280,
DIE = 281,
DISABLE_AUTH = 282,
DISABLE_FAKE_CHANNELS = 283,
DISABLE_REMOTE_COMMANDS = 284,
DOTS_IN_IDENT = 285,
EGDPOOL_PATH = 286,
EMAIL = 287,
ENCRYPTED = 288,
EXCEED_LIMIT = 289,
EXEMPT = 290,
FAILED_OPER_NOTICE = 291,
FLATTEN_LINKS = 292,
GECOS = 293,
GENERAL = 294,
GLINE = 295,
GLINE_DURATION = 296,
GLINE_ENABLE = 297,
GLINE_EXEMPT = 298,
GLINE_MIN_CIDR = 299,
GLINE_MIN_CIDR6 = 300,
GLINE_REQUEST_DURATION = 301,
GLOBAL_KILL = 302,
HAVENT_READ_CONF = 303,
HIDDEN = 304,
HIDDEN_NAME = 305,
HIDE_IDLE_FROM_OPERS = 306,
HIDE_SERVER_IPS = 307,
HIDE_SERVERS = 308,
HIDE_SERVICES = 309,
HIDE_SPOOF_IPS = 310,
HOST = 311,
HUB = 312,
HUB_MASK = 313,
IGNORE_BOGUS_TS = 314,
INVISIBLE_ON_CONNECT = 315,
IP = 316,
IRCD_AUTH = 317,
IRCD_FLAGS = 318,
IRCD_SID = 319,
JOIN_FLOOD_COUNT = 320,
JOIN_FLOOD_TIME = 321,
KILL = 322,
KILL_CHASE_TIME_LIMIT = 323,
KLINE = 324,
KLINE_EXEMPT = 325,
KNOCK_DELAY = 326,
KNOCK_DELAY_CHANNEL = 327,
LEAF_MASK = 328,
LINKS_DELAY = 329,
LISTEN = 330,
MASK = 331,
MAX_ACCEPT = 332,
MAX_BANS = 333,
MAX_CHANS_PER_OPER = 334,
MAX_CHANS_PER_USER = 335,
MAX_GLOBAL = 336,
MAX_IDENT = 337,
MAX_IDLE = 338,
MAX_LOCAL = 339,
MAX_NICK_CHANGES = 340,
MAX_NICK_LENGTH = 341,
MAX_NICK_TIME = 342,
MAX_NUMBER = 343,
MAX_TARGETS = 344,
MAX_TOPIC_LENGTH = 345,
MAX_WATCH = 346,
MIN_IDLE = 347,
MIN_NONWILDCARD = 348,
MIN_NONWILDCARD_SIMPLE = 349,
MODULE = 350,
MODULES = 351,
MOTD = 352,
NAME = 353,
NEED_IDENT = 354,
NEED_PASSWORD = 355,
NETWORK_DESC = 356,
NETWORK_NAME = 357,
NICK = 358,
NO_CREATE_ON_SPLIT = 359,
NO_JOIN_ON_SPLIT = 360,
NO_OPER_FLOOD = 361,
NO_TILDE = 362,
NUMBER = 363,
NUMBER_PER_CIDR = 364,
NUMBER_PER_IP = 365,
OPER_ONLY_UMODES = 366,
OPER_PASS_RESV = 367,
OPER_UMODES = 368,
OPERATOR = 369,
OPERS_BYPASS_CALLERID = 370,
PACE_WAIT = 371,
PACE_WAIT_SIMPLE = 372,
PASSWORD = 373,
PATH = 374,
PING_COOKIE = 375,
PING_TIME = 376,
PORT = 377,
QSTRING = 378,
RANDOM_IDLE = 379,
REASON = 380,
REDIRPORT = 381,
REDIRSERV = 382,
REHASH = 383,
REMOTE = 384,
REMOTEBAN = 385,
RESV = 386,
RESV_EXEMPT = 387,
RSA_PRIVATE_KEY_FILE = 388,
RSA_PUBLIC_KEY_FILE = 389,
SECONDS = 390,
MINUTES = 391,
HOURS = 392,
DAYS = 393,
WEEKS = 394,
MONTHS = 395,
YEARS = 396,
SEND_PASSWORD = 397,
SENDQ = 398,
SERVERHIDE = 399,
SERVERINFO = 400,
SHORT_MOTD = 401,
SPOOF = 402,
SPOOF_NOTICE = 403,
SQUIT = 404,
SSL_CERTIFICATE_FILE = 405,
SSL_CERTIFICATE_FINGERPRINT = 406,
SSL_CONNECTION_REQUIRED = 407,
SSL_DH_PARAM_FILE = 408,
STATS_E_DISABLED = 409,
STATS_I_OPER_ONLY = 410,
STATS_K_OPER_ONLY = 411,
STATS_O_OPER_ONLY = 412,
STATS_P_OPER_ONLY = 413,
STATS_U_OPER_ONLY = 414,
T_ALL = 415,
T_BOTS = 416,
T_CALLERID = 417,
T_CCONN = 418,
T_CLUSTER = 419,
T_DEAF = 420,
T_DEBUG = 421,
T_DLINE = 422,
T_EXTERNAL = 423,
T_FARCONNECT = 424,
T_FILE = 425,
T_FULL = 426,
T_GLOBOPS = 427,
T_INVISIBLE = 428,
T_IPV4 = 429,
T_IPV6 = 430,
T_LOCOPS = 431,
T_LOG = 432,
T_MAX_CLIENTS = 433,
T_NCHANGE = 434,
T_NONONREG = 435,
T_OPERWALL = 436,
T_RECVQ = 437,
T_REJ = 438,
T_RESTART = 439,
T_SERVER = 440,
T_SERVICE = 441,
T_SERVICES_NAME = 442,
T_SERVNOTICE = 443,
T_SET = 444,
T_SHARED = 445,
T_SIZE = 446,
T_SKILL = 447,
T_SOFTCALLERID = 448,
T_SPY = 449,
T_SSL = 450,
T_SSL_CIPHER_LIST = 451,
T_SSL_CLIENT_METHOD = 452,
T_SSL_SERVER_METHOD = 453,
T_SSLV3 = 454,
T_TLSV1 = 455,
T_UMODES = 456,
T_UNAUTH = 457,
T_UNDLINE = 458,
T_UNLIMITED = 459,
T_UNRESV = 460,
T_UNXLINE = 461,
T_WALLOP = 462,
T_WALLOPS = 463,
T_WEBIRC = 464,
TBOOL = 465,
THROTTLE_TIME = 466,
TKLINE_EXPIRE_NOTICES = 467,
TMASKED = 468,
TRUE_NO_OPER_FLOOD = 469,
TS_MAX_DELTA = 470,
TS_WARN_DELTA = 471,
TWODOTS = 472,
TYPE = 473,
UNKLINE = 474,
USE_EGD = 475,
USE_LOGGING = 476,
USER = 477,
VHOST = 478,
VHOST6 = 479,
WARN_NO_NLINE = 480,
XLINE = 481
};
#endif
/* Tokens. */
#define ACCEPT_PASSWORD 258
#define ADMIN 259
#define AFTYPE 260
#define ANTI_NICK_FLOOD 261
#define ANTI_SPAM_EXIT_MESSAGE_TIME 262
#define AUTOCONN 263
#define BYTES 264
#define KBYTES 265
#define MBYTES 266
#define CALLER_ID_WAIT 267
#define CAN_FLOOD 268
#define CHANNEL 269
#define CIDR_BITLEN_IPV4 270
#define CIDR_BITLEN_IPV6 271
#define CLASS 272
#define CONNECT 273
#define CONNECTFREQ 274
#define CYCLE_ON_HOST_CHANGE 275
#define DEFAULT_FLOODCOUNT 276
#define DEFAULT_SPLIT_SERVER_COUNT 277
#define DEFAULT_SPLIT_USER_COUNT 278
#define DENY 279
#define DESCRIPTION 280
#define DIE 281
#define DISABLE_AUTH 282
#define DISABLE_FAKE_CHANNELS 283
#define DISABLE_REMOTE_COMMANDS 284
#define DOTS_IN_IDENT 285
#define EGDPOOL_PATH 286
#define EMAIL 287
#define ENCRYPTED 288
#define EXCEED_LIMIT 289
#define EXEMPT 290
#define FAILED_OPER_NOTICE 291
#define FLATTEN_LINKS 292
#define GECOS 293
#define GENERAL 294
#define GLINE 295
#define GLINE_DURATION 296
#define GLINE_ENABLE 297
#define GLINE_EXEMPT 298
#define GLINE_MIN_CIDR 299
#define GLINE_MIN_CIDR6 300
#define GLINE_REQUEST_DURATION 301
#define GLOBAL_KILL 302
#define HAVENT_READ_CONF 303
#define HIDDEN 304
#define HIDDEN_NAME 305
#define HIDE_IDLE_FROM_OPERS 306
#define HIDE_SERVER_IPS 307
#define HIDE_SERVERS 308
#define HIDE_SERVICES 309
#define HIDE_SPOOF_IPS 310
#define HOST 311
#define HUB 312
#define HUB_MASK 313
#define IGNORE_BOGUS_TS 314
#define INVISIBLE_ON_CONNECT 315
#define IP 316
#define IRCD_AUTH 317
#define IRCD_FLAGS 318
#define IRCD_SID 319
#define JOIN_FLOOD_COUNT 320
#define JOIN_FLOOD_TIME 321
#define KILL 322
#define KILL_CHASE_TIME_LIMIT 323
#define KLINE 324
#define KLINE_EXEMPT 325
#define KNOCK_DELAY 326
#define KNOCK_DELAY_CHANNEL 327
#define LEAF_MASK 328
#define LINKS_DELAY 329
#define LISTEN 330
#define MASK 331
#define MAX_ACCEPT 332
#define MAX_BANS 333
#define MAX_CHANS_PER_OPER 334
#define MAX_CHANS_PER_USER 335
#define MAX_GLOBAL 336
#define MAX_IDENT 337
#define MAX_IDLE 338
#define MAX_LOCAL 339
#define MAX_NICK_CHANGES 340
#define MAX_NICK_LENGTH 341
#define MAX_NICK_TIME 342
#define MAX_NUMBER 343
#define MAX_TARGETS 344
#define MAX_TOPIC_LENGTH 345
#define MAX_WATCH 346
#define MIN_IDLE 347
#define MIN_NONWILDCARD 348
#define MIN_NONWILDCARD_SIMPLE 349
#define MODULE 350
#define MODULES 351
#define MOTD 352
#define NAME 353
#define NEED_IDENT 354
#define NEED_PASSWORD 355
#define NETWORK_DESC 356
#define NETWORK_NAME 357
#define NICK 358
#define NO_CREATE_ON_SPLIT 359
#define NO_JOIN_ON_SPLIT 360
#define NO_OPER_FLOOD 361
#define NO_TILDE 362
#define NUMBER 363
#define NUMBER_PER_CIDR 364
#define NUMBER_PER_IP 365
#define OPER_ONLY_UMODES 366
#define OPER_PASS_RESV 367
#define OPER_UMODES 368
#define OPERATOR 369
#define OPERS_BYPASS_CALLERID 370
#define PACE_WAIT 371
#define PACE_WAIT_SIMPLE 372
#define PASSWORD 373
#define PATH 374
#define PING_COOKIE 375
#define PING_TIME 376
#define PORT 377
#define QSTRING 378
#define RANDOM_IDLE 379
#define REASON 380
#define REDIRPORT 381
#define REDIRSERV 382
#define REHASH 383
#define REMOTE 384
#define REMOTEBAN 385
#define RESV 386
#define RESV_EXEMPT 387
#define RSA_PRIVATE_KEY_FILE 388
#define RSA_PUBLIC_KEY_FILE 389
#define SECONDS 390
#define MINUTES 391
#define HOURS 392
#define DAYS 393
#define WEEKS 394
#define MONTHS 395
#define YEARS 396
#define SEND_PASSWORD 397
#define SENDQ 398
#define SERVERHIDE 399
#define SERVERINFO 400
#define SHORT_MOTD 401
#define SPOOF 402
#define SPOOF_NOTICE 403
#define SQUIT 404
#define SSL_CERTIFICATE_FILE 405
#define SSL_CERTIFICATE_FINGERPRINT 406
#define SSL_CONNECTION_REQUIRED 407
#define SSL_DH_PARAM_FILE 408
#define STATS_E_DISABLED 409
#define STATS_I_OPER_ONLY 410
#define STATS_K_OPER_ONLY 411
#define STATS_O_OPER_ONLY 412
#define STATS_P_OPER_ONLY 413
#define STATS_U_OPER_ONLY 414
#define T_ALL 415
#define T_BOTS 416
#define T_CALLERID 417
#define T_CCONN 418
#define T_CLUSTER 419
#define T_DEAF 420
#define T_DEBUG 421
#define T_DLINE 422
#define T_EXTERNAL 423
#define T_FARCONNECT 424
#define T_FILE 425
#define T_FULL 426
#define T_GLOBOPS 427
#define T_INVISIBLE 428
#define T_IPV4 429
#define T_IPV6 430
#define T_LOCOPS 431
#define T_LOG 432
#define T_MAX_CLIENTS 433
#define T_NCHANGE 434
#define T_NONONREG 435
#define T_OPERWALL 436
#define T_RECVQ 437
#define T_REJ 438
#define T_RESTART 439
#define T_SERVER 440
#define T_SERVICE 441
#define T_SERVICES_NAME 442
#define T_SERVNOTICE 443
#define T_SET 444
#define T_SHARED 445
#define T_SIZE 446
#define T_SKILL 447
#define T_SOFTCALLERID 448
#define T_SPY 449
#define T_SSL 450
#define T_SSL_CIPHER_LIST 451
#define T_SSL_CLIENT_METHOD 452
#define T_SSL_SERVER_METHOD 453
#define T_SSLV3 454
#define T_TLSV1 455
#define T_UMODES 456
#define T_UNAUTH 457
#define T_UNDLINE 458
#define T_UNLIMITED 459
#define T_UNRESV 460
#define T_UNXLINE 461
#define T_WALLOP 462
#define T_WALLOPS 463
#define T_WEBIRC 464
#define TBOOL 465
#define THROTTLE_TIME 466
#define TKLINE_EXPIRE_NOTICES 467
#define TMASKED 468
#define TRUE_NO_OPER_FLOOD 469
#define TS_MAX_DELTA 470
#define TS_WARN_DELTA 471
#define TWODOTS 472
#define TYPE 473
#define UNKLINE 474
#define USE_EGD 475
#define USE_LOGGING 476
#define USER 477
#define VHOST 478
#define VHOST6 479
#define WARN_NO_NLINE 480
#define XLINE 481
/* Value type. */
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef union YYSTYPE YYSTYPE;
union YYSTYPE
{
#line 140 "conf_parser.y" /* yacc.c:355 */
int number;
char *string;
#line 678 "conf_parser.c" /* yacc.c:355 */
};
# define YYSTYPE_IS_TRIVIAL 1
# define YYSTYPE_IS_DECLARED 1
#endif
extern YYSTYPE yylval;
int yyparse (void);
#endif /* !YY_YY_CONF_PARSER_H_INCLUDED */
/* Copy the second part of user declarations. */
#line 693 "conf_parser.c" /* yacc.c:358 */
#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;
#else
typedef signed char 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
# include /* 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 defined YYENABLE_NLS && YYENABLE_NLS
# if ENABLE_NLS
# include /* INFRINGES ON USER NAME SPACE */
# define YY_(Msgid) dgettext ("bison-runtime", Msgid)
# endif
# endif
# ifndef YY_
# define YY_(Msgid) Msgid
# endif
#endif
#ifndef YY_ATTRIBUTE
# if (defined __GNUC__ \
&& (2 < __GNUC__ || (__GNUC__ == 2 && 96 <= __GNUC_MINOR__))) \
|| defined __SUNPRO_C && 0x5110 <= __SUNPRO_C
# define YY_ATTRIBUTE(Spec) __attribute__(Spec)
# else
# define YY_ATTRIBUTE(Spec) /* empty */
# endif
#endif
#ifndef YY_ATTRIBUTE_PURE
# define YY_ATTRIBUTE_PURE YY_ATTRIBUTE ((__pure__))
#endif
#ifndef YY_ATTRIBUTE_UNUSED
# define YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE ((__unused__))
#endif
#if !defined _Noreturn \
&& (!defined __STDC_VERSION__ || __STDC_VERSION__ < 201112)
# if defined _MSC_VER && 1200 <= _MSC_VER
# define _Noreturn __declspec (noreturn)
# else
# define _Noreturn YY_ATTRIBUTE ((__noreturn__))
# 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
#if defined __GNUC__ && 407 <= __GNUC__ * 100 + __GNUC_MINOR__
/* Suppress an incorrect diagnostic about yylval being uninitialized. */
# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
_Pragma ("GCC diagnostic push") \
_Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")\
_Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")
# define YY_IGNORE_MAYBE_UNINITIALIZED_END \
_Pragma ("GCC diagnostic pop")
#else
# define YY_INITIAL_VALUE(Value) Value
#endif
#ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
# define YY_IGNORE_MAYBE_UNINITIALIZED_END
#endif
#ifndef YY_INITIAL_VALUE
# define YY_INITIAL_VALUE(Value) /* Nothing. */
#endif
#if ! defined 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 /* INFRINGES ON USER NAME SPACE */
# elif defined _AIX
# define YYSTACK_ALLOC __alloca
# elif defined _MSC_VER
# include /* INFRINGES ON USER NAME SPACE */
# define alloca _alloca
# else
# define YYSTACK_ALLOC alloca
# if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS
# include /* INFRINGES ON USER NAME SPACE */
/* Use EXIT_SUCCESS as a witness for stdlib.h. */
# ifndef EXIT_SUCCESS
# define EXIT_SUCCESS 0
# endif
# endif
# endif
# endif
# endif
# ifdef YYSTACK_ALLOC
/* Pacify GCC's 'empty if-body' warning. */
# define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
# ifndef YYSTACK_ALLOC_MAXIMUM
/* The OS might guarantee only one guard page at the bottom of the stack,
and a page size can be as small as 4096 bytes. So we cannot safely
invoke alloca (N) if N exceeds 4096. Use a slightly smaller number
to allow for a few compiler-allocated temporary stack slots. */
# define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */
# endif
# else
# define YYSTACK_ALLOC YYMALLOC
# define YYSTACK_FREE YYFREE
# ifndef YYSTACK_ALLOC_MAXIMUM
# define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
# endif
# if (defined __cplusplus && ! defined EXIT_SUCCESS \
&& ! ((defined YYMALLOC || defined malloc) \
&& (defined YYFREE || defined free)))
# include /* INFRINGES ON USER NAME SPACE */
# ifndef EXIT_SUCCESS
# define EXIT_SUCCESS 0
# endif
# endif
# ifndef YYMALLOC
# define YYMALLOC malloc
# if ! defined malloc && ! defined EXIT_SUCCESS
void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
# endif
# endif
# ifndef YYFREE
# define YYFREE free
# if ! defined free && ! defined EXIT_SUCCESS
void free (void *); /* INFRINGES ON USER NAME SPACE */
# endif
# endif
# endif
#endif /* ! defined yyoverflow || 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)
# define YYCOPY_NEEDED 1
/* Relocate STACK from its old location to the new one. The
local variables YYSIZE and YYSTACKSIZE give the old and new number of
elements in the stack, and YYPTR gives the new location of the
stack. Advance YYPTR to a properly aligned location for the next
stack. */
# define YYSTACK_RELOCATE(Stack_alloc, Stack) \
do \
{ \
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 (0)
#endif
#if defined YYCOPY_NEEDED && YYCOPY_NEEDED
/* Copy COUNT objects from SRC to DST. The source and destination do
not overlap. */
# ifndef YYCOPY
# if defined __GNUC__ && 1 < __GNUC__
# define YYCOPY(Dst, Src, Count) \
__builtin_memcpy (Dst, Src, (Count) * sizeof (*(Src)))
# else
# define YYCOPY(Dst, Src, Count) \
do \
{ \
YYSIZE_T yyi; \
for (yyi = 0; yyi < (Count); yyi++) \
(Dst)[yyi] = (Src)[yyi]; \
} \
while (0)
# endif
# endif
#endif /* !YYCOPY_NEEDED */
/* YYFINAL -- State number of the termination state. */
#define YYFINAL 2
/* YYLAST -- Last index in YYTABLE. */
#define YYLAST 1236
/* YYNTOKENS -- Number of terminals. */
#define YYNTOKENS 233
/* YYNNTS -- Number of nonterminals. */
#define YYNNTS 291
/* YYNRULES -- Number of rules. */
#define YYNRULES 656
/* YYNSTATES -- Number of states. */
#define YYNSTATES 1287
/* YYTRANSLATE[YYX] -- Symbol number corresponding to YYX as returned
by yylex, with out-of-bounds checking. */
#define YYUNDEFTOK 2
#define YYMAXUTOK 481
#define YYTRANSLATE(YYX) \
((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
/* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM
as returned by yylex, without out-of-bounds checking. */
static const yytype_uint8 yytranslate[] =
{
0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 231, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 232, 227,
2, 230, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 229, 2, 228, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
45, 46, 47, 48, 49, 50, 51, 52, 53, 54,
55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
65, 66, 67, 68, 69, 70, 71, 72, 73, 74,
75, 76, 77, 78, 79, 80, 81, 82, 83, 84,
85, 86, 87, 88, 89, 90, 91, 92, 93, 94,
95, 96, 97, 98, 99, 100, 101, 102, 103, 104,
105, 106, 107, 108, 109, 110, 111, 112, 113, 114,
115, 116, 117, 118, 119, 120, 121, 122, 123, 124,
125, 126, 127, 128, 129, 130, 131, 132, 133, 134,
135, 136, 137, 138, 139, 140, 141, 142, 143, 144,
145, 146, 147, 148, 149, 150, 151, 152, 153, 154,
155, 156, 157, 158, 159, 160, 161, 162, 163, 164,
165, 166, 167, 168, 169, 170, 171, 172, 173, 174,
175, 176, 177, 178, 179, 180, 181, 182, 183, 184,
185, 186, 187, 188, 189, 190, 191, 192, 193, 194,
195, 196, 197, 198, 199, 200, 201, 202, 203, 204,
205, 206, 207, 208, 209, 210, 211, 212, 213, 214,
215, 216, 217, 218, 219, 220, 221, 222, 223, 224,
225, 226
};
#if YYDEBUG
/* YYRLINE[YYN] -- Source line where rule number YYN was defined. */
static const yytype_uint16 yyrline[] =
{
0, 370, 370, 371, 374, 375, 376, 377, 378, 379,
380, 381, 382, 383, 384, 385, 386, 387, 388, 389,
390, 391, 392, 393, 394, 395, 396, 400, 400, 401,
405, 409, 413, 417, 421, 425, 429, 435, 435, 436,
437, 438, 439, 446, 449, 449, 450, 450, 450, 452,
458, 465, 467, 467, 468, 468, 469, 469, 470, 470,
471, 471, 472, 472, 473, 473, 474, 474, 475, 475,
476, 477, 480, 481, 483, 483, 484, 490, 498, 498,
499, 505, 513, 555, 614, 642, 650, 665, 680, 689,
703, 712, 740, 770, 795, 817, 839, 848, 850, 850,
851, 851, 852, 852, 854, 863, 872, 885, 884, 902,
902, 903, 903, 903, 905, 911, 920, 921, 921, 923,
923, 924, 926, 933, 933, 946, 947, 949, 949, 950,
950, 952, 960, 963, 969, 968, 974, 974, 975, 979,
983, 987, 991, 995, 999, 1003, 1007, 1018, 1017, 1097,
1097, 1098, 1098, 1098, 1099, 1099, 1099, 1100, 1100, 1101,
1102, 1102, 1104, 1110, 1116, 1122, 1133, 1139, 1145, 1156,
1163, 1162, 1168, 1168, 1169, 1173, 1177, 1181, 1185, 1189,
1193, 1197, 1201, 1205, 1209, 1213, 1217, 1221, 1225, 1229,
1233, 1237, 1241, 1245, 1249, 1256, 1255, 1261, 1261, 1262,
1266, 1270, 1274, 1278, 1282, 1286, 1290, 1294, 1298, 1302,
1306, 1310, 1314, 1318, 1322, 1326, 1330, 1334, 1338, 1342,
1346, 1350, 1361, 1360, 1421, 1421, 1422, 1423, 1423, 1424,
1425, 1426, 1427, 1428, 1429, 1430, 1431, 1432, 1432, 1433,
1434, 1435, 1436, 1438, 1444, 1450, 1456, 1462, 1468, 1474,
1480, 1486, 1492, 1499, 1505, 1511, 1517, 1526, 1536, 1535,
1541, 1541, 1542, 1546, 1557, 1556, 1563, 1562, 1567, 1567,
1568, 1572, 1576, 1582, 1582, 1583, 1583, 1583, 1583, 1583,
1585, 1585, 1587, 1587, 1589, 1603, 1623, 1629, 1639, 1638,
1680, 1680, 1681, 1681, 1681, 1681, 1682, 1682, 1682, 1683,
1683, 1685, 1691, 1697, 1703, 1715, 1714, 1720, 1720, 1721,
1725, 1729, 1733, 1737, 1741, 1745, 1749, 1753, 1757, 1763,
1777, 1786, 1800, 1799, 1814, 1814, 1815, 1815, 1815, 1815,
1817, 1823, 1829, 1839, 1841, 1841, 1842, 1842, 1844, 1860,
1859, 1884, 1884, 1885, 1885, 1885, 1885, 1887, 1893, 1913,
1912, 1918, 1918, 1919, 1923, 1927, 1931, 1935, 1939, 1943,
1947, 1951, 1955, 1965, 1964, 1985, 1985, 1986, 1986, 1986,
1988, 1995, 1994, 2000, 2000, 2001, 2005, 2009, 2013, 2017,
2021, 2025, 2029, 2033, 2037, 2047, 2046, 2118, 2118, 2119,
2119, 2119, 2120, 2120, 2121, 2122, 2122, 2122, 2123, 2123,
2123, 2124, 2124, 2125, 2127, 2133, 2139, 2145, 2158, 2171,
2177, 2183, 2187, 2196, 2195, 2200, 2200, 2201, 2205, 2211,
2222, 2228, 2234, 2240, 2256, 2255, 2281, 2281, 2282, 2282,
2282, 2284, 2304, 2314, 2313, 2340, 2340, 2341, 2341, 2341,
2343, 2349, 2358, 2360, 2360, 2361, 2361, 2363, 2381, 2380,
2403, 2403, 2404, 2404, 2404, 2406, 2412, 2421, 2424, 2424,
2425, 2425, 2426, 2426, 2427, 2427, 2428, 2428, 2429, 2429,
2430, 2431, 2432, 2432, 2433, 2433, 2434, 2434, 2435, 2435,
2436, 2437, 2437, 2438, 2438, 2439, 2439, 2440, 2440, 2441,
2441, 2442, 2442, 2443, 2443, 2444, 2444, 2445, 2446, 2447,
2447, 2448, 2448, 2449, 2450, 2451, 2452, 2452, 2453, 2454,
2457, 2462, 2468, 2474, 2480, 2486, 2491, 2496, 2501, 2506,
2511, 2516, 2521, 2526, 2531, 2536, 2541, 2546, 2551, 2557,
2568, 2573, 2578, 2583, 2588, 2593, 2598, 2601, 2606, 2609,
2614, 2619, 2624, 2629, 2634, 2639, 2644, 2649, 2654, 2659,
2664, 2669, 2678, 2687, 2692, 2697, 2703, 2702, 2707, 2707,
2708, 2711, 2714, 2717, 2720, 2723, 2726, 2729, 2732, 2735,
2738, 2741, 2744, 2747, 2750, 2753, 2756, 2759, 2762, 2765,
2768, 2774, 2773, 2778, 2778, 2779, 2782, 2785, 2788, 2791,
2794, 2797, 2800, 2803, 2806, 2809, 2812, 2815, 2818, 2821,
2824, 2827, 2830, 2833, 2836, 2839, 2844, 2849, 2854, 2863,
2866, 2866, 2867, 2868, 2868, 2869, 2869, 2870, 2871, 2872,
2873, 2874, 2874, 2875, 2875, 2877, 2882, 2887, 2892, 2897,
2902, 2907, 2912, 2917, 2922, 2927, 2932, 2940, 2943, 2943,
2944, 2944, 2945, 2946, 2947, 2948, 2948, 2949, 2950, 2952,
2958, 2964, 2970, 2976, 2985, 2999, 3005
};
#endif
#if YYDEBUG || YYERROR_VERBOSE || 0
/* 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", "ACCEPT_PASSWORD", "ADMIN", "AFTYPE",
"ANTI_NICK_FLOOD", "ANTI_SPAM_EXIT_MESSAGE_TIME", "AUTOCONN", "BYTES",
"KBYTES", "MBYTES", "CALLER_ID_WAIT", "CAN_FLOOD", "CHANNEL",
"CIDR_BITLEN_IPV4", "CIDR_BITLEN_IPV6", "CLASS", "CONNECT",
"CONNECTFREQ", "CYCLE_ON_HOST_CHANGE", "DEFAULT_FLOODCOUNT",
"DEFAULT_SPLIT_SERVER_COUNT", "DEFAULT_SPLIT_USER_COUNT", "DENY",
"DESCRIPTION", "DIE", "DISABLE_AUTH", "DISABLE_FAKE_CHANNELS",
"DISABLE_REMOTE_COMMANDS", "DOTS_IN_IDENT", "EGDPOOL_PATH", "EMAIL",
"ENCRYPTED", "EXCEED_LIMIT", "EXEMPT", "FAILED_OPER_NOTICE",
"FLATTEN_LINKS", "GECOS", "GENERAL", "GLINE", "GLINE_DURATION",
"GLINE_ENABLE", "GLINE_EXEMPT", "GLINE_MIN_CIDR", "GLINE_MIN_CIDR6",
"GLINE_REQUEST_DURATION", "GLOBAL_KILL", "HAVENT_READ_CONF", "HIDDEN",
"HIDDEN_NAME", "HIDE_IDLE_FROM_OPERS", "HIDE_SERVER_IPS", "HIDE_SERVERS",
"HIDE_SERVICES", "HIDE_SPOOF_IPS", "HOST", "HUB", "HUB_MASK",
"IGNORE_BOGUS_TS", "INVISIBLE_ON_CONNECT", "IP", "IRCD_AUTH",
"IRCD_FLAGS", "IRCD_SID", "JOIN_FLOOD_COUNT", "JOIN_FLOOD_TIME", "KILL",
"KILL_CHASE_TIME_LIMIT", "KLINE", "KLINE_EXEMPT", "KNOCK_DELAY",
"KNOCK_DELAY_CHANNEL", "LEAF_MASK", "LINKS_DELAY", "LISTEN", "MASK",
"MAX_ACCEPT", "MAX_BANS", "MAX_CHANS_PER_OPER", "MAX_CHANS_PER_USER",
"MAX_GLOBAL", "MAX_IDENT", "MAX_IDLE", "MAX_LOCAL", "MAX_NICK_CHANGES",
"MAX_NICK_LENGTH", "MAX_NICK_TIME", "MAX_NUMBER", "MAX_TARGETS",
"MAX_TOPIC_LENGTH", "MAX_WATCH", "MIN_IDLE", "MIN_NONWILDCARD",
"MIN_NONWILDCARD_SIMPLE", "MODULE", "MODULES", "MOTD", "NAME",
"NEED_IDENT", "NEED_PASSWORD", "NETWORK_DESC", "NETWORK_NAME", "NICK",
"NO_CREATE_ON_SPLIT", "NO_JOIN_ON_SPLIT", "NO_OPER_FLOOD", "NO_TILDE",
"NUMBER", "NUMBER_PER_CIDR", "NUMBER_PER_IP", "OPER_ONLY_UMODES",
"OPER_PASS_RESV", "OPER_UMODES", "OPERATOR", "OPERS_BYPASS_CALLERID",
"PACE_WAIT", "PACE_WAIT_SIMPLE", "PASSWORD", "PATH", "PING_COOKIE",
"PING_TIME", "PORT", "QSTRING", "RANDOM_IDLE", "REASON", "REDIRPORT",
"REDIRSERV", "REHASH", "REMOTE", "REMOTEBAN", "RESV", "RESV_EXEMPT",
"RSA_PRIVATE_KEY_FILE", "RSA_PUBLIC_KEY_FILE", "SECONDS", "MINUTES",
"HOURS", "DAYS", "WEEKS", "MONTHS", "YEARS", "SEND_PASSWORD", "SENDQ",
"SERVERHIDE", "SERVERINFO", "SHORT_MOTD", "SPOOF", "SPOOF_NOTICE",
"SQUIT", "SSL_CERTIFICATE_FILE", "SSL_CERTIFICATE_FINGERPRINT",
"SSL_CONNECTION_REQUIRED", "SSL_DH_PARAM_FILE", "STATS_E_DISABLED",
"STATS_I_OPER_ONLY", "STATS_K_OPER_ONLY", "STATS_O_OPER_ONLY",
"STATS_P_OPER_ONLY", "STATS_U_OPER_ONLY", "T_ALL", "T_BOTS",
"T_CALLERID", "T_CCONN", "T_CLUSTER", "T_DEAF", "T_DEBUG", "T_DLINE",
"T_EXTERNAL", "T_FARCONNECT", "T_FILE", "T_FULL", "T_GLOBOPS",
"T_INVISIBLE", "T_IPV4", "T_IPV6", "T_LOCOPS", "T_LOG", "T_MAX_CLIENTS",
"T_NCHANGE", "T_NONONREG", "T_OPERWALL", "T_RECVQ", "T_REJ", "T_RESTART",
"T_SERVER", "T_SERVICE", "T_SERVICES_NAME", "T_SERVNOTICE", "T_SET",
"T_SHARED", "T_SIZE", "T_SKILL", "T_SOFTCALLERID", "T_SPY", "T_SSL",
"T_SSL_CIPHER_LIST", "T_SSL_CLIENT_METHOD", "T_SSL_SERVER_METHOD",
"T_SSLV3", "T_TLSV1", "T_UMODES", "T_UNAUTH", "T_UNDLINE", "T_UNLIMITED",
"T_UNRESV", "T_UNXLINE", "T_WALLOP", "T_WALLOPS", "T_WEBIRC", "TBOOL",
"THROTTLE_TIME", "TKLINE_EXPIRE_NOTICES", "TMASKED",
"TRUE_NO_OPER_FLOOD", "TS_MAX_DELTA", "TS_WARN_DELTA", "TWODOTS", "TYPE",
"UNKLINE", "USE_EGD", "USE_LOGGING", "USER", "VHOST", "VHOST6",
"WARN_NO_NLINE", "XLINE", "';'", "'}'", "'{'", "'='", "','", "':'",
"$accept", "conf", "conf_item", "timespec_", "timespec", "sizespec_",
"sizespec", "modules_entry", "modules_items", "modules_item",
"modules_module", "modules_path", "serverinfo_entry", "serverinfo_items",
"serverinfo_item", "serverinfo_ssl_client_method",
"serverinfo_ssl_server_method", "client_method_types",
"client_method_type_item", "server_method_types",
"server_method_type_item", "serverinfo_ssl_certificate_file",
"serverinfo_rsa_private_key_file", "serverinfo_ssl_dh_param_file",
"serverinfo_ssl_cipher_list", "serverinfo_name", "serverinfo_sid",
"serverinfo_description", "serverinfo_network_name",
"serverinfo_network_desc", "serverinfo_vhost", "serverinfo_vhost6",
"serverinfo_max_clients", "serverinfo_max_nick_length",
"serverinfo_max_topic_length", "serverinfo_hub", "admin_entry",
"admin_items", "admin_item", "admin_name", "admin_email",
"admin_description", "motd_entry", "$@1", "motd_items", "motd_item",
"motd_mask", "motd_file", "logging_entry", "logging_items",
"logging_item", "logging_use_logging", "logging_file_entry", "$@2",
"logging_file_items", "logging_file_item", "logging_file_name",
"logging_file_size", "logging_file_type", "$@3",
"logging_file_type_items", "logging_file_type_item", "oper_entry", "$@4",
"oper_items", "oper_item", "oper_name", "oper_user", "oper_password",
"oper_encrypted", "oper_rsa_public_key_file",
"oper_ssl_certificate_fingerprint", "oper_ssl_connection_required",
"oper_class", "oper_umodes", "$@5", "oper_umodes_items",
"oper_umodes_item", "oper_flags", "$@6", "oper_flags_items",
"oper_flags_item", "class_entry", "$@7", "class_items", "class_item",
"class_name", "class_ping_time", "class_number_per_ip",
"class_connectfreq", "class_max_number", "class_max_global",
"class_max_local", "class_max_ident", "class_sendq", "class_recvq",
"class_cidr_bitlen_ipv4", "class_cidr_bitlen_ipv6",
"class_number_per_cidr", "class_min_idle", "class_max_idle",
"class_flags", "$@8", "class_flags_items", "class_flags_item",
"listen_entry", "$@9", "listen_flags", "$@10", "listen_flags_items",
"listen_flags_item", "listen_items", "listen_item", "listen_port",
"$@11", "port_items", "port_item", "listen_address", "listen_host",
"auth_entry", "$@12", "auth_items", "auth_item", "auth_user",
"auth_passwd", "auth_class", "auth_encrypted", "auth_flags", "$@13",
"auth_flags_items", "auth_flags_item", "auth_spoof", "auth_redir_serv",
"auth_redir_port", "resv_entry", "$@14", "resv_items", "resv_item",
"resv_mask", "resv_reason", "resv_exempt", "service_entry",
"service_items", "service_item", "service_name", "shared_entry", "$@15",
"shared_items", "shared_item", "shared_name", "shared_user",
"shared_type", "$@16", "shared_types", "shared_type_item",
"cluster_entry", "$@17", "cluster_items", "cluster_item", "cluster_name",
"cluster_type", "$@18", "cluster_types", "cluster_type_item",
"connect_entry", "$@19", "connect_items", "connect_item", "connect_name",
"connect_host", "connect_vhost", "connect_send_password",
"connect_accept_password", "connect_ssl_certificate_fingerprint",
"connect_port", "connect_aftype", "connect_flags", "$@20",
"connect_flags_items", "connect_flags_item", "connect_encrypted",
"connect_hub_mask", "connect_leaf_mask", "connect_class",
"connect_ssl_cipher_list", "kill_entry", "$@21", "kill_items",
"kill_item", "kill_user", "kill_reason", "deny_entry", "$@22",
"deny_items", "deny_item", "deny_ip", "deny_reason", "exempt_entry",
"exempt_items", "exempt_item", "exempt_ip", "gecos_entry", "$@23",
"gecos_items", "gecos_item", "gecos_name", "gecos_reason",
"general_entry", "general_items", "general_item", "general_max_watch",
"general_cycle_on_host_change", "general_gline_enable",
"general_gline_duration", "general_gline_request_duration",
"general_gline_min_cidr", "general_gline_min_cidr6",
"general_tkline_expire_notices", "general_kill_chase_time_limit",
"general_hide_spoof_ips", "general_ignore_bogus_ts",
"general_failed_oper_notice", "general_anti_nick_flood",
"general_max_nick_time", "general_max_nick_changes",
"general_max_accept", "general_anti_spam_exit_message_time",
"general_ts_warn_delta", "general_ts_max_delta",
"general_havent_read_conf", "general_invisible_on_connect",
"general_warn_no_nline", "general_stats_e_disabled",
"general_stats_o_oper_only", "general_stats_P_oper_only",
"general_stats_u_oper_only", "general_stats_k_oper_only",
"general_stats_i_oper_only", "general_pace_wait",
"general_caller_id_wait", "general_opers_bypass_callerid",
"general_pace_wait_simple", "general_short_motd",
"general_no_oper_flood", "general_true_no_oper_flood",
"general_oper_pass_resv", "general_dots_in_ident", "general_max_targets",
"general_use_egd", "general_egdpool_path", "general_services_name",
"general_ping_cookie", "general_disable_auth", "general_throttle_time",
"general_oper_umodes", "$@24", "umode_oitems", "umode_oitem",
"general_oper_only_umodes", "$@25", "umode_items", "umode_item",
"general_min_nonwildcard", "general_min_nonwildcard_simple",
"general_default_floodcount", "channel_entry", "channel_items",
"channel_item", "channel_disable_fake_channels", "channel_knock_delay",
"channel_knock_delay_channel", "channel_max_chans_per_user",
"channel_max_chans_per_oper", "channel_max_bans",
"channel_default_split_user_count", "channel_default_split_server_count",
"channel_no_create_on_split", "channel_no_join_on_split",
"channel_jflood_count", "channel_jflood_time", "serverhide_entry",
"serverhide_items", "serverhide_item", "serverhide_flatten_links",
"serverhide_disable_remote_commands", "serverhide_hide_servers",
"serverhide_hide_services", "serverhide_hidden_name",
"serverhide_links_delay", "serverhide_hidden",
"serverhide_hide_server_ips", YY_NULLPTR
};
#endif
# ifdef YYPRINT
/* YYTOKNUM[NUM] -- (External) token number corresponding to the
(internal) symbol number NUM (which must be that of a token). */
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, 388, 389, 390, 391, 392, 393, 394,
395, 396, 397, 398, 399, 400, 401, 402, 403, 404,
405, 406, 407, 408, 409, 410, 411, 412, 413, 414,
415, 416, 417, 418, 419, 420, 421, 422, 423, 424,
425, 426, 427, 428, 429, 430, 431, 432, 433, 434,
435, 436, 437, 438, 439, 440, 441, 442, 443, 444,
445, 446, 447, 448, 449, 450, 451, 452, 453, 454,
455, 456, 457, 458, 459, 460, 461, 462, 463, 464,
465, 466, 467, 468, 469, 470, 471, 472, 473, 474,
475, 476, 477, 478, 479, 480, 481, 59, 125, 123,
61, 44, 58
};
# endif
#define YYPACT_NINF -755
#define yypact_value_is_default(Yystate) \
(!!((Yystate) == (-755)))
#define YYTABLE_NINF -124
#define yytable_value_is_error(Yytable_value) \
0
/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
STATE-NUM. */
static const yytype_int16 yypact[] =
{
-755, 716, -755, -198, -223, -208, -755, -755, -755, -186,
-755, -184, -755, -755, -755, -179, -755, -755, -755, -168,
-154, -755, -146, -123, -755, -755, -755, -755, -755, -755,
-755, -755, -755, -755, -755, -755, -755, -755, -755, -755,
-755, -755, -755, -755, -755, -755, -755, -755, -755, 282,
923, -84, -59, -46, 130, -45, 414, -39, -26, -19,
79, -18, -11, 21, 503, 408, 40, 39, 53, 41,
-14, -1, 64, 66, 7, -755, -755, -755, -755, -755,
81, 82, 96, 100, 102, 104, 105, 117, 119, 121,
127, 128, 13, -755, -755, -755, -755, -755, -755, -755,
-755, -755, -755, -755, -755, -755, 706, 577, 61, -755,
131, 10, -755, -755, 36, -755, 132, 133, 135, 139,
141, 142, 143, 144, 146, 148, 151, 153, 157, 158,
160, 162, 164, 165, 166, 168, 170, 180, 182, 183,
187, 188, 189, -755, 192, -755, 193, 195, 197, 199,
200, 201, 202, 206, 207, 208, 209, 212, 213, 216,
217, 219, 221, 222, 223, 108, -755, -755, -755, -755,
-755, -755, -755, -755, -755, -755, -755, -755, -755, -755,
-755, -755, -755, -755, -755, -755, -755, -755, -755, -755,
-755, -755, -755, -755, -755, -755, -755, -755, -755, -755,
-755, -755, -755, -755, -755, -755, -755, -755, -755, -755,
-755, -755, -755, -755, -755, -755, 353, 8, 292, 29,
227, 231, 24, -755, -755, -755, 22, 546, 47, -755,
236, 237, 240, 246, 248, 251, 253, 254, 15, -755,
-755, -755, -755, -755, -755, -755, -755, -755, 60, 255,
257, 259, 260, 262, 263, 265, 266, 272, 288, 291,
294, 303, 305, 306, 307, 308, 9, -755, -755, -755,
-755, -755, -755, -755, -755, -755, -755, -755, -755, -755,
-755, -755, -755, -755, -755, 4, 65, 309, 19, -755,
-755, -755, 155, -755, 313, 23, -755, -755, 62, -755,
215, 352, 365, 270, -755, 252, 436, 335, 438, 440,
440, 440, 443, 451, 454, 355, 356, 340, -755, 347,
346, 351, 354, -755, 357, 359, 360, 362, 366, 367,
368, 369, 370, 372, 373, 377, 258, -755, -755, -755,
-755, -755, -755, -755, -755, -755, -755, -755, -755, -755,
-755, -755, -755, -755, 358, 378, 381, 382, 383, 384,
385, -755, 386, 387, 388, 390, 391, 392, 393, 326,
-755, -755, -755, -755, -755, -755, -755, -755, -755, -755,
-755, -755, -755, -755, -755, -755, 394, 397, 69, -755,
-755, -755, 460, 409, -755, -755, 407, 411, 48, -755,
-755, -755, 428, 440, 440, 432, 487, 433, 537, 523,
437, 440, 439, 540, 543, 440, 545, 445, 446, 447,
440, 550, 551, 440, 552, 553, 554, 555, 455, 441,
456, 442, 457, 440, 440, 458, 459, 464, 58, 95,
466, 467, 468, 547, 440, 469, 471, 440, 440, 472,
473, 461, -755, 462, 463, 465, -755, 474, 476, 480,
481, 482, 163, -755, -755, -755, -755, -755, -755, -755,
-755, -755, -755, 484, 485, 50, -755, -755, -755, 475,
488, 493, -755, 494, -755, 25, -755, -755, -755, -755,
-755, 561, 562, 499, -755, 502, 501, 505, 18, -755,
-755, -755, 509, 507, 508, -755, 511, 512, 514, 515,
516, -755, 518, 14, -755, -755, -755, -755, -755, -755,
-755, -755, -755, -755, -755, 522, 526, 527, 528, 11,
-755, -755, -755, -755, 477, 529, 549, 563, 556, 557,
560, 440, 533, -755, -755, 567, 564, 569, 586, 595,
630, 638, 639, 641, 642, 648, 664, 652, -99, -42,
653, 654, 558, -755, 559, 566, -755, 73, -755, -755,
-755, -755, 570, 574, -755, 568, 656, 575, -755, 576,
579, -755, 580, 27, -755, -755, -755, -755, 578, 584,
587, -755, 590, 591, 592, 593, 267, 597, 605, 607,
615, 617, 618, 619, 623, -755, -755, 673, 674, 440,
625, 676, 685, 440, 698, 699, 440, 734, 751, 755,
440, 762, 762, 646, -755, -755, 752, 129, 754, 668,
758, 764, 655, 766, 767, 784, 771, 775, 776, 777,
677, -755, 778, 780, 686, -755, 689, -755, 797, 798,
696, -755, 701, 704, 705, 708, 709, 710, 714, 715,
717, 722, 723, 725, 728, 729, 730, 731, 732, 733,
735, 737, 738, 739, 740, 741, 742, 743, 744, 660,
745, 703, 747, 748, 749, 750, 753, 756, 757, 759,
760, 769, 770, 772, 773, 781, 782, 783, 785, 788,
789, 790, 791, -755, -755, 807, 763, 713, 810, 853,
855, 856, 858, 792, -755, 859, 862, 793, -755, -755,
868, 875, 774, 897, 794, -755, 795, 796, -755, -755,
884, 888, 799, -755, -755, 891, 814, 800, 902, 906,
908, 909, 823, 804, 912, 809, -755, -755, 914, 915,
916, 813, -755, 815, 816, 817, 818, 819, 820, 821,
822, -755, 824, 825, 826, 827, 828, 829, 830, 831,
832, 833, 834, 835, 836, -755, -755, -209, -755, -755,
-755, -189, -755, 837, 838, -755, -755, 918, 839, 840,
-755, 841, -755, 26, 843, -755, -755, 927, 842, 943,
844, -755, -755, -755, -755, -755, -755, -755, -755, 440,
440, 440, 440, 440, 440, 440, -755, -755, -755, -755,
-755, -755, -755, -755, -755, -755, 846, 847, 848, -34,
849, 850, 851, 852, 854, 857, 860, 861, 863, 864,
289, 865, 866, -755, 867, 869, 870, 871, 872, 873,
874, 5, 876, 877, 878, 879, 880, 881, 882, -755,
883, 885, -755, -755, 886, 887, -755, -755, -755, -755,
-755, -755, -755, -755, -755, -755, -755, -755, -755, -755,
-755, -755, -755, -755, -755, -755, -755, -755, -755, -755,
-755, -755, -755, -755, -755, -755, -755, -755, -755, -755,
-755, -755, -755, -755, -755, -755, -755, -755, -755, -755,
-755, -755, -755, -755, -755, -174, -755, -755, -755, -755,
-755, -755, -755, -755, -755, -755, -755, -755, -755, -755,
-755, -755, -755, -755, -755, -755, -755, -755, -755, -172,
-755, -755, -755, -755, -755, -755, -755, -755, -755, -755,
-755, -755, -755, -755, -755, -755, -755, -755, -755, -755,
-755, -755, 889, 890, 245, 892, 893, 894, 895, 896,
-755, 898, 899, -755, 900, 901, -16, 907, 903, -755,
-755, -755, -755, 904, 905, -755, 910, 911, 524, 913,
917, 919, 920, 921, 746, 922, -755, 924, 925, 926,
-755, -755, -755, -755, -755, -755, -755, -755, -755, -755,
-755, -755, -755, -755, -755, -755, -755, -755, -755, -755,
-755, -755, -755, -99, -755, -42, -755, -755, 928, 632,
-755, -755, 929, 930, 931, -755, 57, -755, -755, -755,
-755, -755, 932, 787, 935, -755, -755, -755, -755, -755,
-755, -755, -755, -755, -755, -755, -755, -755, -171, -755,
-755, -755, -755, -755, -755, -755, -755, -755, -755, -755,
762, 762, 762, -755, -755, -755, -755, -755, -755, -755,
-755, -755, -755, -755, -755, -755, -155, -755, -755, -755,
-755, -755, -755, -755, -755, -755, -755, -755, -755, -755,
660, -755, 703, -755, -755, -755, -755, -755, -755, -755,
-755, -755, -755, -755, -755, -50, -755, -755, -755, -755,
-755, -755, -755, -755, -755, -755, -755, -755, -755, -49,
-755, 972, 897, 936, -755, -755, -755, -755, -755, 933,
-755, -755, 934, -755, -755, -755, -755, 937, -755, -755,
-755, -755, -755, -755, -755, -755, -755, -755, -23, -755,
-755, -755, -755, -755, -755, -755, -755, -755, -755, -755,
-755, -755, -755, -755, -755, -755, -755, -755, -755, -755,
-755, -755, -755, -755, -755, -755, -15, -755, -755, -755,
-755, -755, -755, -755, -755, -755, -755, -755, -755, -755,
-755, -755, -755, -755, -755, 0, -755, -755, 959, -101,
938, 940, -755, -755, -755, -755, -755, -755, -755, -755,
-755, -755, -755, -755, 30, -755, -755, -755, -34, -755,
-755, -755, -755, 5, -755, -755, -755, 245, -755, -16,
-755, -755, -755, 954, 956, 957, -755, 524, -755, 746,
-755, 632, 944, 945, 946, 297, -755, -755, 787, -755,
-755, -755, -755, -755, -755, -755, -755, -755, -755, -755,
-755, -755, -755, -755, -755, -755, -755, -755, -755, -755,
-755, 55, -755, -755, -755, 297, -755
};
/* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM.
Performed when YYTABLE does not specify something else to do. Zero
means the default is an error. */
static const yytype_uint16 yydefact[] =
{
2, 0, 1, 0, 0, 0, 222, 385, 433, 0,
448, 0, 288, 424, 264, 0, 107, 147, 322, 0,
0, 363, 0, 0, 339, 3, 23, 11, 4, 24,
5, 6, 8, 9, 10, 13, 14, 15, 16, 17,
18, 19, 20, 22, 21, 7, 12, 25, 26, 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, 99, 100, 102, 101, 624,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 611, 623, 613, 614, 615, 616, 612,
617, 618, 619, 620, 621, 622, 0, 0, 0, 446,
0, 0, 444, 445, 0, 509, 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, 581, 0, 556, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 459, 506, 508, 500,
501, 502, 503, 504, 499, 470, 460, 461, 462, 463,
464, 465, 466, 467, 468, 469, 496, 471, 472, 505,
474, 479, 480, 475, 477, 476, 490, 491, 478, 481,
482, 483, 484, 473, 486, 487, 488, 507, 497, 498,
495, 489, 485, 493, 494, 492, 0, 0, 0, 0,
0, 0, 0, 45, 46, 47, 0, 0, 0, 648,
0, 0, 0, 0, 0, 0, 0, 0, 0, 639,
640, 641, 642, 643, 646, 644, 645, 647, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 53, 68, 69,
67, 64, 63, 70, 54, 66, 57, 58, 59, 55,
65, 60, 61, 62, 56, 0, 0, 0, 0, 118,
119, 120, 0, 337, 0, 0, 335, 336, 0, 103,
0, 0, 0, 0, 98, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 610, 0,
0, 0, 0, 258, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 225, 226, 229,
231, 232, 233, 234, 235, 236, 237, 238, 227, 228,
230, 239, 240, 241, 0, 0, 0, 0, 0, 0,
0, 413, 0, 0, 0, 0, 0, 0, 0, 0,
388, 389, 390, 391, 392, 393, 394, 396, 395, 398,
402, 399, 400, 401, 397, 439, 0, 0, 0, 436,
437, 438, 0, 0, 443, 454, 0, 0, 0, 451,
452, 453, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 458, 0, 0, 0, 305, 0, 0, 0,
0, 0, 0, 291, 292, 293, 294, 299, 295, 296,
297, 298, 430, 0, 0, 0, 427, 428, 429, 0,
0, 0, 266, 0, 276, 0, 274, 275, 277, 278,
48, 0, 0, 0, 44, 0, 0, 0, 0, 110,
111, 112, 0, 0, 0, 195, 0, 0, 0, 0,
0, 170, 0, 0, 150, 151, 152, 153, 156, 157,
158, 159, 155, 154, 160, 0, 0, 0, 0, 0,
325, 326, 327, 328, 0, 0, 0, 0, 0, 0,
0, 0, 0, 638, 71, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 52, 0, 0, 371, 0, 366, 367,
368, 121, 0, 0, 117, 0, 0, 0, 334, 0,
0, 349, 0, 0, 342, 343, 344, 345, 0, 0,
0, 97, 0, 0, 0, 0, 27, 0, 0, 0,
0, 0, 0, 0, 0, 609, 242, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 224, 403, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 387, 0, 0, 0, 435, 0, 442, 0, 0,
0, 450, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 457, 300, 0, 0, 0, 0, 0,
0, 0, 0, 0, 290, 0, 0, 0, 426, 279,
0, 0, 0, 0, 0, 273, 0, 0, 43, 113,
0, 0, 0, 109, 161, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 149, 329, 0, 0,
0, 0, 324, 0, 0, 0, 0, 0, 0, 0,
0, 637, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 76, 77, 0, 75, 80,
81, 0, 79, 0, 0, 51, 369, 0, 0, 0,
365, 0, 116, 0, 0, 333, 346, 0, 0, 0,
0, 341, 106, 105, 104, 632, 631, 625, 635, 27,
27, 27, 27, 27, 27, 27, 29, 28, 636, 626,
627, 630, 629, 628, 633, 634, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
37, 0, 0, 223, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 386,
0, 0, 434, 447, 0, 0, 449, 522, 526, 541,
511, 608, 554, 548, 551, 521, 513, 512, 515, 516,
514, 529, 519, 520, 530, 518, 525, 524, 523, 549,
510, 606, 607, 545, 591, 585, 602, 586, 587, 588,
596, 605, 589, 599, 603, 592, 604, 597, 593, 598,
590, 601, 595, 594, 600, 0, 584, 547, 565, 560,
577, 561, 562, 563, 571, 580, 564, 574, 578, 567,
579, 572, 568, 573, 566, 576, 570, 569, 575, 0,
559, 542, 540, 543, 553, 544, 532, 538, 539, 536,
537, 533, 534, 535, 552, 555, 517, 546, 528, 527,
550, 531, 0, 0, 0, 0, 0, 0, 0, 0,
289, 0, 0, 425, 0, 0, 0, 284, 280, 283,
265, 49, 50, 0, 0, 108, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 148, 0, 0, 0,
323, 650, 649, 655, 653, 656, 651, 652, 654, 88,
96, 87, 94, 95, 86, 90, 89, 83, 82, 84,
93, 85, 72, 0, 73, 0, 91, 92, 0, 0,
364, 122, 0, 0, 0, 134, 0, 126, 127, 129,
128, 338, 0, 0, 0, 340, 30, 31, 32, 33,
34, 35, 36, 253, 254, 246, 263, 262, 0, 261,
248, 250, 257, 249, 247, 256, 243, 255, 245, 244,
37, 37, 37, 39, 38, 251, 252, 408, 411, 412,
422, 419, 405, 420, 417, 418, 0, 416, 421, 404,
410, 407, 409, 423, 406, 440, 441, 455, 456, 582,
0, 557, 0, 303, 304, 313, 310, 315, 311, 312,
318, 314, 316, 309, 317, 0, 308, 302, 321, 320,
319, 301, 432, 431, 287, 286, 271, 272, 270, 0,
269, 0, 0, 0, 114, 115, 169, 165, 214, 202,
211, 210, 200, 205, 221, 213, 219, 204, 207, 216,
218, 215, 212, 220, 208, 217, 206, 209, 0, 198,
162, 164, 166, 167, 168, 179, 174, 191, 175, 176,
177, 185, 194, 178, 188, 192, 181, 193, 186, 182,
187, 180, 190, 184, 183, 189, 0, 173, 163, 332,
330, 331, 74, 78, 370, 375, 381, 384, 377, 383,
378, 382, 380, 376, 379, 0, 374, 130, 0, 0,
0, 0, 125, 347, 353, 359, 362, 355, 361, 356,
360, 358, 354, 357, 0, 352, 348, 259, 0, 40,
41, 42, 414, 0, 583, 558, 306, 0, 267, 0,
285, 282, 281, 0, 0, 0, 196, 0, 171, 0,
372, 0, 0, 0, 0, 0, 124, 350, 0, 260,
415, 307, 268, 201, 199, 203, 197, 172, 373, 131,
133, 132, 140, 145, 144, 139, 142, 146, 143, 138,
141, 0, 137, 351, 135, 0, 136
};
/* YYPGOTO[NTERM-NUM]. */
static const yytype_int16 yypgoto[] =
{
-755, -755, -755, -298, -307, -754, -621, -755, -755, 942,
-755, -755, -755, -755, 845, -755, -755, -755, 72, -755,
77, -755, -755, -755, -755, -755, -755, -755, -755, -755,
-755, -755, -755, -755, -755, -755, -755, -755, 1015, -755,
-755, -755, -755, -755, -755, 620, -755, -755, -755, -755,
939, -755, -755, -755, -755, 93, -755, -755, -755, -755,
-755, -170, -755, -755, -755, 622, -755, -755, -755, -755,
-755, -755, -755, -755, -755, -755, -755, -119, -755, -755,
-755, -114, -755, -755, -755, 803, -755, -755, -755, -755,
-755, -755, -755, -755, -755, -755, -755, -755, -755, -755,
-755, -755, -755, -755, -92, -755, -755, -755, -755, -755,
-98, -755, 657, -755, -755, -755, 38, -755, -755, -755,
-755, -755, 681, -755, -755, -755, -755, -755, -755, -755,
-87, -755, -755, -755, -755, -755, -755, 616, -755, -755,
-755, -755, -755, 941, -755, -755, -755, -755, 571, -755,
-755, -755, -755, -755, -100, -755, -755, -755, 608, -755,
-755, -755, -755, -94, -755, -755, -755, 805, -755, -755,
-755, -755, -755, -755, -755, -755, -755, -755, -755, -57,
-755, -755, -755, -755, -755, -755, -755, -755, 702, -755,
-755, -755, -755, -755, 801, -755, -755, -755, -755, 1067,
-755, -755, -755, -755, 786, -755, -755, -755, -755, 1014,
-755, -755, -755, -755, -755, -755, -755, -755, -755, -755,
-755, -755, -755, -755, -755, -755, -755, -755, -755, -755,
-755, -755, -755, -755, -755, -755, -755, -755, -755, -755,
-755, -755, -755, -755, -755, -755, -755, -755, -755, -755,
-755, -755, -755, -755, -755, -755, -755, 78, -755, -755,
-755, 83, -755, -755, -755, -755, -755, 1089, -755, -755,
-755, -755, -755, -755, -755, -755, -755, -755, -755, -755,
-755, -755, 947, -755, -755, -755, -755, -755, -755, -755,
-755
};
/* YYDEFGOTO[NTERM-NUM]. */
static const yytype_int16 yydefgoto[] =
{
-1, 1, 25, 816, 817, 1073, 1074, 26, 222, 223,
224, 225, 27, 266, 267, 268, 269, 777, 778, 781,
782, 270, 271, 272, 273, 274, 275, 276, 277, 278,
279, 280, 281, 282, 283, 284, 28, 74, 75, 76,
77, 78, 29, 61, 498, 499, 500, 501, 30, 288,
289, 290, 291, 292, 1036, 1037, 1038, 1039, 1040, 1210,
1281, 1282, 31, 62, 513, 514, 515, 516, 517, 518,
519, 520, 521, 522, 523, 743, 1186, 1187, 524, 737,
1158, 1159, 32, 51, 336, 337, 338, 339, 340, 341,
342, 343, 344, 345, 346, 347, 348, 349, 350, 351,
352, 353, 610, 1058, 1059, 33, 59, 484, 722, 1129,
1130, 485, 486, 487, 1133, 978, 979, 488, 489, 34,
57, 462, 463, 464, 465, 466, 467, 468, 707, 1115,
1116, 469, 470, 471, 35, 63, 529, 530, 531, 532,
533, 36, 295, 296, 297, 37, 69, 583, 584, 585,
586, 587, 798, 1224, 1225, 38, 66, 567, 568, 569,
570, 788, 1205, 1206, 39, 52, 369, 370, 371, 372,
373, 374, 375, 376, 377, 378, 379, 632, 1086, 1087,
380, 381, 382, 383, 384, 40, 58, 475, 476, 477,
478, 41, 53, 388, 389, 390, 391, 42, 111, 112,
113, 43, 55, 398, 399, 400, 401, 44, 165, 166,
167, 168, 169, 170, 171, 172, 173, 174, 175, 176,
177, 178, 179, 180, 181, 182, 183, 184, 185, 186,
187, 188, 189, 190, 191, 192, 193, 194, 195, 196,
197, 198, 199, 200, 201, 202, 203, 204, 205, 206,
207, 208, 209, 210, 211, 431, 939, 940, 212, 429,
915, 916, 213, 214, 215, 45, 92, 93, 94, 95,
96, 97, 98, 99, 100, 101, 102, 103, 104, 105,
46, 238, 239, 240, 241, 242, 243, 244, 245, 246,
247
};
/* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM. If
positive, shift that token. If negative, reduce the rule whose
number is the opposite. If YYTABLE_NINF, syntax error. */
static const yytype_int16 yytable[] =
{
841, 842, 597, 598, 599, 564, 49, 840, 70, 472,
248, 109, 525, 1084, 79, 502, 229, 1056, 1022, 495,
286, 50, 1023, 495, 293, 219, 479, 1032, 579, 47,
48, 503, 71, 1126, 249, 80, 81, 395, 1024, 72,
286, 82, 1025, 54, 230, 56, 526, 504, 525, 395,
60, 472, 231, 1099, 293, 1101, 1227, 1100, 1032, 1102,
1228, 64, 385, 579, 232, 233, 250, 234, 235, 236,
385, 110, 1232, 251, 564, 65, 1233, 505, 83, 84,
219, 480, 526, 67, 85, 86, 481, 527, 482, 237,
1057, 87, 88, 89, 496, 252, 653, 654, 496, 253,
775, 776, 565, 1253, 661, 73, 68, 254, 665, 115,
255, 256, 506, 670, 116, 117, 673, 90, 91, 220,
118, 294, 386, 527, 1033, 580, 683, 684, 119, 120,
386, 109, 507, 473, 396, 121, 528, 696, 122, 123,
699, 700, 257, 221, 124, 106, 396, 483, 508, 125,
126, 294, 127, 128, 129, 1033, 130, 779, 780, 258,
580, 397, 259, 131, 453, 509, 510, 132, 133, 1127,
107, 565, 528, 397, 220, 473, 134, 1236, 1238, 1128,
454, 1237, 1239, 108, 114, 135, 387, 260, 497, -123,
216, 110, 497, 136, 387, 137, 455, 138, 221, 139,
1085, 140, 141, 217, 1246, 261, 262, 263, 1247, -123,
218, 226, 1248, 299, 142, 511, 1249, 1034, 227, 143,
144, 145, 566, 146, 147, 148, 456, 1250, 149, 300,
474, 1251, 264, 265, 760, 303, 512, 562, 393, 751,
287, 317, 745, 542, 1035, 581, 732, 573, 1034, 582,
228, 577, 493, 724, 150, 800, 490, 1257, 1105, 319,
287, 1258, 151, 152, 153, 154, 155, 156, 688, 285,
298, 689, 474, 320, 321, 1035, 650, 322, 717, 1106,
581, 457, 1284, 70, 582, 1211, 1285, 544, 1107, 458,
459, 566, 571, 479, 301, 157, 302, 644, 1070, 1071,
1072, 789, 828, 845, 846, 690, 832, 71, 691, 835,
460, 305, 306, 839, 72, 1108, 1229, 1230, 1231, 158,
159, 323, 160, 161, 162, 575, 307, 354, 163, 355,
308, 356, 309, 164, 310, 311, 451, 1272, 588, 324,
325, 326, 327, 357, 1109, 1110, 328, 312, 480, 313,
329, 314, 1111, 481, 453, 482, 330, 315, 316, 358,
592, 392, 402, 403, 1273, 404, 1274, 331, 332, 405,
454, 406, 407, 408, 409, 596, 410, 1112, 411, 333,
73, 412, 359, 413, 360, 461, 455, 414, 415, 361,
416, 713, 417, 1113, 418, 419, 420, 840, 421, 362,
422, 334, 809, 810, 811, 812, 813, 814, 815, 248,
423, 1275, 424, 425, 483, 115, 456, 426, 427, 428,
116, 117, 430, 432, 363, 433, 118, 434, 1276, 435,
436, 437, 438, 249, 119, 120, 439, 440, 441, 442,
335, 121, 443, 444, 122, 123, 445, 446, 364, 447,
124, 448, 449, 450, 1114, 125, 126, 491, 127, 128,
129, 492, 130, 1277, 1278, 250, 534, 535, 365, 131,
536, 457, 251, 132, 133, 589, 537, 366, 538, 458,
459, 539, 134, 540, 541, 545, 623, 546, 590, 547,
548, 135, 549, 550, 252, 551, 552, 591, 253, 136,
460, 137, 553, 138, 229, 139, 254, 140, 141, 255,
256, 1046, 1047, 1048, 1049, 1050, 1051, 1052, 554, 1279,
142, 555, 367, 1280, 556, 143, 144, 145, 1138, 146,
147, 148, 230, 557, 149, 558, 559, 560, 561, 572,
231, 257, 1139, 576, 593, 594, 595, 502, 596, 368,
1140, 600, 232, 233, 640, 234, 235, 236, 258, 601,
150, 259, 602, 503, 1141, 603, 604, 605, 151, 152,
153, 154, 155, 156, 606, 461, 607, 237, 354, 504,
355, 608, 356, 646, 609, 625, 260, 611, 1254, 612,
613, 1142, 614, 1143, 357, 656, 615, 616, 617, 618,
619, 157, 620, 621, 261, 262, 263, 622, 626, 505,
358, 627, 628, 629, 630, 631, 633, 634, 635, 1144,
636, 637, 638, 639, 642, 158, 159, 643, 160, 161,
162, 264, 265, 359, 163, 360, 647, 648, 652, 164,
361, 649, 655, 657, 506, 658, 659, 660, 663, 662,
362, 664, 1145, 666, 1146, 667, 668, 669, 671, 672,
674, 675, 676, 677, 507, 678, 680, 682, 685, 686,
695, 679, 681, 1147, 687, 363, 692, 693, 694, 697,
508, 698, 701, 702, 726, 727, 756, 753, 703, 704,
762, 1148, 764, 705, 765, 706, 1149, 509, 510, 364,
1150, 1195, 719, 766, 708, 1151, 709, 319, 1152, 894,
710, 711, 712, 1153, 715, 716, 2, 3, 720, 365,
4, 320, 321, 721, 723, 322, 728, 1154, 366, 729,
5, 730, 1155, 6, 7, 731, 734, 735, 736, 754,
8, 738, 739, 1156, 740, 741, 742, 511, 744, 747,
1157, 9, 918, 767, 10, 11, 748, 749, 750, 755,
761, 768, 769, 1196, 770, 771, 757, 758, 512, 323,
759, 772, 773, 367, 763, 774, 783, 784, 12, 794,
791, 826, 827, 13, 830, 785, 786, 324, 325, 326,
327, 14, 1197, 831, 328, 1165, 787, 793, 329, 1198,
368, 792, 795, 796, 330, 802, 833, 834, 1199, 797,
799, 803, 15, 16, 804, 331, 332, 805, 806, 807,
808, 895, 896, 897, 818, 898, 899, 333, 900, 901,
17, 902, 819, 903, 820, 1200, 904, 1201, 1202, 905,
906, 907, 821, 908, 822, 823, 824, 18, 909, 334,
825, 1203, 910, 911, 912, 829, 1214, 836, 1204, 837,
19, 20, 913, 838, 919, 920, 921, 914, 922, 923,
840, 924, 925, 843, 926, 844, 927, 847, 848, 928,
21, 849, 929, 930, 931, 851, 932, 850, 335, 852,
853, 933, 854, 22, 855, 934, 935, 936, 856, 857,
858, 860, 23, 861, 859, 937, 24, 1166, 1167, 1168,
938, 1169, 1170, 862, 1171, 1172, 863, 1173, 1215, 1174,
864, 865, 1175, 866, 79, 1176, 1177, 1178, 867, 1179,
962, 868, 869, 965, 1180, 870, 871, 872, 1181, 1182,
1183, 873, 874, 964, 875, 80, 81, 1216, 1184, 876,
877, 82, 878, 1185, 1217, 879, 880, 881, 882, 883,
884, 966, 885, 1218, 886, 887, 888, 889, 890, 891,
892, 893, 917, 963, 941, 942, 943, 944, 967, 968,
945, 969, 971, 946, 947, 972, 948, 949, 83, 84,
1219, 974, 1220, 1221, 85, 86, 950, 951, 975, 952,
953, 87, 88, 89, 976, 977, 1222, 983, 954, 955,
956, 984, 957, 1223, 986, 958, 959, 960, 961, 970,
973, 980, 981, 982, 987, 989, 985, 90, 91, 990,
988, 991, 992, 993, 994, 995, 996, 997, 998, 999,
1000, 1028, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008,
1042, 1009, 1010, 1011, 1012, 1013, 1014, 1015, 1016, 1017,
1018, 1019, 1020, 1021, 1026, 1027, 1044, 1030, 1031, 1029,
1041, 1045, 1043, 1053, 1054, 1055, 1060, 1061, 1062, 1063,
1240, 1064, 1252, 1263, 1065, 1264, 1265, 1066, 1067, 304,
1068, 1069, 1075, 1076, 1077, 1192, 1078, 1079, 1080, 1081,
1082, 1083, 1193, 1088, 1089, 1090, 1091, 1092, 1093, 1094,
1095, 563, 1096, 1097, 1098, 1286, 1103, 1104, 733, 1117,
1118, 1119, 1120, 1121, 1131, 1122, 1123, 1124, 1125, 1212,
1267, 1134, 1135, 1266, 1132, 746, 1259, 1136, 1137, 624,
1160, 1262, 725, 714, 1161, 752, 1162, 1163, 1164, 1188,
1261, 1189, 1190, 1191, 801, 1194, 1207, 1268, 1283, 1213,
1208, 1209, 1226, 1242, 494, 1243, 1244, 1256, 1255, 1245,
1241, 1269, 1270, 1271, 641, 790, 1260, 718, 394, 452,
1235, 318, 0, 1234, 651, 543, 0, 0, 0, 645,
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, 574, 0, 0,
0, 0, 0, 0, 0, 0, 578
};
static const yytype_int16 yycheck[] =
{
621, 622, 309, 310, 311, 1, 229, 108, 1, 1,
1, 1, 1, 8, 1, 1, 1, 51, 227, 1,
1, 229, 231, 1, 1, 1, 1, 1, 1, 227,
228, 17, 25, 49, 25, 22, 23, 1, 227, 32,
1, 28, 231, 229, 29, 229, 35, 33, 1, 1,
229, 1, 37, 227, 1, 227, 227, 231, 1, 231,
231, 229, 1, 1, 49, 50, 57, 52, 53, 54,
1, 61, 227, 64, 1, 229, 231, 63, 65, 66,
1, 56, 35, 229, 71, 72, 61, 76, 63, 74,
124, 78, 79, 80, 76, 86, 403, 404, 76, 90,
199, 200, 98, 204, 411, 98, 229, 98, 415, 1,
101, 102, 98, 420, 6, 7, 423, 104, 105, 95,
12, 98, 61, 76, 98, 98, 433, 434, 20, 21,
61, 1, 118, 125, 98, 27, 125, 444, 30, 31,
447, 448, 133, 119, 36, 229, 98, 122, 134, 41,
42, 98, 44, 45, 46, 98, 48, 199, 200, 150,
98, 125, 153, 55, 1, 151, 152, 59, 60, 185,
229, 98, 125, 125, 95, 125, 68, 227, 227, 195,
17, 231, 231, 229, 229, 77, 125, 178, 170, 170,
229, 61, 170, 85, 125, 87, 33, 89, 119, 91,
195, 93, 94, 229, 227, 196, 197, 198, 231, 170,
229, 229, 227, 227, 106, 201, 231, 191, 229, 111,
112, 113, 218, 115, 116, 117, 63, 227, 120, 230,
222, 231, 223, 224, 541, 228, 222, 228, 228, 228,
221, 228, 228, 228, 218, 218, 228, 228, 191, 222,
229, 228, 228, 228, 146, 228, 227, 227, 13, 1,
221, 231, 154, 155, 156, 157, 158, 159, 210, 229,
229, 213, 222, 15, 16, 218, 228, 19, 228, 34,
218, 118, 227, 1, 222, 228, 231, 227, 43, 126,
127, 218, 227, 1, 230, 187, 230, 228, 9, 10,
11, 228, 609, 174, 175, 210, 613, 25, 213, 616,
147, 230, 230, 620, 32, 70, 1070, 1071, 1072, 211,
212, 63, 214, 215, 216, 170, 230, 1, 220, 3,
230, 5, 230, 225, 230, 230, 228, 40, 123, 81,
82, 83, 84, 17, 99, 100, 88, 230, 56, 230,
92, 230, 107, 61, 1, 63, 98, 230, 230, 33,
108, 230, 230, 230, 67, 230, 69, 109, 110, 230,
17, 230, 230, 230, 230, 108, 230, 132, 230, 121,
98, 230, 56, 230, 58, 222, 33, 230, 230, 63,
230, 228, 230, 148, 230, 230, 230, 108, 230, 73,
230, 143, 135, 136, 137, 138, 139, 140, 141, 1,
230, 114, 230, 230, 122, 1, 63, 230, 230, 230,
6, 7, 230, 230, 98, 230, 12, 230, 131, 230,
230, 230, 230, 25, 20, 21, 230, 230, 230, 230,
182, 27, 230, 230, 30, 31, 230, 230, 122, 230,
36, 230, 230, 230, 209, 41, 42, 230, 44, 45,
46, 230, 48, 166, 167, 57, 230, 230, 142, 55,
230, 118, 64, 59, 60, 123, 230, 151, 230, 126,
127, 230, 68, 230, 230, 230, 228, 230, 123, 230,
230, 77, 230, 230, 86, 230, 230, 227, 90, 85,
147, 87, 230, 89, 1, 91, 98, 93, 94, 101,
102, 809, 810, 811, 812, 813, 814, 815, 230, 222,
106, 230, 196, 226, 230, 111, 112, 113, 4, 115,
116, 117, 29, 230, 120, 230, 230, 230, 230, 230,
37, 133, 18, 230, 108, 210, 108, 1, 108, 223,
26, 108, 49, 50, 228, 52, 53, 54, 150, 108,
146, 153, 108, 17, 40, 210, 210, 227, 154, 155,
156, 157, 158, 159, 227, 222, 230, 74, 1, 33,
3, 230, 5, 123, 230, 227, 178, 230, 1209, 230,
230, 67, 230, 69, 17, 108, 230, 230, 230, 230,
230, 187, 230, 230, 196, 197, 198, 230, 230, 63,
33, 230, 230, 230, 230, 230, 230, 230, 230, 95,
230, 230, 230, 230, 230, 211, 212, 230, 214, 215,
216, 223, 224, 56, 220, 58, 227, 230, 210, 225,
63, 230, 210, 210, 98, 108, 123, 210, 108, 210,
73, 108, 128, 108, 130, 210, 210, 210, 108, 108,
108, 108, 108, 108, 118, 210, 210, 210, 210, 210,
123, 230, 230, 149, 210, 98, 210, 210, 210, 210,
134, 210, 210, 210, 123, 123, 123, 210, 227, 227,
123, 167, 123, 230, 108, 230, 172, 151, 152, 122,
176, 69, 227, 108, 230, 181, 230, 1, 184, 49,
230, 230, 230, 189, 230, 230, 0, 1, 230, 142,
4, 15, 16, 230, 230, 19, 227, 203, 151, 227,
14, 230, 208, 17, 18, 230, 227, 230, 230, 210,
24, 230, 230, 219, 230, 230, 230, 201, 230, 227,
226, 35, 49, 123, 38, 39, 230, 230, 230, 210,
227, 123, 123, 131, 123, 123, 210, 210, 222, 63,
210, 123, 108, 196, 210, 123, 123, 123, 62, 123,
210, 108, 108, 67, 108, 227, 227, 81, 82, 83,
84, 75, 160, 108, 88, 49, 230, 229, 92, 167,
223, 227, 227, 227, 98, 227, 108, 108, 176, 230,
230, 227, 96, 97, 227, 109, 110, 227, 227, 227,
227, 161, 162, 163, 227, 165, 166, 121, 168, 169,
114, 171, 227, 173, 227, 203, 176, 205, 206, 179,
180, 181, 227, 183, 227, 227, 227, 131, 188, 143,
227, 219, 192, 193, 194, 230, 69, 123, 226, 108,
144, 145, 202, 108, 161, 162, 163, 207, 165, 166,
108, 168, 169, 227, 171, 123, 173, 123, 210, 176,
164, 123, 179, 180, 181, 230, 183, 123, 182, 123,
123, 188, 108, 177, 123, 192, 193, 194, 123, 123,
123, 123, 186, 123, 227, 202, 190, 161, 162, 163,
207, 165, 166, 227, 168, 169, 227, 171, 131, 173,
123, 123, 176, 227, 1, 179, 180, 181, 227, 183,
123, 227, 227, 123, 188, 227, 227, 227, 192, 193,
194, 227, 227, 230, 227, 22, 23, 160, 202, 227,
227, 28, 227, 207, 167, 227, 227, 227, 227, 227,
227, 108, 227, 176, 227, 227, 227, 227, 227, 227,
227, 227, 227, 210, 227, 227, 227, 227, 123, 123,
227, 123, 123, 227, 227, 123, 227, 227, 65, 66,
203, 123, 205, 206, 71, 72, 227, 227, 123, 227,
227, 78, 79, 80, 230, 108, 219, 123, 227, 227,
227, 123, 227, 226, 123, 227, 227, 227, 227, 227,
227, 227, 227, 227, 210, 123, 227, 104, 105, 123,
230, 123, 123, 210, 230, 123, 227, 123, 123, 123,
227, 123, 227, 227, 227, 227, 227, 227, 227, 227,
123, 227, 227, 227, 227, 227, 227, 227, 227, 227,
227, 227, 227, 227, 227, 227, 123, 227, 227, 230,
227, 227, 230, 227, 227, 227, 227, 227, 227, 227,
108, 227, 123, 129, 227, 129, 129, 227, 227, 74,
227, 227, 227, 227, 227, 1023, 227, 227, 227, 227,
227, 227, 1025, 227, 227, 227, 227, 227, 227, 227,
227, 266, 227, 227, 227, 1285, 227, 227, 498, 227,
227, 227, 227, 227, 217, 227, 227, 227, 227, 1036,
1249, 227, 227, 1247, 231, 513, 1228, 227, 227, 336,
227, 1239, 485, 462, 227, 529, 227, 227, 227, 227,
1237, 227, 227, 227, 583, 227, 227, 1251, 1258, 227,
230, 230, 227, 227, 222, 232, 232, 227, 230, 232,
1132, 227, 227, 227, 369, 567, 1233, 475, 111, 165,
1102, 92, -1, 1100, 398, 238, -1, -1, -1, 388,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, 288, -1, -1,
-1, -1, -1, -1, -1, -1, 295
};
/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
symbol of state STATE-NUM. */
static const yytype_uint16 yystos[] =
{
0, 234, 0, 1, 4, 14, 17, 18, 24, 35,
38, 39, 62, 67, 75, 96, 97, 114, 131, 144,
145, 164, 177, 186, 190, 235, 240, 245, 269, 275,
281, 295, 315, 338, 352, 367, 374, 378, 388, 397,
418, 424, 430, 434, 440, 498, 513, 227, 228, 229,
229, 316, 398, 425, 229, 435, 229, 353, 419, 339,
229, 276, 296, 368, 229, 229, 389, 229, 229, 379,
1, 25, 32, 98, 270, 271, 272, 273, 274, 1,
22, 23, 28, 65, 66, 71, 72, 78, 79, 80,
104, 105, 499, 500, 501, 502, 503, 504, 505, 506,
507, 508, 509, 510, 511, 512, 229, 229, 229, 1,
61, 431, 432, 433, 229, 1, 6, 7, 12, 20,
21, 27, 30, 31, 36, 41, 42, 44, 45, 46,
48, 55, 59, 60, 68, 77, 85, 87, 89, 91,
93, 94, 106, 111, 112, 113, 115, 116, 117, 120,
146, 154, 155, 156, 157, 158, 159, 187, 211, 212,
214, 215, 216, 220, 225, 441, 442, 443, 444, 445,
446, 447, 448, 449, 450, 451, 452, 453, 454, 455,
456, 457, 458, 459, 460, 461, 462, 463, 464, 465,
466, 467, 468, 469, 470, 471, 472, 473, 474, 475,
476, 477, 478, 479, 480, 481, 482, 483, 484, 485,
486, 487, 491, 495, 496, 497, 229, 229, 229, 1,
95, 119, 241, 242, 243, 244, 229, 229, 229, 1,
29, 37, 49, 50, 52, 53, 54, 74, 514, 515,
516, 517, 518, 519, 520, 521, 522, 523, 1, 25,
57, 64, 86, 90, 98, 101, 102, 133, 150, 153,
178, 196, 197, 198, 223, 224, 246, 247, 248, 249,
254, 255, 256, 257, 258, 259, 260, 261, 262, 263,
264, 265, 266, 267, 268, 229, 1, 221, 282, 283,
284, 285, 286, 1, 98, 375, 376, 377, 229, 227,
230, 230, 230, 228, 271, 230, 230, 230, 230, 230,
230, 230, 230, 230, 230, 230, 230, 228, 500, 1,
15, 16, 19, 63, 81, 82, 83, 84, 88, 92,
98, 109, 110, 121, 143, 182, 317, 318, 319, 320,
321, 322, 323, 324, 325, 326, 327, 328, 329, 330,
331, 332, 333, 334, 1, 3, 5, 17, 33, 56,
58, 63, 73, 98, 122, 142, 151, 196, 223, 399,
400, 401, 402, 403, 404, 405, 406, 407, 408, 409,
413, 414, 415, 416, 417, 1, 61, 125, 426, 427,
428, 429, 230, 228, 432, 1, 98, 125, 436, 437,
438, 439, 230, 230, 230, 230, 230, 230, 230, 230,
230, 230, 230, 230, 230, 230, 230, 230, 230, 230,
230, 230, 230, 230, 230, 230, 230, 230, 230, 492,
230, 488, 230, 230, 230, 230, 230, 230, 230, 230,
230, 230, 230, 230, 230, 230, 230, 230, 230, 230,
230, 228, 442, 1, 17, 33, 63, 118, 126, 127,
147, 222, 354, 355, 356, 357, 358, 359, 360, 364,
365, 366, 1, 125, 222, 420, 421, 422, 423, 1,
56, 61, 63, 122, 340, 344, 345, 346, 350, 351,
227, 230, 230, 228, 242, 1, 76, 170, 277, 278,
279, 280, 1, 17, 33, 63, 98, 118, 134, 151,
152, 201, 222, 297, 298, 299, 300, 301, 302, 303,
304, 305, 306, 307, 311, 1, 35, 76, 125, 369,
370, 371, 372, 373, 230, 230, 230, 230, 230, 230,
230, 230, 228, 515, 227, 230, 230, 230, 230, 230,
230, 230, 230, 230, 230, 230, 230, 230, 230, 230,
230, 230, 228, 247, 1, 98, 218, 390, 391, 392,
393, 227, 230, 228, 283, 170, 230, 228, 376, 1,
98, 218, 222, 380, 381, 382, 383, 384, 123, 123,
123, 227, 108, 108, 210, 108, 108, 237, 237, 237,
108, 108, 108, 210, 210, 227, 227, 230, 230, 230,
335, 230, 230, 230, 230, 230, 230, 230, 230, 230,
230, 230, 230, 228, 318, 227, 230, 230, 230, 230,
230, 230, 410, 230, 230, 230, 230, 230, 230, 230,
228, 400, 230, 230, 228, 427, 123, 227, 230, 230,
228, 437, 210, 237, 237, 210, 108, 210, 108, 123,
210, 237, 210, 108, 108, 237, 108, 210, 210, 210,
237, 108, 108, 237, 108, 108, 108, 108, 210, 230,
210, 230, 210, 237, 237, 210, 210, 210, 210, 213,
210, 213, 210, 210, 210, 123, 237, 210, 210, 237,
237, 210, 210, 227, 227, 230, 230, 361, 230, 230,
230, 230, 230, 228, 355, 230, 230, 228, 421, 227,
230, 230, 341, 230, 228, 345, 123, 123, 227, 227,
230, 230, 228, 278, 227, 230, 230, 312, 230, 230,
230, 230, 230, 308, 230, 228, 298, 227, 230, 230,
230, 228, 370, 210, 210, 210, 123, 210, 210, 210,
237, 227, 123, 210, 123, 108, 108, 123, 123, 123,
123, 123, 123, 108, 123, 199, 200, 250, 251, 199,
200, 252, 253, 123, 123, 227, 227, 230, 394, 228,
391, 210, 227, 229, 123, 227, 227, 230, 385, 230,
228, 381, 227, 227, 227, 227, 227, 227, 227, 135,
136, 137, 138, 139, 140, 141, 236, 237, 227, 227,
227, 227, 227, 227, 227, 227, 108, 108, 237, 230,
108, 108, 237, 108, 108, 237, 123, 108, 108, 237,
108, 239, 239, 227, 123, 174, 175, 123, 210, 123,
123, 230, 123, 123, 108, 123, 123, 123, 123, 227,
123, 123, 227, 227, 123, 123, 227, 227, 227, 227,
227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
227, 227, 227, 227, 49, 161, 162, 163, 165, 166,
168, 169, 171, 173, 176, 179, 180, 181, 183, 188,
192, 193, 194, 202, 207, 493, 494, 227, 49, 161,
162, 163, 165, 166, 168, 169, 171, 173, 176, 179,
180, 181, 183, 188, 192, 193, 194, 202, 207, 489,
490, 227, 227, 227, 227, 227, 227, 227, 227, 227,
227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
227, 227, 123, 210, 230, 123, 108, 123, 123, 123,
227, 123, 123, 227, 123, 123, 230, 108, 348, 349,
227, 227, 227, 123, 123, 227, 123, 210, 230, 123,
123, 123, 123, 210, 230, 123, 227, 123, 123, 123,
227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
227, 227, 227, 231, 227, 231, 227, 227, 123, 230,
227, 227, 1, 98, 191, 218, 287, 288, 289, 290,
291, 227, 123, 230, 123, 227, 236, 236, 236, 236,
236, 236, 236, 227, 227, 227, 51, 124, 336, 337,
227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
9, 10, 11, 238, 239, 227, 227, 227, 227, 227,
227, 227, 227, 227, 8, 195, 411, 412, 227, 227,
227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
231, 227, 231, 227, 227, 13, 34, 43, 70, 99,
100, 107, 132, 148, 209, 362, 363, 227, 227, 227,
227, 227, 227, 227, 227, 227, 49, 185, 195, 342,
343, 217, 231, 347, 227, 227, 227, 227, 4, 18,
26, 40, 67, 69, 95, 128, 130, 149, 167, 172,
176, 181, 184, 189, 203, 208, 219, 226, 313, 314,
227, 227, 227, 227, 227, 49, 161, 162, 163, 165,
166, 168, 169, 171, 173, 176, 179, 180, 181, 183,
188, 192, 193, 194, 202, 207, 309, 310, 227, 227,
227, 227, 251, 253, 227, 69, 131, 160, 167, 176,
203, 205, 206, 219, 226, 395, 396, 227, 230, 230,
292, 228, 288, 227, 69, 131, 160, 167, 176, 203,
205, 206, 219, 226, 386, 387, 227, 227, 231, 238,
238, 238, 227, 231, 494, 490, 227, 231, 227, 231,
108, 349, 227, 232, 232, 232, 227, 231, 227, 231,
227, 231, 123, 204, 239, 230, 227, 227, 231, 337,
412, 363, 343, 129, 129, 129, 314, 310, 396, 227,
227, 227, 40, 67, 69, 114, 131, 166, 167, 222,
226, 293, 294, 387, 227, 231, 294
};
/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
static const yytype_uint16 yyr1[] =
{
0, 233, 234, 234, 235, 235, 235, 235, 235, 235,
235, 235, 235, 235, 235, 235, 235, 235, 235, 235,
235, 235, 235, 235, 235, 235, 235, 236, 236, 237,
237, 237, 237, 237, 237, 237, 237, 238, 238, 239,
239, 239, 239, 240, 241, 241, 242, 242, 242, 243,
244, 245, 246, 246, 247, 247, 247, 247, 247, 247,
247, 247, 247, 247, 247, 247, 247, 247, 247, 247,
247, 247, 248, 249, 250, 250, 251, 251, 252, 252,
253, 253, 254, 255, 256, 257, 258, 259, 260, 261,
262, 263, 264, 265, 266, 267, 268, 269, 270, 270,
271, 271, 271, 271, 272, 273, 274, 276, 275, 277,
277, 278, 278, 278, 279, 280, 281, 282, 282, 283,
283, 283, 284, 286, 285, 287, 287, 288, 288, 288,
288, 289, 290, 290, 292, 291, 293, 293, 294, 294,
294, 294, 294, 294, 294, 294, 294, 296, 295, 297,
297, 298, 298, 298, 298, 298, 298, 298, 298, 298,
298, 298, 299, 300, 301, 302, 303, 304, 305, 306,
308, 307, 309, 309, 310, 310, 310, 310, 310, 310,
310, 310, 310, 310, 310, 310, 310, 310, 310, 310,
310, 310, 310, 310, 310, 312, 311, 313, 313, 314,
314, 314, 314, 314, 314, 314, 314, 314, 314, 314,
314, 314, 314, 314, 314, 314, 314, 314, 314, 314,
314, 314, 316, 315, 317, 317, 318, 318, 318, 318,
318, 318, 318, 318, 318, 318, 318, 318, 318, 318,
318, 318, 318, 319, 320, 321, 322, 323, 324, 325,
326, 327, 328, 329, 330, 331, 332, 333, 335, 334,
336, 336, 337, 337, 339, 338, 341, 340, 342, 342,
343, 343, 343, 344, 344, 345, 345, 345, 345, 345,
347, 346, 348, 348, 349, 349, 350, 351, 353, 352,
354, 354, 355, 355, 355, 355, 355, 355, 355, 355,
355, 356, 357, 358, 359, 361, 360, 362, 362, 363,
363, 363, 363, 363, 363, 363, 363, 363, 363, 364,
365, 366, 368, 367, 369, 369, 370, 370, 370, 370,
371, 372, 373, 374, 375, 375, 376, 376, 377, 379,
378, 380, 380, 381, 381, 381, 381, 382, 383, 385,
384, 386, 386, 387, 387, 387, 387, 387, 387, 387,
387, 387, 387, 389, 388, 390, 390, 391, 391, 391,
392, 394, 393, 395, 395, 396, 396, 396, 396, 396,
396, 396, 396, 396, 396, 398, 397, 399, 399, 400,
400, 400, 400, 400, 400, 400, 400, 400, 400, 400,
400, 400, 400, 400, 401, 402, 403, 404, 405, 406,
407, 408, 408, 410, 409, 411, 411, 412, 412, 413,
414, 415, 416, 417, 419, 418, 420, 420, 421, 421,
421, 422, 423, 425, 424, 426, 426, 427, 427, 427,
428, 429, 430, 431, 431, 432, 432, 433, 435, 434,
436, 436, 437, 437, 437, 438, 439, 440, 441, 441,
442, 442, 442, 442, 442, 442, 442, 442, 442, 442,
442, 442, 442, 442, 442, 442, 442, 442, 442, 442,
442, 442, 442, 442, 442, 442, 442, 442, 442, 442,
442, 442, 442, 442, 442, 442, 442, 442, 442, 442,
442, 442, 442, 442, 442, 442, 442, 442, 442, 442,
443, 444, 445, 446, 447, 448, 449, 450, 451, 452,
453, 454, 455, 456, 457, 458, 459, 460, 461, 462,
463, 464, 465, 466, 467, 468, 469, 469, 470, 470,
471, 472, 473, 474, 475, 476, 477, 478, 479, 480,
481, 482, 483, 484, 485, 486, 488, 487, 489, 489,
490, 490, 490, 490, 490, 490, 490, 490, 490, 490,
490, 490, 490, 490, 490, 490, 490, 490, 490, 490,
490, 492, 491, 493, 493, 494, 494, 494, 494, 494,
494, 494, 494, 494, 494, 494, 494, 494, 494, 494,
494, 494, 494, 494, 494, 494, 495, 496, 497, 498,
499, 499, 500, 500, 500, 500, 500, 500, 500, 500,
500, 500, 500, 500, 500, 501, 502, 503, 504, 505,
506, 507, 508, 509, 510, 511, 512, 513, 514, 514,
515, 515, 515, 515, 515, 515, 515, 515, 515, 516,
517, 518, 519, 520, 521, 522, 523
};
/* YYR2[YYN] -- Number of symbols on the right hand side of rule YYN. */
static const yytype_uint8 yyr2[] =
{
0, 2, 0, 2, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 2, 2, 0, 1, 2,
3, 3, 3, 3, 3, 3, 3, 0, 1, 2,
3, 3, 3, 5, 2, 1, 1, 1, 2, 4,
4, 5, 2, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 2, 4, 4, 3, 1, 1, 1, 3, 1,
1, 1, 4, 4, 4, 4, 4, 4, 4, 4,
4, 4, 4, 4, 4, 4, 4, 5, 2, 1,
1, 1, 1, 2, 4, 4, 4, 0, 6, 2,
1, 1, 1, 2, 4, 4, 5, 2, 1, 1,
1, 2, 4, 0, 6, 2, 1, 1, 1, 1,
2, 4, 4, 4, 0, 5, 3, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 0, 6, 2,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 2, 4, 4, 4, 4, 4, 4, 4, 4,
0, 5, 3, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 0, 5, 3, 1, 3,
1, 3, 1, 3, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 0, 6, 2, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 2, 4, 4, 4, 4, 4, 4, 4,
4, 4, 4, 4, 4, 4, 4, 4, 0, 5,
3, 1, 1, 1, 0, 6, 0, 5, 3, 1,
1, 1, 1, 2, 1, 1, 1, 1, 1, 2,
0, 5, 3, 1, 1, 3, 4, 4, 0, 6,
2, 1, 1, 1, 1, 1, 1, 1, 1, 1,
2, 4, 4, 4, 4, 0, 5, 3, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 4,
4, 4, 0, 6, 2, 1, 1, 1, 1, 2,
4, 4, 4, 5, 2, 1, 1, 1, 4, 0,
6, 2, 1, 1, 1, 1, 2, 4, 4, 0,
5, 3, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 0, 6, 2, 1, 1, 1, 2,
4, 0, 5, 3, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 0, 6, 2, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 2, 4, 4, 4, 4, 4, 4,
4, 4, 4, 0, 5, 3, 1, 1, 1, 4,
4, 4, 4, 4, 0, 6, 2, 1, 1, 1,
1, 4, 4, 0, 6, 2, 1, 1, 1, 1,
4, 4, 5, 2, 1, 1, 1, 4, 0, 6,
2, 1, 1, 1, 1, 4, 4, 5, 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, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
4, 4, 4, 4, 4, 4, 0, 5, 3, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 0, 5, 3, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 4, 4, 4, 5,
2, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 4, 4, 4, 4, 4,
4, 4, 4, 4, 4, 4, 4, 5, 2, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 4,
4, 4, 4, 4, 4, 4, 4
};
#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
#define YYRECOVERING() (!!yyerrstatus)
#define YYBACKUP(Token, Value) \
do \
if (yychar == YYEMPTY) \
{ \
yychar = (Token); \
yylval = (Value); \
YYPOPSTACK (yylen); \
yystate = *yyssp; \
goto yybackup; \
} \
else \
{ \
yyerror (YY_("syntax error: cannot back up")); \
YYERROR; \
} \
while (0)
/* Error token number */
#define YYTERROR 1
#define YYERRCODE 256
/* Enable debugging if requested. */
#if YYDEBUG
# ifndef YYFPRINTF
# include /* INFRINGES ON USER NAME SPACE */
# define YYFPRINTF fprintf
# endif
# define YYDPRINTF(Args) \
do { \
if (yydebug) \
YYFPRINTF Args; \
} while (0)
/* This macro is provided for backward compatibility. */
#ifndef YY_LOCATION_PRINT
# define YY_LOCATION_PRINT(File, Loc) ((void) 0)
#endif
# 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 (0)
/*----------------------------------------.
| Print this symbol's value on YYOUTPUT. |
`----------------------------------------*/
static void
yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep)
{
FILE *yyo = yyoutput;
YYUSE (yyo);
if (!yyvaluep)
return;
# ifdef YYPRINT
if (yytype < YYNTOKENS)
YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
# endif
YYUSE (yytype);
}
/*--------------------------------.
| Print this symbol on YYOUTPUT. |
`--------------------------------*/
static void
yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep)
{
YYFPRINTF (yyoutput, "%s %s (",
yytype < YYNTOKENS ? "token" : "nterm", 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). |
`------------------------------------------------------------------*/
static void
yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop)
{
YYFPRINTF (stderr, "Stack now");
for (; yybottom <= yytop; yybottom++)
{
int yybot = *yybottom;
YYFPRINTF (stderr, " %d", yybot);
}
YYFPRINTF (stderr, "\n");
}
# define YY_STACK_PRINT(Bottom, Top) \
do { \
if (yydebug) \
yy_stack_print ((Bottom), (Top)); \
} while (0)
/*------------------------------------------------.
| Report that the YYRULE is going to be reduced. |
`------------------------------------------------*/
static void
yy_reduce_print (yytype_int16 *yyssp, YYSTYPE *yyvsp, int yyrule)
{
unsigned long int yylno = yyrline[yyrule];
int yynrhs = yyr2[yyrule];
int yyi;
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,
yystos[yyssp[yyi + 1 - yynrhs]],
&(yyvsp[(yyi + 1) - (yynrhs)])
);
YYFPRINTF (stderr, "\n");
}
}
# define YY_REDUCE_PRINT(Rule) \
do { \
if (yydebug) \
yy_reduce_print (yyssp, yyvsp, Rule); \
} while (0)
/* Nonzero means print parse trace. It is left uninitialized so that
multiple parsers can coexist. */
int yydebug;
#else /* !YYDEBUG */
# define YYDPRINTF(Args)
# 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. */
static YYSIZE_T
yystrlen (const char *yystr)
{
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. */
static char *
yystpcpy (char *yydest, const char *yysrc)
{
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 *YYMSG, which is of size *YYMSG_ALLOC, an error message
about the unexpected token YYTOKEN for the state stack whose top is
YYSSP.
Return 0 if *YYMSG was successfully written. Return 1 if *YYMSG is
not large enough to hold the message. In that case, also set
*YYMSG_ALLOC to the required number of bytes. Return 2 if the
required number of bytes is too large to store. */
static int
yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg,
yytype_int16 *yyssp, int yytoken)
{
YYSIZE_T yysize0 = yytnamerr (YY_NULLPTR, yytname[yytoken]);
YYSIZE_T yysize = yysize0;
enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
/* Internationalized format string. */
const char *yyformat = YY_NULLPTR;
/* Arguments of yyformat. */
char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
/* Number of reported tokens (one for the "unexpected", one per
"expected"). */
int yycount = 0;
/* There are many possibilities here to consider:
- If this state is a consistent state with a default action, then
the only way this function was invoked is if the default action
is an error action. In that case, don't check for expected
tokens because there are none.
- The only way there can be no lookahead present (in yychar) is if
this state is a consistent state with a default action. Thus,
detecting the absence of a lookahead is sufficient to determine
that there is no unexpected or expected token to report. In that
case, just report a simple "syntax error".
- Don't assume there isn't a lookahead just because this state is a
consistent state with a default action. There might have been a
previous inconsistent state, consistent state with a non-default
action, or user semantic action that manipulated yychar.
- Of course, the expected token list depends on states to have
correct lookahead information, and it depends on the parser not
to perform extra reductions after fetching a lookahead from the
scanner and before detecting a syntax error. Thus, state merging
(from LALR or IELR) and default reductions corrupt the expected
token list. However, the list is correct for canonical LR with
one exception: it will still contain any token that will not be
accepted due to an error action in a later state.
*/
if (yytoken != YYEMPTY)
{
int yyn = yypact[*yyssp];
yyarg[yycount++] = yytname[yytoken];
if (!yypact_value_is_default (yyn))
{
/* Start YYX at -YYN if negative to avoid negative indexes in
YYCHECK. In other words, skip the first -YYN actions for
this state because they are default actions. */
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 yyx;
for (yyx = yyxbegin; yyx < yyxend; ++yyx)
if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR
&& !yytable_value_is_error (yytable[yyx + yyn]))
{
if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
{
yycount = 1;
yysize = yysize0;
break;
}
yyarg[yycount++] = yytname[yyx];
{
YYSIZE_T yysize1 = yysize + yytnamerr (YY_NULLPTR, yytname[yyx]);
if (! (yysize <= yysize1
&& yysize1 <= YYSTACK_ALLOC_MAXIMUM))
return 2;
yysize = yysize1;
}
}
}
}
switch (yycount)
{
# define YYCASE_(N, S) \
case N: \
yyformat = S; \
break
YYCASE_(0, YY_("syntax error"));
YYCASE_(1, YY_("syntax error, unexpected %s"));
YYCASE_(2, YY_("syntax error, unexpected %s, expecting %s"));
YYCASE_(3, YY_("syntax error, unexpected %s, expecting %s or %s"));
YYCASE_(4, YY_("syntax error, unexpected %s, expecting %s or %s or %s"));
YYCASE_(5, YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s"));
# undef YYCASE_
}
{
YYSIZE_T yysize1 = yysize + yystrlen (yyformat);
if (! (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM))
return 2;
yysize = yysize1;
}
if (*yymsg_alloc < yysize)
{
*yymsg_alloc = 2 * yysize;
if (! (yysize <= *yymsg_alloc
&& *yymsg_alloc <= YYSTACK_ALLOC_MAXIMUM))
*yymsg_alloc = YYSTACK_ALLOC_MAXIMUM;
return 1;
}
/* 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 = *yymsg;
int yyi = 0;
while ((*yyp = *yyformat) != '\0')
if (*yyp == '%' && yyformat[1] == 's' && yyi < yycount)
{
yyp += yytnamerr (yyp, yyarg[yyi++]);
yyformat += 2;
}
else
{
yyp++;
yyformat++;
}
}
return 0;
}
#endif /* YYERROR_VERBOSE */
/*-----------------------------------------------.
| Release the memory associated to this symbol. |
`-----------------------------------------------*/
static void
yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep)
{
YYUSE (yyvaluep);
if (!yymsg)
yymsg = "Deleting";
YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);
YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
YYUSE (yytype);
YY_IGNORE_MAYBE_UNINITIALIZED_END
}
/* The lookahead symbol. */
int yychar;
/* The semantic value of the lookahead symbol. */
YYSTYPE yylval;
/* Number of syntax errors so far. */
int yynerrs;
/*----------.
| yyparse. |
`----------*/
int
yyparse (void)
{
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 through 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 = 0;
/* 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;
yyssp = yyss = yyssa;
yyvsp = yyvs = yyvsa;
yystacksize = YYINITDEPTH;
YYDPRINTF ((stderr, "Starting parse\n"));
yystate = 0;
yyerrstatus = 0;
yynerrs = 0;
yychar = YYEMPTY; /* Cause a token to be read. */
goto yysetstate;
/*------------------------------------------------------------.
| yynewstate -- Push a new state, which is found in yystate. |
`------------------------------------------------------------*/
yynewstate:
/* In all cases, when you get here, the value and location stacks
have just been pushed. So pushing a state here evens the stacks. */
yyssp++;
yysetstate:
*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 (yypact_value_is_default (yyn))
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 (yytable_value_is_error (yyn))
goto yyerrlab;
yyn = -yyn;
goto yyreduce;
}
/* Count tokens shifted since error; after three, turn off error
status. */
if (yyerrstatus)
yyerrstatus--;
/* Shift the lookahead token. */
YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
/* Discard the shifted token. */
yychar = YYEMPTY;
yystate = yyn;
YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
*++yyvsp = yylval;
YY_IGNORE_MAYBE_UNINITIALIZED_END
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 27:
#line 400 "conf_parser.y" /* yacc.c:1646 */
{ (yyval.number) = 0; }
#line 2827 "conf_parser.c" /* yacc.c:1646 */
break;
case 29:
#line 402 "conf_parser.y" /* yacc.c:1646 */
{
(yyval.number) = (yyvsp[-1].number) + (yyvsp[0].number);
}
#line 2835 "conf_parser.c" /* yacc.c:1646 */
break;
case 30:
#line 406 "conf_parser.y" /* yacc.c:1646 */
{
(yyval.number) = (yyvsp[-2].number) + (yyvsp[0].number);
}
#line 2843 "conf_parser.c" /* yacc.c:1646 */
break;
case 31:
#line 410 "conf_parser.y" /* yacc.c:1646 */
{
(yyval.number) = (yyvsp[-2].number) * 60 + (yyvsp[0].number);
}
#line 2851 "conf_parser.c" /* yacc.c:1646 */
break;
case 32:
#line 414 "conf_parser.y" /* yacc.c:1646 */
{
(yyval.number) = (yyvsp[-2].number) * 60 * 60 + (yyvsp[0].number);
}
#line 2859 "conf_parser.c" /* yacc.c:1646 */
break;
case 33:
#line 418 "conf_parser.y" /* yacc.c:1646 */
{
(yyval.number) = (yyvsp[-2].number) * 60 * 60 * 24 + (yyvsp[0].number);
}
#line 2867 "conf_parser.c" /* yacc.c:1646 */
break;
case 34:
#line 422 "conf_parser.y" /* yacc.c:1646 */
{
(yyval.number) = (yyvsp[-2].number) * 60 * 60 * 24 * 7 + (yyvsp[0].number);
}
#line 2875 "conf_parser.c" /* yacc.c:1646 */
break;
case 35:
#line 426 "conf_parser.y" /* yacc.c:1646 */
{
(yyval.number) = (yyvsp[-2].number) * 60 * 60 * 24 * 7 * 4 + (yyvsp[0].number);
}
#line 2883 "conf_parser.c" /* yacc.c:1646 */
break;
case 36:
#line 430 "conf_parser.y" /* yacc.c:1646 */
{
(yyval.number) = (yyvsp[-2].number) * 60 * 60 * 24 * 365 + (yyvsp[0].number);
}
#line 2891 "conf_parser.c" /* yacc.c:1646 */
break;
case 37:
#line 435 "conf_parser.y" /* yacc.c:1646 */
{ (yyval.number) = 0; }
#line 2897 "conf_parser.c" /* yacc.c:1646 */
break;
case 39:
#line 436 "conf_parser.y" /* yacc.c:1646 */
{ (yyval.number) = (yyvsp[-1].number) + (yyvsp[0].number); }
#line 2903 "conf_parser.c" /* yacc.c:1646 */
break;
case 40:
#line 437 "conf_parser.y" /* yacc.c:1646 */
{ (yyval.number) = (yyvsp[-2].number) + (yyvsp[0].number); }
#line 2909 "conf_parser.c" /* yacc.c:1646 */
break;
case 41:
#line 438 "conf_parser.y" /* yacc.c:1646 */
{ (yyval.number) = (yyvsp[-2].number) * 1024 + (yyvsp[0].number); }
#line 2915 "conf_parser.c" /* yacc.c:1646 */
break;
case 42:
#line 439 "conf_parser.y" /* yacc.c:1646 */
{ (yyval.number) = (yyvsp[-2].number) * 1024 * 1024 + (yyvsp[0].number); }
#line 2921 "conf_parser.c" /* yacc.c:1646 */
break;
case 49:
#line 453 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
add_conf_module(libio_basename(yylval.string));
}
#line 2930 "conf_parser.c" /* yacc.c:1646 */
break;
case 50:
#line 459 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
mod_add_path(yylval.string);
}
#line 2939 "conf_parser.c" /* yacc.c:1646 */
break;
case 76:
#line 485 "conf_parser.y" /* yacc.c:1646 */
{
#ifdef HAVE_LIBCRYPTO
if (conf_parser_ctx.pass == 2 && ServerInfo.client_ctx)
SSL_CTX_clear_options(ServerInfo.client_ctx, SSL_OP_NO_SSLv3);
#endif
}
#line 2950 "conf_parser.c" /* yacc.c:1646 */
break;
case 77:
#line 491 "conf_parser.y" /* yacc.c:1646 */
{
#ifdef HAVE_LIBCRYPTO
if (conf_parser_ctx.pass == 2 && ServerInfo.client_ctx)
SSL_CTX_clear_options(ServerInfo.client_ctx, SSL_OP_NO_TLSv1);
#endif
}
#line 2961 "conf_parser.c" /* yacc.c:1646 */
break;
case 80:
#line 500 "conf_parser.y" /* yacc.c:1646 */
{
#ifdef HAVE_LIBCRYPTO
if (conf_parser_ctx.pass == 2 && ServerInfo.server_ctx)
SSL_CTX_clear_options(ServerInfo.server_ctx, SSL_OP_NO_SSLv3);
#endif
}
#line 2972 "conf_parser.c" /* yacc.c:1646 */
break;
case 81:
#line 506 "conf_parser.y" /* yacc.c:1646 */
{
#ifdef HAVE_LIBCRYPTO
if (conf_parser_ctx.pass == 2 && ServerInfo.server_ctx)
SSL_CTX_clear_options(ServerInfo.server_ctx, SSL_OP_NO_TLSv1);
#endif
}
#line 2983 "conf_parser.c" /* yacc.c:1646 */
break;
case 82:
#line 514 "conf_parser.y" /* yacc.c:1646 */
{
#ifdef HAVE_LIBCRYPTO
if (conf_parser_ctx.pass == 2 && ServerInfo.server_ctx)
{
if (!ServerInfo.rsa_private_key_file)
{
conf_error_report("No rsa_private_key_file specified, SSL disabled");
break;
}
if (SSL_CTX_use_certificate_file(ServerInfo.server_ctx, yylval.string,
SSL_FILETYPE_PEM) <= 0 ||
SSL_CTX_use_certificate_file(ServerInfo.client_ctx, yylval.string,
SSL_FILETYPE_PEM) <= 0)
{
report_crypto_errors();
conf_error_report("Could not open/read certificate file");
break;
}
if (SSL_CTX_use_PrivateKey_file(ServerInfo.server_ctx, ServerInfo.rsa_private_key_file,
SSL_FILETYPE_PEM) <= 0 ||
SSL_CTX_use_PrivateKey_file(ServerInfo.client_ctx, ServerInfo.rsa_private_key_file,
SSL_FILETYPE_PEM) <= 0)
{
report_crypto_errors();
conf_error_report("Could not read RSA private key");
break;
}
if (!SSL_CTX_check_private_key(ServerInfo.server_ctx) ||
!SSL_CTX_check_private_key(ServerInfo.client_ctx))
{
report_crypto_errors();
conf_error_report("Could not read RSA private key");
break;
}
}
#endif
}
#line 3028 "conf_parser.c" /* yacc.c:1646 */
break;
case 83:
#line 556 "conf_parser.y" /* yacc.c:1646 */
{
#ifdef HAVE_LIBCRYPTO
BIO *file = NULL;
if (conf_parser_ctx.pass != 1)
break;
if (ServerInfo.rsa_private_key)
{
RSA_free(ServerInfo.rsa_private_key);
ServerInfo.rsa_private_key = NULL;
}
if (ServerInfo.rsa_private_key_file)
{
MyFree(ServerInfo.rsa_private_key_file);
ServerInfo.rsa_private_key_file = NULL;
}
ServerInfo.rsa_private_key_file = xstrdup(yylval.string);
if ((file = BIO_new_file(yylval.string, "r")) == NULL)
{
conf_error_report("File open failed, ignoring");
break;
}
ServerInfo.rsa_private_key = PEM_read_bio_RSAPrivateKey(file, NULL, 0, NULL);
BIO_set_close(file, BIO_CLOSE);
BIO_free(file);
if (ServerInfo.rsa_private_key == NULL)
{
conf_error_report("Couldn't extract key, ignoring");
break;
}
if (!RSA_check_key(ServerInfo.rsa_private_key))
{
RSA_free(ServerInfo.rsa_private_key);
ServerInfo.rsa_private_key = NULL;
conf_error_report("Invalid key, ignoring");
break;
}
/* require 2048 bit (256 byte) key */
if (RSA_size(ServerInfo.rsa_private_key) != 256)
{
RSA_free(ServerInfo.rsa_private_key);
ServerInfo.rsa_private_key = NULL;
conf_error_report("Not a 2048 bit key, ignoring");
}
#endif
}
#line 3090 "conf_parser.c" /* yacc.c:1646 */
break;
case 84:
#line 615 "conf_parser.y" /* yacc.c:1646 */
{
/* TBD - XXX: error reporting */
#ifdef HAVE_LIBCRYPTO
if (conf_parser_ctx.pass == 2 && ServerInfo.server_ctx)
{
BIO *file = BIO_new_file(yylval.string, "r");
if (file)
{
DH *dh = PEM_read_bio_DHparams(file, NULL, NULL, NULL);
BIO_free(file);
if (dh)
{
if (DH_size(dh) < 128)
conf_error_report("Ignoring serverinfo::ssl_dh_param_file -- need at least a 1024 bit DH prime size");
else
SSL_CTX_set_tmp_dh(ServerInfo.server_ctx, dh);
DH_free(dh);
}
}
}
#endif
}
#line 3121 "conf_parser.c" /* yacc.c:1646 */
break;
case 85:
#line 643 "conf_parser.y" /* yacc.c:1646 */
{
#ifdef HAVE_LIBCRYPTO
if (conf_parser_ctx.pass == 2 && ServerInfo.server_ctx)
SSL_CTX_set_cipher_list(ServerInfo.server_ctx, yylval.string);
#endif
}
#line 3132 "conf_parser.c" /* yacc.c:1646 */
break;
case 86:
#line 651 "conf_parser.y" /* yacc.c:1646 */
{
/* this isn't rehashable */
if (conf_parser_ctx.pass == 2 && !ServerInfo.name)
{
if (valid_servname(yylval.string))
ServerInfo.name = xstrdup(yylval.string);
else
{
conf_error_report("Ignoring serverinfo::name -- invalid name. Aborting.");
exit(0);
}
}
}
#line 3150 "conf_parser.c" /* yacc.c:1646 */
break;
case 87:
#line 666 "conf_parser.y" /* yacc.c:1646 */
{
/* this isn't rehashable */
if (conf_parser_ctx.pass == 2 && !ServerInfo.sid)
{
if (valid_sid(yylval.string))
ServerInfo.sid = xstrdup(yylval.string);
else
{
conf_error_report("Ignoring serverinfo::sid -- invalid SID. Aborting.");
exit(0);
}
}
}
#line 3168 "conf_parser.c" /* yacc.c:1646 */
break;
case 88:
#line 681 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
{
MyFree(ServerInfo.description);
ServerInfo.description = xstrdup(yylval.string);
}
}
#line 3180 "conf_parser.c" /* yacc.c:1646 */
break;
case 89:
#line 690 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
{
char *p;
if ((p = strchr(yylval.string, ' ')) != NULL)
p = '\0';
MyFree(ServerInfo.network_name);
ServerInfo.network_name = xstrdup(yylval.string);
}
}
#line 3197 "conf_parser.c" /* yacc.c:1646 */
break;
case 90:
#line 704 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass != 2)
break;
MyFree(ServerInfo.network_desc);
ServerInfo.network_desc = xstrdup(yylval.string);
}
#line 3209 "conf_parser.c" /* yacc.c:1646 */
break;
case 91:
#line 713 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2 && *yylval.string != '*')
{
struct addrinfo hints, *res;
memset(&hints, 0, sizeof(hints));
hints.ai_family = AF_UNSPEC;
hints.ai_socktype = SOCK_STREAM;
hints.ai_flags = AI_PASSIVE | AI_NUMERICHOST;
if (getaddrinfo(yylval.string, NULL, &hints, &res))
ilog(LOG_TYPE_IRCD, "Invalid netmask for server vhost(%s)", yylval.string);
else
{
assert(res != NULL);
memcpy(&ServerInfo.ip, res->ai_addr, res->ai_addrlen);
ServerInfo.ip.ss.ss_family = res->ai_family;
ServerInfo.ip.ss_len = res->ai_addrlen;
freeaddrinfo(res);
ServerInfo.specific_ipv4_vhost = 1;
}
}
}
#line 3240 "conf_parser.c" /* yacc.c:1646 */
break;
case 92:
#line 741 "conf_parser.y" /* yacc.c:1646 */
{
#ifdef IPV6
if (conf_parser_ctx.pass == 2 && *yylval.string != '*')
{
struct addrinfo hints, *res;
memset(&hints, 0, sizeof(hints));
hints.ai_family = AF_UNSPEC;
hints.ai_socktype = SOCK_STREAM;
hints.ai_flags = AI_PASSIVE | AI_NUMERICHOST;
if (getaddrinfo(yylval.string, NULL, &hints, &res))
ilog(LOG_TYPE_IRCD, "Invalid netmask for server vhost6(%s)", yylval.string);
else
{
assert(res != NULL);
memcpy(&ServerInfo.ip6, res->ai_addr, res->ai_addrlen);
ServerInfo.ip6.ss.ss_family = res->ai_family;
ServerInfo.ip6.ss_len = res->ai_addrlen;
freeaddrinfo(res);
ServerInfo.specific_ipv6_vhost = 1;
}
}
#endif
}
#line 3273 "conf_parser.c" /* yacc.c:1646 */
break;
case 93:
#line 771 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass != 2)
break;
if ((yyvsp[-1].number) < MAXCLIENTS_MIN)
{
char buf[IRCD_BUFSIZE];
snprintf(buf, sizeof(buf), "MAXCLIENTS too low, setting to %d", MAXCLIENTS_MIN);
conf_error_report(buf);
ServerInfo.max_clients = MAXCLIENTS_MIN;
}
else if ((yyvsp[-1].number) > MAXCLIENTS_MAX)
{
char buf[IRCD_BUFSIZE];
snprintf(buf, sizeof(buf), "MAXCLIENTS too high, setting to %d", MAXCLIENTS_MAX);
conf_error_report(buf);
ServerInfo.max_clients = MAXCLIENTS_MAX;
}
else
ServerInfo.max_clients = (yyvsp[-1].number);
}
#line 3301 "conf_parser.c" /* yacc.c:1646 */
break;
case 94:
#line 796 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass != 2)
break;
if ((yyvsp[-1].number) < 9)
{
conf_error_report("max_nick_length too low, setting to 9");
ServerInfo.max_nick_length = 9;
}
else if ((yyvsp[-1].number) > NICKLEN)
{
char buf[IRCD_BUFSIZE];
snprintf(buf, sizeof(buf), "max_nick_length too high, setting to %d", NICKLEN);
conf_error_report(buf);
ServerInfo.max_nick_length = NICKLEN;
}
else
ServerInfo.max_nick_length = (yyvsp[-1].number);
}
#line 3326 "conf_parser.c" /* yacc.c:1646 */
break;
case 95:
#line 818 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass != 2)
break;
if ((yyvsp[-1].number) < 80)
{
conf_error_report("max_topic_length too low, setting to 80");
ServerInfo.max_topic_length = 80;
}
else if ((yyvsp[-1].number) > TOPICLEN)
{
char buf[IRCD_BUFSIZE];
snprintf(buf, sizeof(buf), "max_topic_length too high, setting to %d", TOPICLEN);
conf_error_report(buf);
ServerInfo.max_topic_length = TOPICLEN;
}
else
ServerInfo.max_topic_length = (yyvsp[-1].number);
}
#line 3351 "conf_parser.c" /* yacc.c:1646 */
break;
case 96:
#line 840 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
ServerInfo.hub = yylval.number;
}
#line 3360 "conf_parser.c" /* yacc.c:1646 */
break;
case 104:
#line 855 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass != 2)
break;
MyFree(AdminInfo.name);
AdminInfo.name = xstrdup(yylval.string);
}
#line 3372 "conf_parser.c" /* yacc.c:1646 */
break;
case 105:
#line 864 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass != 2)
break;
MyFree(AdminInfo.email);
AdminInfo.email = xstrdup(yylval.string);
}
#line 3384 "conf_parser.c" /* yacc.c:1646 */
break;
case 106:
#line 873 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass != 2)
break;
MyFree(AdminInfo.description);
AdminInfo.description = xstrdup(yylval.string);
}
#line 3396 "conf_parser.c" /* yacc.c:1646 */
break;
case 107:
#line 885 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
reset_block_state();
}
#line 3405 "conf_parser.c" /* yacc.c:1646 */
break;
case 108:
#line 889 "conf_parser.y" /* yacc.c:1646 */
{
dlink_node *ptr = NULL;
if (conf_parser_ctx.pass != 2)
break;
if (!block_state.file.buf[0])
break;
DLINK_FOREACH(ptr, block_state.mask.list.head)
motd_add(ptr->data, block_state.file.buf);
}
#line 3422 "conf_parser.c" /* yacc.c:1646 */
break;
case 114:
#line 906 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
dlinkAdd(xstrdup(yylval.string), make_dlink_node(), &block_state.mask.list);
}
#line 3431 "conf_parser.c" /* yacc.c:1646 */
break;
case 115:
#line 912 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
strlcpy(block_state.file.buf, yylval.string, sizeof(block_state.file.buf));
}
#line 3440 "conf_parser.c" /* yacc.c:1646 */
break;
case 122:
#line 927 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
ConfigLoggingEntry.use_logging = yylval.number;
}
#line 3449 "conf_parser.c" /* yacc.c:1646 */
break;
case 123:
#line 933 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
reset_block_state();
}
#line 3458 "conf_parser.c" /* yacc.c:1646 */
break;
case 124:
#line 937 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass != 2)
break;
if (block_state.type.value && block_state.file.buf[0])
log_set_file(block_state.type.value, block_state.size.value,
block_state.file.buf);
}
#line 3471 "conf_parser.c" /* yacc.c:1646 */
break;
case 131:
#line 953 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass != 2)
break;
strlcpy(block_state.file.buf, yylval.string, sizeof(block_state.file.buf));
}
#line 3482 "conf_parser.c" /* yacc.c:1646 */
break;
case 132:
#line 961 "conf_parser.y" /* yacc.c:1646 */
{
block_state.size.value = (yyvsp[-1].number);
}
#line 3490 "conf_parser.c" /* yacc.c:1646 */
break;
case 133:
#line 964 "conf_parser.y" /* yacc.c:1646 */
{
block_state.size.value = 0;
}
#line 3498 "conf_parser.c" /* yacc.c:1646 */
break;
case 134:
#line 969 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.type.value = 0;
}
#line 3507 "conf_parser.c" /* yacc.c:1646 */
break;
case 138:
#line 976 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.type.value = LOG_TYPE_USER;
}
#line 3516 "conf_parser.c" /* yacc.c:1646 */
break;
case 139:
#line 980 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.type.value = LOG_TYPE_OPER;
}
#line 3525 "conf_parser.c" /* yacc.c:1646 */
break;
case 140:
#line 984 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.type.value = LOG_TYPE_GLINE;
}
#line 3534 "conf_parser.c" /* yacc.c:1646 */
break;
case 141:
#line 988 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.type.value = LOG_TYPE_XLINE;
}
#line 3543 "conf_parser.c" /* yacc.c:1646 */
break;
case 142:
#line 992 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.type.value = LOG_TYPE_RESV;
}
#line 3552 "conf_parser.c" /* yacc.c:1646 */
break;
case 143:
#line 996 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.type.value = LOG_TYPE_DLINE;
}
#line 3561 "conf_parser.c" /* yacc.c:1646 */
break;
case 144:
#line 1000 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.type.value = LOG_TYPE_KLINE;
}
#line 3570 "conf_parser.c" /* yacc.c:1646 */
break;
case 145:
#line 1004 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.type.value = LOG_TYPE_KILL;
}
#line 3579 "conf_parser.c" /* yacc.c:1646 */
break;
case 146:
#line 1008 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.type.value = LOG_TYPE_DEBUG;
}
#line 3588 "conf_parser.c" /* yacc.c:1646 */
break;
case 147:
#line 1018 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass != 2)
break;
reset_block_state();
block_state.flags.value |= CONF_FLAGS_ENCRYPTED;
}
#line 3600 "conf_parser.c" /* yacc.c:1646 */
break;
case 148:
#line 1025 "conf_parser.y" /* yacc.c:1646 */
{
dlink_node *ptr = NULL;
if (conf_parser_ctx.pass != 2)
break;
if (!block_state.name.buf[0])
break;
#ifdef HAVE_LIBCRYPTO
if (!block_state.file.buf[0] &&
!block_state.rpass.buf[0])
break;
#else
if (!block_state.rpass.buf[0])
break;
#endif
DLINK_FOREACH(ptr, block_state.mask.list.head)
{
struct MaskItem *conf = NULL;
struct split_nuh_item nuh;
nuh.nuhmask = ptr->data;
nuh.nickptr = NULL;
nuh.userptr = block_state.user.buf;
nuh.hostptr = block_state.host.buf;
nuh.nicksize = 0;
nuh.usersize = sizeof(block_state.user.buf);
nuh.hostsize = sizeof(block_state.host.buf);
split_nuh(&nuh);
conf = conf_make(CONF_OPER);
conf->name = xstrdup(block_state.name.buf);
conf->user = xstrdup(block_state.user.buf);
conf->host = xstrdup(block_state.host.buf);
if (block_state.cert.buf[0])
conf->certfp = xstrdup(block_state.cert.buf);
if (block_state.rpass.buf[0])
conf->passwd = xstrdup(block_state.rpass.buf);
conf->flags = block_state.flags.value;
conf->modes = block_state.modes.value;
conf->port = block_state.port.value;
conf->htype = parse_netmask(conf->host, &conf->addr, &conf->bits);
conf_add_class_to_conf(conf, block_state.class.buf);
#ifdef HAVE_LIBCRYPTO
if (block_state.file.buf[0])
{
BIO *file = NULL;
RSA *pkey = NULL;
if ((file = BIO_new_file(block_state.file.buf, "r")) == NULL)
{
conf_error_report("Ignoring rsa_public_key_file -- file doesn't exist");
break;
}
if ((pkey = PEM_read_bio_RSA_PUBKEY(file, NULL, 0, NULL)) == NULL)
conf_error_report("Ignoring rsa_public_key_file -- Key invalid; check key syntax.");
conf->rsa_public_key = pkey;
BIO_set_close(file, BIO_CLOSE);
BIO_free(file);
}
#endif /* HAVE_LIBCRYPTO */
}
}
#line 3676 "conf_parser.c" /* yacc.c:1646 */
break;
case 162:
#line 1105 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
strlcpy(block_state.name.buf, yylval.string, sizeof(block_state.name.buf));
}
#line 3685 "conf_parser.c" /* yacc.c:1646 */
break;
case 163:
#line 1111 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
dlinkAdd(xstrdup(yylval.string), make_dlink_node(), &block_state.mask.list);
}
#line 3694 "conf_parser.c" /* yacc.c:1646 */
break;
case 164:
#line 1117 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
strlcpy(block_state.rpass.buf, yylval.string, sizeof(block_state.rpass.buf));
}
#line 3703 "conf_parser.c" /* yacc.c:1646 */
break;
case 165:
#line 1123 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass != 2)
break;
if (yylval.number)
block_state.flags.value |= CONF_FLAGS_ENCRYPTED;
else
block_state.flags.value &= ~CONF_FLAGS_ENCRYPTED;
}
#line 3717 "conf_parser.c" /* yacc.c:1646 */
break;
case 166:
#line 1134 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
strlcpy(block_state.file.buf, yylval.string, sizeof(block_state.file.buf));
}
#line 3726 "conf_parser.c" /* yacc.c:1646 */
break;
case 167:
#line 1140 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
strlcpy(block_state.cert.buf, yylval.string, sizeof(block_state.cert.buf));
}
#line 3735 "conf_parser.c" /* yacc.c:1646 */
break;
case 168:
#line 1146 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass != 2)
break;
if (yylval.number)
block_state.flags.value |= CONF_FLAGS_SSL;
else
block_state.flags.value &= ~CONF_FLAGS_SSL;
}
#line 3749 "conf_parser.c" /* yacc.c:1646 */
break;
case 169:
#line 1157 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
strlcpy(block_state.class.buf, yylval.string, sizeof(block_state.class.buf));
}
#line 3758 "conf_parser.c" /* yacc.c:1646 */
break;
case 170:
#line 1163 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.modes.value = 0;
}
#line 3767 "conf_parser.c" /* yacc.c:1646 */
break;
case 174:
#line 1170 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.modes.value |= UMODE_BOTS;
}
#line 3776 "conf_parser.c" /* yacc.c:1646 */
break;
case 175:
#line 1174 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.modes.value |= UMODE_CCONN;
}
#line 3785 "conf_parser.c" /* yacc.c:1646 */
break;
case 176:
#line 1178 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.modes.value |= UMODE_DEAF;
}
#line 3794 "conf_parser.c" /* yacc.c:1646 */
break;
case 177:
#line 1182 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.modes.value |= UMODE_DEBUG;
}
#line 3803 "conf_parser.c" /* yacc.c:1646 */
break;
case 178:
#line 1186 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.modes.value |= UMODE_FULL;
}
#line 3812 "conf_parser.c" /* yacc.c:1646 */
break;
case 179:
#line 1190 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.modes.value |= UMODE_HIDDEN;
}
#line 3821 "conf_parser.c" /* yacc.c:1646 */
break;
case 180:
#line 1194 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.modes.value |= UMODE_SKILL;
}
#line 3830 "conf_parser.c" /* yacc.c:1646 */
break;
case 181:
#line 1198 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.modes.value |= UMODE_NCHANGE;
}
#line 3839 "conf_parser.c" /* yacc.c:1646 */
break;
case 182:
#line 1202 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.modes.value |= UMODE_REJ;
}
#line 3848 "conf_parser.c" /* yacc.c:1646 */
break;
case 183:
#line 1206 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.modes.value |= UMODE_UNAUTH;
}
#line 3857 "conf_parser.c" /* yacc.c:1646 */
break;
case 184:
#line 1210 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.modes.value |= UMODE_SPY;
}
#line 3866 "conf_parser.c" /* yacc.c:1646 */
break;
case 185:
#line 1214 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.modes.value |= UMODE_EXTERNAL;
}
#line 3875 "conf_parser.c" /* yacc.c:1646 */
break;
case 186:
#line 1218 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.modes.value |= UMODE_OPERWALL;
}
#line 3884 "conf_parser.c" /* yacc.c:1646 */
break;
case 187:
#line 1222 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.modes.value |= UMODE_SERVNOTICE;
}
#line 3893 "conf_parser.c" /* yacc.c:1646 */
break;
case 188:
#line 1226 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.modes.value |= UMODE_INVISIBLE;
}
#line 3902 "conf_parser.c" /* yacc.c:1646 */
break;
case 189:
#line 1230 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.modes.value |= UMODE_WALLOP;
}
#line 3911 "conf_parser.c" /* yacc.c:1646 */
break;
case 190:
#line 1234 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.modes.value |= UMODE_SOFTCALLERID;
}
#line 3920 "conf_parser.c" /* yacc.c:1646 */
break;
case 191:
#line 1238 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.modes.value |= UMODE_CALLERID;
}
#line 3929 "conf_parser.c" /* yacc.c:1646 */
break;
case 192:
#line 1242 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.modes.value |= UMODE_LOCOPS;
}
#line 3938 "conf_parser.c" /* yacc.c:1646 */
break;
case 193:
#line 1246 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.modes.value |= UMODE_REGONLY;
}
#line 3947 "conf_parser.c" /* yacc.c:1646 */
break;
case 194:
#line 1250 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.modes.value |= UMODE_FARCONNECT;
}
#line 3956 "conf_parser.c" /* yacc.c:1646 */
break;
case 195:
#line 1256 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.port.value = 0;
}
#line 3965 "conf_parser.c" /* yacc.c:1646 */
break;
case 199:
#line 1263 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.port.value |= OPER_FLAG_KILL_REMOTE;
}
#line 3974 "conf_parser.c" /* yacc.c:1646 */
break;
case 200:
#line 1267 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.port.value |= OPER_FLAG_KILL;
}
#line 3983 "conf_parser.c" /* yacc.c:1646 */
break;
case 201:
#line 1271 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.port.value |= OPER_FLAG_CONNECT_REMOTE;
}
#line 3992 "conf_parser.c" /* yacc.c:1646 */
break;
case 202:
#line 1275 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.port.value |= OPER_FLAG_CONNECT;
}
#line 4001 "conf_parser.c" /* yacc.c:1646 */
break;
case 203:
#line 1279 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.port.value |= OPER_FLAG_SQUIT_REMOTE;
}
#line 4010 "conf_parser.c" /* yacc.c:1646 */
break;
case 204:
#line 1283 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.port.value |= OPER_FLAG_SQUIT;
}
#line 4019 "conf_parser.c" /* yacc.c:1646 */
break;
case 205:
#line 1287 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.port.value |= OPER_FLAG_K;
}
#line 4028 "conf_parser.c" /* yacc.c:1646 */
break;
case 206:
#line 1291 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.port.value |= OPER_FLAG_UNKLINE;
}
#line 4037 "conf_parser.c" /* yacc.c:1646 */
break;
case 207:
#line 1295 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.port.value |= OPER_FLAG_DLINE;
}
#line 4046 "conf_parser.c" /* yacc.c:1646 */
break;
case 208:
#line 1299 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.port.value |= OPER_FLAG_UNDLINE;
}
#line 4055 "conf_parser.c" /* yacc.c:1646 */
break;
case 209:
#line 1303 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.port.value |= OPER_FLAG_X;
}
#line 4064 "conf_parser.c" /* yacc.c:1646 */
break;
case 210:
#line 1307 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.port.value |= OPER_FLAG_GLINE;
}
#line 4073 "conf_parser.c" /* yacc.c:1646 */
break;
case 211:
#line 1311 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.port.value |= OPER_FLAG_DIE;
}
#line 4082 "conf_parser.c" /* yacc.c:1646 */
break;
case 212:
#line 1315 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.port.value |= OPER_FLAG_RESTART;
}
#line 4091 "conf_parser.c" /* yacc.c:1646 */
break;
case 213:
#line 1319 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.port.value |= OPER_FLAG_REHASH;
}
#line 4100 "conf_parser.c" /* yacc.c:1646 */
break;
case 214:
#line 1323 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.port.value |= OPER_FLAG_ADMIN;
}
#line 4109 "conf_parser.c" /* yacc.c:1646 */
break;
case 215:
#line 1327 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.port.value |= OPER_FLAG_OPERWALL;
}
#line 4118 "conf_parser.c" /* yacc.c:1646 */
break;
case 216:
#line 1331 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.port.value |= OPER_FLAG_GLOBOPS;
}
#line 4127 "conf_parser.c" /* yacc.c:1646 */
break;
case 217:
#line 1335 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.port.value |= OPER_FLAG_WALLOPS;
}
#line 4136 "conf_parser.c" /* yacc.c:1646 */
break;
case 218:
#line 1339 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.port.value |= OPER_FLAG_LOCOPS;
}
#line 4145 "conf_parser.c" /* yacc.c:1646 */
break;
case 219:
#line 1343 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.port.value |= OPER_FLAG_REMOTEBAN;
}
#line 4154 "conf_parser.c" /* yacc.c:1646 */
break;
case 220:
#line 1347 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.port.value |= OPER_FLAG_SET;
}
#line 4163 "conf_parser.c" /* yacc.c:1646 */
break;
case 221:
#line 1351 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.port.value |= OPER_FLAG_MODULE;
}
#line 4172 "conf_parser.c" /* yacc.c:1646 */
break;
case 222:
#line 1361 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass != 1)
break;
reset_block_state();
block_state.ping_freq.value = DEFAULT_PINGFREQUENCY;
block_state.con_freq.value = DEFAULT_CONNECTFREQUENCY;
block_state.max_total.value = MAXIMUM_LINKS_DEFAULT;
block_state.max_sendq.value = DEFAULT_SENDQ;
block_state.max_recvq.value = DEFAULT_RECVQ;
}
#line 4189 "conf_parser.c" /* yacc.c:1646 */
break;
case 223:
#line 1373 "conf_parser.y" /* yacc.c:1646 */
{
struct ClassItem *class = NULL;
if (conf_parser_ctx.pass != 1)
break;
if (!block_state.class.buf[0])
break;
if (!(class = class_find(block_state.class.buf, 0)))
class = class_make();
class->active = 1;
MyFree(class->name);
class->name = xstrdup(block_state.class.buf);
class->ping_freq = block_state.ping_freq.value;
class->max_perip = block_state.max_perip.value;
class->con_freq = block_state.con_freq.value;
class->max_total = block_state.max_total.value;
class->max_global = block_state.max_global.value;
class->max_local = block_state.max_local.value;
class->max_ident = block_state.max_ident.value;
class->max_sendq = block_state.max_sendq.value;
class->max_recvq = block_state.max_recvq.value;
if (block_state.min_idle.value > block_state.max_idle.value)
{
block_state.min_idle.value = 0;
block_state.max_idle.value = 0;
block_state.flags.value &= ~CLASS_FLAGS_FAKE_IDLE;
}
class->flags = block_state.flags.value;
class->min_idle = block_state.min_idle.value;
class->max_idle = block_state.max_idle.value;
if (class->number_per_cidr && block_state.number_per_cidr.value)
if ((class->cidr_bitlen_ipv4 && block_state.cidr_bitlen_ipv4.value) ||
(class->cidr_bitlen_ipv6 && block_state.cidr_bitlen_ipv6.value))
if ((class->cidr_bitlen_ipv4 != block_state.cidr_bitlen_ipv4.value) ||
(class->cidr_bitlen_ipv6 != block_state.cidr_bitlen_ipv6.value))
rebuild_cidr_list(class);
class->cidr_bitlen_ipv4 = block_state.cidr_bitlen_ipv4.value;
class->cidr_bitlen_ipv6 = block_state.cidr_bitlen_ipv6.value;
class->number_per_cidr = block_state.number_per_cidr.value;
}
#line 4241 "conf_parser.c" /* yacc.c:1646 */
break;
case 243:
#line 1439 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 1)
strlcpy(block_state.class.buf, yylval.string, sizeof(block_state.class.buf));
}
#line 4250 "conf_parser.c" /* yacc.c:1646 */
break;
case 244:
#line 1445 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 1)
block_state.ping_freq.value = (yyvsp[-1].number);
}
#line 4259 "conf_parser.c" /* yacc.c:1646 */
break;
case 245:
#line 1451 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 1)
block_state.max_perip.value = (yyvsp[-1].number);
}
#line 4268 "conf_parser.c" /* yacc.c:1646 */
break;
case 246:
#line 1457 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 1)
block_state.con_freq.value = (yyvsp[-1].number);
}
#line 4277 "conf_parser.c" /* yacc.c:1646 */
break;
case 247:
#line 1463 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 1)
block_state.max_total.value = (yyvsp[-1].number);
}
#line 4286 "conf_parser.c" /* yacc.c:1646 */
break;
case 248:
#line 1469 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 1)
block_state.max_global.value = (yyvsp[-1].number);
}
#line 4295 "conf_parser.c" /* yacc.c:1646 */
break;
case 249:
#line 1475 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 1)
block_state.max_local.value = (yyvsp[-1].number);
}
#line 4304 "conf_parser.c" /* yacc.c:1646 */
break;
case 250:
#line 1481 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 1)
block_state.max_ident.value = (yyvsp[-1].number);
}
#line 4313 "conf_parser.c" /* yacc.c:1646 */
break;
case 251:
#line 1487 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 1)
block_state.max_sendq.value = (yyvsp[-1].number);
}
#line 4322 "conf_parser.c" /* yacc.c:1646 */
break;
case 252:
#line 1493 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 1)
if ((yyvsp[-1].number) >= CLIENT_FLOOD_MIN && (yyvsp[-1].number) <= CLIENT_FLOOD_MAX)
block_state.max_recvq.value = (yyvsp[-1].number);
}
#line 4332 "conf_parser.c" /* yacc.c:1646 */
break;
case 253:
#line 1500 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 1)
block_state.cidr_bitlen_ipv4.value = (yyvsp[-1].number) > 32 ? 32 : (yyvsp[-1].number);
}
#line 4341 "conf_parser.c" /* yacc.c:1646 */
break;
case 254:
#line 1506 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 1)
block_state.cidr_bitlen_ipv6.value = (yyvsp[-1].number) > 128 ? 128 : (yyvsp[-1].number);
}
#line 4350 "conf_parser.c" /* yacc.c:1646 */
break;
case 255:
#line 1512 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 1)
block_state.number_per_cidr.value = (yyvsp[-1].number);
}
#line 4359 "conf_parser.c" /* yacc.c:1646 */
break;
case 256:
#line 1518 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass != 1)
break;
block_state.min_idle.value = (yyvsp[-1].number);
block_state.flags.value |= CLASS_FLAGS_FAKE_IDLE;
}
#line 4371 "conf_parser.c" /* yacc.c:1646 */
break;
case 257:
#line 1527 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass != 1)
break;
block_state.max_idle.value = (yyvsp[-1].number);
block_state.flags.value |= CLASS_FLAGS_FAKE_IDLE;
}
#line 4383 "conf_parser.c" /* yacc.c:1646 */
break;
case 258:
#line 1536 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 1)
block_state.flags.value &= CLASS_FLAGS_FAKE_IDLE;
}
#line 4392 "conf_parser.c" /* yacc.c:1646 */
break;
case 262:
#line 1543 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 1)
block_state.flags.value |= CLASS_FLAGS_RANDOM_IDLE;
}
#line 4401 "conf_parser.c" /* yacc.c:1646 */
break;
case 263:
#line 1547 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 1)
block_state.flags.value |= CLASS_FLAGS_HIDE_IDLE_FROM_OPERS;
}
#line 4410 "conf_parser.c" /* yacc.c:1646 */
break;
case 264:
#line 1557 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
reset_block_state();
}
#line 4419 "conf_parser.c" /* yacc.c:1646 */
break;
case 266:
#line 1563 "conf_parser.y" /* yacc.c:1646 */
{
block_state.flags.value = 0;
}
#line 4427 "conf_parser.c" /* yacc.c:1646 */
break;
case 270:
#line 1569 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= LISTENER_SSL;
}
#line 4436 "conf_parser.c" /* yacc.c:1646 */
break;
case 271:
#line 1573 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= LISTENER_HIDDEN;
}
#line 4445 "conf_parser.c" /* yacc.c:1646 */
break;
case 272:
#line 1577 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= LISTENER_SERVER;
}
#line 4454 "conf_parser.c" /* yacc.c:1646 */
break;
case 280:
#line 1585 "conf_parser.y" /* yacc.c:1646 */
{ block_state.flags.value = 0; }
#line 4460 "conf_parser.c" /* yacc.c:1646 */
break;
case 284:
#line 1590 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
{
if (block_state.flags.value & LISTENER_SSL)
#ifdef HAVE_LIBCRYPTO
if (!ServerInfo.server_ctx)
#endif
{
conf_error_report("SSL not available - port closed");
break;
}
add_listener((yyvsp[0].number), block_state.addr.buf, block_state.flags.value);
}
}
#line 4479 "conf_parser.c" /* yacc.c:1646 */
break;
case 285:
#line 1604 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
{
int i;
if (block_state.flags.value & LISTENER_SSL)
#ifdef HAVE_LIBCRYPTO
if (!ServerInfo.server_ctx)
#endif
{
conf_error_report("SSL not available - port closed");
break;
}
for (i = (yyvsp[-2].number); i <= (yyvsp[0].number); ++i)
add_listener(i, block_state.addr.buf, block_state.flags.value);
}
}
#line 4502 "conf_parser.c" /* yacc.c:1646 */
break;
case 286:
#line 1624 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
strlcpy(block_state.addr.buf, yylval.string, sizeof(block_state.addr.buf));
}
#line 4511 "conf_parser.c" /* yacc.c:1646 */
break;
case 287:
#line 1630 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
strlcpy(block_state.addr.buf, yylval.string, sizeof(block_state.addr.buf));
}
#line 4520 "conf_parser.c" /* yacc.c:1646 */
break;
case 288:
#line 1639 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
reset_block_state();
}
#line 4529 "conf_parser.c" /* yacc.c:1646 */
break;
case 289:
#line 1643 "conf_parser.y" /* yacc.c:1646 */
{
dlink_node *ptr = NULL;
if (conf_parser_ctx.pass != 2)
break;
DLINK_FOREACH(ptr, block_state.mask.list.head)
{
struct MaskItem *conf = NULL;
struct split_nuh_item nuh;
nuh.nuhmask = ptr->data;
nuh.nickptr = NULL;
nuh.userptr = block_state.user.buf;
nuh.hostptr = block_state.host.buf;
nuh.nicksize = 0;
nuh.usersize = sizeof(block_state.user.buf);
nuh.hostsize = sizeof(block_state.host.buf);
split_nuh(&nuh);
conf = conf_make(CONF_CLIENT);
conf->user = xstrdup(block_state.user.buf);
conf->host = xstrdup(block_state.host.buf);
if (block_state.rpass.buf[0])
conf->passwd = xstrdup(block_state.rpass.buf);
if (block_state.name.buf[0])
conf->name = xstrdup(block_state.name.buf);
conf->flags = block_state.flags.value;
conf->port = block_state.port.value;
conf_add_class_to_conf(conf, block_state.class.buf);
add_conf_by_address(CONF_CLIENT, conf);
}
}
#line 4570 "conf_parser.c" /* yacc.c:1646 */
break;
case 301:
#line 1686 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
dlinkAdd(xstrdup(yylval.string), make_dlink_node(), &block_state.mask.list);
}
#line 4579 "conf_parser.c" /* yacc.c:1646 */
break;
case 302:
#line 1692 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
strlcpy(block_state.rpass.buf, yylval.string, sizeof(block_state.rpass.buf));
}
#line 4588 "conf_parser.c" /* yacc.c:1646 */
break;
case 303:
#line 1698 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
strlcpy(block_state.class.buf, yylval.string, sizeof(block_state.class.buf));
}
#line 4597 "conf_parser.c" /* yacc.c:1646 */
break;
case 304:
#line 1704 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
{
if (yylval.number)
block_state.flags.value |= CONF_FLAGS_ENCRYPTED;
else
block_state.flags.value &= ~CONF_FLAGS_ENCRYPTED;
}
}
#line 4611 "conf_parser.c" /* yacc.c:1646 */
break;
case 305:
#line 1715 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value &= (CONF_FLAGS_ENCRYPTED | CONF_FLAGS_SPOOF_IP);
}
#line 4620 "conf_parser.c" /* yacc.c:1646 */
break;
case 309:
#line 1722 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= CONF_FLAGS_SPOOF_NOTICE;
}
#line 4629 "conf_parser.c" /* yacc.c:1646 */
break;
case 310:
#line 1726 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= CONF_FLAGS_NOLIMIT;
}
#line 4638 "conf_parser.c" /* yacc.c:1646 */
break;
case 311:
#line 1730 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= CONF_FLAGS_EXEMPTKLINE;
}
#line 4647 "conf_parser.c" /* yacc.c:1646 */
break;
case 312:
#line 1734 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= CONF_FLAGS_NEED_IDENTD;
}
#line 4656 "conf_parser.c" /* yacc.c:1646 */
break;
case 313:
#line 1738 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= CONF_FLAGS_CAN_FLOOD;
}
#line 4665 "conf_parser.c" /* yacc.c:1646 */
break;
case 314:
#line 1742 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= CONF_FLAGS_NO_TILDE;
}
#line 4674 "conf_parser.c" /* yacc.c:1646 */
break;
case 315:
#line 1746 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= CONF_FLAGS_EXEMPTGLINE;
}
#line 4683 "conf_parser.c" /* yacc.c:1646 */
break;
case 316:
#line 1750 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= CONF_FLAGS_EXEMPTRESV;
}
#line 4692 "conf_parser.c" /* yacc.c:1646 */
break;
case 317:
#line 1754 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= CONF_FLAGS_WEBIRC;
}
#line 4701 "conf_parser.c" /* yacc.c:1646 */
break;
case 318:
#line 1758 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= CONF_FLAGS_NEED_PASSWORD;
}
#line 4710 "conf_parser.c" /* yacc.c:1646 */
break;
case 319:
#line 1764 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass != 2)
break;
if (strlen(yylval.string) <= HOSTLEN && valid_hostname(yylval.string))
{
strlcpy(block_state.name.buf, yylval.string, sizeof(block_state.name.buf));
block_state.flags.value |= CONF_FLAGS_SPOOF_IP;
}
else
ilog(LOG_TYPE_IRCD, "Spoof either is too long or contains invalid characters. Ignoring it.");
}
#line 4727 "conf_parser.c" /* yacc.c:1646 */
break;
case 320:
#line 1778 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass != 2)
break;
strlcpy(block_state.name.buf, yylval.string, sizeof(block_state.name.buf));
block_state.flags.value |= CONF_FLAGS_REDIR;
}
#line 4739 "conf_parser.c" /* yacc.c:1646 */
break;
case 321:
#line 1787 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass != 2)
break;
block_state.flags.value |= CONF_FLAGS_REDIR;
block_state.port.value = (yyvsp[-1].number);
}
#line 4751 "conf_parser.c" /* yacc.c:1646 */
break;
case 322:
#line 1800 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass != 2)
break;
reset_block_state();
strlcpy(block_state.rpass.buf, CONF_NOREASON, sizeof(block_state.rpass.buf));
}
#line 4763 "conf_parser.c" /* yacc.c:1646 */
break;
case 323:
#line 1807 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass != 2)
break;
create_resv(block_state.name.buf, block_state.rpass.buf, &block_state.mask.list);
}
#line 4774 "conf_parser.c" /* yacc.c:1646 */
break;
case 330:
#line 1818 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
strlcpy(block_state.name.buf, yylval.string, sizeof(block_state.name.buf));
}
#line 4783 "conf_parser.c" /* yacc.c:1646 */
break;
case 331:
#line 1824 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
strlcpy(block_state.rpass.buf, yylval.string, sizeof(block_state.rpass.buf));
}
#line 4792 "conf_parser.c" /* yacc.c:1646 */
break;
case 332:
#line 1830 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
dlinkAdd(xstrdup(yylval.string), make_dlink_node(), &block_state.mask.list);
}
#line 4801 "conf_parser.c" /* yacc.c:1646 */
break;
case 338:
#line 1845 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass != 2)
break;
if (valid_servname(yylval.string))
{
struct MaskItem *conf = conf_make(CONF_SERVICE);
conf->name = xstrdup(yylval.string);
}
}
#line 4816 "conf_parser.c" /* yacc.c:1646 */
break;
case 339:
#line 1860 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass != 2)
break;
reset_block_state();
strlcpy(block_state.name.buf, "*", sizeof(block_state.name.buf));
strlcpy(block_state.user.buf, "*", sizeof(block_state.user.buf));
strlcpy(block_state.host.buf, "*", sizeof(block_state.host.buf));
block_state.flags.value = SHARED_ALL;
}
#line 4832 "conf_parser.c" /* yacc.c:1646 */
break;
case 340:
#line 1871 "conf_parser.y" /* yacc.c:1646 */
{
struct MaskItem *conf = NULL;
if (conf_parser_ctx.pass != 2)
break;
conf = conf_make(CONF_ULINE);
conf->flags = block_state.flags.value;
conf->name = xstrdup(block_state.name.buf);
conf->user = xstrdup(block_state.user.buf);
conf->host = xstrdup(block_state.host.buf);
}
#line 4849 "conf_parser.c" /* yacc.c:1646 */
break;
case 347:
#line 1888 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
strlcpy(block_state.name.buf, yylval.string, sizeof(block_state.name.buf));
}
#line 4858 "conf_parser.c" /* yacc.c:1646 */
break;
case 348:
#line 1894 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
{
struct split_nuh_item nuh;
nuh.nuhmask = yylval.string;
nuh.nickptr = NULL;
nuh.userptr = block_state.user.buf;
nuh.hostptr = block_state.host.buf;
nuh.nicksize = 0;
nuh.usersize = sizeof(block_state.user.buf);
nuh.hostsize = sizeof(block_state.host.buf);
split_nuh(&nuh);
}
}
#line 4880 "conf_parser.c" /* yacc.c:1646 */
break;
case 349:
#line 1913 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value = 0;
}
#line 4889 "conf_parser.c" /* yacc.c:1646 */
break;
case 353:
#line 1920 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= SHARED_KLINE;
}
#line 4898 "conf_parser.c" /* yacc.c:1646 */
break;
case 354:
#line 1924 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= SHARED_UNKLINE;
}
#line 4907 "conf_parser.c" /* yacc.c:1646 */
break;
case 355:
#line 1928 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= SHARED_DLINE;
}
#line 4916 "conf_parser.c" /* yacc.c:1646 */
break;
case 356:
#line 1932 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= SHARED_UNDLINE;
}
#line 4925 "conf_parser.c" /* yacc.c:1646 */
break;
case 357:
#line 1936 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= SHARED_XLINE;
}
#line 4934 "conf_parser.c" /* yacc.c:1646 */
break;
case 358:
#line 1940 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= SHARED_UNXLINE;
}
#line 4943 "conf_parser.c" /* yacc.c:1646 */
break;
case 359:
#line 1944 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= SHARED_RESV;
}
#line 4952 "conf_parser.c" /* yacc.c:1646 */
break;
case 360:
#line 1948 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= SHARED_UNRESV;
}
#line 4961 "conf_parser.c" /* yacc.c:1646 */
break;
case 361:
#line 1952 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= SHARED_LOCOPS;
}
#line 4970 "conf_parser.c" /* yacc.c:1646 */
break;
case 362:
#line 1956 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value = SHARED_ALL;
}
#line 4979 "conf_parser.c" /* yacc.c:1646 */
break;
case 363:
#line 1965 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass != 2)
break;
reset_block_state();
strlcpy(block_state.name.buf, "*", sizeof(block_state.name.buf));
block_state.flags.value = SHARED_ALL;
}
#line 4993 "conf_parser.c" /* yacc.c:1646 */
break;
case 364:
#line 1974 "conf_parser.y" /* yacc.c:1646 */
{
struct MaskItem *conf = NULL;
if (conf_parser_ctx.pass != 2)
break;
conf = conf_make(CONF_CLUSTER);
conf->flags = block_state.flags.value;
conf->name = xstrdup(block_state.name.buf);
}
#line 5008 "conf_parser.c" /* yacc.c:1646 */
break;
case 370:
#line 1989 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
strlcpy(block_state.name.buf, yylval.string, sizeof(block_state.name.buf));
}
#line 5017 "conf_parser.c" /* yacc.c:1646 */
break;
case 371:
#line 1995 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value = 0;
}
#line 5026 "conf_parser.c" /* yacc.c:1646 */
break;
case 375:
#line 2002 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= SHARED_KLINE;
}
#line 5035 "conf_parser.c" /* yacc.c:1646 */
break;
case 376:
#line 2006 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= SHARED_UNKLINE;
}
#line 5044 "conf_parser.c" /* yacc.c:1646 */
break;
case 377:
#line 2010 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= SHARED_DLINE;
}
#line 5053 "conf_parser.c" /* yacc.c:1646 */
break;
case 378:
#line 2014 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= SHARED_UNDLINE;
}
#line 5062 "conf_parser.c" /* yacc.c:1646 */
break;
case 379:
#line 2018 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= SHARED_XLINE;
}
#line 5071 "conf_parser.c" /* yacc.c:1646 */
break;
case 380:
#line 2022 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= SHARED_UNXLINE;
}
#line 5080 "conf_parser.c" /* yacc.c:1646 */
break;
case 381:
#line 2026 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= SHARED_RESV;
}
#line 5089 "conf_parser.c" /* yacc.c:1646 */
break;
case 382:
#line 2030 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= SHARED_UNRESV;
}
#line 5098 "conf_parser.c" /* yacc.c:1646 */
break;
case 383:
#line 2034 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= SHARED_LOCOPS;
}
#line 5107 "conf_parser.c" /* yacc.c:1646 */
break;
case 384:
#line 2038 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value = SHARED_ALL;
}
#line 5116 "conf_parser.c" /* yacc.c:1646 */
break;
case 385:
#line 2047 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass != 2)
break;
reset_block_state();
block_state.aftype.value = AF_INET;
block_state.port.value = PORTNUM;
}
#line 5130 "conf_parser.c" /* yacc.c:1646 */
break;
case 386:
#line 2056 "conf_parser.y" /* yacc.c:1646 */
{
struct MaskItem *conf = NULL;
struct addrinfo hints, *res;
if (conf_parser_ctx.pass != 2)
break;
if (!block_state.name.buf[0] ||
!block_state.host.buf[0])
break;
if (!block_state.rpass.buf[0] ||
!block_state.spass.buf[0])
break;
if (has_wildcards(block_state.name.buf) ||
has_wildcards(block_state.host.buf))
break;
conf = conf_make(CONF_SERVER);
conf->port = block_state.port.value;
conf->flags = block_state.flags.value;
conf->aftype = block_state.aftype.value;
conf->host = xstrdup(block_state.host.buf);
conf->name = xstrdup(block_state.name.buf);
conf->passwd = xstrdup(block_state.rpass.buf);
conf->spasswd = xstrdup(block_state.spass.buf);
if (block_state.cert.buf[0])
conf->certfp = xstrdup(block_state.cert.buf);
if (block_state.ciph.buf[0])
conf->cipher_list = xstrdup(block_state.ciph.buf);
dlinkMoveList(&block_state.leaf.list, &conf->leaf_list);
dlinkMoveList(&block_state.hub.list, &conf->hub_list);
if (block_state.bind.buf[0])
{
memset(&hints, 0, sizeof(hints));
hints.ai_family = AF_UNSPEC;
hints.ai_socktype = SOCK_STREAM;
hints.ai_flags = AI_PASSIVE | AI_NUMERICHOST;
if (getaddrinfo(block_state.bind.buf, NULL, &hints, &res))
ilog(LOG_TYPE_IRCD, "Invalid netmask for server vhost(%s)", block_state.bind.buf);
else
{
assert(res != NULL);
memcpy(&conf->bind, res->ai_addr, res->ai_addrlen);
conf->bind.ss.ss_family = res->ai_family;
conf->bind.ss_len = res->ai_addrlen;
freeaddrinfo(res);
}
}
conf_add_class_to_conf(conf, block_state.class.buf);
lookup_confhost(conf);
}
#line 5196 "conf_parser.c" /* yacc.c:1646 */
break;
case 404:
#line 2128 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
strlcpy(block_state.name.buf, yylval.string, sizeof(block_state.name.buf));
}
#line 5205 "conf_parser.c" /* yacc.c:1646 */
break;
case 405:
#line 2134 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
strlcpy(block_state.host.buf, yylval.string, sizeof(block_state.host.buf));
}
#line 5214 "conf_parser.c" /* yacc.c:1646 */
break;
case 406:
#line 2140 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
strlcpy(block_state.bind.buf, yylval.string, sizeof(block_state.bind.buf));
}
#line 5223 "conf_parser.c" /* yacc.c:1646 */
break;
case 407:
#line 2146 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass != 2)
break;
if ((yyvsp[-1].string)[0] == ':')
conf_error_report("Server passwords cannot begin with a colon");
else if (strchr((yyvsp[-1].string), ' ') != NULL)
conf_error_report("Server passwords cannot contain spaces");
else
strlcpy(block_state.spass.buf, yylval.string, sizeof(block_state.spass.buf));
}
#line 5239 "conf_parser.c" /* yacc.c:1646 */
break;
case 408:
#line 2159 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass != 2)
break;
if ((yyvsp[-1].string)[0] == ':')
conf_error_report("Server passwords cannot begin with a colon");
else if (strchr((yyvsp[-1].string), ' ') != NULL)
conf_error_report("Server passwords cannot contain spaces");
else
strlcpy(block_state.rpass.buf, yylval.string, sizeof(block_state.rpass.buf));
}
#line 5255 "conf_parser.c" /* yacc.c:1646 */
break;
case 409:
#line 2172 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
strlcpy(block_state.cert.buf, yylval.string, sizeof(block_state.cert.buf));
}
#line 5264 "conf_parser.c" /* yacc.c:1646 */
break;
case 410:
#line 2178 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.port.value = (yyvsp[-1].number);
}
#line 5273 "conf_parser.c" /* yacc.c:1646 */
break;
case 411:
#line 2184 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.aftype.value = AF_INET;
}
#line 5282 "conf_parser.c" /* yacc.c:1646 */
break;
case 412:
#line 2188 "conf_parser.y" /* yacc.c:1646 */
{
#ifdef IPV6
if (conf_parser_ctx.pass == 2)
block_state.aftype.value = AF_INET6;
#endif
}
#line 5293 "conf_parser.c" /* yacc.c:1646 */
break;
case 413:
#line 2196 "conf_parser.y" /* yacc.c:1646 */
{
block_state.flags.value &= CONF_FLAGS_ENCRYPTED;
}
#line 5301 "conf_parser.c" /* yacc.c:1646 */
break;
case 417:
#line 2202 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= CONF_FLAGS_ALLOW_AUTO_CONN;
}
#line 5310 "conf_parser.c" /* yacc.c:1646 */
break;
case 418:
#line 2206 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
block_state.flags.value |= CONF_FLAGS_SSL;
}
#line 5319 "conf_parser.c" /* yacc.c:1646 */
break;
case 419:
#line 2212 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
{
if (yylval.number)
block_state.flags.value |= CONF_FLAGS_ENCRYPTED;
else
block_state.flags.value &= ~CONF_FLAGS_ENCRYPTED;
}
}
#line 5333 "conf_parser.c" /* yacc.c:1646 */
break;
case 420:
#line 2223 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
dlinkAdd(xstrdup(yylval.string), make_dlink_node(), &block_state.hub.list);
}
#line 5342 "conf_parser.c" /* yacc.c:1646 */
break;
case 421:
#line 2229 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
dlinkAdd(xstrdup(yylval.string), make_dlink_node(), &block_state.leaf.list);
}
#line 5351 "conf_parser.c" /* yacc.c:1646 */
break;
case 422:
#line 2235 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
strlcpy(block_state.class.buf, yylval.string, sizeof(block_state.class.buf));
}
#line 5360 "conf_parser.c" /* yacc.c:1646 */
break;
case 423:
#line 2241 "conf_parser.y" /* yacc.c:1646 */
{
#ifdef HAVE_LIBCRYPTO
if (conf_parser_ctx.pass == 2)
strlcpy(block_state.ciph.buf, yylval.string, sizeof(block_state.ciph.buf));
#else
if (conf_parser_ctx.pass == 2)
conf_error_report("Ignoring connect::ciphers -- no OpenSSL support");
#endif
}
#line 5374 "conf_parser.c" /* yacc.c:1646 */
break;
case 424:
#line 2256 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
reset_block_state();
}
#line 5383 "conf_parser.c" /* yacc.c:1646 */
break;
case 425:
#line 2260 "conf_parser.y" /* yacc.c:1646 */
{
struct MaskItem *conf = NULL;
if (conf_parser_ctx.pass != 2)
break;
if (!block_state.user.buf[0] ||
!block_state.host.buf[0])
break;
conf = conf_make(CONF_KLINE);
conf->user = xstrdup(block_state.user.buf);
conf->host = xstrdup(block_state.host.buf);
if (block_state.rpass.buf[0])
conf->reason = xstrdup(block_state.rpass.buf);
else
conf->reason = xstrdup(CONF_NOREASON);
add_conf_by_address(CONF_KLINE, conf);
}
#line 5408 "conf_parser.c" /* yacc.c:1646 */
break;
case 431:
#line 2285 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
{
struct split_nuh_item nuh;
nuh.nuhmask = yylval.string;
nuh.nickptr = NULL;
nuh.userptr = block_state.user.buf;
nuh.hostptr = block_state.host.buf;
nuh.nicksize = 0;
nuh.usersize = sizeof(block_state.user.buf);
nuh.hostsize = sizeof(block_state.host.buf);
split_nuh(&nuh);
}
}
#line 5431 "conf_parser.c" /* yacc.c:1646 */
break;
case 432:
#line 2305 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
strlcpy(block_state.rpass.buf, yylval.string, sizeof(block_state.rpass.buf));
}
#line 5440 "conf_parser.c" /* yacc.c:1646 */
break;
case 433:
#line 2314 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
reset_block_state();
}
#line 5449 "conf_parser.c" /* yacc.c:1646 */
break;
case 434:
#line 2318 "conf_parser.y" /* yacc.c:1646 */
{
struct MaskItem *conf = NULL;
if (conf_parser_ctx.pass != 2)
break;
if (!block_state.addr.buf[0])
break;
if (parse_netmask(block_state.addr.buf, NULL, NULL) != HM_HOST)
{
conf = conf_make(CONF_DLINE);
conf->host = xstrdup(block_state.addr.buf);
if (block_state.rpass.buf[0])
conf->reason = xstrdup(block_state.rpass.buf);
else
conf->reason = xstrdup(CONF_NOREASON);
add_conf_by_address(CONF_DLINE, conf);
}
}
#line 5475 "conf_parser.c" /* yacc.c:1646 */
break;
case 440:
#line 2344 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
strlcpy(block_state.addr.buf, yylval.string, sizeof(block_state.addr.buf));
}
#line 5484 "conf_parser.c" /* yacc.c:1646 */
break;
case 441:
#line 2350 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
strlcpy(block_state.rpass.buf, yylval.string, sizeof(block_state.rpass.buf));
}
#line 5493 "conf_parser.c" /* yacc.c:1646 */
break;
case 447:
#line 2364 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
{
if (yylval.string[0] && parse_netmask(yylval.string, NULL, NULL) != HM_HOST)
{
struct MaskItem *conf = conf_make(CONF_EXEMPT);
conf->host = xstrdup(yylval.string);
add_conf_by_address(CONF_EXEMPT, conf);
}
}
}
#line 5510 "conf_parser.c" /* yacc.c:1646 */
break;
case 448:
#line 2381 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
reset_block_state();
}
#line 5519 "conf_parser.c" /* yacc.c:1646 */
break;
case 449:
#line 2385 "conf_parser.y" /* yacc.c:1646 */
{
struct MaskItem *conf = NULL;
if (conf_parser_ctx.pass != 2)
break;
if (!block_state.name.buf[0])
break;
conf = conf_make(CONF_XLINE);
conf->name = xstrdup(block_state.name.buf);
if (block_state.rpass.buf[0])
conf->reason = xstrdup(block_state.rpass.buf);
else
conf->reason = xstrdup(CONF_NOREASON);
}
#line 5541 "conf_parser.c" /* yacc.c:1646 */
break;
case 455:
#line 2407 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
strlcpy(block_state.name.buf, yylval.string, sizeof(block_state.name.buf));
}
#line 5550 "conf_parser.c" /* yacc.c:1646 */
break;
case 456:
#line 2413 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
strlcpy(block_state.rpass.buf, yylval.string, sizeof(block_state.rpass.buf));
}
#line 5559 "conf_parser.c" /* yacc.c:1646 */
break;
case 510:
#line 2458 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.max_watch = (yyvsp[-1].number);
}
#line 5567 "conf_parser.c" /* yacc.c:1646 */
break;
case 511:
#line 2463 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
ConfigFileEntry.cycle_on_host_change = yylval.number;
}
#line 5576 "conf_parser.c" /* yacc.c:1646 */
break;
case 512:
#line 2469 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
ConfigFileEntry.glines = yylval.number;
}
#line 5585 "conf_parser.c" /* yacc.c:1646 */
break;
case 513:
#line 2475 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
ConfigFileEntry.gline_time = (yyvsp[-1].number);
}
#line 5594 "conf_parser.c" /* yacc.c:1646 */
break;
case 514:
#line 2481 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
ConfigFileEntry.gline_request_time = (yyvsp[-1].number);
}
#line 5603 "conf_parser.c" /* yacc.c:1646 */
break;
case 515:
#line 2487 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.gline_min_cidr = (yyvsp[-1].number);
}
#line 5611 "conf_parser.c" /* yacc.c:1646 */
break;
case 516:
#line 2492 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.gline_min_cidr6 = (yyvsp[-1].number);
}
#line 5619 "conf_parser.c" /* yacc.c:1646 */
break;
case 517:
#line 2497 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.tkline_expire_notices = yylval.number;
}
#line 5627 "conf_parser.c" /* yacc.c:1646 */
break;
case 518:
#line 2502 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.kill_chase_time_limit = (yyvsp[-1].number);
}
#line 5635 "conf_parser.c" /* yacc.c:1646 */
break;
case 519:
#line 2507 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.hide_spoof_ips = yylval.number;
}
#line 5643 "conf_parser.c" /* yacc.c:1646 */
break;
case 520:
#line 2512 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.ignore_bogus_ts = yylval.number;
}
#line 5651 "conf_parser.c" /* yacc.c:1646 */
break;
case 521:
#line 2517 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.failed_oper_notice = yylval.number;
}
#line 5659 "conf_parser.c" /* yacc.c:1646 */
break;
case 522:
#line 2522 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.anti_nick_flood = yylval.number;
}
#line 5667 "conf_parser.c" /* yacc.c:1646 */
break;
case 523:
#line 2527 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.max_nick_time = (yyvsp[-1].number);
}
#line 5675 "conf_parser.c" /* yacc.c:1646 */
break;
case 524:
#line 2532 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.max_nick_changes = (yyvsp[-1].number);
}
#line 5683 "conf_parser.c" /* yacc.c:1646 */
break;
case 525:
#line 2537 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.max_accept = (yyvsp[-1].number);
}
#line 5691 "conf_parser.c" /* yacc.c:1646 */
break;
case 526:
#line 2542 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.anti_spam_exit_message_time = (yyvsp[-1].number);
}
#line 5699 "conf_parser.c" /* yacc.c:1646 */
break;
case 527:
#line 2547 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.ts_warn_delta = (yyvsp[-1].number);
}
#line 5707 "conf_parser.c" /* yacc.c:1646 */
break;
case 528:
#line 2552 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
ConfigFileEntry.ts_max_delta = (yyvsp[-1].number);
}
#line 5716 "conf_parser.c" /* yacc.c:1646 */
break;
case 529:
#line 2558 "conf_parser.y" /* yacc.c:1646 */
{
if (((yyvsp[-1].number) > 0) && conf_parser_ctx.pass == 1)
{
ilog(LOG_TYPE_IRCD, "You haven't read your config file properly.");
ilog(LOG_TYPE_IRCD, "There is a line in the example conf that will kill your server if not removed.");
ilog(LOG_TYPE_IRCD, "Consider actually reading/editing the conf file, and removing this line.");
exit(0);
}
}
#line 5730 "conf_parser.c" /* yacc.c:1646 */
break;
case 530:
#line 2569 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.invisible_on_connect = yylval.number;
}
#line 5738 "conf_parser.c" /* yacc.c:1646 */
break;
case 531:
#line 2574 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.warn_no_nline = yylval.number;
}
#line 5746 "conf_parser.c" /* yacc.c:1646 */
break;
case 532:
#line 2579 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.stats_e_disabled = yylval.number;
}
#line 5754 "conf_parser.c" /* yacc.c:1646 */
break;
case 533:
#line 2584 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.stats_o_oper_only = yylval.number;
}
#line 5762 "conf_parser.c" /* yacc.c:1646 */
break;
case 534:
#line 2589 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.stats_P_oper_only = yylval.number;
}
#line 5770 "conf_parser.c" /* yacc.c:1646 */
break;
case 535:
#line 2594 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.stats_u_oper_only = yylval.number;
}
#line 5778 "conf_parser.c" /* yacc.c:1646 */
break;
case 536:
#line 2599 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.stats_k_oper_only = 2 * yylval.number;
}
#line 5786 "conf_parser.c" /* yacc.c:1646 */
break;
case 537:
#line 2602 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.stats_k_oper_only = 1;
}
#line 5794 "conf_parser.c" /* yacc.c:1646 */
break;
case 538:
#line 2607 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.stats_i_oper_only = 2 * yylval.number;
}
#line 5802 "conf_parser.c" /* yacc.c:1646 */
break;
case 539:
#line 2610 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.stats_i_oper_only = 1;
}
#line 5810 "conf_parser.c" /* yacc.c:1646 */
break;
case 540:
#line 2615 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.pace_wait = (yyvsp[-1].number);
}
#line 5818 "conf_parser.c" /* yacc.c:1646 */
break;
case 541:
#line 2620 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.caller_id_wait = (yyvsp[-1].number);
}
#line 5826 "conf_parser.c" /* yacc.c:1646 */
break;
case 542:
#line 2625 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.opers_bypass_callerid = yylval.number;
}
#line 5834 "conf_parser.c" /* yacc.c:1646 */
break;
case 543:
#line 2630 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.pace_wait_simple = (yyvsp[-1].number);
}
#line 5842 "conf_parser.c" /* yacc.c:1646 */
break;
case 544:
#line 2635 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.short_motd = yylval.number;
}
#line 5850 "conf_parser.c" /* yacc.c:1646 */
break;
case 545:
#line 2640 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.no_oper_flood = yylval.number;
}
#line 5858 "conf_parser.c" /* yacc.c:1646 */
break;
case 546:
#line 2645 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.true_no_oper_flood = yylval.number;
}
#line 5866 "conf_parser.c" /* yacc.c:1646 */
break;
case 547:
#line 2650 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.oper_pass_resv = yylval.number;
}
#line 5874 "conf_parser.c" /* yacc.c:1646 */
break;
case 548:
#line 2655 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.dots_in_ident = (yyvsp[-1].number);
}
#line 5882 "conf_parser.c" /* yacc.c:1646 */
break;
case 549:
#line 2660 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.max_targets = (yyvsp[-1].number);
}
#line 5890 "conf_parser.c" /* yacc.c:1646 */
break;
case 550:
#line 2665 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.use_egd = yylval.number;
}
#line 5898 "conf_parser.c" /* yacc.c:1646 */
break;
case 551:
#line 2670 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
{
MyFree(ConfigFileEntry.egdpool_path);
ConfigFileEntry.egdpool_path = xstrdup(yylval.string);
}
}
#line 5910 "conf_parser.c" /* yacc.c:1646 */
break;
case 552:
#line 2679 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2 && valid_servname(yylval.string))
{
MyFree(ConfigFileEntry.service_name);
ConfigFileEntry.service_name = xstrdup(yylval.string);
}
}
#line 5922 "conf_parser.c" /* yacc.c:1646 */
break;
case 553:
#line 2688 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.ping_cookie = yylval.number;
}
#line 5930 "conf_parser.c" /* yacc.c:1646 */
break;
case 554:
#line 2693 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.disable_auth = yylval.number;
}
#line 5938 "conf_parser.c" /* yacc.c:1646 */
break;
case 555:
#line 2698 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.throttle_time = yylval.number;
}
#line 5946 "conf_parser.c" /* yacc.c:1646 */
break;
case 556:
#line 2703 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.oper_umodes = 0;
}
#line 5954 "conf_parser.c" /* yacc.c:1646 */
break;
case 560:
#line 2709 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.oper_umodes |= UMODE_BOTS;
}
#line 5962 "conf_parser.c" /* yacc.c:1646 */
break;
case 561:
#line 2712 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.oper_umodes |= UMODE_CCONN;
}
#line 5970 "conf_parser.c" /* yacc.c:1646 */
break;
case 562:
#line 2715 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.oper_umodes |= UMODE_DEAF;
}
#line 5978 "conf_parser.c" /* yacc.c:1646 */
break;
case 563:
#line 2718 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.oper_umodes |= UMODE_DEBUG;
}
#line 5986 "conf_parser.c" /* yacc.c:1646 */
break;
case 564:
#line 2721 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.oper_umodes |= UMODE_FULL;
}
#line 5994 "conf_parser.c" /* yacc.c:1646 */
break;
case 565:
#line 2724 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.oper_umodes |= UMODE_HIDDEN;
}
#line 6002 "conf_parser.c" /* yacc.c:1646 */
break;
case 566:
#line 2727 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.oper_umodes |= UMODE_SKILL;
}
#line 6010 "conf_parser.c" /* yacc.c:1646 */
break;
case 567:
#line 2730 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.oper_umodes |= UMODE_NCHANGE;
}
#line 6018 "conf_parser.c" /* yacc.c:1646 */
break;
case 568:
#line 2733 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.oper_umodes |= UMODE_REJ;
}
#line 6026 "conf_parser.c" /* yacc.c:1646 */
break;
case 569:
#line 2736 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.oper_umodes |= UMODE_UNAUTH;
}
#line 6034 "conf_parser.c" /* yacc.c:1646 */
break;
case 570:
#line 2739 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.oper_umodes |= UMODE_SPY;
}
#line 6042 "conf_parser.c" /* yacc.c:1646 */
break;
case 571:
#line 2742 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.oper_umodes |= UMODE_EXTERNAL;
}
#line 6050 "conf_parser.c" /* yacc.c:1646 */
break;
case 572:
#line 2745 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.oper_umodes |= UMODE_OPERWALL;
}
#line 6058 "conf_parser.c" /* yacc.c:1646 */
break;
case 573:
#line 2748 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.oper_umodes |= UMODE_SERVNOTICE;
}
#line 6066 "conf_parser.c" /* yacc.c:1646 */
break;
case 574:
#line 2751 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.oper_umodes |= UMODE_INVISIBLE;
}
#line 6074 "conf_parser.c" /* yacc.c:1646 */
break;
case 575:
#line 2754 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.oper_umodes |= UMODE_WALLOP;
}
#line 6082 "conf_parser.c" /* yacc.c:1646 */
break;
case 576:
#line 2757 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.oper_umodes |= UMODE_SOFTCALLERID;
}
#line 6090 "conf_parser.c" /* yacc.c:1646 */
break;
case 577:
#line 2760 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.oper_umodes |= UMODE_CALLERID;
}
#line 6098 "conf_parser.c" /* yacc.c:1646 */
break;
case 578:
#line 2763 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.oper_umodes |= UMODE_LOCOPS;
}
#line 6106 "conf_parser.c" /* yacc.c:1646 */
break;
case 579:
#line 2766 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.oper_umodes |= UMODE_REGONLY;
}
#line 6114 "conf_parser.c" /* yacc.c:1646 */
break;
case 580:
#line 2769 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.oper_umodes |= UMODE_FARCONNECT;
}
#line 6122 "conf_parser.c" /* yacc.c:1646 */
break;
case 581:
#line 2774 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.oper_only_umodes = 0;
}
#line 6130 "conf_parser.c" /* yacc.c:1646 */
break;
case 585:
#line 2780 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.oper_only_umodes |= UMODE_BOTS;
}
#line 6138 "conf_parser.c" /* yacc.c:1646 */
break;
case 586:
#line 2783 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.oper_only_umodes |= UMODE_CCONN;
}
#line 6146 "conf_parser.c" /* yacc.c:1646 */
break;
case 587:
#line 2786 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.oper_only_umodes |= UMODE_DEAF;
}
#line 6154 "conf_parser.c" /* yacc.c:1646 */
break;
case 588:
#line 2789 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.oper_only_umodes |= UMODE_DEBUG;
}
#line 6162 "conf_parser.c" /* yacc.c:1646 */
break;
case 589:
#line 2792 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.oper_only_umodes |= UMODE_FULL;
}
#line 6170 "conf_parser.c" /* yacc.c:1646 */
break;
case 590:
#line 2795 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.oper_only_umodes |= UMODE_SKILL;
}
#line 6178 "conf_parser.c" /* yacc.c:1646 */
break;
case 591:
#line 2798 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.oper_only_umodes |= UMODE_HIDDEN;
}
#line 6186 "conf_parser.c" /* yacc.c:1646 */
break;
case 592:
#line 2801 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.oper_only_umodes |= UMODE_NCHANGE;
}
#line 6194 "conf_parser.c" /* yacc.c:1646 */
break;
case 593:
#line 2804 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.oper_only_umodes |= UMODE_REJ;
}
#line 6202 "conf_parser.c" /* yacc.c:1646 */
break;
case 594:
#line 2807 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.oper_only_umodes |= UMODE_UNAUTH;
}
#line 6210 "conf_parser.c" /* yacc.c:1646 */
break;
case 595:
#line 2810 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.oper_only_umodes |= UMODE_SPY;
}
#line 6218 "conf_parser.c" /* yacc.c:1646 */
break;
case 596:
#line 2813 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.oper_only_umodes |= UMODE_EXTERNAL;
}
#line 6226 "conf_parser.c" /* yacc.c:1646 */
break;
case 597:
#line 2816 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.oper_only_umodes |= UMODE_OPERWALL;
}
#line 6234 "conf_parser.c" /* yacc.c:1646 */
break;
case 598:
#line 2819 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.oper_only_umodes |= UMODE_SERVNOTICE;
}
#line 6242 "conf_parser.c" /* yacc.c:1646 */
break;
case 599:
#line 2822 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.oper_only_umodes |= UMODE_INVISIBLE;
}
#line 6250 "conf_parser.c" /* yacc.c:1646 */
break;
case 600:
#line 2825 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.oper_only_umodes |= UMODE_WALLOP;
}
#line 6258 "conf_parser.c" /* yacc.c:1646 */
break;
case 601:
#line 2828 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.oper_only_umodes |= UMODE_SOFTCALLERID;
}
#line 6266 "conf_parser.c" /* yacc.c:1646 */
break;
case 602:
#line 2831 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.oper_only_umodes |= UMODE_CALLERID;
}
#line 6274 "conf_parser.c" /* yacc.c:1646 */
break;
case 603:
#line 2834 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.oper_only_umodes |= UMODE_LOCOPS;
}
#line 6282 "conf_parser.c" /* yacc.c:1646 */
break;
case 604:
#line 2837 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.oper_only_umodes |= UMODE_REGONLY;
}
#line 6290 "conf_parser.c" /* yacc.c:1646 */
break;
case 605:
#line 2840 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.oper_only_umodes |= UMODE_FARCONNECT;
}
#line 6298 "conf_parser.c" /* yacc.c:1646 */
break;
case 606:
#line 2845 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.min_nonwildcard = (yyvsp[-1].number);
}
#line 6306 "conf_parser.c" /* yacc.c:1646 */
break;
case 607:
#line 2850 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.min_nonwildcard_simple = (yyvsp[-1].number);
}
#line 6314 "conf_parser.c" /* yacc.c:1646 */
break;
case 608:
#line 2855 "conf_parser.y" /* yacc.c:1646 */
{
ConfigFileEntry.default_floodcount = (yyvsp[-1].number);
}
#line 6322 "conf_parser.c" /* yacc.c:1646 */
break;
case 625:
#line 2878 "conf_parser.y" /* yacc.c:1646 */
{
ConfigChannel.disable_fake_channels = yylval.number;
}
#line 6330 "conf_parser.c" /* yacc.c:1646 */
break;
case 626:
#line 2883 "conf_parser.y" /* yacc.c:1646 */
{
ConfigChannel.knock_delay = (yyvsp[-1].number);
}
#line 6338 "conf_parser.c" /* yacc.c:1646 */
break;
case 627:
#line 2888 "conf_parser.y" /* yacc.c:1646 */
{
ConfigChannel.knock_delay_channel = (yyvsp[-1].number);
}
#line 6346 "conf_parser.c" /* yacc.c:1646 */
break;
case 628:
#line 2893 "conf_parser.y" /* yacc.c:1646 */
{
ConfigChannel.max_chans_per_user = (yyvsp[-1].number);
}
#line 6354 "conf_parser.c" /* yacc.c:1646 */
break;
case 629:
#line 2898 "conf_parser.y" /* yacc.c:1646 */
{
ConfigChannel.max_chans_per_oper = (yyvsp[-1].number);
}
#line 6362 "conf_parser.c" /* yacc.c:1646 */
break;
case 630:
#line 2903 "conf_parser.y" /* yacc.c:1646 */
{
ConfigChannel.max_bans = (yyvsp[-1].number);
}
#line 6370 "conf_parser.c" /* yacc.c:1646 */
break;
case 631:
#line 2908 "conf_parser.y" /* yacc.c:1646 */
{
ConfigChannel.default_split_user_count = (yyvsp[-1].number);
}
#line 6378 "conf_parser.c" /* yacc.c:1646 */
break;
case 632:
#line 2913 "conf_parser.y" /* yacc.c:1646 */
{
ConfigChannel.default_split_server_count = (yyvsp[-1].number);
}
#line 6386 "conf_parser.c" /* yacc.c:1646 */
break;
case 633:
#line 2918 "conf_parser.y" /* yacc.c:1646 */
{
ConfigChannel.no_create_on_split = yylval.number;
}
#line 6394 "conf_parser.c" /* yacc.c:1646 */
break;
case 634:
#line 2923 "conf_parser.y" /* yacc.c:1646 */
{
ConfigChannel.no_join_on_split = yylval.number;
}
#line 6402 "conf_parser.c" /* yacc.c:1646 */
break;
case 635:
#line 2928 "conf_parser.y" /* yacc.c:1646 */
{
GlobalSetOptions.joinfloodcount = yylval.number;
}
#line 6410 "conf_parser.c" /* yacc.c:1646 */
break;
case 636:
#line 2933 "conf_parser.y" /* yacc.c:1646 */
{
GlobalSetOptions.joinfloodtime = yylval.number;
}
#line 6418 "conf_parser.c" /* yacc.c:1646 */
break;
case 649:
#line 2953 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
ConfigServerHide.flatten_links = yylval.number;
}
#line 6427 "conf_parser.c" /* yacc.c:1646 */
break;
case 650:
#line 2959 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
ConfigServerHide.disable_remote_commands = yylval.number;
}
#line 6436 "conf_parser.c" /* yacc.c:1646 */
break;
case 651:
#line 2965 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
ConfigServerHide.hide_servers = yylval.number;
}
#line 6445 "conf_parser.c" /* yacc.c:1646 */
break;
case 652:
#line 2971 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
ConfigServerHide.hide_services = yylval.number;
}
#line 6454 "conf_parser.c" /* yacc.c:1646 */
break;
case 653:
#line 2977 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
{
MyFree(ConfigServerHide.hidden_name);
ConfigServerHide.hidden_name = xstrdup(yylval.string);
}
}
#line 6466 "conf_parser.c" /* yacc.c:1646 */
break;
case 654:
#line 2986 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
{
if (((yyvsp[-1].number) > 0) && ConfigServerHide.links_disabled == 1)
{
eventAddIsh("write_links_file", write_links_file, NULL, (yyvsp[-1].number));
ConfigServerHide.links_disabled = 0;
}
ConfigServerHide.links_delay = (yyvsp[-1].number);
}
}
#line 6483 "conf_parser.c" /* yacc.c:1646 */
break;
case 655:
#line 3000 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
ConfigServerHide.hidden = yylval.number;
}
#line 6492 "conf_parser.c" /* yacc.c:1646 */
break;
case 656:
#line 3006 "conf_parser.y" /* yacc.c:1646 */
{
if (conf_parser_ctx.pass == 2)
ConfigServerHide.hide_server_ips = yylval.number;
}
#line 6501 "conf_parser.c" /* yacc.c:1646 */
break;
#line 6505 "conf_parser.c" /* yacc.c:1646 */
default: break;
}
/* User semantic actions sometimes alter yychar, and that requires
that yytoken be updated with the new translation. We take the
approach of translating immediately before every use of yytoken.
One alternative is translating here after every semantic action,
but that translation would be missed if the semantic action invokes
YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or
if it invokes YYBACKUP. In the case of YYABORT or YYACCEPT, an
incorrect destructor might then be invoked immediately. In the
case of YYERROR or YYBACKUP, subsequent parser actions might lead
to an incorrect destructor call or verbose syntax error message
before the lookahead is translated. */
YY_SYMBOL_PRINT ("-> $$ =", 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:
/* Make sure we have latest lookahead translation. See comments at
user semantic actions for why this is necessary. */
yytoken = yychar == YYEMPTY ? YYEMPTY : YYTRANSLATE (yychar);
/* If not already recovering from an error, report this error. */
if (!yyerrstatus)
{
++yynerrs;
#if ! YYERROR_VERBOSE
yyerror (YY_("syntax error"));
#else
# define YYSYNTAX_ERROR yysyntax_error (&yymsg_alloc, &yymsg, \
yyssp, yytoken)
{
char const *yymsgp = YY_("syntax error");
int yysyntax_error_status;
yysyntax_error_status = YYSYNTAX_ERROR;
if (yysyntax_error_status == 0)
yymsgp = yymsg;
else if (yysyntax_error_status == 1)
{
if (yymsg != yymsgbuf)
YYSTACK_FREE (yymsg);
yymsg = (char *) YYSTACK_ALLOC (yymsg_alloc);
if (!yymsg)
{
yymsg = yymsgbuf;
yymsg_alloc = sizeof yymsgbuf;
yysyntax_error_status = 2;
}
else
{
yysyntax_error_status = YYSYNTAX_ERROR;
yymsgp = yymsg;
}
}
yyerror (yymsgp);
if (yysyntax_error_status == 2)
goto yyexhaustedlab;
}
# undef YYSYNTAX_ERROR
#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 whose action triggered
this YYERROR. */
YYPOPSTACK (yylen);
yylen = 0;
YY_STACK_PRINT (yyss, yyssp);
yystate = *yyssp;
goto yyerrlab1;
/*-------------------------------------------------------------.
| yyerrlab1 -- common code for both syntax error and YYERROR. |
`-------------------------------------------------------------*/
yyerrlab1:
yyerrstatus = 3; /* Each real token shifted decrements this. */
for (;;)
{
yyn = yypact[yystate];
if (!yypact_value_is_default (yyn))
{
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);
}
YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
*++yyvsp = yylval;
YY_IGNORE_MAYBE_UNINITIALIZED_END
/* 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)
{
/* Make sure we have latest lookahead translation. See comments at
user semantic actions for why this is necessary. */
yytoken = YYTRANSLATE (yychar);
yydestruct ("Cleanup: discarding lookahead",
yytoken, &yylval);
}
/* Do not reclaim the symbols of the rule whose action triggered
this YYABORT or YYACCEPT. */
YYPOPSTACK (yylen);
YY_STACK_PRINT (yyss, yyssp);
while (yyssp != yyss)
{
yydestruct ("Cleanup: popping",
yystos[*yyssp], yyvsp);
YYPOPSTACK (1);
}
#ifndef yyoverflow
if (yyss != yyssa)
YYSTACK_FREE (yyss);
#endif
#if YYERROR_VERBOSE
if (yymsg != yymsgbuf)
YYSTACK_FREE (yymsg);
#endif
return yyresult;
}