/* A Bison parser, made by GNU Bison 3.3.2. */ /* Bison implementation for Yacc-like parsers in C Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2019 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. */ /* Undocumented macros, especially those whose name start with YY_, are private implementation details. Do not rely on them. */ /* Identify Bison output. */ #define YYBISON 1 /* Bison version. */ #define YYBISON_VERSION "3.3.2" /* Skeleton name. */ #define YYSKELETON_NAME "yacc.c" /* Pure parsers. */ #define YYPURE 0 /* Push parsers. */ #define YYPUSH 0 /* Pull parsers. */ #define YYPULL 1 /* First part of user prologue. */ #line 28 "conf_parser.y" /* yacc.c:337 */ #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" #include "channel_mode.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 186 "conf_parser.c" /* yacc.c:337 */ # ifndef YY_NULLPTR # if defined __cplusplus # if 201103L <= __cplusplus # define YY_NULLPTR nullptr # else # define YY_NULLPTR 0 # endif # else # define YY_NULLPTR ((void*)0) # endif # endif /* 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_MODES = 277, DEFAULT_SPLIT_SERVER_COUNT = 278, DEFAULT_SPLIT_USER_COUNT = 279, DENY = 280, DESCRIPTION = 281, DIE = 282, DISABLE_AUTH = 283, DISABLE_FAKE_CHANNELS = 284, DISABLE_REMOTE_COMMANDS = 285, DOTS_IN_IDENT = 286, EGDPOOL_PATH = 287, EMAIL = 288, ENCRYPTED = 289, EXCEED_LIMIT = 290, EXEMPT = 291, FAILED_OPER_NOTICE = 292, FLATTEN_LINKS = 293, GECOS = 294, GENERAL = 295, GLINE = 296, GLINE_DURATION = 297, GLINE_ENABLE = 298, GLINE_EXEMPT = 299, GLINE_MIN_CIDR = 300, GLINE_MIN_CIDR6 = 301, GLINE_REQUEST_DURATION = 302, GLOBAL_KILL = 303, HAVENT_READ_CONF = 304, HIDDEN = 305, HIDDEN_NAME = 306, HIDE_IDLE_FROM_OPERS = 307, HIDE_SERVER_IPS = 308, HIDE_SERVERS = 309, HIDE_SERVICES = 310, HIDE_SPOOF_IPS = 311, HOST = 312, HUB = 313, HUB_MASK = 314, IGNORE_BOGUS_TS = 315, INVISIBLE_ON_CONNECT = 316, IP = 317, IRCD_AUTH = 318, IRCD_FLAGS = 319, IRCD_SID = 320, JOIN_FLOOD_COUNT = 321, JOIN_FLOOD_TIME = 322, KILL = 323, KILL_CHASE_TIME_LIMIT = 324, KLINE = 325, KLINE_EXEMPT = 326, KNOCK_DELAY = 327, KNOCK_DELAY_CHANNEL = 328, LEAF_MASK = 329, LINKS_DELAY = 330, LISTEN = 331, MASK = 332, MAX_ACCEPT = 333, MAX_BANS = 334, MAX_CHANS_PER_OPER = 335, MAX_CHANS_PER_USER = 336, MAX_GLOBAL = 337, MAX_IDENT = 338, MAX_IDLE = 339, MAX_LOCAL = 340, MAX_NICK_CHANGES = 341, MAX_NICK_LENGTH = 342, MAX_NICK_TIME = 343, MAX_NUMBER = 344, MAX_TARGETS = 345, MAX_TOPIC_LENGTH = 346, MAX_WATCH = 347, MIN_IDLE = 348, MIN_NONWILDCARD = 349, MIN_NONWILDCARD_SIMPLE = 350, MODULE = 351, MODULES = 352, MOTD = 353, NAME = 354, NEED_IDENT = 355, NEED_PASSWORD = 356, NETWORK_DESC = 357, NETWORK_NAME = 358, NICK = 359, NO_CREATE_ON_SPLIT = 360, NO_JOIN_ON_SPLIT = 361, NO_OPER_FLOOD = 362, NO_TILDE = 363, NUMBER = 364, NUMBER_PER_CIDR = 365, NUMBER_PER_IP = 366, OPER_ONLY_UMODES = 367, OPER_PASS_RESV = 368, OPER_UMODES = 369, OPERATOR = 370, OPERS_BYPASS_CALLERID = 371, PACE_WAIT = 372, PACE_WAIT_SIMPLE = 373, PASSWORD = 374, PATH = 375, PING_COOKIE = 376, PING_TIME = 377, PORT = 378, QSTRING = 379, RANDOM_IDLE = 380, REASON = 381, REDIRPORT = 382, REDIRSERV = 383, REHASH = 384, REMOTE = 385, REMOTEBAN = 386, RESV = 387, RESV_EXEMPT = 388, RSA_PRIVATE_KEY_FILE = 389, RSA_PUBLIC_KEY_FILE = 390, SECONDS = 391, MINUTES = 392, HOURS = 393, DAYS = 394, WEEKS = 395, MONTHS = 396, YEARS = 397, SEND_PASSWORD = 398, SENDQ = 399, SERVERHIDE = 400, SERVERINFO = 401, SHORT_MOTD = 402, SPOOF = 403, SPOOF_NOTICE = 404, SQUIT = 405, SSL_CERTIFICATE_FILE = 406, SSL_CERTIFICATE_FINGERPRINT = 407, SSL_CONNECTION_REQUIRED = 408, SSL_DH_PARAM_FILE = 409, STATS_E_DISABLED = 410, STATS_I_OPER_ONLY = 411, STATS_K_OPER_ONLY = 412, STATS_O_OPER_ONLY = 413, STATS_P_OPER_ONLY = 414, STATS_U_OPER_ONLY = 415, T_ALL = 416, T_BOTS = 417, T_CALLERID = 418, T_CCONN = 419, T_CLUSTER = 420, T_DEAF = 421, T_DEBUG = 422, T_DLINE = 423, T_EXTERNAL = 424, T_FARCONNECT = 425, T_FILE = 426, T_FULL = 427, T_GCHANOPS = 428, T_GLOBOPS = 429, T_INVISIBLE = 430, T_INVITEONLY = 431, T_IPV4 = 432, T_IPV6 = 433, T_LOCOPS = 434, T_LOG = 435, T_MAX_CLIENTS = 436, T_MODERATED = 437, T_NCHANGE = 438, T_NONONREG = 439, T_NOPRIVMSGS = 440, T_OPERWALL = 441, T_PRIVATE = 442, T_RECVQ = 443, T_REJ = 444, T_RESTART = 445, T_SECRET = 446, T_SERVER = 447, T_SERVICE = 448, T_SERVICES_NAME = 449, T_SERVNOTICE = 450, T_SET = 451, T_SHARED = 452, T_SIZE = 453, T_SKILL = 454, T_SOFTCALLERID = 455, T_SPY = 456, T_SSL = 457, T_SSL_CIPHER_LIST = 458, T_SSL_CLIENT_METHOD = 459, T_SSL_SERVER_METHOD = 460, T_SSLV3 = 461, T_TLSV1 = 462, T_TOPICLIMIT = 463, T_UMODES = 464, T_UNAUTH = 465, T_UNDLINE = 466, T_UNLIMITED = 467, T_UNRESV = 468, T_UNXLINE = 469, T_WALLOP = 470, T_WALLOPS = 471, T_WEBIRC = 472, TBOOL = 473, THROTTLE_TIME = 474, TKLINE = 475, TKLINE_EXPIRE_NOTICES = 476, TKLINE_TIME = 477, TMASKED = 478, TRUE_NO_OPER_FLOOD = 479, TS_MAX_DELTA = 480, TS_WARN_DELTA = 481, TWODOTS = 482, TYPE = 483, UNKLINE = 484, USE_EGD = 485, USE_LOGGING = 486, USER = 487, VHOST = 488, VHOST6 = 489, WARN_NO_NLINE = 490, XLINE = 491 }; #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_MODES 277 #define DEFAULT_SPLIT_SERVER_COUNT 278 #define DEFAULT_SPLIT_USER_COUNT 279 #define DENY 280 #define DESCRIPTION 281 #define DIE 282 #define DISABLE_AUTH 283 #define DISABLE_FAKE_CHANNELS 284 #define DISABLE_REMOTE_COMMANDS 285 #define DOTS_IN_IDENT 286 #define EGDPOOL_PATH 287 #define EMAIL 288 #define ENCRYPTED 289 #define EXCEED_LIMIT 290 #define EXEMPT 291 #define FAILED_OPER_NOTICE 292 #define FLATTEN_LINKS 293 #define GECOS 294 #define GENERAL 295 #define GLINE 296 #define GLINE_DURATION 297 #define GLINE_ENABLE 298 #define GLINE_EXEMPT 299 #define GLINE_MIN_CIDR 300 #define GLINE_MIN_CIDR6 301 #define GLINE_REQUEST_DURATION 302 #define GLOBAL_KILL 303 #define HAVENT_READ_CONF 304 #define HIDDEN 305 #define HIDDEN_NAME 306 #define HIDE_IDLE_FROM_OPERS 307 #define HIDE_SERVER_IPS 308 #define HIDE_SERVERS 309 #define HIDE_SERVICES 310 #define HIDE_SPOOF_IPS 311 #define HOST 312 #define HUB 313 #define HUB_MASK 314 #define IGNORE_BOGUS_TS 315 #define INVISIBLE_ON_CONNECT 316 #define IP 317 #define IRCD_AUTH 318 #define IRCD_FLAGS 319 #define IRCD_SID 320 #define JOIN_FLOOD_COUNT 321 #define JOIN_FLOOD_TIME 322 #define KILL 323 #define KILL_CHASE_TIME_LIMIT 324 #define KLINE 325 #define KLINE_EXEMPT 326 #define KNOCK_DELAY 327 #define KNOCK_DELAY_CHANNEL 328 #define LEAF_MASK 329 #define LINKS_DELAY 330 #define LISTEN 331 #define MASK 332 #define MAX_ACCEPT 333 #define MAX_BANS 334 #define MAX_CHANS_PER_OPER 335 #define MAX_CHANS_PER_USER 336 #define MAX_GLOBAL 337 #define MAX_IDENT 338 #define MAX_IDLE 339 #define MAX_LOCAL 340 #define MAX_NICK_CHANGES 341 #define MAX_NICK_LENGTH 342 #define MAX_NICK_TIME 343 #define MAX_NUMBER 344 #define MAX_TARGETS 345 #define MAX_TOPIC_LENGTH 346 #define MAX_WATCH 347 #define MIN_IDLE 348 #define MIN_NONWILDCARD 349 #define MIN_NONWILDCARD_SIMPLE 350 #define MODULE 351 #define MODULES 352 #define MOTD 353 #define NAME 354 #define NEED_IDENT 355 #define NEED_PASSWORD 356 #define NETWORK_DESC 357 #define NETWORK_NAME 358 #define NICK 359 #define NO_CREATE_ON_SPLIT 360 #define NO_JOIN_ON_SPLIT 361 #define NO_OPER_FLOOD 362 #define NO_TILDE 363 #define NUMBER 364 #define NUMBER_PER_CIDR 365 #define NUMBER_PER_IP 366 #define OPER_ONLY_UMODES 367 #define OPER_PASS_RESV 368 #define OPER_UMODES 369 #define OPERATOR 370 #define OPERS_BYPASS_CALLERID 371 #define PACE_WAIT 372 #define PACE_WAIT_SIMPLE 373 #define PASSWORD 374 #define PATH 375 #define PING_COOKIE 376 #define PING_TIME 377 #define PORT 378 #define QSTRING 379 #define RANDOM_IDLE 380 #define REASON 381 #define REDIRPORT 382 #define REDIRSERV 383 #define REHASH 384 #define REMOTE 385 #define REMOTEBAN 386 #define RESV 387 #define RESV_EXEMPT 388 #define RSA_PRIVATE_KEY_FILE 389 #define RSA_PUBLIC_KEY_FILE 390 #define SECONDS 391 #define MINUTES 392 #define HOURS 393 #define DAYS 394 #define WEEKS 395 #define MONTHS 396 #define YEARS 397 #define SEND_PASSWORD 398 #define SENDQ 399 #define SERVERHIDE 400 #define SERVERINFO 401 #define SHORT_MOTD 402 #define SPOOF 403 #define SPOOF_NOTICE 404 #define SQUIT 405 #define SSL_CERTIFICATE_FILE 406 #define SSL_CERTIFICATE_FINGERPRINT 407 #define SSL_CONNECTION_REQUIRED 408 #define SSL_DH_PARAM_FILE 409 #define STATS_E_DISABLED 410 #define STATS_I_OPER_ONLY 411 #define STATS_K_OPER_ONLY 412 #define STATS_O_OPER_ONLY 413 #define STATS_P_OPER_ONLY 414 #define STATS_U_OPER_ONLY 415 #define T_ALL 416 #define T_BOTS 417 #define T_CALLERID 418 #define T_CCONN 419 #define T_CLUSTER 420 #define T_DEAF 421 #define T_DEBUG 422 #define T_DLINE 423 #define T_EXTERNAL 424 #define T_FARCONNECT 425 #define T_FILE 426 #define T_FULL 427 #define T_GCHANOPS 428 #define T_GLOBOPS 429 #define T_INVISIBLE 430 #define T_INVITEONLY 431 #define T_IPV4 432 #define T_IPV6 433 #define T_LOCOPS 434 #define T_LOG 435 #define T_MAX_CLIENTS 436 #define T_MODERATED 437 #define T_NCHANGE 438 #define T_NONONREG 439 #define T_NOPRIVMSGS 440 #define T_OPERWALL 441 #define T_PRIVATE 442 #define T_RECVQ 443 #define T_REJ 444 #define T_RESTART 445 #define T_SECRET 446 #define T_SERVER 447 #define T_SERVICE 448 #define T_SERVICES_NAME 449 #define T_SERVNOTICE 450 #define T_SET 451 #define T_SHARED 452 #define T_SIZE 453 #define T_SKILL 454 #define T_SOFTCALLERID 455 #define T_SPY 456 #define T_SSL 457 #define T_SSL_CIPHER_LIST 458 #define T_SSL_CLIENT_METHOD 459 #define T_SSL_SERVER_METHOD 460 #define T_SSLV3 461 #define T_TLSV1 462 #define T_TOPICLIMIT 463 #define T_UMODES 464 #define T_UNAUTH 465 #define T_UNDLINE 466 #define T_UNLIMITED 467 #define T_UNRESV 468 #define T_UNXLINE 469 #define T_WALLOP 470 #define T_WALLOPS 471 #define T_WEBIRC 472 #define TBOOL 473 #define THROTTLE_TIME 474 #define TKLINE 475 #define TKLINE_EXPIRE_NOTICES 476 #define TKLINE_TIME 477 #define TMASKED 478 #define TRUE_NO_OPER_FLOOD 479 #define TS_MAX_DELTA 480 #define TS_WARN_DELTA 481 #define TWODOTS 482 #define TYPE 483 #define UNKLINE 484 #define USE_EGD 485 #define USE_LOGGING 486 #define USER 487 #define VHOST 488 #define VHOST6 489 #define WARN_NO_NLINE 490 #define XLINE 491 /* Value type. */ #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED union YYSTYPE { #line 144 "conf_parser.y" /* yacc.c:352 */ int number; char *string; #line 706 "conf_parser.c" /* yacc.c:352 */ }; typedef union YYSTYPE YYSTYPE; # define YYSTYPE_IS_TRIVIAL 1 # define YYSTYPE_IS_DECLARED 1 #endif extern YYSTYPE yylval; int yyparse (void); #endif /* !YY_YY_CONF_PARSER_H_INCLUDED */ #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 yytype_uint16; #endif #ifdef YYTYPE_INT16 typedef YYTYPE_INT16 yytype_int16; #else typedef short 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 # 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 /* 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__ && ! defined __ICC && 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 1332 /* YYNTOKENS -- Number of terminals. */ #define YYNTOKENS 243 /* YYNNTS -- Number of nonterminals. */ #define YYNNTS 296 /* YYNRULES -- Number of rules. */ #define YYNRULES 674 /* YYNSTATES -- Number of states. */ #define YYNSTATES 1312 #define YYUNDEFTOK 2 #define YYMAXUTOK 491 /* YYTRANSLATE(TOKEN-NUM) -- Symbol number corresponding to TOKEN-NUM as returned by yylex, with out-of-bounds checking. */ #define YYTRANSLATE(YYX) \ ((unsigned) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) /* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM as returned by yylex. */ 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, 241, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 242, 237, 2, 240, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 239, 2, 238, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236 }; #if YYDEBUG /* YYRLINE[YYN] -- Source line where rule number YYN was defined. */ static const yytype_uint16 yyrline[] = { 0, 384, 384, 385, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 414, 414, 415, 419, 423, 427, 431, 435, 439, 443, 449, 449, 450, 451, 452, 453, 460, 463, 463, 464, 464, 464, 466, 472, 479, 481, 481, 482, 482, 483, 483, 484, 484, 485, 485, 486, 486, 487, 487, 488, 488, 489, 489, 490, 491, 494, 495, 497, 497, 498, 504, 512, 512, 513, 519, 527, 567, 625, 654, 662, 677, 692, 701, 715, 724, 752, 782, 807, 829, 851, 860, 862, 862, 863, 863, 864, 864, 866, 875, 884, 897, 896, 914, 914, 915, 915, 915, 917, 923, 932, 933, 933, 935, 935, 936, 938, 945, 945, 958, 959, 961, 961, 962, 962, 964, 972, 975, 981, 980, 986, 986, 987, 991, 995, 999, 1003, 1007, 1011, 1015, 1019, 1030, 1029, 1115, 1115, 1116, 1116, 1116, 1117, 1117, 1117, 1118, 1118, 1119, 1120, 1120, 1122, 1128, 1134, 1140, 1151, 1157, 1163, 1174, 1181, 1180, 1186, 1186, 1187, 1191, 1195, 1199, 1203, 1207, 1211, 1215, 1219, 1223, 1227, 1231, 1235, 1239, 1243, 1247, 1251, 1255, 1259, 1263, 1267, 1271, 1278, 1277, 1283, 1283, 1284, 1288, 1292, 1296, 1300, 1304, 1308, 1312, 1316, 1320, 1324, 1328, 1332, 1336, 1340, 1344, 1348, 1352, 1356, 1360, 1364, 1368, 1372, 1376, 1380, 1391, 1390, 1451, 1451, 1452, 1453, 1453, 1454, 1455, 1456, 1457, 1458, 1459, 1460, 1461, 1462, 1462, 1463, 1464, 1465, 1466, 1468, 1474, 1480, 1486, 1492, 1498, 1504, 1510, 1516, 1522, 1529, 1535, 1541, 1547, 1556, 1566, 1565, 1571, 1571, 1572, 1576, 1587, 1586, 1593, 1592, 1597, 1597, 1598, 1602, 1606, 1612, 1612, 1613, 1613, 1613, 1613, 1613, 1615, 1615, 1617, 1617, 1619, 1633, 1653, 1659, 1669, 1668, 1712, 1712, 1713, 1713, 1713, 1713, 1714, 1714, 1714, 1715, 1716, 1716, 1718, 1724, 1730, 1736, 1742, 1754, 1753, 1759, 1759, 1760, 1764, 1768, 1772, 1776, 1780, 1784, 1788, 1792, 1796, 1802, 1816, 1825, 1839, 1838, 1853, 1853, 1854, 1854, 1854, 1854, 1856, 1862, 1868, 1878, 1880, 1880, 1881, 1881, 1883, 1899, 1898, 1923, 1923, 1924, 1924, 1924, 1924, 1926, 1932, 1952, 1951, 1957, 1957, 1958, 1962, 1966, 1970, 1974, 1978, 1982, 1986, 1990, 1994, 2004, 2003, 2024, 2024, 2025, 2025, 2025, 2027, 2034, 2033, 2039, 2039, 2040, 2044, 2048, 2052, 2056, 2060, 2064, 2068, 2072, 2076, 2086, 2085, 2164, 2164, 2165, 2165, 2165, 2166, 2166, 2167, 2168, 2168, 2168, 2169, 2169, 2169, 2170, 2170, 2171, 2173, 2179, 2185, 2191, 2204, 2217, 2223, 2229, 2233, 2242, 2241, 2246, 2246, 2247, 2251, 2257, 2268, 2274, 2280, 2286, 2302, 2301, 2327, 2327, 2328, 2328, 2328, 2330, 2350, 2360, 2359, 2386, 2386, 2387, 2387, 2387, 2389, 2395, 2404, 2406, 2406, 2407, 2407, 2407, 2409, 2423, 2439, 2438, 2461, 2461, 2462, 2462, 2462, 2464, 2470, 2479, 2482, 2482, 2483, 2483, 2484, 2484, 2485, 2485, 2486, 2486, 2487, 2487, 2488, 2489, 2490, 2490, 2491, 2491, 2492, 2492, 2493, 2493, 2494, 2495, 2495, 2496, 2496, 2497, 2497, 2498, 2498, 2499, 2499, 2500, 2500, 2501, 2501, 2502, 2503, 2504, 2504, 2505, 2505, 2506, 2507, 2508, 2509, 2509, 2510, 2511, 2512, 2515, 2520, 2526, 2532, 2538, 2544, 2549, 2554, 2559, 2564, 2569, 2574, 2579, 2584, 2589, 2594, 2599, 2604, 2609, 2615, 2626, 2631, 2636, 2641, 2646, 2651, 2656, 2659, 2664, 2667, 2672, 2677, 2682, 2687, 2692, 2697, 2702, 2707, 2712, 2717, 2722, 2731, 2736, 2741, 2747, 2746, 2751, 2751, 2752, 2755, 2758, 2761, 2764, 2767, 2770, 2773, 2776, 2779, 2782, 2785, 2788, 2791, 2794, 2797, 2800, 2803, 2806, 2809, 2812, 2815, 2821, 2820, 2825, 2825, 2826, 2829, 2832, 2835, 2838, 2841, 2844, 2847, 2850, 2853, 2856, 2859, 2862, 2865, 2868, 2871, 2874, 2877, 2880, 2883, 2886, 2889, 2894, 2899, 2904, 2909, 2917, 2920, 2920, 2921, 2922, 2922, 2923, 2923, 2924, 2925, 2926, 2927, 2928, 2928, 2929, 2929, 2930, 2932, 2937, 2942, 2947, 2952, 2957, 2962, 2967, 2972, 2977, 2982, 2987, 2993, 2992, 2997, 2997, 2998, 3001, 3004, 3007, 3010, 3013, 3021, 3024, 3024, 3025, 3025, 3026, 3027, 3028, 3029, 3029, 3030, 3031, 3033, 3039, 3045, 3051, 3057, 3066, 3080, 3086 }; #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_MODES", "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_GCHANOPS", "T_GLOBOPS", "T_INVISIBLE", "T_INVITEONLY", "T_IPV4", "T_IPV6", "T_LOCOPS", "T_LOG", "T_MAX_CLIENTS", "T_MODERATED", "T_NCHANGE", "T_NONONREG", "T_NOPRIVMSGS", "T_OPERWALL", "T_PRIVATE", "T_RECVQ", "T_REJ", "T_RESTART", "T_SECRET", "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_TOPICLIMIT", "T_UMODES", "T_UNAUTH", "T_UNDLINE", "T_UNLIMITED", "T_UNRESV", "T_UNXLINE", "T_WALLOP", "T_WALLOPS", "T_WEBIRC", "TBOOL", "THROTTLE_TIME", "TKLINE", "TKLINE_EXPIRE_NOTICES", "TKLINE_TIME", "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_ssl_certificate_fingerprint", "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", "exempt_ssl_certificate_fingerprint", "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_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", "general_tkline_time", "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", "channel_default_modes", "$@26", "channel_default_mode_items", "channel_default_mode_item", "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, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 59, 125, 123, 61, 44, 58 }; # endif #define YYPACT_NINF -761 #define yypact_value_is_default(Yystate) \ (!!((Yystate) == (-761))) #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[] = { -761, 695, -761, -158, -222, -219, -761, -761, -761, -199, -761, -194, -761, -761, -761, -190, -761, -761, -761, -184, -182, -761, -169, -151, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, 10, 832, -137, -132, -114, 38, -107, 433, -87, -85, -68, 55, -66, -56, -53, 313, 483, -44, 6, 34, -42, -170, -83, -40, -37, 15, -761, -761, -761, -761, -761, -761, -21, -20, -14, -11, 1, 47, 68, 81, 83, 87, 95, 99, 5, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, 662, 562, 98, -761, 110, 115, 4, -761, -761, -761, 50, -761, 117, 119, 120, 121, 130, 132, 134, 142, 144, 145, 146, 147, 149, 150, 152, 154, 168, 169, 170, 172, 173, 175, 176, 179, 181, 183, -761, 184, -761, 185, 187, 189, 190, 192, 195, 197, 201, 207, 208, 209, 210, 212, 216, 220, 223, 229, 232, 233, 75, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, 339, 32, 226, -23, 234, 237, 9, -761, -761, -761, 14, 495, 203, -761, 241, 245, 246, 248, 250, 252, 255, 257, 8, -761, -761, -761, -761, -761, -761, -761, -761, -761, 196, 258, 259, 261, 265, 266, 267, 268, 270, 273, 274, 275, 277, 280, 284, 286, 298, 299, 114, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, 51, 263, 302, 7, -761, -761, -761, 204, -761, 303, 29, -761, -761, 31, -761, 283, 322, 420, 316, -761, 318, 447, 451, 344, 455, 460, 460, 460, 466, 467, 469, 363, 366, 358, -761, 360, 359, 362, 364, -761, 365, 368, 370, 371, 372, 373, 375, 380, 382, 384, 385, 388, 193, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, 392, 391, 393, 395, 398, 400, 401, -761, 402, 403, 404, 406, 409, 410, 411, 319, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, 413, 416, 12, -761, -761, -761, 476, 508, 423, -761, -761, 422, 425, 20, -761, -761, -761, 448, 460, 460, 449, 560, 452, 563, 453, 460, 461, 564, 571, 460, 575, 465, 471, 472, 460, 582, 583, 460, 584, 585, 588, 589, 482, 462, 485, 468, 488, 460, 460, 492, 493, 497, -192, -181, 500, 501, 503, 598, 460, 506, 460, 507, 460, 460, 510, 496, -761, 499, 489, 502, -761, 509, 512, 513, 514, 516, 519, 206, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, 520, 522, 22, -761, -761, -761, 504, 524, 526, -761, 528, -761, 11, -761, -761, -761, -761, -761, 608, 615, 532, -761, 533, 535, 536, 13, -761, -761, -761, 540, 538, 539, -761, 541, 546, 547, 548, 549, -761, 550, 227, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, 557, 556, 559, 561, 17, -761, -761, -761, -761, 525, 579, 586, 616, 590, 591, 593, 460, 565, -761, -761, 626, 594, 676, 694, 704, 690, 691, 692, 697, 698, 699, 709, 700, 135, 138, 701, 702, 592, -761, 595, 596, -761, 46, -761, -761, -761, -761, 610, 597, -761, 599, 706, 600, -761, 602, 603, -761, 604, 24, -761, -761, -761, -761, 609, 611, 612, -761, 235, 614, 621, 622, 625, 260, 627, 628, 629, 630, 631, 635, 641, 644, -761, -761, 722, 736, 460, 607, 743, 744, 460, 754, 774, 460, 760, 776, 778, 460, 780, 780, 657, -761, -761, 771, 3, 773, 682, 777, 779, 669, 786, 790, 806, 792, 794, 801, 804, 696, -761, 810, 811, 705, -761, 708, 710, -761, 815, 820, 711, -761, 712, 713, 714, 716, 717, 718, 723, 724, 725, 726, 727, 728, 729, 731, 738, 741, 746, 747, 748, 750, 751, 752, 755, 758, 761, 762, 707, 763, 757, 764, 766, 767, 768, 772, 775, 781, 782, 783, 784, 787, 788, 789, 791, 793, 795, 796, 797, 798, 799, 800, -761, -761, 835, 805, 770, 857, 822, 870, 873, 887, 889, 802, -761, 890, 891, 803, -761, -761, 892, 903, 808, 920, 809, -761, 812, 813, -761, -761, 907, 914, 814, -761, -761, 917, 824, 816, 919, 921, 923, 928, 826, 817, 929, 818, -761, -761, 930, 934, 935, 823, -761, 825, 827, 828, 829, 830, 831, 833, 834, -761, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, -761, -761, -187, -761, -761, -761, -177, -761, 849, 850, -761, -761, 937, 851, 852, -761, 853, -761, 167, 855, -761, -761, 939, 854, 945, 856, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -172, -761, -761, -761, -761, -761, 460, 460, 460, 460, 460, 460, 460, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, 858, 859, 860, -33, 861, 862, 863, 864, 865, 866, 867, 868, 869, 871, 262, 872, 874, -761, 875, 876, 877, 878, 879, 880, 881, 16, 882, 883, 884, 885, 886, 888, 893, -761, 894, 895, -761, -761, -761, 896, 897, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -148, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -82, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, 898, 899, 574, 900, 901, 902, 904, 905, 906, -761, 908, 909, -761, 910, 911, -28, 913, 912, -761, -761, -761, -761, 915, 918, -761, 922, 924, 387, 925, 926, 927, 931, 932, 807, 933, -761, 936, 938, 940, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, 135, -761, 138, -761, -761, 941, 569, -761, -761, 942, 916, 943, -761, 100, -761, -761, -761, -761, -761, 944, 606, 947, -761, -761, 235, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -75, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, 780, 780, 780, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -39, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, 707, -761, 757, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -31, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -26, -761, 963, 920, 948, -761, -761, -761, -761, -761, 946, -761, -761, 949, -761, -761, -761, -761, 950, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -16, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, 44, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, 52, -761, -761, 964, -65, 953, 952, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, 65, -761, -761, -761, -761, -33, -761, -761, -761, -761, 16, -761, -761, -761, 574, -761, -28, -761, -761, -761, 977, 980, 994, -761, 387, -761, 807, -761, 569, 957, 958, 959, 336, -761, -761, 606, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, 70, -761, -761, -761, 336, -761 }; /* 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, 225, 390, 438, 0, 455, 0, 291, 429, 267, 0, 107, 147, 327, 0, 0, 368, 0, 0, 344, 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, 632, 645, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 618, 630, 620, 621, 622, 623, 619, 624, 625, 626, 627, 628, 629, 631, 0, 0, 0, 452, 0, 0, 0, 449, 450, 451, 0, 515, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 586, 0, 560, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 466, 511, 513, 505, 506, 507, 508, 509, 504, 477, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 501, 478, 479, 510, 481, 486, 487, 482, 484, 483, 495, 496, 485, 488, 489, 490, 491, 480, 493, 512, 502, 503, 500, 494, 492, 498, 499, 497, 514, 0, 0, 0, 0, 0, 0, 0, 45, 46, 47, 0, 0, 0, 666, 0, 0, 0, 0, 0, 0, 0, 0, 0, 657, 658, 659, 660, 661, 664, 662, 663, 665, 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, 342, 0, 0, 340, 341, 0, 103, 0, 0, 0, 0, 98, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 617, 0, 0, 0, 0, 261, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 228, 229, 232, 234, 235, 236, 237, 238, 239, 240, 241, 230, 231, 233, 242, 243, 244, 0, 0, 0, 0, 0, 0, 0, 418, 0, 0, 0, 0, 0, 0, 0, 0, 393, 394, 395, 396, 397, 398, 399, 401, 400, 403, 407, 404, 405, 406, 402, 444, 0, 0, 0, 441, 442, 443, 0, 0, 0, 448, 461, 0, 0, 0, 458, 459, 460, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 465, 0, 0, 0, 310, 0, 0, 0, 0, 0, 0, 0, 294, 295, 296, 302, 297, 303, 298, 299, 300, 301, 435, 0, 0, 0, 432, 433, 434, 0, 0, 0, 269, 0, 279, 0, 277, 278, 280, 281, 48, 0, 0, 0, 44, 0, 0, 0, 0, 110, 111, 112, 0, 0, 0, 196, 0, 0, 0, 0, 0, 170, 0, 0, 150, 151, 152, 153, 156, 157, 158, 159, 155, 154, 160, 0, 0, 0, 0, 0, 330, 331, 332, 333, 0, 0, 0, 0, 0, 0, 0, 0, 0, 656, 71, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 52, 0, 0, 376, 0, 371, 372, 373, 121, 0, 0, 117, 0, 0, 0, 339, 0, 0, 354, 0, 0, 347, 348, 349, 350, 0, 0, 0, 97, 0, 0, 0, 0, 0, 27, 0, 0, 0, 0, 0, 0, 0, 0, 616, 245, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 227, 408, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 392, 0, 0, 0, 440, 0, 0, 447, 0, 0, 0, 457, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 464, 304, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 293, 0, 0, 0, 431, 282, 0, 0, 0, 0, 0, 276, 0, 0, 43, 113, 0, 0, 0, 109, 161, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 149, 334, 0, 0, 0, 0, 329, 0, 0, 0, 0, 0, 0, 0, 0, 655, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 76, 77, 0, 75, 80, 81, 0, 79, 0, 0, 51, 374, 0, 0, 0, 370, 0, 116, 0, 0, 338, 351, 0, 0, 0, 0, 346, 106, 105, 104, 653, 651, 654, 649, 650, 652, 0, 648, 640, 639, 633, 643, 27, 27, 27, 27, 27, 27, 27, 29, 28, 644, 634, 635, 638, 637, 636, 641, 642, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 37, 0, 0, 226, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 391, 0, 0, 439, 453, 454, 0, 0, 456, 528, 532, 547, 517, 614, 558, 554, 527, 519, 518, 521, 522, 520, 535, 525, 526, 536, 524, 531, 530, 529, 555, 516, 612, 613, 551, 596, 590, 607, 591, 592, 593, 601, 610, 594, 611, 604, 608, 597, 609, 602, 598, 603, 595, 606, 600, 599, 605, 0, 589, 553, 569, 564, 581, 565, 566, 567, 575, 584, 568, 585, 578, 582, 571, 583, 576, 572, 577, 570, 580, 574, 573, 579, 0, 563, 548, 546, 549, 557, 550, 538, 544, 545, 542, 543, 539, 540, 541, 556, 559, 523, 615, 552, 534, 533, 537, 0, 0, 0, 0, 0, 0, 0, 0, 0, 292, 0, 0, 430, 0, 0, 0, 287, 283, 286, 268, 49, 50, 0, 0, 108, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 148, 0, 0, 0, 328, 668, 667, 673, 671, 674, 669, 670, 672, 88, 96, 87, 94, 95, 86, 90, 89, 83, 82, 84, 93, 85, 72, 0, 73, 0, 91, 92, 0, 0, 369, 122, 0, 0, 0, 134, 0, 126, 127, 129, 128, 343, 0, 0, 0, 345, 646, 0, 30, 31, 32, 33, 34, 35, 36, 256, 257, 249, 266, 265, 0, 264, 251, 253, 260, 252, 250, 259, 246, 258, 248, 247, 37, 37, 37, 39, 38, 254, 255, 413, 416, 417, 427, 424, 410, 425, 422, 423, 0, 421, 426, 409, 415, 412, 414, 428, 411, 445, 446, 462, 463, 587, 0, 561, 0, 308, 309, 318, 315, 320, 316, 317, 323, 319, 321, 314, 322, 0, 313, 306, 326, 325, 324, 307, 305, 437, 436, 290, 289, 274, 275, 273, 0, 272, 0, 0, 0, 114, 115, 169, 165, 216, 203, 213, 212, 201, 206, 223, 215, 221, 205, 208, 218, 220, 217, 214, 222, 209, 211, 219, 224, 207, 210, 0, 199, 162, 164, 166, 167, 168, 179, 174, 191, 175, 176, 177, 185, 194, 178, 195, 188, 192, 181, 193, 186, 182, 187, 180, 190, 184, 183, 189, 0, 173, 163, 337, 335, 336, 74, 78, 375, 380, 386, 389, 382, 388, 383, 387, 385, 381, 384, 0, 379, 130, 0, 0, 0, 0, 125, 352, 358, 364, 367, 360, 366, 361, 365, 363, 359, 362, 0, 357, 353, 647, 262, 0, 40, 41, 42, 419, 0, 588, 562, 311, 0, 270, 0, 288, 285, 284, 0, 0, 0, 197, 0, 171, 0, 377, 0, 0, 0, 0, 0, 124, 355, 0, 263, 420, 312, 271, 202, 200, 204, 198, 172, 378, 131, 133, 132, 140, 145, 144, 139, 142, 146, 143, 138, 141, 0, 137, 356, 135, 0, 136 }; /* YYPGOTO[NTERM-NUM]. */ static const yytype_int16 yypgoto[] = { -761, -761, -761, -294, -310, -760, -627, -761, -761, 956, -761, -761, -761, -761, 951, -761, -761, -761, 85, -761, 84, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, 1054, -761, -761, -761, -761, -761, -761, 646, -761, -761, -761, -761, 954, -761, -761, -761, -761, 90, -761, -761, -761, -761, -761, -160, -761, -761, -761, 633, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -145, -761, -761, -761, -118, -761, -761, -761, 819, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -96, -761, -761, -761, -761, -761, -104, -761, 675, -761, -761, -761, 18, -761, -761, -761, -761, -761, 720, -761, -761, -761, -761, -761, -761, -761, -761, -95, -761, -761, -761, -761, -761, -761, 632, -761, -761, -761, -761, -761, 955, -761, -761, -761, -761, 613, -761, -761, -761, -761, -761, -111, -761, -761, -761, 618, -761, -761, -761, -761, -102, -761, -761, -761, 960, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -76, -761, -761, -761, -761, -761, -761, -761, -761, 719, -761, -761, -761, -761, -761, 785, -761, -761, -761, -761, 1073, -761, -761, -761, -761, -761, 821, -761, -761, -761, -761, 1029, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, 76, -761, -761, -761, 80, -761, -761, -761, -761, -761, -761, 1109, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, -761, 139, -761, -761, 965, -761, -761, -761, -761, -761, -761, -761, -761 }; /* YYDEFGOTO[NTERM-NUM]. */ static const yytype_int16 yydefgoto[] = { -1, 1, 25, 831, 832, 1093, 1094, 26, 224, 225, 226, 227, 27, 268, 269, 270, 271, 784, 785, 788, 789, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 28, 74, 75, 76, 77, 78, 29, 61, 503, 504, 505, 506, 30, 290, 291, 292, 293, 294, 1054, 1055, 1056, 1057, 1058, 1234, 1306, 1307, 31, 62, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 750, 1210, 1211, 529, 744, 1181, 1182, 32, 51, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 616, 1078, 1079, 33, 59, 489, 729, 1150, 1151, 490, 491, 492, 1154, 996, 997, 493, 494, 34, 57, 466, 467, 468, 469, 470, 471, 472, 473, 713, 1135, 1136, 474, 475, 476, 35, 63, 534, 535, 536, 537, 538, 36, 297, 298, 299, 37, 69, 588, 589, 590, 591, 592, 805, 1248, 1249, 38, 66, 572, 573, 574, 575, 795, 1229, 1230, 39, 52, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 638, 1106, 1107, 383, 384, 385, 386, 387, 40, 58, 480, 481, 482, 483, 41, 53, 391, 392, 393, 394, 42, 114, 115, 116, 117, 43, 55, 402, 403, 404, 405, 44, 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, 434, 956, 957, 213, 432, 931, 932, 214, 215, 216, 217, 45, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 307, 818, 819, 46, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249 }; /* 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[] = { 856, 857, 603, 604, 605, 111, 79, 288, 288, 231, 221, 70, 484, 388, 500, 500, 70, 49, 530, 1076, 50, 399, 1147, 477, 1104, 584, 694, 80, 81, 82, 295, 695, 584, 477, 83, 295, 71, 696, 232, 111, 54, 71, 697, 72, 855, 56, 233, 569, 72, 60, 1040, 399, 569, 531, 1041, 64, 221, 65, 234, 235, 1042, 236, 237, 238, 1043, 1064, 112, 301, 485, 1065, 67, 84, 85, 486, 389, 487, 119, 86, 87, 47, 48, 120, 121, 239, 88, 89, 90, 122, 68, 1119, 501, 501, 1077, 1120, 532, 123, 124, 660, 661, 388, 112, 1050, 108, 125, 667, 222, 126, 109, 671, 73, 91, 92, 127, 676, 73, 250, 679, 128, 129, 400, 130, 131, 132, 585, 133, 110, 689, 690, 296, 223, 585, 134, 118, 296, 488, 135, 136, 702, 390, 704, 251, 706, 707, 533, 137, 570, 401, 1278, 478, 400, 570, 222, 218, 138, 219, 1121, 113, 302, 478, 1122, 389, 139, 1252, 140, 1148, 141, 1253, 142, 1050, 143, 144, 220, 252, 228, 1149, 223, 401, -123, -123, 253, 860, 861, 145, 229, 502, 502, 230, 146, 147, 148, 113, 149, 150, 151, 322, 287, 152, 300, 1257, 1051, 303, 254, 1258, 304, 530, 255, 1261, 456, 323, 324, 1262, 1263, 325, 256, 495, 1264, 257, 258, 1105, 308, 309, 1271, 153, 457, 390, 1272, 310, 484, 507, 311, 154, 155, 156, 157, 158, 159, 767, 289, 289, 531, 458, 312, 397, 320, 508, 578, 547, 498, 259, 731, 650, 739, 586, 305, 479, 758, 587, 326, 657, 586, 724, 509, 807, 587, 479, 260, 1051, 582, 261, 160, 459, 1090, 1091, 1092, 571, 327, 328, 329, 330, 571, 532, 1273, 331, 485, 796, 1274, 332, 313, 486, 1275, 487, 510, 333, 1276, 161, 262, 162, 163, 1052, 164, 165, 166, 1282, 334, 335, 843, 1283, 1309, 314, 847, 167, 1310, 850, 454, 231, 336, 854, 263, 264, 265, 357, 315, 358, 316, 359, 460, 511, 317, 1053, 533, 1254, 1255, 1256, 461, 462, 318, 360, 337, 1235, 319, 456, 782, 783, 232, 786, 787, 512, 266, 267, 488, 395, 233, 567, 361, 463, 396, 457, 406, 464, 407, 408, 409, 513, 234, 235, 1052, 236, 237, 238, 602, 410, 855, 411, 458, 412, 580, 362, 1297, 363, 514, 515, 338, 413, 364, 414, 415, 416, 417, 239, 418, 419, 1159, 420, 365, 421, 1053, 824, 825, 826, 827, 828, 829, 830, 459, 1298, 1160, 1299, 593, 422, 423, 424, 812, 425, 426, 1161, 427, 428, 813, 366, 429, 814, 430, 815, 431, 433, 435, 816, 436, 1162, 437, 438, 629, 439, 549, 119, 440, 516, 441, 465, 120, 121, 442, 367, 817, 720, 122, 594, 443, 444, 445, 446, 1300, 447, 123, 124, 1163, 448, 1164, 460, 517, 449, 125, 368, 450, 126, 752, 461, 462, 1301, 451, 127, 369, 452, 453, 496, 128, 129, 497, 130, 131, 132, 539, 133, 1165, 250, 540, 541, 463, 542, 134, 543, 464, 544, 135, 136, 545, 507, 546, 550, 551, 576, 552, 137, 1302, 1303, 553, 554, 555, 556, 251, 557, 138, 508, 558, 559, 560, 1166, 561, 1167, 139, 562, 140, 370, 141, 563, 142, 564, 143, 144, 509, 1066, 1067, 1068, 1069, 1070, 1071, 1072, 1168, 565, 566, 145, 252, 577, 581, 595, 146, 147, 148, 253, 149, 150, 151, 371, 596, 152, 1169, 598, 646, 597, 510, 599, 1170, 600, 357, 601, 358, 1171, 359, 1304, 602, 254, 465, 1305, 1172, 255, 606, 607, 1173, 608, 360, 153, 609, 256, 1174, 610, 257, 258, 1125, 154, 155, 156, 157, 158, 159, 511, 611, 361, 612, 1175, 613, 652, 1176, 614, 1177, 615, 617, 1279, 1178, 618, 1126, 619, 620, 621, 622, 512, 623, 1179, 259, 1127, 362, 624, 363, 625, 1180, 626, 627, 364, 160, 628, 631, 513, 632, 653, 633, 260, 634, 365, 261, 635, 1219, 636, 637, 639, 640, 641, 1128, 642, 514, 515, 643, 644, 645, 161, 648, 162, 163, 649, 164, 165, 166, 654, 366, 655, 322, 262, 656, 659, 662, 167, 663, 664, 666, 665, 669, 1129, 1130, 1238, 323, 324, 668, 670, 325, 1131, 673, 672, 367, 263, 264, 265, 674, 675, 677, 678, 680, 681, 2, 3, 682, 683, 4, 684, 1220, 685, 686, 516, 368, 688, 1132, 687, 5, 691, 692, 6, 7, 369, 693, 266, 267, 698, 699, 8, 700, 701, 1133, 703, 705, 326, 517, 708, 711, 1221, 9, 733, 709, 10, 11, 710, 1222, 1239, 734, 763, 726, 712, 760, 327, 328, 329, 330, 1223, 714, 769, 331, 715, 716, 717, 332, 718, 909, 12, 719, 722, 333, 723, 13, 727, 370, 728, 1240, 730, 735, 736, 14, 334, 335, 1241, 737, 738, 741, 742, 743, 1224, 745, 1225, 1226, 336, 1242, 746, 747, 748, 749, 751, 1134, 15, 16, 754, 371, 755, 761, 1227, 756, 771, 757, 768, 772, 762, 1228, 337, 934, 764, 765, 17, 766, 770, 773, 774, 775, 776, 1243, 780, 1244, 1245, 777, 778, 779, 781, 790, 791, 18, 798, 792, 801, 841, 793, 79, 799, 1246, 794, 802, 800, 803, 19, 20, 1247, 804, 806, 842, 809, 844, 810, 811, 338, 820, 845, 846, 80, 81, 82, 1188, 821, 822, 21, 83, 823, 848, 833, 834, 835, 836, 837, 910, 911, 912, 838, 913, 914, 22, 915, 916, 839, 917, 918, 840, 919, 849, 851, 852, 920, 853, 23, 855, 921, 922, 24, 923, 858, 859, 924, 862, 84, 85, 863, 864, 925, 865, 86, 87, 926, 927, 928, 866, 867, 88, 89, 90, 868, 869, 870, 929, 871, 935, 936, 937, 930, 938, 939, 872, 940, 941, 873, 942, 943, 983, 944, 874, 875, 876, 945, 91, 92, 880, 946, 947, 877, 948, 881, 878, 949, 879, 882, 883, 884, 885, 950, 886, 887, 888, 951, 952, 953, 979, 889, 890, 891, 892, 893, 894, 895, 954, 896, 1189, 1190, 1191, 955, 1192, 1193, 897, 1194, 1195, 898, 1196, 1197, 982, 1198, 899, 900, 901, 1199, 902, 903, 904, 1200, 1201, 905, 1202, 984, 906, 1203, 985, 907, 908, 933, 958, 1204, 959, 960, 961, 1205, 1206, 1207, 962, 981, 986, 963, 987, 989, 990, 992, 1208, 964, 965, 966, 967, 1209, 980, 968, 969, 970, 993, 971, 995, 972, 1001, 973, 974, 975, 976, 977, 978, 1002, 988, 991, 1004, 1005, 1007, 1011, 1008, 998, 1009, 994, 999, 1000, 1003, 1010, 1013, 1015, 1014, 1006, 1012, 1016, 1017, 1018, 1046, 1019, 1060, 1020, 1021, 1022, 1023, 1024, 1062, 1025, 1026, 1265, 1027, 1028, 1029, 1030, 1031, 1032, 1033, 1034, 1035, 1036, 1037, 1038, 1039, 1044, 1045, 1277, 1048, 1049, 1047, 1059, 1063, 1061, 1073, 1074, 1075, 1080, 1081, 1082, 1083, 1084, 1085, 1086, 1087, 1088, 1288, 1089, 1095, 1289, 1096, 1097, 1098, 1099, 1100, 1101, 1102, 1103, 1108, 1109, 1110, 1111, 1112, 1290, 1113, 1216, 1217, 306, 1292, 1114, 1115, 1116, 1117, 1118, 1123, 1124, 1137, 1138, 1139, 1152, 1140, 1141, 1142, 1236, 1143, 1144, 1145, 1146, 740, 1311, 753, 1155, 1153, 1291, 1156, 1232, 1284, 630, 1157, 1287, 1158, 1183, 1184, 1185, 732, 759, 1286, 1186, 1187, 1212, 1266, 1308, 1213, 1293, 1214, 651, 1215, 1218, 1231, 499, 1237, 1285, 1233, 1250, 1267, 721, 398, 1268, 1281, 797, 1269, 1270, 1280, 1294, 1295, 1296, 455, 1260, 725, 1259, 808, 321, 0, 1251, 548, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 568, 0, 0, 0, 658, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 579, 0, 0, 0, 0, 0, 0, 0, 583, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 647 }; static const yytype_int16 yycheck[] = { 627, 628, 312, 313, 314, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 239, 1, 52, 239, 1, 50, 1, 8, 1, 218, 22, 23, 24, 1, 223, 1, 1, 29, 1, 26, 218, 30, 1, 239, 26, 223, 33, 109, 239, 38, 1, 33, 239, 237, 1, 1, 36, 241, 239, 1, 239, 50, 51, 237, 53, 54, 55, 241, 237, 62, 237, 57, 241, 239, 66, 67, 62, 62, 64, 1, 72, 73, 237, 238, 6, 7, 75, 79, 80, 81, 12, 239, 237, 77, 77, 125, 241, 77, 20, 21, 407, 408, 1, 62, 1, 239, 28, 414, 96, 31, 239, 418, 99, 105, 106, 37, 423, 99, 1, 426, 42, 43, 99, 45, 46, 47, 99, 49, 239, 436, 437, 99, 120, 99, 56, 239, 99, 123, 60, 61, 447, 126, 449, 26, 451, 452, 126, 69, 99, 126, 212, 126, 99, 99, 96, 239, 78, 239, 237, 152, 240, 126, 241, 62, 86, 237, 88, 192, 90, 241, 92, 1, 94, 95, 239, 58, 239, 202, 120, 126, 171, 171, 65, 177, 178, 107, 239, 171, 171, 239, 112, 113, 114, 152, 116, 117, 118, 1, 239, 121, 239, 237, 99, 240, 87, 241, 240, 1, 91, 237, 1, 15, 16, 241, 237, 19, 99, 237, 241, 102, 103, 202, 240, 240, 237, 147, 17, 126, 241, 240, 1, 1, 240, 155, 156, 157, 158, 159, 160, 546, 231, 231, 36, 34, 240, 238, 238, 17, 238, 238, 238, 134, 238, 238, 238, 228, 238, 232, 238, 232, 64, 238, 228, 238, 34, 238, 232, 232, 151, 99, 238, 154, 194, 64, 9, 10, 11, 228, 82, 83, 84, 85, 228, 77, 237, 89, 57, 238, 241, 93, 240, 62, 237, 64, 64, 99, 241, 219, 181, 221, 222, 198, 224, 225, 226, 237, 110, 111, 615, 241, 237, 240, 619, 235, 241, 622, 238, 1, 122, 626, 203, 204, 205, 1, 240, 3, 240, 5, 119, 99, 240, 228, 126, 1090, 1091, 1092, 127, 128, 240, 17, 144, 238, 240, 1, 206, 207, 30, 206, 207, 119, 233, 234, 123, 240, 38, 238, 34, 148, 240, 17, 240, 152, 240, 240, 240, 135, 50, 51, 198, 53, 54, 55, 109, 240, 109, 240, 34, 240, 171, 57, 41, 59, 152, 153, 188, 240, 64, 240, 240, 240, 240, 75, 240, 240, 4, 240, 74, 240, 228, 136, 137, 138, 139, 140, 141, 142, 64, 68, 18, 70, 124, 240, 240, 240, 176, 240, 240, 27, 240, 240, 182, 99, 240, 185, 240, 187, 240, 240, 240, 191, 240, 41, 240, 240, 238, 240, 237, 1, 240, 209, 240, 232, 6, 7, 240, 123, 208, 238, 12, 124, 240, 240, 240, 240, 115, 240, 20, 21, 68, 240, 70, 119, 232, 240, 28, 143, 240, 31, 238, 127, 128, 132, 240, 37, 152, 240, 240, 240, 42, 43, 240, 45, 46, 47, 240, 49, 96, 1, 240, 240, 148, 240, 56, 240, 152, 240, 60, 61, 240, 1, 240, 240, 240, 237, 240, 69, 167, 168, 240, 240, 240, 240, 26, 240, 78, 17, 240, 240, 240, 129, 240, 131, 86, 240, 88, 203, 90, 240, 92, 240, 94, 95, 34, 824, 825, 826, 827, 828, 829, 830, 150, 240, 240, 107, 58, 240, 240, 124, 112, 113, 114, 65, 116, 117, 118, 233, 237, 121, 168, 109, 238, 240, 64, 109, 174, 218, 1, 109, 3, 179, 5, 232, 109, 87, 232, 236, 186, 91, 109, 109, 190, 109, 17, 147, 218, 99, 196, 218, 102, 103, 13, 155, 156, 157, 158, 159, 160, 99, 237, 34, 237, 211, 240, 124, 214, 240, 216, 240, 240, 1233, 220, 240, 35, 240, 240, 240, 240, 119, 240, 229, 134, 44, 57, 240, 59, 240, 236, 240, 240, 64, 194, 240, 237, 135, 240, 124, 240, 151, 240, 74, 154, 240, 70, 240, 240, 240, 240, 240, 71, 240, 152, 153, 240, 240, 240, 219, 240, 221, 222, 240, 224, 225, 226, 237, 99, 240, 1, 181, 240, 218, 218, 235, 109, 218, 218, 109, 109, 100, 101, 70, 15, 16, 218, 109, 19, 108, 218, 109, 123, 203, 204, 205, 218, 218, 109, 109, 109, 109, 0, 1, 109, 109, 4, 218, 132, 240, 218, 209, 143, 218, 133, 240, 14, 218, 218, 17, 18, 152, 218, 233, 234, 218, 218, 25, 218, 124, 149, 218, 218, 64, 232, 218, 240, 161, 36, 124, 237, 39, 40, 237, 168, 132, 124, 124, 237, 240, 218, 82, 83, 84, 85, 179, 240, 124, 89, 240, 240, 240, 93, 240, 50, 63, 240, 240, 99, 240, 68, 240, 203, 240, 161, 240, 237, 237, 76, 110, 111, 168, 240, 240, 237, 240, 240, 211, 240, 213, 214, 122, 179, 240, 240, 240, 240, 240, 217, 97, 98, 237, 233, 240, 218, 229, 240, 124, 240, 237, 109, 218, 236, 144, 50, 218, 218, 115, 218, 218, 109, 124, 124, 124, 211, 109, 213, 214, 124, 124, 124, 124, 124, 124, 132, 218, 237, 124, 109, 237, 1, 237, 229, 240, 237, 239, 237, 145, 146, 236, 240, 240, 109, 237, 240, 237, 237, 188, 237, 109, 109, 22, 23, 24, 50, 237, 237, 165, 29, 237, 109, 237, 237, 237, 237, 237, 162, 163, 164, 237, 166, 167, 180, 169, 170, 237, 172, 173, 237, 175, 109, 124, 109, 179, 109, 193, 109, 183, 184, 197, 186, 237, 124, 189, 124, 66, 67, 218, 124, 195, 124, 72, 73, 199, 200, 201, 240, 124, 79, 80, 81, 124, 109, 124, 210, 124, 162, 163, 164, 215, 166, 167, 124, 169, 170, 124, 172, 173, 109, 175, 237, 124, 124, 179, 105, 106, 124, 183, 184, 237, 186, 124, 237, 189, 237, 237, 237, 237, 237, 195, 237, 237, 237, 199, 200, 201, 124, 237, 237, 237, 237, 237, 237, 237, 210, 237, 162, 163, 164, 215, 166, 167, 237, 169, 170, 237, 172, 173, 124, 175, 237, 237, 237, 179, 237, 237, 237, 183, 184, 237, 186, 124, 237, 189, 124, 237, 237, 237, 237, 195, 237, 237, 237, 199, 200, 201, 237, 240, 124, 237, 124, 124, 124, 124, 210, 237, 237, 237, 237, 215, 218, 237, 237, 237, 124, 237, 109, 237, 124, 237, 237, 237, 237, 237, 237, 124, 237, 237, 124, 218, 124, 218, 124, 237, 124, 240, 237, 237, 237, 124, 124, 124, 237, 240, 240, 124, 124, 237, 124, 237, 124, 237, 237, 237, 237, 237, 124, 237, 237, 109, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 124, 237, 237, 240, 237, 237, 240, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 130, 237, 237, 130, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 130, 237, 1041, 1043, 74, 1274, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 227, 237, 237, 237, 1054, 237, 237, 237, 237, 503, 1310, 518, 237, 241, 1272, 237, 240, 1253, 339, 237, 1264, 237, 237, 237, 237, 490, 534, 1262, 237, 237, 237, 1153, 1283, 237, 1276, 237, 391, 237, 237, 237, 224, 237, 1258, 240, 237, 237, 466, 114, 242, 237, 572, 242, 242, 240, 237, 237, 237, 168, 1122, 480, 1120, 588, 93, -1, 1065, 240, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 268, -1, -1, -1, 402, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 290, -1, -1, -1, -1, -1, -1, -1, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 372 }; /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing symbol of state STATE-NUM. */ static const yytype_uint16 yystos[] = { 0, 244, 0, 1, 4, 14, 17, 18, 25, 36, 39, 40, 63, 68, 76, 97, 98, 115, 132, 145, 146, 165, 180, 193, 197, 245, 250, 255, 279, 285, 291, 305, 325, 348, 362, 378, 385, 389, 399, 408, 429, 435, 441, 446, 452, 509, 528, 237, 238, 239, 239, 326, 409, 436, 239, 447, 239, 363, 430, 349, 239, 286, 306, 379, 239, 239, 400, 239, 239, 390, 1, 26, 33, 99, 280, 281, 282, 283, 284, 1, 22, 23, 24, 29, 66, 67, 72, 73, 79, 80, 81, 105, 106, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 239, 239, 239, 1, 62, 152, 442, 443, 444, 445, 239, 1, 6, 7, 12, 20, 21, 28, 31, 37, 42, 43, 45, 46, 47, 49, 56, 60, 61, 69, 78, 86, 88, 90, 92, 94, 95, 107, 112, 113, 114, 116, 117, 118, 121, 147, 155, 156, 157, 158, 159, 160, 194, 219, 221, 222, 224, 225, 226, 235, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 501, 505, 506, 507, 508, 239, 239, 239, 1, 96, 120, 251, 252, 253, 254, 239, 239, 239, 1, 30, 38, 50, 51, 53, 54, 55, 75, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 1, 26, 58, 65, 87, 91, 99, 102, 103, 134, 151, 154, 181, 203, 204, 205, 233, 234, 256, 257, 258, 259, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 239, 1, 231, 292, 293, 294, 295, 296, 1, 99, 386, 387, 388, 239, 237, 240, 240, 240, 238, 281, 525, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 238, 511, 1, 15, 16, 19, 64, 82, 83, 84, 85, 89, 93, 99, 110, 111, 122, 144, 188, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 1, 3, 5, 17, 34, 57, 59, 64, 74, 99, 123, 143, 152, 203, 233, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 424, 425, 426, 427, 428, 1, 62, 126, 437, 438, 439, 440, 240, 240, 238, 443, 1, 99, 126, 448, 449, 450, 451, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 502, 240, 498, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 238, 454, 1, 17, 34, 64, 119, 127, 128, 148, 152, 232, 364, 365, 366, 367, 368, 369, 370, 371, 375, 376, 377, 1, 126, 232, 431, 432, 433, 434, 1, 57, 62, 64, 123, 350, 354, 355, 356, 360, 361, 237, 240, 240, 238, 252, 1, 77, 171, 287, 288, 289, 290, 1, 17, 34, 64, 99, 119, 135, 152, 153, 209, 232, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 321, 1, 36, 77, 126, 380, 381, 382, 383, 384, 240, 240, 240, 240, 240, 240, 240, 240, 238, 530, 237, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 238, 257, 1, 99, 228, 401, 402, 403, 404, 237, 240, 238, 293, 171, 240, 238, 387, 1, 99, 228, 232, 391, 392, 393, 394, 395, 124, 124, 124, 237, 240, 109, 109, 218, 109, 109, 247, 247, 247, 109, 109, 109, 218, 218, 237, 237, 240, 240, 240, 345, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 238, 328, 237, 240, 240, 240, 240, 240, 240, 421, 240, 240, 240, 240, 240, 240, 240, 238, 411, 240, 240, 238, 438, 124, 124, 237, 240, 240, 238, 449, 218, 247, 247, 218, 109, 218, 109, 218, 247, 218, 109, 109, 247, 109, 218, 218, 218, 247, 109, 109, 247, 109, 109, 109, 109, 218, 240, 218, 240, 218, 247, 247, 218, 218, 218, 218, 223, 218, 223, 218, 218, 218, 124, 247, 218, 247, 218, 247, 247, 218, 237, 237, 240, 240, 372, 240, 240, 240, 240, 240, 240, 238, 365, 240, 240, 238, 432, 237, 240, 240, 351, 240, 238, 355, 124, 124, 237, 237, 240, 240, 238, 288, 237, 240, 240, 322, 240, 240, 240, 240, 240, 318, 240, 238, 308, 237, 240, 240, 240, 238, 381, 218, 218, 218, 124, 218, 218, 218, 247, 237, 124, 218, 124, 109, 109, 124, 124, 124, 124, 124, 124, 109, 124, 206, 207, 260, 261, 206, 207, 262, 263, 124, 124, 237, 237, 240, 405, 238, 402, 218, 237, 239, 124, 237, 237, 240, 396, 240, 238, 392, 237, 237, 237, 176, 182, 185, 187, 191, 208, 526, 527, 237, 237, 237, 237, 136, 137, 138, 139, 140, 141, 142, 246, 247, 237, 237, 237, 237, 237, 237, 237, 237, 109, 109, 247, 240, 109, 109, 247, 109, 109, 247, 124, 109, 109, 247, 109, 249, 249, 237, 124, 177, 178, 124, 218, 124, 124, 240, 124, 124, 109, 124, 124, 124, 124, 237, 124, 124, 237, 237, 237, 124, 124, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 50, 162, 163, 164, 166, 167, 169, 170, 172, 173, 175, 179, 183, 184, 186, 189, 195, 199, 200, 201, 210, 215, 503, 504, 237, 50, 162, 163, 164, 166, 167, 169, 170, 172, 173, 175, 179, 183, 184, 186, 189, 195, 199, 200, 201, 210, 215, 499, 500, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 124, 218, 240, 124, 109, 124, 124, 124, 124, 237, 124, 124, 237, 124, 124, 240, 109, 358, 359, 237, 237, 237, 124, 124, 237, 124, 218, 240, 124, 124, 124, 124, 218, 240, 124, 237, 124, 124, 124, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 241, 237, 241, 237, 237, 124, 240, 237, 237, 1, 99, 198, 228, 297, 298, 299, 300, 301, 237, 124, 240, 124, 237, 237, 241, 246, 246, 246, 246, 246, 246, 246, 237, 237, 237, 52, 125, 346, 347, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 9, 10, 11, 248, 249, 237, 237, 237, 237, 237, 237, 237, 237, 237, 8, 202, 422, 423, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 241, 237, 241, 237, 237, 13, 35, 44, 71, 100, 101, 108, 133, 149, 217, 373, 374, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 50, 192, 202, 352, 353, 227, 241, 357, 237, 237, 237, 237, 4, 18, 27, 41, 68, 70, 96, 129, 131, 150, 168, 174, 179, 186, 190, 196, 211, 214, 216, 220, 229, 236, 323, 324, 237, 237, 237, 237, 237, 50, 162, 163, 164, 166, 167, 169, 170, 172, 173, 175, 179, 183, 184, 186, 189, 195, 199, 200, 201, 210, 215, 319, 320, 237, 237, 237, 237, 261, 263, 237, 70, 132, 161, 168, 179, 211, 213, 214, 229, 236, 406, 407, 237, 240, 240, 302, 238, 298, 237, 70, 132, 161, 168, 179, 211, 213, 214, 229, 236, 397, 398, 237, 527, 237, 241, 248, 248, 248, 237, 241, 504, 500, 237, 241, 237, 241, 109, 359, 237, 242, 242, 242, 237, 241, 237, 241, 237, 241, 124, 212, 249, 240, 237, 237, 241, 347, 423, 374, 353, 130, 130, 130, 324, 320, 407, 237, 237, 237, 41, 68, 70, 115, 132, 167, 168, 232, 236, 303, 304, 398, 237, 241, 304 }; /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ static const yytype_uint16 yyr1[] = { 0, 243, 244, 244, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 246, 246, 247, 247, 247, 247, 247, 247, 247, 247, 248, 248, 249, 249, 249, 249, 250, 251, 251, 252, 252, 252, 253, 254, 255, 256, 256, 257, 257, 257, 257, 257, 257, 257, 257, 257, 257, 257, 257, 257, 257, 257, 257, 257, 257, 258, 259, 260, 260, 261, 261, 262, 262, 263, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 280, 281, 281, 281, 281, 282, 283, 284, 286, 285, 287, 287, 288, 288, 288, 289, 290, 291, 292, 292, 293, 293, 293, 294, 296, 295, 297, 297, 298, 298, 298, 298, 299, 300, 300, 302, 301, 303, 303, 304, 304, 304, 304, 304, 304, 304, 304, 304, 306, 305, 307, 307, 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, 309, 310, 311, 312, 313, 314, 315, 316, 318, 317, 319, 319, 320, 320, 320, 320, 320, 320, 320, 320, 320, 320, 320, 320, 320, 320, 320, 320, 320, 320, 320, 320, 320, 320, 322, 321, 323, 323, 324, 324, 324, 324, 324, 324, 324, 324, 324, 324, 324, 324, 324, 324, 324, 324, 324, 324, 324, 324, 324, 324, 324, 324, 324, 326, 325, 327, 327, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 345, 344, 346, 346, 347, 347, 349, 348, 351, 350, 352, 352, 353, 353, 353, 354, 354, 355, 355, 355, 355, 355, 357, 356, 358, 358, 359, 359, 360, 361, 363, 362, 364, 364, 365, 365, 365, 365, 365, 365, 365, 365, 365, 365, 366, 367, 368, 369, 370, 372, 371, 373, 373, 374, 374, 374, 374, 374, 374, 374, 374, 374, 374, 375, 376, 377, 379, 378, 380, 380, 381, 381, 381, 381, 382, 383, 384, 385, 386, 386, 387, 387, 388, 390, 389, 391, 391, 392, 392, 392, 392, 393, 394, 396, 395, 397, 397, 398, 398, 398, 398, 398, 398, 398, 398, 398, 398, 400, 399, 401, 401, 402, 402, 402, 403, 405, 404, 406, 406, 407, 407, 407, 407, 407, 407, 407, 407, 407, 407, 409, 408, 410, 410, 411, 411, 411, 411, 411, 411, 411, 411, 411, 411, 411, 411, 411, 411, 411, 412, 413, 414, 415, 416, 417, 418, 419, 419, 421, 420, 422, 422, 423, 423, 424, 425, 426, 427, 428, 430, 429, 431, 431, 432, 432, 432, 433, 434, 436, 435, 437, 437, 438, 438, 438, 439, 440, 441, 442, 442, 443, 443, 443, 444, 445, 447, 446, 448, 448, 449, 449, 449, 450, 451, 452, 453, 453, 454, 454, 454, 454, 454, 454, 454, 454, 454, 454, 454, 454, 454, 454, 454, 454, 454, 454, 454, 454, 454, 454, 454, 454, 454, 454, 454, 454, 454, 454, 454, 454, 454, 454, 454, 454, 454, 454, 454, 454, 454, 454, 454, 454, 454, 454, 454, 454, 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, 481, 482, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 498, 497, 499, 499, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 502, 501, 503, 503, 504, 504, 504, 504, 504, 504, 504, 504, 504, 504, 504, 504, 504, 504, 504, 504, 504, 504, 504, 504, 504, 504, 505, 506, 507, 508, 509, 510, 510, 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 525, 524, 526, 526, 527, 527, 527, 527, 527, 527, 528, 529, 529, 530, 530, 530, 530, 530, 530, 530, 530, 530, 531, 532, 533, 534, 535, 536, 537, 538 }; /* 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, 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, 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, 1, 2, 4, 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, 1, 4, 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, 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, 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, 1, 4, 4, 4, 4, 5, 2, 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, 0, 5, 3, 1, 1, 1, 1, 1, 1, 1, 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 YYO. | `-----------------------------------*/ static void yy_symbol_value_print (FILE *yyo, int yytype, YYSTYPE const * const yyvaluep) { FILE *yyoutput = yyo; YYUSE (yyoutput); if (!yyvaluep) return; # ifdef YYPRINT if (yytype < YYNTOKENS) YYPRINT (yyo, yytoknum[yytype], *yyvaluep); # endif YYUSE (yytype); } /*---------------------------. | Print this symbol on YYO. | `---------------------------*/ static void yy_symbol_print (FILE *yyo, int yytype, YYSTYPE const * const yyvaluep) { YYFPRINTF (yyo, "%s %s (", yytype < YYNTOKENS ? "token" : "nterm", yytname[yytype]); yy_symbol_value_print (yyo, yytype, yyvaluep); YYFPRINTF (yyo, ")"); } /*------------------------------------------------------------------. | 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 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; else goto append; append: 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 (YYSIZE_T) (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) yysize = yysize1; else return 2; } } } } switch (yycount) { # define YYCASE_(N, S) \ case N: \ yyformat = S; \ break default: /* Avoid compiler warnings. */ 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) yysize = yysize1; else return 2; } 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++; /*--------------------------------------------------------------------. | yynewstate -- set current state (the top of the stack) to yystate. | `--------------------------------------------------------------------*/ yysetstate: *yyssp = (yytype_int16) yystate; if (yyss + yystacksize - 1 <= yyssp) #if !defined yyoverflow && !defined YYSTACK_RELOCATE goto yyexhaustedlab; #else { /* Get the current used size of the three stacks, in elements. */ YYSIZE_T yysize = (YYSIZE_T) (yyssp - yyss + 1); # if defined yyoverflow { /* Give user a chance to reallocate the stack. Use copies of these so that the &'s don't force the real ones into memory. */ 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 /* defined YYSTACK_RELOCATE */ /* 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 yyssp = yyss + yysize - 1; yyvsp = yyvs + yysize - 1; YYDPRINTF ((stderr, "Stack size increased to %lu\n", (unsigned long) yystacksize)); if (yyss + yystacksize - 1 <= yyssp) YYABORT; } #endif /* !defined yyoverflow && !defined YYSTACK_RELOCATE */ 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 414 "conf_parser.y" /* yacc.c:1652 */ { (yyval.number) = 0; } #line 2897 "conf_parser.c" /* yacc.c:1652 */ break; case 29: #line 416 "conf_parser.y" /* yacc.c:1652 */ { (yyval.number) = (yyvsp[-1].number) + (yyvsp[0].number); } #line 2905 "conf_parser.c" /* yacc.c:1652 */ break; case 30: #line 420 "conf_parser.y" /* yacc.c:1652 */ { (yyval.number) = (yyvsp[-2].number) + (yyvsp[0].number); } #line 2913 "conf_parser.c" /* yacc.c:1652 */ break; case 31: #line 424 "conf_parser.y" /* yacc.c:1652 */ { (yyval.number) = (yyvsp[-2].number) * 60 + (yyvsp[0].number); } #line 2921 "conf_parser.c" /* yacc.c:1652 */ break; case 32: #line 428 "conf_parser.y" /* yacc.c:1652 */ { (yyval.number) = (yyvsp[-2].number) * 60 * 60 + (yyvsp[0].number); } #line 2929 "conf_parser.c" /* yacc.c:1652 */ break; case 33: #line 432 "conf_parser.y" /* yacc.c:1652 */ { (yyval.number) = (yyvsp[-2].number) * 60 * 60 * 24 + (yyvsp[0].number); } #line 2937 "conf_parser.c" /* yacc.c:1652 */ break; case 34: #line 436 "conf_parser.y" /* yacc.c:1652 */ { (yyval.number) = (yyvsp[-2].number) * 60 * 60 * 24 * 7 + (yyvsp[0].number); } #line 2945 "conf_parser.c" /* yacc.c:1652 */ break; case 35: #line 440 "conf_parser.y" /* yacc.c:1652 */ { (yyval.number) = (yyvsp[-2].number) * 60 * 60 * 24 * 7 * 4 + (yyvsp[0].number); } #line 2953 "conf_parser.c" /* yacc.c:1652 */ break; case 36: #line 444 "conf_parser.y" /* yacc.c:1652 */ { (yyval.number) = (yyvsp[-2].number) * 60 * 60 * 24 * 365 + (yyvsp[0].number); } #line 2961 "conf_parser.c" /* yacc.c:1652 */ break; case 37: #line 449 "conf_parser.y" /* yacc.c:1652 */ { (yyval.number) = 0; } #line 2967 "conf_parser.c" /* yacc.c:1652 */ break; case 39: #line 450 "conf_parser.y" /* yacc.c:1652 */ { (yyval.number) = (yyvsp[-1].number) + (yyvsp[0].number); } #line 2973 "conf_parser.c" /* yacc.c:1652 */ break; case 40: #line 451 "conf_parser.y" /* yacc.c:1652 */ { (yyval.number) = (yyvsp[-2].number) + (yyvsp[0].number); } #line 2979 "conf_parser.c" /* yacc.c:1652 */ break; case 41: #line 452 "conf_parser.y" /* yacc.c:1652 */ { (yyval.number) = (yyvsp[-2].number) * 1024 + (yyvsp[0].number); } #line 2985 "conf_parser.c" /* yacc.c:1652 */ break; case 42: #line 453 "conf_parser.y" /* yacc.c:1652 */ { (yyval.number) = (yyvsp[-2].number) * 1024 * 1024 + (yyvsp[0].number); } #line 2991 "conf_parser.c" /* yacc.c:1652 */ break; case 49: #line 467 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) add_conf_module(libio_basename(yylval.string)); } #line 3000 "conf_parser.c" /* yacc.c:1652 */ break; case 50: #line 473 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) mod_add_path(yylval.string); } #line 3009 "conf_parser.c" /* yacc.c:1652 */ break; case 76: #line 499 "conf_parser.y" /* yacc.c:1652 */ { #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 3020 "conf_parser.c" /* yacc.c:1652 */ break; case 77: #line 505 "conf_parser.y" /* yacc.c:1652 */ { #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 3031 "conf_parser.c" /* yacc.c:1652 */ break; case 80: #line 514 "conf_parser.y" /* yacc.c:1652 */ { #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 3042 "conf_parser.c" /* yacc.c:1652 */ break; case 81: #line 520 "conf_parser.y" /* yacc.c:1652 */ { #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 3053 "conf_parser.c" /* yacc.c:1652 */ break; case 82: #line 528 "conf_parser.y" /* yacc.c:1652 */ { #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_chain_file(ServerInfo.server_ctx, yylval.string) <= 0 || SSL_CTX_use_certificate_chain_file(ServerInfo.client_ctx, yylval.string) <= 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 3096 "conf_parser.c" /* yacc.c:1652 */ break; case 83: #line 568 "conf_parser.y" /* yacc.c:1652 */ { #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; } if (RSA_size(ServerInfo.rsa_private_key) < 128) { RSA_free(ServerInfo.rsa_private_key); ServerInfo.rsa_private_key = NULL; conf_error_report("Ignoring serverinfo::rsa_private_key_file -- need at least a 1024 bit key size"); } #endif } #line 3157 "conf_parser.c" /* yacc.c:1652 */ break; case 84: #line 626 "conf_parser.y" /* yacc.c:1652 */ { #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); } } else conf_error_report("Ignoring serverinfo::ssl_dh_param_file -- could not open/read Diffie-Hellman parameter file"); } #endif } #line 3189 "conf_parser.c" /* yacc.c:1652 */ break; case 85: #line 655 "conf_parser.y" /* yacc.c:1652 */ { #ifdef HAVE_LIBCRYPTO if (conf_parser_ctx.pass == 2 && ServerInfo.server_ctx) SSL_CTX_set_cipher_list(ServerInfo.server_ctx, yylval.string); #endif } #line 3200 "conf_parser.c" /* yacc.c:1652 */ break; case 86: #line 663 "conf_parser.y" /* yacc.c:1652 */ { /* 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 3218 "conf_parser.c" /* yacc.c:1652 */ break; case 87: #line 678 "conf_parser.y" /* yacc.c:1652 */ { /* 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 3236 "conf_parser.c" /* yacc.c:1652 */ break; case 88: #line 693 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) { MyFree(ServerInfo.description); ServerInfo.description = xstrdup(yylval.string); } } #line 3248 "conf_parser.c" /* yacc.c:1652 */ break; case 89: #line 702 "conf_parser.y" /* yacc.c:1652 */ { 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 3265 "conf_parser.c" /* yacc.c:1652 */ break; case 90: #line 716 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass != 2) break; MyFree(ServerInfo.network_desc); ServerInfo.network_desc = xstrdup(yylval.string); } #line 3277 "conf_parser.c" /* yacc.c:1652 */ break; case 91: #line 725 "conf_parser.y" /* yacc.c:1652 */ { 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 3308 "conf_parser.c" /* yacc.c:1652 */ break; case 92: #line 753 "conf_parser.y" /* yacc.c:1652 */ { #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 3341 "conf_parser.c" /* yacc.c:1652 */ break; case 93: #line 783 "conf_parser.y" /* yacc.c:1652 */ { 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 3369 "conf_parser.c" /* yacc.c:1652 */ break; case 94: #line 808 "conf_parser.y" /* yacc.c:1652 */ { 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 3394 "conf_parser.c" /* yacc.c:1652 */ break; case 95: #line 830 "conf_parser.y" /* yacc.c:1652 */ { 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 3419 "conf_parser.c" /* yacc.c:1652 */ break; case 96: #line 852 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) ServerInfo.hub = yylval.number; } #line 3428 "conf_parser.c" /* yacc.c:1652 */ break; case 104: #line 867 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass != 2) break; MyFree(AdminInfo.name); AdminInfo.name = xstrdup(yylval.string); } #line 3440 "conf_parser.c" /* yacc.c:1652 */ break; case 105: #line 876 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass != 2) break; MyFree(AdminInfo.email); AdminInfo.email = xstrdup(yylval.string); } #line 3452 "conf_parser.c" /* yacc.c:1652 */ break; case 106: #line 885 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass != 2) break; MyFree(AdminInfo.description); AdminInfo.description = xstrdup(yylval.string); } #line 3464 "conf_parser.c" /* yacc.c:1652 */ break; case 107: #line 897 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) reset_block_state(); } #line 3473 "conf_parser.c" /* yacc.c:1652 */ break; case 108: #line 901 "conf_parser.y" /* yacc.c:1652 */ { 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 3490 "conf_parser.c" /* yacc.c:1652 */ break; case 114: #line 918 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) dlinkAdd(xstrdup(yylval.string), make_dlink_node(), &block_state.mask.list); } #line 3499 "conf_parser.c" /* yacc.c:1652 */ break; case 115: #line 924 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) strlcpy(block_state.file.buf, yylval.string, sizeof(block_state.file.buf)); } #line 3508 "conf_parser.c" /* yacc.c:1652 */ break; case 122: #line 939 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) ConfigLoggingEntry.use_logging = yylval.number; } #line 3517 "conf_parser.c" /* yacc.c:1652 */ break; case 123: #line 945 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) reset_block_state(); } #line 3526 "conf_parser.c" /* yacc.c:1652 */ break; case 124: #line 949 "conf_parser.y" /* yacc.c:1652 */ { 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 3539 "conf_parser.c" /* yacc.c:1652 */ break; case 131: #line 965 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass != 2) break; strlcpy(block_state.file.buf, yylval.string, sizeof(block_state.file.buf)); } #line 3550 "conf_parser.c" /* yacc.c:1652 */ break; case 132: #line 973 "conf_parser.y" /* yacc.c:1652 */ { block_state.size.value = (yyvsp[-1].number); } #line 3558 "conf_parser.c" /* yacc.c:1652 */ break; case 133: #line 976 "conf_parser.y" /* yacc.c:1652 */ { block_state.size.value = 0; } #line 3566 "conf_parser.c" /* yacc.c:1652 */ break; case 134: #line 981 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.type.value = 0; } #line 3575 "conf_parser.c" /* yacc.c:1652 */ break; case 138: #line 988 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.type.value = LOG_TYPE_USER; } #line 3584 "conf_parser.c" /* yacc.c:1652 */ break; case 139: #line 992 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.type.value = LOG_TYPE_OPER; } #line 3593 "conf_parser.c" /* yacc.c:1652 */ break; case 140: #line 996 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.type.value = LOG_TYPE_GLINE; } #line 3602 "conf_parser.c" /* yacc.c:1652 */ break; case 141: #line 1000 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.type.value = LOG_TYPE_XLINE; } #line 3611 "conf_parser.c" /* yacc.c:1652 */ break; case 142: #line 1004 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.type.value = LOG_TYPE_RESV; } #line 3620 "conf_parser.c" /* yacc.c:1652 */ break; case 143: #line 1008 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.type.value = LOG_TYPE_DLINE; } #line 3629 "conf_parser.c" /* yacc.c:1652 */ break; case 144: #line 1012 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.type.value = LOG_TYPE_KLINE; } #line 3638 "conf_parser.c" /* yacc.c:1652 */ break; case 145: #line 1016 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.type.value = LOG_TYPE_KILL; } #line 3647 "conf_parser.c" /* yacc.c:1652 */ break; case 146: #line 1020 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.type.value = LOG_TYPE_DEBUG; } #line 3656 "conf_parser.c" /* yacc.c:1652 */ break; case 147: #line 1030 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass != 2) break; reset_block_state(); block_state.flags.value |= CONF_FLAGS_ENCRYPTED; } #line 3668 "conf_parser.c" /* yacc.c:1652 */ break; case 148: #line 1037 "conf_parser.y" /* yacc.c:1652 */ { 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) { ilog(LOG_TYPE_IRCD, "Ignoring rsa_public_key_file -- file doesn't exist"); break; } if ((pkey = PEM_read_bio_RSA_PUBKEY(file, NULL, 0, NULL)) == NULL) ilog(LOG_TYPE_IRCD, "Ignoring rsa_public_key_file -- Key invalid; check key syntax"); else { if (RSA_size(pkey) > 128) ilog(LOG_TYPE_IRCD, "Ignoring rsa_public_key_file -- key size must be 1024 or below"); else conf->rsa_public_key = pkey; } BIO_set_close(file, BIO_CLOSE); BIO_free(file); } #endif /* HAVE_LIBCRYPTO */ } } #line 3750 "conf_parser.c" /* yacc.c:1652 */ break; case 162: #line 1123 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) strlcpy(block_state.name.buf, yylval.string, sizeof(block_state.name.buf)); } #line 3759 "conf_parser.c" /* yacc.c:1652 */ break; case 163: #line 1129 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) dlinkAdd(xstrdup(yylval.string), make_dlink_node(), &block_state.mask.list); } #line 3768 "conf_parser.c" /* yacc.c:1652 */ break; case 164: #line 1135 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) strlcpy(block_state.rpass.buf, yylval.string, sizeof(block_state.rpass.buf)); } #line 3777 "conf_parser.c" /* yacc.c:1652 */ break; case 165: #line 1141 "conf_parser.y" /* yacc.c:1652 */ { 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 3791 "conf_parser.c" /* yacc.c:1652 */ break; case 166: #line 1152 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) strlcpy(block_state.file.buf, yylval.string, sizeof(block_state.file.buf)); } #line 3800 "conf_parser.c" /* yacc.c:1652 */ break; case 167: #line 1158 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) strlcpy(block_state.cert.buf, yylval.string, sizeof(block_state.cert.buf)); } #line 3809 "conf_parser.c" /* yacc.c:1652 */ break; case 168: #line 1164 "conf_parser.y" /* yacc.c:1652 */ { 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 3823 "conf_parser.c" /* yacc.c:1652 */ break; case 169: #line 1175 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) strlcpy(block_state.class.buf, yylval.string, sizeof(block_state.class.buf)); } #line 3832 "conf_parser.c" /* yacc.c:1652 */ break; case 170: #line 1181 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.modes.value = 0; } #line 3841 "conf_parser.c" /* yacc.c:1652 */ break; case 174: #line 1188 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.modes.value |= UMODE_BOTS; } #line 3850 "conf_parser.c" /* yacc.c:1652 */ break; case 175: #line 1192 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.modes.value |= UMODE_CCONN; } #line 3859 "conf_parser.c" /* yacc.c:1652 */ break; case 176: #line 1196 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.modes.value |= UMODE_DEAF; } #line 3868 "conf_parser.c" /* yacc.c:1652 */ break; case 177: #line 1200 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.modes.value |= UMODE_DEBUG; } #line 3877 "conf_parser.c" /* yacc.c:1652 */ break; case 178: #line 1204 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.modes.value |= UMODE_FULL; } #line 3886 "conf_parser.c" /* yacc.c:1652 */ break; case 179: #line 1208 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.modes.value |= UMODE_HIDDEN; } #line 3895 "conf_parser.c" /* yacc.c:1652 */ break; case 180: #line 1212 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.modes.value |= UMODE_SKILL; } #line 3904 "conf_parser.c" /* yacc.c:1652 */ break; case 181: #line 1216 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.modes.value |= UMODE_NCHANGE; } #line 3913 "conf_parser.c" /* yacc.c:1652 */ break; case 182: #line 1220 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.modes.value |= UMODE_REJ; } #line 3922 "conf_parser.c" /* yacc.c:1652 */ break; case 183: #line 1224 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.modes.value |= UMODE_UNAUTH; } #line 3931 "conf_parser.c" /* yacc.c:1652 */ break; case 184: #line 1228 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.modes.value |= UMODE_SPY; } #line 3940 "conf_parser.c" /* yacc.c:1652 */ break; case 185: #line 1232 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.modes.value |= UMODE_EXTERNAL; } #line 3949 "conf_parser.c" /* yacc.c:1652 */ break; case 186: #line 1236 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.modes.value |= UMODE_OPERWALL; } #line 3958 "conf_parser.c" /* yacc.c:1652 */ break; case 187: #line 1240 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.modes.value |= UMODE_SERVNOTICE; } #line 3967 "conf_parser.c" /* yacc.c:1652 */ break; case 188: #line 1244 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.modes.value |= UMODE_INVISIBLE; } #line 3976 "conf_parser.c" /* yacc.c:1652 */ break; case 189: #line 1248 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.modes.value |= UMODE_WALLOP; } #line 3985 "conf_parser.c" /* yacc.c:1652 */ break; case 190: #line 1252 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.modes.value |= UMODE_SOFTCALLERID; } #line 3994 "conf_parser.c" /* yacc.c:1652 */ break; case 191: #line 1256 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.modes.value |= UMODE_CALLERID; } #line 4003 "conf_parser.c" /* yacc.c:1652 */ break; case 192: #line 1260 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.modes.value |= UMODE_LOCOPS; } #line 4012 "conf_parser.c" /* yacc.c:1652 */ break; case 193: #line 1264 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.modes.value |= UMODE_REGONLY; } #line 4021 "conf_parser.c" /* yacc.c:1652 */ break; case 194: #line 1268 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.modes.value |= UMODE_FARCONNECT; } #line 4030 "conf_parser.c" /* yacc.c:1652 */ break; case 195: #line 1272 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.modes.value |= UMODE_GOD; } #line 4039 "conf_parser.c" /* yacc.c:1652 */ break; case 196: #line 1278 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.port.value = 0; } #line 4048 "conf_parser.c" /* yacc.c:1652 */ break; case 200: #line 1285 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.port.value |= OPER_FLAG_KILL_REMOTE; } #line 4057 "conf_parser.c" /* yacc.c:1652 */ break; case 201: #line 1289 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.port.value |= OPER_FLAG_KILL; } #line 4066 "conf_parser.c" /* yacc.c:1652 */ break; case 202: #line 1293 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.port.value |= OPER_FLAG_CONNECT_REMOTE; } #line 4075 "conf_parser.c" /* yacc.c:1652 */ break; case 203: #line 1297 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.port.value |= OPER_FLAG_CONNECT; } #line 4084 "conf_parser.c" /* yacc.c:1652 */ break; case 204: #line 1301 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.port.value |= OPER_FLAG_SQUIT_REMOTE; } #line 4093 "conf_parser.c" /* yacc.c:1652 */ break; case 205: #line 1305 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.port.value |= OPER_FLAG_SQUIT; } #line 4102 "conf_parser.c" /* yacc.c:1652 */ break; case 206: #line 1309 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.port.value |= OPER_FLAG_K; } #line 4111 "conf_parser.c" /* yacc.c:1652 */ break; case 207: #line 1313 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.port.value |= OPER_FLAG_UNKLINE; } #line 4120 "conf_parser.c" /* yacc.c:1652 */ break; case 208: #line 1317 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.port.value |= OPER_FLAG_DLINE; } #line 4129 "conf_parser.c" /* yacc.c:1652 */ break; case 209: #line 1321 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.port.value |= OPER_FLAG_UNDLINE; } #line 4138 "conf_parser.c" /* yacc.c:1652 */ break; case 210: #line 1325 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.port.value |= OPER_FLAG_XLINE; } #line 4147 "conf_parser.c" /* yacc.c:1652 */ break; case 211: #line 1329 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.port.value |= OPER_FLAG_UNXLINE; } #line 4156 "conf_parser.c" /* yacc.c:1652 */ break; case 212: #line 1333 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.port.value |= OPER_FLAG_GLINE; } #line 4165 "conf_parser.c" /* yacc.c:1652 */ break; case 213: #line 1337 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.port.value |= OPER_FLAG_DIE; } #line 4174 "conf_parser.c" /* yacc.c:1652 */ break; case 214: #line 1341 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.port.value |= OPER_FLAG_RESTART; } #line 4183 "conf_parser.c" /* yacc.c:1652 */ break; case 215: #line 1345 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.port.value |= OPER_FLAG_REHASH; } #line 4192 "conf_parser.c" /* yacc.c:1652 */ break; case 216: #line 1349 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.port.value |= OPER_FLAG_ADMIN; } #line 4201 "conf_parser.c" /* yacc.c:1652 */ break; case 217: #line 1353 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.port.value |= OPER_FLAG_OPERWALL; } #line 4210 "conf_parser.c" /* yacc.c:1652 */ break; case 218: #line 1357 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.port.value |= OPER_FLAG_GLOBOPS; } #line 4219 "conf_parser.c" /* yacc.c:1652 */ break; case 219: #line 1361 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.port.value |= OPER_FLAG_WALLOPS; } #line 4228 "conf_parser.c" /* yacc.c:1652 */ break; case 220: #line 1365 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.port.value |= OPER_FLAG_LOCOPS; } #line 4237 "conf_parser.c" /* yacc.c:1652 */ break; case 221: #line 1369 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.port.value |= OPER_FLAG_REMOTEBAN; } #line 4246 "conf_parser.c" /* yacc.c:1652 */ break; case 222: #line 1373 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.port.value |= OPER_FLAG_SET; } #line 4255 "conf_parser.c" /* yacc.c:1652 */ break; case 223: #line 1377 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.port.value |= OPER_FLAG_MODULE; } #line 4264 "conf_parser.c" /* yacc.c:1652 */ break; case 224: #line 1381 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.port.value |= OPER_FLAG_TKLINE; } #line 4273 "conf_parser.c" /* yacc.c:1652 */ break; case 225: #line 1391 "conf_parser.y" /* yacc.c:1652 */ { 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 4290 "conf_parser.c" /* yacc.c:1652 */ break; case 226: #line 1403 "conf_parser.y" /* yacc.c:1652 */ { 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 4342 "conf_parser.c" /* yacc.c:1652 */ break; case 246: #line 1469 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 1) strlcpy(block_state.class.buf, yylval.string, sizeof(block_state.class.buf)); } #line 4351 "conf_parser.c" /* yacc.c:1652 */ break; case 247: #line 1475 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 1) block_state.ping_freq.value = (yyvsp[-1].number); } #line 4360 "conf_parser.c" /* yacc.c:1652 */ break; case 248: #line 1481 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 1) block_state.max_perip.value = (yyvsp[-1].number); } #line 4369 "conf_parser.c" /* yacc.c:1652 */ break; case 249: #line 1487 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 1) block_state.con_freq.value = (yyvsp[-1].number); } #line 4378 "conf_parser.c" /* yacc.c:1652 */ break; case 250: #line 1493 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 1) block_state.max_total.value = (yyvsp[-1].number); } #line 4387 "conf_parser.c" /* yacc.c:1652 */ break; case 251: #line 1499 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 1) block_state.max_global.value = (yyvsp[-1].number); } #line 4396 "conf_parser.c" /* yacc.c:1652 */ break; case 252: #line 1505 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 1) block_state.max_local.value = (yyvsp[-1].number); } #line 4405 "conf_parser.c" /* yacc.c:1652 */ break; case 253: #line 1511 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 1) block_state.max_ident.value = (yyvsp[-1].number); } #line 4414 "conf_parser.c" /* yacc.c:1652 */ break; case 254: #line 1517 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 1) block_state.max_sendq.value = (yyvsp[-1].number); } #line 4423 "conf_parser.c" /* yacc.c:1652 */ break; case 255: #line 1523 "conf_parser.y" /* yacc.c:1652 */ { 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 4433 "conf_parser.c" /* yacc.c:1652 */ break; case 256: #line 1530 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 1) block_state.cidr_bitlen_ipv4.value = (yyvsp[-1].number) > 32 ? 32 : (yyvsp[-1].number); } #line 4442 "conf_parser.c" /* yacc.c:1652 */ break; case 257: #line 1536 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 1) block_state.cidr_bitlen_ipv6.value = (yyvsp[-1].number) > 128 ? 128 : (yyvsp[-1].number); } #line 4451 "conf_parser.c" /* yacc.c:1652 */ break; case 258: #line 1542 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 1) block_state.number_per_cidr.value = (yyvsp[-1].number); } #line 4460 "conf_parser.c" /* yacc.c:1652 */ break; case 259: #line 1548 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass != 1) break; block_state.min_idle.value = (yyvsp[-1].number); block_state.flags.value |= CLASS_FLAGS_FAKE_IDLE; } #line 4472 "conf_parser.c" /* yacc.c:1652 */ break; case 260: #line 1557 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass != 1) break; block_state.max_idle.value = (yyvsp[-1].number); block_state.flags.value |= CLASS_FLAGS_FAKE_IDLE; } #line 4484 "conf_parser.c" /* yacc.c:1652 */ break; case 261: #line 1566 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 1) block_state.flags.value &= CLASS_FLAGS_FAKE_IDLE; } #line 4493 "conf_parser.c" /* yacc.c:1652 */ break; case 265: #line 1573 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 1) block_state.flags.value |= CLASS_FLAGS_RANDOM_IDLE; } #line 4502 "conf_parser.c" /* yacc.c:1652 */ break; case 266: #line 1577 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 1) block_state.flags.value |= CLASS_FLAGS_HIDE_IDLE_FROM_OPERS; } #line 4511 "conf_parser.c" /* yacc.c:1652 */ break; case 267: #line 1587 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) reset_block_state(); } #line 4520 "conf_parser.c" /* yacc.c:1652 */ break; case 269: #line 1593 "conf_parser.y" /* yacc.c:1652 */ { block_state.flags.value = 0; } #line 4528 "conf_parser.c" /* yacc.c:1652 */ break; case 273: #line 1599 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.flags.value |= LISTENER_SSL; } #line 4537 "conf_parser.c" /* yacc.c:1652 */ break; case 274: #line 1603 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.flags.value |= LISTENER_HIDDEN; } #line 4546 "conf_parser.c" /* yacc.c:1652 */ break; case 275: #line 1607 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.flags.value |= LISTENER_SERVER; } #line 4555 "conf_parser.c" /* yacc.c:1652 */ break; case 283: #line 1615 "conf_parser.y" /* yacc.c:1652 */ { block_state.flags.value = 0; } #line 4561 "conf_parser.c" /* yacc.c:1652 */ break; case 287: #line 1620 "conf_parser.y" /* yacc.c:1652 */ { 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 4580 "conf_parser.c" /* yacc.c:1652 */ break; case 288: #line 1634 "conf_parser.y" /* yacc.c:1652 */ { 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 4603 "conf_parser.c" /* yacc.c:1652 */ break; case 289: #line 1654 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) strlcpy(block_state.addr.buf, yylval.string, sizeof(block_state.addr.buf)); } #line 4612 "conf_parser.c" /* yacc.c:1652 */ break; case 290: #line 1660 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) strlcpy(block_state.addr.buf, yylval.string, sizeof(block_state.addr.buf)); } #line 4621 "conf_parser.c" /* yacc.c:1652 */ break; case 291: #line 1669 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) reset_block_state(); } #line 4630 "conf_parser.c" /* yacc.c:1652 */ break; case 292: #line 1673 "conf_parser.y" /* yacc.c:1652 */ { 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); if (block_state.cert.buf[0]) conf->certfp = xstrdup(block_state.cert.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 4673 "conf_parser.c" /* yacc.c:1652 */ break; case 305: #line 1719 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) dlinkAdd(xstrdup(yylval.string), make_dlink_node(), &block_state.mask.list); } #line 4682 "conf_parser.c" /* yacc.c:1652 */ break; case 306: #line 1725 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) strlcpy(block_state.rpass.buf, yylval.string, sizeof(block_state.rpass.buf)); } #line 4691 "conf_parser.c" /* yacc.c:1652 */ break; case 307: #line 1731 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) strlcpy(block_state.cert.buf, yylval.string, sizeof(block_state.cert.buf)); } #line 4700 "conf_parser.c" /* yacc.c:1652 */ break; case 308: #line 1737 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) strlcpy(block_state.class.buf, yylval.string, sizeof(block_state.class.buf)); } #line 4709 "conf_parser.c" /* yacc.c:1652 */ break; case 309: #line 1743 "conf_parser.y" /* yacc.c:1652 */ { 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 4723 "conf_parser.c" /* yacc.c:1652 */ break; case 310: #line 1754 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.flags.value &= (CONF_FLAGS_ENCRYPTED | CONF_FLAGS_SPOOF_IP); } #line 4732 "conf_parser.c" /* yacc.c:1652 */ break; case 314: #line 1761 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.flags.value |= CONF_FLAGS_SPOOF_NOTICE; } #line 4741 "conf_parser.c" /* yacc.c:1652 */ break; case 315: #line 1765 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.flags.value |= CONF_FLAGS_NOLIMIT; } #line 4750 "conf_parser.c" /* yacc.c:1652 */ break; case 316: #line 1769 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.flags.value |= CONF_FLAGS_EXEMPTKLINE; } #line 4759 "conf_parser.c" /* yacc.c:1652 */ break; case 317: #line 1773 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.flags.value |= CONF_FLAGS_NEED_IDENTD; } #line 4768 "conf_parser.c" /* yacc.c:1652 */ break; case 318: #line 1777 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.flags.value |= CONF_FLAGS_CAN_FLOOD; } #line 4777 "conf_parser.c" /* yacc.c:1652 */ break; case 319: #line 1781 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.flags.value |= CONF_FLAGS_NO_TILDE; } #line 4786 "conf_parser.c" /* yacc.c:1652 */ break; case 320: #line 1785 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.flags.value |= CONF_FLAGS_EXEMPTGLINE; } #line 4795 "conf_parser.c" /* yacc.c:1652 */ break; case 321: #line 1789 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.flags.value |= CONF_FLAGS_EXEMPTRESV; } #line 4804 "conf_parser.c" /* yacc.c:1652 */ break; case 322: #line 1793 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.flags.value |= CONF_FLAGS_WEBIRC; } #line 4813 "conf_parser.c" /* yacc.c:1652 */ break; case 323: #line 1797 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.flags.value |= CONF_FLAGS_NEED_PASSWORD; } #line 4822 "conf_parser.c" /* yacc.c:1652 */ break; case 324: #line 1803 "conf_parser.y" /* yacc.c:1652 */ { 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 4839 "conf_parser.c" /* yacc.c:1652 */ break; case 325: #line 1817 "conf_parser.y" /* yacc.c:1652 */ { 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 4851 "conf_parser.c" /* yacc.c:1652 */ break; case 326: #line 1826 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass != 2) break; block_state.flags.value |= CONF_FLAGS_REDIR; block_state.port.value = (yyvsp[-1].number); } #line 4863 "conf_parser.c" /* yacc.c:1652 */ break; case 327: #line 1839 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass != 2) break; reset_block_state(); strlcpy(block_state.rpass.buf, CONF_NOREASON, sizeof(block_state.rpass.buf)); } #line 4875 "conf_parser.c" /* yacc.c:1652 */ break; case 328: #line 1846 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass != 2) break; create_resv(block_state.name.buf, block_state.rpass.buf, &block_state.mask.list); } #line 4886 "conf_parser.c" /* yacc.c:1652 */ break; case 335: #line 1857 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) strlcpy(block_state.name.buf, yylval.string, sizeof(block_state.name.buf)); } #line 4895 "conf_parser.c" /* yacc.c:1652 */ break; case 336: #line 1863 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) strlcpy(block_state.rpass.buf, yylval.string, sizeof(block_state.rpass.buf)); } #line 4904 "conf_parser.c" /* yacc.c:1652 */ break; case 337: #line 1869 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) dlinkAdd(xstrdup(yylval.string), make_dlink_node(), &block_state.mask.list); } #line 4913 "conf_parser.c" /* yacc.c:1652 */ break; case 343: #line 1884 "conf_parser.y" /* yacc.c:1652 */ { 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 4928 "conf_parser.c" /* yacc.c:1652 */ break; case 344: #line 1899 "conf_parser.y" /* yacc.c:1652 */ { 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 4944 "conf_parser.c" /* yacc.c:1652 */ break; case 345: #line 1910 "conf_parser.y" /* yacc.c:1652 */ { 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 4961 "conf_parser.c" /* yacc.c:1652 */ break; case 352: #line 1927 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) strlcpy(block_state.name.buf, yylval.string, sizeof(block_state.name.buf)); } #line 4970 "conf_parser.c" /* yacc.c:1652 */ break; case 353: #line 1933 "conf_parser.y" /* yacc.c:1652 */ { 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 4992 "conf_parser.c" /* yacc.c:1652 */ break; case 354: #line 1952 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.flags.value = 0; } #line 5001 "conf_parser.c" /* yacc.c:1652 */ break; case 358: #line 1959 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.flags.value |= SHARED_KLINE; } #line 5010 "conf_parser.c" /* yacc.c:1652 */ break; case 359: #line 1963 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.flags.value |= SHARED_UNKLINE; } #line 5019 "conf_parser.c" /* yacc.c:1652 */ break; case 360: #line 1967 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.flags.value |= SHARED_DLINE; } #line 5028 "conf_parser.c" /* yacc.c:1652 */ break; case 361: #line 1971 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.flags.value |= SHARED_UNDLINE; } #line 5037 "conf_parser.c" /* yacc.c:1652 */ break; case 362: #line 1975 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.flags.value |= SHARED_XLINE; } #line 5046 "conf_parser.c" /* yacc.c:1652 */ break; case 363: #line 1979 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.flags.value |= SHARED_UNXLINE; } #line 5055 "conf_parser.c" /* yacc.c:1652 */ break; case 364: #line 1983 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.flags.value |= SHARED_RESV; } #line 5064 "conf_parser.c" /* yacc.c:1652 */ break; case 365: #line 1987 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.flags.value |= SHARED_UNRESV; } #line 5073 "conf_parser.c" /* yacc.c:1652 */ break; case 366: #line 1991 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.flags.value |= SHARED_LOCOPS; } #line 5082 "conf_parser.c" /* yacc.c:1652 */ break; case 367: #line 1995 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.flags.value = SHARED_ALL; } #line 5091 "conf_parser.c" /* yacc.c:1652 */ break; case 368: #line 2004 "conf_parser.y" /* yacc.c:1652 */ { 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 5105 "conf_parser.c" /* yacc.c:1652 */ break; case 369: #line 2013 "conf_parser.y" /* yacc.c:1652 */ { 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 5120 "conf_parser.c" /* yacc.c:1652 */ break; case 375: #line 2028 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) strlcpy(block_state.name.buf, yylval.string, sizeof(block_state.name.buf)); } #line 5129 "conf_parser.c" /* yacc.c:1652 */ break; case 376: #line 2034 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.flags.value = 0; } #line 5138 "conf_parser.c" /* yacc.c:1652 */ break; case 380: #line 2041 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.flags.value |= SHARED_KLINE; } #line 5147 "conf_parser.c" /* yacc.c:1652 */ break; case 381: #line 2045 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.flags.value |= SHARED_UNKLINE; } #line 5156 "conf_parser.c" /* yacc.c:1652 */ break; case 382: #line 2049 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.flags.value |= SHARED_DLINE; } #line 5165 "conf_parser.c" /* yacc.c:1652 */ break; case 383: #line 2053 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.flags.value |= SHARED_UNDLINE; } #line 5174 "conf_parser.c" /* yacc.c:1652 */ break; case 384: #line 2057 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.flags.value |= SHARED_XLINE; } #line 5183 "conf_parser.c" /* yacc.c:1652 */ break; case 385: #line 2061 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.flags.value |= SHARED_UNXLINE; } #line 5192 "conf_parser.c" /* yacc.c:1652 */ break; case 386: #line 2065 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.flags.value |= SHARED_RESV; } #line 5201 "conf_parser.c" /* yacc.c:1652 */ break; case 387: #line 2069 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.flags.value |= SHARED_UNRESV; } #line 5210 "conf_parser.c" /* yacc.c:1652 */ break; case 388: #line 2073 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.flags.value |= SHARED_LOCOPS; } #line 5219 "conf_parser.c" /* yacc.c:1652 */ break; case 389: #line 2077 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.flags.value = SHARED_ALL; } #line 5228 "conf_parser.c" /* yacc.c:1652 */ break; case 390: #line 2086 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass != 2) break; reset_block_state(); block_state.aftype.value = AF_INET; block_state.port.value = PORTNUM; } #line 5242 "conf_parser.c" /* yacc.c:1652 */ break; case 391: #line 2095 "conf_parser.y" /* yacc.c:1652 */ { 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]) && !block_state.cert.buf[0]) break; if (has_wildcards(block_state.name.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); if (!block_state.spass.buf[0]) conf->spasswd = xstrdup("certificate_auth"); else 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 the host has wildcards, we can't connect */ if (has_wildcards(block_state.host.buf)) conf->flags &= ~CONF_FLAGS_ALLOW_AUTO_CONN; 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 5315 "conf_parser.c" /* yacc.c:1652 */ break; case 409: #line 2174 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) strlcpy(block_state.name.buf, yylval.string, sizeof(block_state.name.buf)); } #line 5324 "conf_parser.c" /* yacc.c:1652 */ break; case 410: #line 2180 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) strlcpy(block_state.host.buf, yylval.string, sizeof(block_state.host.buf)); } #line 5333 "conf_parser.c" /* yacc.c:1652 */ break; case 411: #line 2186 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) strlcpy(block_state.bind.buf, yylval.string, sizeof(block_state.bind.buf)); } #line 5342 "conf_parser.c" /* yacc.c:1652 */ break; case 412: #line 2192 "conf_parser.y" /* yacc.c:1652 */ { 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 5358 "conf_parser.c" /* yacc.c:1652 */ break; case 413: #line 2205 "conf_parser.y" /* yacc.c:1652 */ { 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 5374 "conf_parser.c" /* yacc.c:1652 */ break; case 414: #line 2218 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) strlcpy(block_state.cert.buf, yylval.string, sizeof(block_state.cert.buf)); } #line 5383 "conf_parser.c" /* yacc.c:1652 */ break; case 415: #line 2224 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.port.value = (yyvsp[-1].number); } #line 5392 "conf_parser.c" /* yacc.c:1652 */ break; case 416: #line 2230 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.aftype.value = AF_INET; } #line 5401 "conf_parser.c" /* yacc.c:1652 */ break; case 417: #line 2234 "conf_parser.y" /* yacc.c:1652 */ { #ifdef IPV6 if (conf_parser_ctx.pass == 2) block_state.aftype.value = AF_INET6; #endif } #line 5412 "conf_parser.c" /* yacc.c:1652 */ break; case 418: #line 2242 "conf_parser.y" /* yacc.c:1652 */ { block_state.flags.value &= CONF_FLAGS_ENCRYPTED; } #line 5420 "conf_parser.c" /* yacc.c:1652 */ break; case 422: #line 2248 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.flags.value |= CONF_FLAGS_ALLOW_AUTO_CONN; } #line 5429 "conf_parser.c" /* yacc.c:1652 */ break; case 423: #line 2252 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) block_state.flags.value |= CONF_FLAGS_SSL; } #line 5438 "conf_parser.c" /* yacc.c:1652 */ break; case 424: #line 2258 "conf_parser.y" /* yacc.c:1652 */ { 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 5452 "conf_parser.c" /* yacc.c:1652 */ break; case 425: #line 2269 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) dlinkAdd(xstrdup(yylval.string), make_dlink_node(), &block_state.hub.list); } #line 5461 "conf_parser.c" /* yacc.c:1652 */ break; case 426: #line 2275 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) dlinkAdd(xstrdup(yylval.string), make_dlink_node(), &block_state.leaf.list); } #line 5470 "conf_parser.c" /* yacc.c:1652 */ break; case 427: #line 2281 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) strlcpy(block_state.class.buf, yylval.string, sizeof(block_state.class.buf)); } #line 5479 "conf_parser.c" /* yacc.c:1652 */ break; case 428: #line 2287 "conf_parser.y" /* yacc.c:1652 */ { #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 5493 "conf_parser.c" /* yacc.c:1652 */ break; case 429: #line 2302 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) reset_block_state(); } #line 5502 "conf_parser.c" /* yacc.c:1652 */ break; case 430: #line 2306 "conf_parser.y" /* yacc.c:1652 */ { 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 5527 "conf_parser.c" /* yacc.c:1652 */ break; case 436: #line 2331 "conf_parser.y" /* yacc.c:1652 */ { 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 5550 "conf_parser.c" /* yacc.c:1652 */ break; case 437: #line 2351 "conf_parser.y" /* yacc.c:1652 */ { 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:1652 */ break; case 438: #line 2360 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) reset_block_state(); } #line 5568 "conf_parser.c" /* yacc.c:1652 */ break; case 439: #line 2364 "conf_parser.y" /* yacc.c:1652 */ { 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 5594 "conf_parser.c" /* yacc.c:1652 */ break; case 445: #line 2390 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) strlcpy(block_state.addr.buf, yylval.string, sizeof(block_state.addr.buf)); } #line 5603 "conf_parser.c" /* yacc.c:1652 */ break; case 446: #line 2396 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) strlcpy(block_state.rpass.buf, yylval.string, sizeof(block_state.rpass.buf)); } #line 5612 "conf_parser.c" /* yacc.c:1652 */ break; case 453: #line 2410 "conf_parser.y" /* yacc.c:1652 */ { 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 5629 "conf_parser.c" /* yacc.c:1652 */ break; case 454: #line 2424 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) { struct MaskItem *conf = conf_make(CONF_EXEMPT); conf->certfp = xstrdup(yylval.string); conf->host = xstrdup(yylval.string); add_conf_by_address(CONF_EXEMPT, conf); } } #line 5644 "conf_parser.c" /* yacc.c:1652 */ break; case 455: #line 2439 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) reset_block_state(); } #line 5653 "conf_parser.c" /* yacc.c:1652 */ break; case 456: #line 2443 "conf_parser.y" /* yacc.c:1652 */ { 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 5675 "conf_parser.c" /* yacc.c:1652 */ break; case 462: #line 2465 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) strlcpy(block_state.name.buf, yylval.string, sizeof(block_state.name.buf)); } #line 5684 "conf_parser.c" /* yacc.c:1652 */ break; case 463: #line 2471 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) strlcpy(block_state.rpass.buf, yylval.string, sizeof(block_state.rpass.buf)); } #line 5693 "conf_parser.c" /* yacc.c:1652 */ break; case 516: #line 2516 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.max_watch = (yyvsp[-1].number); } #line 5701 "conf_parser.c" /* yacc.c:1652 */ break; case 517: #line 2521 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) ConfigFileEntry.cycle_on_host_change = yylval.number; } #line 5710 "conf_parser.c" /* yacc.c:1652 */ break; case 518: #line 2527 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) ConfigFileEntry.glines = yylval.number; } #line 5719 "conf_parser.c" /* yacc.c:1652 */ break; case 519: #line 2533 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) ConfigFileEntry.gline_time = (yyvsp[-1].number); } #line 5728 "conf_parser.c" /* yacc.c:1652 */ break; case 520: #line 2539 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) ConfigFileEntry.gline_request_time = (yyvsp[-1].number); } #line 5737 "conf_parser.c" /* yacc.c:1652 */ break; case 521: #line 2545 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.gline_min_cidr = (yyvsp[-1].number); } #line 5745 "conf_parser.c" /* yacc.c:1652 */ break; case 522: #line 2550 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.gline_min_cidr6 = (yyvsp[-1].number); } #line 5753 "conf_parser.c" /* yacc.c:1652 */ break; case 523: #line 2555 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.tkline_expire_notices = yylval.number; } #line 5761 "conf_parser.c" /* yacc.c:1652 */ break; case 524: #line 2560 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.kill_chase_time_limit = (yyvsp[-1].number); } #line 5769 "conf_parser.c" /* yacc.c:1652 */ break; case 525: #line 2565 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.hide_spoof_ips = yylval.number; } #line 5777 "conf_parser.c" /* yacc.c:1652 */ break; case 526: #line 2570 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.ignore_bogus_ts = yylval.number; } #line 5785 "conf_parser.c" /* yacc.c:1652 */ break; case 527: #line 2575 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.failed_oper_notice = yylval.number; } #line 5793 "conf_parser.c" /* yacc.c:1652 */ break; case 528: #line 2580 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.anti_nick_flood = yylval.number; } #line 5801 "conf_parser.c" /* yacc.c:1652 */ break; case 529: #line 2585 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.max_nick_time = (yyvsp[-1].number); } #line 5809 "conf_parser.c" /* yacc.c:1652 */ break; case 530: #line 2590 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.max_nick_changes = (yyvsp[-1].number); } #line 5817 "conf_parser.c" /* yacc.c:1652 */ break; case 531: #line 2595 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.max_accept = (yyvsp[-1].number); } #line 5825 "conf_parser.c" /* yacc.c:1652 */ break; case 532: #line 2600 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.anti_spam_exit_message_time = (yyvsp[-1].number); } #line 5833 "conf_parser.c" /* yacc.c:1652 */ break; case 533: #line 2605 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.ts_warn_delta = (yyvsp[-1].number); } #line 5841 "conf_parser.c" /* yacc.c:1652 */ break; case 534: #line 2610 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) ConfigFileEntry.ts_max_delta = (yyvsp[-1].number); } #line 5850 "conf_parser.c" /* yacc.c:1652 */ break; case 535: #line 2616 "conf_parser.y" /* yacc.c:1652 */ { 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 5864 "conf_parser.c" /* yacc.c:1652 */ break; case 536: #line 2627 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.invisible_on_connect = yylval.number; } #line 5872 "conf_parser.c" /* yacc.c:1652 */ break; case 537: #line 2632 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.warn_no_nline = yylval.number; } #line 5880 "conf_parser.c" /* yacc.c:1652 */ break; case 538: #line 2637 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.stats_e_disabled = yylval.number; } #line 5888 "conf_parser.c" /* yacc.c:1652 */ break; case 539: #line 2642 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.stats_o_oper_only = yylval.number; } #line 5896 "conf_parser.c" /* yacc.c:1652 */ break; case 540: #line 2647 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.stats_P_oper_only = yylval.number; } #line 5904 "conf_parser.c" /* yacc.c:1652 */ break; case 541: #line 2652 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.stats_u_oper_only = yylval.number; } #line 5912 "conf_parser.c" /* yacc.c:1652 */ break; case 542: #line 2657 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.stats_k_oper_only = 2 * yylval.number; } #line 5920 "conf_parser.c" /* yacc.c:1652 */ break; case 543: #line 2660 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.stats_k_oper_only = 1; } #line 5928 "conf_parser.c" /* yacc.c:1652 */ break; case 544: #line 2665 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.stats_i_oper_only = 2 * yylval.number; } #line 5936 "conf_parser.c" /* yacc.c:1652 */ break; case 545: #line 2668 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.stats_i_oper_only = 1; } #line 5944 "conf_parser.c" /* yacc.c:1652 */ break; case 546: #line 2673 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.pace_wait = (yyvsp[-1].number); } #line 5952 "conf_parser.c" /* yacc.c:1652 */ break; case 547: #line 2678 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.caller_id_wait = (yyvsp[-1].number); } #line 5960 "conf_parser.c" /* yacc.c:1652 */ break; case 548: #line 2683 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.opers_bypass_callerid = yylval.number; } #line 5968 "conf_parser.c" /* yacc.c:1652 */ break; case 549: #line 2688 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.pace_wait_simple = (yyvsp[-1].number); } #line 5976 "conf_parser.c" /* yacc.c:1652 */ break; case 550: #line 2693 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.short_motd = yylval.number; } #line 5984 "conf_parser.c" /* yacc.c:1652 */ break; case 551: #line 2698 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.no_oper_flood = yylval.number; } #line 5992 "conf_parser.c" /* yacc.c:1652 */ break; case 552: #line 2703 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.true_no_oper_flood = yylval.number; } #line 6000 "conf_parser.c" /* yacc.c:1652 */ break; case 553: #line 2708 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.oper_pass_resv = yylval.number; } #line 6008 "conf_parser.c" /* yacc.c:1652 */ break; case 554: #line 2713 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.dots_in_ident = (yyvsp[-1].number); } #line 6016 "conf_parser.c" /* yacc.c:1652 */ break; case 555: #line 2718 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.max_targets = (yyvsp[-1].number); } #line 6024 "conf_parser.c" /* yacc.c:1652 */ break; case 556: #line 2723 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2 && valid_servname(yylval.string)) { MyFree(ConfigFileEntry.service_name); ConfigFileEntry.service_name = xstrdup(yylval.string); } } #line 6036 "conf_parser.c" /* yacc.c:1652 */ break; case 557: #line 2732 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.ping_cookie = yylval.number; } #line 6044 "conf_parser.c" /* yacc.c:1652 */ break; case 558: #line 2737 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.disable_auth = yylval.number; } #line 6052 "conf_parser.c" /* yacc.c:1652 */ break; case 559: #line 2742 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.throttle_time = (yyvsp[-1].number); } #line 6060 "conf_parser.c" /* yacc.c:1652 */ break; case 560: #line 2747 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.oper_umodes = 0; } #line 6068 "conf_parser.c" /* yacc.c:1652 */ break; case 564: #line 2753 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.oper_umodes |= UMODE_BOTS; } #line 6076 "conf_parser.c" /* yacc.c:1652 */ break; case 565: #line 2756 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.oper_umodes |= UMODE_CCONN; } #line 6084 "conf_parser.c" /* yacc.c:1652 */ break; case 566: #line 2759 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.oper_umodes |= UMODE_DEAF; } #line 6092 "conf_parser.c" /* yacc.c:1652 */ break; case 567: #line 2762 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.oper_umodes |= UMODE_DEBUG; } #line 6100 "conf_parser.c" /* yacc.c:1652 */ break; case 568: #line 2765 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.oper_umodes |= UMODE_FULL; } #line 6108 "conf_parser.c" /* yacc.c:1652 */ break; case 569: #line 2768 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.oper_umodes |= UMODE_HIDDEN; } #line 6116 "conf_parser.c" /* yacc.c:1652 */ break; case 570: #line 2771 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.oper_umodes |= UMODE_SKILL; } #line 6124 "conf_parser.c" /* yacc.c:1652 */ break; case 571: #line 2774 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.oper_umodes |= UMODE_NCHANGE; } #line 6132 "conf_parser.c" /* yacc.c:1652 */ break; case 572: #line 2777 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.oper_umodes |= UMODE_REJ; } #line 6140 "conf_parser.c" /* yacc.c:1652 */ break; case 573: #line 2780 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.oper_umodes |= UMODE_UNAUTH; } #line 6148 "conf_parser.c" /* yacc.c:1652 */ break; case 574: #line 2783 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.oper_umodes |= UMODE_SPY; } #line 6156 "conf_parser.c" /* yacc.c:1652 */ break; case 575: #line 2786 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.oper_umodes |= UMODE_EXTERNAL; } #line 6164 "conf_parser.c" /* yacc.c:1652 */ break; case 576: #line 2789 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.oper_umodes |= UMODE_OPERWALL; } #line 6172 "conf_parser.c" /* yacc.c:1652 */ break; case 577: #line 2792 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.oper_umodes |= UMODE_SERVNOTICE; } #line 6180 "conf_parser.c" /* yacc.c:1652 */ break; case 578: #line 2795 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.oper_umodes |= UMODE_INVISIBLE; } #line 6188 "conf_parser.c" /* yacc.c:1652 */ break; case 579: #line 2798 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.oper_umodes |= UMODE_WALLOP; } #line 6196 "conf_parser.c" /* yacc.c:1652 */ break; case 580: #line 2801 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.oper_umodes |= UMODE_SOFTCALLERID; } #line 6204 "conf_parser.c" /* yacc.c:1652 */ break; case 581: #line 2804 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.oper_umodes |= UMODE_CALLERID; } #line 6212 "conf_parser.c" /* yacc.c:1652 */ break; case 582: #line 2807 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.oper_umodes |= UMODE_LOCOPS; } #line 6220 "conf_parser.c" /* yacc.c:1652 */ break; case 583: #line 2810 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.oper_umodes |= UMODE_REGONLY; } #line 6228 "conf_parser.c" /* yacc.c:1652 */ break; case 584: #line 2813 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.oper_umodes |= UMODE_FARCONNECT; } #line 6236 "conf_parser.c" /* yacc.c:1652 */ break; case 585: #line 2816 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.oper_umodes |= UMODE_GOD; } #line 6244 "conf_parser.c" /* yacc.c:1652 */ break; case 586: #line 2821 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.oper_only_umodes = 0; } #line 6252 "conf_parser.c" /* yacc.c:1652 */ break; case 590: #line 2827 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.oper_only_umodes |= UMODE_BOTS; } #line 6260 "conf_parser.c" /* yacc.c:1652 */ break; case 591: #line 2830 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.oper_only_umodes |= UMODE_CCONN; } #line 6268 "conf_parser.c" /* yacc.c:1652 */ break; case 592: #line 2833 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.oper_only_umodes |= UMODE_DEAF; } #line 6276 "conf_parser.c" /* yacc.c:1652 */ break; case 593: #line 2836 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.oper_only_umodes |= UMODE_DEBUG; } #line 6284 "conf_parser.c" /* yacc.c:1652 */ break; case 594: #line 2839 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.oper_only_umodes |= UMODE_FULL; } #line 6292 "conf_parser.c" /* yacc.c:1652 */ break; case 595: #line 2842 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.oper_only_umodes |= UMODE_SKILL; } #line 6300 "conf_parser.c" /* yacc.c:1652 */ break; case 596: #line 2845 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.oper_only_umodes |= UMODE_HIDDEN; } #line 6308 "conf_parser.c" /* yacc.c:1652 */ break; case 597: #line 2848 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.oper_only_umodes |= UMODE_NCHANGE; } #line 6316 "conf_parser.c" /* yacc.c:1652 */ break; case 598: #line 2851 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.oper_only_umodes |= UMODE_REJ; } #line 6324 "conf_parser.c" /* yacc.c:1652 */ break; case 599: #line 2854 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.oper_only_umodes |= UMODE_UNAUTH; } #line 6332 "conf_parser.c" /* yacc.c:1652 */ break; case 600: #line 2857 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.oper_only_umodes |= UMODE_SPY; } #line 6340 "conf_parser.c" /* yacc.c:1652 */ break; case 601: #line 2860 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.oper_only_umodes |= UMODE_EXTERNAL; } #line 6348 "conf_parser.c" /* yacc.c:1652 */ break; case 602: #line 2863 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.oper_only_umodes |= UMODE_OPERWALL; } #line 6356 "conf_parser.c" /* yacc.c:1652 */ break; case 603: #line 2866 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.oper_only_umodes |= UMODE_SERVNOTICE; } #line 6364 "conf_parser.c" /* yacc.c:1652 */ break; case 604: #line 2869 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.oper_only_umodes |= UMODE_INVISIBLE; } #line 6372 "conf_parser.c" /* yacc.c:1652 */ break; case 605: #line 2872 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.oper_only_umodes |= UMODE_WALLOP; } #line 6380 "conf_parser.c" /* yacc.c:1652 */ break; case 606: #line 2875 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.oper_only_umodes |= UMODE_SOFTCALLERID; } #line 6388 "conf_parser.c" /* yacc.c:1652 */ break; case 607: #line 2878 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.oper_only_umodes |= UMODE_CALLERID; } #line 6396 "conf_parser.c" /* yacc.c:1652 */ break; case 608: #line 2881 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.oper_only_umodes |= UMODE_LOCOPS; } #line 6404 "conf_parser.c" /* yacc.c:1652 */ break; case 609: #line 2884 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.oper_only_umodes |= UMODE_REGONLY; } #line 6412 "conf_parser.c" /* yacc.c:1652 */ break; case 610: #line 2887 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.oper_only_umodes |= UMODE_FARCONNECT; } #line 6420 "conf_parser.c" /* yacc.c:1652 */ break; case 611: #line 2890 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.oper_only_umodes |= UMODE_GOD; } #line 6428 "conf_parser.c" /* yacc.c:1652 */ break; case 612: #line 2895 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.min_nonwildcard = (yyvsp[-1].number); } #line 6436 "conf_parser.c" /* yacc.c:1652 */ break; case 613: #line 2900 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.min_nonwildcard_simple = (yyvsp[-1].number); } #line 6444 "conf_parser.c" /* yacc.c:1652 */ break; case 614: #line 2905 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.default_floodcount = (yyvsp[-1].number); } #line 6452 "conf_parser.c" /* yacc.c:1652 */ break; case 615: #line 2910 "conf_parser.y" /* yacc.c:1652 */ { ConfigFileEntry.tkline_max = (yyvsp[-1].number); } #line 6460 "conf_parser.c" /* yacc.c:1652 */ break; case 633: #line 2933 "conf_parser.y" /* yacc.c:1652 */ { ConfigChannel.disable_fake_channels = yylval.number; } #line 6468 "conf_parser.c" /* yacc.c:1652 */ break; case 634: #line 2938 "conf_parser.y" /* yacc.c:1652 */ { ConfigChannel.knock_delay = (yyvsp[-1].number); } #line 6476 "conf_parser.c" /* yacc.c:1652 */ break; case 635: #line 2943 "conf_parser.y" /* yacc.c:1652 */ { ConfigChannel.knock_delay_channel = (yyvsp[-1].number); } #line 6484 "conf_parser.c" /* yacc.c:1652 */ break; case 636: #line 2948 "conf_parser.y" /* yacc.c:1652 */ { ConfigChannel.max_chans_per_user = (yyvsp[-1].number); } #line 6492 "conf_parser.c" /* yacc.c:1652 */ break; case 637: #line 2953 "conf_parser.y" /* yacc.c:1652 */ { ConfigChannel.max_chans_per_oper = (yyvsp[-1].number); } #line 6500 "conf_parser.c" /* yacc.c:1652 */ break; case 638: #line 2958 "conf_parser.y" /* yacc.c:1652 */ { ConfigChannel.max_bans = (yyvsp[-1].number); } #line 6508 "conf_parser.c" /* yacc.c:1652 */ break; case 639: #line 2963 "conf_parser.y" /* yacc.c:1652 */ { ConfigChannel.default_split_user_count = (yyvsp[-1].number); } #line 6516 "conf_parser.c" /* yacc.c:1652 */ break; case 640: #line 2968 "conf_parser.y" /* yacc.c:1652 */ { ConfigChannel.default_split_server_count = (yyvsp[-1].number); } #line 6524 "conf_parser.c" /* yacc.c:1652 */ break; case 641: #line 2973 "conf_parser.y" /* yacc.c:1652 */ { ConfigChannel.no_create_on_split = yylval.number; } #line 6532 "conf_parser.c" /* yacc.c:1652 */ break; case 642: #line 2978 "conf_parser.y" /* yacc.c:1652 */ { ConfigChannel.no_join_on_split = yylval.number; } #line 6540 "conf_parser.c" /* yacc.c:1652 */ break; case 643: #line 2983 "conf_parser.y" /* yacc.c:1652 */ { GlobalSetOptions.joinfloodcount = yylval.number; } #line 6548 "conf_parser.c" /* yacc.c:1652 */ break; case 644: #line 2988 "conf_parser.y" /* yacc.c:1652 */ { GlobalSetOptions.joinfloodtime = (yyvsp[-1].number); } #line 6556 "conf_parser.c" /* yacc.c:1652 */ break; case 645: #line 2993 "conf_parser.y" /* yacc.c:1652 */ { ConfigChannel.default_modes = 0; } #line 6564 "conf_parser.c" /* yacc.c:1652 */ break; case 649: #line 2999 "conf_parser.y" /* yacc.c:1652 */ { ConfigChannel.default_modes |= MODE_PRIVATE; } #line 6572 "conf_parser.c" /* yacc.c:1652 */ break; case 650: #line 3002 "conf_parser.y" /* yacc.c:1652 */ { ConfigChannel.default_modes |= MODE_SECRET; } #line 6580 "conf_parser.c" /* yacc.c:1652 */ break; case 651: #line 3005 "conf_parser.y" /* yacc.c:1652 */ { ConfigChannel.default_modes |= MODE_MODERATED; } #line 6588 "conf_parser.c" /* yacc.c:1652 */ break; case 652: #line 3008 "conf_parser.y" /* yacc.c:1652 */ { ConfigChannel.default_modes |= MODE_TOPICLIMIT; } #line 6596 "conf_parser.c" /* yacc.c:1652 */ break; case 653: #line 3011 "conf_parser.y" /* yacc.c:1652 */ { ConfigChannel.default_modes |= MODE_INVITEONLY; } #line 6604 "conf_parser.c" /* yacc.c:1652 */ break; case 654: #line 3014 "conf_parser.y" /* yacc.c:1652 */ { ConfigChannel.default_modes |= MODE_NOPRIVMSGS; } #line 6612 "conf_parser.c" /* yacc.c:1652 */ break; case 667: #line 3034 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) ConfigServerHide.flatten_links = yylval.number; } #line 6621 "conf_parser.c" /* yacc.c:1652 */ break; case 668: #line 3040 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) ConfigServerHide.disable_remote_commands = yylval.number; } #line 6630 "conf_parser.c" /* yacc.c:1652 */ break; case 669: #line 3046 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) ConfigServerHide.hide_servers = yylval.number; } #line 6639 "conf_parser.c" /* yacc.c:1652 */ break; case 670: #line 3052 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) ConfigServerHide.hide_services = yylval.number; } #line 6648 "conf_parser.c" /* yacc.c:1652 */ break; case 671: #line 3058 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) { MyFree(ConfigServerHide.hidden_name); ConfigServerHide.hidden_name = xstrdup(yylval.string); } } #line 6660 "conf_parser.c" /* yacc.c:1652 */ break; case 672: #line 3067 "conf_parser.y" /* yacc.c:1652 */ { 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 6677 "conf_parser.c" /* yacc.c:1652 */ break; case 673: #line 3081 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) ConfigServerHide.hidden = yylval.number; } #line 6686 "conf_parser.c" /* yacc.c:1652 */ break; case 674: #line 3087 "conf_parser.y" /* yacc.c:1652 */ { if (conf_parser_ctx.pass == 2) ConfigServerHide.hide_server_ips = yylval.number; } #line 6695 "conf_parser.c" /* yacc.c:1652 */ break; #line 6699 "conf_parser.c" /* yacc.c:1652 */ 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. */ { const int yylhs = yyr1[yyn] - YYNTOKENS; const int yyi = yypgoto[yylhs] + *yyssp; yystate = (0 <= yyi && yyi <= YYLAST && yycheck[yyi] == *yyssp ? yytable[yyi] : yydefgoto[yylhs]); } goto yynewstate; /*--------------------------------------. | yyerrlab -- here on detecting error. | `--------------------------------------*/ yyerrlab: /* Make sure we have latest lookahead translation. See comments at user semantic actions for why this is necessary. */ yytoken = yychar == YYEMPTY ? 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 when the user code never invokes YYERROR and the label yyerrorlab therefore never appears in user code. */ if (0) YYERROR; /* 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 -- parsing is finished, return the result. | `-----------------------------------------------------*/ 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; }