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