1 /* A Bison parser, made by GNU Bison 3.8.2. */ 2 3 /* Bison interface for Yacc-like parsers in C 4 5 Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2021 Free Software Foundation, 6 Inc. 7 8 This program is free software: you can redistribute it and/or modify 9 it under the terms of the GNU General Public License as published by 10 the Free Software Foundation, either version 3 of the License, or 11 (at your option) any later version. 12 13 This program is distributed in the hope that it will be useful, 14 but WITHOUT ANY WARRANTY; without even the implied warranty of 15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 GNU General Public License for more details. 17 18 You should have received a copy of the GNU General Public License 19 along with this program. If not, see <https://www.gnu.org/licenses/>. */ 20 21 /* As a special exception, you may create a larger work that contains 22 part or all of the Bison parser skeleton and distribute that work 23 under terms of your choice, so long as that work isn't itself a 24 parser generator using the skeleton or a modified version thereof 25 as a parser skeleton. Alternatively, if you modify or redistribute 26 the parser skeleton itself, you may (at your option) remove this 27 special exception, which will cause the skeleton and the resulting 28 Bison output files to be licensed under the GNU General Public 29 License without this special exception. 30 31 This special exception was added by the Free Software Foundation in 32 version 2.2 of Bison. */ 33 34 /* DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual, 35 especially those whose name start with YY_ or yy_. They are 36 private implementation details that can be changed or removed. */ 37 38 #ifndef YY_YY_NTP_PARSER_H_INCLUDED 39 # define YY_YY_NTP_PARSER_H_INCLUDED 40 /* Debug traces. */ 41 #ifndef YYDEBUG 42 # define YYDEBUG 1 43 #endif 44 #if YYDEBUG 45 extern int yydebug; 46 #endif 47 48 /* Token kinds. */ 49 #ifndef YYTOKENTYPE 50 # define YYTOKENTYPE 51 enum yytokentype 52 { 53 YYEMPTY = -2, 54 YYEOF = 0, /* "end of file" */ 55 YYerror = 256, /* error */ 56 YYUNDEF = 257, /* "invalid token" */ 57 T_Abbrev = 258, /* T_Abbrev */ 58 T_Age = 259, /* T_Age */ 59 T_All = 260, /* T_All */ 60 T_Allan = 261, /* T_Allan */ 61 T_Allpeers = 262, /* T_Allpeers */ 62 T_Auth = 263, /* T_Auth */ 63 T_Autokey = 264, /* T_Autokey */ 64 T_Automax = 265, /* T_Automax */ 65 T_Average = 266, /* T_Average */ 66 T_Basedate = 267, /* T_Basedate */ 67 T_Bclient = 268, /* T_Bclient */ 68 T_Bcpollbstep = 269, /* T_Bcpollbstep */ 69 T_Beacon = 270, /* T_Beacon */ 70 T_Broadcast = 271, /* T_Broadcast */ 71 T_Broadcastclient = 272, /* T_Broadcastclient */ 72 T_Broadcastdelay = 273, /* T_Broadcastdelay */ 73 T_Burst = 274, /* T_Burst */ 74 T_Calibrate = 275, /* T_Calibrate */ 75 T_Ceiling = 276, /* T_Ceiling */ 76 T_Checkhash = 277, /* T_Checkhash */ 77 T_Clockstats = 278, /* T_Clockstats */ 78 T_Cohort = 279, /* T_Cohort */ 79 T_ControlKey = 280, /* T_ControlKey */ 80 T_Crypto = 281, /* T_Crypto */ 81 T_Cryptostats = 282, /* T_Cryptostats */ 82 T_Ctl = 283, /* T_Ctl */ 83 T_Day = 284, /* T_Day */ 84 T_Default = 285, /* T_Default */ 85 T_Delrestrict = 286, /* T_Delrestrict */ 86 T_Device = 287, /* T_Device */ 87 T_Digest = 288, /* T_Digest */ 88 T_Disable = 289, /* T_Disable */ 89 T_Discard = 290, /* T_Discard */ 90 T_Dispersion = 291, /* T_Dispersion */ 91 T_Double = 292, /* T_Double */ 92 T_Driftfile = 293, /* T_Driftfile */ 93 T_Drop = 294, /* T_Drop */ 94 T_Dscp = 295, /* T_Dscp */ 95 T_Ellipsis = 296, /* T_Ellipsis */ 96 T_Enable = 297, /* T_Enable */ 97 T_End = 298, /* T_End */ 98 T_Epeer = 299, /* T_Epeer */ 99 T_False = 300, /* T_False */ 100 T_File = 301, /* T_File */ 101 T_Filegen = 302, /* T_Filegen */ 102 T_Filenum = 303, /* T_Filenum */ 103 T_Flag1 = 304, /* T_Flag1 */ 104 T_Flag2 = 305, /* T_Flag2 */ 105 T_Flag3 = 306, /* T_Flag3 */ 106 T_Flag4 = 307, /* T_Flag4 */ 107 T_Flake = 308, /* T_Flake */ 108 T_Floor = 309, /* T_Floor */ 109 T_Freq = 310, /* T_Freq */ 110 T_Fudge = 311, /* T_Fudge */ 111 T_Fuzz = 312, /* T_Fuzz */ 112 T_Host = 313, /* T_Host */ 113 T_Huffpuff = 314, /* T_Huffpuff */ 114 T_Iburst = 315, /* T_Iburst */ 115 T_Ident = 316, /* T_Ident */ 116 T_Ignore = 317, /* T_Ignore */ 117 T_Ignorehash = 318, /* T_Ignorehash */ 118 T_Incalloc = 319, /* T_Incalloc */ 119 T_Incmem = 320, /* T_Incmem */ 120 T_Initalloc = 321, /* T_Initalloc */ 121 T_Initmem = 322, /* T_Initmem */ 122 T_Includefile = 323, /* T_Includefile */ 123 T_Integer = 324, /* T_Integer */ 124 T_Interface = 325, /* T_Interface */ 125 T_Intrange = 326, /* T_Intrange */ 126 T_Io = 327, /* T_Io */ 127 T_Ippeerlimit = 328, /* T_Ippeerlimit */ 128 T_Ipv4 = 329, /* T_Ipv4 */ 129 T_Ipv4_flag = 330, /* T_Ipv4_flag */ 130 T_Ipv6 = 331, /* T_Ipv6 */ 131 T_Ipv6_flag = 332, /* T_Ipv6_flag */ 132 T_Kernel = 333, /* T_Kernel */ 133 T_Key = 334, /* T_Key */ 134 T_Keys = 335, /* T_Keys */ 135 T_Keysdir = 336, /* T_Keysdir */ 136 T_Kod = 337, /* T_Kod */ 137 T_Leapfile = 338, /* T_Leapfile */ 138 T_Leapsmearinterval = 339, /* T_Leapsmearinterval */ 139 T_Limited = 340, /* T_Limited */ 140 T_Link = 341, /* T_Link */ 141 T_Listen = 342, /* T_Listen */ 142 T_Logconfig = 343, /* T_Logconfig */ 143 T_Logfile = 344, /* T_Logfile */ 144 T_Loopstats = 345, /* T_Loopstats */ 145 T_Lowpriotrap = 346, /* T_Lowpriotrap */ 146 T_Manycastclient = 347, /* T_Manycastclient */ 147 T_Manycastserver = 348, /* T_Manycastserver */ 148 T_Mask = 349, /* T_Mask */ 149 T_Maxage = 350, /* T_Maxage */ 150 T_Maxclock = 351, /* T_Maxclock */ 151 T_Maxdepth = 352, /* T_Maxdepth */ 152 T_Maxdist = 353, /* T_Maxdist */ 153 T_Maxmem = 354, /* T_Maxmem */ 154 T_Maxpoll = 355, /* T_Maxpoll */ 155 T_Mdnstries = 356, /* T_Mdnstries */ 156 T_Mem = 357, /* T_Mem */ 157 T_Memlock = 358, /* T_Memlock */ 158 T_Minclock = 359, /* T_Minclock */ 159 T_Mindepth = 360, /* T_Mindepth */ 160 T_Mindist = 361, /* T_Mindist */ 161 T_Minimum = 362, /* T_Minimum */ 162 T_Minjitter = 363, /* T_Minjitter */ 163 T_Minpoll = 364, /* T_Minpoll */ 164 T_Minsane = 365, /* T_Minsane */ 165 T_Mode = 366, /* T_Mode */ 166 T_Mode7 = 367, /* T_Mode7 */ 167 T_Monitor = 368, /* T_Monitor */ 168 T_Month = 369, /* T_Month */ 169 T_Mru = 370, /* T_Mru */ 170 T_Mssntp = 371, /* T_Mssntp */ 171 T_Multicastclient = 372, /* T_Multicastclient */ 172 T_Nic = 373, /* T_Nic */ 173 T_Nolink = 374, /* T_Nolink */ 174 T_Nomodify = 375, /* T_Nomodify */ 175 T_Nomrulist = 376, /* T_Nomrulist */ 176 T_None = 377, /* T_None */ 177 T_Nonvolatile = 378, /* T_Nonvolatile */ 178 T_Noepeer = 379, /* T_Noepeer */ 179 T_Nopeer = 380, /* T_Nopeer */ 180 T_Noquery = 381, /* T_Noquery */ 181 T_Noselect = 382, /* T_Noselect */ 182 T_Noserve = 383, /* T_Noserve */ 183 T_Notrap = 384, /* T_Notrap */ 184 T_Notrust = 385, /* T_Notrust */ 185 T_Ntp = 386, /* T_Ntp */ 186 T_Ntpport = 387, /* T_Ntpport */ 187 T_NtpSignDsocket = 388, /* T_NtpSignDsocket */ 188 T_Orphan = 389, /* T_Orphan */ 189 T_Orphanwait = 390, /* T_Orphanwait */ 190 T_PCEdigest = 391, /* T_PCEdigest */ 191 T_Panic = 392, /* T_Panic */ 192 T_Peer = 393, /* T_Peer */ 193 T_Peerstats = 394, /* T_Peerstats */ 194 T_Phone = 395, /* T_Phone */ 195 T_Pid = 396, /* T_Pid */ 196 T_Pidfile = 397, /* T_Pidfile */ 197 T_Poll = 398, /* T_Poll */ 198 T_PollSkewList = 399, /* T_PollSkewList */ 199 T_Pool = 400, /* T_Pool */ 200 T_Port = 401, /* T_Port */ 201 T_PpsData = 402, /* T_PpsData */ 202 T_Preempt = 403, /* T_Preempt */ 203 T_Prefer = 404, /* T_Prefer */ 204 T_Protostats = 405, /* T_Protostats */ 205 T_Pw = 406, /* T_Pw */ 206 T_Randfile = 407, /* T_Randfile */ 207 T_Rawstats = 408, /* T_Rawstats */ 208 T_Refid = 409, /* T_Refid */ 209 T_Requestkey = 410, /* T_Requestkey */ 210 T_Reset = 411, /* T_Reset */ 211 T_Restrict = 412, /* T_Restrict */ 212 T_Revoke = 413, /* T_Revoke */ 213 T_Rlimit = 414, /* T_Rlimit */ 214 T_Saveconfigdir = 415, /* T_Saveconfigdir */ 215 T_Server = 416, /* T_Server */ 216 T_Serverresponse = 417, /* T_Serverresponse */ 217 T_ServerresponseFuzz = 418, /* T_ServerresponseFuzz */ 218 T_Setvar = 419, /* T_Setvar */ 219 T_Source = 420, /* T_Source */ 220 T_Stacksize = 421, /* T_Stacksize */ 221 T_Statistics = 422, /* T_Statistics */ 222 T_Stats = 423, /* T_Stats */ 223 T_Statsdir = 424, /* T_Statsdir */ 224 T_Step = 425, /* T_Step */ 225 T_Stepback = 426, /* T_Stepback */ 226 T_Stepfwd = 427, /* T_Stepfwd */ 227 T_Stepout = 428, /* T_Stepout */ 228 T_Stratum = 429, /* T_Stratum */ 229 T_String = 430, /* T_String */ 230 T_Sys = 431, /* T_Sys */ 231 T_Sysstats = 432, /* T_Sysstats */ 232 T_Tick = 433, /* T_Tick */ 233 T_Time1 = 434, /* T_Time1 */ 234 T_Time2 = 435, /* T_Time2 */ 235 T_TimeData = 436, /* T_TimeData */ 236 T_Timer = 437, /* T_Timer */ 237 T_Timingstats = 438, /* T_Timingstats */ 238 T_Tinker = 439, /* T_Tinker */ 239 T_Tos = 440, /* T_Tos */ 240 T_Trap = 441, /* T_Trap */ 241 T_True = 442, /* T_True */ 242 T_Trustedkey = 443, /* T_Trustedkey */ 243 T_Ttl = 444, /* T_Ttl */ 244 T_Type = 445, /* T_Type */ 245 T_U_int = 446, /* T_U_int */ 246 T_UEcrypto = 447, /* T_UEcrypto */ 247 T_UEcryptonak = 448, /* T_UEcryptonak */ 248 T_UEdigest = 449, /* T_UEdigest */ 249 T_Unconfig = 450, /* T_Unconfig */ 250 T_Unpeer = 451, /* T_Unpeer */ 251 T_Version = 452, /* T_Version */ 252 T_WanderThreshold = 453, /* T_WanderThreshold */ 253 T_Week = 454, /* T_Week */ 254 T_Wildcard = 455, /* T_Wildcard */ 255 T_Xleave = 456, /* T_Xleave */ 256 T_Xmtnonce = 457, /* T_Xmtnonce */ 257 T_Year = 458, /* T_Year */ 258 T_Flag = 459, /* T_Flag */ 259 T_EOC = 460, /* T_EOC */ 260 T_Simulate = 461, /* T_Simulate */ 261 T_Beep_Delay = 462, /* T_Beep_Delay */ 262 T_Sim_Duration = 463, /* T_Sim_Duration */ 263 T_Server_Offset = 464, /* T_Server_Offset */ 264 T_Duration = 465, /* T_Duration */ 265 T_Freq_Offset = 466, /* T_Freq_Offset */ 266 T_Wander = 467, /* T_Wander */ 267 T_Jitter = 468, /* T_Jitter */ 268 T_Prop_Delay = 469, /* T_Prop_Delay */ 269 T_Proc_Delay = 470 /* T_Proc_Delay */ 270 }; 271 typedef enum yytokentype yytoken_kind_t; 272 #endif 273 /* Token kinds. */ 274 #define YYEMPTY -2 275 #define YYEOF 0 276 #define YYerror 256 277 #define YYUNDEF 257 278 #define T_Abbrev 258 279 #define T_Age 259 280 #define T_All 260 281 #define T_Allan 261 282 #define T_Allpeers 262 283 #define T_Auth 263 284 #define T_Autokey 264 285 #define T_Automax 265 286 #define T_Average 266 287 #define T_Basedate 267 288 #define T_Bclient 268 289 #define T_Bcpollbstep 269 290 #define T_Beacon 270 291 #define T_Broadcast 271 292 #define T_Broadcastclient 272 293 #define T_Broadcastdelay 273 294 #define T_Burst 274 295 #define T_Calibrate 275 296 #define T_Ceiling 276 297 #define T_Checkhash 277 298 #define T_Clockstats 278 299 #define T_Cohort 279 300 #define T_ControlKey 280 301 #define T_Crypto 281 302 #define T_Cryptostats 282 303 #define T_Ctl 283 304 #define T_Day 284 305 #define T_Default 285 306 #define T_Delrestrict 286 307 #define T_Device 287 308 #define T_Digest 288 309 #define T_Disable 289 310 #define T_Discard 290 311 #define T_Dispersion 291 312 #define T_Double 292 313 #define T_Driftfile 293 314 #define T_Drop 294 315 #define T_Dscp 295 316 #define T_Ellipsis 296 317 #define T_Enable 297 318 #define T_End 298 319 #define T_Epeer 299 320 #define T_False 300 321 #define T_File 301 322 #define T_Filegen 302 323 #define T_Filenum 303 324 #define T_Flag1 304 325 #define T_Flag2 305 326 #define T_Flag3 306 327 #define T_Flag4 307 328 #define T_Flake 308 329 #define T_Floor 309 330 #define T_Freq 310 331 #define T_Fudge 311 332 #define T_Fuzz 312 333 #define T_Host 313 334 #define T_Huffpuff 314 335 #define T_Iburst 315 336 #define T_Ident 316 337 #define T_Ignore 317 338 #define T_Ignorehash 318 339 #define T_Incalloc 319 340 #define T_Incmem 320 341 #define T_Initalloc 321 342 #define T_Initmem 322 343 #define T_Includefile 323 344 #define T_Integer 324 345 #define T_Interface 325 346 #define T_Intrange 326 347 #define T_Io 327 348 #define T_Ippeerlimit 328 349 #define T_Ipv4 329 350 #define T_Ipv4_flag 330 351 #define T_Ipv6 331 352 #define T_Ipv6_flag 332 353 #define T_Kernel 333 354 #define T_Key 334 355 #define T_Keys 335 356 #define T_Keysdir 336 357 #define T_Kod 337 358 #define T_Leapfile 338 359 #define T_Leapsmearinterval 339 360 #define T_Limited 340 361 #define T_Link 341 362 #define T_Listen 342 363 #define T_Logconfig 343 364 #define T_Logfile 344 365 #define T_Loopstats 345 366 #define T_Lowpriotrap 346 367 #define T_Manycastclient 347 368 #define T_Manycastserver 348 369 #define T_Mask 349 370 #define T_Maxage 350 371 #define T_Maxclock 351 372 #define T_Maxdepth 352 373 #define T_Maxdist 353 374 #define T_Maxmem 354 375 #define T_Maxpoll 355 376 #define T_Mdnstries 356 377 #define T_Mem 357 378 #define T_Memlock 358 379 #define T_Minclock 359 380 #define T_Mindepth 360 381 #define T_Mindist 361 382 #define T_Minimum 362 383 #define T_Minjitter 363 384 #define T_Minpoll 364 385 #define T_Minsane 365 386 #define T_Mode 366 387 #define T_Mode7 367 388 #define T_Monitor 368 389 #define T_Month 369 390 #define T_Mru 370 391 #define T_Mssntp 371 392 #define T_Multicastclient 372 393 #define T_Nic 373 394 #define T_Nolink 374 395 #define T_Nomodify 375 396 #define T_Nomrulist 376 397 #define T_None 377 398 #define T_Nonvolatile 378 399 #define T_Noepeer 379 400 #define T_Nopeer 380 401 #define T_Noquery 381 402 #define T_Noselect 382 403 #define T_Noserve 383 404 #define T_Notrap 384 405 #define T_Notrust 385 406 #define T_Ntp 386 407 #define T_Ntpport 387 408 #define T_NtpSignDsocket 388 409 #define T_Orphan 389 410 #define T_Orphanwait 390 411 #define T_PCEdigest 391 412 #define T_Panic 392 413 #define T_Peer 393 414 #define T_Peerstats 394 415 #define T_Phone 395 416 #define T_Pid 396 417 #define T_Pidfile 397 418 #define T_Poll 398 419 #define T_PollSkewList 399 420 #define T_Pool 400 421 #define T_Port 401 422 #define T_PpsData 402 423 #define T_Preempt 403 424 #define T_Prefer 404 425 #define T_Protostats 405 426 #define T_Pw 406 427 #define T_Randfile 407 428 #define T_Rawstats 408 429 #define T_Refid 409 430 #define T_Requestkey 410 431 #define T_Reset 411 432 #define T_Restrict 412 433 #define T_Revoke 413 434 #define T_Rlimit 414 435 #define T_Saveconfigdir 415 436 #define T_Server 416 437 #define T_Serverresponse 417 438 #define T_ServerresponseFuzz 418 439 #define T_Setvar 419 440 #define T_Source 420 441 #define T_Stacksize 421 442 #define T_Statistics 422 443 #define T_Stats 423 444 #define T_Statsdir 424 445 #define T_Step 425 446 #define T_Stepback 426 447 #define T_Stepfwd 427 448 #define T_Stepout 428 449 #define T_Stratum 429 450 #define T_String 430 451 #define T_Sys 431 452 #define T_Sysstats 432 453 #define T_Tick 433 454 #define T_Time1 434 455 #define T_Time2 435 456 #define T_TimeData 436 457 #define T_Timer 437 458 #define T_Timingstats 438 459 #define T_Tinker 439 460 #define T_Tos 440 461 #define T_Trap 441 462 #define T_True 442 463 #define T_Trustedkey 443 464 #define T_Ttl 444 465 #define T_Type 445 466 #define T_U_int 446 467 #define T_UEcrypto 447 468 #define T_UEcryptonak 448 469 #define T_UEdigest 449 470 #define T_Unconfig 450 471 #define T_Unpeer 451 472 #define T_Version 452 473 #define T_WanderThreshold 453 474 #define T_Week 454 475 #define T_Wildcard 455 476 #define T_Xleave 456 477 #define T_Xmtnonce 457 478 #define T_Year 458 479 #define T_Flag 459 480 #define T_EOC 460 481 #define T_Simulate 461 482 #define T_Beep_Delay 462 483 #define T_Sim_Duration 463 484 #define T_Server_Offset 464 485 #define T_Duration 465 486 #define T_Freq_Offset 466 487 #define T_Wander 467 488 #define T_Jitter 468 489 #define T_Prop_Delay 469 490 #define T_Proc_Delay 470 491 492 /* Value type. */ 493 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED 494 union YYSTYPE 495 { 496 #line 52 "../../ntpd/ntp_parser.y" 497 498 char * String; 499 double Double; 500 int Integer; 501 unsigned U_int; 502 gen_fifo * Generic_fifo; 503 attr_val * Attr_val; 504 attr_val_fifo * Attr_val_fifo; 505 int_fifo * Int_fifo; 506 string_fifo * String_fifo; 507 address_node * Address_node; 508 address_fifo * Address_fifo; 509 setvar_node * Set_var; 510 server_info * Sim_server; 511 server_info_fifo * Sim_server_fifo; 512 script_info * Sim_script; 513 script_info_fifo * Sim_script_fifo; 514 515 #line 516 "ntp_parser.h" 516 517 }; 518 typedef union YYSTYPE YYSTYPE; 519 # define YYSTYPE_IS_TRIVIAL 1 520 # define YYSTYPE_IS_DECLARED 1 521 #endif 522 523 524 extern YYSTYPE yylval; 525 526 527 int yyparse (void); 528 529 530 #endif /* !YY_YY_NTP_PARSER_H_INCLUDED */ 531