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
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
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
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
|
#ifndef lint
static const char yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93";
#endif
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYEMPTY (-1)
#define yyclearin (yychar = YYEMPTY)
#define yyerrok (yyerrflag = 0)
#define YYRECOVERING() (yyerrflag != 0)
#define YYPREFIX "yy"
#define YYPURE 0
#line 39 "util/configparser.y"
#include "config.h"
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <assert.h>
#include "util/configyyrename.h"
#include "util/config_file.h"
#include "util/net_help.h"
int ub_c_lex(void);
void ub_c_error(const char *message);
/* these need to be global, otherwise they cannot be used inside yacc */
extern struct config_parser_state* cfg_parser;
#if 0
#define OUTYY(s) printf s /* used ONLY when debugging */
#else
#define OUTYY(s)
#endif
#line 64 "util/configparser.y"
#ifdef YYSTYPE
#undef YYSTYPE_IS_DECLARED
#define YYSTYPE_IS_DECLARED 1
#endif
#ifndef YYSTYPE_IS_DECLARED
#define YYSTYPE_IS_DECLARED 1
typedef union {
char* str;
} YYSTYPE;
#endif /* !YYSTYPE_IS_DECLARED */
#line 54 "util/configparser.c"
/* compatibility with bison */
#ifdef YYPARSE_PARAM
/* compatibility with FreeBSD */
# ifdef YYPARSE_PARAM_TYPE
# define YYPARSE_DECL() yyparse(YYPARSE_PARAM_TYPE YYPARSE_PARAM)
# else
# define YYPARSE_DECL() yyparse(void *YYPARSE_PARAM)
# endif
#else
# define YYPARSE_DECL() yyparse(void)
#endif
/* Parameters sent to lex. */
#ifdef YYLEX_PARAM
# define YYLEX_DECL() yylex(void *YYLEX_PARAM)
# define YYLEX yylex(YYLEX_PARAM)
#else
# define YYLEX_DECL() yylex(void)
# define YYLEX yylex()
#endif
/* Parameters sent to yyerror. */
#ifndef YYERROR_DECL
#define YYERROR_DECL() yyerror(const char *s)
#endif
#ifndef YYERROR_CALL
#define YYERROR_CALL(msg) yyerror(msg)
#endif
extern int YYPARSE_DECL();
#define SPACE 257
#define LETTER 258
#define NEWLINE 259
#define COMMENT 260
#define COLON 261
#define ANY 262
#define ZONESTR 263
#define STRING_ARG 264
#define VAR_SERVER 265
#define VAR_VERBOSITY 266
#define VAR_NUM_THREADS 267
#define VAR_PORT 268
#define VAR_OUTGOING_RANGE 269
#define VAR_INTERFACE 270
#define VAR_DO_IP4 271
#define VAR_DO_IP6 272
#define VAR_DO_UDP 273
#define VAR_DO_TCP 274
#define VAR_CHROOT 275
#define VAR_USERNAME 276
#define VAR_DIRECTORY 277
#define VAR_LOGFILE 278
#define VAR_PIDFILE 279
#define VAR_MSG_CACHE_SIZE 280
#define VAR_MSG_CACHE_SLABS 281
#define VAR_NUM_QUERIES_PER_THREAD 282
#define VAR_RRSET_CACHE_SIZE 283
#define VAR_RRSET_CACHE_SLABS 284
#define VAR_OUTGOING_NUM_TCP 285
#define VAR_INFRA_HOST_TTL 286
#define VAR_INFRA_LAME_TTL 287
#define VAR_INFRA_CACHE_SLABS 288
#define VAR_INFRA_CACHE_NUMHOSTS 289
#define VAR_INFRA_CACHE_LAME_SIZE 290
#define VAR_NAME 291
#define VAR_STUB_ZONE 292
#define VAR_STUB_HOST 293
#define VAR_STUB_ADDR 294
#define VAR_TARGET_FETCH_POLICY 295
#define VAR_HARDEN_SHORT_BUFSIZE 296
#define VAR_HARDEN_LARGE_QUERIES 297
#define VAR_FORWARD_ZONE 298
#define VAR_FORWARD_HOST 299
#define VAR_FORWARD_ADDR 300
#define VAR_DO_NOT_QUERY_ADDRESS 301
#define VAR_HIDE_IDENTITY 302
#define VAR_HIDE_VERSION 303
#define VAR_IDENTITY 304
#define VAR_VERSION 305
#define VAR_HARDEN_GLUE 306
#define VAR_MODULE_CONF 307
#define VAR_TRUST_ANCHOR_FILE 308
#define VAR_TRUST_ANCHOR 309
#define VAR_VAL_OVERRIDE_DATE 310
#define VAR_BOGUS_TTL 311
#define VAR_VAL_CLEAN_ADDITIONAL 312
#define VAR_VAL_PERMISSIVE_MODE 313
#define VAR_INCOMING_NUM_TCP 314
#define VAR_MSG_BUFFER_SIZE 315
#define VAR_KEY_CACHE_SIZE 316
#define VAR_KEY_CACHE_SLABS 317
#define VAR_TRUSTED_KEYS_FILE 318
#define VAR_VAL_NSEC3_KEYSIZE_ITERATIONS 319
#define VAR_USE_SYSLOG 320
#define VAR_OUTGOING_INTERFACE 321
#define VAR_ROOT_HINTS 322
#define VAR_DO_NOT_QUERY_LOCALHOST 323
#define VAR_CACHE_MAX_TTL 324
#define VAR_HARDEN_DNSSEC_STRIPPED 325
#define VAR_ACCESS_CONTROL 326
#define VAR_LOCAL_ZONE 327
#define VAR_LOCAL_DATA 328
#define VAR_INTERFACE_AUTOMATIC 329
#define VAR_STATISTICS_INTERVAL 330
#define VAR_DO_DAEMONIZE 331
#define VAR_USE_CAPS_FOR_ID 332
#define VAR_STATISTICS_CUMULATIVE 333
#define VAR_OUTGOING_PORT_PERMIT 334
#define VAR_OUTGOING_PORT_AVOID 335
#define VAR_DLV_ANCHOR_FILE 336
#define VAR_DLV_ANCHOR 337
#define VAR_NEG_CACHE_SIZE 338
#define VAR_HARDEN_REFERRAL_PATH 339
#define VAR_PRIVATE_ADDRESS 340
#define VAR_PRIVATE_DOMAIN 341
#define VAR_REMOTE_CONTROL 342
#define VAR_CONTROL_ENABLE 343
#define VAR_CONTROL_INTERFACE 344
#define VAR_CONTROL_PORT 345
#define VAR_SERVER_KEY_FILE 346
#define VAR_SERVER_CERT_FILE 347
#define VAR_CONTROL_KEY_FILE 348
#define VAR_CONTROL_CERT_FILE 349
#define VAR_EXTENDED_STATISTICS 350
#define VAR_LOCAL_DATA_PTR 351
#define VAR_JOSTLE_TIMEOUT 352
#define VAR_STUB_PRIME 353
#define VAR_UNWANTED_REPLY_THRESHOLD 354
#define VAR_LOG_TIME_ASCII 355
#define VAR_DOMAIN_INSECURE 356
#define VAR_PYTHON 357
#define VAR_PYTHON_SCRIPT 358
#define VAR_VAL_SIG_SKEW_MIN 359
#define VAR_VAL_SIG_SKEW_MAX 360
#define VAR_CACHE_MIN_TTL 361
#define VAR_VAL_LOG_LEVEL 362
#define VAR_AUTO_TRUST_ANCHOR_FILE 363
#define VAR_KEEP_MISSING 364
#define VAR_ADD_HOLDDOWN 365
#define VAR_DEL_HOLDDOWN 366
#define VAR_SO_RCVBUF 367
#define VAR_EDNS_BUFFER_SIZE 368
#define VAR_PREFETCH 369
#define VAR_PREFETCH_KEY 370
#define VAR_SO_SNDBUF 371
#define VAR_SO_REUSEPORT 372
#define VAR_HARDEN_BELOW_NXDOMAIN 373
#define VAR_IGNORE_CD_FLAG 374
#define VAR_LOG_QUERIES 375
#define VAR_TCP_UPSTREAM 376
#define VAR_SSL_UPSTREAM 377
#define VAR_SSL_SERVICE_KEY 378
#define VAR_SSL_SERVICE_PEM 379
#define VAR_SSL_PORT 380
#define VAR_FORWARD_FIRST 381
#define VAR_STUB_FIRST 382
#define VAR_MINIMAL_RESPONSES 383
#define VAR_RRSET_ROUNDROBIN 384
#define VAR_MAX_UDP_SIZE 385
#define VAR_DELAY_CLOSE 386
#define YYERRCODE 256
static const short yylhs[] = { -1,
0, 0, 1, 1, 1, 1, 1, 2, 3, 3,
12, 12, 12, 12, 12, 12, 12, 12, 12, 12,
12, 12, 12, 12, 12, 12, 12, 12, 12, 12,
12, 12, 12, 12, 12, 12, 12, 12, 12, 12,
12, 12, 12, 12, 12, 12, 12, 12, 12, 12,
12, 12, 12, 12, 12, 12, 12, 12, 12, 12,
12, 12, 12, 12, 12, 12, 12, 12, 12, 12,
12, 12, 12, 12, 12, 12, 12, 12, 12, 12,
12, 12, 12, 12, 12, 12, 12, 12, 12, 12,
12, 12, 12, 12, 12, 12, 12, 12, 12, 12,
12, 12, 12, 12, 12, 12, 12, 12, 12, 12,
12, 4, 5, 5, 114, 114, 114, 114, 114, 6,
7, 7, 120, 120, 120, 120, 13, 14, 70, 73,
82, 15, 21, 61, 16, 74, 75, 32, 54, 69,
17, 18, 19, 20, 104, 105, 106, 107, 108, 71,
60, 86, 103, 22, 23, 24, 25, 26, 62, 76,
77, 92, 48, 58, 49, 87, 42, 43, 44, 45,
96, 100, 112, 97, 55, 27, 28, 29, 84, 113,
30, 31, 33, 34, 36, 37, 35, 38, 39, 40,
46, 65, 101, 79, 72, 80, 81, 98, 99, 85,
41, 63, 66, 47, 50, 88, 89, 64, 90, 51,
52, 53, 102, 91, 59, 93, 94, 95, 56, 57,
78, 67, 68, 83, 109, 110, 111, 115, 116, 117,
119, 118, 121, 122, 123, 124, 10, 11, 11, 125,
125, 125, 125, 125, 125, 125, 126, 128, 127, 129,
130, 131, 132, 8, 9, 9, 133, 134,
};
static const short yylen[] = { 2,
0, 2, 2, 2, 2, 2, 2, 1, 2, 0,
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, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 2, 0, 1, 1, 1, 1, 1, 1,
2, 0, 1, 1, 1, 1, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 3, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 3, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 1, 2, 0, 1,
1, 1, 1, 1, 1, 1, 2, 2, 2, 2,
2, 2, 2, 1, 2, 0, 1, 2,
};
static const short yydefred[] = { 1,
0, 8, 112, 120, 237, 254, 2, 10, 114, 122,
256, 239, 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, 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, 9, 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,
0, 0, 0, 0, 0, 113, 115, 116, 117, 118,
119, 0, 0, 0, 0, 121, 123, 124, 125, 126,
0, 255, 257, 0, 0, 0, 0, 0, 0, 0,
238, 240, 241, 242, 243, 244, 245, 246, 128, 127,
132, 135, 133, 141, 142, 143, 144, 154, 155, 156,
157, 158, 176, 177, 178, 181, 182, 138, 183, 184,
187, 185, 186, 188, 189, 190, 201, 167, 168, 169,
170, 191, 204, 163, 165, 205, 210, 211, 212, 139,
175, 219, 220, 164, 215, 151, 134, 159, 202, 208,
192, 0, 0, 223, 140, 129, 150, 195, 130, 136,
137, 160, 161, 221, 194, 196, 197, 131, 224, 179,
200, 152, 166, 206, 207, 209, 214, 162, 218, 216,
217, 171, 174, 198, 199, 172, 173, 193, 213, 153,
145, 146, 147, 148, 149, 225, 226, 227, 180, 228,
229, 230, 232, 231, 233, 234, 235, 236, 258, 247,
249, 248, 250, 251, 252, 253, 203, 222,
};
static const short yydgoto[] = { 1,
7, 8, 13, 9, 14, 10, 15, 11, 16, 12,
17, 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, 226, 227, 228, 229, 230, 231, 236,
237, 238, 239, 240, 251, 252, 253, 254, 255, 256,
257, 258, 242, 243,
};
static const short yysindex[] = { 0,
-144, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, -260, -209, -202, -358, -216, -233, -232, -231,
-230, -226, -225, -224, -181, -178, -177, -176, -171, -142,
-130, -129, -128, -127, -126, -125, -124, -123, -122, -121,
-119, -118, -117, -115, -114, -113, -112, -111, -109, -108,
-107, -106, -105, -104, -103, -102, -101, -100, -99, -98,
-97, -96, -95, -94, -93, -92, -90, -89, -88, -87,
-86, -84, -83, -82, -81, -80, -79, -78, -77, -76,
-75, -74, -73, -72, -71, -70, -69, -68, -67, -65,
-64, -63, -62, -61, -60, -59, -58, -57, -56, -55,
-54, -53, -52, -50, -49, -48, -47, -46, -45, -44,
-43, -42, -41, -40, -39, -38, -37, -36, 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, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
-35, -34, -33, -32, -31, 0, 0, 0, 0, 0,
0, -30, -29, -28, -27, 0, 0, 0, 0, 0,
-26, 0, 0, -25, -24, -23, -22, -21, -20, -19,
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, -18, -17, 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,
};
static const short yyrindex[] = { 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 1, 2, 3, 4, 5, 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, 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, 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, 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, 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,
};
static const short yygindex[] = { 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, 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,
};
#define YYTABLESIZE 362
static const short yytable[] = { 241,
3, 4, 5, 6, 7, 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,
259, 260, 261, 262, 43, 44, 45, 263, 264, 265,
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, 221, 266, 222, 223, 267, 268, 269, 232, 87,
88, 89, 270, 90, 91, 92, 233, 234, 93, 94,
95, 96, 97, 98, 99, 100, 101, 102, 103, 104,
105, 106, 107, 108, 109, 110, 111, 112, 113, 114,
2, 271, 115, 116, 117, 118, 244, 245, 246, 247,
248, 249, 250, 272, 273, 274, 275, 276, 277, 278,
279, 280, 281, 224, 282, 283, 284, 3, 285, 286,
287, 288, 289, 4, 290, 291, 292, 293, 294, 295,
296, 297, 298, 299, 300, 301, 302, 303, 304, 305,
306, 307, 225, 308, 309, 310, 311, 312, 235, 313,
314, 315, 316, 317, 318, 319, 320, 321, 322, 323,
324, 325, 326, 327, 328, 329, 330, 5, 331, 332,
333, 334, 335, 336, 337, 338, 339, 340, 341, 342,
343, 344, 6, 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, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 3, 4, 5, 6, 7,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 3, 4, 5, 6, 7, 0, 3, 4,
5, 6, 7, 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, 3, 4, 5, 6, 7, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 3, 4, 5,
6, 7,
};
static const short yycheck[] = { 358,
0, 0, 0, 0, 0, 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,
264, 264, 264, 264, 295, 296, 297, 264, 264, 264,
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, 291, 264, 293, 294, 264, 264, 264, 291, 350,
351, 352, 264, 354, 355, 356, 299, 300, 359, 360,
361, 362, 363, 364, 365, 366, 367, 368, 369, 370,
371, 372, 373, 374, 375, 376, 377, 378, 379, 380,
265, 264, 383, 384, 385, 386, 343, 344, 345, 346,
347, 348, 349, 264, 264, 264, 264, 264, 264, 264,
264, 264, 264, 353, 264, 264, 264, 292, 264, 264,
264, 264, 264, 298, 264, 264, 264, 264, 264, 264,
264, 264, 264, 264, 264, 264, 264, 264, 264, 264,
264, 264, 382, 264, 264, 264, 264, 264, 381, 264,
264, 264, 264, 264, 264, 264, 264, 264, 264, 264,
264, 264, 264, 264, 264, 264, 264, 342, 264, 264,
264, 264, 264, 264, 264, 264, 264, 264, 264, 264,
264, 264, 357, 264, 264, 264, 264, 264, 264, 264,
264, 264, 264, 264, 264, 264, 264, 264, 264, 264,
264, 264, 264, 264, 264, 264, 264, 264, 264, 264,
264, 264, 264, 264, 264, 264, 264, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, 265, 265, 265, 265, 265,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, 292, 292, 292, 292, 292, -1, 298, 298,
298, 298, 298, -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, 342, 342, 342, 342, 342, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, 357, 357, 357,
357, 357,
};
#define YYFINAL 1
#ifndef YYDEBUG
#define YYDEBUG 0
#endif
#define YYMAXTOKEN 386
#if YYDEBUG
static const char *yyname[] = {
"end-of-file",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,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,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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"SPACE","LETTER","NEWLINE",
"COMMENT","COLON","ANY","ZONESTR","STRING_ARG","VAR_SERVER","VAR_VERBOSITY",
"VAR_NUM_THREADS","VAR_PORT","VAR_OUTGOING_RANGE","VAR_INTERFACE","VAR_DO_IP4",
"VAR_DO_IP6","VAR_DO_UDP","VAR_DO_TCP","VAR_CHROOT","VAR_USERNAME",
"VAR_DIRECTORY","VAR_LOGFILE","VAR_PIDFILE","VAR_MSG_CACHE_SIZE",
"VAR_MSG_CACHE_SLABS","VAR_NUM_QUERIES_PER_THREAD","VAR_RRSET_CACHE_SIZE",
"VAR_RRSET_CACHE_SLABS","VAR_OUTGOING_NUM_TCP","VAR_INFRA_HOST_TTL",
"VAR_INFRA_LAME_TTL","VAR_INFRA_CACHE_SLABS","VAR_INFRA_CACHE_NUMHOSTS",
"VAR_INFRA_CACHE_LAME_SIZE","VAR_NAME","VAR_STUB_ZONE","VAR_STUB_HOST",
"VAR_STUB_ADDR","VAR_TARGET_FETCH_POLICY","VAR_HARDEN_SHORT_BUFSIZE",
"VAR_HARDEN_LARGE_QUERIES","VAR_FORWARD_ZONE","VAR_FORWARD_HOST",
"VAR_FORWARD_ADDR","VAR_DO_NOT_QUERY_ADDRESS","VAR_HIDE_IDENTITY",
"VAR_HIDE_VERSION","VAR_IDENTITY","VAR_VERSION","VAR_HARDEN_GLUE",
"VAR_MODULE_CONF","VAR_TRUST_ANCHOR_FILE","VAR_TRUST_ANCHOR",
"VAR_VAL_OVERRIDE_DATE","VAR_BOGUS_TTL","VAR_VAL_CLEAN_ADDITIONAL",
"VAR_VAL_PERMISSIVE_MODE","VAR_INCOMING_NUM_TCP","VAR_MSG_BUFFER_SIZE",
"VAR_KEY_CACHE_SIZE","VAR_KEY_CACHE_SLABS","VAR_TRUSTED_KEYS_FILE",
"VAR_VAL_NSEC3_KEYSIZE_ITERATIONS","VAR_USE_SYSLOG","VAR_OUTGOING_INTERFACE",
"VAR_ROOT_HINTS","VAR_DO_NOT_QUERY_LOCALHOST","VAR_CACHE_MAX_TTL",
"VAR_HARDEN_DNSSEC_STRIPPED","VAR_ACCESS_CONTROL","VAR_LOCAL_ZONE",
"VAR_LOCAL_DATA","VAR_INTERFACE_AUTOMATIC","VAR_STATISTICS_INTERVAL",
"VAR_DO_DAEMONIZE","VAR_USE_CAPS_FOR_ID","VAR_STATISTICS_CUMULATIVE",
"VAR_OUTGOING_PORT_PERMIT","VAR_OUTGOING_PORT_AVOID","VAR_DLV_ANCHOR_FILE",
"VAR_DLV_ANCHOR","VAR_NEG_CACHE_SIZE","VAR_HARDEN_REFERRAL_PATH",
"VAR_PRIVATE_ADDRESS","VAR_PRIVATE_DOMAIN","VAR_REMOTE_CONTROL",
"VAR_CONTROL_ENABLE","VAR_CONTROL_INTERFACE","VAR_CONTROL_PORT",
"VAR_SERVER_KEY_FILE","VAR_SERVER_CERT_FILE","VAR_CONTROL_KEY_FILE",
"VAR_CONTROL_CERT_FILE","VAR_EXTENDED_STATISTICS","VAR_LOCAL_DATA_PTR",
"VAR_JOSTLE_TIMEOUT","VAR_STUB_PRIME","VAR_UNWANTED_REPLY_THRESHOLD",
"VAR_LOG_TIME_ASCII","VAR_DOMAIN_INSECURE","VAR_PYTHON","VAR_PYTHON_SCRIPT",
"VAR_VAL_SIG_SKEW_MIN","VAR_VAL_SIG_SKEW_MAX","VAR_CACHE_MIN_TTL",
"VAR_VAL_LOG_LEVEL","VAR_AUTO_TRUST_ANCHOR_FILE","VAR_KEEP_MISSING",
"VAR_ADD_HOLDDOWN","VAR_DEL_HOLDDOWN","VAR_SO_RCVBUF","VAR_EDNS_BUFFER_SIZE",
"VAR_PREFETCH","VAR_PREFETCH_KEY","VAR_SO_SNDBUF","VAR_SO_REUSEPORT",
"VAR_HARDEN_BELOW_NXDOMAIN","VAR_IGNORE_CD_FLAG","VAR_LOG_QUERIES",
"VAR_TCP_UPSTREAM","VAR_SSL_UPSTREAM","VAR_SSL_SERVICE_KEY",
"VAR_SSL_SERVICE_PEM","VAR_SSL_PORT","VAR_FORWARD_FIRST","VAR_STUB_FIRST",
"VAR_MINIMAL_RESPONSES","VAR_RRSET_ROUNDROBIN","VAR_MAX_UDP_SIZE",
"VAR_DELAY_CLOSE",
};
static const char *yyrule[] = {
"$accept : toplevelvars",
"toplevelvars :",
"toplevelvars : toplevelvars toplevelvar",
"toplevelvar : serverstart contents_server",
"toplevelvar : stubstart contents_stub",
"toplevelvar : forwardstart contents_forward",
"toplevelvar : pythonstart contents_py",
"toplevelvar : rcstart contents_rc",
"serverstart : VAR_SERVER",
"contents_server : contents_server content_server",
"contents_server :",
"content_server : server_num_threads",
"content_server : server_verbosity",
"content_server : server_port",
"content_server : server_outgoing_range",
"content_server : server_do_ip4",
"content_server : server_do_ip6",
"content_server : server_do_udp",
"content_server : server_do_tcp",
"content_server : server_interface",
"content_server : server_chroot",
"content_server : server_username",
"content_server : server_directory",
"content_server : server_logfile",
"content_server : server_pidfile",
"content_server : server_msg_cache_size",
"content_server : server_msg_cache_slabs",
"content_server : server_num_queries_per_thread",
"content_server : server_rrset_cache_size",
"content_server : server_rrset_cache_slabs",
"content_server : server_outgoing_num_tcp",
"content_server : server_infra_host_ttl",
"content_server : server_infra_lame_ttl",
"content_server : server_infra_cache_slabs",
"content_server : server_infra_cache_numhosts",
"content_server : server_infra_cache_lame_size",
"content_server : server_target_fetch_policy",
"content_server : server_harden_short_bufsize",
"content_server : server_harden_large_queries",
"content_server : server_do_not_query_address",
"content_server : server_hide_identity",
"content_server : server_hide_version",
"content_server : server_identity",
"content_server : server_version",
"content_server : server_harden_glue",
"content_server : server_module_conf",
"content_server : server_trust_anchor_file",
"content_server : server_trust_anchor",
"content_server : server_val_override_date",
"content_server : server_bogus_ttl",
"content_server : server_val_clean_additional",
"content_server : server_val_permissive_mode",
"content_server : server_incoming_num_tcp",
"content_server : server_msg_buffer_size",
"content_server : server_key_cache_size",
"content_server : server_key_cache_slabs",
"content_server : server_trusted_keys_file",
"content_server : server_val_nsec3_keysize_iterations",
"content_server : server_use_syslog",
"content_server : server_outgoing_interface",
"content_server : server_root_hints",
"content_server : server_do_not_query_localhost",
"content_server : server_cache_max_ttl",
"content_server : server_harden_dnssec_stripped",
"content_server : server_access_control",
"content_server : server_local_zone",
"content_server : server_local_data",
"content_server : server_interface_automatic",
"content_server : server_statistics_interval",
"content_server : server_do_daemonize",
"content_server : server_use_caps_for_id",
"content_server : server_statistics_cumulative",
"content_server : server_outgoing_port_permit",
"content_server : server_outgoing_port_avoid",
"content_server : server_dlv_anchor_file",
"content_server : server_dlv_anchor",
"content_server : server_neg_cache_size",
"content_server : server_harden_referral_path",
"content_server : server_private_address",
"content_server : server_private_domain",
"content_server : server_extended_statistics",
"content_server : server_local_data_ptr",
"content_server : server_jostle_timeout",
"content_server : server_unwanted_reply_threshold",
"content_server : server_log_time_ascii",
"content_server : server_domain_insecure",
"content_server : server_val_sig_skew_min",
"content_server : server_val_sig_skew_max",
"content_server : server_cache_min_ttl",
"content_server : server_val_log_level",
"content_server : server_auto_trust_anchor_file",
"content_server : server_add_holddown",
"content_server : server_del_holddown",
"content_server : server_keep_missing",
"content_server : server_so_rcvbuf",
"content_server : server_edns_buffer_size",
"content_server : server_prefetch",
"content_server : server_prefetch_key",
"content_server : server_so_sndbuf",
"content_server : server_harden_below_nxdomain",
"content_server : server_ignore_cd_flag",
"content_server : server_log_queries",
"content_server : server_tcp_upstream",
"content_server : server_ssl_upstream",
"content_server : server_ssl_service_key",
"content_server : server_ssl_service_pem",
"content_server : server_ssl_port",
"content_server : server_minimal_responses",
"content_server : server_rrset_roundrobin",
"content_server : server_max_udp_size",
"content_server : server_so_reuseport",
"content_server : server_delay_close",
"stubstart : VAR_STUB_ZONE",
"contents_stub : contents_stub content_stub",
"contents_stub :",
"content_stub : stub_name",
"content_stub : stub_host",
"content_stub : stub_addr",
"content_stub : stub_prime",
"content_stub : stub_first",
"forwardstart : VAR_FORWARD_ZONE",
"contents_forward : contents_forward content_forward",
"contents_forward :",
"content_forward : forward_name",
"content_forward : forward_host",
"content_forward : forward_addr",
"content_forward : forward_first",
"server_num_threads : VAR_NUM_THREADS STRING_ARG",
"server_verbosity : VAR_VERBOSITY STRING_ARG",
"server_statistics_interval : VAR_STATISTICS_INTERVAL STRING_ARG",
"server_statistics_cumulative : VAR_STATISTICS_CUMULATIVE STRING_ARG",
"server_extended_statistics : VAR_EXTENDED_STATISTICS STRING_ARG",
"server_port : VAR_PORT STRING_ARG",
"server_interface : VAR_INTERFACE STRING_ARG",
"server_outgoing_interface : VAR_OUTGOING_INTERFACE STRING_ARG",
"server_outgoing_range : VAR_OUTGOING_RANGE STRING_ARG",
"server_outgoing_port_permit : VAR_OUTGOING_PORT_PERMIT STRING_ARG",
"server_outgoing_port_avoid : VAR_OUTGOING_PORT_AVOID STRING_ARG",
"server_outgoing_num_tcp : VAR_OUTGOING_NUM_TCP STRING_ARG",
"server_incoming_num_tcp : VAR_INCOMING_NUM_TCP STRING_ARG",
"server_interface_automatic : VAR_INTERFACE_AUTOMATIC STRING_ARG",
"server_do_ip4 : VAR_DO_IP4 STRING_ARG",
"server_do_ip6 : VAR_DO_IP6 STRING_ARG",
"server_do_udp : VAR_DO_UDP STRING_ARG",
"server_do_tcp : VAR_DO_TCP STRING_ARG",
"server_tcp_upstream : VAR_TCP_UPSTREAM STRING_ARG",
"server_ssl_upstream : VAR_SSL_UPSTREAM STRING_ARG",
"server_ssl_service_key : VAR_SSL_SERVICE_KEY STRING_ARG",
"server_ssl_service_pem : VAR_SSL_SERVICE_PEM STRING_ARG",
"server_ssl_port : VAR_SSL_PORT STRING_ARG",
"server_do_daemonize : VAR_DO_DAEMONIZE STRING_ARG",
"server_use_syslog : VAR_USE_SYSLOG STRING_ARG",
"server_log_time_ascii : VAR_LOG_TIME_ASCII STRING_ARG",
"server_log_queries : VAR_LOG_QUERIES STRING_ARG",
"server_chroot : VAR_CHROOT STRING_ARG",
"server_username : VAR_USERNAME STRING_ARG",
"server_directory : VAR_DIRECTORY STRING_ARG",
"server_logfile : VAR_LOGFILE STRING_ARG",
"server_pidfile : VAR_PIDFILE STRING_ARG",
"server_root_hints : VAR_ROOT_HINTS STRING_ARG",
"server_dlv_anchor_file : VAR_DLV_ANCHOR_FILE STRING_ARG",
"server_dlv_anchor : VAR_DLV_ANCHOR STRING_ARG",
"server_auto_trust_anchor_file : VAR_AUTO_TRUST_ANCHOR_FILE STRING_ARG",
"server_trust_anchor_file : VAR_TRUST_ANCHOR_FILE STRING_ARG",
"server_trusted_keys_file : VAR_TRUSTED_KEYS_FILE STRING_ARG",
"server_trust_anchor : VAR_TRUST_ANCHOR STRING_ARG",
"server_domain_insecure : VAR_DOMAIN_INSECURE STRING_ARG",
"server_hide_identity : VAR_HIDE_IDENTITY STRING_ARG",
"server_hide_version : VAR_HIDE_VERSION STRING_ARG",
"server_identity : VAR_IDENTITY STRING_ARG",
"server_version : VAR_VERSION STRING_ARG",
"server_so_rcvbuf : VAR_SO_RCVBUF STRING_ARG",
"server_so_sndbuf : VAR_SO_SNDBUF STRING_ARG",
"server_so_reuseport : VAR_SO_REUSEPORT STRING_ARG",
"server_edns_buffer_size : VAR_EDNS_BUFFER_SIZE STRING_ARG",
"server_msg_buffer_size : VAR_MSG_BUFFER_SIZE STRING_ARG",
"server_msg_cache_size : VAR_MSG_CACHE_SIZE STRING_ARG",
"server_msg_cache_slabs : VAR_MSG_CACHE_SLABS STRING_ARG",
"server_num_queries_per_thread : VAR_NUM_QUERIES_PER_THREAD STRING_ARG",
"server_jostle_timeout : VAR_JOSTLE_TIMEOUT STRING_ARG",
"server_delay_close : VAR_DELAY_CLOSE STRING_ARG",
"server_rrset_cache_size : VAR_RRSET_CACHE_SIZE STRING_ARG",
"server_rrset_cache_slabs : VAR_RRSET_CACHE_SLABS STRING_ARG",
"server_infra_host_ttl : VAR_INFRA_HOST_TTL STRING_ARG",
"server_infra_lame_ttl : VAR_INFRA_LAME_TTL STRING_ARG",
"server_infra_cache_numhosts : VAR_INFRA_CACHE_NUMHOSTS STRING_ARG",
"server_infra_cache_lame_size : VAR_INFRA_CACHE_LAME_SIZE STRING_ARG",
"server_infra_cache_slabs : VAR_INFRA_CACHE_SLABS STRING_ARG",
"server_target_fetch_policy : VAR_TARGET_FETCH_POLICY STRING_ARG",
"server_harden_short_bufsize : VAR_HARDEN_SHORT_BUFSIZE STRING_ARG",
"server_harden_large_queries : VAR_HARDEN_LARGE_QUERIES STRING_ARG",
"server_harden_glue : VAR_HARDEN_GLUE STRING_ARG",
"server_harden_dnssec_stripped : VAR_HARDEN_DNSSEC_STRIPPED STRING_ARG",
"server_harden_below_nxdomain : VAR_HARDEN_BELOW_NXDOMAIN STRING_ARG",
"server_harden_referral_path : VAR_HARDEN_REFERRAL_PATH STRING_ARG",
"server_use_caps_for_id : VAR_USE_CAPS_FOR_ID STRING_ARG",
"server_private_address : VAR_PRIVATE_ADDRESS STRING_ARG",
"server_private_domain : VAR_PRIVATE_DOMAIN STRING_ARG",
"server_prefetch : VAR_PREFETCH STRING_ARG",
"server_prefetch_key : VAR_PREFETCH_KEY STRING_ARG",
"server_unwanted_reply_threshold : VAR_UNWANTED_REPLY_THRESHOLD STRING_ARG",
"server_do_not_query_address : VAR_DO_NOT_QUERY_ADDRESS STRING_ARG",
"server_do_not_query_localhost : VAR_DO_NOT_QUERY_LOCALHOST STRING_ARG",
"server_access_control : VAR_ACCESS_CONTROL STRING_ARG STRING_ARG",
"server_module_conf : VAR_MODULE_CONF STRING_ARG",
"server_val_override_date : VAR_VAL_OVERRIDE_DATE STRING_ARG",
"server_val_sig_skew_min : VAR_VAL_SIG_SKEW_MIN STRING_ARG",
"server_val_sig_skew_max : VAR_VAL_SIG_SKEW_MAX STRING_ARG",
"server_cache_max_ttl : VAR_CACHE_MAX_TTL STRING_ARG",
"server_cache_min_ttl : VAR_CACHE_MIN_TTL STRING_ARG",
"server_bogus_ttl : VAR_BOGUS_TTL STRING_ARG",
"server_val_clean_additional : VAR_VAL_CLEAN_ADDITIONAL STRING_ARG",
"server_val_permissive_mode : VAR_VAL_PERMISSIVE_MODE STRING_ARG",
"server_ignore_cd_flag : VAR_IGNORE_CD_FLAG STRING_ARG",
"server_val_log_level : VAR_VAL_LOG_LEVEL STRING_ARG",
"server_val_nsec3_keysize_iterations : VAR_VAL_NSEC3_KEYSIZE_ITERATIONS STRING_ARG",
"server_add_holddown : VAR_ADD_HOLDDOWN STRING_ARG",
"server_del_holddown : VAR_DEL_HOLDDOWN STRING_ARG",
"server_keep_missing : VAR_KEEP_MISSING STRING_ARG",
"server_key_cache_size : VAR_KEY_CACHE_SIZE STRING_ARG",
"server_key_cache_slabs : VAR_KEY_CACHE_SLABS STRING_ARG",
"server_neg_cache_size : VAR_NEG_CACHE_SIZE STRING_ARG",
"server_local_zone : VAR_LOCAL_ZONE STRING_ARG STRING_ARG",
"server_local_data : VAR_LOCAL_DATA STRING_ARG",
"server_local_data_ptr : VAR_LOCAL_DATA_PTR STRING_ARG",
"server_minimal_responses : VAR_MINIMAL_RESPONSES STRING_ARG",
"server_rrset_roundrobin : VAR_RRSET_ROUNDROBIN STRING_ARG",
"server_max_udp_size : VAR_MAX_UDP_SIZE STRING_ARG",
"stub_name : VAR_NAME STRING_ARG",
"stub_host : VAR_STUB_HOST STRING_ARG",
"stub_addr : VAR_STUB_ADDR STRING_ARG",
"stub_first : VAR_STUB_FIRST STRING_ARG",
"stub_prime : VAR_STUB_PRIME STRING_ARG",
"forward_name : VAR_NAME STRING_ARG",
"forward_host : VAR_FORWARD_HOST STRING_ARG",
"forward_addr : VAR_FORWARD_ADDR STRING_ARG",
"forward_first : VAR_FORWARD_FIRST STRING_ARG",
"rcstart : VAR_REMOTE_CONTROL",
"contents_rc : contents_rc content_rc",
"contents_rc :",
"content_rc : rc_control_enable",
"content_rc : rc_control_interface",
"content_rc : rc_control_port",
"content_rc : rc_server_key_file",
"content_rc : rc_server_cert_file",
"content_rc : rc_control_key_file",
"content_rc : rc_control_cert_file",
"rc_control_enable : VAR_CONTROL_ENABLE STRING_ARG",
"rc_control_port : VAR_CONTROL_PORT STRING_ARG",
"rc_control_interface : VAR_CONTROL_INTERFACE STRING_ARG",
"rc_server_key_file : VAR_SERVER_KEY_FILE STRING_ARG",
"rc_server_cert_file : VAR_SERVER_CERT_FILE STRING_ARG",
"rc_control_key_file : VAR_CONTROL_KEY_FILE STRING_ARG",
"rc_control_cert_file : VAR_CONTROL_CERT_FILE STRING_ARG",
"pythonstart : VAR_PYTHON",
"contents_py : contents_py content_py",
"contents_py :",
"content_py : py_script",
"py_script : VAR_PYTHON_SCRIPT STRING_ARG",
};
#endif
int yydebug;
int yynerrs;
int yyerrflag;
int yychar;
YYSTYPE yyval;
YYSTYPE yylval;
/* define the initial stack-sizes */
#ifdef YYSTACKSIZE
#undef YYMAXDEPTH
#define YYMAXDEPTH YYSTACKSIZE
#else
#ifdef YYMAXDEPTH
#define YYSTACKSIZE YYMAXDEPTH
#else
#define YYSTACKSIZE 500
#define YYMAXDEPTH 500
#endif
#endif
#define YYINITSTACKSIZE 500
typedef struct {
unsigned stacksize;
short *s_base;
short *s_mark;
short *s_last;
YYSTYPE *l_base;
YYSTYPE *l_mark;
} YYSTACKDATA;
/* variables for the parser stack */
static YYSTACKDATA yystack;
#line 1308 "util/configparser.y"
/* parse helper routines could be here */
#line 859 "util/configparser.c"
#if YYDEBUG
#include <stdio.h> /* needed for printf */
#endif
#include <stdlib.h> /* needed for malloc, etc */
#include <string.h> /* needed for memset */
/* allocate initial stack or double stack size, up to YYMAXDEPTH */
static int yygrowstack(YYSTACKDATA *data)
{
int i;
unsigned newsize;
short *newss;
YYSTYPE *newvs;
if ((newsize = data->stacksize) == 0)
newsize = YYINITSTACKSIZE;
else if (newsize >= YYMAXDEPTH)
return -1;
else if ((newsize *= 2) > YYMAXDEPTH)
newsize = YYMAXDEPTH;
i = (int) (data->s_mark - data->s_base);
newss = (short *)realloc(data->s_base, newsize * sizeof(*newss));
if (newss == 0)
return -1;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
if (newvs == 0)
return -1;
data->l_base = newvs;
data->l_mark = newvs + i;
data->stacksize = newsize;
data->s_last = data->s_base + newsize - 1;
return 0;
}
#if YYPURE || defined(YY_NO_LEAKS)
static void yyfreestack(YYSTACKDATA *data)
{
free(data->s_base);
free(data->l_base);
memset(data, 0, sizeof(*data));
}
#else
#define yyfreestack(data) /* nothing */
#endif
#define YYABORT goto yyabort
#define YYREJECT goto yyabort
#define YYACCEPT goto yyaccept
#define YYERROR goto yyerrlab
int
YYPARSE_DECL()
{
int yym, yyn, yystate;
#if YYDEBUG
const char *yys;
if ((yys = getenv("YYDEBUG")) != 0)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
yydebug = yyn - '0';
}
#endif
yynerrs = 0;
yyerrflag = 0;
yychar = YYEMPTY;
yystate = 0;
#if YYPURE
memset(&yystack, 0, sizeof(yystack));
#endif
if (yystack.s_base == NULL && yygrowstack(&yystack)) goto yyoverflow;
yystack.s_mark = yystack.s_base;
yystack.l_mark = yystack.l_base;
yystate = 0;
*yystack.s_mark = 0;
yyloop:
if ((yyn = yydefred[yystate]) != 0) goto yyreduce;
if (yychar < 0)
{
if ((yychar = YYLEX) < 0) yychar = 0;
#if YYDEBUG
if (yydebug)
{
yys = 0;
if (yychar <= YYMAXTOKEN) yys = yyname[yychar];
if (!yys) yys = "illegal-symbol";
printf("%sdebug: state %d, reading %d (%s)\n",
YYPREFIX, yystate, yychar, yys);
}
#endif
}
if ((yyn = yysindex[yystate]) && (yyn += yychar) >= 0 &&
yyn <= YYTABLESIZE && yycheck[yyn] == yychar)
{
#if YYDEBUG
if (yydebug)
printf("%sdebug: state %d, shifting to state %d\n",
YYPREFIX, yystate, yytable[yyn]);
#endif
if (yystack.s_mark >= yystack.s_last && yygrowstack(&yystack))
{
goto yyoverflow;
}
yystate = yytable[yyn];
*++yystack.s_mark = yytable[yyn];
*++yystack.l_mark = yylval;
yychar = YYEMPTY;
if (yyerrflag > 0) --yyerrflag;
goto yyloop;
}
if ((yyn = yyrindex[yystate]) && (yyn += yychar) >= 0 &&
yyn <= YYTABLESIZE && yycheck[yyn] == yychar)
{
yyn = yytable[yyn];
goto yyreduce;
}
if (yyerrflag) goto yyinrecovery;
yyerror("syntax error");
goto yyerrlab;
yyerrlab:
++yynerrs;
yyinrecovery:
if (yyerrflag < 3)
{
yyerrflag = 3;
for (;;)
{
if ((yyn = yysindex[*yystack.s_mark]) && (yyn += YYERRCODE) >= 0 &&
yyn <= YYTABLESIZE && yycheck[yyn] == YYERRCODE)
{
#if YYDEBUG
if (yydebug)
printf("%sdebug: state %d, error recovery shifting\
to state %d\n", YYPREFIX, *yystack.s_mark, yytable[yyn]);
#endif
if (yystack.s_mark >= yystack.s_last && yygrowstack(&yystack))
{
goto yyoverflow;
}
yystate = yytable[yyn];
*++yystack.s_mark = yytable[yyn];
*++yystack.l_mark = yylval;
goto yyloop;
}
else
{
#if YYDEBUG
if (yydebug)
printf("%sdebug: error recovery discarding state %d\n",
YYPREFIX, *yystack.s_mark);
#endif
if (yystack.s_mark <= yystack.s_base) goto yyabort;
--yystack.s_mark;
--yystack.l_mark;
}
}
}
else
{
if (yychar == 0) goto yyabort;
#if YYDEBUG
if (yydebug)
{
yys = 0;
if (yychar <= YYMAXTOKEN) yys = yyname[yychar];
if (!yys) yys = "illegal-symbol";
printf("%sdebug: state %d, error recovery discards token %d (%s)\n",
YYPREFIX, yystate, yychar, yys);
}
#endif
yychar = YYEMPTY;
goto yyloop;
}
yyreduce:
#if YYDEBUG
if (yydebug)
printf("%sdebug: state %d, reducing by rule %d (%s)\n",
YYPREFIX, yystate, yyn, yyrule[yyn]);
#endif
yym = yylen[yyn];
if (yym)
yyval = yystack.l_mark[1-yym];
else
memset(&yyval, 0, sizeof yyval);
switch (yyn)
{
case 8:
#line 119 "util/configparser.y"
{
OUTYY(("\nP(server:)\n"));
}
break;
case 112:
#line 169 "util/configparser.y"
{
struct config_stub* s;
OUTYY(("\nP(stub_zone:)\n"));
s = (struct config_stub*)calloc(1, sizeof(struct config_stub));
if(s) {
s->next = cfg_parser->cfg->stubs;
cfg_parser->cfg->stubs = s;
} else
yyerror("out of memory");
}
break;
case 120:
#line 185 "util/configparser.y"
{
struct config_stub* s;
OUTYY(("\nP(forward_zone:)\n"));
s = (struct config_stub*)calloc(1, sizeof(struct config_stub));
if(s) {
s->next = cfg_parser->cfg->forwards;
cfg_parser->cfg->forwards = s;
} else
yyerror("out of memory");
}
break;
case 127:
#line 201 "util/configparser.y"
{
OUTYY(("P(server_num_threads:%s)\n", yystack.l_mark[0].str));
if(atoi(yystack.l_mark[0].str) == 0 && strcmp(yystack.l_mark[0].str, "0") != 0)
yyerror("number expected");
else cfg_parser->cfg->num_threads = atoi(yystack.l_mark[0].str);
free(yystack.l_mark[0].str);
}
break;
case 128:
#line 210 "util/configparser.y"
{
OUTYY(("P(server_verbosity:%s)\n", yystack.l_mark[0].str));
if(atoi(yystack.l_mark[0].str) == 0 && strcmp(yystack.l_mark[0].str, "0") != 0)
yyerror("number expected");
else cfg_parser->cfg->verbosity = atoi(yystack.l_mark[0].str);
free(yystack.l_mark[0].str);
}
break;
case 129:
#line 219 "util/configparser.y"
{
OUTYY(("P(server_statistics_interval:%s)\n", yystack.l_mark[0].str));
if(strcmp(yystack.l_mark[0].str, "") == 0 || strcmp(yystack.l_mark[0].str, "0") == 0)
cfg_parser->cfg->stat_interval = 0;
else if(atoi(yystack.l_mark[0].str) == 0)
yyerror("number expected");
else cfg_parser->cfg->stat_interval = atoi(yystack.l_mark[0].str);
free(yystack.l_mark[0].str);
}
break;
case 130:
#line 230 "util/configparser.y"
{
OUTYY(("P(server_statistics_cumulative:%s)\n", yystack.l_mark[0].str));
if(strcmp(yystack.l_mark[0].str, "yes") != 0 && strcmp(yystack.l_mark[0].str, "no") != 0)
yyerror("expected yes or no.");
else cfg_parser->cfg->stat_cumulative = (strcmp(yystack.l_mark[0].str, "yes")==0);
free(yystack.l_mark[0].str);
}
break;
case 131:
#line 239 "util/configparser.y"
{
OUTYY(("P(server_extended_statistics:%s)\n", yystack.l_mark[0].str));
if(strcmp(yystack.l_mark[0].str, "yes") != 0 && strcmp(yystack.l_mark[0].str, "no") != 0)
yyerror("expected yes or no.");
else cfg_parser->cfg->stat_extended = (strcmp(yystack.l_mark[0].str, "yes")==0);
free(yystack.l_mark[0].str);
}
break;
case 132:
#line 248 "util/configparser.y"
{
OUTYY(("P(server_port:%s)\n", yystack.l_mark[0].str));
if(atoi(yystack.l_mark[0].str) == 0)
yyerror("port number expected");
else cfg_parser->cfg->port = atoi(yystack.l_mark[0].str);
free(yystack.l_mark[0].str);
}
break;
case 133:
#line 257 "util/configparser.y"
{
OUTYY(("P(server_interface:%s)\n", yystack.l_mark[0].str));
if(cfg_parser->cfg->num_ifs == 0)
cfg_parser->cfg->ifs = calloc(1, sizeof(char*));
else cfg_parser->cfg->ifs = realloc(cfg_parser->cfg->ifs,
(cfg_parser->cfg->num_ifs+1)*sizeof(char*));
if(!cfg_parser->cfg->ifs)
yyerror("out of memory");
else
cfg_parser->cfg->ifs[cfg_parser->cfg->num_ifs++] = yystack.l_mark[0].str;
}
break;
case 134:
#line 270 "util/configparser.y"
{
OUTYY(("P(server_outgoing_interface:%s)\n", yystack.l_mark[0].str));
if(cfg_parser->cfg->num_out_ifs == 0)
cfg_parser->cfg->out_ifs = calloc(1, sizeof(char*));
else cfg_parser->cfg->out_ifs = realloc(
cfg_parser->cfg->out_ifs,
(cfg_parser->cfg->num_out_ifs+1)*sizeof(char*));
if(!cfg_parser->cfg->out_ifs)
yyerror("out of memory");
else
cfg_parser->cfg->out_ifs[
cfg_parser->cfg->num_out_ifs++] = yystack.l_mark[0].str;
}
break;
case 135:
#line 285 "util/configparser.y"
{
OUTYY(("P(server_outgoing_range:%s)\n", yystack.l_mark[0].str));
if(atoi(yystack.l_mark[0].str) == 0)
yyerror("number expected");
else cfg_parser->cfg->outgoing_num_ports = atoi(yystack.l_mark[0].str);
free(yystack.l_mark[0].str);
}
break;
case 136:
#line 294 "util/configparser.y"
{
OUTYY(("P(server_outgoing_port_permit:%s)\n", yystack.l_mark[0].str));
if(!cfg_mark_ports(yystack.l_mark[0].str, 1,
cfg_parser->cfg->outgoing_avail_ports, 65536))
yyerror("port number or range (\"low-high\") expected");
free(yystack.l_mark[0].str);
}
break;
case 137:
#line 303 "util/configparser.y"
{
OUTYY(("P(server_outgoing_port_avoid:%s)\n", yystack.l_mark[0].str));
if(!cfg_mark_ports(yystack.l_mark[0].str, 0,
cfg_parser->cfg->outgoing_avail_ports, 65536))
yyerror("port number or range (\"low-high\") expected");
free(yystack.l_mark[0].str);
}
break;
case 138:
#line 312 "util/configparser.y"
{
OUTYY(("P(server_outgoing_num_tcp:%s)\n", yystack.l_mark[0].str));
if(atoi(yystack.l_mark[0].str) == 0 && strcmp(yystack.l_mark[0].str, "0") != 0)
yyerror("number expected");
else cfg_parser->cfg->outgoing_num_tcp = atoi(yystack.l_mark[0].str);
free(yystack.l_mark[0].str);
}
break;
case 139:
#line 321 "util/configparser.y"
{
OUTYY(("P(server_incoming_num_tcp:%s)\n", yystack.l_mark[0].str));
if(atoi(yystack.l_mark[0].str) == 0 && strcmp(yystack.l_mark[0].str, "0") != 0)
yyerror("number expected");
else cfg_parser->cfg->incoming_num_tcp = atoi(yystack.l_mark[0].str);
free(yystack.l_mark[0].str);
}
break;
case 140:
#line 330 "util/configparser.y"
{
OUTYY(("P(server_interface_automatic:%s)\n", yystack.l_mark[0].str));
if(strcmp(yystack.l_mark[0].str, "yes") != 0 && strcmp(yystack.l_mark[0].str, "no") != 0)
yyerror("expected yes or no.");
else cfg_parser->cfg->if_automatic = (strcmp(yystack.l_mark[0].str, "yes")==0);
free(yystack.l_mark[0].str);
}
break;
case 141:
#line 339 "util/configparser.y"
{
OUTYY(("P(server_do_ip4:%s)\n", yystack.l_mark[0].str));
if(strcmp(yystack.l_mark[0].str, "yes") != 0 && strcmp(yystack.l_mark[0].str, "no") != 0)
yyerror("expected yes or no.");
else cfg_parser->cfg->do_ip4 = (strcmp(yystack.l_mark[0].str, "yes")==0);
free(yystack.l_mark[0].str);
}
break;
case 142:
#line 348 "util/configparser.y"
{
OUTYY(("P(server_do_ip6:%s)\n", yystack.l_mark[0].str));
if(strcmp(yystack.l_mark[0].str, "yes") != 0 && strcmp(yystack.l_mark[0].str, "no") != 0)
yyerror("expected yes or no.");
else cfg_parser->cfg->do_ip6 = (strcmp(yystack.l_mark[0].str, "yes")==0);
free(yystack.l_mark[0].str);
}
break;
case 143:
#line 357 "util/configparser.y"
{
OUTYY(("P(server_do_udp:%s)\n", yystack.l_mark[0].str));
if(strcmp(yystack.l_mark[0].str, "yes") != 0 && strcmp(yystack.l_mark[0].str, "no") != 0)
yyerror("expected yes or no.");
else cfg_parser->cfg->do_udp = (strcmp(yystack.l_mark[0].str, "yes")==0);
free(yystack.l_mark[0].str);
}
break;
case 144:
#line 366 "util/configparser.y"
{
OUTYY(("P(server_do_tcp:%s)\n", yystack.l_mark[0].str));
if(strcmp(yystack.l_mark[0].str, "yes") != 0 && strcmp(yystack.l_mark[0].str, "no") != 0)
yyerror("expected yes or no.");
else cfg_parser->cfg->do_tcp = (strcmp(yystack.l_mark[0].str, "yes")==0);
free(yystack.l_mark[0].str);
}
break;
case 145:
#line 375 "util/configparser.y"
{
OUTYY(("P(server_tcp_upstream:%s)\n", yystack.l_mark[0].str));
if(strcmp(yystack.l_mark[0].str, "yes") != 0 && strcmp(yystack.l_mark[0].str, "no") != 0)
yyerror("expected yes or no.");
else cfg_parser->cfg->tcp_upstream = (strcmp(yystack.l_mark[0].str, "yes")==0);
free(yystack.l_mark[0].str);
}
break;
case 146:
#line 384 "util/configparser.y"
{
OUTYY(("P(server_ssl_upstream:%s)\n", yystack.l_mark[0].str));
if(strcmp(yystack.l_mark[0].str, "yes") != 0 && strcmp(yystack.l_mark[0].str, "no") != 0)
yyerror("expected yes or no.");
else cfg_parser->cfg->ssl_upstream = (strcmp(yystack.l_mark[0].str, "yes")==0);
free(yystack.l_mark[0].str);
}
break;
case 147:
#line 393 "util/configparser.y"
{
OUTYY(("P(server_ssl_service_key:%s)\n", yystack.l_mark[0].str));
free(cfg_parser->cfg->ssl_service_key);
cfg_parser->cfg->ssl_service_key = yystack.l_mark[0].str;
}
break;
case 148:
#line 400 "util/configparser.y"
{
OUTYY(("P(server_ssl_service_pem:%s)\n", yystack.l_mark[0].str));
free(cfg_parser->cfg->ssl_service_pem);
cfg_parser->cfg->ssl_service_pem = yystack.l_mark[0].str;
}
break;
case 149:
#line 407 "util/configparser.y"
{
OUTYY(("P(server_ssl_port:%s)\n", yystack.l_mark[0].str));
if(atoi(yystack.l_mark[0].str) == 0)
yyerror("port number expected");
else cfg_parser->cfg->ssl_port = atoi(yystack.l_mark[0].str);
free(yystack.l_mark[0].str);
}
break;
case 150:
#line 416 "util/configparser.y"
{
OUTYY(("P(server_do_daemonize:%s)\n", yystack.l_mark[0].str));
if(strcmp(yystack.l_mark[0].str, "yes") != 0 && strcmp(yystack.l_mark[0].str, "no") != 0)
yyerror("expected yes or no.");
else cfg_parser->cfg->do_daemonize = (strcmp(yystack.l_mark[0].str, "yes")==0);
free(yystack.l_mark[0].str);
}
break;
case 151:
#line 425 "util/configparser.y"
{
OUTYY(("P(server_use_syslog:%s)\n", yystack.l_mark[0].str));
if(strcmp(yystack.l_mark[0].str, "yes") != 0 && strcmp(yystack.l_mark[0].str, "no") != 0)
yyerror("expected yes or no.");
else cfg_parser->cfg->use_syslog = (strcmp(yystack.l_mark[0].str, "yes")==0);
#if !defined(HAVE_SYSLOG_H) && !defined(UB_ON_WINDOWS)
if(strcmp(yystack.l_mark[0].str, "yes") == 0)
yyerror("no syslog services are available. "
"(reconfigure and compile to add)");
#endif
free(yystack.l_mark[0].str);
}
break;
case 152:
#line 439 "util/configparser.y"
{
OUTYY(("P(server_log_time_ascii:%s)\n", yystack.l_mark[0].str));
if(strcmp(yystack.l_mark[0].str, "yes") != 0 && strcmp(yystack.l_mark[0].str, "no") != 0)
yyerror("expected yes or no.");
else cfg_parser->cfg->log_time_ascii = (strcmp(yystack.l_mark[0].str, "yes")==0);
free(yystack.l_mark[0].str);
}
break;
case 153:
#line 448 "util/configparser.y"
{
OUTYY(("P(server_log_queries:%s)\n", yystack.l_mark[0].str));
if(strcmp(yystack.l_mark[0].str, "yes") != 0 && strcmp(yystack.l_mark[0].str, "no") != 0)
yyerror("expected yes or no.");
else cfg_parser->cfg->log_queries = (strcmp(yystack.l_mark[0].str, "yes")==0);
free(yystack.l_mark[0].str);
}
break;
case 154:
#line 457 "util/configparser.y"
{
OUTYY(("P(server_chroot:%s)\n", yystack.l_mark[0].str));
free(cfg_parser->cfg->chrootdir);
cfg_parser->cfg->chrootdir = yystack.l_mark[0].str;
}
break;
case 155:
#line 464 "util/configparser.y"
{
OUTYY(("P(server_username:%s)\n", yystack.l_mark[0].str));
free(cfg_parser->cfg->username);
cfg_parser->cfg->username = yystack.l_mark[0].str;
}
break;
case 156:
#line 471 "util/configparser.y"
{
OUTYY(("P(server_directory:%s)\n", yystack.l_mark[0].str));
free(cfg_parser->cfg->directory);
cfg_parser->cfg->directory = yystack.l_mark[0].str;
}
break;
case 157:
#line 478 "util/configparser.y"
{
OUTYY(("P(server_logfile:%s)\n", yystack.l_mark[0].str));
free(cfg_parser->cfg->logfile);
cfg_parser->cfg->logfile = yystack.l_mark[0].str;
cfg_parser->cfg->use_syslog = 0;
}
break;
case 158:
#line 486 "util/configparser.y"
{
OUTYY(("P(server_pidfile:%s)\n", yystack.l_mark[0].str));
free(cfg_parser->cfg->pidfile);
cfg_parser->cfg->pidfile = yystack.l_mark[0].str;
}
break;
case 159:
#line 493 "util/configparser.y"
{
OUTYY(("P(server_root_hints:%s)\n", yystack.l_mark[0].str));
if(!cfg_strlist_insert(&cfg_parser->cfg->root_hints, yystack.l_mark[0].str))
yyerror("out of memory");
}
break;
case 160:
#line 500 "util/configparser.y"
{
OUTYY(("P(server_dlv_anchor_file:%s)\n", yystack.l_mark[0].str));
free(cfg_parser->cfg->dlv_anchor_file);
cfg_parser->cfg->dlv_anchor_file = yystack.l_mark[0].str;
}
break;
case 161:
#line 507 "util/configparser.y"
{
OUTYY(("P(server_dlv_anchor:%s)\n", yystack.l_mark[0].str));
if(!cfg_strlist_insert(&cfg_parser->cfg->dlv_anchor_list, yystack.l_mark[0].str))
yyerror("out of memory");
}
break;
case 162:
#line 514 "util/configparser.y"
{
OUTYY(("P(server_auto_trust_anchor_file:%s)\n", yystack.l_mark[0].str));
if(!cfg_strlist_insert(&cfg_parser->cfg->
auto_trust_anchor_file_list, yystack.l_mark[0].str))
yyerror("out of memory");
}
break;
case 163:
#line 522 "util/configparser.y"
{
OUTYY(("P(server_trust_anchor_file:%s)\n", yystack.l_mark[0].str));
if(!cfg_strlist_insert(&cfg_parser->cfg->
trust_anchor_file_list, yystack.l_mark[0].str))
yyerror("out of memory");
}
break;
case 164:
#line 530 "util/configparser.y"
{
OUTYY(("P(server_trusted_keys_file:%s)\n", yystack.l_mark[0].str));
if(!cfg_strlist_insert(&cfg_parser->cfg->
trusted_keys_file_list, yystack.l_mark[0].str))
yyerror("out of memory");
}
break;
case 165:
#line 538 "util/configparser.y"
{
OUTYY(("P(server_trust_anchor:%s)\n", yystack.l_mark[0].str));
if(!cfg_strlist_insert(&cfg_parser->cfg->trust_anchor_list, yystack.l_mark[0].str))
yyerror("out of memory");
}
break;
case 166:
#line 545 "util/configparser.y"
{
OUTYY(("P(server_domain_insecure:%s)\n", yystack.l_mark[0].str));
if(!cfg_strlist_insert(&cfg_parser->cfg->domain_insecure, yystack.l_mark[0].str))
yyerror("out of memory");
}
break;
case 167:
#line 552 "util/configparser.y"
{
OUTYY(("P(server_hide_identity:%s)\n", yystack.l_mark[0].str));
if(strcmp(yystack.l_mark[0].str, "yes") != 0 && strcmp(yystack.l_mark[0].str, "no") != 0)
yyerror("expected yes or no.");
else cfg_parser->cfg->hide_identity = (strcmp(yystack.l_mark[0].str, "yes")==0);
free(yystack.l_mark[0].str);
}
break;
case 168:
#line 561 "util/configparser.y"
{
OUTYY(("P(server_hide_version:%s)\n", yystack.l_mark[0].str));
if(strcmp(yystack.l_mark[0].str, "yes") != 0 && strcmp(yystack.l_mark[0].str, "no") != 0)
yyerror("expected yes or no.");
else cfg_parser->cfg->hide_version = (strcmp(yystack.l_mark[0].str, "yes")==0);
free(yystack.l_mark[0].str);
}
break;
case 169:
#line 570 "util/configparser.y"
{
OUTYY(("P(server_identity:%s)\n", yystack.l_mark[0].str));
free(cfg_parser->cfg->identity);
cfg_parser->cfg->identity = yystack.l_mark[0].str;
}
break;
case 170:
#line 577 "util/configparser.y"
{
OUTYY(("P(server_version:%s)\n", yystack.l_mark[0].str));
free(cfg_parser->cfg->version);
cfg_parser->cfg->version = yystack.l_mark[0].str;
}
break;
case 171:
#line 584 "util/configparser.y"
{
OUTYY(("P(server_so_rcvbuf:%s)\n", yystack.l_mark[0].str));
if(!cfg_parse_memsize(yystack.l_mark[0].str, &cfg_parser->cfg->so_rcvbuf))
yyerror("buffer size expected");
free(yystack.l_mark[0].str);
}
break;
case 172:
#line 592 "util/configparser.y"
{
OUTYY(("P(server_so_sndbuf:%s)\n", yystack.l_mark[0].str));
if(!cfg_parse_memsize(yystack.l_mark[0].str, &cfg_parser->cfg->so_sndbuf))
yyerror("buffer size expected");
free(yystack.l_mark[0].str);
}
break;
case 173:
#line 600 "util/configparser.y"
{
OUTYY(("P(server_so_reuseport:%s)\n", yystack.l_mark[0].str));
if(strcmp(yystack.l_mark[0].str, "yes") != 0 && strcmp(yystack.l_mark[0].str, "no") != 0)
yyerror("expected yes or no.");
else cfg_parser->cfg->so_reuseport =
(strcmp(yystack.l_mark[0].str, "yes")==0);
free(yystack.l_mark[0].str);
}
break;
case 174:
#line 610 "util/configparser.y"
{
OUTYY(("P(server_edns_buffer_size:%s)\n", yystack.l_mark[0].str));
if(atoi(yystack.l_mark[0].str) == 0)
yyerror("number expected");
else if (atoi(yystack.l_mark[0].str) < 12)
yyerror("edns buffer size too small");
else if (atoi(yystack.l_mark[0].str) > 65535)
cfg_parser->cfg->edns_buffer_size = 65535;
else cfg_parser->cfg->edns_buffer_size = atoi(yystack.l_mark[0].str);
free(yystack.l_mark[0].str);
}
break;
case 175:
#line 623 "util/configparser.y"
{
OUTYY(("P(server_msg_buffer_size:%s)\n", yystack.l_mark[0].str));
if(atoi(yystack.l_mark[0].str) == 0)
yyerror("number expected");
else if (atoi(yystack.l_mark[0].str) < 4096)
yyerror("message buffer size too small (use 4096)");
else cfg_parser->cfg->msg_buffer_size = atoi(yystack.l_mark[0].str);
free(yystack.l_mark[0].str);
}
break;
case 176:
#line 634 "util/configparser.y"
{
OUTYY(("P(server_msg_cache_size:%s)\n", yystack.l_mark[0].str));
if(!cfg_parse_memsize(yystack.l_mark[0].str, &cfg_parser->cfg->msg_cache_size))
yyerror("memory size expected");
free(yystack.l_mark[0].str);
}
break;
case 177:
#line 642 "util/configparser.y"
{
OUTYY(("P(server_msg_cache_slabs:%s)\n", yystack.l_mark[0].str));
if(atoi(yystack.l_mark[0].str) == 0)
yyerror("number expected");
else {
cfg_parser->cfg->msg_cache_slabs = atoi(yystack.l_mark[0].str);
if(!is_pow2(cfg_parser->cfg->msg_cache_slabs))
yyerror("must be a power of 2");
}
free(yystack.l_mark[0].str);
}
break;
case 178:
#line 655 "util/configparser.y"
{
OUTYY(("P(server_num_queries_per_thread:%s)\n", yystack.l_mark[0].str));
if(atoi(yystack.l_mark[0].str) == 0)
yyerror("number expected");
else cfg_parser->cfg->num_queries_per_thread = atoi(yystack.l_mark[0].str);
free(yystack.l_mark[0].str);
}
break;
case 179:
#line 664 "util/configparser.y"
{
OUTYY(("P(server_jostle_timeout:%s)\n", yystack.l_mark[0].str));
if(atoi(yystack.l_mark[0].str) == 0 && strcmp(yystack.l_mark[0].str, "0") != 0)
yyerror("number expected");
else cfg_parser->cfg->jostle_time = atoi(yystack.l_mark[0].str);
free(yystack.l_mark[0].str);
}
break;
case 180:
#line 673 "util/configparser.y"
{
OUTYY(("P(server_delay_close:%s)\n", yystack.l_mark[0].str));
if(atoi(yystack.l_mark[0].str) == 0 && strcmp(yystack.l_mark[0].str, "0") != 0)
yyerror("number expected");
else cfg_parser->cfg->delay_close = atoi(yystack.l_mark[0].str);
free(yystack.l_mark[0].str);
}
break;
case 181:
#line 682 "util/configparser.y"
{
OUTYY(("P(server_rrset_cache_size:%s)\n", yystack.l_mark[0].str));
if(!cfg_parse_memsize(yystack.l_mark[0].str, &cfg_parser->cfg->rrset_cache_size))
yyerror("memory size expected");
free(yystack.l_mark[0].str);
}
break;
case 182:
#line 690 "util/configparser.y"
{
OUTYY(("P(server_rrset_cache_slabs:%s)\n", yystack.l_mark[0].str));
if(atoi(yystack.l_mark[0].str) == 0)
yyerror("number expected");
else {
cfg_parser->cfg->rrset_cache_slabs = atoi(yystack.l_mark[0].str);
if(!is_pow2(cfg_parser->cfg->rrset_cache_slabs))
yyerror("must be a power of 2");
}
free(yystack.l_mark[0].str);
}
break;
case 183:
#line 703 "util/configparser.y"
{
OUTYY(("P(server_infra_host_ttl:%s)\n", yystack.l_mark[0].str));
if(atoi(yystack.l_mark[0].str) == 0 && strcmp(yystack.l_mark[0].str, "0") != 0)
yyerror("number expected");
else cfg_parser->cfg->host_ttl = atoi(yystack.l_mark[0].str);
free(yystack.l_mark[0].str);
}
break;
case 184:
#line 712 "util/configparser.y"
{
OUTYY(("P(server_infra_lame_ttl:%s)\n", yystack.l_mark[0].str));
verbose(VERB_DETAIL, "ignored infra-lame-ttl: %s (option "
"removed, use infra-host-ttl)", yystack.l_mark[0].str);
free(yystack.l_mark[0].str);
}
break;
case 185:
#line 720 "util/configparser.y"
{
OUTYY(("P(server_infra_cache_numhosts:%s)\n", yystack.l_mark[0].str));
if(atoi(yystack.l_mark[0].str) == 0)
yyerror("number expected");
else cfg_parser->cfg->infra_cache_numhosts = atoi(yystack.l_mark[0].str);
free(yystack.l_mark[0].str);
}
break;
case 186:
#line 729 "util/configparser.y"
{
OUTYY(("P(server_infra_cache_lame_size:%s)\n", yystack.l_mark[0].str));
verbose(VERB_DETAIL, "ignored infra-cache-lame-size: %s "
"(option removed, use infra-cache-numhosts)", yystack.l_mark[0].str);
free(yystack.l_mark[0].str);
}
break;
case 187:
#line 737 "util/configparser.y"
{
OUTYY(("P(server_infra_cache_slabs:%s)\n", yystack.l_mark[0].str));
if(atoi(yystack.l_mark[0].str) == 0)
yyerror("number expected");
else {
cfg_parser->cfg->infra_cache_slabs = atoi(yystack.l_mark[0].str);
if(!is_pow2(cfg_parser->cfg->infra_cache_slabs))
yyerror("must be a power of 2");
}
free(yystack.l_mark[0].str);
}
break;
case 188:
#line 750 "util/configparser.y"
{
OUTYY(("P(server_target_fetch_policy:%s)\n", yystack.l_mark[0].str));
free(cfg_parser->cfg->target_fetch_policy);
cfg_parser->cfg->target_fetch_policy = yystack.l_mark[0].str;
}
break;
case 189:
#line 757 "util/configparser.y"
{
OUTYY(("P(server_harden_short_bufsize:%s)\n", yystack.l_mark[0].str));
if(strcmp(yystack.l_mark[0].str, "yes") != 0 && strcmp(yystack.l_mark[0].str, "no") != 0)
yyerror("expected yes or no.");
else cfg_parser->cfg->harden_short_bufsize =
(strcmp(yystack.l_mark[0].str, "yes")==0);
free(yystack.l_mark[0].str);
}
break;
case 190:
#line 767 "util/configparser.y"
{
OUTYY(("P(server_harden_large_queries:%s)\n", yystack.l_mark[0].str));
if(strcmp(yystack.l_mark[0].str, "yes") != 0 && strcmp(yystack.l_mark[0].str, "no") != 0)
yyerror("expected yes or no.");
else cfg_parser->cfg->harden_large_queries =
(strcmp(yystack.l_mark[0].str, "yes")==0);
free(yystack.l_mark[0].str);
}
break;
case 191:
#line 777 "util/configparser.y"
{
OUTYY(("P(server_harden_glue:%s)\n", yystack.l_mark[0].str));
if(strcmp(yystack.l_mark[0].str, "yes") != 0 && strcmp(yystack.l_mark[0].str, "no") != 0)
yyerror("expected yes or no.");
else cfg_parser->cfg->harden_glue =
(strcmp(yystack.l_mark[0].str, "yes")==0);
free(yystack.l_mark[0].str);
}
break;
case 192:
#line 787 "util/configparser.y"
{
OUTYY(("P(server_harden_dnssec_stripped:%s)\n", yystack.l_mark[0].str));
if(strcmp(yystack.l_mark[0].str, "yes") != 0 && strcmp(yystack.l_mark[0].str, "no") != 0)
yyerror("expected yes or no.");
else cfg_parser->cfg->harden_dnssec_stripped =
(strcmp(yystack.l_mark[0].str, "yes")==0);
free(yystack.l_mark[0].str);
}
break;
case 193:
#line 797 "util/configparser.y"
{
OUTYY(("P(server_harden_below_nxdomain:%s)\n", yystack.l_mark[0].str));
if(strcmp(yystack.l_mark[0].str, "yes") != 0 && strcmp(yystack.l_mark[0].str, "no") != 0)
yyerror("expected yes or no.");
else cfg_parser->cfg->harden_below_nxdomain =
(strcmp(yystack.l_mark[0].str, "yes")==0);
free(yystack.l_mark[0].str);
}
break;
case 194:
#line 807 "util/configparser.y"
{
OUTYY(("P(server_harden_referral_path:%s)\n", yystack.l_mark[0].str));
if(strcmp(yystack.l_mark[0].str, "yes") != 0 && strcmp(yystack.l_mark[0].str, "no") != 0)
yyerror("expected yes or no.");
else cfg_parser->cfg->harden_referral_path =
(strcmp(yystack.l_mark[0].str, "yes")==0);
free(yystack.l_mark[0].str);
}
break;
case 195:
#line 817 "util/configparser.y"
{
OUTYY(("P(server_use_caps_for_id:%s)\n", yystack.l_mark[0].str));
if(strcmp(yystack.l_mark[0].str, "yes") != 0 && strcmp(yystack.l_mark[0].str, "no") != 0)
yyerror("expected yes or no.");
else cfg_parser->cfg->use_caps_bits_for_id =
(strcmp(yystack.l_mark[0].str, "yes")==0);
free(yystack.l_mark[0].str);
}
break;
case 196:
#line 827 "util/configparser.y"
{
OUTYY(("P(server_private_address:%s)\n", yystack.l_mark[0].str));
if(!cfg_strlist_insert(&cfg_parser->cfg->private_address, yystack.l_mark[0].str))
yyerror("out of memory");
}
break;
case 197:
#line 834 "util/configparser.y"
{
OUTYY(("P(server_private_domain:%s)\n", yystack.l_mark[0].str));
if(!cfg_strlist_insert(&cfg_parser->cfg->private_domain, yystack.l_mark[0].str))
yyerror("out of memory");
}
break;
case 198:
#line 841 "util/configparser.y"
{
OUTYY(("P(server_prefetch:%s)\n", yystack.l_mark[0].str));
if(strcmp(yystack.l_mark[0].str, "yes") != 0 && strcmp(yystack.l_mark[0].str, "no") != 0)
yyerror("expected yes or no.");
else cfg_parser->cfg->prefetch = (strcmp(yystack.l_mark[0].str, "yes")==0);
free(yystack.l_mark[0].str);
}
break;
case 199:
#line 850 "util/configparser.y"
{
OUTYY(("P(server_prefetch_key:%s)\n", yystack.l_mark[0].str));
if(strcmp(yystack.l_mark[0].str, "yes") != 0 && strcmp(yystack.l_mark[0].str, "no") != 0)
yyerror("expected yes or no.");
else cfg_parser->cfg->prefetch_key = (strcmp(yystack.l_mark[0].str, "yes")==0);
free(yystack.l_mark[0].str);
}
break;
case 200:
#line 859 "util/configparser.y"
{
OUTYY(("P(server_unwanted_reply_threshold:%s)\n", yystack.l_mark[0].str));
if(atoi(yystack.l_mark[0].str) == 0 && strcmp(yystack.l_mark[0].str, "0") != 0)
yyerror("number expected");
else cfg_parser->cfg->unwanted_threshold = atoi(yystack.l_mark[0].str);
free(yystack.l_mark[0].str);
}
break;
case 201:
#line 868 "util/configparser.y"
{
OUTYY(("P(server_do_not_query_address:%s)\n", yystack.l_mark[0].str));
if(!cfg_strlist_insert(&cfg_parser->cfg->donotqueryaddrs, yystack.l_mark[0].str))
yyerror("out of memory");
}
break;
case 202:
#line 875 "util/configparser.y"
{
OUTYY(("P(server_do_not_query_localhost:%s)\n", yystack.l_mark[0].str));
if(strcmp(yystack.l_mark[0].str, "yes") != 0 && strcmp(yystack.l_mark[0].str, "no") != 0)
yyerror("expected yes or no.");
else cfg_parser->cfg->donotquery_localhost =
(strcmp(yystack.l_mark[0].str, "yes")==0);
free(yystack.l_mark[0].str);
}
break;
case 203:
#line 885 "util/configparser.y"
{
OUTYY(("P(server_access_control:%s %s)\n", yystack.l_mark[-1].str, yystack.l_mark[0].str));
if(strcmp(yystack.l_mark[0].str, "deny")!=0 && strcmp(yystack.l_mark[0].str, "refuse")!=0 &&
strcmp(yystack.l_mark[0].str, "deny_non_local")!=0 &&
strcmp(yystack.l_mark[0].str, "refuse_non_local")!=0 &&
strcmp(yystack.l_mark[0].str, "allow")!=0 &&
strcmp(yystack.l_mark[0].str, "allow_snoop")!=0) {
yyerror("expected deny, refuse, deny_non_local, "
"refuse_non_local, allow or allow_snoop "
"in access control action");
} else {
if(!cfg_str2list_insert(&cfg_parser->cfg->acls, yystack.l_mark[-1].str, yystack.l_mark[0].str))
fatal_exit("out of memory adding acl");
}
}
break;
case 204:
#line 902 "util/configparser.y"
{
OUTYY(("P(server_module_conf:%s)\n", yystack.l_mark[0].str));
free(cfg_parser->cfg->module_conf);
cfg_parser->cfg->module_conf = yystack.l_mark[0].str;
}
break;
case 205:
#line 909 "util/configparser.y"
{
OUTYY(("P(server_val_override_date:%s)\n", yystack.l_mark[0].str));
if(strlen(yystack.l_mark[0].str) == 0 || strcmp(yystack.l_mark[0].str, "0") == 0) {
cfg_parser->cfg->val_date_override = 0;
} else if(strlen(yystack.l_mark[0].str) == 14) {
cfg_parser->cfg->val_date_override =
cfg_convert_timeval(yystack.l_mark[0].str);
if(!cfg_parser->cfg->val_date_override)
yyerror("bad date/time specification");
} else {
if(atoi(yystack.l_mark[0].str) == 0)
yyerror("number expected");
cfg_parser->cfg->val_date_override = atoi(yystack.l_mark[0].str);
}
free(yystack.l_mark[0].str);
}
break;
case 206:
#line 927 "util/configparser.y"
{
OUTYY(("P(server_val_sig_skew_min:%s)\n", yystack.l_mark[0].str));
if(strlen(yystack.l_mark[0].str) == 0 || strcmp(yystack.l_mark[0].str, "0") == 0) {
cfg_parser->cfg->val_sig_skew_min = 0;
} else {
cfg_parser->cfg->val_sig_skew_min = atoi(yystack.l_mark[0].str);
if(!cfg_parser->cfg->val_sig_skew_min)
yyerror("number expected");
}
free(yystack.l_mark[0].str);
}
break;
case 207:
#line 940 "util/configparser.y"
{
OUTYY(("P(server_val_sig_skew_max:%s)\n", yystack.l_mark[0].str));
if(strlen(yystack.l_mark[0].str) == 0 || strcmp(yystack.l_mark[0].str, "0") == 0) {
cfg_parser->cfg->val_sig_skew_max = 0;
} else {
cfg_parser->cfg->val_sig_skew_max = atoi(yystack.l_mark[0].str);
if(!cfg_parser->cfg->val_sig_skew_max)
yyerror("number expected");
}
free(yystack.l_mark[0].str);
}
break;
case 208:
#line 953 "util/configparser.y"
{
OUTYY(("P(server_cache_max_ttl:%s)\n", yystack.l_mark[0].str));
if(atoi(yystack.l_mark[0].str) == 0 && strcmp(yystack.l_mark[0].str, "0") != 0)
yyerror("number expected");
else cfg_parser->cfg->max_ttl = atoi(yystack.l_mark[0].str);
free(yystack.l_mark[0].str);
}
break;
case 209:
#line 962 "util/configparser.y"
{
OUTYY(("P(server_cache_min_ttl:%s)\n", yystack.l_mark[0].str));
if(atoi(yystack.l_mark[0].str) == 0 && strcmp(yystack.l_mark[0].str, "0") != 0)
yyerror("number expected");
else cfg_parser->cfg->min_ttl = atoi(yystack.l_mark[0].str);
free(yystack.l_mark[0].str);
}
break;
case 210:
#line 971 "util/configparser.y"
{
OUTYY(("P(server_bogus_ttl:%s)\n", yystack.l_mark[0].str));
if(atoi(yystack.l_mark[0].str) == 0 && strcmp(yystack.l_mark[0].str, "0") != 0)
yyerror("number expected");
else cfg_parser->cfg->bogus_ttl = atoi(yystack.l_mark[0].str);
free(yystack.l_mark[0].str);
}
break;
case 211:
#line 980 "util/configparser.y"
{
OUTYY(("P(server_val_clean_additional:%s)\n", yystack.l_mark[0].str));
if(strcmp(yystack.l_mark[0].str, "yes") != 0 && strcmp(yystack.l_mark[0].str, "no") != 0)
yyerror("expected yes or no.");
else cfg_parser->cfg->val_clean_additional =
(strcmp(yystack.l_mark[0].str, "yes")==0);
free(yystack.l_mark[0].str);
}
break;
case 212:
#line 990 "util/configparser.y"
{
OUTYY(("P(server_val_permissive_mode:%s)\n", yystack.l_mark[0].str));
if(strcmp(yystack.l_mark[0].str, "yes") != 0 && strcmp(yystack.l_mark[0].str, "no") != 0)
yyerror("expected yes or no.");
else cfg_parser->cfg->val_permissive_mode =
(strcmp(yystack.l_mark[0].str, "yes")==0);
free(yystack.l_mark[0].str);
}
break;
case 213:
#line 1000 "util/configparser.y"
{
OUTYY(("P(server_ignore_cd_flag:%s)\n", yystack.l_mark[0].str));
if(strcmp(yystack.l_mark[0].str, "yes") != 0 && strcmp(yystack.l_mark[0].str, "no") != 0)
yyerror("expected yes or no.");
else cfg_parser->cfg->ignore_cd = (strcmp(yystack.l_mark[0].str, "yes")==0);
free(yystack.l_mark[0].str);
}
break;
case 214:
#line 1009 "util/configparser.y"
{
OUTYY(("P(server_val_log_level:%s)\n", yystack.l_mark[0].str));
if(atoi(yystack.l_mark[0].str) == 0 && strcmp(yystack.l_mark[0].str, "0") != 0)
yyerror("number expected");
else cfg_parser->cfg->val_log_level = atoi(yystack.l_mark[0].str);
free(yystack.l_mark[0].str);
}
break;
case 215:
#line 1018 "util/configparser.y"
{
OUTYY(("P(server_val_nsec3_keysize_iterations:%s)\n", yystack.l_mark[0].str));
free(cfg_parser->cfg->val_nsec3_key_iterations);
cfg_parser->cfg->val_nsec3_key_iterations = yystack.l_mark[0].str;
}
break;
case 216:
#line 1025 "util/configparser.y"
{
OUTYY(("P(server_add_holddown:%s)\n", yystack.l_mark[0].str));
if(atoi(yystack.l_mark[0].str) == 0 && strcmp(yystack.l_mark[0].str, "0") != 0)
yyerror("number expected");
else cfg_parser->cfg->add_holddown = atoi(yystack.l_mark[0].str);
free(yystack.l_mark[0].str);
}
break;
case 217:
#line 1034 "util/configparser.y"
{
OUTYY(("P(server_del_holddown:%s)\n", yystack.l_mark[0].str));
if(atoi(yystack.l_mark[0].str) == 0 && strcmp(yystack.l_mark[0].str, "0") != 0)
yyerror("number expected");
else cfg_parser->cfg->del_holddown = atoi(yystack.l_mark[0].str);
free(yystack.l_mark[0].str);
}
break;
case 218:
#line 1043 "util/configparser.y"
{
OUTYY(("P(server_keep_missing:%s)\n", yystack.l_mark[0].str));
if(atoi(yystack.l_mark[0].str) == 0 && strcmp(yystack.l_mark[0].str, "0") != 0)
yyerror("number expected");
else cfg_parser->cfg->keep_missing = atoi(yystack.l_mark[0].str);
free(yystack.l_mark[0].str);
}
break;
case 219:
#line 1052 "util/configparser.y"
{
OUTYY(("P(server_key_cache_size:%s)\n", yystack.l_mark[0].str));
if(!cfg_parse_memsize(yystack.l_mark[0].str, &cfg_parser->cfg->key_cache_size))
yyerror("memory size expected");
free(yystack.l_mark[0].str);
}
break;
case 220:
#line 1060 "util/configparser.y"
{
OUTYY(("P(server_key_cache_slabs:%s)\n", yystack.l_mark[0].str));
if(atoi(yystack.l_mark[0].str) == 0)
yyerror("number expected");
else {
cfg_parser->cfg->key_cache_slabs = atoi(yystack.l_mark[0].str);
if(!is_pow2(cfg_parser->cfg->key_cache_slabs))
yyerror("must be a power of 2");
}
free(yystack.l_mark[0].str);
}
break;
case 221:
#line 1073 "util/configparser.y"
{
OUTYY(("P(server_neg_cache_size:%s)\n", yystack.l_mark[0].str));
if(!cfg_parse_memsize(yystack.l_mark[0].str, &cfg_parser->cfg->neg_cache_size))
yyerror("memory size expected");
free(yystack.l_mark[0].str);
}
break;
case 222:
#line 1081 "util/configparser.y"
{
OUTYY(("P(server_local_zone:%s %s)\n", yystack.l_mark[-1].str, yystack.l_mark[0].str));
if(strcmp(yystack.l_mark[0].str, "static")!=0 && strcmp(yystack.l_mark[0].str, "deny")!=0 &&
strcmp(yystack.l_mark[0].str, "refuse")!=0 && strcmp(yystack.l_mark[0].str, "redirect")!=0 &&
strcmp(yystack.l_mark[0].str, "transparent")!=0 && strcmp(yystack.l_mark[0].str, "nodefault")!=0
&& strcmp(yystack.l_mark[0].str, "typetransparent")!=0)
yyerror("local-zone type: expected static, deny, "
"refuse, redirect, transparent, "
"typetransparent or nodefault");
else if(strcmp(yystack.l_mark[0].str, "nodefault")==0) {
if(!cfg_strlist_insert(&cfg_parser->cfg->
local_zones_nodefault, yystack.l_mark[-1].str))
fatal_exit("out of memory adding local-zone");
free(yystack.l_mark[0].str);
} else {
if(!cfg_str2list_insert(&cfg_parser->cfg->local_zones,
yystack.l_mark[-1].str, yystack.l_mark[0].str))
fatal_exit("out of memory adding local-zone");
}
}
break;
case 223:
#line 1103 "util/configparser.y"
{
OUTYY(("P(server_local_data:%s)\n", yystack.l_mark[0].str));
if(!cfg_strlist_insert(&cfg_parser->cfg->local_data, yystack.l_mark[0].str))
fatal_exit("out of memory adding local-data");
}
break;
case 224:
#line 1110 "util/configparser.y"
{
char* ptr;
OUTYY(("P(server_local_data_ptr:%s)\n", yystack.l_mark[0].str));
ptr = cfg_ptr_reverse(yystack.l_mark[0].str);
free(yystack.l_mark[0].str);
if(ptr) {
if(!cfg_strlist_insert(&cfg_parser->cfg->
local_data, ptr))
fatal_exit("out of memory adding local-data");
} else {
yyerror("local-data-ptr could not be reversed");
}
}
break;
case 225:
#line 1125 "util/configparser.y"
{
OUTYY(("P(server_minimal_responses:%s)\n", yystack.l_mark[0].str));
if(strcmp(yystack.l_mark[0].str, "yes") != 0 && strcmp(yystack.l_mark[0].str, "no") != 0)
yyerror("expected yes or no.");
else cfg_parser->cfg->minimal_responses =
(strcmp(yystack.l_mark[0].str, "yes")==0);
free(yystack.l_mark[0].str);
}
break;
case 226:
#line 1135 "util/configparser.y"
{
OUTYY(("P(server_rrset_roundrobin:%s)\n", yystack.l_mark[0].str));
if(strcmp(yystack.l_mark[0].str, "yes") != 0 && strcmp(yystack.l_mark[0].str, "no") != 0)
yyerror("expected yes or no.");
else cfg_parser->cfg->rrset_roundrobin =
(strcmp(yystack.l_mark[0].str, "yes")==0);
free(yystack.l_mark[0].str);
}
break;
case 227:
#line 1145 "util/configparser.y"
{
OUTYY(("P(server_max_udp_size:%s)\n", yystack.l_mark[0].str));
cfg_parser->cfg->max_udp_size = atoi(yystack.l_mark[0].str);
free(yystack.l_mark[0].str);
}
break;
case 228:
#line 1152 "util/configparser.y"
{
OUTYY(("P(name:%s)\n", yystack.l_mark[0].str));
if(cfg_parser->cfg->stubs->name)
yyerror("stub name override, there must be one name "
"for one stub-zone");
free(cfg_parser->cfg->stubs->name);
cfg_parser->cfg->stubs->name = yystack.l_mark[0].str;
}
break;
case 229:
#line 1162 "util/configparser.y"
{
OUTYY(("P(stub-host:%s)\n", yystack.l_mark[0].str));
if(!cfg_strlist_insert(&cfg_parser->cfg->stubs->hosts, yystack.l_mark[0].str))
yyerror("out of memory");
}
break;
case 230:
#line 1169 "util/configparser.y"
{
OUTYY(("P(stub-addr:%s)\n", yystack.l_mark[0].str));
if(!cfg_strlist_insert(&cfg_parser->cfg->stubs->addrs, yystack.l_mark[0].str))
yyerror("out of memory");
}
break;
case 231:
#line 1176 "util/configparser.y"
{
OUTYY(("P(stub-first:%s)\n", yystack.l_mark[0].str));
if(strcmp(yystack.l_mark[0].str, "yes") != 0 && strcmp(yystack.l_mark[0].str, "no") != 0)
yyerror("expected yes or no.");
else cfg_parser->cfg->stubs->isfirst=(strcmp(yystack.l_mark[0].str, "yes")==0);
free(yystack.l_mark[0].str);
}
break;
case 232:
#line 1185 "util/configparser.y"
{
OUTYY(("P(stub-prime:%s)\n", yystack.l_mark[0].str));
if(strcmp(yystack.l_mark[0].str, "yes") != 0 && strcmp(yystack.l_mark[0].str, "no") != 0)
yyerror("expected yes or no.");
else cfg_parser->cfg->stubs->isprime =
(strcmp(yystack.l_mark[0].str, "yes")==0);
free(yystack.l_mark[0].str);
}
break;
case 233:
#line 1195 "util/configparser.y"
{
OUTYY(("P(name:%s)\n", yystack.l_mark[0].str));
if(cfg_parser->cfg->forwards->name)
yyerror("forward name override, there must be one "
"name for one forward-zone");
free(cfg_parser->cfg->forwards->name);
cfg_parser->cfg->forwards->name = yystack.l_mark[0].str;
}
break;
case 234:
#line 1205 "util/configparser.y"
{
OUTYY(("P(forward-host:%s)\n", yystack.l_mark[0].str));
if(!cfg_strlist_insert(&cfg_parser->cfg->forwards->hosts, yystack.l_mark[0].str))
yyerror("out of memory");
}
break;
case 235:
#line 1212 "util/configparser.y"
{
OUTYY(("P(forward-addr:%s)\n", yystack.l_mark[0].str));
if(!cfg_strlist_insert(&cfg_parser->cfg->forwards->addrs, yystack.l_mark[0].str))
yyerror("out of memory");
}
break;
case 236:
#line 1219 "util/configparser.y"
{
OUTYY(("P(forward-first:%s)\n", yystack.l_mark[0].str));
if(strcmp(yystack.l_mark[0].str, "yes") != 0 && strcmp(yystack.l_mark[0].str, "no") != 0)
yyerror("expected yes or no.");
else cfg_parser->cfg->forwards->isfirst=(strcmp(yystack.l_mark[0].str, "yes")==0);
free(yystack.l_mark[0].str);
}
break;
case 237:
#line 1228 "util/configparser.y"
{
OUTYY(("\nP(remote-control:)\n"));
}
break;
case 247:
#line 1239 "util/configparser.y"
{
OUTYY(("P(control_enable:%s)\n", yystack.l_mark[0].str));
if(strcmp(yystack.l_mark[0].str, "yes") != 0 && strcmp(yystack.l_mark[0].str, "no") != 0)
yyerror("expected yes or no.");
else cfg_parser->cfg->remote_control_enable =
(strcmp(yystack.l_mark[0].str, "yes")==0);
free(yystack.l_mark[0].str);
}
break;
case 248:
#line 1249 "util/configparser.y"
{
OUTYY(("P(control_port:%s)\n", yystack.l_mark[0].str));
if(atoi(yystack.l_mark[0].str) == 0)
yyerror("control port number expected");
else cfg_parser->cfg->control_port = atoi(yystack.l_mark[0].str);
free(yystack.l_mark[0].str);
}
break;
case 249:
#line 1258 "util/configparser.y"
{
OUTYY(("P(control_interface:%s)\n", yystack.l_mark[0].str));
if(!cfg_strlist_insert(&cfg_parser->cfg->control_ifs, yystack.l_mark[0].str))
yyerror("out of memory");
}
break;
case 250:
#line 1265 "util/configparser.y"
{
OUTYY(("P(rc_server_key_file:%s)\n", yystack.l_mark[0].str));
free(cfg_parser->cfg->server_key_file);
cfg_parser->cfg->server_key_file = yystack.l_mark[0].str;
}
break;
case 251:
#line 1272 "util/configparser.y"
{
OUTYY(("P(rc_server_cert_file:%s)\n", yystack.l_mark[0].str));
free(cfg_parser->cfg->server_cert_file);
cfg_parser->cfg->server_cert_file = yystack.l_mark[0].str;
}
break;
case 252:
#line 1279 "util/configparser.y"
{
OUTYY(("P(rc_control_key_file:%s)\n", yystack.l_mark[0].str));
free(cfg_parser->cfg->control_key_file);
cfg_parser->cfg->control_key_file = yystack.l_mark[0].str;
}
break;
case 253:
#line 1286 "util/configparser.y"
{
OUTYY(("P(rc_control_cert_file:%s)\n", yystack.l_mark[0].str));
free(cfg_parser->cfg->control_cert_file);
cfg_parser->cfg->control_cert_file = yystack.l_mark[0].str;
}
break;
case 254:
#line 1293 "util/configparser.y"
{
OUTYY(("\nP(python:)\n"));
}
break;
case 258:
#line 1302 "util/configparser.y"
{
OUTYY(("P(python-script:%s)\n", yystack.l_mark[0].str));
free(cfg_parser->cfg->python_script);
cfg_parser->cfg->python_script = yystack.l_mark[0].str;
}
break;
#line 2315 "util/configparser.c"
}
yystack.s_mark -= yym;
yystate = *yystack.s_mark;
yystack.l_mark -= yym;
yym = yylhs[yyn];
if (yystate == 0 && yym == 0)
{
#if YYDEBUG
if (yydebug)
printf("%sdebug: after reduction, shifting from state 0 to\
state %d\n", YYPREFIX, YYFINAL);
#endif
yystate = YYFINAL;
*++yystack.s_mark = YYFINAL;
*++yystack.l_mark = yyval;
if (yychar < 0)
{
if ((yychar = YYLEX) < 0) yychar = 0;
#if YYDEBUG
if (yydebug)
{
yys = 0;
if (yychar <= YYMAXTOKEN) yys = yyname[yychar];
if (!yys) yys = "illegal-symbol";
printf("%sdebug: state %d, reading %d (%s)\n",
YYPREFIX, YYFINAL, yychar, yys);
}
#endif
}
if (yychar == 0) goto yyaccept;
goto yyloop;
}
if ((yyn = yygindex[yym]) && (yyn += yystate) >= 0 &&
yyn <= YYTABLESIZE && yycheck[yyn] == yystate)
yystate = yytable[yyn];
else
yystate = yydgoto[yym];
#if YYDEBUG
if (yydebug)
printf("%sdebug: after reduction, shifting from state %d \
to state %d\n", YYPREFIX, *yystack.s_mark, yystate);
#endif
if (yystack.s_mark >= yystack.s_last && yygrowstack(&yystack))
{
goto yyoverflow;
}
*++yystack.s_mark = (short) yystate;
*++yystack.l_mark = yyval;
goto yyloop;
yyoverflow:
yyerror("yacc stack overflow");
yyabort:
yyfreestack(&yystack);
return (1);
yyaccept:
yyfreestack(&yystack);
return (0);
}
|