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
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420
15421
15422
15423
15424
15425
15426
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402
16403
16404
16405
16406
16407
16408
16409
16410
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309
17310
17311
17312
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346
17347
17348
17349
17350
17351
17352
17353
17354
17355
17356
17357
17358
17359
17360
17361
17362
17363
17364
17365
17366
17367
17368
17369
17370
17371
17372
17373
17374
17375
17376
17377
17378
17379
17380
17381
17382
17383
17384
17385
17386
17387
17388
17389
17390
17391
17392
17393
17394
17395
17396
17397
17398
17399
17400
17401
17402
17403
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432
17433
17434
17435
17436
17437
17438
17439
17440
17441
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451
17452
17453
17454
17455
17456
17457
17458
17459
17460
17461
17462
17463
17464
17465
17466
17467
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495
17496
17497
17498
17499
17500
17501
17502
17503
17504
17505
17506
17507
17508
17509
17510
17511
17512
17513
17514
17515
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798
17799
17800
17801
17802
17803
17804
17805
17806
17807
17808
17809
17810
17811
17812
17813
17814
17815
17816
17817
17818
17819
17820
17821
17822
17823
17824
17825
17826
17827
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837
17838
17839
17840
17841
17842
17843
17844
17845
17846
17847
17848
17849
17850
17851
17852
17853
17854
17855
17856
17857
17858
17859
17860
17861
17862
17863
17864
17865
17866
17867
17868
17869
17870
17871
17872
17873
17874
17875
17876
17877
17878
17879
17880
17881
17882
17883
17884
17885
17886
17887
17888
17889
17890
17891
17892
17893
17894
17895
17896
17897
17898
17899
17900
17901
17902
17903
17904
17905
17906
17907
17908
17909
17910
17911
17912
17913
17914
17915
17916
17917
17918
17919
17920
17921
17922
17923
17924
17925
17926
17927
17928
17929
17930
17931
17932
17933
17934
17935
17936
17937
17938
17939
17940
17941
17942
17943
17944
17945
17946
17947
17948
17949
17950
17951
17952
17953
17954
17955
17956
17957
17958
17959
17960
17961
17962
17963
17964
17965
17966
17967
17968
17969
17970
17971
17972
17973
17974
17975
17976
17977
17978
17979
17980
17981
17982
17983
17984
17985
17986
17987
17988
17989
17990
17991
17992
17993
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006
18007
18008
18009
18010
18011
18012
18013
18014
18015
18016
18017
18018
18019
18020
18021
18022
18023
18024
18025
18026
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090
18091
18092
18093
18094
18095
18096
18097
18098
18099
18100
18101
18102
18103
18104
18105
18106
18107
18108
18109
18110
18111
18112
18113
18114
18115
18116
18117
18118
18119
18120
18121
18122
18123
18124
18125
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144
18145
18146
18147
18148
18149
18150
18151
18152
18153
18154
18155
18156
18157
18158
18159
18160
18161
18162
18163
18164
18165
18166
18167
18168
18169
18170
18171
18172
18173
18174
18175
18176
18177
18178
18179
18180
18181
18182
18183
18184
18185
18186
18187
18188
18189
18190
18191
18192
18193
18194
18195
18196
18197
18198
18199
18200
18201
18202
18203
18204
18205
18206
18207
18208
18209
18210
18211
18212
18213
18214
18215
18216
18217
18218
18219
18220
18221
18222
18223
18224
18225
18226
18227
18228
18229
18230
18231
18232
18233
18234
18235
18236
18237
18238
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250
18251
18252
18253
18254
18255
18256
18257
18258
18259
18260
18261
18262
18263
18264
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279
18280
18281
18282
18283
18284
18285
18286
18287
18288
18289
18290
18291
18292
18293
18294
18295
18296
18297
18298
18299
18300
18301
18302
18303
18304
18305
18306
18307
18308
18309
18310
18311
18312
18313
18314
18315
18316
18317
18318
18319
18320
18321
18322
18323
18324
18325
18326
18327
18328
18329
18330
18331
18332
18333
18334
18335
18336
18337
18338
18339
18340
18341
18342
18343
18344
18345
18346
18347
18348
18349
18350
18351
18352
18353
18354
18355
18356
18357
18358
18359
18360
18361
18362
18363
18364
18365
18366
18367
18368
18369
18370
18371
18372
18373
18374
18375
18376
18377
18378
18379
18380
18381
18382
18383
18384
18385
18386
18387
18388
18389
18390
18391
18392
18393
18394
18395
18396
18397
18398
18399
18400
18401
18402
18403
18404
18405
18406
18407
18408
18409
18410
18411
18412
18413
18414
18415
18416
18417
18418
18419
18420
18421
18422
18423
18424
18425
18426
18427
18428
18429
18430
18431
18432
18433
18434
18435
18436
18437
18438
18439
18440
18441
18442
18443
18444
18445
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458
18459
18460
18461
18462
18463
18464
18465
18466
18467
18468
18469
18470
18471
18472
18473
18474
18475
18476
18477
18478
18479
18480
18481
18482
18483
18484
18485
18486
18487
18488
18489
18490
18491
18492
18493
18494
18495
18496
18497
18498
18499
18500
18501
18502
18503
18504
18505
18506
18507
18508
18509
18510
18511
18512
18513
18514
18515
18516
18517
18518
18519
18520
18521
18522
18523
18524
18525
18526
18527
18528
18529
18530
18531
18532
18533
18534
18535
18536
18537
18538
18539
18540
18541
18542
18543
18544
18545
18546
18547
18548
18549
18550
18551
18552
18553
18554
18555
18556
18557
18558
18559
18560
18561
18562
18563
18564
18565
18566
18567
18568
18569
18570
18571
18572
18573
18574
18575
18576
18577
18578
18579
18580
18581
18582
18583
18584
18585
18586
18587
18588
18589
18590
18591
18592
18593
18594
18595
18596
18597
18598
18599
18600
18601
18602
18603
18604
18605
18606
18607
18608
18609
18610
18611
18612
18613
18614
18615
18616
18617
18618
18619
18620
18621
18622
18623
18624
18625
18626
18627
18628
18629
18630
18631
18632
18633
18634
18635
18636
18637
18638
18639
18640
18641
18642
18643
18644
18645
18646
18647
18648
18649
18650
18651
18652
18653
18654
18655
18656
18657
18658
18659
18660
18661
18662
18663
18664
18665
18666
18667
18668
18669
18670
18671
18672
18673
18674
18675
18676
18677
18678
18679
18680
18681
18682
18683
18684
18685
18686
18687
18688
18689
18690
18691
18692
18693
18694
18695
18696
18697
18698
18699
18700
18701
18702
18703
18704
18705
18706
18707
18708
18709
18710
18711
18712
18713
18714
18715
18716
18717
18718
18719
18720
18721
18722
18723
18724
18725
18726
18727
18728
18729
18730
18731
18732
18733
18734
18735
18736
18737
18738
18739
18740
18741
18742
18743
18744
18745
18746
18747
18748
18749
18750
18751
18752
18753
18754
18755
18756
18757
18758
18759
18760
18761
18762
18763
18764
18765
18766
18767
18768
18769
18770
18771
18772
18773
18774
18775
18776
18777
18778
18779
18780
18781
18782
18783
18784
18785
18786
18787
18788
18789
18790
18791
18792
18793
18794
18795
18796
18797
18798
18799
18800
18801
18802
18803
18804
18805
18806
18807
18808
18809
18810
18811
18812
18813
18814
18815
18816
18817
18818
18819
18820
18821
18822
18823
18824
18825
18826
18827
18828
18829
18830
18831
18832
18833
18834
18835
18836
18837
18838
18839
18840
18841
18842
18843
18844
18845
18846
18847
18848
18849
18850
18851
18852
18853
18854
18855
18856
18857
18858
18859
18860
18861
18862
18863
18864
18865
18866
18867
18868
18869
18870
18871
18872
18873
18874
18875
18876
18877
18878
18879
18880
18881
18882
18883
18884
18885
18886
18887
18888
18889
18890
18891
18892
18893
18894
18895
18896
18897
18898
18899
18900
18901
18902
18903
18904
18905
18906
18907
18908
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918
18919
18920
18921
18922
18923
18924
18925
18926
18927
18928
18929
18930
18931
18932
18933
18934
18935
18936
18937
18938
18939
18940
18941
18942
18943
18944
18945
18946
18947
18948
18949
18950
18951
18952
18953
18954
18955
18956
18957
18958
18959
18960
18961
18962
18963
18964
18965
18966
18967
18968
18969
18970
18971
18972
18973
18974
18975
18976
18977
18978
18979
18980
18981
18982
18983
18984
18985
18986
18987
18988
18989
18990
18991
18992
18993
18994
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012
19013
19014
19015
19016
19017
19018
19019
19020
19021
19022
19023
19024
19025
19026
19027
19028
19029
19030
19031
19032
19033
19034
19035
19036
19037
19038
19039
19040
19041
19042
19043
19044
19045
19046
19047
19048
19049
19050
19051
19052
19053
19054
19055
19056
19057
19058
19059
19060
19061
19062
19063
19064
19065
19066
19067
19068
19069
19070
19071
19072
19073
19074
19075
19076
19077
19078
19079
19080
19081
19082
19083
19084
19085
19086
19087
19088
19089
19090
19091
19092
19093
19094
19095
19096
19097
19098
19099
19100
19101
19102
19103
19104
19105
19106
19107
19108
19109
19110
19111
19112
19113
19114
19115
19116
19117
19118
19119
19120
19121
19122
19123
19124
19125
19126
19127
19128
19129
19130
19131
19132
19133
19134
19135
19136
19137
19138
19139
19140
19141
19142
19143
19144
19145
19146
19147
19148
19149
19150
19151
19152
19153
19154
19155
19156
19157
19158
19159
19160
19161
19162
19163
19164
19165
19166
19167
19168
19169
19170
19171
19172
19173
19174
19175
19176
19177
19178
19179
19180
19181
19182
19183
19184
19185
19186
19187
19188
19189
19190
19191
19192
19193
19194
19195
19196
19197
19198
19199
19200
19201
19202
19203
19204
19205
19206
19207
19208
19209
19210
19211
19212
19213
19214
19215
19216
19217
19218
19219
19220
19221
19222
19223
19224
19225
19226
19227
19228
19229
19230
19231
19232
19233
19234
19235
19236
19237
19238
19239
19240
19241
19242
19243
19244
19245
19246
19247
19248
19249
19250
19251
19252
19253
19254
19255
19256
19257
19258
19259
19260
19261
19262
19263
19264
19265
19266
19267
19268
19269
19270
19271
19272
19273
19274
19275
19276
19277
19278
19279
19280
19281
19282
19283
19284
19285
19286
19287
19288
19289
19290
19291
19292
19293
19294
19295
19296
19297
19298
19299
19300
19301
19302
19303
19304
19305
19306
19307
19308
19309
19310
19311
19312
19313
19314
19315
19316
19317
19318
19319
19320
19321
19322
19323
19324
19325
19326
19327
19328
19329
19330
19331
19332
19333
19334
19335
19336
19337
19338
19339
19340
19341
19342
19343
19344
19345
19346
19347
19348
19349
19350
19351
19352
19353
19354
19355
19356
19357
19358
19359
19360
19361
19362
19363
19364
19365
19366
19367
19368
19369
19370
19371
19372
19373
19374
19375
19376
19377
19378
19379
19380
19381
19382
19383
19384
19385
19386
19387
19388
19389
19390
19391
19392
19393
19394
19395
19396
19397
19398
19399
19400
19401
19402
19403
19404
19405
19406
19407
19408
19409
19410
19411
19412
19413
19414
19415
19416
19417
19418
19419
19420
19421
19422
19423
19424
19425
19426
19427
19428
19429
19430
19431
19432
19433
19434
19435
19436
19437
19438
19439
19440
19441
19442
19443
19444
19445
19446
19447
19448
19449
19450
19451
19452
19453
19454
19455
19456
19457
19458
19459
19460
19461
19462
19463
19464
19465
19466
19467
19468
19469
19470
19471
19472
19473
19474
19475
19476
19477
19478
19479
19480
19481
19482
19483
19484
19485
19486
19487
19488
19489
19490
19491
19492
19493
19494
19495
19496
19497
19498
19499
19500
19501
19502
19503
19504
19505
19506
19507
19508
19509
19510
19511
19512
19513
19514
19515
19516
19517
19518
19519
19520
19521
19522
19523
19524
19525
19526
19527
19528
19529
19530
19531
19532
19533
19534
19535
19536
19537
19538
19539
19540
19541
19542
19543
19544
19545
19546
19547
19548
19549
19550
19551
19552
19553
19554
19555
19556
19557
19558
19559
19560
19561
19562
19563
19564
19565
19566
19567
19568
19569
19570
19571
19572
19573
19574
19575
19576
19577
19578
19579
19580
19581
19582
19583
19584
19585
19586
19587
19588
19589
19590
19591
19592
19593
19594
19595
19596
19597
19598
19599
19600
19601
19602
19603
19604
19605
19606
19607
19608
19609
19610
19611
19612
19613
19614
19615
19616
19617
19618
19619
19620
19621
19622
19623
19624
19625
19626
19627
19628
19629
19630
19631
19632
19633
19634
19635
19636
19637
19638
19639
19640
19641
19642
19643
19644
19645
19646
19647
19648
19649
19650
19651
19652
19653
19654
19655
19656
19657
19658
19659
19660
19661
19662
19663
19664
19665
19666
19667
19668
19669
19670
19671
19672
19673
19674
19675
19676
19677
19678
19679
19680
19681
19682
19683
19684
19685
19686
19687
19688
19689
19690
19691
19692
19693
19694
19695
19696
19697
19698
19699
19700
19701
19702
19703
19704
19705
19706
19707
19708
19709
19710
19711
19712
19713
19714
19715
19716
19717
19718
19719
19720
19721
19722
19723
19724
19725
19726
19727
19728
19729
19730
19731
19732
19733
19734
19735
19736
19737
19738
19739
19740
19741
19742
19743
19744
19745
19746
19747
19748
19749
19750
19751
19752
19753
19754
19755
19756
19757
19758
19759
19760
19761
19762
19763
19764
19765
19766
19767
19768
19769
19770
19771
19772
19773
19774
19775
19776
19777
19778
19779
19780
19781
19782
19783
19784
19785
19786
19787
19788
19789
19790
19791
19792
19793
19794
19795
19796
19797
19798
19799
19800
19801
19802
19803
19804
19805
19806
19807
19808
19809
19810
19811
19812
19813
19814
19815
19816
19817
19818
19819
19820
19821
19822
19823
19824
19825
19826
19827
19828
19829
19830
19831
19832
19833
19834
19835
19836
19837
19838
19839
19840
19841
19842
19843
19844
19845
19846
19847
19848
19849
19850
19851
19852
19853
19854
19855
19856
19857
19858
19859
19860
19861
19862
19863
19864
19865
19866
19867
19868
19869
19870
19871
19872
19873
19874
19875
19876
19877
19878
19879
19880
19881
19882
19883
19884
19885
19886
19887
19888
19889
19890
19891
19892
19893
19894
19895
19896
19897
19898
19899
19900
19901
19902
19903
19904
19905
19906
19907
19908
19909
19910
19911
19912
19913
19914
19915
19916
19917
19918
19919
19920
19921
19922
19923
19924
19925
19926
19927
19928
19929
19930
19931
19932
19933
19934
19935
19936
19937
19938
19939
19940
19941
19942
19943
19944
19945
19946
19947
19948
19949
19950
19951
19952
19953
19954
19955
19956
19957
19958
19959
19960
19961
19962
19963
19964
19965
19966
19967
19968
19969
19970
19971
19972
19973
19974
19975
19976
19977
19978
19979
19980
19981
19982
19983
19984
19985
19986
19987
19988
19989
19990
19991
19992
19993
19994
19995
19996
19997
19998
19999
20000
20001
20002
20003
20004
20005
20006
20007
20008
20009
20010
20011
20012
20013
20014
20015
20016
20017
20018
20019
20020
20021
20022
20023
20024
20025
20026
20027
20028
20029
20030
20031
20032
20033
20034
20035
20036
20037
20038
20039
20040
20041
20042
20043
20044
20045
20046
20047
20048
20049
20050
20051
20052
20053
20054
20055
20056
20057
20058
20059
20060
20061
20062
20063
20064
20065
20066
20067
20068
20069
20070
20071
20072
20073
20074
20075
20076
20077
20078
20079
20080
20081
20082
20083
20084
20085
20086
20087
20088
20089
20090
20091
20092
20093
20094
20095
20096
20097
20098
20099
20100
20101
20102
20103
20104
20105
20106
20107
20108
20109
20110
20111
20112
20113
20114
20115
20116
20117
20118
20119
20120
20121
20122
20123
20124
20125
20126
20127
20128
20129
20130
20131
20132
20133
20134
20135
20136
20137
20138
20139
20140
20141
20142
20143
20144
20145
20146
20147
20148
20149
20150
20151
20152
20153
20154
20155
20156
20157
20158
20159
20160
20161
20162
20163
20164
20165
20166
20167
20168
20169
20170
20171
20172
20173
20174
20175
20176
20177
20178
20179
20180
20181
20182
20183
20184
20185
20186
20187
20188
20189
20190
20191
20192
20193
20194
20195
20196
20197
20198
20199
20200
20201
20202
20203
20204
20205
20206
20207
20208
20209
20210
20211
20212
20213
20214
20215
20216
20217
20218
20219
20220
20221
20222
20223
20224
20225
20226
20227
20228
20229
20230
20231
20232
20233
20234
20235
20236
20237
20238
20239
20240
20241
20242
20243
20244
20245
20246
20247
20248
20249
20250
20251
20252
20253
20254
20255
20256
20257
20258
20259
20260
20261
20262
20263
20264
20265
20266
20267
20268
20269
20270
20271
20272
20273
20274
20275
20276
20277
20278
20279
20280
20281
20282
20283
20284
20285
20286
20287
20288
20289
20290
20291
20292
20293
20294
20295
20296
20297
20298
20299
20300
20301
20302
20303
20304
20305
20306
20307
20308
20309
20310
20311
20312
20313
20314
20315
20316
20317
20318
20319
20320
20321
20322
20323
20324
20325
20326
20327
20328
20329
20330
20331
20332
20333
20334
20335
20336
20337
20338
20339
20340
20341
20342
20343
20344
20345
20346
20347
20348
20349
20350
20351
20352
20353
20354
20355
20356
20357
20358
20359
20360
20361
20362
20363
20364
20365
20366
20367
20368
20369
20370
20371
20372
20373
20374
20375
20376
20377
20378
20379
20380
20381
20382
20383
20384
20385
20386
20387
20388
20389
20390
20391
20392
20393
20394
20395
20396
20397
20398
20399
20400
20401
20402
20403
20404
20405
20406
20407
20408
20409
20410
20411
20412
20413
20414
20415
20416
20417
20418
20419
20420
20421
20422
20423
20424
20425
20426
20427
20428
20429
20430
20431
20432
20433
20434
20435
20436
20437
20438
20439
20440
20441
20442
20443
20444
20445
20446
20447
20448
20449
20450
20451
20452
20453
20454
20455
20456
20457
20458
20459
20460
20461
20462
20463
20464
20465
20466
20467
20468
20469
20470
20471
20472
20473
20474
20475
20476
20477
20478
20479
20480
20481
20482
20483
20484
20485
20486
20487
20488
20489
20490
20491
20492
20493
20494
20495
20496
20497
20498
20499
20500
20501
20502
20503
20504
20505
20506
20507
20508
20509
20510
20511
20512
20513
20514
20515
20516
20517
20518
20519
20520
20521
20522
20523
20524
20525
20526
20527
20528
20529
20530
20531
20532
20533
20534
20535
20536
20537
20538
20539
20540
20541
20542
20543
20544
20545
20546
20547
20548
20549
20550
20551
20552
20553
20554
20555
20556
20557
20558
20559
20560
20561
20562
20563
20564
20565
20566
20567
20568
20569
20570
20571
20572
20573
20574
20575
20576
20577
20578
20579
20580
20581
20582
20583
20584
20585
20586
20587
20588
20589
20590
20591
20592
20593
20594
20595
20596
20597
20598
20599
20600
20601
20602
20603
20604
20605
20606
20607
20608
20609
20610
20611
20612
20613
20614
20615
20616
20617
20618
20619
20620
20621
20622
20623
20624
20625
20626
20627
20628
20629
20630
20631
20632
20633
20634
20635
20636
20637
20638
20639
20640
20641
20642
20643
20644
20645
20646
20647
20648
20649
20650
20651
20652
20653
20654
20655
20656
20657
20658
20659
20660
20661
20662
20663
20664
20665
20666
20667
20668
20669
20670
20671
20672
20673
20674
20675
20676
20677
20678
20679
20680
20681
20682
20683
20684
20685
20686
20687
20688
20689
20690
20691
20692
20693
20694
20695
20696
20697
20698
20699
20700
20701
20702
20703
20704
20705
20706
20707
20708
20709
20710
20711
20712
20713
20714
20715
20716
20717
20718
20719
20720
20721
20722
20723
20724
20725
20726
20727
20728
20729
20730
20731
20732
20733
20734
20735
20736
20737
20738
20739
20740
20741
20742
20743
20744
20745
20746
20747
20748
20749
20750
20751
20752
20753
20754
20755
20756
20757
20758
20759
20760
20761
20762
20763
20764
20765
20766
20767
20768
20769
20770
20771
20772
20773
20774
20775
20776
20777
20778
20779
20780
20781
20782
20783
20784
20785
20786
20787
20788
20789
20790
20791
20792
20793
20794
20795
20796
20797
20798
20799
20800
20801
20802
20803
20804
20805
20806
20807
20808
20809
20810
20811
20812
20813
20814
20815
20816
20817
20818
20819
20820
20821
20822
20823
20824
20825
20826
20827
20828
20829
20830
20831
20832
20833
20834
20835
20836
20837
20838
20839
20840
20841
20842
20843
20844
20845
20846
20847
20848
20849
20850
20851
20852
20853
20854
20855
20856
20857
20858
20859
20860
20861
20862
20863
20864
20865
20866
20867
20868
20869
20870
20871
20872
20873
20874
20875
20876
20877
20878
20879
20880
20881
20882
20883
20884
20885
20886
20887
20888
20889
20890
20891
20892
20893
20894
20895
20896
20897
20898
20899
20900
20901
20902
20903
20904
20905
20906
20907
20908
20909
20910
20911
20912
20913
20914
20915
20916
20917
20918
20919
20920
20921
20922
20923
20924
20925
20926
20927
20928
20929
20930
20931
20932
20933
20934
20935
20936
20937
20938
20939
20940
20941
20942
20943
20944
20945
20946
20947
20948
20949
20950
20951
20952
20953
20954
20955
20956
20957
20958
20959
20960
20961
20962
20963
20964
20965
20966
20967
20968
20969
20970
20971
20972
20973
20974
20975
20976
20977
20978
20979
20980
20981
20982
20983
20984
20985
20986
20987
20988
20989
20990
20991
20992
20993
20994
20995
20996
20997
20998
20999
21000
21001
21002
21003
21004
21005
21006
21007
21008
21009
21010
21011
21012
21013
21014
21015
21016
21017
21018
21019
21020
21021
21022
21023
21024
21025
21026
21027
21028
21029
21030
21031
21032
21033
21034
21035
21036
21037
21038
21039
21040
21041
21042
21043
21044
21045
21046
21047
21048
21049
21050
21051
21052
21053
21054
21055
21056
21057
21058
21059
21060
21061
21062
21063
21064
21065
21066
21067
21068
21069
21070
21071
21072
21073
21074
21075
21076
21077
21078
21079
21080
21081
21082
21083
21084
21085
21086
21087
21088
21089
21090
21091
21092
21093
21094
21095
21096
21097
21098
21099
21100
21101
21102
21103
21104
21105
21106
21107
21108
21109
21110
21111
21112
21113
21114
21115
21116
21117
21118
21119
21120
21121
21122
21123
21124
21125
21126
21127
21128
21129
21130
21131
21132
21133
21134
21135
21136
21137
21138
21139
21140
21141
21142
21143
21144
21145
21146
21147
21148
21149
21150
21151
21152
21153
21154
21155
21156
21157
21158
21159
21160
21161
21162
21163
21164
21165
21166
21167
21168
21169
21170
21171
21172
21173
21174
21175
21176
21177
21178
21179
21180
21181
21182
21183
21184
21185
21186
21187
21188
21189
21190
21191
21192
21193
21194
21195
21196
21197
21198
21199
21200
21201
21202
21203
21204
21205
21206
21207
21208
21209
21210
21211
21212
21213
21214
21215
21216
21217
21218
21219
21220
21221
21222
21223
21224
21225
21226
21227
21228
21229
21230
21231
21232
21233
21234
21235
21236
21237
21238
21239
21240
21241
21242
21243
21244
21245
21246
21247
21248
21249
21250
21251
21252
21253
21254
21255
21256
21257
21258
21259
21260
21261
21262
21263
21264
21265
21266
21267
21268
21269
21270
21271
21272
21273
21274
21275
21276
21277
21278
21279
21280
21281
21282
21283
21284
21285
21286
21287
21288
21289
21290
21291
21292
21293
21294
21295
21296
21297
21298
21299
21300
21301
21302
21303
21304
21305
21306
21307
21308
21309
21310
21311
21312
21313
21314
21315
21316
21317
21318
21319
21320
21321
21322
21323
21324
21325
21326
21327
21328
21329
21330
21331
21332
21333
21334
21335
21336
21337
21338
21339
21340
21341
21342
21343
21344
21345
21346
21347
21348
21349
21350
21351
21352
21353
21354
21355
21356
21357
21358
21359
21360
21361
21362
21363
21364
21365
21366
21367
21368
21369
21370
21371
21372
21373
21374
21375
21376
21377
21378
21379
21380
21381
21382
21383
21384
21385
21386
21387
21388
21389
21390
21391
21392
21393
21394
21395
21396
21397
21398
21399
21400
21401
21402
21403
21404
21405
21406
21407
21408
21409
21410
21411
21412
21413
21414
21415
21416
21417
21418
21419
21420
21421
21422
21423
21424
21425
21426
21427
21428
21429
21430
21431
21432
21433
21434
21435
21436
21437
21438
21439
21440
21441
21442
21443
21444
21445
21446
21447
21448
21449
21450
21451
21452
21453
21454
21455
21456
21457
21458
21459
21460
21461
21462
21463
21464
21465
21466
21467
21468
21469
21470
21471
21472
21473
21474
21475
21476
21477
21478
21479
21480
21481
21482
21483
21484
21485
21486
21487
21488
21489
21490
21491
21492
21493
21494
21495
21496
21497
21498
21499
21500
21501
21502
21503
21504
21505
21506
21507
21508
21509
21510
21511
21512
21513
21514
21515
21516
21517
21518
21519
21520
21521
21522
21523
21524
21525
21526
21527
21528
21529
21530
21531
21532
21533
21534
21535
21536
21537
21538
21539
21540
21541
21542
21543
21544
21545
21546
21547
21548
21549
21550
21551
21552
21553
21554
21555
21556
21557
21558
21559
21560
21561
21562
21563
21564
21565
21566
21567
21568
21569
21570
21571
21572
21573
21574
21575
21576
21577
21578
21579
21580
21581
21582
21583
21584
21585
21586
21587
21588
21589
21590
21591
21592
21593
21594
21595
21596
21597
21598
21599
21600
21601
21602
21603
21604
21605
21606
21607
21608
21609
21610
21611
21612
21613
21614
21615
21616
21617
21618
21619
21620
21621
21622
21623
21624
21625
21626
21627
21628
21629
21630
21631
21632
21633
21634
21635
21636
21637
21638
21639
21640
21641
21642
21643
21644
21645
21646
21647
21648
21649
21650
21651
21652
21653
21654
21655
21656
21657
21658
21659
21660
21661
21662
21663
21664
21665
21666
21667
21668
21669
21670
21671
21672
21673
21674
21675
21676
21677
21678
21679
21680
21681
21682
21683
21684
21685
21686
21687
21688
21689
21690
21691
21692
21693
21694
21695
21696
21697
21698
21699
21700
21701
21702
21703
21704
21705
21706
21707
21708
21709
21710
21711
21712
21713
21714
21715
21716
21717
21718
21719
21720
21721
21722
21723
21724
21725
21726
21727
21728
21729
21730
21731
21732
21733
21734
21735
21736
21737
21738
21739
21740
21741
21742
21743
21744
21745
21746
21747
21748
21749
21750
21751
21752
21753
21754
21755
21756
21757
21758
21759
21760
21761
21762
21763
21764
21765
21766
21767
21768
21769
21770
21771
21772
21773
21774
21775
21776
21777
21778
21779
21780
21781
21782
21783
21784
21785
21786
21787
21788
21789
21790
21791
21792
21793
21794
21795
21796
21797
21798
21799
21800
21801
21802
21803
21804
21805
21806
21807
21808
21809
21810
21811
21812
21813
21814
21815
21816
21817
21818
21819
21820
21821
21822
21823
21824
21825
21826
21827
21828
21829
21830
21831
21832
21833
21834
21835
21836
21837
21838
21839
21840
21841
21842
21843
21844
21845
21846
21847
21848
21849
21850
21851
21852
21853
21854
21855
21856
21857
21858
21859
21860
21861
21862
21863
21864
21865
21866
21867
21868
21869
21870
21871
21872
21873
21874
21875
21876
21877
21878
21879
21880
21881
21882
21883
21884
21885
21886
21887
21888
21889
21890
21891
21892
21893
21894
21895
21896
21897
21898
21899
21900
21901
21902
21903
21904
21905
21906
21907
21908
21909
21910
21911
21912
21913
21914
21915
21916
21917
21918
21919
21920
21921
21922
21923
21924
21925
21926
21927
21928
21929
21930
21931
21932
21933
21934
21935
21936
21937
21938
21939
21940
21941
21942
21943
21944
21945
21946
21947
21948
21949
21950
21951
21952
21953
21954
21955
21956
21957
21958
21959
21960
21961
21962
21963
21964
21965
21966
21967
21968
21969
21970
21971
21972
21973
21974
21975
21976
21977
21978
21979
21980
21981
21982
21983
21984
21985
21986
21987
21988
21989
21990
21991
21992
21993
21994
21995
21996
21997
21998
21999
22000
22001
22002
22003
22004
22005
22006
22007
22008
22009
22010
22011
22012
22013
22014
22015
22016
22017
22018
22019
22020
22021
22022
22023
22024
22025
22026
22027
22028
22029
22030
22031
22032
22033
22034
22035
22036
22037
22038
22039
22040
22041
22042
22043
22044
22045
22046
22047
22048
22049
22050
22051
22052
22053
22054
22055
22056
22057
22058
22059
22060
22061
22062
22063
22064
22065
22066
22067
22068
22069
22070
22071
22072
22073
22074
22075
22076
22077
22078
22079
22080
22081
22082
22083
22084
22085
22086
22087
22088
22089
22090
22091
22092
22093
22094
22095
22096
22097
22098
22099
22100
22101
22102
22103
22104
22105
22106
22107
22108
22109
22110
22111
22112
22113
22114
22115
22116
22117
22118
22119
22120
22121
22122
22123
22124
22125
22126
22127
22128
22129
22130
22131
22132
22133
22134
22135
22136
22137
22138
22139
22140
22141
22142
22143
22144
22145
22146
22147
22148
22149
22150
22151
22152
22153
22154
22155
22156
22157
22158
22159
22160
22161
22162
22163
22164
22165
22166
22167
22168
22169
22170
22171
22172
22173
22174
22175
22176
22177
22178
22179
22180
22181
22182
22183
22184
22185
22186
22187
22188
22189
22190
22191
22192
22193
22194
22195
22196
22197
22198
22199
22200
22201
22202
22203
22204
22205
22206
22207
22208
22209
22210
22211
22212
22213
22214
22215
22216
22217
22218
22219
22220
22221
22222
22223
22224
22225
22226
22227
22228
22229
22230
22231
22232
22233
22234
22235
22236
22237
22238
22239
22240
22241
22242
22243
22244
22245
22246
22247
22248
22249
22250
22251
22252
22253
22254
22255
22256
22257
22258
22259
22260
22261
22262
22263
22264
22265
22266
22267
22268
22269
22270
22271
22272
22273
22274
22275
22276
22277
22278
22279
22280
22281
22282
22283
22284
22285
22286
22287
22288
22289
22290
22291
22292
22293
22294
22295
22296
22297
22298
22299
22300
22301
22302
22303
22304
22305
22306
22307
22308
22309
22310
22311
22312
22313
22314
22315
22316
22317
22318
22319
22320
22321
22322
22323
22324
22325
22326
22327
22328
22329
22330
22331
22332
22333
22334
22335
22336
22337
22338
22339
22340
22341
22342
22343
22344
22345
22346
22347
22348
22349
22350
22351
22352
22353
22354
22355
22356
22357
22358
22359
22360
22361
22362
22363
22364
22365
22366
22367
22368
22369
22370
22371
22372
22373
22374
22375
22376
22377
22378
22379
22380
22381
22382
22383
22384
22385
22386
22387
22388
22389
22390
22391
22392
22393
22394
22395
22396
22397
22398
22399
22400
22401
22402
22403
22404
22405
22406
22407
22408
22409
22410
22411
22412
22413
22414
22415
22416
22417
22418
22419
22420
22421
22422
22423
22424
22425
22426
22427
22428
22429
22430
22431
22432
22433
22434
22435
22436
22437
22438
22439
22440
22441
22442
22443
22444
22445
22446
22447
22448
22449
22450
22451
22452
22453
22454
22455
22456
22457
22458
22459
22460
22461
22462
22463
22464
22465
22466
22467
22468
22469
22470
22471
22472
22473
22474
22475
22476
22477
22478
22479
22480
22481
22482
22483
22484
22485
22486
22487
22488
22489
22490
22491
22492
22493
22494
22495
22496
22497
22498
22499
22500
22501
22502
22503
22504
22505
22506
22507
22508
22509
22510
22511
22512
22513
22514
22515
22516
22517
22518
22519
22520
22521
22522
22523
22524
22525
22526
22527
22528
22529
22530
22531
22532
22533
22534
22535
22536
22537
22538
22539
22540
22541
22542
22543
22544
22545
22546
22547
22548
22549
22550
22551
22552
22553
22554
22555
22556
22557
22558
22559
22560
22561
22562
22563
22564
22565
22566
22567
22568
22569
22570
22571
22572
22573
22574
22575
22576
22577
22578
22579
22580
22581
22582
22583
22584
22585
22586
22587
22588
22589
22590
22591
22592
22593
22594
22595
22596
22597
22598
22599
22600
22601
22602
22603
22604
22605
22606
22607
22608
22609
22610
22611
22612
22613
22614
22615
22616
22617
22618
22619
22620
22621
22622
22623
22624
22625
22626
22627
22628
22629
22630
22631
22632
22633
22634
22635
22636
22637
22638
22639
22640
22641
22642
22643
22644
22645
22646
22647
22648
22649
22650
22651
22652
22653
22654
22655
22656
22657
22658
22659
22660
22661
22662
22663
22664
22665
22666
22667
22668
22669
22670
22671
22672
22673
22674
22675
22676
22677
22678
22679
22680
22681
22682
22683
22684
22685
22686
22687
22688
22689
22690
22691
22692
22693
22694
22695
22696
22697
22698
22699
22700
22701
22702
22703
22704
22705
22706
22707
22708
22709
22710
22711
22712
22713
22714
22715
22716
22717
22718
22719
22720
22721
22722
22723
22724
22725
22726
22727
22728
22729
22730
22731
22732
22733
22734
22735
22736
22737
22738
22739
22740
22741
22742
22743
22744
22745
22746
22747
22748
22749
22750
22751
22752
22753
22754
22755
22756
22757
22758
22759
22760
22761
22762
22763
22764
22765
22766
22767
22768
22769
22770
22771
22772
22773
22774
22775
22776
22777
22778
22779
22780
22781
22782
22783
22784
22785
22786
22787
22788
22789
22790
22791
22792
22793
22794
22795
22796
22797
22798
22799
22800
22801
22802
22803
22804
22805
22806
22807
22808
22809
22810
22811
22812
22813
22814
22815
22816
22817
22818
22819
22820
22821
22822
22823
22824
22825
22826
22827
22828
22829
22830
22831
22832
22833
22834
22835
22836
22837
22838
22839
22840
22841
22842
22843
22844
22845
22846
22847
22848
22849
22850
22851
22852
22853
22854
22855
22856
22857
22858
22859
22860
22861
22862
22863
22864
22865
22866
22867
22868
22869
22870
22871
22872
22873
22874
22875
22876
22877
22878
22879
22880
22881
22882
22883
22884
22885
22886
22887
22888
22889
22890
22891
22892
22893
22894
22895
22896
22897
22898
22899
22900
22901
22902
22903
22904
22905
22906
22907
22908
22909
22910
22911
22912
22913
22914
22915
22916
22917
22918
22919
22920
22921
22922
22923
22924
22925
22926
22927
22928
22929
22930
22931
22932
22933
22934
22935
22936
22937
22938
22939
22940
22941
22942
22943
22944
22945
22946
22947
22948
22949
22950
22951
22952
22953
22954
22955
22956
22957
22958
22959
22960
22961
22962
22963
22964
22965
22966
22967
22968
22969
22970
22971
22972
22973
22974
22975
22976
22977
22978
22979
22980
22981
22982
22983
22984
22985
22986
22987
22988
22989
22990
22991
22992
22993
22994
22995
22996
22997
22998
22999
23000
23001
23002
23003
23004
23005
23006
23007
23008
23009
23010
23011
23012
23013
23014
23015
23016
23017
23018
23019
23020
23021
23022
23023
23024
23025
23026
23027
23028
23029
23030
23031
23032
23033
23034
23035
23036
23037
23038
23039
23040
23041
23042
23043
23044
23045
23046
23047
23048
23049
23050
23051
23052
23053
23054
23055
23056
23057
23058
23059
23060
23061
23062
23063
23064
23065
23066
23067
23068
23069
23070
23071
23072
23073
23074
23075
23076
23077
23078
23079
23080
23081
23082
23083
23084
23085
23086
23087
23088
23089
23090
23091
23092
23093
23094
23095
23096
23097
23098
23099
23100
23101
23102
23103
23104
23105
23106
23107
23108
23109
23110
23111
23112
23113
23114
23115
23116
23117
23118
23119
23120
23121
23122
23123
23124
23125
23126
23127
23128
23129
23130
23131
23132
23133
23134
23135
23136
23137
23138
23139
23140
23141
23142
23143
23144
23145
23146
23147
23148
23149
23150
23151
23152
23153
23154
23155
23156
23157
23158
23159
23160
23161
23162
23163
23164
23165
23166
23167
23168
23169
23170
23171
23172
23173
23174
23175
23176
23177
23178
23179
23180
23181
23182
23183
23184
23185
23186
23187
23188
23189
23190
23191
23192
23193
23194
23195
23196
23197
23198
23199
23200
23201
23202
23203
23204
23205
23206
23207
23208
23209
23210
23211
23212
23213
23214
23215
23216
23217
23218
23219
23220
23221
23222
23223
23224
23225
23226
23227
23228
23229
23230
23231
23232
23233
23234
23235
23236
23237
23238
23239
23240
23241
23242
23243
23244
23245
23246
23247
23248
23249
23250
23251
23252
23253
23254
23255
23256
23257
23258
23259
23260
23261
23262
23263
23264
23265
23266
23267
23268
23269
23270
23271
23272
23273
23274
23275
23276
23277
23278
23279
23280
23281
23282
23283
23284
23285
23286
23287
23288
23289
23290
23291
23292
23293
23294
23295
23296
23297
23298
23299
23300
23301
23302
23303
23304
23305
23306
23307
23308
23309
23310
23311
23312
23313
23314
23315
23316
23317
23318
23319
23320
23321
23322
23323
23324
23325
23326
23327
23328
23329
23330
23331
23332
23333
23334
23335
23336
23337
23338
23339
23340
23341
23342
23343
23344
23345
23346
23347
23348
23349
23350
23351
23352
23353
23354
23355
23356
23357
23358
23359
23360
23361
23362
23363
23364
23365
23366
23367
23368
23369
23370
23371
23372
23373
23374
23375
23376
23377
23378
23379
23380
23381
23382
23383
23384
23385
23386
23387
23388
23389
23390
23391
23392
23393
23394
23395
23396
23397
23398
23399
23400
23401
23402
23403
23404
23405
23406
23407
23408
23409
23410
23411
23412
23413
23414
23415
23416
23417
23418
23419
23420
23421
23422
23423
23424
23425
23426
23427
23428
23429
23430
23431
23432
23433
23434
23435
23436
23437
23438
23439
23440
23441
23442
23443
23444
23445
23446
23447
23448
23449
23450
23451
23452
23453
23454
23455
23456
23457
23458
23459
23460
23461
23462
23463
23464
23465
23466
23467
23468
23469
23470
23471
23472
23473
23474
23475
23476
23477
23478
23479
23480
23481
23482
23483
23484
23485
23486
23487
23488
23489
23490
23491
23492
23493
23494
23495
23496
23497
23498
23499
23500
23501
23502
23503
23504
23505
23506
23507
23508
23509
23510
23511
23512
23513
23514
23515
23516
23517
23518
23519
23520
23521
23522
23523
23524
23525
23526
23527
23528
23529
23530
23531
23532
23533
23534
23535
23536
23537
23538
23539
23540
23541
23542
23543
23544
23545
23546
23547
23548
23549
23550
23551
23552
23553
23554
23555
23556
23557
23558
23559
23560
23561
23562
23563
23564
23565
23566
23567
23568
23569
23570
23571
23572
23573
23574
23575
23576
23577
23578
23579
23580
23581
23582
23583
23584
23585
23586
23587
23588
23589
23590
23591
23592
23593
23594
23595
23596
23597
23598
23599
23600
23601
23602
23603
23604
23605
23606
23607
23608
23609
23610
23611
23612
23613
23614
23615
23616
23617
23618
23619
23620
23621
23622
23623
23624
23625
23626
23627
23628
23629
23630
23631
23632
23633
23634
23635
23636
23637
23638
23639
23640
23641
23642
23643
23644
23645
23646
23647
23648
23649
23650
23651
23652
23653
23654
23655
23656
23657
23658
23659
23660
23661
23662
23663
23664
23665
23666
23667
23668
23669
23670
23671
23672
23673
23674
23675
23676
23677
23678
23679
23680
23681
23682
23683
23684
23685
23686
23687
23688
23689
23690
23691
23692
23693
23694
23695
23696
23697
23698
23699
23700
23701
23702
23703
23704
23705
23706
23707
23708
23709
23710
23711
23712
23713
23714
23715
23716
23717
23718
23719
23720
23721
23722
23723
23724
23725
23726
23727
23728
23729
23730
23731
23732
23733
23734
23735
23736
23737
23738
23739
23740
23741
23742
23743
23744
23745
23746
23747
23748
23749
23750
23751
23752
23753
23754
23755
23756
23757
23758
23759
23760
23761
23762
23763
23764
23765
23766
23767
23768
23769
23770
23771
23772
23773
23774
23775
23776
23777
23778
23779
23780
23781
23782
23783
23784
23785
23786
23787
23788
23789
23790
23791
23792
23793
23794
23795
23796
23797
23798
23799
23800
23801
23802
23803
23804
23805
23806
23807
23808
23809
23810
23811
23812
23813
23814
23815
23816
23817
23818
23819
23820
23821
23822
23823
23824
23825
23826
23827
23828
23829
23830
23831
23832
23833
23834
23835
23836
23837
23838
23839
23840
23841
23842
23843
23844
23845
23846
23847
23848
23849
23850
23851
23852
23853
23854
23855
23856
23857
23858
23859
23860
23861
23862
23863
23864
23865
23866
23867
23868
23869
23870
23871
23872
23873
23874
23875
23876
23877
23878
23879
23880
23881
23882
23883
23884
23885
23886
23887
23888
23889
23890
23891
23892
23893
23894
23895
23896
23897
23898
23899
23900
23901
23902
23903
23904
23905
23906
23907
23908
23909
23910
23911
23912
23913
23914
23915
23916
23917
23918
23919
23920
23921
23922
23923
23924
23925
23926
23927
23928
23929
23930
23931
23932
23933
23934
23935
23936
23937
23938
23939
23940
23941
23942
23943
23944
23945
23946
23947
23948
23949
23950
23951
23952
23953
23954
23955
23956
23957
23958
23959
23960
23961
23962
23963
23964
23965
23966
23967
23968
23969
23970
23971
23972
23973
23974
23975
23976
23977
23978
23979
23980
23981
23982
23983
23984
23985
23986
23987
23988
23989
23990
23991
23992
23993
23994
23995
23996
23997
23998
23999
24000
24001
24002
24003
24004
24005
24006
24007
24008
24009
24010
24011
24012
24013
24014
24015
24016
24017
24018
24019
24020
24021
24022
24023
24024
24025
24026
24027
24028
24029
24030
24031
24032
24033
24034
24035
24036
24037
24038
24039
24040
24041
24042
24043
24044
24045
24046
24047
24048
24049
24050
24051
24052
24053
24054
24055
24056
24057
24058
24059
24060
24061
24062
24063
24064
24065
24066
24067
24068
24069
24070
24071
24072
24073
24074
24075
24076
24077
24078
24079
24080
24081
24082
24083
24084
24085
24086
24087
24088
24089
24090
24091
24092
24093
24094
24095
24096
24097
24098
24099
24100
24101
24102
24103
24104
24105
24106
24107
24108
24109
24110
24111
24112
24113
24114
24115
24116
24117
24118
24119
24120
24121
24122
24123
24124
24125
24126
24127
24128
24129
24130
24131
24132
24133
24134
24135
24136
24137
24138
24139
24140
24141
24142
24143
24144
24145
24146
24147
24148
24149
24150
24151
24152
24153
24154
24155
24156
24157
24158
24159
24160
24161
24162
24163
24164
24165
24166
24167
24168
24169
24170
24171
24172
24173
24174
24175
24176
24177
24178
24179
24180
24181
24182
24183
24184
24185
24186
24187
24188
24189
24190
24191
24192
24193
24194
24195
24196
24197
24198
24199
24200
24201
24202
24203
24204
24205
24206
24207
24208
24209
24210
24211
24212
24213
24214
24215
24216
24217
24218
24219
24220
24221
24222
24223
24224
24225
24226
24227
24228
24229
24230
24231
24232
24233
24234
24235
24236
24237
24238
24239
24240
24241
24242
24243
24244
24245
24246
24247
24248
24249
24250
24251
24252
24253
24254
24255
24256
24257
24258
24259
24260
24261
24262
24263
24264
24265
24266
24267
24268
24269
24270
24271
24272
24273
24274
24275
24276
24277
24278
24279
24280
24281
24282
24283
24284
24285
24286
24287
24288
24289
24290
24291
24292
24293
24294
24295
24296
24297
24298
24299
24300
24301
24302
24303
24304
24305
24306
24307
24308
24309
24310
24311
24312
24313
24314
24315
24316
24317
24318
24319
24320
24321
24322
24323
24324
24325
24326
24327
24328
24329
24330
24331
24332
24333
24334
24335
24336
24337
24338
24339
24340
24341
24342
24343
24344
24345
24346
24347
24348
24349
24350
24351
24352
24353
24354
24355
24356
24357
24358
24359
24360
24361
24362
24363
24364
24365
24366
24367
24368
24369
24370
24371
24372
24373
24374
24375
24376
24377
24378
24379
24380
24381
24382
24383
24384
24385
24386
24387
24388
24389
24390
24391
24392
24393
24394
24395
24396
24397
24398
24399
24400
24401
24402
24403
24404
24405
24406
24407
24408
24409
24410
24411
24412
24413
24414
24415
24416
24417
24418
24419
24420
24421
24422
24423
24424
24425
24426
24427
24428
24429
24430
24431
24432
24433
24434
24435
24436
24437
24438
24439
24440
24441
24442
24443
24444
24445
24446
24447
24448
24449
24450
24451
24452
24453
24454
24455
24456
24457
24458
24459
24460
24461
24462
24463
24464
24465
24466
24467
24468
24469
24470
24471
24472
24473
24474
24475
24476
24477
24478
24479
24480
24481
24482
24483
24484
24485
24486
24487
24488
24489
24490
24491
24492
24493
24494
24495
24496
24497
24498
24499
24500
24501
24502
24503
24504
24505
24506
24507
24508
24509
24510
24511
24512
24513
24514
24515
24516
24517
24518
24519
24520
24521
24522
24523
24524
24525
24526
24527
24528
24529
24530
24531
24532
24533
24534
24535
24536
24537
24538
24539
24540
24541
24542
24543
24544
24545
24546
24547
24548
24549
24550
24551
24552
24553
24554
24555
24556
24557
24558
24559
24560
24561
24562
24563
24564
24565
24566
24567
24568
24569
24570
24571
24572
24573
24574
24575
24576
24577
24578
24579
24580
24581
24582
24583
24584
24585
24586
24587
24588
24589
24590
24591
24592
24593
24594
24595
24596
24597
24598
24599
24600
24601
24602
24603
24604
24605
24606
24607
24608
24609
24610
24611
24612
24613
24614
24615
24616
24617
24618
24619
24620
24621
24622
24623
24624
24625
24626
24627
24628
24629
24630
24631
24632
24633
24634
24635
24636
24637
24638
24639
24640
24641
24642
24643
24644
24645
24646
24647
24648
24649
24650
24651
24652
24653
24654
24655
24656
24657
24658
24659
24660
24661
24662
24663
24664
24665
24666
24667
24668
24669
24670
24671
24672
24673
24674
24675
24676
24677
24678
24679
24680
24681
24682
24683
24684
24685
24686
24687
24688
24689
24690
24691
24692
24693
24694
24695
24696
24697
24698
24699
24700
24701
24702
24703
24704
24705
24706
24707
24708
24709
24710
24711
24712
24713
24714
24715
24716
24717
24718
24719
24720
24721
24722
24723
24724
24725
24726
24727
24728
24729
24730
24731
24732
24733
24734
24735
24736
24737
24738
24739
24740
24741
24742
24743
24744
24745
24746
24747
24748
24749
24750
24751
24752
24753
24754
24755
24756
24757
24758
24759
24760
24761
24762
24763
24764
24765
24766
24767
24768
24769
24770
24771
24772
24773
24774
24775
24776
24777
24778
24779
24780
24781
24782
24783
24784
24785
24786
24787
24788
24789
24790
24791
24792
24793
24794
24795
24796
24797
24798
24799
24800
24801
24802
24803
24804
24805
24806
24807
24808
24809
24810
24811
24812
24813
24814
24815
24816
24817
24818
24819
24820
24821
24822
24823
24824
24825
24826
24827
24828
24829
24830
24831
24832
24833
24834
24835
24836
24837
24838
24839
24840
24841
24842
24843
24844
24845
24846
24847
24848
24849
24850
24851
24852
24853
24854
24855
24856
24857
24858
24859
24860
24861
24862
24863
24864
24865
24866
24867
24868
24869
24870
24871
24872
24873
24874
24875
24876
24877
24878
24879
24880
24881
24882
24883
24884
24885
24886
24887
24888
24889
24890
24891
24892
24893
24894
24895
24896
24897
24898
24899
24900
24901
24902
24903
24904
24905
24906
24907
24908
24909
24910
24911
24912
24913
24914
24915
24916
24917
24918
24919
24920
24921
24922
24923
24924
24925
24926
24927
24928
24929
24930
24931
24932
24933
24934
24935
24936
24937
24938
24939
24940
24941
24942
24943
24944
24945
24946
24947
24948
24949
24950
24951
24952
24953
24954
24955
24956
24957
24958
24959
24960
24961
24962
24963
24964
24965
24966
24967
24968
24969
24970
24971
24972
24973
24974
24975
24976
24977
24978
24979
24980
24981
24982
24983
24984
24985
24986
24987
24988
24989
24990
24991
24992
24993
24994
24995
24996
24997
24998
24999
25000
25001
25002
25003
25004
25005
25006
25007
25008
25009
25010
25011
25012
25013
25014
25015
25016
25017
25018
25019
25020
25021
25022
25023
25024
25025
25026
25027
25028
25029
25030
25031
25032
25033
25034
25035
25036
25037
25038
25039
25040
25041
25042
25043
25044
25045
25046
25047
25048
25049
25050
25051
25052
25053
25054
25055
25056
25057
25058
25059
25060
25061
25062
25063
25064
25065
25066
25067
25068
25069
25070
25071
25072
25073
25074
25075
25076
25077
25078
25079
25080
25081
25082
25083
25084
25085
25086
25087
25088
25089
25090
25091
25092
25093
25094
25095
25096
25097
25098
25099
25100
25101
25102
25103
25104
25105
25106
25107
25108
25109
25110
25111
25112
25113
25114
25115
25116
25117
25118
25119
25120
25121
25122
25123
25124
25125
25126
25127
25128
25129
25130
25131
25132
25133
25134
25135
25136
25137
25138
25139
25140
25141
25142
25143
25144
25145
25146
25147
25148
25149
25150
25151
25152
25153
25154
25155
25156
25157
25158
25159
25160
25161
25162
25163
25164
25165
25166
25167
25168
25169
25170
25171
25172
25173
25174
25175
25176
25177
25178
25179
25180
25181
25182
25183
25184
25185
25186
25187
25188
25189
25190
25191
25192
25193
25194
25195
25196
25197
25198
25199
25200
25201
25202
25203
25204
25205
25206
25207
25208
25209
25210
25211
25212
25213
25214
25215
25216
25217
25218
25219
25220
25221
25222
25223
25224
25225
25226
25227
25228
25229
25230
25231
25232
25233
25234
25235
25236
25237
25238
25239
25240
25241
25242
25243
25244
25245
25246
25247
25248
25249
25250
25251
25252
25253
25254
25255
25256
25257
25258
25259
25260
25261
25262
25263
25264
25265
25266
25267
25268
25269
25270
25271
25272
25273
25274
25275
25276
25277
25278
25279
25280
25281
25282
25283
25284
25285
25286
25287
25288
25289
25290
25291
25292
25293
25294
25295
25296
25297
25298
25299
25300
25301
25302
25303
25304
25305
25306
25307
25308
25309
25310
25311
25312
25313
25314
25315
25316
25317
25318
25319
25320
25321
25322
25323
25324
25325
25326
25327
25328
25329
25330
25331
25332
25333
25334
25335
25336
25337
25338
25339
25340
25341
25342
25343
25344
25345
25346
25347
25348
25349
25350
25351
25352
25353
25354
25355
25356
25357
25358
25359
25360
25361
25362
25363
25364
25365
25366
25367
25368
25369
25370
25371
25372
25373
25374
25375
25376
25377
25378
25379
25380
25381
25382
25383
25384
25385
25386
25387
25388
25389
25390
25391
25392
25393
25394
25395
25396
25397
25398
25399
25400
25401
25402
25403
25404
25405
25406
25407
25408
25409
25410
25411
25412
25413
25414
25415
25416
25417
25418
25419
25420
25421
25422
25423
25424
25425
25426
25427
25428
25429
25430
25431
25432
25433
25434
25435
25436
25437
25438
25439
25440
25441
25442
25443
25444
25445
25446
25447
25448
25449
25450
25451
25452
25453
25454
25455
25456
25457
25458
25459
25460
25461
25462
25463
25464
25465
25466
25467
25468
25469
25470
25471
25472
25473
25474
25475
25476
25477
25478
25479
25480
25481
25482
25483
25484
25485
25486
25487
25488
25489
25490
25491
25492
25493
25494
25495
25496
25497
25498
25499
25500
25501
25502
25503
25504
25505
25506
25507
25508
25509
25510
25511
25512
25513
25514
25515
25516
25517
25518
25519
25520
25521
25522
25523
25524
25525
25526
25527
25528
25529
25530
25531
25532
25533
25534
25535
25536
25537
25538
25539
25540
25541
25542
25543
25544
25545
25546
25547
25548
25549
25550
25551
25552
25553
25554
25555
25556
25557
25558
25559
25560
25561
25562
25563
25564
25565
25566
25567
25568
25569
25570
25571
25572
25573
25574
25575
25576
25577
25578
25579
25580
25581
25582
25583
25584
25585
25586
25587
25588
25589
25590
25591
25592
25593
25594
25595
25596
25597
25598
25599
25600
25601
25602
25603
25604
25605
25606
25607
25608
25609
25610
25611
25612
25613
25614
25615
25616
25617
25618
25619
25620
25621
25622
25623
25624
25625
25626
25627
25628
25629
25630
25631
25632
25633
25634
25635
25636
25637
25638
25639
25640
25641
25642
25643
25644
25645
25646
25647
25648
25649
25650
25651
25652
25653
25654
25655
25656
25657
25658
25659
25660
25661
25662
25663
25664
25665
25666
25667
25668
25669
25670
25671
25672
25673
25674
25675
25676
25677
25678
25679
25680
25681
25682
25683
25684
25685
25686
25687
25688
25689
25690
25691
25692
25693
25694
25695
25696
25697
25698
25699
25700
25701
25702
25703
25704
25705
25706
25707
25708
25709
25710
25711
25712
25713
25714
25715
25716
25717
25718
25719
25720
25721
25722
25723
25724
25725
25726
25727
25728
25729
25730
25731
25732
25733
25734
25735
25736
25737
25738
25739
25740
25741
25742
25743
25744
25745
25746
25747
25748
25749
25750
25751
25752
25753
25754
25755
25756
25757
25758
25759
25760
25761
25762
25763
25764
25765
25766
25767
25768
25769
25770
25771
25772
25773
25774
25775
25776
25777
25778
25779
25780
25781
25782
25783
25784
25785
25786
25787
25788
25789
25790
25791
25792
25793
25794
25795
25796
25797
25798
25799
25800
25801
25802
25803
25804
25805
25806
25807
25808
25809
25810
25811
25812
25813
25814
25815
25816
25817
25818
25819
25820
25821
25822
25823
25824
25825
25826
25827
25828
25829
25830
25831
25832
25833
25834
25835
25836
25837
25838
25839
25840
25841
25842
25843
25844
25845
25846
25847
25848
25849
25850
25851
25852
25853
25854
25855
25856
25857
25858
25859
25860
25861
25862
25863
25864
25865
25866
25867
25868
25869
25870
25871
25872
25873
25874
25875
25876
25877
25878
25879
25880
25881
25882
25883
25884
25885
25886
25887
25888
25889
25890
25891
25892
25893
25894
25895
25896
25897
25898
25899
25900
25901
25902
25903
25904
25905
25906
25907
25908
25909
25910
25911
25912
25913
25914
25915
25916
25917
25918
25919
25920
25921
25922
25923
25924
25925
25926
25927
25928
25929
25930
25931
25932
25933
25934
25935
25936
25937
25938
25939
25940
25941
25942
25943
25944
25945
25946
25947
25948
25949
25950
25951
25952
25953
25954
25955
25956
25957
25958
25959
25960
25961
25962
25963
25964
25965
25966
25967
25968
25969
25970
25971
25972
25973
25974
25975
25976
25977
25978
25979
25980
25981
25982
25983
25984
25985
25986
25987
25988
25989
25990
25991
25992
25993
25994
25995
25996
25997
25998
25999
26000
26001
26002
26003
26004
26005
26006
26007
26008
26009
26010
26011
26012
26013
26014
26015
26016
26017
26018
26019
26020
26021
26022
26023
26024
26025
26026
26027
26028
26029
26030
26031
26032
26033
26034
26035
26036
26037
26038
26039
26040
26041
26042
26043
26044
26045
26046
26047
26048
26049
26050
26051
26052
26053
26054
26055
26056
26057
26058
26059
26060
26061
26062
26063
26064
26065
26066
26067
26068
26069
26070
26071
26072
26073
26074
26075
26076
26077
26078
26079
26080
26081
26082
26083
26084
26085
26086
26087
26088
26089
26090
26091
26092
26093
26094
26095
26096
26097
26098
26099
26100
26101
26102
26103
26104
26105
26106
26107
26108
26109
26110
26111
26112
26113
26114
26115
26116
26117
26118
26119
26120
26121
26122
26123
26124
26125
26126
26127
26128
26129
26130
26131
26132
26133
26134
26135
26136
26137
26138
26139
26140
26141
26142
26143
26144
26145
26146
26147
26148
26149
26150
26151
26152
26153
26154
26155
26156
26157
26158
26159
26160
26161
26162
26163
26164
26165
26166
26167
26168
26169
26170
26171
26172
26173
26174
26175
26176
26177
26178
26179
26180
26181
26182
26183
26184
26185
26186
26187
26188
26189
26190
26191
26192
26193
26194
26195
26196
26197
26198
26199
26200
26201
26202
26203
26204
26205
26206
26207
26208
26209
26210
26211
26212
26213
26214
26215
26216
26217
26218
26219
26220
26221
26222
26223
26224
26225
26226
26227
26228
26229
26230
26231
26232
26233
26234
26235
26236
26237
26238
26239
26240
26241
26242
26243
26244
26245
26246
26247
26248
26249
26250
26251
26252
26253
26254
26255
26256
26257
26258
26259
26260
26261
26262
26263
26264
26265
26266
26267
26268
26269
26270
26271
26272
26273
26274
26275
26276
26277
26278
26279
26280
26281
26282
26283
26284
26285
26286
26287
26288
26289
26290
26291
26292
26293
26294
26295
26296
26297
26298
26299
26300
26301
26302
26303
26304
26305
26306
26307
26308
26309
26310
26311
26312
26313
26314
26315
26316
26317
26318
26319
26320
26321
26322
26323
26324
26325
26326
26327
26328
26329
26330
26331
26332
26333
26334
26335
26336
26337
26338
26339
26340
26341
26342
26343
26344
26345
26346
26347
26348
26349
26350
26351
26352
26353
26354
26355
26356
26357
26358
26359
26360
26361
26362
26363
26364
26365
26366
26367
26368
26369
26370
26371
26372
26373
26374
26375
26376
26377
26378
26379
26380
26381
26382
26383
26384
26385
26386
26387
26388
26389
26390
26391
26392
26393
26394
26395
26396
26397
26398
26399
26400
26401
26402
26403
26404
26405
26406
26407
26408
26409
26410
26411
26412
26413
26414
26415
26416
26417
26418
26419
26420
26421
26422
26423
26424
26425
26426
26427
26428
26429
26430
26431
26432
26433
26434
26435
26436
26437
26438
26439
26440
26441
26442
26443
26444
26445
26446
26447
26448
26449
26450
26451
26452
26453
26454
26455
26456
26457
26458
26459
26460
26461
26462
26463
26464
26465
26466
26467
26468
26469
26470
26471
26472
26473
26474
26475
26476
26477
26478
26479
26480
26481
26482
26483
26484
26485
26486
26487
26488
26489
26490
26491
26492
26493
26494
26495
26496
26497
26498
26499
26500
26501
26502
26503
26504
26505
26506
26507
26508
26509
26510
26511
26512
26513
26514
26515
26516
26517
26518
26519
26520
26521
26522
26523
26524
26525
26526
26527
26528
26529
26530
26531
26532
26533
26534
26535
26536
26537
26538
26539
26540
26541
26542
26543
26544
26545
26546
26547
26548
26549
26550
26551
26552
26553
26554
26555
26556
26557
26558
26559
26560
26561
26562
26563
26564
26565
26566
26567
26568
26569
26570
26571
26572
26573
26574
26575
26576
26577
26578
26579
26580
26581
26582
26583
26584
26585
26586
26587
26588
26589
26590
26591
26592
26593
26594
26595
26596
26597
26598
26599
26600
26601
26602
26603
26604
26605
26606
26607
26608
26609
26610
26611
26612
26613
26614
26615
26616
26617
26618
26619
26620
26621
26622
26623
26624
26625
26626
26627
26628
26629
26630
26631
26632
26633
26634
26635
26636
26637
26638
26639
26640
26641
26642
26643
26644
26645
26646
26647
26648
26649
26650
26651
26652
26653
26654
26655
26656
26657
26658
26659
26660
26661
26662
26663
26664
26665
26666
26667
26668
26669
26670
26671
26672
26673
26674
26675
26676
26677
26678
26679
26680
26681
26682
26683
26684
26685
26686
26687
26688
26689
26690
26691
26692
26693
26694
26695
26696
26697
26698
26699
26700
26701
26702
26703
26704
26705
26706
26707
26708
26709
26710
26711
26712
26713
26714
26715
26716
26717
26718
26719
26720
26721
26722
26723
26724
26725
26726
26727
26728
26729
26730
26731
26732
26733
26734
26735
26736
26737
26738
26739
26740
26741
26742
26743
26744
26745
26746
26747
26748
26749
26750
26751
26752
26753
26754
26755
26756
26757
26758
26759
26760
26761
26762
26763
26764
26765
26766
26767
26768
26769
26770
26771
26772
26773
26774
26775
26776
26777
26778
26779
26780
26781
26782
26783
26784
26785
26786
26787
26788
26789
26790
26791
26792
26793
26794
26795
26796
26797
26798
26799
26800
26801
26802
26803
26804
26805
26806
26807
26808
26809
26810
26811
26812
26813
26814
26815
26816
26817
26818
26819
26820
26821
26822
26823
26824
26825
26826
26827
26828
26829
26830
26831
26832
26833
26834
26835
26836
26837
26838
26839
26840
26841
26842
26843
26844
26845
26846
26847
26848
26849
26850
26851
26852
26853
26854
26855
26856
26857
26858
26859
26860
26861
26862
26863
26864
26865
26866
26867
26868
26869
26870
26871
26872
26873
26874
26875
26876
26877
26878
26879
26880
26881
26882
26883
26884
26885
26886
26887
26888
26889
26890
26891
26892
26893
26894
26895
26896
26897
26898
26899
26900
26901
26902
26903
26904
26905
26906
26907
26908
26909
26910
26911
26912
26913
26914
26915
26916
26917
26918
26919
26920
26921
26922
26923
26924
26925
26926
26927
26928
26929
26930
26931
26932
26933
26934
26935
26936
26937
26938
26939
26940
26941
26942
26943
26944
26945
26946
26947
26948
26949
26950
26951
26952
26953
26954
26955
26956
26957
26958
26959
26960
26961
26962
26963
26964
26965
26966
26967
26968
26969
26970
26971
26972
26973
26974
26975
26976
26977
26978
26979
26980
26981
26982
26983
26984
26985
26986
26987
26988
26989
26990
26991
26992
26993
26994
26995
26996
26997
26998
26999
27000
27001
27002
27003
27004
27005
27006
27007
27008
27009
27010
27011
27012
27013
27014
27015
27016
27017
27018
27019
27020
27021
27022
27023
27024
27025
27026
27027
27028
27029
27030
27031
27032
27033
27034
27035
27036
27037
27038
27039
27040
27041
27042
27043
27044
27045
27046
27047
27048
27049
27050
27051
27052
27053
27054
27055
27056
27057
27058
27059
27060
27061
27062
27063
27064
27065
27066
27067
27068
27069
27070
27071
27072
27073
27074
27075
27076
27077
27078
27079
27080
27081
27082
27083
27084
27085
27086
27087
27088
27089
27090
27091
27092
27093
27094
27095
27096
27097
27098
27099
27100
27101
27102
27103
27104
27105
27106
27107
27108
27109
27110
27111
27112
27113
27114
27115
27116
27117
27118
27119
27120
27121
27122
27123
27124
27125
27126
27127
27128
27129
27130
27131
27132
27133
27134
27135
27136
27137
27138
27139
27140
27141
27142
27143
27144
27145
27146
27147
27148
27149
27150
27151
27152
27153
27154
27155
27156
27157
27158
27159
27160
27161
27162
27163
27164
27165
27166
27167
27168
27169
27170
27171
27172
27173
27174
27175
27176
27177
27178
27179
27180
27181
27182
27183
27184
27185
27186
27187
27188
27189
27190
27191
27192
27193
27194
27195
27196
27197
27198
27199
27200
27201
27202
27203
27204
27205
27206
27207
27208
27209
27210
27211
27212
27213
27214
27215
27216
27217
27218
27219
27220
27221
27222
27223
27224
27225
27226
27227
27228
27229
27230
27231
27232
27233
27234
27235
27236
27237
27238
27239
27240
27241
27242
27243
27244
27245
27246
27247
27248
27249
27250
27251
27252
27253
27254
27255
27256
27257
27258
27259
27260
27261
27262
27263
27264
27265
27266
27267
27268
27269
27270
27271
27272
27273
27274
27275
27276
27277
27278
27279
27280
27281
27282
27283
27284
27285
27286
27287
27288
27289
27290
27291
27292
27293
27294
27295
27296
27297
27298
27299
27300
27301
27302
27303
27304
27305
27306
27307
27308
27309
27310
27311
27312
27313
27314
27315
27316
27317
27318
27319
27320
27321
27322
27323
27324
27325
27326
27327
27328
27329
27330
27331
27332
27333
27334
27335
27336
27337
27338
27339
27340
27341
27342
27343
27344
27345
27346
27347
27348
27349
27350
27351
27352
27353
27354
27355
27356
27357
27358
27359
27360
27361
27362
27363
27364
27365
27366
27367
27368
27369
27370
27371
27372
27373
27374
27375
27376
27377
27378
27379
27380
27381
27382
27383
27384
27385
27386
27387
27388
27389
27390
27391
27392
27393
27394
27395
27396
27397
27398
27399
27400
27401
27402
27403
27404
27405
27406
27407
27408
27409
27410
27411
27412
27413
27414
27415
27416
27417
27418
27419
27420
27421
27422
27423
27424
27425
27426
27427
27428
27429
27430
27431
27432
27433
27434
27435
27436
27437
27438
27439
27440
27441
27442
27443
27444
27445
27446
27447
27448
27449
27450
27451
27452
27453
27454
27455
27456
27457
27458
27459
27460
27461
27462
27463
27464
27465
27466
27467
27468
27469
27470
27471
27472
27473
27474
27475
27476
27477
27478
27479
27480
27481
27482
27483
27484
27485
27486
27487
27488
27489
27490
27491
27492
27493
27494
27495
27496
27497
27498
27499
27500
27501
27502
27503
27504
27505
27506
27507
27508
27509
27510
27511
27512
27513
27514
27515
27516
27517
27518
27519
27520
27521
27522
27523
27524
27525
27526
27527
27528
27529
27530
27531
27532
27533
27534
27535
27536
27537
27538
27539
27540
27541
27542
27543
27544
27545
27546
27547
27548
27549
27550
27551
27552
27553
27554
27555
27556
27557
27558
27559
27560
27561
27562
27563
27564
27565
27566
27567
27568
27569
27570
27571
27572
27573
27574
27575
27576
27577
27578
27579
27580
27581
27582
27583
27584
27585
27586
27587
27588
27589
27590
27591
27592
27593
27594
27595
27596
27597
27598
27599
27600
27601
27602
27603
27604
27605
27606
27607
27608
27609
27610
27611
27612
27613
27614
27615
27616
27617
27618
27619
27620
27621
27622
27623
27624
27625
27626
27627
27628
27629
27630
27631
27632
27633
27634
27635
27636
27637
27638
27639
27640
27641
27642
27643
27644
27645
27646
27647
27648
27649
27650
27651
27652
27653
27654
27655
27656
27657
27658
27659
27660
27661
27662
27663
27664
27665
27666
27667
27668
27669
27670
27671
27672
27673
27674
27675
27676
27677
27678
27679
27680
27681
27682
27683
27684
27685
27686
27687
27688
27689
27690
27691
27692
27693
27694
27695
27696
27697
27698
27699
27700
27701
27702
27703
27704
27705
27706
27707
27708
27709
27710
27711
27712
27713
27714
27715
27716
27717
27718
27719
27720
27721
27722
27723
27724
27725
27726
27727
27728
27729
27730
27731
27732
27733
27734
27735
27736
27737
27738
27739
27740
27741
27742
27743
27744
27745
27746
27747
27748
27749
27750
27751
27752
27753
27754
27755
27756
27757
27758
27759
27760
27761
27762
27763
27764
27765
27766
27767
27768
27769
27770
27771
27772
27773
27774
27775
27776
27777
27778
27779
27780
27781
27782
27783
27784
27785
27786
27787
27788
27789
27790
27791
27792
27793
27794
27795
27796
27797
27798
27799
27800
27801
27802
27803
27804
27805
27806
27807
27808
27809
27810
27811
27812
27813
27814
27815
27816
27817
27818
27819
27820
27821
27822
27823
27824
27825
27826
27827
27828
27829
27830
27831
27832
27833
27834
27835
27836
27837
27838
27839
27840
27841
27842
27843
27844
27845
27846
27847
27848
27849
27850
27851
27852
27853
27854
27855
27856
27857
27858
27859
27860
27861
27862
27863
27864
27865
27866
27867
27868
27869
27870
27871
27872
27873
27874
27875
27876
27877
27878
27879
27880
27881
27882
27883
27884
27885
27886
27887
27888
27889
27890
27891
27892
27893
27894
27895
27896
27897
27898
27899
27900
27901
27902
27903
27904
27905
27906
27907
27908
27909
27910
27911
27912
27913
27914
27915
27916
27917
27918
27919
27920
27921
27922
27923
27924
27925
27926
27927
27928
27929
27930
27931
27932
27933
27934
27935
27936
27937
27938
27939
27940
27941
27942
27943
27944
27945
27946
27947
27948
27949
27950
27951
27952
27953
27954
27955
27956
27957
27958
27959
27960
27961
27962
27963
27964
27965
27966
27967
27968
27969
27970
27971
27972
27973
27974
27975
27976
27977
27978
27979
27980
27981
27982
27983
27984
27985
27986
27987
27988
27989
27990
27991
27992
27993
27994
27995
27996
27997
27998
27999
28000
28001
28002
28003
28004
28005
28006
28007
28008
28009
28010
28011
28012
28013
28014
28015
28016
28017
28018
28019
28020
28021
28022
28023
28024
28025
28026
28027
28028
28029
28030
28031
28032
28033
28034
28035
28036
28037
28038
28039
28040
28041
28042
28043
28044
28045
28046
28047
28048
28049
28050
28051
28052
28053
28054
28055
28056
28057
28058
28059
28060
28061
28062
28063
28064
28065
28066
28067
28068
28069
28070
28071
28072
28073
28074
28075
28076
28077
28078
28079
28080
28081
28082
28083
28084
28085
28086
28087
28088
28089
28090
28091
28092
28093
28094
28095
28096
28097
28098
28099
28100
28101
28102
28103
28104
28105
28106
28107
28108
28109
28110
28111
28112
28113
28114
28115
28116
28117
28118
28119
28120
28121
28122
28123
28124
28125
28126
28127
28128
28129
28130
28131
28132
28133
28134
28135
28136
28137
28138
28139
28140
28141
28142
28143
28144
28145
28146
28147
28148
28149
28150
28151
28152
28153
28154
28155
28156
28157
28158
28159
28160
28161
28162
28163
28164
28165
28166
28167
28168
28169
28170
28171
28172
28173
28174
28175
28176
28177
28178
28179
28180
28181
28182
28183
28184
28185
28186
28187
28188
28189
28190
28191
28192
28193
28194
28195
28196
28197
28198
28199
28200
28201
28202
28203
28204
28205
28206
28207
28208
28209
28210
28211
28212
28213
28214
28215
28216
28217
28218
28219
28220
28221
28222
28223
28224
28225
28226
28227
28228
28229
28230
28231
28232
28233
28234
28235
28236
28237
28238
28239
28240
28241
28242
28243
28244
28245
28246
28247
28248
28249
28250
28251
28252
28253
28254
28255
28256
28257
28258
28259
28260
28261
28262
28263
28264
28265
28266
28267
28268
28269
28270
28271
28272
28273
28274
28275
28276
28277
28278
28279
28280
28281
28282
28283
28284
28285
28286
28287
28288
28289
28290
28291
28292
28293
28294
28295
28296
28297
28298
28299
28300
28301
28302
28303
28304
28305
28306
28307
28308
28309
28310
28311
28312
28313
28314
28315
28316
28317
28318
28319
28320
28321
28322
28323
28324
28325
28326
28327
28328
28329
28330
28331
28332
28333
28334
28335
28336
28337
28338
28339
28340
28341
28342
28343
28344
28345
28346
28347
28348
28349
28350
28351
28352
28353
28354
28355
28356
28357
28358
28359
28360
28361
28362
28363
28364
28365
28366
28367
28368
28369
28370
28371
28372
28373
28374
28375
28376
28377
28378
28379
28380
28381
28382
28383
28384
28385
28386
28387
28388
28389
28390
28391
28392
28393
28394
28395
28396
28397
28398
28399
28400
28401
28402
28403
28404
28405
28406
28407
28408
28409
28410
28411
28412
28413
28414
28415
28416
28417
28418
28419
28420
28421
28422
28423
28424
28425
28426
28427
28428
28429
28430
28431
28432
28433
28434
28435
28436
28437
28438
28439
28440
28441
28442
28443
28444
28445
28446
28447
28448
28449
28450
28451
28452
28453
28454
28455
28456
28457
28458
28459
28460
28461
28462
28463
28464
28465
28466
28467
28468
28469
28470
28471
28472
28473
28474
28475
28476
28477
28478
28479
28480
28481
28482
28483
28484
28485
28486
28487
28488
28489
28490
28491
28492
28493
28494
28495
28496
28497
28498
28499
28500
28501
28502
28503
28504
28505
28506
28507
28508
28509
28510
28511
28512
28513
28514
28515
28516
28517
28518
28519
28520
28521
28522
28523
28524
28525
28526
28527
28528
28529
28530
28531
28532
28533
28534
28535
28536
28537
28538
28539
28540
28541
28542
28543
28544
28545
28546
28547
28548
28549
28550
28551
28552
28553
28554
28555
28556
28557
28558
28559
28560
28561
28562
28563
28564
28565
28566
28567
28568
28569
28570
28571
28572
28573
28574
28575
28576
28577
28578
28579
28580
28581
28582
28583
28584
28585
28586
28587
28588
28589
28590
28591
28592
28593
28594
28595
28596
28597
28598
28599
28600
28601
28602
28603
28604
28605
28606
28607
28608
28609
28610
28611
28612
28613
28614
28615
28616
28617
28618
28619
28620
28621
28622
28623
28624
28625
28626
28627
28628
28629
28630
28631
28632
28633
28634
28635
28636
28637
28638
28639
28640
28641
28642
28643
28644
28645
28646
28647
28648
28649
28650
28651
28652
28653
28654
28655
28656
28657
28658
28659
28660
28661
28662
28663
28664
28665
28666
28667
28668
28669
28670
28671
28672
28673
28674
28675
28676
28677
28678
28679
28680
28681
28682
28683
28684
28685
28686
28687
28688
28689
28690
28691
28692
28693
28694
28695
28696
28697
28698
28699
28700
28701
28702
28703
28704
28705
28706
28707
28708
28709
28710
28711
28712
28713
28714
28715
28716
28717
28718
28719
28720
28721
28722
28723
28724
28725
28726
28727
28728
28729
28730
28731
28732
28733
28734
28735
28736
28737
28738
28739
28740
28741
28742
28743
28744
28745
28746
28747
28748
28749
28750
28751
28752
28753
28754
28755
28756
28757
28758
28759
28760
28761
28762
28763
28764
28765
28766
28767
28768
28769
28770
28771
28772
28773
28774
28775
28776
28777
28778
28779
28780
28781
28782
28783
28784
28785
28786
28787
28788
28789
28790
28791
28792
28793
28794
28795
28796
28797
28798
28799
28800
28801
28802
28803
28804
28805
28806
28807
28808
28809
28810
28811
28812
28813
28814
28815
28816
28817
28818
28819
28820
28821
28822
28823
28824
28825
28826
28827
28828
28829
28830
28831
28832
28833
28834
28835
28836
28837
28838
28839
28840
28841
28842
28843
28844
28845
28846
28847
28848
28849
28850
28851
28852
28853
28854
28855
28856
28857
28858
28859
28860
28861
28862
28863
28864
28865
28866
28867
28868
28869
28870
28871
28872
28873
28874
28875
28876
28877
28878
28879
28880
28881
28882
28883
28884
28885
28886
28887
28888
28889
28890
28891
28892
28893
28894
28895
28896
28897
28898
28899
28900
28901
28902
28903
28904
28905
28906
28907
28908
28909
28910
28911
28912
28913
28914
28915
28916
28917
28918
28919
28920
28921
28922
28923
28924
28925
28926
28927
28928
28929
28930
28931
28932
28933
28934
28935
28936
28937
28938
28939
28940
28941
28942
28943
28944
28945
28946
28947
28948
28949
28950
28951
28952
28953
28954
28955
28956
28957
28958
28959
28960
28961
28962
28963
28964
28965
28966
28967
28968
28969
28970
28971
28972
28973
28974
28975
28976
28977
28978
28979
28980
28981
28982
28983
28984
28985
28986
28987
28988
28989
28990
28991
28992
28993
28994
28995
28996
28997
28998
28999
29000
29001
29002
29003
29004
29005
29006
29007
29008
29009
29010
29011
29012
29013
29014
29015
29016
29017
29018
29019
29020
29021
29022
29023
29024
29025
29026
29027
29028
29029
29030
29031
29032
29033
29034
29035
29036
29037
29038
29039
29040
29041
29042
29043
29044
29045
29046
29047
29048
29049
29050
29051
29052
29053
29054
29055
29056
29057
29058
29059
29060
29061
29062
29063
29064
29065
29066
29067
29068
29069
29070
29071
29072
29073
29074
29075
29076
29077
29078
29079
29080
29081
29082
29083
29084
29085
29086
29087
29088
29089
29090
29091
29092
29093
29094
29095
29096
29097
29098
29099
29100
29101
29102
29103
29104
29105
29106
29107
29108
29109
29110
29111
29112
29113
29114
29115
29116
29117
29118
29119
29120
29121
29122
29123
29124
29125
29126
29127
29128
29129
29130
29131
29132
29133
29134
29135
29136
29137
29138
29139
29140
29141
29142
29143
29144
29145
29146
29147
29148
29149
29150
29151
29152
29153
29154
29155
29156
29157
29158
29159
29160
29161
29162
29163
29164
29165
29166
29167
29168
29169
29170
29171
29172
29173
29174
29175
29176
29177
29178
29179
29180
29181
29182
29183
29184
29185
29186
29187
29188
29189
29190
29191
29192
29193
29194
29195
29196
29197
29198
29199
29200
29201
29202
29203
29204
29205
29206
29207
29208
29209
29210
29211
29212
29213
29214
29215
29216
29217
29218
29219
29220
29221
29222
29223
29224
29225
29226
29227
29228
29229
29230
29231
29232
29233
29234
29235
29236
29237
29238
29239
29240
29241
29242
29243
29244
29245
29246
29247
29248
29249
29250
29251
29252
29253
29254
29255
29256
29257
29258
29259
29260
29261
29262
29263
29264
29265
29266
29267
29268
29269
29270
29271
29272
29273
29274
29275
29276
29277
29278
29279
29280
29281
29282
29283
29284
29285
29286
29287
29288
29289
29290
29291
29292
29293
29294
29295
29296
29297
29298
29299
29300
29301
29302
29303
29304
29305
29306
29307
29308
29309
29310
29311
29312
29313
29314
29315
29316
29317
29318
29319
29320
29321
29322
29323
29324
29325
29326
29327
29328
29329
29330
29331
29332
29333
29334
29335
29336
29337
29338
29339
29340
29341
29342
29343
29344
29345
29346
29347
29348
29349
29350
29351
29352
29353
29354
29355
29356
29357
29358
29359
29360
29361
29362
29363
29364
29365
29366
29367
29368
29369
29370
29371
29372
29373
29374
29375
29376
29377
29378
29379
29380
29381
29382
29383
29384
29385
29386
29387
29388
29389
29390
29391
29392
29393
29394
29395
29396
29397
29398
29399
29400
29401
29402
29403
29404
29405
29406
29407
29408
29409
29410
29411
29412
29413
29414
29415
29416
29417
29418
29419
29420
29421
29422
29423
29424
29425
29426
29427
29428
29429
29430
29431
29432
29433
29434
29435
29436
29437
29438
29439
29440
29441
29442
29443
29444
29445
29446
29447
29448
29449
29450
29451
29452
29453
29454
29455
29456
29457
29458
29459
29460
29461
29462
29463
29464
29465
29466
29467
29468
29469
29470
29471
29472
29473
29474
29475
29476
29477
29478
29479
29480
29481
29482
29483
29484
29485
29486
29487
29488
29489
29490
29491
29492
29493
29494
29495
29496
29497
29498
29499
29500
29501
29502
29503
29504
29505
29506
29507
29508
29509
29510
29511
29512
29513
29514
29515
29516
29517
29518
29519
29520
29521
29522
29523
29524
29525
29526
29527
29528
29529
29530
29531
29532
29533
29534
29535
29536
29537
29538
29539
29540
29541
29542
29543
29544
29545
29546
29547
29548
29549
29550
29551
29552
29553
29554
29555
29556
29557
29558
29559
29560
29561
29562
29563
29564
29565
29566
29567
29568
29569
29570
29571
29572
29573
29574
29575
29576
29577
29578
29579
29580
|
--- contrib/ntp/COPYRIGHT.orig
+++ contrib/ntp/COPYRIGHT
@@ -3,7 +3,7 @@
jpg "Clone me," says Dolly sheepishly.
- Last update: 2-Jan-2017 11:58 UTC
+ Last update: 4-Feb-2020 23:47 UTC
__________________________________________________________________
The following copyright notice applies to all files collectively called
@@ -32,7 +32,7 @@
Burnicki is:
***********************************************************************
* *
-* Copyright (c) Network Time Foundation 2011-2017 *
+* Copyright (c) Network Time Foundation 2011-2020 *
* *
* All Rights Reserved *
* *
--- contrib/ntp/ChangeLog.orig
+++ contrib/ntp/ChangeLog
@@ -1,4 +1,100 @@
---
+(4.2.8p14) 2020/03/03 Released by Harlan Stenn <stenn@ntp.org>
+
+* [Sec 3610] process_control() should bail earlier on short packets. stenn@
+ - Reported by Philippe Antoine
+* [Sec 3596] Highly predictable timestamp attack. <stenn@ntp.org>
+ - Reported by Miroslav Lichvar
+* [Sec 3592] DoS attack on client ntpd <perlinger@ntp.org>
+ - Reported by Miroslav Lichvar
+* [Bug 3637] Emit the version of ntpd in saveconfig. stenn@
+* [Bug 3636] NMEA: combine time/date from multiple sentences <perlinger@ntp.org>
+* [Bug 3635] Make leapsecond file hash check optional <perlinger@ntp.org>
+* [Bug 3634] Typo in discipline.html, reported by Jason Harrison. stenn@
+* [Bug 3628] raw DCF decoding - improve robustness with Zeller's congruence
+ - implement Zeller's congruence in libparse and libntp <perlinger@ntp.org>
+* [Bug 3627] SIGSEGV on FreeBSD-12 with stack limit and stack gap <perlinger@ntp.org>
+ - integrated patch by Cy Schubert
+* [Bug 3620] memory leak in ntpq sysinfo <perlinger@ntp.org>
+ - applied patch by Gerry Garvey
+* [Bug 3619] Honour drefid setting in cooked mode and sysinfo <perlinger@ntp.org>
+ - applied patch by Gerry Garvey
+* [Bug 3617] Add support for ACE III and Copernicus II receivers <perlinger@ntp.org>
+ - integrated patch by Richard Steedman
+* [Bug 3615] accelerate refclock startup <perlinger@ntp.org>
+* [Bug 3613] Propagate noselect to mobilized pool servers <stenn@ntp.org>
+ - Reported by Martin Burnicki
+* [Bug 3612] Use-of-uninitialized-value in receive function <perlinger@ntp.org>
+ - Reported by Philippe Antoine
+* [Bug 3611] NMEA time interpreted incorrectly <perlinger@ntp.org>
+ - officially document new "trust date" mode bit for NMEA driver
+ - restore the (previously undocumented) "trust date" feature lost with [bug 3577]
+* [Bug 3609] Fixing wrong falseticker in case of non-statistic jitter <perlinger@ntp.org>
+ - mostly based on a patch by Michael Haardt, implementing 'fudge minjitter'
+* [Bug 3608] libparse fails to compile on S11.4SRU13 and later <perlinger@ntp.org>
+ - removed ffs() and fls() prototypes as per Brian Utterback
+* [Bug 3604] Wrong param byte order passing into record_raw_stats() in
+ ntp_io.c <perlinger@ntp.org>
+ - fixed byte and paramter order as suggested by wei6410@sina.com
+* [Bug 3601] Tests fail to link on platforms with ntp_cv_gc_sections_runs=no <perlinger@ntp.org>
+* [Bug 3599] Build fails on linux-m68k due to alignment issues <perlinger@ntp.org>
+ - added padding as suggested by John Paul Adrian Glaubitz
+* [Bug 3594] ntpd discards messages coming through nmead <perlinger@ntp.org>
+* [Bug 3593] ntpd discards silently nmea messages after the 5th string <perlinger@ntp.org>
+* [Bug 3590] Update refclock_oncore.c to the new GPS date API <perlinger@ntp.org>
+* [Bug 3585] Unity tests mix buffered and unbuffered output <perlinger@ntp.org>
+ - stdout+stderr are set to line buffered during test setup now
+* [Bug 3583] synchronization error <perlinger@ntp.org>
+ - set clock to base date if system time is before that limit
+* [Bug 3582] gpsdjson refclock fudgetime1 adjustment is doubled <perlinger@ntp.org>
+* [Bug 3580] Possible bug ntpq-subs (NULL dereference in dogetassoc) <perlinger@ntp.org>
+ - Reported by Paulo Neves
+* [Bug 3577] Update refclock_zyfer.c to the new GPS date API <perlinger@ntp.org>
+ - also updates for refclock_nmea.c and refclock_jupiter.c
+* [Bug 3576] New GPS date function API <perlinger@ntp.org>
+* [Bug 3573] nptdate: missleading error message <perlinger@ntp.org>
+* [Bug 3570] NMEA driver docs: talker ID not mentioned, typo <perlinger@ntp.org>
+* [Bug 3569] cleanup MOD_NANO/STA_NANO handling for 'ntpadjtimex()' <perlinger@ntp.org>
+ - sidekick: service port resolution in 'ntpdate'
+* [Bug 3550] Reproducible build: Respect SOURCE_DATE_EPOCH <perlinger@ntp.org>
+ - applied patch by Douglas Royds
+* [Bug 3542] ntpdc monlist parameters cannot be set <perlinger@ntp.org>
+* [Bug 3533] ntpdc peer_info ipv6 issues <perlinger@ntp.org>
+ - applied patch by Gerry Garvey
+* [Bug 3531] make check: test-decodenetnum fails <perlinger@ntp.org>
+ - try to harden 'decodenetnum()' against 'getaddrinfo()' errors
+ - fix wrong cond-compile tests in unit tests
+* [Bug 3517] Reducing build noise <perlinger@ntp.org>
+* [Bug 3516] Require tooling from this decade <perlinger@ntp.org>
+ - patch by Philipp Prindeville
+* [Bug 3515] Refactor ntpdmain() dispatcher loop and group common code <perlinger@ntp.org>
+ - patch by Philipp Prindeville
+* [Bug 3511] Get rid of AC_LANG_SOURCE() warnings <perlinger@ntp.org>
+ - patch by Philipp Prindeville
+* [Bug 3510] Flatten out the #ifdef nesting in ntpdmain() <perlinger@ntp.org>
+ - partial application of patch by Philipp Prindeville
+* [Bug 3491] Signed values of LFP datatypes should always display a sign
+ - applied patch by Gerry Garvey & fixed unit tests <perlinger@ntp.org>
+* [Bug 3490] Patch to support Trimble Resolution Receivers <perlinger@ntp.org>
+ - applied (modified) patch by Richard Steedman
+* [Bug 3473] RefID of refclocks should always be text format <perlinger@ntp.org>
+ - applied patch by Gerry Garvey (with minor formatting changes)
+* [Bug 3132] Building 4.2.8p8 with disabled local libopts fails <perlinger@ntp.org>
+ - applied patch by Miroslav Lichvar
+* [Bug 3094] ntpd trying to listen for broadcasts on a completely ipv6 network
+ <perlinger@ntp.org>
+* [Bug 2420] ntpd doesn't run and exits with retval 0 when invalid user
+ is specified with -u <perlinger@ntp.org>
+ - monitor daemon child startup & propagate exit codes
+* [Bug 1433] runtime check whether the kernel really supports capabilities
+ - (modified) patch by Kurt Roeckx <perlinger@ntp.org>
+* Clean up sntp/networking.c:sendpkt() error message. <stenn@ntp.org>
+* Provide more detail on unrecognized config file parser tokens. <stenn@ntp.org>
+* Startup log improvements. <stenn@ntp.org>
+* Update the copyright year.
+* html/confopt.html: cleanup. <stenn@ntp.org>
+
+---
(4.2.8p13) 2019/03/07 Released by Harlan Stenn <stenn@ntp.org>
* [Sec 3565] Crafted null dereference attack in authenticated
--- contrib/ntp/CommitLog.orig
+++ contrib/ntp/CommitLog
@@ -1,10 +1,3065 @@
-ChangeSet@1.3849, 2019-02-20 17:13:36-08:00, harlan@ntp-build.tal1.ntfo.org
+ChangeSet@1.3896, 2020-03-03 17:42:43-08:00, ntpreleng@ntp-build.tal1.ntfo.org
+ NTP_4_2_8P14
+ TAG: NTP_4_2_8P14
+
+ ChangeLog@1.1974 +1 -1
+ NTP_4_2_8P14
+
+ ntpd/invoke-ntp.conf.texi@1.221 +1 -1
+ NTP_4_2_8P14
+
+ ntpd/invoke-ntp.keys.texi@1.206 +1 -1
+ NTP_4_2_8P14
+
+ ntpd/invoke-ntpd.texi@1.520 +2 -2
+ NTP_4_2_8P14
+
+ ntpd/ntp.conf.5man@1.255 +2 -2
+ NTP_4_2_8P14
+
+ ntpd/ntp.conf.5mdoc@1.255 +1 -1
+ NTP_4_2_8P14
+
+ ntpd/ntp.conf.html@1.203 +1 -1
+ NTP_4_2_8P14
+
+ ntpd/ntp.conf.man.in@1.255 +2 -2
+ NTP_4_2_8P14
+
+ ntpd/ntp.conf.mdoc.in@1.255 +1 -1
+ NTP_4_2_8P14
+
+ ntpd/ntp.keys.5man@1.240 +2 -2
+ NTP_4_2_8P14
+
+ ntpd/ntp.keys.5mdoc@1.240 +1 -1
+ NTP_4_2_8P14
+
+ ntpd/ntp.keys.html@1.201 +1 -1
+ NTP_4_2_8P14
+
+ ntpd/ntp.keys.man.in@1.240 +2 -2
+ NTP_4_2_8P14
+
+ ntpd/ntp.keys.mdoc.in@1.240 +1 -1
+ NTP_4_2_8P14
+
+ ntpd/ntpd-opts.c@1.543 +7 -7
+ NTP_4_2_8P14
+
+ ntpd/ntpd-opts.h@1.542 +3 -3
+ NTP_4_2_8P14
+
+ ntpd/ntpd.1ntpdman@1.349 +2 -2
+ NTP_4_2_8P14
+
+ ntpd/ntpd.1ntpdmdoc@1.349 +1 -1
+ NTP_4_2_8P14
+
+ ntpd/ntpd.html@1.194 +2 -2
+ NTP_4_2_8P14
+
+ ntpd/ntpd.man.in@1.349 +2 -2
+ NTP_4_2_8P14
+
+ ntpd/ntpd.mdoc.in@1.349 +1 -1
+ NTP_4_2_8P14
+
+ ntpdc/invoke-ntpdc.texi@1.517 +2 -2
+ NTP_4_2_8P14
+
+ ntpdc/ntpdc-opts.c@1.536 +7 -7
+ NTP_4_2_8P14
+
+ ntpdc/ntpdc-opts.h@1.535 +3 -3
+ NTP_4_2_8P14
+
+ ntpdc/ntpdc.1ntpdcman@1.348 +2 -2
+ NTP_4_2_8P14
+
+ ntpdc/ntpdc.1ntpdcmdoc@1.348 +1 -1
+ NTP_4_2_8P14
+
+ ntpdc/ntpdc.html@1.363 +2 -2
+ NTP_4_2_8P14
+
+ ntpdc/ntpdc.man.in@1.348 +2 -2
+ NTP_4_2_8P14
+
+ ntpdc/ntpdc.mdoc.in@1.348 +1 -1
+ NTP_4_2_8P14
+
+ ntpq/invoke-ntpq.texi@1.527 +2 -2
+ NTP_4_2_8P14
+
+ ntpq/ntpq-opts.c@1.545 +7 -7
+ NTP_4_2_8P14
+
+ ntpq/ntpq-opts.h@1.543 +3 -3
+ NTP_4_2_8P14
+
+ ntpq/ntpq.1ntpqman@1.355 +2 -2
+ NTP_4_2_8P14
+
+ ntpq/ntpq.1ntpqmdoc@1.355 +1 -1
+ NTP_4_2_8P14
+
+ ntpq/ntpq.html@1.194 +2 -2
+ NTP_4_2_8P14
+
+ ntpq/ntpq.man.in@1.355 +2 -2
+ NTP_4_2_8P14
+
+ ntpq/ntpq.mdoc.in@1.355 +1 -1
+ NTP_4_2_8P14
+
+ ntpsnmpd/invoke-ntpsnmpd.texi@1.519 +1 -1
+ NTP_4_2_8P14
+
+ ntpsnmpd/ntpsnmpd-opts.c@1.538 +7 -7
+ NTP_4_2_8P14
+
+ ntpsnmpd/ntpsnmpd-opts.h@1.537 +3 -3
+ NTP_4_2_8P14
+
+ ntpsnmpd/ntpsnmpd.1ntpsnmpdman@1.348 +2 -2
+ NTP_4_2_8P14
+
+ ntpsnmpd/ntpsnmpd.1ntpsnmpdmdoc@1.348 +1 -1
+ NTP_4_2_8P14
+
+ ntpsnmpd/ntpsnmpd.html@1.187 +1 -1
+ NTP_4_2_8P14
+
+ ntpsnmpd/ntpsnmpd.man.in@1.348 +2 -2
+ NTP_4_2_8P14
+
+ ntpsnmpd/ntpsnmpd.mdoc.in@1.348 +1 -1
+ NTP_4_2_8P14
+
+ packageinfo.sh@1.544 +1 -1
+ NTP_4_2_8P14
+
+ scripts/calc_tickadj/calc_tickadj.1calc_tickadjman@1.109 +2 -2
+ NTP_4_2_8P14
+
+ scripts/calc_tickadj/calc_tickadj.1calc_tickadjmdoc@1.110 +1 -1
+ NTP_4_2_8P14
+
+ scripts/calc_tickadj/calc_tickadj.html@1.110 +1 -1
+ NTP_4_2_8P14
+
+ scripts/calc_tickadj/calc_tickadj.man.in@1.108 +2 -2
+ NTP_4_2_8P14
+
+ scripts/calc_tickadj/calc_tickadj.mdoc.in@1.110 +1 -1
+ NTP_4_2_8P14
+
+ scripts/calc_tickadj/invoke-calc_tickadj.texi@1.113 +1 -1
+ NTP_4_2_8P14
+
+ scripts/invoke-plot_summary.texi@1.131 +2 -2
+ NTP_4_2_8P14
+
+ scripts/invoke-summary.texi@1.130 +2 -2
+ NTP_4_2_8P14
+
+ scripts/ntp-wait/invoke-ntp-wait.texi@1.341 +2 -2
+ NTP_4_2_8P14
+
+ scripts/ntp-wait/ntp-wait-opts@1.77 +2 -2
+ NTP_4_2_8P14
+
+ scripts/ntp-wait/ntp-wait.1ntp-waitman@1.337 +2 -2
+ NTP_4_2_8P14
+
+ scripts/ntp-wait/ntp-wait.1ntp-waitmdoc@1.338 +1 -1
+ NTP_4_2_8P14
+
+ scripts/ntp-wait/ntp-wait.html@1.359 +2 -2
+ NTP_4_2_8P14
+
+ scripts/ntp-wait/ntp-wait.man.in@1.337 +2 -2
+ NTP_4_2_8P14
+
+ scripts/ntp-wait/ntp-wait.mdoc.in@1.338 +1 -1
+ NTP_4_2_8P14
+
+ scripts/ntpsweep/invoke-ntpsweep.texi@1.128 +2 -2
+ NTP_4_2_8P14
+
+ scripts/ntpsweep/ntpsweep-opts@1.79 +2 -2
+ NTP_4_2_8P14
+
+ scripts/ntpsweep/ntpsweep.1ntpsweepman@1.116 +2 -2
+ NTP_4_2_8P14
+
+ scripts/ntpsweep/ntpsweep.1ntpsweepmdoc@1.116 +1 -1
+ NTP_4_2_8P14
+
+ scripts/ntpsweep/ntpsweep.html@1.131 +2 -2
+ NTP_4_2_8P14
+
+ scripts/ntpsweep/ntpsweep.man.in@1.116 +2 -2
+ NTP_4_2_8P14
+
+ scripts/ntpsweep/ntpsweep.mdoc.in@1.117 +1 -1
+ NTP_4_2_8P14
+
+ scripts/ntptrace/invoke-ntptrace.texi@1.130 +2 -2
+ NTP_4_2_8P14
+
+ scripts/ntptrace/ntptrace-opts@1.79 +2 -2
+ NTP_4_2_8P14
+
+ scripts/ntptrace/ntptrace.1ntptraceman@1.116 +2 -2
+ NTP_4_2_8P14
+
+ scripts/ntptrace/ntptrace.1ntptracemdoc@1.117 +1 -1
+ NTP_4_2_8P14
+
+ scripts/ntptrace/ntptrace.html@1.132 +2 -2
+ NTP_4_2_8P14
+
+ scripts/ntptrace/ntptrace.man.in@1.116 +2 -2
+ NTP_4_2_8P14
+
+ scripts/ntptrace/ntptrace.mdoc.in@1.118 +1 -1
+ NTP_4_2_8P14
+
+ scripts/plot_summary-opts@1.80 +2 -2
+ NTP_4_2_8P14
+
+ scripts/plot_summary.1plot_summaryman@1.129 +2 -2
+ NTP_4_2_8P14
+
+ scripts/plot_summary.1plot_summarymdoc@1.129 +1 -1
+ NTP_4_2_8P14
+
+ scripts/plot_summary.html@1.134 +2 -2
+ NTP_4_2_8P14
+
+ scripts/plot_summary.man.in@1.129 +2 -2
+ NTP_4_2_8P14
+
+ scripts/plot_summary.mdoc.in@1.129 +1 -1
+ NTP_4_2_8P14
+
+ scripts/summary-opts@1.79 +2 -2
+ NTP_4_2_8P14
+
+ scripts/summary.1summaryman@1.128 +2 -2
+ NTP_4_2_8P14
+
+ scripts/summary.1summarymdoc@1.128 +1 -1
+ NTP_4_2_8P14
+
+ scripts/summary.html@1.133 +2 -2
+ NTP_4_2_8P14
+
+ scripts/summary.man.in@1.128 +2 -2
+ NTP_4_2_8P14
+
+ scripts/summary.mdoc.in@1.128 +1 -1
+ NTP_4_2_8P14
+
+ scripts/update-leap/invoke-update-leap.texi@1.29 +1 -1
+ NTP_4_2_8P14
+
+ scripts/update-leap/update-leap-opts@1.30 +2 -2
+ NTP_4_2_8P14
+
+ scripts/update-leap/update-leap.1update-leapman@1.29 +2 -2
+ NTP_4_2_8P14
+
+ scripts/update-leap/update-leap.1update-leapmdoc@1.29 +1 -1
+ NTP_4_2_8P14
+
+ scripts/update-leap/update-leap.html@1.30 +1 -1
+ NTP_4_2_8P14
+
+ scripts/update-leap/update-leap.man.in@1.29 +2 -2
+ NTP_4_2_8P14
+
+ scripts/update-leap/update-leap.mdoc.in@1.29 +1 -1
+ NTP_4_2_8P14
+
+ sntp/invoke-sntp.texi@1.519 +2 -2
+ NTP_4_2_8P14
+
+ sntp/sntp-opts.c@1.539 +7 -7
+ NTP_4_2_8P14
+
+ sntp/sntp-opts.h@1.537 +3 -3
+ NTP_4_2_8P14
+
+ sntp/sntp.1sntpman@1.354 +2 -2
+ NTP_4_2_8P14
+
+ sntp/sntp.1sntpmdoc@1.354 +1 -1
+ NTP_4_2_8P14
+
+ sntp/sntp.html@1.535 +2 -2
+ NTP_4_2_8P14
+
+ sntp/sntp.man.in@1.354 +2 -2
+ NTP_4_2_8P14
+
+ sntp/sntp.mdoc.in@1.354 +1 -1
+ NTP_4_2_8P14
+
+ util/invoke-ntp-keygen.texi@1.522 +2 -2
+ NTP_4_2_8P14
+
+ util/ntp-keygen-opts.c@1.541 +7 -7
+ NTP_4_2_8P14
+
+ util/ntp-keygen-opts.h@1.539 +3 -3
+ NTP_4_2_8P14
+
+ util/ntp-keygen.1ntp-keygenman@1.350 +2 -2
+ NTP_4_2_8P14
+
+ util/ntp-keygen.1ntp-keygenmdoc@1.350 +1 -1
+ NTP_4_2_8P14
+
+ util/ntp-keygen.html@1.195 +2 -2
+ NTP_4_2_8P14
+
+ util/ntp-keygen.man.in@1.350 +2 -2
+ NTP_4_2_8P14
+
+ util/ntp-keygen.mdoc.in@1.350 +1 -1
+ NTP_4_2_8P14
+
+ChangeSet@1.3895, 2020-03-03 17:09:57-08:00, ntpreleng@ntp-build.tal1.ntfo.org
+ quiet some debug messages
+
+ ntpd/ntp_config.c@1.375 +0 -2
+ quiet some debug messages
+
+ ntpd/ntp_peer.c@1.166 +2 -0
+ quiet some debug messages
+
+ChangeSet@1.3894, 2020-03-03 16:49:54-08:00, ntpreleng@ntp-build.tal1.ntfo.org
+ NTP_4_2_8P13
+ TAG: NTP_4_2_8P13
+
+ ChangeLog@1.1973 +1 -0
+ NTP_4_2_8P13
+
+ ntpd/invoke-ntp.conf.texi@1.220 +31 -7
+ NTP_4_2_8P13
+
+ ntpd/invoke-ntp.keys.texi@1.205 +1 -1
+ NTP_4_2_8P13
+
+ ntpd/invoke-ntpd.texi@1.519 +3 -3
+ NTP_4_2_8P13
+
+ ntpd/ntp.conf.5man@1.254 +34 -9
+ NTP_4_2_8P13
+
+ ntpd/ntp.conf.5mdoc@1.254 +41 -6
+ NTP_4_2_8P13
+
+ ntpd/ntp.conf.html@1.202 +33 -7
+ NTP_4_2_8P13
+
+ ntpd/ntp.conf.man.in@1.254 +34 -9
+ NTP_4_2_8P13
+
+ ntpd/ntp.conf.mdoc.in@1.254 +41 -6
+ NTP_4_2_8P13
+
+ ntpd/ntp.keys.5man@1.239 +2 -2
+ NTP_4_2_8P13
+
+ ntpd/ntp.keys.5mdoc@1.239 +3 -3
+ NTP_4_2_8P13
+
+ ntpd/ntp.keys.man.in@1.239 +2 -2
+ NTP_4_2_8P13
+
+ ntpd/ntp.keys.mdoc.in@1.239 +3 -3
+ NTP_4_2_8P13
+
+ ntpd/ntpd-opts.c@1.542 +2 -2
+ NTP_4_2_8P13
+
+ ntpd/ntpd-opts.h@1.541 +3 -3
+ NTP_4_2_8P13
+
+ ntpd/ntpd.1ntpdman@1.348 +2 -2
+ NTP_4_2_8P13
+
+ ntpd/ntpd.1ntpdmdoc@1.348 +2 -2
+ NTP_4_2_8P13
+
+ ntpd/ntpd.man.in@1.348 +2 -2
+ NTP_4_2_8P13
+
+ ntpd/ntpd.mdoc.in@1.348 +2 -2
+ NTP_4_2_8P13
+
+ ntpdc/invoke-ntpdc.texi@1.516 +1 -1
+ NTP_4_2_8P13
+
+ ntpdc/ntpdc-opts.c@1.535 +2 -2
+ NTP_4_2_8P13
+
+ ntpdc/ntpdc-opts.h@1.534 +3 -3
+ NTP_4_2_8P13
+
+ ntpdc/ntpdc.1ntpdcman@1.347 +2 -2
+ NTP_4_2_8P13
+
+ ntpdc/ntpdc.1ntpdcmdoc@1.347 +2 -2
+ NTP_4_2_8P13
+
+ ntpdc/ntpdc.html@1.362 +408 -353
+ NTP_4_2_8P13
+
+ ntpdc/ntpdc.man.in@1.347 +2 -2
+ NTP_4_2_8P13
+
+ ntpdc/ntpdc.mdoc.in@1.347 +2 -2
+ NTP_4_2_8P13
+
+ ntpq/invoke-ntpq.texi@1.526 +1 -1
+ NTP_4_2_8P13
+
+ ntpq/ntpq-opts.c@1.544 +2 -2
+ NTP_4_2_8P13
+
+ ntpq/ntpq-opts.h@1.542 +3 -3
+ NTP_4_2_8P13
+
+ ntpq/ntpq.1ntpqman@1.354 +2 -2
+ NTP_4_2_8P13
+
+ ntpq/ntpq.1ntpqmdoc@1.354 +2 -2
+ NTP_4_2_8P13
+
+ ntpq/ntpq.html@1.193 +1 -1
+ NTP_4_2_8P13
+
+ ntpq/ntpq.man.in@1.354 +2 -2
+ NTP_4_2_8P13
+
+ ntpq/ntpq.mdoc.in@1.354 +2 -2
+ NTP_4_2_8P13
+
+ ntpsnmpd/invoke-ntpsnmpd.texi@1.518 +1 -1
+ NTP_4_2_8P13
+
+ ntpsnmpd/ntpsnmpd-opts.c@1.537 +2 -2
+ NTP_4_2_8P13
+
+ ntpsnmpd/ntpsnmpd-opts.h@1.536 +3 -3
+ NTP_4_2_8P13
+
+ ntpsnmpd/ntpsnmpd.1ntpsnmpdman@1.347 +2 -2
+ NTP_4_2_8P13
+
+ ntpsnmpd/ntpsnmpd.1ntpsnmpdmdoc@1.347 +2 -2
+ NTP_4_2_8P13
+
+ ntpsnmpd/ntpsnmpd.man.in@1.347 +2 -2
+ NTP_4_2_8P13
+
+ ntpsnmpd/ntpsnmpd.mdoc.in@1.347 +2 -2
+ NTP_4_2_8P13
+
+ scripts/calc_tickadj/calc_tickadj.1calc_tickadjman@1.108 +2 -2
+ NTP_4_2_8P13
+
+ scripts/calc_tickadj/calc_tickadj.1calc_tickadjmdoc@1.109 +2 -2
+ NTP_4_2_8P13
+
+ scripts/calc_tickadj/calc_tickadj.html@1.109 +172 -128
+ NTP_4_2_8P13
+
+ scripts/calc_tickadj/calc_tickadj.man.in@1.107 +2 -2
+ NTP_4_2_8P13
+
+ scripts/calc_tickadj/calc_tickadj.mdoc.in@1.109 +2 -2
+ NTP_4_2_8P13
+
+ scripts/calc_tickadj/invoke-calc_tickadj.texi@1.112 +2 -2
+ NTP_4_2_8P13
+
+ scripts/invoke-plot_summary.texi@1.130 +2 -2
+ NTP_4_2_8P13
+
+ scripts/invoke-summary.texi@1.129 +2 -2
+ NTP_4_2_8P13
+
+ scripts/ntp-wait/invoke-ntp-wait.texi@1.340 +2 -2
+ NTP_4_2_8P13
+
+ scripts/ntp-wait/ntp-wait-opts@1.76 +2 -2
+ NTP_4_2_8P13
+
+ scripts/ntp-wait/ntp-wait.1ntp-waitman@1.336 +2 -2
+ NTP_4_2_8P13
+
+ scripts/ntp-wait/ntp-wait.1ntp-waitmdoc@1.337 +2 -2
+ NTP_4_2_8P13
+
+ scripts/ntp-wait/ntp-wait.html@1.358 +181 -152
+ NTP_4_2_8P13
+
+ scripts/ntp-wait/ntp-wait.man.in@1.336 +2 -2
+ NTP_4_2_8P13
+
+ scripts/ntp-wait/ntp-wait.mdoc.in@1.337 +2 -2
+ NTP_4_2_8P13
+
+ scripts/ntpsweep/invoke-ntpsweep.texi@1.127 +2 -2
+ NTP_4_2_8P13
+
+ scripts/ntpsweep/ntpsweep-opts@1.78 +2 -2
+ NTP_4_2_8P13
+
+ scripts/ntpsweep/ntpsweep.1ntpsweepman@1.115 +2 -2
+ NTP_4_2_8P13
+
+ scripts/ntpsweep/ntpsweep.1ntpsweepmdoc@1.115 +2 -2
+ NTP_4_2_8P13
+
+ scripts/ntpsweep/ntpsweep.html@1.130 +188 -152
+ NTP_4_2_8P13
+
+ scripts/ntpsweep/ntpsweep.man.in@1.115 +2 -2
+ NTP_4_2_8P13
+
+ scripts/ntpsweep/ntpsweep.mdoc.in@1.116 +2 -2
+ NTP_4_2_8P13
+
+ scripts/ntptrace/invoke-ntptrace.texi@1.129 +2 -2
+ NTP_4_2_8P13
+
+ scripts/ntptrace/ntptrace-opts@1.78 +2 -2
+ NTP_4_2_8P13
+
+ scripts/ntptrace/ntptrace.1ntptraceman@1.115 +2 -2
+ NTP_4_2_8P13
+
+ scripts/ntptrace/ntptrace.1ntptracemdoc@1.116 +2 -2
+ NTP_4_2_8P13
+
+ scripts/ntptrace/ntptrace.html@1.131 +179 -129
+ NTP_4_2_8P13
+
+ scripts/ntptrace/ntptrace.man.in@1.115 +2 -2
+ NTP_4_2_8P13
+
+ scripts/ntptrace/ntptrace.mdoc.in@1.117 +2 -2
+ NTP_4_2_8P13
+
+ scripts/plot_summary-opts@1.79 +2 -2
+ NTP_4_2_8P13
+
+ scripts/plot_summary.1plot_summaryman@1.128 +2 -2
+ NTP_4_2_8P13
+
+ scripts/plot_summary.1plot_summarymdoc@1.128 +2 -2
+ NTP_4_2_8P13
+
+ scripts/plot_summary.html@1.133 +203 -161
+ NTP_4_2_8P13
+
+ scripts/plot_summary.man.in@1.128 +2 -2
+ NTP_4_2_8P13
+
+ scripts/plot_summary.mdoc.in@1.128 +2 -2
+ NTP_4_2_8P13
+
+ scripts/summary-opts@1.78 +2 -2
+ NTP_4_2_8P13
+
+ scripts/summary.1summaryman@1.127 +2 -2
+ NTP_4_2_8P13
+
+ scripts/summary.1summarymdoc@1.127 +2 -2
+ NTP_4_2_8P13
+
+ scripts/summary.html@1.132 +184 -136
+ NTP_4_2_8P13
+
+ scripts/summary.man.in@1.127 +2 -2
+ NTP_4_2_8P13
+
+ scripts/summary.mdoc.in@1.127 +2 -2
+ NTP_4_2_8P13
+
+ scripts/update-leap/invoke-update-leap.texi@1.28 +1 -1
+ NTP_4_2_8P13
+
+ scripts/update-leap/update-leap-opts@1.29 +2 -2
+ NTP_4_2_8P13
+
+ scripts/update-leap/update-leap.1update-leapman@1.28 +2 -2
+ NTP_4_2_8P13
+
+ scripts/update-leap/update-leap.1update-leapmdoc@1.28 +2 -2
+ NTP_4_2_8P13
+
+ scripts/update-leap/update-leap.html@1.29 +1 -1
+ NTP_4_2_8P13
+
+ scripts/update-leap/update-leap.man.in@1.28 +2 -2
+ NTP_4_2_8P13
+
+ scripts/update-leap/update-leap.mdoc.in@1.28 +2 -2
+ NTP_4_2_8P13
+
+ sntp/invoke-sntp.texi@1.518 +1 -1
+ NTP_4_2_8P13
+
+ sntp/sntp-opts.c@1.538 +2 -2
+ NTP_4_2_8P13
+
+ sntp/sntp-opts.h@1.536 +3 -3
+ NTP_4_2_8P13
+
+ sntp/sntp.1sntpman@1.353 +2 -2
+ NTP_4_2_8P13
+
+ sntp/sntp.1sntpmdoc@1.353 +2 -2
+ NTP_4_2_8P13
+
+ sntp/sntp.html@1.534 +472 -418
+ NTP_4_2_8P13
+
+ sntp/sntp.man.in@1.353 +2 -2
+ NTP_4_2_8P13
+
+ sntp/sntp.mdoc.in@1.353 +2 -2
+ NTP_4_2_8P13
+
+ util/invoke-ntp-keygen.texi@1.521 +1 -1
+ NTP_4_2_8P13
+
+ util/ntp-keygen-opts.c@1.540 +2 -2
+ NTP_4_2_8P13
+
+ util/ntp-keygen-opts.h@1.538 +3 -3
+ NTP_4_2_8P13
+
+ util/ntp-keygen.1ntp-keygenman@1.349 +2 -2
+ NTP_4_2_8P13
+
+ util/ntp-keygen.1ntp-keygenmdoc@1.349 +2 -2
+ NTP_4_2_8P13
+
+ util/ntp-keygen.html@1.194 +1 -1
+ NTP_4_2_8P13
+
+ util/ntp-keygen.man.in@1.349 +2 -2
+ NTP_4_2_8P13
+
+ util/ntp-keygen.mdoc.in@1.349 +2 -2
+ NTP_4_2_8P13
+
+ChangeSet@1.3893, 2020-03-03 16:25:14-08:00, ntpreleng@ntp-build.tal1.ntfo.org
+ Replace line with head -1
+
+ scripts/build/addChangeLogTag@1.6 +1 -1
+ Replace line with head -1
+
+ChangeSet@1.3892, 2020-03-03 16:05:38-08:00, ntpreleng@ntp-build.tal1.ntfo.org
+ provide get_pollskew() for simulator
+
+ ntpd/ntp_config.c@1.374 +2 -2
+ provide get_pollskew() for simulator
+
+ChangeSet@1.3844.24.1, 2020-03-03 03:30:13-08:00, ntpreleng@ntp-build.tal1.ntfo.org
+ NTP_4_2_8P13
+ TAG: NTP_4_2_8P13 (currently on 1.3894)
+
+ BitKeeper/triggers/2mirrors@1.11 +6 -2
+ NTP_4_2_8P13
+
+ ntpd/ntpd-opts.c@1.539.1.1 +1 -1
+ NTP_4_2_8P13
+
+ ntpd/ntpd-opts.h@1.538.1.1 +1 -1
+ NTP_4_2_8P13
+
+ ntpd/ntpd.html@1.193 +3 -3
+ NTP_4_2_8P13
+
+ ntpd/ntpdsim-opts.c@1.29 +372 -340
+ NTP_4_2_8P13
+
+ ntpd/ntpdsim-opts.h@1.29 +44 -37
+ NTP_4_2_8P13
+
+ ntpdc/ntpdc-opts.c@1.532.1.1 +1 -1
+ NTP_4_2_8P13
+
+ ntpdc/ntpdc-opts.h@1.531.1.1 +1 -1
+ NTP_4_2_8P13
+
+ ntpq/ntpq-opts.c@1.541.1.1 +1 -1
+ NTP_4_2_8P13
+
+ ntpq/ntpq-opts.h@1.539.1.1 +1 -1
+ NTP_4_2_8P13
+
+ ntpq/ntpq.html@1.192 +1 -1
+ NTP_4_2_8P13
+
+ ntpsnmpd/ntpsnmpd-opts.c@1.534.1.1 +1 -1
+ NTP_4_2_8P13
+
+ ntpsnmpd/ntpsnmpd-opts.h@1.533.1.1 +1 -1
+ NTP_4_2_8P13
+
+ scripts/calc_tickadj/calc_tickadj-opts@1.10 +2 -2
+ NTP_4_2_8P13
+
+ scripts/ntp-wait/invoke-ntp-wait.texi@1.337.1.1 +1 -1
+ NTP_4_2_8P13
+
+ scripts/ntp-wait/ntp-wait-opts@1.73.1.1 +1 -1
+ NTP_4_2_8P13
+
+ scripts/ntpsweep/ntpsweep-opts@1.75.1.1 +1 -1
+ NTP_4_2_8P13
+
+ scripts/ntptrace/invoke-ntptrace.texi@1.126.1.1 +1 -1
+ NTP_4_2_8P13
+
+ scripts/ntptrace/ntptrace-opts@1.75.1.1 +1 -1
+ NTP_4_2_8P13
+
+ scripts/plot_summary-opts@1.76.1.1 +1 -1
+ NTP_4_2_8P13
+
+ scripts/summary-opts@1.75.1.1 +1 -1
+ NTP_4_2_8P13
+
+ scripts/update-leap/update-leap-opts@1.26.1.1 +1 -1
+ NTP_4_2_8P13
+
+ sntp/sntp-opts.c@1.535.1.1 +1 -1
+ NTP_4_2_8P13
+
+ sntp/sntp-opts.h@1.533.1.1 +1 -1
+ NTP_4_2_8P13
+
+ util/ntp-keygen-opts.c@1.537.1.1 +1 -1
+ NTP_4_2_8P13
+
+ util/ntp-keygen-opts.h@1.535.1.1 +1 -1
+ NTP_4_2_8P13
+
+ util/ntp-keygen.html@1.193 +1 -1
+ NTP_4_2_8P13
+
+ChangeSet@1.3888, 2020-03-03 07:26:56+00:00, stenn@psp-deb1.ntp.org
+ cleanup
+
+ NEWS@1.197.1.3 +3 -2
+ cleanup
+
+ChangeSet@1.3887, 2020-02-18 05:11:26+00:00, stenn@psp-deb1.ntp.org
+ Cleanup distcheck psl* files
+
+ ntpd/Makefile.am@1.138 +11 -0
+ Cleanup distcheck psl* files
+
+ChangeSet@1.3886, 2020-02-18 05:10:35+00:00, stenn@psp-deb1.ntp.org
+ Distribute ntp_calgps.h
+
+ include/Makefile.am@1.58 +1 -0
+ Distribute ntp_calgps.h
+
+ChangeSet@1.3885, 2020-02-18 03:32:51+00:00, stenn@psp-deb1.ntp.org
+ Update the NEWS file for p14
+
+ NEWS@1.197.1.2 +107 -0
+ Update the NEWS file for p14
+
+ChangeSet@1.3884, 2020-02-17 11:05:46+00:00, stenn@psp-deb1.ntp.org
+ merge cleanup
+
+ ntpd/ntp_proto.c@1.432 +1 -1
+ merge cleanup
+
+ChangeSet@1.3881, 2020-02-17 08:50:00+00:00, stenn@psp-deb1.ntp.org
+ update
+
+ ntpd/ntp_keyword.h@1.38 +545 -539
+ update
+
+ChangeSet@1.3880, 2020-02-17 08:48:45+00:00, stenn@psp-deb1.ntp.org
+ Startp logging improvements.
+ Bug3596.
+
+ html/accopt.html@1.48 +7 -2
+ cleanup.
+ bug3596: document 'serverresponse fuzz'
+
+ html/confopt.html@1.64.1.1 +22 -9
+ Cleanup.
+
+ Bug 3596: document xmtnonce
+
+ html/miscopt.html@1.93 +19 -1
+ Cleanup.
+
+ bug3596: document pollskewlist
+
+ include/Makefile.am@1.57 +1 -0
+ pollskew upodates
+
+ include/ntp.h@1.232 +8 -2
+ bug3596 chagnes:
+ - srvfuzrft patches
+ - pollskew updates
+ - xmtnonce
+
+ include/ntp_config.h@1.89 +27 -20
+ bug3596 updates:
+ - pollskewlist
+ - srvfuzrft patches
+
+ include/ntp_psl.h@1.1 +17 -0
+ BitKeeper file include/ntp_psl.h
+ ---
+ bug3596
+
+ include/ntp_psl.h@1.0 +0 -0
+
+ include/ntp_request.h@1.54 +2 -1
+ srvfuzrft patches
+
+ include/ntp_stdlib.h@1.88 +1 -1
+ randomizepoll/server response fuzz reftime fixes
+
+ include/ntpd.h@1.207 +1 -1
+ bug3596 cleanup
+
+ libntp/statestr.c@1.31 +12 -5
+ bug3596 srvrspfuz fixes
+
+ ntpd/Makefile.am@1.137 +37 -7
+ bug3596 pollskewlist changes
+
+ ntpd/complete.conf.in@1.37 +4 -2
+ bug3596: randompoll, pollskew xmtnonce
+
+ ntpd/keyword-gen-utd@1.35 +1 -1
+ Keyword table updates
+
+ ntpd/keyword-gen.c@1.42 +3 -3
+ bug3596: serverresponse fuzz, pollskewlist, xmtnonce
+
+ ntpd/ntp.conf.def@1.34 +40 -4
+ Cleanup.
+ bug3596: xmtnonce, serverresponse fuzz, pollskewlist,
+
+ ntpd/ntp_config.c@1.373 +250 -26
+ bug3596: serverresponse fuzz, pollskewlist, xmtnonce
+
+ ntpd/ntp_loopfilter.c@1.195 +1 -1
+ pollskew upodates
+
+ ntpd/ntp_parser.c@1.117 +1298 -1283
+ bug3596
+
+ ntpd/ntp_parser.h@1.79 +331 -334
+ bug3596
+
+ ntpd/ntp_parser.y@1.105 +49 -55
+ bug3596: serverresponse fuzz, pollskewlist, xmtnonce
+
+ ntpd/ntp_proto.c@1.427.1.2 +183 -36
+ bug3596: pollskewlist, server response fuzz, xmtnonce
+
+ ntpd/ntp_refclock.c@1.131 +1 -1
+ pollskew upodates
+
+ ntpd/ntp_request.c@1.131 +2 -2
+ randomizepoll/server response fuzz reftime fixes
+ ---
+ srvfuzrft patches
+ ---
+ bug3596 cleanup
+
+ ntpd/ntp_restrict.c@1.48 +5 -4
+ bug3596: pollskewlist, server response fuzz
+
+ ntpd/ntp_scanner.c@1.52 +16 -7
+ bug3596: serverresponse fuzz
+
+ ntpd/ntpd.c@1.185 +8 -1
+ startup logging improvements
+
+ ntpd/psl0.conf@1.1 +1 -0
+ BitKeeper file ntpd/psl0.conf
+ ---
+ pollskewlist changes
+
+ ntpd/psl0.conf@1.0 +0 -0
+
+ ntpd/psl1.conf@1.1 +1 -0
+ BitKeeper file ntpd/psl1.conf
+ ---
+ pollskewlist changes
+
+ ntpd/psl1.conf@1.0 +0 -0
+
+ ntpd/psl2.conf@1.1 +1 -0
+ BitKeeper file ntpd/psl2.conf
+ ---
+ pollskewlist changes
+
+ ntpd/psl2.conf@1.0 +0 -0
+
+ ntpdc/layout.std@1.16 +8 -7
+ srvfuzrft patches
+
+ sntp/crypto.c@1.39 +2 -0
+ cleanup
+
+ tests/ntpd/t-ntp_scanner.c@1.9 +1 -1
+ Provide more detail on unrecognized config file parser tokens
+
+ChangeSet@1.3879, 2020-02-17 08:11:42+00:00, stenn@psp-deb1.ntp.org
+ updates
+
+ ChangeLog@1.1968.34.1 +2 -0
+
+ChangeSet@1.3877.1.2, 2020-02-08 23:00:11+00:00, stenn@psp-deb1.ntp.org
+ html/confopt.html cleanup
+
+ ChangeLog@1.1968.1.28 +1 -0
+ html/confopt.html cleanup
+
+ html/confopt.html@1.65 +83 -9
+ html/confopt.html cleanup
+
+ChangeSet@1.3877.1.1, 2020-02-04 23:58:57+00:00, stenn@psp-deb1.ntp.org
+ Update the copyright year
+
+ ChangeLog@1.1968.1.27 +1 -0
+ Update the copyright year
+
+ html/copyright.html@1.69 +2 -3
+ Update the copyright year
+
+ ntpd/invoke-ntp.conf.texi@1.219 +1 -1
+ Update the copyright year
+
+ ntpd/invoke-ntp.keys.texi@1.204 +1 -1
+ Update the copyright year
+
+ ntpd/invoke-ntpd.texi@1.518 +3 -3
+ Update the copyright year
+
+ ntpd/ntp.conf.5man@1.253 +3 -3
+ Update the copyright year
+
+ ntpd/ntp.conf.5mdoc@1.253 +3 -3
+ Update the copyright year
+
+ ntpd/ntp.conf.man.in@1.253 +3 -3
+ Update the copyright year
+
+ ntpd/ntp.conf.mdoc.in@1.253 +3 -3
+ Update the copyright year
+
+ ntpd/ntp.keys.5man@1.238 +3 -3
+ Update the copyright year
+
+ ntpd/ntp.keys.5mdoc@1.238 +4 -4
+ Update the copyright year
+
+ ntpd/ntp.keys.man.in@1.238 +3 -3
+ Update the copyright year
+
+ ntpd/ntp.keys.mdoc.in@1.238 +4 -4
+ Update the copyright year
+
+ ntpd/ntpd-opts.c@1.540 +5 -5
+ Update the copyright year
+
+ ntpd/ntpd-opts.h@1.539 +4 -4
+ Update the copyright year
+
+ ntpd/ntpd.1ntpdman@1.347 +3 -3
+ Update the copyright year
+
+ ntpd/ntpd.1ntpdmdoc@1.347 +3 -3
+ Update the copyright year
+
+ ntpd/ntpd.man.in@1.347 +3 -3
+ Update the copyright year
+
+ ntpd/ntpd.mdoc.in@1.347 +3 -3
+ Update the copyright year
+
+ ntpdc/invoke-ntpdc.texi@1.515 +1 -1
+ Update the copyright year
+
+ ntpdc/ntpdc-opts.c@1.533 +5 -5
+ Update the copyright year
+
+ ntpdc/ntpdc-opts.h@1.532 +4 -4
+ Update the copyright year
+
+ ntpdc/ntpdc.1ntpdcman@1.346 +3 -3
+ Update the copyright year
+
+ ntpdc/ntpdc.1ntpdcmdoc@1.346 +3 -3
+ Update the copyright year
+
+ ntpdc/ntpdc.html@1.361 +353 -408
+ Update the copyright year
+
+ ntpdc/ntpdc.man.in@1.346 +3 -3
+ Update the copyright year
+
+ ntpdc/ntpdc.mdoc.in@1.346 +3 -3
+ Update the copyright year
+
+ ntpq/invoke-ntpq.texi@1.525 +1 -1
+ Update the copyright year
+
+ ntpq/ntpq-opts.c@1.542 +5 -5
+ Update the copyright year
+
+ ntpq/ntpq-opts.h@1.540 +4 -4
+ Update the copyright year
+
+ ntpq/ntpq.1ntpqman@1.353 +3 -3
+ Update the copyright year
+
+ ntpq/ntpq.1ntpqmdoc@1.353 +3 -3
+ Update the copyright year
+
+ ntpq/ntpq.man.in@1.353 +3 -3
+ Update the copyright year
+
+ ntpq/ntpq.mdoc.in@1.353 +3 -3
+ Update the copyright year
+
+ ntpsnmpd/invoke-ntpsnmpd.texi@1.517 +1 -1
+ Update the copyright year
+
+ ntpsnmpd/ntpsnmpd-opts.c@1.535 +5 -5
+ Update the copyright year
+
+ ntpsnmpd/ntpsnmpd-opts.h@1.534 +4 -4
+ Update the copyright year
+
+ ntpsnmpd/ntpsnmpd.1ntpsnmpdman@1.346 +3 -3
+ Update the copyright year
+
+ ntpsnmpd/ntpsnmpd.1ntpsnmpdmdoc@1.346 +3 -3
+ Update the copyright year
+
+ ntpsnmpd/ntpsnmpd.man.in@1.346 +3 -3
+ Update the copyright year
+
+ ntpsnmpd/ntpsnmpd.mdoc.in@1.346 +3 -3
+ Update the copyright year
+
+ scripts/calc_tickadj/calc_tickadj.1calc_tickadjman@1.107 +2 -2
+ Update the copyright year
+
+ scripts/calc_tickadj/calc_tickadj.1calc_tickadjmdoc@1.108 +2 -2
+ Update the copyright year
+
+ scripts/calc_tickadj/calc_tickadj.html@1.108 +127 -171
+ Update the copyright year
+
+ scripts/calc_tickadj/calc_tickadj.man.in@1.106 +2 -2
+ Update the copyright year
+
+ scripts/calc_tickadj/calc_tickadj.mdoc.in@1.108 +2 -2
+ Update the copyright year
+
+ scripts/calc_tickadj/invoke-calc_tickadj.texi@1.111 +1 -1
+ Update the copyright year
+
+ scripts/invoke-plot_summary.texi@1.129 +1 -1
+ Update the copyright year
+
+ scripts/invoke-summary.texi@1.128 +1 -1
+ Update the copyright year
+
+ scripts/ntp-wait/invoke-ntp-wait.texi@1.338 +1 -1
+ Update the copyright year
+
+ scripts/ntp-wait/ntp-wait-opts@1.74 +1 -1
+ Update the copyright year
+
+ scripts/ntp-wait/ntp-wait.1ntp-waitman@1.335 +2 -2
+ Update the copyright year
+
+ scripts/ntp-wait/ntp-wait.1ntp-waitmdoc@1.336 +2 -2
+ Update the copyright year
+
+ scripts/ntp-wait/ntp-wait.html@1.357 +151 -180
+ Update the copyright year
+
+ scripts/ntp-wait/ntp-wait.man.in@1.335 +2 -2
+ Update the copyright year
+
+ scripts/ntp-wait/ntp-wait.mdoc.in@1.336 +2 -2
+ Update the copyright year
+
+ scripts/ntpsweep/invoke-ntpsweep.texi@1.126 +1 -1
+ Update the copyright year
+
+ scripts/ntpsweep/ntpsweep-opts@1.76 +1 -1
+ Update the copyright year
+
+ scripts/ntpsweep/ntpsweep.1ntpsweepman@1.114 +2 -2
+ Update the copyright year
+
+ scripts/ntpsweep/ntpsweep.1ntpsweepmdoc@1.114 +2 -2
+ Update the copyright year
+
+ scripts/ntpsweep/ntpsweep.html@1.129 +151 -187
+ Update the copyright year
+
+ scripts/ntpsweep/ntpsweep.man.in@1.114 +2 -2
+ Update the copyright year
+
+ scripts/ntpsweep/ntpsweep.mdoc.in@1.115 +2 -2
+ Update the copyright year
+
+ scripts/ntptrace/invoke-ntptrace.texi@1.127 +1 -1
+ Update the copyright year
+
+ scripts/ntptrace/ntptrace-opts@1.76 +1 -1
+ Update the copyright year
+
+ scripts/ntptrace/ntptrace.1ntptraceman@1.114 +2 -2
+ Update the copyright year
+
+ scripts/ntptrace/ntptrace.1ntptracemdoc@1.115 +2 -2
+ Update the copyright year
+
+ scripts/ntptrace/ntptrace.html@1.130 +127 -177
+ Update the copyright year
+
+ scripts/ntptrace/ntptrace.man.in@1.114 +2 -2
+ Update the copyright year
+
+ scripts/ntptrace/ntptrace.mdoc.in@1.116 +2 -2
+ Update the copyright year
+
+ scripts/plot_summary-opts@1.77 +1 -1
+ Update the copyright year
+
+ scripts/plot_summary.1plot_summaryman@1.127 +2 -2
+ Update the copyright year
+
+ scripts/plot_summary.1plot_summarymdoc@1.127 +2 -2
+ Update the copyright year
+
+ scripts/plot_summary.html@1.132 +159 -201
+ Update the copyright year
+
+ scripts/plot_summary.man.in@1.127 +2 -2
+ Update the copyright year
+
+ scripts/plot_summary.mdoc.in@1.127 +2 -2
+ Update the copyright year
+
+ scripts/summary-opts@1.76 +1 -1
+ Update the copyright year
+
+ scripts/summary.1summaryman@1.126 +2 -2
+ Update the copyright year
+
+ scripts/summary.1summarymdoc@1.126 +2 -2
+ Update the copyright year
+
+ scripts/summary.html@1.131 +134 -182
+ Update the copyright year
+
+ scripts/summary.man.in@1.126 +2 -2
+ Update the copyright year
+
+ scripts/summary.mdoc.in@1.126 +2 -2
+ Update the copyright year
+
+ scripts/update-leap/invoke-update-leap.texi@1.27 +1 -1
+ Update the copyright year
+
+ scripts/update-leap/update-leap-opts@1.27 +1 -1
+ Update the copyright year
+
+ scripts/update-leap/update-leap.1update-leapman@1.27 +2 -2
+ Update the copyright year
+
+ scripts/update-leap/update-leap.1update-leapmdoc@1.27 +2 -2
+ Update the copyright year
+
+ scripts/update-leap/update-leap.man.in@1.27 +2 -2
+ Update the copyright year
+
+ scripts/update-leap/update-leap.mdoc.in@1.27 +2 -2
+ Update the copyright year
+
+ sntp/include/copyright.def@1.28 +1 -1
+ Update the copyright year
+
+ sntp/invoke-sntp.texi@1.517 +1 -1
+ Update the copyright year
+
+ sntp/sntp-opts.c@1.536 +5 -5
+ Update the copyright year
+
+ sntp/sntp-opts.h@1.534 +4 -4
+ Update the copyright year
+
+ sntp/sntp.1sntpman@1.352 +3 -3
+ Update the copyright year
+
+ sntp/sntp.1sntpmdoc@1.352 +3 -3
+ Update the copyright year
+
+ sntp/sntp.html@1.533 +418 -472
+ Update the copyright year
+
+ sntp/sntp.man.in@1.352 +3 -3
+ Update the copyright year
+
+ sntp/sntp.mdoc.in@1.352 +3 -3
+ Update the copyright year
+
+ util/invoke-ntp-keygen.texi@1.520 +1 -1
+ Update the copyright year
+
+ util/ntp-keygen-opts.c@1.538 +5 -5
+ Update the copyright year
+
+ util/ntp-keygen-opts.h@1.536 +4 -4
+ Update the copyright year
+
+ util/ntp-keygen.1ntp-keygenman@1.348 +3 -3
+ Update the copyright year
+
+ util/ntp-keygen.1ntp-keygenmdoc@1.348 +3 -3
+ Update the copyright year
+
+ util/ntp-keygen.man.in@1.348 +3 -3
+ Update the copyright year
+
+ util/ntp-keygen.mdoc.in@1.348 +3 -3
+ Update the copyright year
+
+ChangeSet@1.3878, 2020-01-29 06:03:13+00:00, stenn@psp-deb1.ntp.org
+ Initial pass at fixes for bug 3596
+
+ include/ntp_config.h@1.88 +15 -2
+ Initial pass at fixes for bug 3596
+
+ ntpd/keyword-gen-utd@1.34 +1 -1
+ Initial pass at fixes for bug 3596
+
+ ntpd/keyword-gen.c@1.41 +5 -0
+ Initial pass at fixes for bug 3596
+
+ ntpd/ntp_config.c@1.372 +13 -11
+ Initial pass at fixes for bug 3596
+
+ ntpd/ntp_keyword.h@1.37 +940 -913
+ Initial pass at fixes for bug 3596
+
+ ntpd/ntp_parser.c@1.116 +1362 -1285
+ Initial pass at fixes for bug 3596
+
+ ntpd/ntp_parser.h@1.78 +356 -344
+ Initial pass at fixes for bug 3596
+
+ ntpd/ntp_parser.y@1.104 +70 -2
+ Initial pass at fixes for bug 3596
+
+ ntpd/ntp_proto.c@1.427.1.1 +8 -0
+ Initial pass at fixes for bug 3596
+
+ChangeSet@1.3873.4.2, 2020-01-18 04:46:30-05:00, stenn@psp-deb2.ntp.org
+ [Bug 3637] Emit the version of ntpd in saveconfig
+
+ ntpd/Makefile.am@1.136 +2 -1
+ [Bug 3637] Emit the version of ntpd in saveconfig
+
+ ntpd/ntp_config.c@1.369.1.2 +3 -2
+ [Bug 3637] Emit the version of ntpd in saveconfig
+
+ChangeSet@1.3873.4.1, 2020-01-18 04:05:48-05:00, stenn@psp-deb2.ntp.org
+ [Bug 3637] Emit the version of ntpd in saveconfig
+
+ ChangeLog@1.1968.33.1 +1 -0
+ [Bug 3637] Emit the version of ntpd in saveconfig
+
+ ntpd/ntp_config.c@1.369.1.1 +7 -0
+ [Bug 3637] Emit the version of ntpd in saveconfig
+
+ChangeSet@1.3873.2.2, 2020-01-17 06:59:50+01:00, perlinger@ntp.org
+ [Bug 3636] NMEA: combine time/date from multiple sentences
+
+ ChangeLog@1.1968.30.2 +1 -0
+ [Bug 3636] NMEA: combine time/date from multiple sentences
+
+ html/drivers/driver20.html@1.34 +17 -9
+ [Bug 3636] NMEA: combine time/date from multiple sentences
+
+ include/ntp_calgps.h@1.4 +19 -4
+ [Bug 3636] NMEA: combine time/date from multiple sentences
+
+ libntp/ntp_calgps.c@1.4 +31 -20
+ [Bug 3636] NMEA: combine time/date from multiple sentences
+
+ ntpd/refclock_nmea.c@1.84 +158 -97
+ [Bug 3636] NMEA: combine time/date from multiple sentences
+
+ChangeSet@1.3873.3.2, 2020-01-12 07:10:55+01:00, perlinger@ntp.org
+ [Bug 3635] Make leapsecond file hash check optional
+
+ ChangeLog@1.1968.32.2 +1 -0
+ [Bug 3635] Make leapsecond file hash check optional
+
+ html/miscopt.html@1.92 +3 -2
+ [Bug 3635] Make leapsecond file hash check optional
+
+ include/ntp_config.h@1.87 +1 -0
+ [Bug 3635] Make leapsecond file hash check optional
+
+ include/ntpd.h@1.206 +1 -1
+ [Bug 3635] Make leapsecond file hash check optional
+
+ ntpd/cmd_args.c@1.63 +3 -3
+ [Bug 3635] Make leapsecond file hash check optional
+
+ ntpd/complete.conf.in@1.36 +2 -1
+ [Bug 3635] Make leapsecond file hash check optional
+
+ ntpd/keyword-gen-utd@1.33 +1 -1
+ [Bug 3635] Make leapsecond file hash check optional
+
+ ntpd/keyword-gen.c@1.40 +2 -0
+ [Bug 3635] Make leapsecond file hash check optional
+
+ ntpd/ntp_config.c@1.370 +9 -4
+ [Bug 3635] Make leapsecond file hash check optional
+
+ ntpd/ntp_keyword.h@1.36 +1043 -1029
+ [Bug 3635] Make leapsecond file hash check optional
+
+ ntpd/ntp_leapsec.c@1.24 +36 -33
+ [Bug 3635] Make leapsecond file hash check optional
+
+ ntpd/ntp_leapsec.h@1.15 +3 -2
+ [Bug 3635] Make leapsecond file hash check optional
+
+ ntpd/ntp_parser.c@1.115 +1286 -1226
+ [Bug 3635] Make leapsecond file hash check optional
+
+ ntpd/ntp_parser.h@1.77 +378 -371
+ [Bug 3635] Make leapsecond file hash check optional
+
+ ntpd/ntp_parser.y@1.103 +20 -1
+ [Bug 3635] Make leapsecond file hash check optional
+
+ ntpd/ntp_util.c@1.120 +20 -16
+ [Bug 3635] Make leapsecond file hash check optional
+
+ChangeSet@1.3873.1.5, 2020-01-04 04:36:43-05:00, stenn@psp-deb2.ntp.org
+ cleanup
+
+ ChangeLog@1.1968.31.3 +2 -2
+ cleanup
+
+ChangeSet@1.3873.3.1, 2020-01-03 02:23:27-05:00, stenn@psp-deb2.ntp.org
+ [Bug 3634] Typo in discipline.html, reported by Jason Harrison.
+
+ ChangeLog@1.1968.32.1 +1 -0
+ [Bug 3634] Typo in discipline.html, reported by Jason Harrison.
+
+ html/discipline.html@1.11 +19 -18
+ [Bug 3634] Typo in discipline.html, reported by Jason Harrison.
+
+ChangeSet@1.3873.1.3, 2019-12-16 08:30:00+01:00, perlinger@ntp.org
+ [Sec 3592] DoS attack on client ntpd
+
+ ChangeLog@1.1968.31.1 +2 -0
+ [Sec 3592] DoS attack on client ntpd
+
+ ntpd/ntp_proto.c@1.430 +17 -1
+ [Sec 3592] DoS attack on client ntpd
+
+ChangeSet@1.3873.2.1, 2019-12-09 07:43:31+01:00, perlinger@ntp.org
+ [bug 3628] Zeller's congruence in calendar
+
+ ChangeLog@1.1968.30.1 +2 -0
+ [bug 3628] Zeller's congruence in calendar
+
+ include/ntp_calendar.h@1.23 +8 -0
+ [bug 3628] Zeller's congruence in calendar
+ - reconstruct century from y/m/d + day-of-week, 2digit year
+
+ include/ntp_calgps.h@1.3 +2 -2
+ [bug 3628] Zeller's congruence in calendar
+ - comment typos
+
+ libntp/ntp_calendar.c@1.26 +161 -43
+ [bug 3628] Zeller's congruence in calendar
+ - reconstruct century from y/m/d + day-of-week, 2digit year
+ - fast (mod 7) operations
+ - implement reverse Zeller congruence
+
+ libparse/clk_rawdcf.c@1.24 +55 -0
+ [bug 3628] Zeller's congruence in calendar
+ - in-situ implementation of Zeller's congruence
+
+ tests/libntp/calendar.c@1.18 +235 -0
+ [bug 3628] Zeller's congruence in calendar
+ - added unit tests for mod7 and century reconstruction
+ - test algorithm of in-situ implementation of Zeller's congruence in libparse
+
+ tests/libntp/run-calendar.c@1.19 +18 -0
+ [bug 3628] Zeller's congruence in calendar
+ - regenerated test driver
+
+ChangeSet@1.3873.1.2, 2019-12-07 08:19:05+01:00, perlinger@ntp.org
+ [bug 3592]
+ first try to move poll_update
+
+ ntpd/ntp_proto.c@1.429 +10 -9
+ [bug 3592]
+ first try to move poll_update
+
+ChangeSet@1.3873.1.1, 2019-12-05 05:58:36+00:00, stenn@psp-deb1.ntp.org
+ Note places to look for things related to bug 3592
+
+ ntpd/ntp_proto.c@1.428 +5 -0
+ Note places to look for things related to bug 3592
+
+ChangeSet@1.3874, 2019-11-18 06:04:58+00:00, perlinger@psp-deb1.ntp.org
+ [Bug 3627] SIGSEGV on FreeBSD-12 with stack limit and stack gap
+
+ ChangeLog@1.1968.1.23 +2 -0
+ [Bug 3627] SIGSEGV on FreeBSD-12 with stack limit and stack gap
+
+ ntpd/ntpd.c@1.184 +23 -0
+ [Bug 3627] SIGSEGV on FreeBSD-12 with stack limit and stack gap
+
+ChangeSet@1.3871.4.2, 2019-10-10 15:26:29+02:00, perlinger@ntp.org
+ [Bug 3620] memory leak in ntpq sysinfo
+
+ ChangeLog@1.1968.29.2 +2 -0
+ [Bug 3620] memory leak in ntpq sysinfo
+
+ ntpq/ntpq-subs.c@1.131 +4 -0
+ [Bug 3620] memory leak in ntpq sysinfo
+
+ChangeSet@1.3871.4.1, 2019-10-10 15:13:25+02:00, perlinger@ntp.org
+ [Bug 3619] Honour drefid setting in cooked mode and sysinfo
+
+ ChangeLog@1.1968.29.1 +2 -0
+ [Bug 3619] Honour drefid setting in cooked mode and sysinfo
+
+ ntpq/ntpq-subs.c@1.130 +18 -1
+ [Bug 3619] Honour drefid setting in cooked mode and sysinfo
+
+ ntpq/ntpq.c@1.192 +12 -5
+ [Bug 3619] Honour drefid setting in cooked mode and sysinfo
+
+ ntpq/ntpq.h@1.33 +1 -0
+ [Bug 3619] Honour drefid setting in cooked mode and sysinfo
+
+ChangeSet@1.3871.3.1, 2019-10-10 07:19:05+02:00, perlinger@ntp.org
+ [Bug 3612] Use-of-uninitialized-value in receive function
+
+ ChangeLog@1.1968.28.1 +2 -0
+ [Bug 3612] Use-of-uninitialized-value in receive function
+
+ ntpd/ntp_proto.c@1.427 +28 -15
+ [Bug 3612] Use-of-uninitialized-value in receive function
+
+ChangeSet@1.3871.2.1, 2019-10-04 07:29:17+02:00, perlinger@ntp.org
+ [Bug 3593] ntpd discards silently nmea messages after the 5th string
+
+ ChangeLog@1.1968.27.1 +1 -0
+ [Bug 3593] ntpd discards silently nmea messages after the 5th string
+
+ libntp/recvbuff.c@1.43 +0 -2
+ [Bug 3593] ntpd discards silently nmea messages after the 5th string
+ - replenish buffers *always* in 'get_full_recv_buffer', not just for signalled IO
+
+ChangeSet@1.3871.1.5, 2019-10-03 10:04:23+02:00, perlinger@ntp.org
+ [Bug 3594] ntpd discards messages coming through nmead
+
+ ChangeLog@1.1968.25.3 +1 -0
+ [Bug 3594] ntpd discards messages coming through nmead
+
+ ntpd/refclock_nmea.c@1.83 +110 -28
+ [Bug 3594] ntpd discards messages coming through nmead
+ - make socket I/O for NMEAD nonblocking
+ - do local line split / record assembly as TCP does not preserve boundaries
+
+ChangeSet@1.3871.1.3, 2019-09-26 06:46:14+00:00, stenn@psp-deb1.ntp.org
+ typo
+
+ html/clockopt.html@1.28 +2 -2
+ typo
+
+ChangeSet@1.3871.1.1, 2019-09-23 07:18:39+02:00, perlinger@ntp.org
+ [Bug 3601] Tests fail to link on platforms with ntp_cv_gc_sections_runs=no
+
+ ChangeLog@1.1968.26.1 +1 -0
+ [Bug 3601] Tests fail to link on platforms with ntp_cv_gc_sections_runs=no
+
+ sntp/m4/ntp_problemtests.m4@1.6 +12 -0
+ [Bug 3601] Tests fail to link on platforms with ntp_cv_gc_sections_runs=no
+ - disable the 'problematic' tests in all cases where ntp_cv_gc_sections_runs=no
+
+ChangeSet@1.3870.1.1, 2019-09-21 07:31:44+02:00, perlinger@ntp.org
+ [Bug 3615] accelerate refclock startup
+
+ ChangeLog@1.1968.25.1 +1 -0
+ [Bug 3615] accelerate refclock startup
+
+ include/ntp_refclock.h@1.39.1.1 +1 -0
+ [Bug 3615] accelerate refclock startup
+ - add 'inpoll' flag
+
+ ntpd/ntp_loopfilter.c@1.194 +30 -9
+ [Bug 3615] accelerate refclock startup
+ - time boxed stepping of sys_poll (avoid quick sys_poll overshoot)
+
+ ntpd/ntp_refclock.c@1.128.1.1 +77 -6
+ [Bug 3615] accelerate refclock startup
+ - check if clock status could benefit from early poll
+ - 'unsolicited' calls to refclock_receive add bits to the reach mask
+
+ ntpd/refclock_nmea.c@1.82 +14 -10
+ [Bug 3615] accelerate refclock startup
+ - minor sidekick: different order of data integrity checks reduces number of clock events
+ during signal dropout
+
+ChangeSet@1.3867.1.2, 2019-09-13 18:10:32+02:00, perlinger@ntp.org
+ [bug 3609] addendum: extended documention
+
+ html/clockopt.html@1.27 +4 -0
+ [bug 3609] addendum: extended documention
+
+ChangeSet@1.3872, 2019-09-13 08:18:14+02:00, perlinger@ntp.org
+ [Bug 3617] Add support for ACE III and Copernicus II receivers
+
+ ChangeLog@1.1968.1.21 +2 -0
+ [Bug 3617] Add support for ACE III and Copernicus II receivers
+
+ html/drivers/driver29.html@1.18 +68 -10
+ [Bug 3617] Add support for ACE III and Copernicus II receivers
+
+ ntpd/refclock_palisade.c@1.48 +197 -11
+ [Bug 3617] Add support for ACE III and Copernicus II receivers
+
+ ntpd/refclock_palisade.h@1.16 +5 -2
+ [Bug 3617] Add support for ACE III and Copernicus II receivers
+
+ChangeSet@1.3871, 2019-09-06 17:06:02+02:00, perlinger@ntp.org
+ [Bug 3613] 'pool' directive doesn't honor 'noselect' flag
+
+ ntpd/ntp_proto.c@1.426 +7 -5
+ [Bug 3613] 'pool' directive doesn't honor 'noselect' flag
+ - minor cleanup: define mask for all bits going from pool to peer
+
+ChangeSet@1.3870, 2019-09-06 01:32:24-07:00, harlan@max.pfcs.com
+ merge cleanup
+
+ ChangeLog@1.1968.1.20 +2 -1
+ merge cleanup
+
+ChangeSet@1.3844.23.1, 2019-09-05 23:41:13-07:00, harlan@max.pfcs.com
+ [Bug 3613] Propagate noselect to mobilized pool servers
+
+ ChangeLog@1.1968.24.1 +1 -0
+ [Bug 3613] Propagate noselect to mobilized pool servers
+
+ ntpd/ntp_proto.c@1.423.1.1 +4 -1
+ [Bug 3613] Propagate noselect to mobilized pool servers
+
+ChangeSet@1.3867.1.1, 2019-09-05 22:24:53+02:00, perlinger@ntp.org
+ [Bug 3609] Fixing wrong falseticker in case of non-statistic jitter
+ - implementing 'fudge minjitter'
+
+ ChangeLog@1.1968.23.1 +2 -0
+ [Bug 3609] Fixing wrong falseticker in case of non-statistic jitter
+ - implementing 'fudge minjitter'
+
+ html/clockopt.html@1.26 +12 -0
+ [Bug 3609] Fixing wrong falseticker in case of non-statistic jitter
+ - implementing 'fudge minjitter'
+
+ include/ntp_refclock.h@1.40 +4 -1
+ [Bug 3609] Fixing wrong falseticker in case of non-statistic jitter
+ - implementing 'fudge minjitter'
+
+ ntpd/complete.conf.in@1.35 +1 -1
+ [Bug 3609] Fixing wrong falseticker in case of non-statistic jitter
+ - implementing 'fudge minjitter'
+
+ ntpd/keyword-gen.c@1.39 +1 -0
+ [Bug 3609] Fixing wrong falseticker in case of non-statistic jitter
+ - implementing 'fudge minjitter'
+
+ ntpd/ntp_config.c@1.369 +15 -4
+ [Bug 3609] Fixing wrong falseticker in case of non-statistic jitter
+ - implementing 'fudge minjitter'
+
+ ntpd/ntp_control.c@1.237 +15 -2
+ [Bug 3609] Fixing wrong falseticker in case of non-statistic jitter
+ - implementing 'fudge minjitter'
+
+ ntpd/ntp_keyword.h@1.35 +701 -694
+ [Bug 3609] Fixing wrong falseticker in case of non-statistic jitter
+ - implementing 'fudge minjitter'
+
+ ntpd/ntp_parser.c@1.114 +805 -805
+ [Bug 3609] Fixing wrong falseticker in case of non-statistic jitter
+ - implementing 'fudge minjitter'
+
+ ntpd/ntp_parser.h@1.76 +201 -199
+ [Bug 3609] Fixing wrong falseticker in case of non-statistic jitter
+ - implementing 'fudge minjitter'
+
+ ntpd/ntp_parser.y@1.102 +2 -0
+ [Bug 3609] Fixing wrong falseticker in case of non-statistic jitter
+ - implementing 'fudge minjitter'
+
+ ntpd/ntp_refclock.c@1.129 +19 -0
+ [Bug 3609] Fixing wrong falseticker in case of non-statistic jitter
+ - implementing 'fudge minjitter'
+
+ ntpd/refclock_parse.c@1.88 +3 -0
+ [Bug 3609] Fixing wrong falseticker in case of non-statistic jitter
+ - implementing 'fudge minjitter'
+
+ChangeSet@1.3868, 2019-09-04 21:40:55+02:00, perlinger@ntp.org
+ [Bug 3611] NMEA time interpreted incorrectly
+
+ ChangeLog@1.1968.1.18 +3 -0
+ [Bug 3611] NMEA time interpreted incorrectly
+
+ html/drivers/driver20.html@1.33 +34 -2
+ [Bug 3611] NMEA time interpreted incorrectly
+ - add documentation for mode bit 18 ("date trust" feature)
+
+ include/ntp_calgps.h@1.2 +12 -2
+ [Bug 3611] NMEA time interpreted incorrectly
+ - make GPS era folding a runtime decision ("date trust" support)
+
+ libntp/ntp_calgps.c@1.3 +26 -13
+ [Bug 3611] NMEA time interpreted incorrectly
+ - make GPS era folding a runtime decision ("date trust" support)
+
+ ntpd/refclock_nmea.c@1.81 +5 -4
+ [Bug 3611] NMEA time interpreted incorrectly
+ - restore hitherto undocumented "date trust" feature (was lost in [bug 3577])
+ - move "date trust" to mode bit 18
+
+ChangeSet@1.3867, 2019-09-01 10:33:34+02:00, perlinger@ntp.org
+ [Bug 3576] New GPS date function API
+ - copy/paste bug in division code (32-bit non-ARM targets only)
+
+ libntp/ntp_calendar.c@1.25 +1 -1
+ [Bug 3576] New GPS date function API
+ - copy/paste bug in division code (32-bit non-ARM targets only)
+
+ChangeSet@1.3866, 2019-09-01 06:55:03+00:00, stenn@psp-deb1.ntp.org
+ Make 3610 a SEC bug
+
+ ChangeLog@1.1968.1.17 +1 -1
+ Make 3610 a SEC bug
+
+ChangeSet@1.3865, 2019-08-31 23:59:24+00:00, stenn@psp-deb1.ntp.org
+ Clean up sntp/networking.c:sendpkt() error message.
+
+ ChangeLog@1.1968.1.16 +1 -0
+ Clean up sntp/networking.c:sendpkt() error message.
+
+ sntp/networking.c@1.71 +1 -1
+ Clean up sntp/networking.c:sendpkt() error message.
+
+ChangeSet@1.3864, 2019-08-31 23:56:58+00:00, stenn@psp-deb1.ntp.org
+ [Bug 3610] process_control() should bail earlier on short packets. stenn@
+
+ ChangeLog@1.1968.1.15 +2 -0
+
+ ntpd/ntp_control.c@1.236 +13 -6
+
+ChangeSet@1.3863, 2019-08-20 08:36:42+02:00, perlinger@ntp.org
+ [Bug3608] libparse fails to compile on S11.4SRU13 and later
+
+ ChangeLog@1.1968.1.14 +2 -0
+ [Bug3608] libparse fails to compile on S11.4SRU13 and later
+
+ libparse/Makefile.am@1.33 +3 -1
+ [Bug3608] libparse fails to compile on S11.4SRU13 and later
+
+ChangeSet@1.3862, 2019-08-16 04:07:25-04:00, stenn@psp-deb2.ntp.org
+ ChangeLog:
+ merge cleanup
+
+ ChangeLog@1.1968.1.13 +3 -4
+ merge cleanup
+
+ChangeSet@1.3844.3.13, 2019-08-12 07:09:14+02:00, perlinger@ntp.org
+ [bug 3576] documentation typo
+
+ html/drivers/driver20.html@1.29.1.2 +1 -1
+ [bug 3576] documentation typo
+
+ChangeSet@1.3844.21.2, 2019-08-10 18:35:06+02:00, perlinger@ntp.org
+ comment change
+
+ include/ntp_request.h@1.53 +1 -1
+ comment change
+
+ChangeSet@1.3844.22.1, 2019-08-10 09:03:06+02:00, perlinger@ntp.org
+ [Bug 3604] Wrong param byte order passing into record_raw_stats() in ntp_io.c
+
+ ChangeLog@1.1968.21.1 +4 -0
+ [Bug 3604] Wrong param byte order passing into record_raw_stats() in ntp_io.c
+
+ ntpd/ntp_io.c@1.429.1.1 +8 -4
+ [Bug 3604] Wrong param byte order passing into record_raw_stats() in ntp_io.c
+
+ChangeSet@1.3844.21.1, 2019-08-10 08:31:59+02:00, perlinger@ntp.org
+ [Bug 3599] Build fails on linux-m68k due to alignment issues
+
+ ChangeLog@1.1968.20.1 +4 -0
+ [Bug 3599] Build fails on linux-m68k due to alignment issues
+
+ include/ntp_request.h@1.52 +1 -0
+ [Bug 3599] Build fails on linux-m68k due to alignment issues
+
+ ntpdc/layout.std@1.15 +1 -0
+ [Bug 3599] Build fails on linux-m68k due to alignment issues
+
+ChangeSet@1.3852, 2019-07-04 06:29:23-04:00, stenn@psp-deb2.ntp.org
+ typo
+
+ html/drivers/driver20.html@1.31 +1 -1
+ typo
+
+ChangeSet@1.3850, 2019-07-04 06:20:52-04:00, stenn@psp-deb2.ntp.org
+ Distribute include/timexsup.h
+
+ include/Makefile.am@1.56 +1 -0
+ Distribute include/timexsup.h
+
+ChangeSet@1.3844.3.12, 2019-06-20 06:23:08+02:00, perlinger@ntp.org
+ [Bug 3576] New GPS date function API
+ - sidekick: use different division tricks in calendar
+
+ libntp/ntp_calendar.c@1.24 +91 -95
+ [Bug 3576] New GPS date function API
+ - sidekick: use different division tricks in calendar, use linear fractionals for month length
+
+ tests/libntp/calendar.c@1.17 +28 -0
+ [Bug 3576] New GPS date function API
+ - sidekick: more calendar unit tests
+
+ tests/libntp/run-calendar.c@1.17 +22 -18
+ [Bug 3576] New GPS date function API
+ - sidekick: update unit test runner
+
+ChangeSet@1.3844.20.1, 2019-06-15 09:17:38+02:00, perlinger@ntp.org
+ [Bug 3473] RefID of refclocks should always be text format
+
+ ChangeLog@1.1968.19.1 +4 -0
+ [Bug 3473] RefID of refclocks should always be text format
+
+ ntpd/ntp_control.c@1.232.2.2 +4 -9
+ [Bug 3473] RefID of refclocks should always be text format
+
+ ntpdc/ntpdc_ops.c@1.86.1.1 +65 -63
+ [Bug 3473] RefID of refclocks should always be text format
+
+ ntpq/ntpq.c@1.189.1.1 +14 -1
+ [Bug 3473] RefID of refclocks should always be text format
+
+ChangeSet@1.3844.19.1, 2019-06-04 07:59:30+02:00, perlinger@ntp.org
+ [Bug 3490] Patch to support Trimble Resolution Receivers
+
+ ChangeLog@1.1968.18.1 +4 -0
+ [Bug 3490] Patch to support Trimble Resolution Receivers
+
+ ntpd/refclock_palisade.c@1.47 +45 -1
+ [Bug 3490] Patch to support Trimble Resolution Receivers
+ - original patch by Richard Steedman
+ - fixed bitwise AND vs boolean AND operation (not a real bug, but confusing)
+
+ChangeSet@1.3844.18.1, 2019-06-04 06:41:14+02:00, perlinger@ntp.org
+ [Bug 3491] Signed values of LFP datatypes should always display a sign
+
+ ChangeLog@1.1968.17.1 +4 -0
+ [Bug 3491] Signed values of LFP datatypes should always display a sign
+
+ include/ntp_fp.h@1.35 +2 -2
+ [Bug 3491] Signed values of LFP datatypes should always display a sign
+
+ libntp/dofptoa.c@1.10 +5 -5
+ [Bug 3491] Signed values of LFP datatypes should always display a sign
+
+ libntp/dolfptoa.c@1.13 +5 -5
+ [Bug 3491] Signed values of LFP datatypes should always display a sign
+
+ libntp/mstolfp.c@1.6 +3 -4
+ [Bug 3491] Signed values of LFP datatypes should always display a sign
+
+ ntpq/ntpq-subs.c@1.127.1.1 +3 -3
+ [Bug 3491] Signed values of LFP datatypes should always display a sign
+
+ ntpq/ntpq.c@1.190 +27 -10
+ [Bug 3491] Signed values of LFP datatypes should always display a sign
+
+ tests/libntp/lfptostr.c@1.9 +18 -18
+ [Bug 3491] Signed values of LFP datatypes should always display a sign
+
+ tests/libntp/refidsmear.c@1.8 +16 -16
+ [Bug 3491] Signed values of LFP datatypes should always display a sign
+
+ChangeSet@1.3844.17.1, 2019-06-02 14:02:24+02:00, perlinger@ntp.org
+ [Bug 2420] ntpd doesn't run and exits with retval 0 when invalid user is specified with -u
+ - monitor daemon child startup & propagate exit codes
+
+ ChangeLog@1.1968.16.1 +5 -0
+ [Bug 2420] ntpd doesn't run and exits with retval 0 when invalid user is specified with -u
+ - monitor daemon child startup & propagate exit codes
+
+ configure.ac@1.616.1.1 +1 -0
+ [Bug 2420] ntpd doesn't run and exits with retval 0 when invalid user is specified with -u
+ - check for 'waitpid()'
+
+ include/ntpd.h@1.205 +1 -1
+ [Bug 2420] ntpd doesn't run and exits with retval 0 when invalid user is specified with -u
+ - unclutter daemon startup pipe handling
+
+ ntpd/ntp_proto.c@1.424 +4 -3
+ [Bug 2420] ntpd doesn't run and exits with retval 0 when invalid user is specified with -u
+ - unclutter daemon startup pipe handling
+ - send 'S' (--> synced) message to parent process
+
+ ntpd/ntpd.c@1.180.2.1 +150 -60
+ [Bug 2420] ntpd doesn't run and exits with retval 0 when invalid user is specified with -u
+ - monitor daemon child startup & propagate exit codes
+ - send 'R' (--> running) message to parent process when getting operational
+ - unclutter daemon startup pipe handling
+
+ChangeSet@1.3844.16.1, 2019-06-01 17:53:11+02:00, perlinger@ntp.org
+ [Bug 3094] ntpd trying to listen for broadcasts on a completely ipv6 network
+
+ ChangeLog@1.1968.15.1 +4 -0
+ [Bug 3094] ntpd trying to listen for broadcasts on a completely ipv6 network
+
+ include/ntp_io.h@1.24 +1 -1
+ [Bug 3094] ntpd trying to listen for broadcasts on a completely ipv6 network
+
+ ntpd/ntp_io.c@1.430 +38 -28
+ [Bug 3094] ntpd trying to listen for broadcasts on a completely ipv6 network
+ - disable the warning on an IPv6-only network. No harm done in that case, and the
+ semantic of 'sys_bclient' is too intricate for simple changes
+
+ChangeSet@1.3844.15.1, 2019-05-30 10:53:25+02:00, perlinger@ntp.org
+ [Bug 3533] ntpdc peer_info ipv6 issues
+
+ ChangeLog@1.1968.14.1 +4 -0
+ [Bug 3533] ntpdc peer_info ipv6 issues
+
+ ntpd/ntp_request.c@1.130 +1 -1
+ [Bug 3533] ntpdc peer_info ipv6 issues
+ - wrong address used in AF-specific branch decision
+
+ ntpdc/ntpdc.c@1.112.1.1 +8 -7
+ [Bug 3533] ntpdc peer_info ipv6 issues
+
+ ntpdc/ntpdc_ops.c@1.87 +10 -3
+ [Bug 3533] ntpdc peer_info ipv6 issues
+
+ChangeSet@1.3844.3.11, 2019-05-28 08:11:59+02:00, perlinger@ntp.org
+ [some cleanup of calendar calculations]
+
+ include/ntp_calendar.h@1.22 +43 -1
+ [some cleanup of calendar calculations]
+ - alternative implementation of the leapyear test
+
+ libntp/ntp_calendar.c@1.23 +19 -12
+ [some cleanup of calendar calculations]
+ - fix an embarrassing error in the 32bit-only code for day/week join
+
+ tests/libntp/calendar.c@1.16 +16 -0
+ [some cleanup of calendar calculations]
+ - add direkt unit test for leap year rule
+
+ tests/libntp/run-calendar.c@1.16 +16 -14
+ [some cleanup of calendar calculations]
+ - update regenerated file
+
+ChangeSet@1.3844.14.5, 2019-05-16 21:09:12+02:00, perlinger@ntp.org
+ [Bug 3515] Refactor ntpdmain() dispatcher loop and group common code
+
+ ChangeLog@1.1968.13.5 +2 -0
+ [Bug 3515] Refactor ntpdmain() dispatcher loop and group common code
+
+ ntpd/ntpd.c@1.180.1.2 +7 -12
+ [Bug 3515] Refactor ntpdmain() dispatcher loop and group common code
+
+ChangeSet@1.3844.14.4, 2019-05-16 20:51:13+02:00, perlinger@ntp.org
+ [Bug 3510] Flatten out the #ifdef nesting in ntpdmain()
+
+ ChangeLog@1.1968.13.4 +2 -0
+ [Bug 3510] Flatten out the #ifdef nesting in ntpdmain()
+
+ ntpd/ntpd.c@1.180.1.1 +2 -6
+ [Bug 3510] Flatten out the #ifdef nesting in ntpdmain()
+
+ChangeSet@1.3844.14.3, 2019-05-16 20:19:10+02:00, perlinger@ntp.org
+ [Bug 3517] Reducing build noise
+
+ ChangeLog@1.1968.13.3 +1 -0
+ [Bug 3517] Reducing build noise
+
+ ntpq/Makefile.am@1.74 +15 -13
+ [Bug 3517] Reducing build noise
+ - linker flags useless for static library
+ - lines containing tabs only are bad in makefiles
+
+ChangeSet@1.3844.14.2, 2019-05-16 19:42:17+02:00, perlinger@ntp.org
+ [Bug 3516] Require tooling from this decade
+
+ ChangeLog@1.1968.13.2 +2 -0
+ [Bug 3516] Require tooling from this decade
+
+ configure.ac@1.617 +4 -7
+ [Bug 3516] Require tooling from this decade
+
+ sntp/configure.ac@1.86 +5 -7
+ [Bug 3516] Require tooling from this decade
+
+ChangeSet@1.3844.14.1, 2019-05-16 19:03:12+02:00, perlinger@ntp.org
+ [Bug 3511] Get rid of AC_LANG_SOURCE() warnings
+
+ ChangeLog@1.1968.13.1 +4 -0
+ [Bug 3511] Get rid of AC_LANG_SOURCE() warnings
+
+ sntp/libopts/m4/libopts.m4@1.35 +12 -12
+ [Bug 3511] Get rid of AC_LANG_SOURCE() warnings
+
+ChangeSet@1.3844.3.10, 2019-05-13 07:44:52+02:00, perlinger@ntp.org
+ [Bug 3590] Update refclock_oncore.c to the new GPS date API
+
+ ChangeLog@1.1968.3.3 +1 -0
+ [Bug 3590] Update refclock_oncore.c to the new GPS date API
+
+ libntp/ntp_calgps.c@1.2 +29 -5
+ [Bug 3590] Update refclock_oncore.c to the new GPS date API
+
+ ntpd/refclock_oncore.c@1.105 +54 -2
+ [Bug 3590] Update refclock_oncore.c to the new GPS date API
+ - use GPS era remapping
+
+ tests/libntp/calendar.c@1.15 +67 -28
+ [Bug 3590] Update refclock_oncore.c to the new GPS date API
+ - additional tests for era remapping
+
+ tests/libntp/run-calendar.c@1.15 +5 -3
+ [Bug 3590] Update refclock_oncore.c to the new GPS date API
+
+ChangeSet@1.3844.13.1, 2019-05-04 10:13:19+02:00, perlinger@ntp.org
+ [Bug 3531] make check: test-decodenetnum fails
+
+ ChangeLog@1.1968.12.1 +5 -0
+ [Bug 3531] make check: test-decodenetnum fails
+
+ include/ntp_control.h@1.60 +4 -0
+ [Bug 3531] make check: test-decodenetnum fails
+ - side kick: add preprocessor guards
+
+ libntp/decodenetnum.c@1.19 +57 -25
+ [Bug 3531] make check: test-decodenetnum fails
+ - harden against missing/incomplete /etc/services (getaddrinfo() croaks on service)
+
+ tests/libntp/decodenetnum.c@1.12 +6 -6
+ [Bug 3531] make check: test-decodenetnum fails
+ - fix cond-compile target/config guards
+
+ tests/libntp/sockaddrtest.c@1.3 +7 -1
+ [Bug 3531] make check: test-decodenetnum fails
+ - get strings to local buffers instead of overruning lib buffers
+
+ tests/libntp/socktoa.c@1.13 +8 -8
+ [Bug 3531] make check: test-decodenetnum fails
+ - fix cond-compile target/config guards
+
+ChangeSet@1.3844.8.2, 2019-05-02 10:26:12+02:00, perlinger@ntp.org
+ [Bug 3573] nptdate: missleading error message
+
+ ntpdate/ntpdate.c@1.102.1.2 +1 -3
+ [Bug 3573] nptdate: missleading error message
+ - sidekick: make failing to set IPV6_V6ONLY non-fatal
+
+ChangeSet@1.3844.12.1, 2019-05-02 08:35:23+02:00, perlinger@ntp.org
+ [Bug 1433] runtime check whether the kernel really supports capabilities
+
+ ChangeLog@1.1968.11.1 +4 -0
+ [Bug 1433] runtime check whether the kernel really supports capabilities
+
+ ntpd/ntpd.c@1.181 +27 -3
+ [Bug 1433] runtime check whether the kernel really supports capabilities
+
+ChangeSet@1.3844.11.1, 2019-05-02 07:27:17+02:00, perlinger@ntp.org
+ [Bug 3132] Building 4.2.8p8 with disabled local libopts fails
+
+ ChangeLog@1.1968.10.1 +4 -0
+ [Bug 3132] Building 4.2.8p8 with disabled local libopts fails
+
+ sntp/main.c@1.105 +4 -0
+ [Bug 3132] Building 4.2.8p8 with disabled local libopts fails
+ - include <sysexits.h> if we have it
+
+ChangeSet@1.3844.10.1, 2019-05-02 06:32:04+02:00, perlinger@ntp.org
+ [Bug 3550] Reproducible build: Respect SOURCE_DATE_EPOCH
+
+ ChangeLog@1.1968.9.1 +4 -0
+ [Bug 3550] Reproducible build: Respect SOURCE_DATE_EPOCH
+
+ scripts/build/mkver.in@1.16 +6 -1
+ [Bug 3550] Reproducible build: Respect SOURCE_DATE_EPOCH
+
+ChangeSet@1.3844.9.1, 2019-05-01 10:25:57+02:00, perlinger@ntp.org
+ [Bug 3542] ntpdc monlist parameters cannot be set
+
+ ChangeLog@1.1968.8.1 +3 -0
+ [Bug 3542] ntpdc monlist parameters cannot be set
+
+ ntpdc/ntpdc.c@1.113 +15 -35
+ [Bug 3542] ntpdc monlist parameters cannot be set
+ - fixed 'getarg()' number parsing (still assumed union and was badly refactored)
+
+ChangeSet@1.3844.8.1, 2019-05-01 07:24:20+02:00, perlinger@ntp.org
+ [Bug 3573] nptdate: missleading error message
+
+ ChangeLog@1.1968.7.1 +3 -0
+ [Bug 3573] nptdate: missleading error message
+
+ ntpdate/ntpdate.c@1.102.1.1 +5 -1
+ [Bug 3573] nptdate: missleading error message
+ - empty ARGV/ARGC acceptable only with NETINFO available
+
+ChangeSet@1.3844.6.2, 2019-04-30 08:09:13+02:00, perlinger@ntp.org
+ [Bug 3583] synchronization error
+ - update docs on 'tos basedate'
+
+ html/miscopt.html@1.91 +6 -2
+ [Bug 3583] synchronization error
+ - update docs on 'tos basedate'
+
+ChangeSet@1.3844.7.1, 2019-04-28 09:50:11+02:00, perlinger@ntp.org
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+
+ ChangeLog@1.1968.6.1 +4 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+
+ include/ntp_syslog.h@1.10 +3 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - add 'change_iobufs()' for unit test setup
+
+ libntp/msyslog.c@1.55 +38 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - add 'change_iobufs()' for unit test setup
+
+ sntp/tests/run-crypto.c@1.9 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - regenrated test runner
+
+ sntp/tests/run-keyFile.c@1.11 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - regenrated test runner
+
+ sntp/tests/run-kodDatabase.c@1.11 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - regenrated test runner
+
+ sntp/tests/run-kodFile.c@1.9 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - regenrated test runner
+
+ sntp/tests/run-networking.c@1.5 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - regenrated test runner
+
+ sntp/tests/run-packetHandling.c@1.8 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - regenrated test runner
+
+ sntp/tests/run-packetProcessing.c@1.14 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - regenrated test runner
+
+ sntp/tests/run-t-log.c@1.7 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - regenrated test runner
+
+ sntp/tests/run-utilities.c@1.8 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - regenrated test runner
+
+ sntp/tests/testconf.yml@1.2 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - set output streams to line buffered during test suite setup
+
+ tests/bug-2803/run-bug-2803.c@1.11 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - regenrated test runner
+
+ tests/bug-2803/testconf.yml@1.2 +2 -1
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - set output streams to line buffered during test suite setup
+
+ tests/bug-3102/testconf.yml@1.2 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - set output streams to line buffered during test suite setup
+
+ tests/libntp/run-a_md5encrypt.c@1.17 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - regenrated test runner
+
+ tests/libntp/run-atoint.c@1.10 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - regenrated test runner
+
+ tests/libntp/run-atouint.c@1.11 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - regenrated test runner
+
+ tests/libntp/run-authkeys.c@1.15 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - regenrated test runner
+
+ tests/libntp/run-buftvtots.c@1.8 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - regenrated test runner
+
+ tests/libntp/run-calendar.c@1.13.1.1 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - regenrated test runner
+
+ tests/libntp/run-caljulian.c@1.15 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - regenrated test runner
+
+ tests/libntp/run-caltontp.c@1.7 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - regenrated test runner
+
+ tests/libntp/run-calyearstart.c@1.9 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - regenrated test runner
+
+ tests/libntp/run-clocktime.c@1.12 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - regenrated test runner
+
+ tests/libntp/run-decodenetnum.c@1.13 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - regenrated test runner
+
+ tests/libntp/run-hextoint.c@1.11 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - regenrated test runner
+
+ tests/libntp/run-hextolfp.c@1.10 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - regenrated test runner
+
+ tests/libntp/run-humandate.c@1.9 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - regenrated test runner
+
+ tests/libntp/run-lfpfunc.c@1.21 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - regenrated test runner
+
+ tests/libntp/run-lfptostr.c@1.10 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - regenrated test runner
+
+ tests/libntp/run-modetoa.c@1.14 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - regenrated test runner
+
+ tests/libntp/run-msyslog.c@1.11 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - regenrated test runner
+
+ tests/libntp/run-netof.c@1.10 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - regenrated test runner
+
+ tests/libntp/run-numtoa.c@1.13 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - regenrated test runner
+
+ tests/libntp/run-numtohost.c@1.13 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - regenrated test runner
+
+ tests/libntp/run-octtoint.c@1.9 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - regenrated test runner
+
+ tests/libntp/run-prettydate.c@1.8 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - regenrated test runner
+
+ tests/libntp/run-recvbuff.c@1.7 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - regenrated test runner
+
+ tests/libntp/run-refidsmear.c@1.10 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - regenrated test runner
+
+ tests/libntp/run-refnumtoa.c@1.11 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - regenrated test runner
+
+ tests/libntp/run-sbprintf.c@1.3 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - regenrated test runner
+
+ tests/libntp/run-sfptostr.c@1.9 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - regenrated test runner
+
+ tests/libntp/run-socktoa.c@1.16 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - regenrated test runner
+
+ tests/libntp/run-ssl_init.c@1.11 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - regenrated test runner
+
+ tests/libntp/run-statestr.c@1.13 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - regenrated test runner
+
+ tests/libntp/run-strtolfp.c@1.8 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - regenrated test runner
+
+ tests/libntp/run-timespecops.c@1.13 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - regenrated test runner
+
+ tests/libntp/run-timevalops.c@1.16 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - regenrated test runner
+
+ tests/libntp/run-tsafememcmp.c@1.3 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - regenrated test runner
+
+ tests/libntp/run-tstotv.c@1.7 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - regenrated test runner
+
+ tests/libntp/run-tvtots.c@1.8 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - regenrated test runner
+
+ tests/libntp/run-uglydate.c@1.13 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - regenrated test runner
+
+ tests/libntp/run-vi64ops.c@1.10 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - regenrated test runner
+
+ tests/libntp/run-ymd2yd.c@1.13 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - regenrated test runner
+
+ tests/libntp/testconf.yml@1.2 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - set output streams to line buffered during test suite setup
+
+ tests/ntpd/run-leapsec.c@1.9 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - regenrated test runner
+
+ tests/ntpd/run-ntp_prio_q.c@1.7 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - regenrated test runner
+
+ tests/ntpd/run-ntp_restrict.c@1.9 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - regenrated test runner
+
+ tests/ntpd/run-rc_cmdlength.c@1.7 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - regenrated test runner
+
+ tests/ntpd/run-t-ntp_scanner.c@1.8 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - regenrated test runner
+
+ tests/ntpd/run-t-ntp_signd.c@1.13 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - regenrated test runner
+
+ tests/ntpd/testconf.yml@1.2 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - set output streams to line buffered during test suite setup
+
+ tests/ntpq/run-t-ntpq.c@1.5 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - regenrated test runner
+
+ tests/ntpq/testconf.yml@1.2 +2 -1
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - set output streams to line buffered during test suite setup
+
+ tests/sandbox/run-modetoa.c@1.5 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - regenrated test runner
+
+ tests/sandbox/run-uglydate.c@1.9 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - regenrated test runner
+
+ tests/sandbox/run-ut-2803.c@1.4 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - regenrated test runner
+
+ tests/sandbox/testconf.yml@1.2 +2 -1
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - set output streams to line buffered during test suite setup
+
+ tests/sec-2853/run-sec-2853.c@1.7 +2 -0
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - regenrated test runner
+
+ tests/sec-2853/testconf.yml@1.2 +2 -1
+ [Bug 3585] Unity tests mix buffered and unbuffered output
+ - set output streams to line buffered during test suite setup
+
+ChangeSet@1.3844.6.1, 2019-04-27 18:55:23+02:00, perlinger@ntp.org
+ [Bug 3583] synchronization error
+
+ ChangeLog@1.1968.5.1 +4 -0
+ [Bug 3583] synchronization error
+
+ libntp/systime.c@1.75 +11 -15
+ [Bug 3583] synchronization error <perlinger@ntp.org>
+ - set clock to base date if system time is before that limit
+ (used to map inside the intended era, which is actually a bad idea)
+
+ChangeSet@1.3844.5.5, 2019-04-23 08:17:58+02:00, perlinger@ntp.org
+ [Bug 3582] gpsdjson refclock fudgetime1 adjustment is doubled
+
+ ChangeLog@1.1968.4.1 +3 -0
+ [Bug 3582] gpsdjson refclock fudgetime1 adjustment is doubled
+
+ ntpd/refclock_gpsdjson.c@1.30 +1 -1
+ [Bug 3582] gpsdjson refclock fudgetime1 adjustment is doubled
+
+ChangeSet@1.3844.3.9, 2019-04-22 11:57:53+02:00, perlinger@ntp.org
+ [Bug 3577] silence some nitpicking from MSVC
+
+ ntpd/refclock_jupiter.c@1.34 +12 -12
+ [Bug 3577] silence some nitpicking from MSVC
+
+ChangeSet@1.3844.5.4, 2019-04-22 01:20:36-07:00, ntpreleng@ntp-build.tal1.ntfo.org
+ Author cleanup
+
+ BitKeeper/etc/Authors/ntpreleng.txt@1.1 +1 -0
+ BitKeeper file BitKeeper/etc/Authors/ntpreleng.txt
+
+ BitKeeper/etc/Authors/ntpreleng.txt@1.0 +0 -0
+
+ BitKeeper/etc/authors.txt@1.3 +1 -2
+ Author cleanup
+
+ChangeSet@1.3844.5.3, 2019-04-21 03:33:53-07:00, ntpreleng@ntp-build.tal1.ntfo.org
+ author cleanup
+
+ BitKeeper/deleted/2e/Brian.txt~204f4d9a946d68c3@1.2 +0 -0
+ Delete: BitKeeper/etc/Authors/Brian.txt
+
+ChangeSet@1.3844.5.2, 2019-04-21 03:26:18-07:00, ntpreleng@ntp-build.tal1.ntfo.org
+ author cleanup
+
+ BitKeeper/etc/Authors/amidamaru.txt@1.3 +0 -0
+ Rename: BitKeeper/etc/Authors/Amidamaru.txt -> BitKeeper/etc/Authors/amidamaru.txt
+
+ChangeSet@1.3844.5.1, 2019-04-21 03:25:30-07:00, ntpreleng@ntp-build.tal1.ntfo.org
+ author cleanup
+
+ BitKeeper/deleted/b5/amidamaru.txt~83565bba563cd9e2@1.3 +0 -0
+ Delete: BitKeeper/etc/Authors/amidamaru.txt
+
+ BitKeeper/etc/Authors/Amidamaru.txt@1.2 +1 -0
+ author cleanup
+
+ BitKeeper/triggers/Old/post-incoming.license-warn@1.11 +0 -0
+ Rename: BitKeeper/triggers/post-incoming.license-warn -> BitKeeper/triggers/Old/post-incoming.license-warn
+
+ BitKeeper/triggers/Old/pre-resolve.license-chk@1.12 +0 -0
+ Rename: BitKeeper/triggers/pre-resolve.license-chk -> BitKeeper/triggers/Old/pre-resolve.license-chk
+
+ BitKeeper/triggers/Old/pre-resolve.licfix@1.6 +0 -0
+ Rename: BitKeeper/triggers/pre-resolve.licfix -> BitKeeper/triggers/Old/pre-resolve.licfix
+
+ChangeSet@1.3844.3.7, 2019-04-20 08:38:11+02:00, perlinger@ntp.org
+ [Bug 3577] Update refclock_zyfer.c to the new GPS date API
+
+ ChangeLog@1.1968.3.2 +2 -0
+ [Bug 3577] Update refclock_zyfer.c to the new GPS date API
+
+ html/drivers/driver20.html@1.29.1.1 +22 -1
+ [Bug 3577] Update refclock_zyfer.c to the new GPS date API
+
+ ntpd/refclock_jupiter.c@1.33 +312 -409
+ [Bug 3577] Update refclock_zyfer.c to the new GPS date API
+
+ ntpd/refclock_nmea.c@1.80 +434 -703
+ [Bug 3577] Update refclock_zyfer.c to the new GPS date API
+ - use new API to wrap/warp GPS time stamps
+ - implement silent PPS mode & data expiration
+ - major changes for string parsing, too
+
+ ntpd/refclock_zyfer.c@1.11 +21 -4
+ [Bug 3577] Update refclock_zyfer.c to the new GPS date API
+
+ChangeSet@1.3844.3.6, 2019-04-20 08:18:00+02:00, perlinger@ntp.org
+ [Bug 3576] New GPS date function API
+
+ ChangeLog@1.1968.3.1 +3 -0
+ [Bug 3576] New GPS date function API
+
+ include/ntp_calendar.h@1.21 +20 -1
+ [Bug 3576] New GPS date function API
+ - typedefs & new functions
+
+ include/ntp_calgps.h@1.1 +126 -0
+ [Bug 3576] New GPS date function API
+ - new module to do proper GPS epoch wrapping
+
+ include/ntp_calgps.h@1.0 +0 -0
+
+ include/ntp_refclock.h@1.39 +20 -9
+ [Bug 3576] New GPS date function API
+ - filter stage count is power of two now
+ - new functions for buffer handling
+
+ include/timespecops.h@1.6 +8 -179
+ [Bug 3576] New GPS date function API
+ - moved functions from inline to body
+
+ libntp/Makefile.am@1.82.1.1 +2 -0
+ [Bug 3576] New GPS date function API
+ - added new modules
+
+ libntp/ntp_calendar.c@1.22 +398 -259
+ [Bug 3576] New GPS date function API
+ - typedefs & new functions
+
+ libntp/ntp_calgps.c@1.1 +586 -0
+ [Bug 3576] New GPS date function API
+ - new module to do proper GPS epoch wrapping
+
+ libntp/ntp_calgps.c@1.0 +0 -0
+
+ libntp/timespecops.c@1.1 +233 -0
+ [Bug 3576] New GPS date function API
+ - moved functions from inline to body
+
+ libntp/timespecops.c@1.0 +0 -0
+
+ ntpd/ntp_refclock.c@1.128 +309 -7
+ [Bug 3576] New GPS date function API
+ - filter stage count is power of two now
+ - new functions for buffer handling
+
+ ntpd/ntp_restrict.c@1.47 +0 -2
+ [Bug 3576] New GPS date function API
+ - side kick: remove unused variables
+
+ parseutil/dcfd.c@1.30 +10 -10
+ [Bug 3576] New GPS date function API
+ - side kick: fix compiler warnings (dprintf is a function and not the same as DPRINTF)
+
+ ports/winnt/vs2005/libntp.vcproj@1.28 +12 -0
+ [Bug 3576] New GPS date function API
+ - added new modules
+
+ ports/winnt/vs2008/libntp/libntp.vcproj@1.59 +12 -0
+ [Bug 3576] New GPS date function API
+ - added new modules
+
+ ports/winnt/vs2013/libntp/libntp.vcxproj@1.15 +3 -0
+ [Bug 3576] New GPS date function API
+ - added new modules
+
+ ports/winnt/vs2013/libntp/libntp.vcxproj.filters@1.13 +9 -0
+ [Bug 3576] New GPS date function API
+ - added new modules
+
+ ports/winnt/vs2015/libntp/libntp.vcxproj@1.5 +3 -0
+ [Bug 3576] New GPS date function API
+ - added new modules
+
+ ports/winnt/vs2015/libntp/libntp.vcxproj.filters@1.5 +9 -0
+ [Bug 3576] New GPS date function API
+ - added new modules
+
+ tests/libntp/calendar.c@1.14 +169 -4
+ [Bug 3576] New GPS date function API
+ - week split function tests
+
+ tests/libntp/run-calendar.c@1.14 +27 -17
+ [Bug 3576] New GPS date function API
+ - regenerated
+
+ChangeSet@1.3844.4.1, 2019-04-08 21:54:16+02:00, perlinger@ntp.org
+ [Bug 3580] Possible bug ntpq-subs (NULL dereference in dogetassoc)
+
+ ChangeLog@1.1968.1.4 +4 -0
+ [Bug 3580] Possible bug ntpq-subs (NULL dereference in dogetassoc)
+
+ ntpq/ntpq-subs.c@1.128 +188 -147
+ [Bug 3580] Possible bug ntpq-subs (NULL dereference in dogetassoc)
+ - wrap FILE I/O in functions that substitute stderr for NULL
+ - kill trailing whitespace
+
+ChangeSet@1.3844.3.5, 2019-03-10 17:10:50-07:00, ntpreleng@ntp-bk2git.tal1.ntfo.org
+ author updates
+
+ BitKeeper/etc/authors.txt@1.2 +4 -0
+ author updates
+
+ChangeSet@1.3844.3.4, 2019-03-10 17:04:30-07:00, ntpreleng@ntp-bk2git.tal1.ntfo.org
+ author updates
+
+ BitKeeper/etc/Authors/Amidamaru.txt@1.1 +1 -0
+ BitKeeper file BitKeeper/etc/Authors/Amidamaru.txt
+
+ BitKeeper/etc/Authors/Amidamaru.txt@1.0 +0 -0
+
+ BitKeeper/etc/Authors/Brian.txt@1.1 +1 -0
+ BitKeeper file BitKeeper/etc/Authors/Brian.txt
+
+ BitKeeper/etc/Authors/Brian.txt@1.0 +0 -0
+
+ BitKeeper/etc/Authors/brian.txt@1.1 +1 -0
+ BitKeeper file BitKeeper/etc/Authors/brian.txt
+
+ BitKeeper/etc/Authors/brian.txt@1.0 +0 -0
+
+ BitKeeper/etc/Authors/bwi.txt@1.1 +1 -0
+ BitKeeper file BitKeeper/etc/Authors/bwi.txt
+
+ BitKeeper/etc/Authors/bwi.txt@1.0 +0 -0
+
+ChangeSet@1.3844.3.3, 2019-03-10 17:03:40-07:00, ntpreleng@ntp-bk2git.tal1.ntfo.org
+ author updates
+
+ BitKeeper/etc/Authors/a115350.txt@1.2 +1 -1
+
+ BitKeeper/etc/Authors/abe.txt@1.2 +1 -1
+
+ BitKeeper/etc/Authors/amidamaru.txt@1.2 +1 -2
+
+ BitKeeper/etc/Authors/bkorb.txt@1.2 +1 -1
+
+ BitKeeper/etc/Authors/blk.txt@1.2 +1 -1
+
+ BitKeeper/etc/Authors/blu.txt@1.2 +1 -1
+
+ BitKeeper/etc/Authors/bruckman.txt@1.2 +1 -1
+
+ BitKeeper/etc/Authors/burnicki.txt@1.2 +1 -1
+
+ BitKeeper/etc/Authors/claas.txt@1.2 +1 -1
+
+ BitKeeper/etc/Authors/clemens.txt@1.2 +1 -1
+
+ BitKeeper/etc/Authors/cov-build.txt@1.2 +1 -1
+
+ BitKeeper/etc/Authors/cprice.txt@1.2 +1 -1
+
+ BitKeeper/etc/Authors/davehart.txt@1.2 +1 -1
+
+ BitKeeper/etc/Authors/dietrich.txt@1.2 +1 -1
+
+ BitKeeper/etc/Authors/dunlop.txt@1.2 +1 -1
+
+ BitKeeper/etc/Authors/fernandoph.txt@1.2 +1 -1
+
+ BitKeeper/etc/Authors/fredb.txt@1.2 +1 -1
+
+ BitKeeper/etc/Authors/gerstung.txt@1.2 +1 -1
+
+ BitKeeper/etc/Authors/ginsbach.txt@1.2 +1 -1
+
+ BitKeeper/etc/Authors/gnu.txt@1.2 +1 -1
+
+ BitKeeper/etc/Authors/gopal.txt@1.2 +1 -1
+
+ BitKeeper/etc/Authors/gunturu.txt@1.2 +1 -1
+
+ BitKeeper/etc/Authors/harlan.txt@1.2 +1 -1
+
+ BitKeeper/etc/Authors/harlanst.txt@1.2 +1 -1
+
+ BitKeeper/etc/Authors/hart.txt@1.2 +1 -1
+
+ BitKeeper/etc/Authors/hilbrecht.txt@1.2 +1 -1
+
+ BitKeeper/etc/Authors/hstenn.txt@1.2 +1 -1
+
+ BitKeeper/etc/Authors/jhay.txt@1.2 +1 -1
+
+ BitKeeper/etc/Authors/jnperlin.txt@1.2 +1 -1
+
+ BitKeeper/etc/Authors/kamboj.txt@1.2 +1 -1
+
+ BitKeeper/etc/Authors/kardel.txt@1.2 +1 -1
+
+ BitKeeper/etc/Authors/karlsson.txt@1.2 +1 -1
+
+ BitKeeper/etc/Authors/kuehn.txt@1.2 +1 -1
+
+ BitKeeper/etc/Authors/linus.txt@1.2 +1 -1
+
+ BitKeeper/etc/Authors/loki.txt@1.2 +1 -1
+
+ BitKeeper/etc/Authors/martin.txt@1.2 +1 -1
+
+ BitKeeper/etc/Authors/matthias.andree.txt@1.2 +1 -1
+
+ BitKeeper/etc/Authors/mayer.txt@1.2 +1 -1
+
+ BitKeeper/etc/Authors/mbrett.txt@1.2 +1 -1
+
+ BitKeeper/etc/Authors/murray.txt@1.2 +1 -1
+
+ BitKeeper/etc/Authors/neal.txt@1.2 +1 -1
+
+ BitKeeper/etc/Authors/paul.txt@1.2 +1 -1
+
+ BitKeeper/etc/Authors/peda.txt@1.2 +1 -1
+
+ BitKeeper/etc/Authors/perlinger.txt@1.2 +1 -1
+
+ BitKeeper/etc/Authors/phk.txt@1.2 +1 -1
+
+ BitKeeper/etc/Authors/rayvt.txt@1.2 +1 -1
+
+ BitKeeper/etc/Authors/rick.txt@1.2 +1 -1
+
+ BitKeeper/etc/Authors/ro.txt@1.2 +1 -1
+
+ BitKeeper/etc/Authors/root.txt@1.2 +1 -1
+
+ BitKeeper/etc/Authors/skamboj.txt@1.2 +1 -1
+
+ BitKeeper/etc/Authors/stenn.txt@1.2 +1 -1
+
+ BitKeeper/etc/Authors/tflendrich.txt@1.2 +1 -1
+
+ BitKeeper/etc/Authors/tomek.txt@1.2 +1 -1
+
+ BitKeeper/etc/Authors/utterback.txt@1.2 +1 -1
+
+ BitKeeper/etc/Authors/venu.txt@1.2 +1 -1
+
+ BitKeeper/etc/Authors/viperus.txt@1.2 +1 -1
+
+ BitKeeper/etc/Authors/wink.txt@1.2 +1 -1
+
+ChangeSet@1.3827.17.1, 2019-03-08 22:53:29-08:00, ntpreleng@ntp-build.tal1.ntfo.org
+ Use hostname builddirs at NTF
+
+ build@1.49.2.1 +1 -1
+ Use hostname builddirs at NTF
+
+ChangeSet@1.3844.3.1, 2019-03-07 11:59:40+00:00, stenn@psp-deb1.ntp.org
+ NTP_4_2_8P13
+ TAG: NTP_4_2_8P13 (currently on 1.3894)
+
+ ChangeLog@1.1968.1.3 +4 -1
+ ntp-4.2.8p13
+
+ NEWS@1.197.1.1 +54 -2
+ ntp-4.2.8p13
+
+ build@1.49.1.1 +1 -1
+ ntp-4.2.8p13
+
+ ntpd/invoke-ntp.conf.texi@1.218 +1 -1
+ ntp-4.2.8p13
+
+ ntpd/invoke-ntp.keys.texi@1.203 +1 -1
+ ntp-4.2.8p13
+
+ ntpd/invoke-ntpd.texi@1.517 +4 -4
+ ntp-4.2.8p13
+
+ ntpd/ntp.conf.5man@1.252 +3 -3
+ ntp-4.2.8p13
+
+ ntpd/ntp.conf.5mdoc@1.252 +2 -2
+ ntp-4.2.8p13
+
+ ntpd/ntp.conf.html@1.201 +1680 -1266
+ ntp-4.2.8p13
+
+ ntpd/ntp.conf.man.in@1.252 +3 -3
+ ntp-4.2.8p13
+
+ ntpd/ntp.conf.mdoc.in@1.252 +2 -2
+ ntp-4.2.8p13
+
+ ntpd/ntp.keys.5man@1.237 +2 -2
+ ntp-4.2.8p13
+
+ ntpd/ntp.keys.5mdoc@1.237 +3 -3
+ ntp-4.2.8p13
+
+ ntpd/ntp.keys.html@1.200 +167 -116
+ ntp-4.2.8p13
+
+ ntpd/ntp.keys.man.in@1.237 +2 -2
+ ntp-4.2.8p13
+
+ ntpd/ntp.keys.mdoc.in@1.237 +3 -3
+ ntp-4.2.8p13
+
+ ntpd/ntp_control.c@1.232.2.1 +17 -9
+ ntp-4.2.8p13
+
+ ntpd/ntpd-opts.c@1.539 +8 -8
+ ntp-4.2.8p13
+
+ ntpd/ntpd-opts.h@1.538 +5 -5
+ ntp-4.2.8p13
+
+ ntpd/ntpd.1ntpdman@1.346 +3 -3
+ ntp-4.2.8p13
+
+ ntpd/ntpd.1ntpdmdoc@1.346 +2 -2
+ ntp-4.2.8p13
+
+ ntpd/ntpd.html@1.192 +758 -677
+ ntp-4.2.8p13
+
+ ntpd/ntpd.man.in@1.346 +3 -3
+ ntp-4.2.8p13
+
+ ntpd/ntpd.mdoc.in@1.346 +2 -2
+ ntp-4.2.8p13
+
+ ntpdc/invoke-ntpdc.texi@1.514 +2 -2
+ ntp-4.2.8p13
+
+ ntpdc/ntpdc-opts.c@1.532 +8 -8
+ ntp-4.2.8p13
+
+ ntpdc/ntpdc-opts.h@1.531 +5 -5
+ ntp-4.2.8p13
+
+ ntpdc/ntpdc.1ntpdcman@1.345 +3 -3
+ ntp-4.2.8p13
+
+ ntpdc/ntpdc.1ntpdcmdoc@1.345 +2 -2
+ ntp-4.2.8p13
+
+ ntpdc/ntpdc.html@1.360 +425 -350
+ ntp-4.2.8p13
+
+ ntpdc/ntpdc.man.in@1.345 +3 -3
+ ntp-4.2.8p13
+
+ ntpdc/ntpdc.mdoc.in@1.345 +2 -2
+ ntp-4.2.8p13
+
+ ntpq/invoke-ntpq.texi@1.524 +2 -2
+ ntp-4.2.8p13
+
+ ntpq/ntpq-opts.c@1.541 +8 -8
+ ntp-4.2.8p13
+
+ ntpq/ntpq-opts.h@1.539 +5 -5
+ ntp-4.2.8p13
+
+ ntpq/ntpq.1ntpqman@1.352 +3 -3
+ ntp-4.2.8p13
+
+ ntpq/ntpq.1ntpqmdoc@1.352 +2 -2
+ ntp-4.2.8p13
+
+ ntpq/ntpq.html@1.191 +1543 -1324
+ ntp-4.2.8p13
+
+ ntpq/ntpq.man.in@1.352 +3 -3
+ ntp-4.2.8p13
+
+ ntpq/ntpq.mdoc.in@1.352 +2 -2
+ ntp-4.2.8p13
+
+ ntpsnmpd/invoke-ntpsnmpd.texi@1.516 +10 -11
+ ntp-4.2.8p13
+
+ ntpsnmpd/ntpsnmpd-opts.c@1.534 +8 -8
+ ntp-4.2.8p13
+
+ ntpsnmpd/ntpsnmpd-opts.h@1.533 +5 -5
+ ntp-4.2.8p13
+
+ ntpsnmpd/ntpsnmpd.1ntpsnmpdman@1.345 +3 -3
+ ntp-4.2.8p13
+
+ ntpsnmpd/ntpsnmpd.1ntpsnmpdmdoc@1.345 +2 -2
+ ntp-4.2.8p13
+
+ ntpsnmpd/ntpsnmpd.html@1.186 +95 -58
+ ntp-4.2.8p13
+
+ ntpsnmpd/ntpsnmpd.man.in@1.345 +3 -3
+ ntp-4.2.8p13
+
+ ntpsnmpd/ntpsnmpd.mdoc.in@1.345 +2 -2
+ ntp-4.2.8p13
+
+ packageinfo.sh@1.543 +1 -1
+ ntp-4.2.8p13
+
+ scripts/build/check--help@1.3.1.1 +2 -2
+ ntp-4.2.8p13
+
+ scripts/calc_tickadj/calc_tickadj.1calc_tickadjman@1.106 +3 -3
+ ntp-4.2.8p13
+
+ scripts/calc_tickadj/calc_tickadj.1calc_tickadjmdoc@1.107 +2 -2
+ ntp-4.2.8p13
+
+ scripts/calc_tickadj/calc_tickadj.html@1.107 +178 -122
+ ntp-4.2.8p13
+
+ scripts/calc_tickadj/calc_tickadj.man.in@1.105 +3 -3
+ ntp-4.2.8p13
+
+ scripts/calc_tickadj/calc_tickadj.mdoc.in@1.107 +2 -2
+ ntp-4.2.8p13
+
+ scripts/calc_tickadj/invoke-calc_tickadj.texi@1.110 +1 -1
+ ntp-4.2.8p13
+
+ scripts/invoke-plot_summary.texi@1.128 +2 -2
+ ntp-4.2.8p13
+
+ scripts/invoke-summary.texi@1.127 +2 -2
+ ntp-4.2.8p13
+
+ scripts/ntp-wait/invoke-ntp-wait.texi@1.337 +2 -2
+ ntp-4.2.8p13
+
+ scripts/ntp-wait/ntp-wait-opts@1.73 +2 -2
+ ntp-4.2.8p13
+
+ scripts/ntp-wait/ntp-wait.1ntp-waitman@1.334 +3 -3
+ ntp-4.2.8p13
+
+ scripts/ntp-wait/ntp-wait.1ntp-waitmdoc@1.335 +2 -2
+ ntp-4.2.8p13
+
+ scripts/ntp-wait/ntp-wait.html@1.356 +189 -142
+ ntp-4.2.8p13
+
+ scripts/ntp-wait/ntp-wait.man.in@1.334 +3 -3
+ ntp-4.2.8p13
+
+ scripts/ntp-wait/ntp-wait.mdoc.in@1.335 +2 -2
+ ntp-4.2.8p13
+
+ scripts/ntpsweep/invoke-ntpsweep.texi@1.125 +2 -2
+ ntp-4.2.8p13
+
+ scripts/ntpsweep/ntpsweep-opts@1.75 +2 -2
+ ntp-4.2.8p13
+
+ scripts/ntpsweep/ntpsweep.1ntpsweepman@1.113 +3 -3
+ ntp-4.2.8p13
+
+ scripts/ntpsweep/ntpsweep.1ntpsweepmdoc@1.113 +2 -2
+ ntp-4.2.8p13
+
+ scripts/ntpsweep/ntpsweep.html@1.128 +196 -149
+ ntp-4.2.8p13
+
+ scripts/ntpsweep/ntpsweep.man.in@1.113 +3 -3
+ ntp-4.2.8p13
+
+ scripts/ntpsweep/ntpsweep.mdoc.in@1.114 +2 -2
+ ntp-4.2.8p13
+
+ scripts/ntptrace/invoke-ntptrace.texi@1.126 +2 -2
+ ntp-4.2.8p13
+
+ scripts/ntptrace/ntptrace-opts@1.75 +2 -2
+ ntp-4.2.8p13
+
+ scripts/ntptrace/ntptrace.1ntptraceman@1.113 +3 -3
+ ntp-4.2.8p13
+
+ scripts/ntptrace/ntptrace.1ntptracemdoc@1.114 +2 -2
+ ntp-4.2.8p13
+
+ scripts/ntptrace/ntptrace.html@1.129 +186 -127
+ ntp-4.2.8p13
+
+ scripts/ntptrace/ntptrace.man.in@1.113 +3 -3
+ ntp-4.2.8p13
+
+ scripts/ntptrace/ntptrace.mdoc.in@1.115 +2 -2
+ ntp-4.2.8p13
+
+ scripts/plot_summary-opts@1.76 +2 -2
+ ntp-4.2.8p13
+
+ scripts/plot_summary.1plot_summaryman@1.126 +3 -3
+ ntp-4.2.8p13
+
+ scripts/plot_summary.1plot_summarymdoc@1.126 +2 -2
+ ntp-4.2.8p13
+
+ scripts/plot_summary.html@1.131 +211 -151
+ ntp-4.2.8p13
+
+ scripts/plot_summary.man.in@1.126 +3 -3
+ ntp-4.2.8p13
+
+ scripts/plot_summary.mdoc.in@1.126 +2 -2
+ ntp-4.2.8p13
+
+ scripts/summary-opts@1.75 +2 -2
+ ntp-4.2.8p13
+
+ scripts/summary.1summaryman@1.125 +3 -3
+ ntp-4.2.8p13
+
+ scripts/summary.1summarymdoc@1.125 +2 -2
+ ntp-4.2.8p13
+
+ scripts/summary.html@1.130 +192 -132
+ ntp-4.2.8p13
+
+ scripts/summary.man.in@1.125 +3 -3
+ ntp-4.2.8p13
+
+ scripts/summary.mdoc.in@1.125 +2 -2
+ ntp-4.2.8p13
+
+ scripts/update-leap/invoke-update-leap.texi@1.26 +1 -1
+ ntp-4.2.8p13
+
+ scripts/update-leap/update-leap-opts@1.26 +2 -2
+ ntp-4.2.8p13
+
+ scripts/update-leap/update-leap.1update-leapman@1.26 +3 -3
+ ntp-4.2.8p13
+
+ scripts/update-leap/update-leap.1update-leapmdoc@1.26 +2 -2
+ ntp-4.2.8p13
+
+ scripts/update-leap/update-leap.html@1.28 +245 -197
+ ntp-4.2.8p13
+
+ scripts/update-leap/update-leap.man.in@1.26 +3 -3
+ ntp-4.2.8p13
+
+ scripts/update-leap/update-leap.mdoc.in@1.26 +2 -2
+ ntp-4.2.8p13
+
+ sntp/invoke-sntp.texi@1.516 +2 -2
+ ntp-4.2.8p13
+
+ sntp/libopts/autoopts/options.h@1.30.1.1 +1 -1
+ ntp-4.2.8p13
+
+ sntp/libopts/genshell.h@1.30.1.1 +1 -1
+ ntp-4.2.8p13
+
+ sntp/sntp-opts.c@1.535 +8 -8
+ ntp-4.2.8p13
+
+ sntp/sntp-opts.h@1.533 +5 -5
+ ntp-4.2.8p13
+
+ sntp/sntp.1sntpman@1.351 +3 -3
+ ntp-4.2.8p13
+
+ sntp/sntp.1sntpmdoc@1.351 +2 -2
+ ntp-4.2.8p13
+
+ sntp/sntp.html@1.532 +493 -415
+ ntp-4.2.8p13
+
+ sntp/sntp.man.in@1.351 +3 -3
+ ntp-4.2.8p13
+
+ sntp/sntp.mdoc.in@1.351 +2 -2
+ ntp-4.2.8p13
+
+ util/invoke-ntp-keygen.texi@1.519 +2 -2
+ ntp-4.2.8p13
+
+ util/ntp-keygen-opts.c@1.537 +8 -8
+ ntp-4.2.8p13
+
+ util/ntp-keygen-opts.h@1.535 +5 -5
+ ntp-4.2.8p13
+
+ util/ntp-keygen.1ntp-keygenman@1.347 +3 -3
+ ntp-4.2.8p13
+
+ util/ntp-keygen.1ntp-keygenmdoc@1.347 +2 -2
+ ntp-4.2.8p13
+
+ util/ntp-keygen.html@1.192 +1184 -1025
+ ntp-4.2.8p13
+
+ util/ntp-keygen.man.in@1.347 +3 -3
+ ntp-4.2.8p13
+
+ util/ntp-keygen.mdoc.in@1.347 +2 -2
+ ntp-4.2.8p13
+
+ChangeSet@1.3844.1.5, 2019-02-20 17:13:36-08:00, harlan@ntp-build.tal1.ntfo.org
Update NEWS file
NEWS@1.200 +3 -0
Update NEWS file
-ChangeSet@1.3848, 2019-02-20 09:44:58-08:00, harlan@ntp-build.tal1.ntfo.org
+ChangeSet@1.3844.1.4, 2019-02-20 09:44:58-08:00, harlan@ntp-build.tal1.ntfo.org
build system cleanups
build@1.50 +1 -1
@@ -19,7 +3074,7 @@
sntp/libopts/genshell.h@1.31 +1 -1
build system cleanups
-ChangeSet@1.3847, 2019-02-18 22:26:26-08:00, harlan@ntp-build.tal1.ntfo.org
+ChangeSet@1.3844.1.3, 2019-02-18 22:26:26-08:00, harlan@ntp-build.tal1.ntfo.org
ChangeLog and NEWS description cleanups
ChangeLog@1.1971 +4 -4
@@ -28,19 +3083,19 @@
NEWS@1.199 +4 -2
ChangeLog and NEWS description cleanups
-ChangeSet@1.3844.1.4, 2019-02-18 20:10:25-08:00, harlan@ntp-build.tal1.ntfo.org
+ChangeSet@1.3844.2.4, 2019-02-18 20:10:25-08:00, harlan@ntp-build.tal1.ntfo.org
NEWS file update
NEWS@1.198 +49 -2
NEWS file update
-ChangeSet@1.3844.1.3, 2019-02-16 07:36:50+00:00, stenn@stenn.ntp.org
+ChangeSet@1.3844.2.3, 2019-02-16 07:36:50+00:00, stenn@stenn.ntp.org
Improve messages around signalled IO handling in configure
sntp/m4/ntp_libntp.m4@1.38 +5 -0
Improve messages around signalled IO handling in configure
-ChangeSet@1.3844.1.2, 2019-02-15 13:27:05+00:00, stenn@stenn.ntp.org
+ChangeSet@1.3844.2.2, 2019-02-15 13:27:05+00:00, stenn@stenn.ntp.org
Implement --disable-signalled-io
ChangeLog@1.1968.1.2 +1 -0
@@ -49,21 +3104,74 @@
sntp/m4/ntp_libntp.m4@1.37 +22 -2
Implement --disable-signalled-io
-ChangeSet@1.3844.1.1, 2019-01-17 04:16:52+00:00, stenn@psp-deb1.ntp.org
+ChangeSet@1.3827.16.1, 2019-02-04 07:51:23+01:00, perlinger@ntp.org
+ [Bug 3570] NMEA driver docs: talker ID not mentioned, typo
+
+ ChangeLog@1.1952.16.1 +3 -0
+ [Bug 3570] NMEA driver docs: talker ID not mentioned, typo
+
+ html/drivers/driver20.html@1.30 +94 -48
+ [Bug 3570] NMEA driver docs: talker ID not mentioned, typo
+
+ChangeSet@1.3848, 2019-01-27 11:26:02+01:00, perlinger@ntp.org
+ [Bug 3569] cleanup MOD_NANO/STA_NANO handling for 'ntpadjtimex()'
+ Changelog + assigned bug number
+
+ ChangeLog@1.1968.2.1 +2 -0
+ [Bug 3569] cleanup MOD_NANO/STA_NANO handling for 'ntpadjtimex()'
+
+ChangeSet@1.3847, 2019-01-27 10:19:08+01:00, perlinger@ntp.org
+ ntpdate: fix service resolution if 'ntp' is not in '/etc/services'
+
+ ntpdate/ntpdate.c@1.103 +10 -1
+ ntpdate: fix service resolution if 'ntp' is not in '/etc/services'
+
+ChangeSet@1.3844.2.1, 2019-01-17 04:16:52+00:00, stenn@psp-deb1.ntp.org
Cleanup
ChangeLog@1.1968.1.1 +0 -1
Cleanup
-ChangeSet@1.3845, 2019-01-16 21:42:59+01:00, perlinger@ntp.org
+ChangeSet@1.3844.1.1, 2019-01-16 21:42:59+01:00, perlinger@ntp.org
[Sec 3565] null pointer crash by remote attack
ChangeLog@1.1969 +3 -0
[Sec 3565] null pointer crash by remote attack
- ntpd/ntp_control.c@1.233 +17 -9
+ ntpd/ntp_control.c@1.232.1.1 +17 -9
[Sec 3565] null pointer crash by remote attack
+ChangeSet@1.3846, 2019-01-06 10:58:40+01:00, perlinger@ntp.org
+ 'struct timex' suppoert -- cleanup
+
+ libntp/timexsup.c@1.2 +1 -1
+ 'struct timex' suppoert -- cleanup
+
+ ntpd/ntp_control.c@1.233 +9 -14
+ 'struct timex' suppoert -- cleanup
+
+ util/ntptime.c@1.29 +39 -44
+ 'struct timex' suppoert -- cleanup
+
+ChangeSet@1.3845, 2019-01-03 23:58:11+01:00, perlinger@ntp.org
+ refactor 'struct timex' access (MOD_NANO/STA_NANO)
+
+ include/timexsup.h@1.1 +42 -0
+ refactor 'struct timex' access (MOD_NANO/STA_NANO)
+
+ include/timexsup.h@1.0 +0 -0
+
+ libntp/Makefile.am@1.83 +1 -0
+ refactor 'struct timex' access (MOD_NANO/STA_NANO)
+
+ libntp/timexsup.c@1.1 +83 -0
+ refactor 'struct timex' access (MOD_NANO/STA_NANO)
+
+ libntp/timexsup.c@1.0 +0 -0
+
+ ntpd/ntp_loopfilter.c@1.193 +10 -25
+ refactor 'struct timex' access (MOD_NANO/STA_NANO)
+
ChangeSet@1.3827.1.2, 2018-12-15 13:25:25+00:00, stenn@psp-deb1.ntp.org
bug3527 fixes
@@ -154107,6 +157215,9 @@
sntp/sntp-opts.texi@1.46.26.2 +1 -1
NTP_4_2_4P8
+ sntp/sntp.1@1.49.26.2 +2 -2
+ NTP_4_2_4P8
+
util/ntp-keygen-opts.c@1.49.26.2 +2 -2
NTP_4_2_4P8
@@ -154186,6 +157297,9 @@
sntp/sntp-opts.texi@1.46.26.1 +54 -2
NTP_4_2_4P9_RC1
+ sntp/sntp.1@1.49.26.1 +2 -2
+ NTP_4_2_4P9_RC1
+
util/ntp-keygen-opts.c@1.49.26.1 +5 -5
NTP_4_2_4P9_RC1
@@ -171117,6 +174231,9 @@
sntp/sntp-opts.texi@1.46.25.1 +1 -1
NTP_4_2_4P7
+ sntp/sntp.1@1.49.25.1 +2 -2
+ NTP_4_2_4P7
+
util/ntp-keygen-opts.c@1.49.25.1 +4 -4
NTP_4_2_4P7
@@ -171482,6 +174599,9 @@
sntp/sntp-opts.texi@1.46.24.1 +1 -1
NTP_4_2_4P7_RC7
+ sntp/sntp.1@1.49.24.1 +3 -3
+ NTP_4_2_4P7_RC7
+
util/ntp-keygen-opts.c@1.49.24.1 +3 -3
NTP_4_2_4P7_RC7
@@ -171955,6 +175075,9 @@
sntp/sntp-opts.texi@1.46.23.1 +1 -1
NTP_4_2_4P7_RC6
+ sntp/sntp.1@1.49.23.1 +2 -2
+ NTP_4_2_4P7_RC6
+
util/ntp-keygen-opts.c@1.49.23.1 +2 -2
NTP_4_2_4P7_RC6
@@ -172668,6 +175791,9 @@
sntp/sntp-opts.texi@1.46.22.1 +1 -1
NTP_4_2_4P7_RC5
+ sntp/sntp.1@1.49.22.1 +2 -2
+ NTP_4_2_4P7_RC5
+
util/ntp-keygen-opts.c@1.49.22.1 +2 -2
NTP_4_2_4P7_RC5
@@ -173065,6 +176191,9 @@
sntp/sntp-opts.texi@1.46.21.1 +1 -1
NTP_4_2_4P7_RC4
+ sntp/sntp.1@1.49.21.1 +2 -2
+ NTP_4_2_4P7_RC4
+
util/ntp-keygen-opts.c@1.49.21.1 +2 -2
NTP_4_2_4P7_RC4
@@ -174075,6 +177204,9 @@
sntp/sntp-opts.texi@1.46.20.1 +1 -1
NTP_4_2_4P7_RC3
+ sntp/sntp.1@1.49.20.1 +2 -2
+ NTP_4_2_4P7_RC3
+
util/ntp-keygen-opts.c@1.49.20.1 +2 -2
NTP_4_2_4P7_RC3
@@ -174696,6 +177828,9 @@
sntp/sntp-opts.texi@1.46.19.1 +1 -1
NTP_4_2_4P7_RC2
+ sntp/sntp.1@1.49.19.1 +2 -2
+ NTP_4_2_4P7_RC2
+
util/ntp-keygen-opts.c@1.49.19.1 +2 -2
NTP_4_2_4P7_RC2
@@ -175235,6 +178370,9 @@
sntp/sntp-opts.texi@1.46.18.1 +1 -1
NTP_4_2_4P7_RC1
+ sntp/sntp.1@1.49.18.1 +2 -2
+ NTP_4_2_4P7_RC1
+
util/ntp-keygen-opts.c@1.49.18.1 +2 -2
NTP_4_2_4P7_RC1
@@ -176569,6 +179707,9 @@
sntp/sntp-opts.texi@1.46.17.2 +1 -1
NTP_4_2_4P6
+ sntp/sntp.1@1.49.17.2 +2 -2
+ NTP_4_2_4P6
+
util/ntp-keygen-opts.c@1.49.17.2 +2 -2
NTP_4_2_4P6
@@ -176648,6 +179789,9 @@
sntp/sntp-opts.texi@1.46.17.1 +1 -1
NTP_4_2_4P5
+ sntp/sntp.1@1.49.17.1 +2 -2
+ NTP_4_2_4P5
+
util/ntp-keygen-opts.c@1.49.17.1 +1 -1
NTP_4_2_4P5
@@ -179900,6 +183044,9 @@
ChangeSet@1.1759, 2008-08-22 21:27:59-04:00, stenn@pogo.udel.edu
remove bogus .o file
+ BitKeeper/deleted/.del-utilities.o@1.2 +0 -0
+ Delete: gsoc_sntp/utilities.o
+
ChangeSet@1.1735.1.29, 2008-08-21 05:05:19+00:00, gopal@pogo.udel.edu
driver20.html:
[BUG 610] Documentation update for NMEA reference clock driver.
@@ -180178,6 +183325,9 @@
sntp/sntp-opts.texi@1.46.16.1 +1 -1
NTP_4_2_4P5
+ sntp/sntp.1@1.49.16.1 +2 -2
+ NTP_4_2_4P5
+
util/ntp-keygen-opts.c@1.49.16.1 +2 -2
NTP_4_2_4P5
@@ -180299,6 +183449,11 @@
gsoc_sntp/utilities.h@1.0 +0 -0
+ gsoc_sntp/utilities.o@1.1 +177 -0
+ BitKeeper file /geom_mobile/home/Amidamaru/projects/sntp/repo/ntp-dev/gsoc_sntp/utilities.o
+
+ gsoc_sntp/utilities.o@1.0 +0 -0
+
ChangeSet@1.1436.1.105, 2008-08-10 21:56:17-04:00, clemens@pogo.udel.edu
BUG[1052] Minor reordering of previous patch to make it more robust.
@@ -180456,6 +183611,9 @@
sntp/sntp-opts.texi@1.46.15.1 +2 -3
NTP_4_2_4P5_RC2
+ sntp/sntp.1@1.49.15.1 +3 -3
+ NTP_4_2_4P5_RC2
+
util/ntp-keygen-opts.c@1.49.15.1 +2 -2
NTP_4_2_4P5_RC2
@@ -181916,6 +185074,9 @@
sntp/sntp-opts.texi@1.46.14.1 +1 -1
NTP_4_2_4P5_RC1
+ sntp/sntp.1@1.49.14.1 +2 -2
+ NTP_4_2_4P5_RC1
+
util/ntp-keygen-opts.c@1.49.14.1 +6 -7
NTP_4_2_4P5_RC1
@@ -187174,6 +190335,9 @@
sntp/sntp-opts.texi@1.46.13.1 +1 -1
NTP_4_2_4P4
+ sntp/sntp.1@1.49.13.1 +2 -2
+ NTP_4_2_4P4
+
util/ntp-keygen-opts.c@1.49.13.1 +2 -2
NTP_4_2_4P4
@@ -187480,6 +190644,9 @@
sntp/sntp-opts.texi@1.46.12.1 +1 -1
NTP_4_2_4P4_RC2
+ sntp/sntp.1@1.49.12.1 +2 -2
+ NTP_4_2_4P4_RC2
+
util/ntp-keygen-opts.c@1.49.12.1 +4 -4
NTP_4_2_4P4_RC2
@@ -187867,6 +191034,9 @@
sntp/sntp-opts.texi@1.46.11.1 +1 -1
NTP_4_2_4P4_RC1
+ sntp/sntp.1@1.49.11.1 +2 -2
+ NTP_4_2_4P4_RC1
+
util/ntp-keygen-opts.c@1.49.11.1 +2 -2
NTP_4_2_4P4_RC1
@@ -189214,6 +192384,9 @@
sntp/sntp-opts.texi@1.46.10.1 +1 -1
NTP_4_2_4P3
+ sntp/sntp.1@1.49.10.1 +2 -2
+ NTP_4_2_4P3
+
util/ntp-keygen-opts.c@1.49.10.1 +2 -2
NTP_4_2_4P3
@@ -189463,6 +192636,9 @@
sntp/sntp-opts.texi@1.46.9.1 +1 -1
NTP_4_2_4P3_RC1
+ sntp/sntp.1@1.49.9.1 +2 -2
+ NTP_4_2_4P3_RC1
+
util/ntp-keygen-opts.c@1.49.9.1 +2 -2
NTP_4_2_4P3_RC1
@@ -189958,6 +193134,9 @@
sntp/sntp-opts.texi@1.46.8.1 +1 -1
NTP_4_2_4P2
+ sntp/sntp.1@1.49.8.1 +2 -2
+ NTP_4_2_4P2
+
util/ntp-keygen-opts.c@1.49.8.1 +2 -2
NTP_4_2_4P2
@@ -190605,6 +193784,9 @@
sntp/sntp-opts.texi@1.46.7.1 +1 -1
NTP_4_2_4P2_RC6
+ sntp/sntp.1@1.49.7.1 +2 -2
+ NTP_4_2_4P2_RC6
+
util/ntp-keygen-opts.c@1.49.7.1 +2 -2
NTP_4_2_4P2_RC6
@@ -191359,6 +194541,9 @@
sntp/sntp-opts.texi@1.46.6.1 +1 -1
NTP_4_2_4P2_RC5
+ sntp/sntp.1@1.49.6.1 +2 -2
+ NTP_4_2_4P2_RC5
+
util/ntp-keygen-opts.c@1.49.6.1 +2 -2
NTP_4_2_4P2_RC5
@@ -191616,6 +194801,9 @@
sntp/sntp-opts.texi@1.46.5.1 +1 -1
NTP_4_2_4P2_RC4
+ sntp/sntp.1@1.49.5.1 +2 -2
+ NTP_4_2_4P2_RC4
+
util/ntp-keygen-opts.c@1.49.5.1 +2 -2
NTP_4_2_4P2_RC4
@@ -191826,6 +195014,9 @@
sntp/sntp-opts.texi@1.46.4.1 +1 -1
NTP_4_2_4P2_RC3
+ sntp/sntp.1@1.49.4.1 +2 -2
+ NTP_4_2_4P2_RC3
+
util/ntp-keygen-opts.c@1.49.4.1 +2 -2
NTP_4_2_4P2_RC3
@@ -192152,6 +195343,9 @@
sntp/sntp-opts.texi@1.46.3.2 +1 -1
NTP_4_2_4P2_RC2
+ sntp/sntp.1@1.49.3.2 +2 -2
+ NTP_4_2_4P2_RC2
+
util/ntp-keygen-opts.c@1.49.3.2 +4 -4
NTP_4_2_4P2_RC2
@@ -192895,6 +196089,9 @@
sntp/sntp-opts.texi@1.46.3.1 +1 -1
We need to use the upgraded autogen/libopts in -stable too.
+ sntp/sntp.1@1.49.3.1 +2 -2
+ We need to use the upgraded autogen/libopts in -stable too.
+
util/ntp-keygen-opts.c@1.49.3.1 +23 -14
We need to use the upgraded autogen/libopts in -stable too.
@@ -194949,6 +198146,9 @@
sntp/sntp-opts.texi@1.46.2.2 +1 -1
NTP_4_2_4P2_RC1
+ sntp/sntp.1@1.49.2.2 +2 -2
+ NTP_4_2_4P2_RC1
+
util/ntp-keygen-opts.c@1.49.2.3 +2 -2
NTP_4_2_4P2_RC1
@@ -195034,6 +198234,9 @@
sntp/sntp-opts.texi@1.46.2.1 +1 -1
NTP_4_2_4P1_RC1
+ sntp/sntp.1@1.49.2.1 +2 -2
+ NTP_4_2_4P1_RC1
+
util/ntp-keygen-opts.c@1.49.2.2 +2 -2
NTP_4_2_4P1_RC1
@@ -197194,6 +200397,9 @@
sntp/sntp-opts.texi@1.46.1.6 +1 -1
NTP_4_2_4P0
+ sntp/sntp.1@1.49.1.6 +2 -2
+ NTP_4_2_4P0
+
util/ntp-keygen-opts.c@1.49.1.6 +2 -2
NTP_4_2_4P0
@@ -197363,6 +200569,9 @@
BitKeeper/deleted/.del-sntp-opts.texi@1.68 +0 -0
Delete: sntp/sntp-opts.texi
+ BitKeeper/deleted/.del-sntp.1@1.71 +0 -0
+ Delete: sntp/sntp.1
+
ntpd/ntpd-opts.c@1.1 +1055 -0
BitKeeper file /deacon/backroom/ntp-dev/ntpd/ntpd-opts.c
@@ -197556,6 +200765,9 @@
sntp/sntp-opts.texi@1.66 +1 -1
NTP_4_2_5P15
+ sntp/sntp.1@1.69 +2 -2
+ NTP_4_2_5P15
+
util/ntp-keygen-opts.c@1.69 +2 -2
NTP_4_2_5P15
@@ -197645,6 +200857,9 @@
sntp/sntp-opts.texi@1.65 +1 -1
NTP_4_2_5P14
+ sntp/sntp.1@1.68 +2 -2
+ NTP_4_2_5P14
+
util/ntp-keygen-opts.c@1.68 +2 -2
NTP_4_2_5P14
@@ -197738,6 +200953,9 @@
sntp/sntp-opts.texi@1.64 +1 -1
NTP_4_2_5P13
+ sntp/sntp.1@1.67 +2 -2
+ NTP_4_2_5P13
+
util/ntp-keygen-opts.c@1.67 +2 -2
NTP_4_2_5P13
@@ -197830,6 +201048,9 @@
sntp/sntp-opts.texi@1.63 +1 -1
NTP_4_2_5P12
+ sntp/sntp.1@1.66 +2 -2
+ NTP_4_2_5P12
+
util/ntp-keygen-opts.c@1.66 +2 -2
NTP_4_2_5P12
@@ -197906,6 +201127,9 @@
sntp/sntp-opts.texi@1.46.1.5 +1 -1
NTP_4_2_4P0_RC5
+ sntp/sntp.1@1.49.1.5 +2 -2
+ NTP_4_2_4P0_RC5
+
util/ntp-keygen-opts.c@1.49.1.5 +2 -2
NTP_4_2_4P0_RC5
@@ -197994,6 +201218,9 @@
sntp/sntp-opts.texi@1.62 +1 -1
NTP_4_2_5P11
+ sntp/sntp.1@1.65 +2 -2
+ NTP_4_2_5P11
+
util/ntp-keygen-opts.c@1.65 +2 -2
NTP_4_2_5P11
@@ -198085,6 +201312,9 @@
sntp/sntp-opts.texi@1.61 +1 -1
NTP_4_2_5P10
+ sntp/sntp.1@1.64 +2 -2
+ NTP_4_2_5P10
+
util/ntp-keygen-opts.c@1.64 +2 -2
NTP_4_2_5P10
@@ -198167,6 +201397,9 @@
sntp/sntp-opts.texi@1.59 +1 -1
NTP_4_2_5P9
+ sntp/sntp.1@1.62 +2 -2
+ NTP_4_2_5P9
+
util/ntp-keygen-opts.c@1.62 +2 -2
NTP_4_2_5P9
@@ -198243,6 +201476,9 @@
sntp/sntp-opts.texi@1.46.1.4 +1 -1
NTP_4_2_4P0_RC4
+ sntp/sntp.1@1.49.1.4 +2 -2
+ NTP_4_2_4P0_RC4
+
util/ntp-keygen-opts.c@1.49.1.4 +2 -2
NTP_4_2_4P0_RC4
@@ -198352,6 +201588,9 @@
sntp/sntp-opts.texi@1.57 +1 -1
NTP_4_2_5P8
+ sntp/sntp.1@1.60 +2 -2
+ NTP_4_2_5P8
+
util/ntp-keygen-opts.c@1.60 +2 -2
NTP_4_2_5P8
@@ -198437,6 +201676,9 @@
sntp/sntp-opts.texi@1.56 +1 -1
NTP_4_2_5P7
+ sntp/sntp.1@1.59 +2 -2
+ NTP_4_2_5P7
+
util/ntp-keygen-opts.c@1.59 +2 -2
NTP_4_2_5P7
@@ -198537,6 +201779,9 @@
sntp/sntp-opts.texi@1.55 +1 -1
NTP_4_2_5P6
+ sntp/sntp.1@1.58 +2 -2
+ NTP_4_2_5P6
+
util/ntp-keygen-opts.c@1.58 +2 -2
NTP_4_2_5P6
@@ -198613,6 +201858,9 @@
sntp/sntp-opts.texi@1.46.1.3 +1 -1
NTP_4_2_4_RC3
+ sntp/sntp.1@1.49.1.3 +2 -2
+ NTP_4_2_4_RC3
+
util/ntp-keygen-opts.c@1.49.1.3 +2 -2
NTP_4_2_4_RC3
@@ -198758,6 +202006,9 @@
sntp/sntp-opts.texi@1.53 +1 -1
NTP_4_2_5P5
+ sntp/sntp.1@1.56 +2 -2
+ NTP_4_2_5P5
+
util/ntp-keygen-opts.c@1.56 +2 -2
NTP_4_2_5P5
@@ -198840,6 +202091,9 @@
sntp/sntp-opts.texi@1.52 +1 -1
NTP_4_2_5P4
+ sntp/sntp.1@1.55 +2 -2
+ NTP_4_2_5P4
+
util/ntp-keygen-opts.c@1.55 +2 -2
NTP_4_2_5P4
@@ -198916,6 +202170,9 @@
sntp/sntp-opts.texi@1.46.1.2 +1 -1
NTP_4_2_4_RC2
+ sntp/sntp.1@1.49.1.2 +2 -2
+ NTP_4_2_4_RC2
+
util/ntp-keygen-opts.c@1.49.1.2 +2 -2
NTP_4_2_4_RC2
@@ -199061,6 +202318,9 @@
sntp/sntp-opts.texi@1.51 +1 -1
NTP_4_2_5P3
+ sntp/sntp.1@1.54 +2 -2
+ NTP_4_2_5P3
+
util/ntp-keygen-opts.c@1.54 +2 -2
NTP_4_2_5P3
@@ -199143,6 +202403,9 @@
sntp/sntp-opts.texi@1.46.1.1 +1 -1
NTP_4_2_4_RC1
+ sntp/sntp.1@1.49.1.1 +2 -2
+ NTP_4_2_4_RC1
+
util/ntp-keygen-opts.c@1.49.1.1 +2 -2
NTP_4_2_4_RC1
@@ -199372,6 +202635,9 @@
sntp/sntp-opts.texi@1.49 +1 -1
NTP_4_2_5P2
+ sntp/sntp.1@1.52 +2 -2
+ NTP_4_2_5P2
+
util/ntp-keygen-opts.c@1.52 +2 -2
NTP_4_2_5P2
@@ -199489,6 +202755,9 @@
sntp/sntp-opts.texi@1.48 +1 -1
NTP_4_2_5P1
+ sntp/sntp.1@1.51 +2 -2
+ NTP_4_2_5P1
+
util/ntp-keygen-opts.c@1.51 +2 -2
NTP_4_2_5P1
@@ -200120,6 +203389,9 @@
sntp/sntp-opts.texi@1.45.1.2 +1 -1
NTP_4_2_5P0
+ sntp/sntp.1@1.48.1.2 +2 -2
+ NTP_4_2_5P0
+
util/ntp-keygen-opts.c@1.48.1.2 +2 -2
NTP_4_2_5P0
@@ -200229,6 +203501,9 @@
sntp/sntp-opts.texi@1.45.1.1 +1 -1
NTP_4_2_5
+ sntp/sntp.1@1.48.1.1 +2 -2
+ NTP_4_2_5
+
util/ntp-keygen-opts.c@1.48.1.1 +2 -2
NTP_4_2_5
@@ -200305,6 +203580,9 @@
sntp/sntp-opts.texi@1.46 +1 -1
NTP_4_2_4
+ sntp/sntp.1@1.49 +2 -2
+ NTP_4_2_4
+
util/ntp-keygen-opts.c@1.49 +2 -2
NTP_4_2_4
@@ -200483,6 +203761,9 @@
sntp/sntp-opts.texi@1.45 +1 -1
NTP_4_2_3P70_RC
+ sntp/sntp.1@1.48 +2 -2
+ NTP_4_2_3P70_RC
+
util/ntp-keygen-opts.c@1.48 +2 -2
NTP_4_2_3P70_RC
@@ -200568,6 +203849,9 @@
sntp/sntp-opts.texi@1.44 +9 -1
NTP_4_2_3P69_RC
+ sntp/sntp.1@1.47 +8 -64
+ NTP_4_2_3P69_RC
+
util/ntp-keygen-opts.c@1.47 +2 -2
NTP_4_2_3P69_RC
@@ -200659,6 +203943,9 @@
sntp/sntp-opts.texi@1.43 +1 -1
NTP_4_2_3P68_RC
+ sntp/sntp.1@1.46 +2 -2
+ NTP_4_2_3P68_RC
+
util/ntp-keygen-opts.c@1.46 +2 -2
NTP_4_2_3P68_RC
@@ -200753,6 +204040,9 @@
sntp/sntp-opts.texi@1.42 +1 -1
NTP_4_2_3P67_RC
+ sntp/sntp.1@1.45 +2 -2
+ NTP_4_2_3P67_RC
+
util/ntp-keygen-opts.c@1.45 +2 -2
NTP_4_2_3P67_RC
@@ -200850,6 +204140,9 @@
sntp/sntp-opts.texi@1.41 +1 -1
NTP_4_2_3P66_RC
+ sntp/sntp.1@1.44 +2 -2
+ NTP_4_2_3P66_RC
+
util/ntp-keygen-opts.c@1.44 +2 -2
NTP_4_2_3P66_RC
@@ -200944,6 +204237,9 @@
sntp/sntp-opts.texi@1.40 +1 -1
NTP_4_2_3P65_RC
+ sntp/sntp.1@1.43 +2 -2
+ NTP_4_2_3P65_RC
+
util/ntp-keygen-opts.c@1.43 +2 -2
NTP_4_2_3P65_RC
@@ -201032,6 +204328,9 @@
sntp/sntp-opts.texi@1.39 +1 -1
NTP_4_2_3P64_RC
+ sntp/sntp.1@1.42 +2 -2
+ NTP_4_2_3P64_RC
+
util/ntp-keygen-opts.c@1.42 +2 -2
NTP_4_2_3P64_RC
@@ -201124,6 +204423,9 @@
sntp/sntp-opts.texi@1.38 +1 -1
NTP_4_2_3P63_RC
+ sntp/sntp.1@1.41 +2 -2
+ NTP_4_2_3P63_RC
+
util/ntp-keygen-opts.c@1.41 +2 -2
NTP_4_2_3P63_RC
@@ -201233,6 +204535,9 @@
sntp/sntp-opts.texi@1.37 +1 -1
NTP_4_2_3P62_RC
+ sntp/sntp.1@1.40 +2 -2
+ NTP_4_2_3P62_RC
+
util/ntp-keygen-opts.c@1.40 +2 -2
NTP_4_2_3P62_RC
@@ -201324,6 +204629,9 @@
sntp/sntp-opts.texi@1.36 +1 -1
NTP_4_2_3P61_RC
+ sntp/sntp.1@1.39 +2 -2
+ NTP_4_2_3P61_RC
+
util/ntp-keygen-opts.c@1.39 +2 -2
NTP_4_2_3P61_RC
@@ -201409,6 +204717,9 @@
sntp/sntp-opts.texi@1.35 +1 -1
NTP_4_2_3P60_RC
+ sntp/sntp.1@1.38 +2 -2
+ NTP_4_2_3P60_RC
+
util/ntp-keygen-opts.c@1.38 +2 -2
NTP_4_2_3P60_RC
@@ -201504,6 +204815,9 @@
sntp/sntp-opts.texi@1.34 +1 -1
NTP_4_2_3P59
+ sntp/sntp.1@1.37 +2 -2
+ NTP_4_2_3P59
+
util/ntp-keygen-opts.c@1.37 +2 -2
NTP_4_2_3P59
@@ -201606,6 +204920,9 @@
sntp/sntp-opts.texi@1.33 +1 -1
NTP_4_2_3P58
+ sntp/sntp.1@1.36 +2 -2
+ NTP_4_2_3P58
+
util/ntp-keygen-opts.c@1.36 +2 -2
NTP_4_2_3P58
@@ -201705,6 +205022,9 @@
sntp/sntp-opts.texi@1.32 +1 -1
NTP_4_2_3P57
+ sntp/sntp.1@1.35 +2 -2
+ NTP_4_2_3P57
+
util/ntp-keygen-opts.c@1.35 +4 -4
NTP_4_2_3P57
@@ -202102,6 +205422,9 @@
sntp/sntp-opts.texi@1.31 +1 -1
NTP_4_2_3P56
+ sntp/sntp.1@1.34 +2 -2
+ NTP_4_2_3P56
+
util/ntp-keygen-opts.c@1.32 +2 -2
NTP_4_2_3P56
@@ -202196,6 +205519,9 @@
sntp/sntp-opts.texi@1.30 +1 -1
NTP_4_2_3P55
+ sntp/sntp.1@1.33 +2 -2
+ NTP_4_2_3P55
+
util/ntp-keygen-opts.c@1.31 +2 -2
NTP_4_2_3P55
@@ -202290,6 +205616,9 @@
sntp/sntp-opts.texi@1.29 +1 -1
NTP_4_2_3P54
+ sntp/sntp.1@1.32 +2 -2
+ NTP_4_2_3P54
+
util/ntp-keygen-opts.c@1.30 +2 -2
NTP_4_2_3P54
@@ -202384,6 +205713,9 @@
sntp/sntp-opts.texi@1.28 +1 -1
NTP_4_2_3P53
+ sntp/sntp.1@1.31 +2 -2
+ NTP_4_2_3P53
+
util/ntp-keygen-opts.c@1.29 +2 -2
NTP_4_2_3P53
@@ -202469,6 +205801,9 @@
sntp/sntp-opts.texi@1.27 +1 -1
NTP_4_2_3P52
+ sntp/sntp.1@1.30 +2 -2
+ NTP_4_2_3P52
+
util/ntp-keygen-opts.c@1.28 +4 -4
NTP_4_2_3P52
@@ -202749,6 +206084,9 @@
sntp/sntp-opts.texi@1.26 +1 -1
autogen update
+ sntp/sntp.1@1.29 +1 -1
+ autogen update
+
util/ntp-keygen-opts.c@1.26 +3 -3
autogen update
@@ -202825,6 +206163,9 @@
sntp/sntp-opts.texi@1.25 +1 -1
NTP_4_2_3P51
+ sntp/sntp.1@1.28 +2 -2
+ NTP_4_2_3P51
+
util/ntp-keygen-opts.c@1.25 +4 -4
NTP_4_2_3P51
@@ -203104,6 +206445,9 @@
sntp/sntp-opts.texi@1.24 +1 -1
autogen upgrade
+ sntp/sntp.1@1.27 +2 -2
+ autogen upgrade
+
util/ntp-keygen-opts.c@1.24 +3 -2
autogen upgrade
@@ -203180,6 +206524,9 @@
sntp/sntp-opts.texi@1.23 +1 -1
NTP_4_2_3P50
+ sntp/sntp.1@1.26 +2 -2
+ NTP_4_2_3P50
+
util/ntp-keygen-opts.c@1.23 +43 -43
NTP_4_2_3P50
@@ -203643,6 +206990,9 @@
sntp/sntp-opts.texi@1.22 +1 -1
NTP_4_2_3P49
+ sntp/sntp.1@1.25 +2 -2
+ NTP_4_2_3P49
+
util/ntp-keygen-opts.c@1.22 +2 -2
NTP_4_2_3P49
@@ -203737,6 +207087,9 @@
sntp/sntp-opts.texi@1.21 +1 -1
NTP_4_2_3P48
+ sntp/sntp.1@1.24 +2 -2
+ NTP_4_2_3P48
+
util/ntp-keygen-opts.c@1.21 +2 -2
NTP_4_2_3P48
@@ -203844,6 +207197,9 @@
sntp/sntp-opts.texi@1.20 +1 -1
NTP_4_2_3P47
+ sntp/sntp.1@1.23 +2 -2
+ NTP_4_2_3P47
+
util/ntp-keygen-opts.c@1.20 +2 -2
NTP_4_2_3P47
@@ -203939,6 +207295,9 @@
sntp/sntp-opts.texi@1.19 +1 -1
NTP_4_2_3P46
+ sntp/sntp.1@1.22 +2 -2
+ NTP_4_2_3P46
+
util/ntp-keygen-opts.c@1.19 +2 -2
NTP_4_2_3P46
@@ -204036,6 +207395,9 @@
sntp/sntp-opts.texi@1.18 +1 -1
NTP_4_2_3P45
+ sntp/sntp.1@1.21 +2 -2
+ NTP_4_2_3P45
+
util/ntp-keygen-opts.c@1.18 +2 -2
NTP_4_2_3P45
@@ -204134,6 +207496,9 @@
sntp/sntp-opts.texi@1.17 +1 -1
NTP_4_2_3P44
+ sntp/sntp.1@1.20 +2 -2
+ NTP_4_2_3P44
+
util/ntp-keygen-opts.c@1.17 +2 -2
NTP_4_2_3P44
@@ -204300,6 +207665,9 @@
sntp/sntp-opts.texi@1.16 +1 -1
NTP_4_2_3P43
+ sntp/sntp.1@1.19 +2 -2
+ NTP_4_2_3P43
+
util/ntp-keygen-opts.c@1.16 +2 -2
NTP_4_2_3P43
@@ -204382,6 +207750,9 @@
sntp/sntp-opts.texi@1.15 +1 -1
NTP_4_2_3P42
+ sntp/sntp.1@1.18 +2 -2
+ NTP_4_2_3P42
+
util/ntp-keygen-opts.c@1.15 +2 -2
NTP_4_2_3P42
@@ -204566,6 +207937,9 @@
sntp/sntp-opts.texi@1.14 +1 -1
NTP_4_2_3P41
+ sntp/sntp.1@1.17 +2 -2
+ NTP_4_2_3P41
+
util/ntp-keygen-opts.c@1.14 +2 -2
NTP_4_2_3P41
@@ -204696,6 +208070,9 @@
sntp/sntp-opts.texi@1.13 +1 -1
NTP_4_2_3P39
+ sntp/sntp.1@1.16 +2 -2
+ NTP_4_2_3P39
+
util/ntp-keygen-opts.c@1.13 +2 -2
NTP_4_2_3P39
@@ -204847,6 +208224,9 @@
sntp/sntp-opts.texi@1.12 +1 -1
NTP_4_2_3P38
+ sntp/sntp.1@1.15 +2 -2
+ NTP_4_2_3P38
+
util/ntp-keygen-opts.c@1.12 +2 -2
NTP_4_2_3P38
@@ -204972,6 +208352,9 @@
sntp/sntp-opts.texi@1.11 +1 -1
NTP_4_2_3P37
+ sntp/sntp.1@1.14 +2 -2
+ NTP_4_2_3P37
+
util/ntp-keygen-opts.c@1.11 +2 -2
NTP_4_2_3P37
@@ -205084,6 +208467,9 @@
sntp/sntp-opts.texi@1.10 +1 -1
NTP_4_2_3P36
+ sntp/sntp.1@1.13 +2 -2
+ NTP_4_2_3P36
+
util/ntp-keygen-opts.c@1.10 +2 -2
NTP_4_2_3P36
@@ -205167,6 +208553,9 @@
sntp/sntp-opts.texi@1.9 +1 -1
NTP_4_2_3P35
+ sntp/sntp.1@1.12 +2 -2
+ NTP_4_2_3P35
+
util/ntp-keygen-opts.c@1.9 +2 -2
NTP_4_2_3P35
@@ -205306,6 +208695,9 @@
sntp/sntp-opts.texi@1.8 +1 -1
NTP_4_2_3P34
+ sntp/sntp.1@1.11 +2 -2
+ NTP_4_2_3P34
+
util/ntp-keygen-opts.c@1.8 +2 -2
NTP_4_2_3P34
@@ -205388,6 +208780,9 @@
sntp/sntp-opts.texi@1.7 +1 -1
NTP_4_2_3P33
+ sntp/sntp.1@1.10 +2 -2
+ NTP_4_2_3P33
+
util/ntp-keygen-opts.c@1.7 +2 -2
NTP_4_2_3P33
@@ -205553,6 +208948,9 @@
sntp/sntp-opts.texi@1.6 +1 -1
run autogen after point release
+ sntp/sntp.1@1.9 +2 -2
+ run autogen after point release
+
util/ntp-keygen-opts.c@1.6 +2 -2
run autogen after point release
@@ -205682,6 +209080,9 @@
sntp/sntp-opts.texi@1.5 +1 -1
regenerate autogen-erated files
+ sntp/sntp.1@1.8 +2 -2
+ regenerate autogen-erated files
+
util/ntp-keygen-opts.c@1.5 +29 -4
regenerate autogen-erated files
@@ -205775,6 +209176,9 @@
sntp/sntp-opts.texi@1.4 +1 -1
NTP_4_2_3P29
+ sntp/sntp.1@1.7 +82 -3
+ NTP_4_2_3P29
+
util/ntp-keygen-opts.c@1.4 +2 -2
NTP_4_2_3P29
@@ -206267,6 +209671,12 @@
sntp/sntp-opts.texi@1.2 +0 -0
Change mode to -rw-r--r--
+ sntp/sntp.1@1.6 +129 -64
+ autogen upgrade
+
+ sntp/sntp.1@1.5 +0 -0
+ Change mode to -rw-r--r--
+
util/ntp-keygen-opts.c@1.3 +54 -36
autogen upgrade
@@ -209044,7 +212454,7 @@
[Bug 527] Lose signalled IO.
configure.ac@1.359.1.28 +7 -2
- [Bug 527] Lose signalled IO.
+ [Bug 527] Losed signalled IO.
ChangeSet@1.1251.85.1, 2006-04-18 05:58:13-04:00, stenn@whimsy.udel.edu
there are 240 ntp-dev patch releases so far
@@ -210493,7 +213903,7 @@
[Bug 516] unprotected crypto_update() call fix from Dave Mills
ChangeSet@1.1251.67.11, 2005-10-25 20:15:47-04:00, stenn@deacon.udel.edu
- [Bug 519] Allow dynamic SSL libraries
+ [Bug 517] Allow dynamic SSL libraries
configure.ac@1.359.1.24 +3 -2
[Bug 519] Allow dynamic SSL libraries: also check /usr/sfw/{lib,include}
@@ -215973,7 +219383,6 @@
ntpdate/ntpdate.c@1.48 +2 -2
[Bug 363] ntpdate: use -1 to represent an invalid fd
- Fix from Rainer Weikusat.
ChangeSet@1.1251.1.27, 2004-11-21 21:33:09-05:00, stenn@whimsy.udel.edu
[Bug 349] Patches from Takao Abe
@@ -216674,6 +220083,9 @@
sntp/main.c@1.5 +19 -115
Lose broadcast and server modes.
+ sntp/sntp.1@1.4 +0 -23
+ Lose broadcast and server modes.
+
sntp/socket.c@1.4 +6 -22
Lose broadcast and server modes.
@@ -217061,6 +220473,17 @@
sntp/main.c@1.4 +8 -8
added sntp.1 and did a little cleanup
+ sntp/sntp.1@1.3 +25 -15
+ added sntp.1 and did a little cleanup
+
+ sntp/sntp.1@1.2 +0 -0
+ Rename: sntp/msntp.1 -> sntp/sntp.1
+
+ sntp/msntp.1@1.1 +325 -0
+
+ sntp/msntp.1@1.0 +0 -0
+ BitKeeper file /deacon/backroom/ntp-dev/sntp/msntp.1
+
ChangeSet@1.1202.1.15, 2004-08-23 22:08:55-04:00, stenn@www.ntp.org
make propdelay compile/link
--- contrib/ntp/NEWS.orig
+++ contrib/ntp/NEWS
@@ -1,4 +1,112 @@
---
+NTP 4.2.8p14 (Harlan Stenn <stenn@ntp.org>, 2020 Mar 03)
+
+Focus: Security, Bug fixes, enhancements.
+
+Severity: MEDIUM
+
+This release fixes three vulnerabilities: a bug that causes causes an ntpd
+instance that is explicitly configured to override the default and allow
+ntpdc (mode 7) connections to be made to a server to read some uninitialized
+memory; fixes the case where an unmonitored ntpd using an unauthenticated
+association to its servers may be susceptible to a forged packet DoS attack;
+and fixes an attack against a client instance that uses a single
+unauthenticated time source. It also fixes 46 other bugs and addresses
+4 other issues.
+
+* [Sec 3610] process_control() should bail earlier on short packets. stenn@
+ - Reported by Philippe Antoine
+* [Sec 3596] Highly predictable timestamp attack. <stenn@ntp.org>
+ - Reported by Miroslav Lichvar
+* [Sec 3592] DoS attack on client ntpd <perlinger@ntp.org>
+ - Reported by Miroslav Lichvar
+* [Bug 3637] Emit the version of ntpd in saveconfig. stenn@
+* [Bug 3636] NMEA: combine time/date from multiple sentences <perlinger@ntp.org>
+* [Bug 3635] Make leapsecond file hash check optional <perlinger@ntp.org>
+* [Bug 3634] Typo in discipline.html, reported by Jason Harrison. stenn@
+* [Bug 3628] raw DCF decoding - improve robustness with Zeller's congruence
+ - implement Zeller's congruence in libparse and libntp <perlinger@ntp.org>
+* [Bug 3627] SIGSEGV on FreeBSD-12 with stack limit and stack gap <perlinger@ntp.org>
+ - integrated patch by Cy Schubert
+* [Bug 3620] memory leak in ntpq sysinfo <perlinger@ntp.org>
+ - applied patch by Gerry Garvey
+* [Bug 3619] Honour drefid setting in cooked mode and sysinfo <perlinger@ntp.org>
+ - applied patch by Gerry Garvey
+* [Bug 3617] Add support for ACE III and Copernicus II receivers <perlinger@ntp.org>
+ - integrated patch by Richard Steedman
+* [Bug 3615] accelerate refclock startup <perlinger@ntp.org>
+* [Bug 3613] Propagate noselect to mobilized pool servers <stenn@ntp.org>
+ - Reported by Martin Burnicki
+* [Bug 3612] Use-of-uninitialized-value in receive function <perlinger@ntp.org>
+ - Reported by Philippe Antoine
+* [Bug 3611] NMEA time interpreted incorrectly <perlinger@ntp.org>
+ - officially document new "trust date" mode bit for NMEA driver
+ - restore the (previously undocumented) "trust date" feature lost with [bug 3577]
+* [Bug 3609] Fixing wrong falseticker in case of non-statistic jitter <perlinger@ntp.org>
+ - mostly based on a patch by Michael Haardt, implementing 'fudge minjitter'
+* [Bug 3608] libparse fails to compile on S11.4SRU13 and later <perlinger@ntp.org>
+ - removed ffs() and fls() prototypes as per Brian Utterback
+* [Bug 3604] Wrong param byte order passing into record_raw_stats() in
+ ntp_io.c <perlinger@ntp.org>
+ - fixed byte and paramter order as suggested by wei6410@sina.com
+* [Bug 3601] Tests fail to link on platforms with ntp_cv_gc_sections_runs=no <perlinger@ntp.org>
+* [Bug 3599] Build fails on linux-m68k due to alignment issues <perlinger@ntp.org>
+ - added padding as suggested by John Paul Adrian Glaubitz
+* [Bug 3594] ntpd discards messages coming through nmead <perlinger@ntp.org>
+* [Bug 3593] ntpd discards silently nmea messages after the 5th string <perlinger@ntp.org>
+* [Bug 3590] Update refclock_oncore.c to the new GPS date API <perlinger@ntp.org>
+* [Bug 3585] Unity tests mix buffered and unbuffered output <perlinger@ntp.org>
+ - stdout+stderr are set to line buffered during test setup now
+* [Bug 3583] synchronization error <perlinger@ntp.org>
+ - set clock to base date if system time is before that limit
+* [Bug 3582] gpsdjson refclock fudgetime1 adjustment is doubled <perlinger@ntp.org>
+* [Bug 3580] Possible bug ntpq-subs (NULL dereference in dogetassoc) <perlinger@ntp.org>
+ - Reported by Paulo Neves
+* [Bug 3577] Update refclock_zyfer.c to the new GPS date API <perlinger@ntp.org>
+ - also updates for refclock_nmea.c and refclock_jupiter.c
+* [Bug 3576] New GPS date function API <perlinger@ntp.org>
+* [Bug 3573] nptdate: missleading error message <perlinger@ntp.org>
+* [Bug 3570] NMEA driver docs: talker ID not mentioned, typo <perlinger@ntp.org>
+* [Bug 3569] cleanup MOD_NANO/STA_NANO handling for 'ntpadjtimex()' <perlinger@ntp.org>
+ - sidekick: service port resolution in 'ntpdate'
+* [Bug 3550] Reproducible build: Respect SOURCE_DATE_EPOCH <perlinger@ntp.org>
+ - applied patch by Douglas Royds
+* [Bug 3542] ntpdc monlist parameters cannot be set <perlinger@ntp.org>
+* [Bug 3533] ntpdc peer_info ipv6 issues <perlinger@ntp.org>
+ - applied patch by Gerry Garvey
+* [Bug 3531] make check: test-decodenetnum fails <perlinger@ntp.org>
+ - try to harden 'decodenetnum()' against 'getaddrinfo()' errors
+ - fix wrong cond-compile tests in unit tests
+* [Bug 3517] Reducing build noise <perlinger@ntp.org>
+* [Bug 3516] Require tooling from this decade <perlinger@ntp.org>
+ - patch by Philipp Prindeville
+* [Bug 3515] Refactor ntpdmain() dispatcher loop and group common code <perlinger@ntp.org>
+ - patch by Philipp Prindeville
+* [Bug 3511] Get rid of AC_LANG_SOURCE() warnings <perlinger@ntp.org>
+ - patch by Philipp Prindeville
+* [Bug 3510] Flatten out the #ifdef nesting in ntpdmain() <perlinger@ntp.org>
+ - partial application of patch by Philipp Prindeville
+* [Bug 3491] Signed values of LFP datatypes should always display a sign
+ - applied patch by Gerry Garvey & fixed unit tests <perlinger@ntp.org>
+* [Bug 3490] Patch to support Trimble Resolution Receivers <perlinger@ntp.org>
+ - applied (modified) patch by Richard Steedman
+* [Bug 3473] RefID of refclocks should always be text format <perlinger@ntp.org>
+ - applied patch by Gerry Garvey (with minor formatting changes)
+* [Bug 3132] Building 4.2.8p8 with disabled local libopts fails <perlinger@ntp.org>
+ - applied patch by Miroslav Lichvar
+* [Bug 3094] ntpd trying to listen for broadcasts on a completely ipv6 network
+ <perlinger@ntp.org>
+* [Bug 2420] ntpd doesn't run and exits with retval 0 when invalid user
+ is specified with -u <perlinger@ntp.org>
+ - monitor daemon child startup & propagate exit codes
+* [Bug 1433] runtime check whether the kernel really supports capabilities
+ - (modified) patch by Kurt Roeckx <perlinger@ntp.org>
+* Clean up sntp/networking.c:sendpkt() error message. <stenn@ntp.org>
+* Provide more detail on unrecognized config file parser tokens. <stenn@ntp.org>
+* Startup log improvements. <stenn@ntp.org>
+* Update the copyright year.
+
+---
NTP 4.2.8p13 (Harlan Stenn <stenn@ntp.org>, 2019 Mar 07)
Focus: Security, Bug fixes, enhancements.
--- contrib/ntp/config.h.in.orig
+++ contrib/ntp/config.h.in
@@ -1215,6 +1215,9 @@
/* Define if C99-compliant `vsnprintf' is available. */
#undef HAVE_VSNPRINTF
+/* Define to 1 if you have the `waitpid' function. */
+#undef HAVE_WAITPID
+
/* Define to 1 if you have the <wchar.h> header file. */
#undef HAVE_WCHAR_H
--- contrib/ntp/configure.orig
+++ contrib/ntp/configure
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.69 for ntp 4.2.8p13.
+# Generated by GNU Autoconf 2.69 for ntp 4.2.8p14.
#
# Report bugs to <http://bugs.ntp.org./>.
#
@@ -590,8 +590,8 @@
# Identity of this package.
PACKAGE_NAME='ntp'
PACKAGE_TARNAME='ntp'
-PACKAGE_VERSION='4.2.8p13'
-PACKAGE_STRING='ntp 4.2.8p13'
+PACKAGE_VERSION='4.2.8p14'
+PACKAGE_STRING='ntp 4.2.8p14'
PACKAGE_BUGREPORT='http://bugs.ntp.org./'
PACKAGE_URL='http://www.ntp.org./'
@@ -1617,7 +1617,7 @@
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures ntp 4.2.8p13 to adapt to many kinds of systems.
+\`configure' configures ntp 4.2.8p14 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -1687,7 +1687,7 @@
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of ntp 4.2.8p13:";;
+ short | recursive ) echo "Configuration of ntp 4.2.8p14:";;
esac
cat <<\_ACEOF
@@ -1930,7 +1930,7 @@
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-ntp configure 4.2.8p13
+ntp configure 4.2.8p14
generated by GNU Autoconf 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
@@ -2639,7 +2639,7 @@
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by ntp $as_me 4.2.8p13, which was
+It was created by ntp $as_me 4.2.8p14, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ $0 $@
@@ -3640,7 +3640,7 @@
# Define the identity of the package.
PACKAGE='ntp'
- VERSION='4.2.8p13'
+ VERSION='4.2.8p14'
cat >>confdefs.h <<_ACEOF
@@ -26091,6 +26091,17 @@
done
+for ac_func in waitpid
+do :
+ ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid"
+if test "x$ac_cv_func_waitpid" = xyes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_WAITPID 1
+_ACEOF
+
+fi
+done
+
case "$host" in
*-convex-*)
for ac_header in /sys/sync/queue.h /sys/sync/sema.h
@@ -33331,6 +33342,10 @@
no:0:*-*-solaris*) ;;
*) ntp_test_ntp_restrict="yes" ;;
esac
+case "$ntp_cv_gc_sections_runs" in
+ no) ntp_test_ntp_restrict="no" ;;
+ * ) ;;
+esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_restrict" >&5
$as_echo "$ntp_test_ntp_restrict" >&6; }
if test x$ntp_test_ntp_restrict = xyes; then
@@ -33350,6 +33365,10 @@
no:0:*-*-solaris*) ;;
*) ntp_test_ntp_scanner="yes" ;;
esac
+case "$ntp_cv_gc_sections_runs" in
+ no) ntp_test_ntp_scanner="no" ;;
+ * ) ;;
+esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_scanner" >&5
$as_echo "$ntp_test_ntp_scanner" >&6; }
if test x$ntp_test_ntp_scanner = xyes; then
@@ -33369,6 +33388,10 @@
no:0:*-*-solaris*) ;;
*) ntp_test_ntp_signd="yes" ;;
esac
+case "$ntp_cv_gc_sections_runs" in
+ no) ntp_test_ntp_signd="no" ;;
+ * ) ;;
+esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_signd" >&5
$as_echo "$ntp_test_ntp_signd" >&6; }
if test x$ntp_test_ntp_signd = xyes; then
@@ -34151,7 +34174,7 @@
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
-This file was extended by ntp $as_me 4.2.8p13, which was
+This file was extended by ntp $as_me 4.2.8p14, which was
generated by GNU Autoconf 2.69. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -34218,7 +34241,7 @@
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
-ntp config.status 4.2.8p13
+ntp config.status 4.2.8p14
configured by $0, generated by GNU Autoconf 2.69,
with options \\"\$ac_cs_config\\"
--- contrib/ntp/configure.ac.orig
+++ contrib/ntp/configure.ac
@@ -1,7 +1,7 @@
dnl NTP top-level configure.ac -*- Autoconf -*-
dnl
m4_include([sntp/m4/version.m4])
-AC_PREREQ([2.61])
+AC_PREREQ([2.68])
AC_INIT(
[ntp],
[VERSION_NUMBER],
@@ -42,13 +42,10 @@
NTP_CACHEVERSION([main], [$ntp_configure_cache_version])
-AM_INIT_AUTOMAKE([1.10 foreign -Wall -Wno-gnu])
+AM_INIT_AUTOMAKE([1.15 foreign -Wall -Wno-gnu])
-dnl AM_SILENT_RULES req. automake 1.11. [yes] defaults V=0
-m4_ifdef(
- [AM_SILENT_RULES],
- [AM_SILENT_RULES([yes])]
-)
+AM_SILENT_RULES([yes])
+
AC_CANONICAL_BUILD
AC_CANONICAL_HOST
dnl the 'build' machine is where we run configure and compile
@@ -382,6 +379,7 @@
esac
AC_CHECK_HEADERS([sys/stat.h sys/stream.h stropts.h sys/stropts.h sys/syssgi.h])
AC_CHECK_HEADERS([sys/systune.h sys/termios.h sys/tpro.h sys/wait.h])
+AC_CHECK_FUNCS([waitpid])
case "$host" in
*-convex-*)
AC_CHECK_HEADERS([/sys/sync/queue.h /sys/sync/sema.h])
--- contrib/ntp/html/accopt.html.orig
+++ contrib/ntp/html/accopt.html
@@ -55,8 +55,10 @@
</dl>
</dd>
<dt id="restrict"><tt>restrict [-4 | -6] default [ippeerlimit <i>num</i>]
- [<i>flag</i>][...]<br> restrict source [ippeerlimit <i>num</i>]
- [<i>flag</i>][...]<br> restrict <i>address</i> [mask <i>mask</i>]
+ [<i>flag</i>][...]</tt></dt>
+ <dt><tt>restrict source [ippeerlimit <i>num</i>]
+ [<i>flag</i>][...]</tt></dt>
+ <dt><tt>restrict <i>address</i> [mask <i>mask</i>]
[ippeerlimit <i>num</i>] [<i>flag</i>][...]</tt></dt>
<dd>The <tt><i>address</i></tt> argument expressed in IPv4 or IPv6 numeric
address form is the address of a host or network. Alternatively,
@@ -168,6 +170,9 @@
UDP port (123). A restrict line containing <tt>ntpport</tt> is
considered more specific than one with the same address and mask,
but lacking <tt>ntpport</tt>.</dd>
+ <dt><tt>serverresponse fuzz</tt></dt>
+ <dd>When reponding to server requests, fuzz the low order bits of
+ the <tt>reftime</tt>.</dd>
<dt><tt>version</tt></dt>
<dd>Deny packets that do not match the current NTP version.</dd>
</dl>
--- contrib/ntp/html/clockopt.html.orig
+++ contrib/ntp/html/clockopt.html
@@ -10,7 +10,7 @@
<h3>Reference Clock Commands and Options</h3>
<img src="pic/stack1a.jpg" alt="gif" align="left">Master Time Facility at the <a href="http://www.eecis.udel.edu/%7emills/lab.html">UDel Internet Research Laboratory</a>
<p>Last update:
- <!-- #BeginDate format:En2m -->11-Sep-2010 05:55<!-- #EndDate -->
+ <!-- #BeginDate format:En2m -->26-Sep-2019 06:34<!-- #EndDate -->
UTC</p>
<br clear="left">
<h4>Related Links</h4>
@@ -50,6 +50,22 @@
<dd>Specifies an ASCII string of from one to four characters which defines the reference identifier used by the driver. This string overrides the default identifier ordinarily assigned by the driver itself.</dd>
<dt><tt>flag1 flag2 flag3 flag4</tt></dt>
<dd>These four flags are used for customizing the clock driver. The interpretation of these values, and whether they are used at all, is a function of the particular driver. However, by convention <tt>flag4</tt> is used to enable recording monitoring data to the <tt>clockstats</tt> file configured with the <tt>filegen</tt> command. Additional information on the <tt>filegen</tt> command is on the <a href="monopt.html">Monitoring Options</a> page.</dd>
+ <dt><tt>minjitter <i>secs</i></tt></dt>
+ <dd>If the source has a jitter that cannot be sensibly estimated, because
+ it is not statistic jitter, the source will be detected as falseticker
+ sooner or later. This has been observed e.g. with the serial data of
+ certain GPS receivers. Enforcing a minimal jitter value avoids a too
+ low estimation, keeping the clock in the zoo while still detecting
+ higher jitter.
+ </dd><dd> Note: this changes the refclock samples and ends up in the
+ clock dispersion, not the clock jitter, despite being called jitter. To
+ see the modified values, check the NTP clock variable "filtdisp", not
+ "jitter".
+ </dd><dd>The falseticker problem can also be avoided by increasing <tt>tos
+ mindist</tt>, which extends the intersection interval, but that affects
+ the root dispersion and is intended for the case of multiple reference
+ clocks with reliable jitter that do not intersect otherwise.
+ </dd>
</dl>
</dd>
</dl>
--- contrib/ntp/html/confopt.html.orig
+++ contrib/ntp/html/confopt.html
@@ -13,7 +13,7 @@
Walt Kelly</a>
<p>The chicken is getting configuration advice.</p>
<p>Last update:
- <!-- #BeginDate format:En2m -->24-Jul-2018 07:27<!-- #EndDate -->
+ <!-- #BeginDate format:En2m -->13-Feb-2020 10:08<!-- #EndDate -->
UTC</p>
<br clear="left">
<h4>Related Links</h4>
@@ -33,12 +33,12 @@
support for the IPv6 address family is generated in addition to the default IPv4 address family. IPv6 addresses can be identified by the presence of colons ":" in the address field. IPv6 addresses can be used almost everywhere where IPv4 addresses can be used, with the exception of reference clock addresses, which are always IPv4. Note that in contexts where a host name is expected, a <tt>-4</tt> qualifier preceding the host name forces DNS resolution to the IPv4 namespace, while a <tt>-6</tt> qualifier forces DNS resolution to the IPv6 namespace.</p>
<h4 id="command">Server Commands</h4>
<p>Unless noted otherwise, further information about these commands is on the <a href="assoc.html">Association Management</a> page.</p><dl>
- <dt id="server"><tt>server <i>address</i> [options ...]</tt><br>
- <tt>peer <i>address</i> [options ...]</tt><br>
- <tt>broadcast <i>address</i> [options ...]</tt><br>
- <tt>manycastclient <i>address</i> [options ...]</tt><br>
- <tt>pool <i>address</i> [options ...]</tt><br>
- <tt>unpeer [<i>address</i> | <i>associd</i>]</tt></dt>
+ <dt id="server"><tt>server <i>address</i> [options ...]</tt></dt>
+ <dt><tt>peer <i>address</i> [options ...]</tt></dt>
+ <dt><tt>broadcast <i>address</i> [options ...]</tt></dt>
+ <dt><tt>manycastclient <i>address</i> [options ...]</tt></dt>
+ <dt><tt>pool <i>address</i> [options ...]</tt></dt>
+ <dt><tt>unpeer [<i>address</i> | <i>associd</i>]</tt></dt>
<dd>These commands specify the remote server name or address to be used and the mode in which to operate. The <i>address</i> can be either a DNS name or a IPv4 or IPv6 address in standard notation. In general, multiple commands of each type can be used for different server and peer addresses or multicast groups.
<dl>
<dt><tt>server</tt></dt>
@@ -67,8 +67,14 @@
<dt><tt>ident</tt> <em><tt>group</tt></em></dt>
<dd>Specify the group name for the association. See the <a href="autokey.html">Autokey Public-Key Authentication</a> page for further information.</dd>
<dt><tt>key</tt> <i><tt>key</tt></i></dt>
- <dd>Send and receive packets authenticated by the symmetric key scheme described in the <a href="authentic.html">Authentication Support</a> page. The <i><tt>key</tt></i> specifies the key identifier with values from 1 to 65535, inclusive. This option is mutually exclusive with the <tt>autokey</tt> option.</dd> <dt><tt>minpoll <i>minpoll<br>
- </i></tt><tt>maxpoll <i>maxpoll</i></tt></dt>
+ <dd>Send and receive packets authenticated by the symmetric key scheme
+ described in the <a href="authentic.html">Authentication Support</a>
+ page. The <i><tt>key</tt></i> specifies the key identifier with values
+ from 1 to 65535, inclusive. This option is mutually exclusive with
+ the <tt>autokey</tt>
+ option.</dd>
+ <dt><tt>minpoll <i>minpoll</i></tt></dt>
+ <dt><tt>maxpoll <i>maxpoll</i></tt></dt>
<dd>These options specify the minimum and maximum poll intervals for NTP messages, in seconds as a power of two. The maximum poll interval defaults to 10 (1024 s), but can be increased by the <tt>maxpoll</tt> option to an upper limit of 17 (36 hr). The minimum poll interval defaults to 6 (64 s), but can be decreased by the <tt>minpoll</tt> option to a lower limit of 3 (8 s). Additional information about this option is on the <a href="poll.html">Poll Program</a> page.</dd>
<dt><tt>mode <i>option</i></tt></dt>
<dd>Pass the <tt><i>option</i></tt> to a reference clock driver, where <tt><i>option</i></tt> is an integer in the range from 0 to 255, inclusive. This option is valid only with type r addresses.</dd>
@@ -87,6 +93,13 @@
outgoing NTP packets. Versions 1-4 are the choices, with version 4 the default.</dd>
<dt><tt>xleave</tt></dt>
<dd>Operate in interleaved mode (symmetric and broadcast modes only). Further information is on the <a href="xleave.html">NTP Interleaved Modes</a> page.</dd>
+ <dt><tt>xmtnonce</tt></dt>
+ <dd>Allowed in the server and pool modes, this flag causes the
+ client to put a random number nonce in the transmit timestamp of
+ its outgoing packet. Since the server will reply copying the
+ incoming transmit timestamp to the outgoing origin timestamp, this
+ flag provides extra security for the loopback test, at the expense
+ of the server having no idea what time the client thinks it is.</dd>
</dl>
<h4 id="aux">Auxiliary Commands</h4>
<dl>
--- contrib/ntp/html/copyright.html.orig
+++ contrib/ntp/html/copyright.html
@@ -3,7 +3,6 @@
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<title>Copyright Notice</title>
-<!-- Changed by: Harlan Stenn, 10-Mar-2014 -->
<link href="scripts/style.css" type="text/css" rel="stylesheet">
</head>
<body>
@@ -10,7 +9,7 @@
<h3>Copyright Notice</h3>
<img src="pic/sheepb.jpg" alt="jpg" align="left"> "Clone me," says Dolly sheepishly.
<p>Last update:
- <!-- #BeginDate format:En2m -->2-Jan-2017 11:58<!-- #EndDate -->
+ <!-- #BeginDate format:En2m -->4-Feb-2020 23:47<!-- #EndDate -->
UTC</p>
<br clear="left">
</p>
@@ -39,7 +38,7 @@
<pre>
***********************************************************************
* *
-* Copyright (c) Network Time Foundation 2011-2017 *
+* Copyright (c) Network Time Foundation 2011-2020 *
* *
* All Rights Reserved *
* *
--- contrib/ntp/html/discipline.html.orig
+++ contrib/ntp/html/discipline.html
@@ -4,12 +4,13 @@
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<meta name="generator" content="HTML Tidy, see www.w3.org">
<title>Clock Discipline Algorithm</title>
+<!-- Changed by: stenn, 03-Jan-2020 -->
<link href="scripts/style.css" type="text/css" rel="stylesheet">
</head>
<body>
<h3>Clock Discipline Algorithm</h3>
<p>Last update:
- <!-- #BeginDate format:En2m -->10-Mar-2014 05:03<!-- #EndDate -->
+ <!-- #BeginDate format:En2m -->3-Jan-2020 02:12<!-- #EndDate -->
UTC</p>
<h4>Table of Contents</h4>
<ul>
@@ -20,29 +21,29 @@
</ul>
<hr>
<h4 id="intro">General Overview</h4>
-<p>At the heart of the NTP specification and reference implementation is the clock discipline algorithm, which is best described as an adaptive parameter, hybrid phase/frequency-lock feedback loop. It is an intricately crafted algorithm that automatically adapts for optimum performance while minimizing network overhead. Operation is in two modes, phase-lock loop (PLL), which is used at poll intervals below the Allan intercept, by default 2048 s, and frequency-lock loop (FLL), which is used above that.</p>
+<p>At the heart of the NTP specification and reference implementation is the clock discipline algorithm, which is best described as an adaptive parameter, hybrid phase/frequency-lock feedback loop. It is an intricately crafted algorithm that automatically adapts for optimum performance while minimizing network overhead. Operation is in two modes, phase-lock loop (PLL), which is used at poll intervals below the Allan intercept, by default 2048 s, and frequency-lock loop (FLL), which is used above that.</p>
<div align="center"> <img src="pic/discipline.gif" alt="gif">
<p>Figure 1. Clock Discipline Algorithm</p>
</div>
<h4 id="pll">Clock Discipline Operations</h4>
-<p>A block diagram of the clock discipline is shown in Figure 1. The timestamp of a reference clock or remote server is compared with the timestamp of the system clock, represented as a variable frequency oscillator (VFO), to produce a raw offset sample <em>V<sub>d</sub></em>. Offset samples are processed by the clock filter to produce a filtered update <em>V<sub>s</sub></em>. The loop filter implements a type-2 proportional-integrator controller (PIC). The PIC can minimize errors in both time and frequency using predictors <em>x</em> and <em>y</em>, respectively. The clock adjust process samples these predictors once each second for the daemon discipline or once each tick interrupt for the kernel discipline to produce the system clock update <em>V<sub>c</sub></em>.</p>
-<p>In PLL mode the frequency predictor is an integral of the offset over past updates, while the phase predictor is the offset amortized over time in order to avoid setting the clock backward. In FLL mode the phase predictor is not used, while the frequency predictor is similar to the NIST <em>lockclock</em> algorithm. In this algorithm, the frequency predictor is computed as a fraction of the current offset divided by the time since the last update in order to minimize the offset at the next update.</p>
-<p>The discipline response in PLL mode is determined by the <em>time constant</em>, which results in a "stiffness" depending on the jitter of the available sources and the wander of the system clock oscillator. The scaled time constant is also used as the poll interval described on the <a href="poll.html">Poll Program</a> page. However, in NTP symmetric mode, each peer manages its own poll interval and the two might not be the same. In such cases either peer uses the minimum of its own poll interval and that of the other peer, which is included in the NTP packet header.</p>
+<p>A block diagram of the clock discipline is shown in Figure 1. The timestamp of a reference clock or remote server is compared with the timestamp of the system clock, represented as a variable frequency oscillator (VFO), to produce a raw offset sample <em>V<sub>d</sub></em>. Offset samples are processed by the clock filter to produce a filtered update <em>V<sub>s</sub></em>. The loop filter implements a type-2 proportional-integrator controller (PIC). The PIC can minimize errors in both time and frequency using predictors <em>x</em> and <em>y</em>, respectively. The clock adjust process samples these predictors once each second for the daemon discipline or once each tick interrupt for the kernel discipline to produce the system clock update <em>V<sub>c</sub></em>.</p>
+<p>In PLL mode the frequency predictor is an integral of the offset over past updates, while the phase predictor is the offset amortized over time in order to avoid setting the clock backward. In FLL mode the phase predictor is not used, while the frequency predictor is similar to the NIST <em>lockclock</em> algorithm. In this algorithm, the frequency predictor is computed as a fraction of the current offset divided by the time since the last update in order to minimize the offset at the next update.</p>
+<p>The discipline response in PLL mode is determined by the <em>time constant</em>, which results in a "stiffness" depending on the jitter of the available sources and the wander of the system clock oscillator. The scaled time constant is also used as the poll interval described on the <a href="poll.html">Poll Program</a> page. However, in NTP symmetric mode, each peer manages its own poll interval and the two might not be the same. In such cases either peer uses the minimum of its own poll interval and that of the other peer, which is included in the NTP packet header.</p>
<h4 id="loop">Loop Dynamics</h4>
-<p> It is necessary to verify that the clock discipline algorithm is stable and satisfies the Nyquist criterion, which requires that the sampling rate be at least twice the bandwidth. In this case the bandwidth can be approximated by the reciprocal of the time constant. In the NTP specification and reference implementation, time constants and poll intervals are expressed as exponents of 2. By construction, the time constant exponent is five times the poll interval exponent. Thus, the default poll exponent of 6 corresponds to a poll interval of 64 s and a time constant of 2048 s. A change in the poll interval changes the time constant by a corresponding amount.. The Nyquist criterion requires the sample interval to be not more than half the time constant or 1024 s. The clock filter guarantees at least one sample in eight poll intervals, so the sample interval is not more than 512 s. This would be described as oversampling by a factor of two. Finally, the PLL parameters have been chosen for a damping factor of 2, which results in a much faster risetime than with critical damping, but results in modest overshoot of 6 percent.</p>
-<p> It is important to understand how the dynamics of the PLL are affected by the time constant and poll interval. At the default poll interval of 64 s and a step offset change of 100 ms, the time response crosses zero in about 50 min and overshoots about 6 ms, as per design. Ordinarily, a step correction would causes a temporary frequency surge of about 5 PPM, which along with the overshoot slowly dissipates over a few hours.</p>
-<p>However, the clock state machine used with the discipline algorithm avoids this transient at startup. It does this using a previously saved frequency file, if present, or by measuring the oscillator frequency, if not. It then quickly amortizes the residual offset at startup without affecting the oscillator frequency. In this way the offset error is less than 0.5 ms within 5 min, if the file is present, and within 10 min if not. See the <a href="clock.html">Clock State Machine</a> page for further details.</p>
-<p>Since the PLL is linear, the response with different offset step amplitudes and poll intervals has the same characteristic shape, but scaled differently in amplitude and time. The response scales exactly with step amplitude, so that the response to a 10-ms step has the same shape as at 64 s, but with amplitude compressed by one-tenth. The response scales exactly with poll interval, so that response at a poll interval of 8 s has the same shape as at 64 s, but with time compressed by one-eighth.</p>
-<p>The optimum time constant, and thus the poll interval, depends on the network time jitter and the oscillator frequency wander. Errors due to jitter decrease as the time constant increases, while errors due to wander decrease as the time constant decreases. For typical Internet paths, the two error characteristics intersect at a point called the <em>Allan intercept</em>, which represents the optimum time constant. With a compromise Allan intercept of 2048 s, the optimum poll interval is about 64 s, which corresponds to a compromise poll exponent of 6. For fast LANs with modern computers, the Allan intercept is somewhat lower at around 512 s, so a compromise poll exponent of 4 (16 s) is appropriate. An intricate, heuristic algorithm is used to manage the actual poll interval within a specified range. Details are on the <a href="poll.html">Poll Program</a> page.</p>
-<p>In the NTPv4 specification and reference implementation a state machine is used to manage the system clock under exceptional conditions, as when the daemon is first started or when encountering severe network congestion. In extreme cases not likely to be encountered in normal operation, the system time can be stepped forward or backward more than 128 ms. Further details are on the <a href="clock.html">Clock State Machine</a> page.</p>
+<p> It is necessary to verify that the clock discipline algorithm is stable and satisfies the Nyquist criterion, which requires that the sampling rate be at least twice the bandwidth. In this case the bandwidth can be approximated by the reciprocal of the time constant. In the NTP specification and reference implementation, time constants and poll intervals are expressed as exponents of 2. By construction, the time constant exponent is five times the poll interval exponent. Thus, the default poll exponent of 6 corresponds to a poll interval of 64 s and a time constant of 2048 s. A change in the poll interval changes the time constant by a corresponding amount.. The Nyquist criterion requires the sample interval to be not more than half the time constant or 1024 s. The clock filter guarantees at least one sample in eight poll intervals, so the sample interval is not more than 512 s. This would be described as oversampling by a factor of two. Finally, the PLL parameters have been chosen for a damping factor of 2, which results in a much faster risetime than with critical damping, but results in modest overshoot of 6 percent.</p>
+<p> It is important to understand how the dynamics of the PLL are affected by the time constant and poll interval. At the default poll interval of 64 s and a step offset change of 100 ms, the time response crosses zero in about 50 min and overshoots about 6 ms, as per design. Ordinarily, a step correction would causes a temporary frequency surge of about 5 PPM, which along with the overshoot slowly dissipates over a few hours.</p>
+<p>However, the clock state machine used with the discipline algorithm avoids this transient at startup. It does this using a previously saved frequency file, if present, or by measuring the oscillator frequency, if not. It then quickly amortizes the residual offset at startup without affecting the oscillator frequency. In this way the offset error is less than 0.5 ms within 5 min, if the file is present, and within 10 min if not. See the <a href="clock.html">Clock State Machine</a> page for further details.</p>
+<p>Since the PLL is linear, the response with different offset step amplitudes and poll intervals has the same characteristic shape, but scaled differently in amplitude and time. The response scales exactly with step amplitude, so that the response to a 10-ms step has the same shape as at 64 s, but with amplitude compressed by one-tenth. The response scales exactly with poll interval, so that response at a poll interval of 8 s has the same shape as at 64 s, but with time compressed by one-eighth.</p>
+<p>The optimum time constant, and thus the poll interval, depends on the network time jitter and the oscillator frequency wander. Errors due to jitter decrease as the time constant increases, while errors due to wander decrease as the time constant decreases. For typical Internet paths, the two error characteristics intersect at a point called the <em>Allan intercept</em>, which represents the optimum time constant. With a compromise Allan intercept of 2048 s, the optimum poll interval is about 64 s, which corresponds to a compromise poll exponent of 6. For fast LANs with modern computers, the Allan intercept is somewhat lower at around 512 s, so a compromise poll exponent of 4 (16 s) is appropriate. An intricate, heuristic algorithm is used to manage the actual poll interval within a specified range. Details are on the <a href="poll.html">Poll Program</a> page.</p>
+<p>In the NTPv4 specification and reference implementation a state machine is used to manage the system clock under exceptional conditions, as when the daemon is first started or when encountering severe network congestion. In extreme cases not likely to be encountered in normal operation, the system time can be stepped forward or backward more than 128 ms. Further details are on the <a href="clock.html">Clock State Machine</a> page.</p>
<h4 id="house">Clock Initialization and Management</h4>
-<p>If left running continuously, an NTP client on a fast LAN in a home or office environment can maintain synchronization nominally within one millisecond. When the ambient temperature variations are less than a degree Celsius, the clock oscillator frequency is disciplined to within one part per million (PPM), even when the clock oscillator native frequency offset is 100 PPM or more.</p>
-<p> For laptops and portable devices when the power is turned off, the battery backup clock offset error can increase as much as one second per day. When power is restored after several hours or days, the clock offset and oscillator frequency errors must be resolved by the clock discipline algorithm, but this can take several hours without specific provisions.</p>
-<p> The provisions described in this section insure that, in all but pathological situations, the startup transient is suppressed to within nominal levels in no more than five minutes after a warm start or ten minutes after a cold start. Following is a summary of these provisions. A detailed discussion of these provisions is on the <a href="clock.html">Clock State Machine</a> page.</p>
-<p> The reference implementation measures the clock oscillator frequency and updates a frequency file at intervals of one hour or more, depending on the measured frequency wander. This design is intended to minimize write cycles in NVRAM that might be used in a laptop or portable device. In a warm start, the frequency is initialized from this file, which avoids a possibly lengthy convergence time. In a cold start when no frequency file is available, the reference implementation first measures the oscillator frequency over a five-min interval. This generally results in a residual frequency error less than 1 PPM. The measurement interval can be changed using the <tt>stepout</tt> option of the <a href="miscopt.html#tinker"><tt>tinker</tt></a> command.</p>
-<p>In order to reduce the clock offset error at restart, the reference implementation mext disables oscillator frequency discipline and enables clock offset discipline with a small time constant. This is designed to quickly reduce the clock offset error without causing a frequency surge. This configuration is continued for an interval of five-min, after which the clock offset error is usually no more than a millisecond. The measurement interval can be changed using the <tt>stepout</tt> option of the <a href="miscopt.html#tinker"><tt>tinker</tt></a> command.</p>
-<p>Another concern at restart is the time necessary for the select and cluster algorithms to refine and validate the initial clock offset estimate. Normally, this takes several updates before setting the system clock. As the default minimum poll interval in most configurations is about one minute, it can take several minutes before setting the system clock. The <tt>iburst</tt> option of the <a href="confopt.html#burst"><tt>server</tt></a> command changes the behavior at restart and is recommended for client/server configurations. When this option is enabled, the client sends a volley of six requests at intervals of two seconds. This usually insures a reliable estimate is available in about ten seconds before setting the clock. Once this initial volley is complete, the procedures described above are executed.</p>
-<p>As a result of the above considerations, when a backup source, such as the local clock driver, ACTS modem driver or orphan mode is included in the system configuration, it may happen that one or more of them are selectable before one or more of the regular sources are selectable. When backup sources are included in the configuration, the reference implementation waits an interval of several minutes without regular sources before switching to backup sources. This is generally enough to avoid startup transients due to premature switching to backup sources. The interval can be changed using the <tt>orphanwait</tt> option of the <a href="miscopt.html#tos"><tt>tos</tt></a> command.</p>
+<p>If left running continuously, an NTP client on a fast LAN in a home or office environment can maintain synchronization nominally within one millisecond. When the ambient temperature variations are less than a degree Celsius, the clock oscillator frequency is disciplined to within one part per million (PPM), even when the clock oscillator native frequency offset is 100 PPM or more.</p>
+<p> For laptops and portable devices when the power is turned off, the battery backup clock offset error can increase as much as one second per day. When power is restored after several hours or days, the clock offset and oscillator frequency errors must be resolved by the clock discipline algorithm, but this can take several hours without specific provisions.</p>
+<p> The provisions described in this section insure that, in all but pathological situations, the startup transient is suppressed to within nominal levels in no more than five minutes after a warm start or ten minutes after a cold start. Following is a summary of these provisions. A detailed discussion of these provisions is on the <a href="clock.html">Clock State Machine</a> page.</p>
+<p> The reference implementation measures the clock oscillator frequency and updates a frequency file at intervals of one hour or more, depending on the measured frequency wander. This design is intended to minimize write cycles in NVRAM that might be used in a laptop or portable device. In a warm start, the frequency is initialized from this file, which avoids a possibly lengthy convergence time. In a cold start when no frequency file is available, the reference implementation first measures the oscillator frequency over a five-min interval. This generally results in a residual frequency error less than 1 PPM. The measurement interval can be changed using the <tt>stepout</tt> option of the <a href="miscopt.html#tinker"><tt>tinker</tt></a> command.</p>
+<p>In order to reduce the clock offset error at restart, the reference implementation next disables oscillator frequency discipline and enables clock offset discipline with a small time constant. This is designed to quickly reduce the clock offset error without causing a frequency surge. This configuration is continued for an interval of five-min, after which the clock offset error is usually no more than a millisecond. The measurement interval can be changed using the <tt>stepout</tt> option of the <a href="miscopt.html#tinker"><tt>tinker</tt></a> command.</p>
+<p>Another concern at restart is the time necessary for the select and cluster algorithms to refine and validate the initial clock offset estimate. Normally, this takes several updates before setting the system clock. As the default minimum poll interval in most configurations is about one minute, it can take several minutes before setting the system clock. The <tt>iburst</tt> option of the <a href="confopt.html#burst"><tt>server</tt></a> command changes the behavior at restart and is recommended for client/server configurations. When this option is enabled, the client sends a volley of six requests at intervals of two seconds. This usually insures a reliable estimate is available in about ten seconds before setting the clock. Once this initial volley is complete, the procedures described above are executed.</p>
+<p>As a result of the above considerations, when a backup source, such as the local clock driver, ACTS modem driver or orphan mode is included in the system configuration, it may happen that one or more of them are selectable before one or more of the regular sources are selectable. When backup sources are included in the configuration, the reference implementation waits an interval of several minutes without regular sources before switching to backup sources. This is generally enough to avoid startup transients due to premature switching to backup sources. The interval can be changed using the <tt>orphanwait</tt> option of the <a href="miscopt.html#tos"><tt>tos</tt></a> command.</p>
<hr>
<script type="text/javascript" language="javascript" src="scripts/footer.txt"></script>
</body>
--- contrib/ntp/html/drivers/driver20.html.orig
+++ contrib/ntp/html/drivers/driver20.html
@@ -1,7 +1,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head>
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>Generic NMEA GPS Receiver</title>
- <!-- Changed by: Harlan &, 31-Mar-2014 -->
+ <!-- Changed by: Pearly &, 04-Feb-2019 -->
<link href="scripts/style.css" type="text/css" rel="stylesheet">
<style type="text/css">
table.dlstable { font-size:85%; }
@@ -13,7 +13,7 @@
<body>
<h3>Generic NMEA GPS Receiver</h3>
<p>Last update:
- <!-- #BeginDate format:En2m -->31-Mar-2014 03:55<!-- #EndDate -->
+ <!-- #BeginDate format:En2m -->13-Jan-2020 07:12<!-- #EndDate -->
UTC</p>
<hr>
<h4>Synopsis</h4>
@@ -41,6 +41,9 @@
second insertion in UTC. To avoid problems mixing UTC and GPS
timescales, the driver disables processing of UTC sentences
once <tt>$GPZDG</tt> is received.
+ <br>
+ <strong>Caveat:</strong> Please see <a href="#talkerids">Talker
+ IDs</a> when using non-GPS or multi-system receivers.
</p>
<p>
The driver expects the receiver to be set up to transmit at least one
@@ -80,7 +83,14 @@
</tr><tr>
<td class="ttf">$GPZDG,GPSTIME,DD,MM,YYYY,AA.BB,V*CS<cr><lf></td>
<td>Accord</td>
- </tr>
+ </tr><tr>
+ </tr><tr>
+ <td class="ttf">$PGRMF,gpsWk,gpsTow,DATE,UTC,LEAPS,LAT,LAT_REF,LON,LON_REF,TYPE,MODE,SPD,HDOP,TDOP*CS<cr><lf></td>
+ <td>Garmin</td>
+ </tr><tr>
+ <td class="ttf">$PUBX,04,UTC,DATE,utcTow,utcWk,LEAPS,clkBias,clkDrift,tpGran,*CS<cr><lf></td>
+ <td>UBLOX</td>
+ </tr>
</tbody></table></p>
<p><table class="dlstable" border="1">
@@ -91,78 +101,96 @@
</tr>
<tr>
- <td class="ttf">UTC</td>
- <td>Time of day on UTC timescale. Hours, minutes and seconds [fraction (opt.)]. (hhmmss[.fff])</td>
+ <td class="ttf">ALT</td>
+ <td>Antenna Altitude</td>
</tr><tr>
- <td class="ttf">POS_STAT</td>
- <td>Position status. (A = Data valid, V = Data invalid)</td>
+ <td class="ttf">ALT_UNIT</td>
+ <td>Altitude Units (Metres/Feet)</td>
</tr><tr>
- <td class="ttf">LAT</td>
- <td>Latitude (llll.ll)</td>
+ <td class="ttf">DATE</td>
+ <td>Date (ddmmyy)</td>
</tr><tr>
- <td class="ttf">LAT_REF</td>
- <td>Latitude direction. (N = North, S = South)</td>
+ <td class="ttf">DD</td>
+ <td>Day of the month (1-31)</td>
</tr><tr>
- <td class="ttf">LON</td>
- <td>Longitude (yyyyy.yy)</td>
+ <td class="ttf">D_AGE</td>
+ <td>Age of last DGPS Fix</td>
</tr><tr>
- <td class="ttf">LON_REF</td>
- <td>Longitude direction (E = East, W = West)</td>
+ <td class="ttf">D_REF</td>
+ <td>Reference ID of DGPS station</td>
</tr><tr>
- <td class="ttf">SPD</td>
- <td>Speed over ground. (knots) (x.x)</td>
+ <td class="ttf">FIX_MODE</td>
+ <td>Position Fix Mode (0 = Invalid, >0 = Valid)</td>
</tr><tr>
- <td class="ttf">HDG</td>
- <td>Heading/track made good (degrees True) (x.x)</td>
+ <td class="ttf">GEO</td>
+ <td>Geoid/Elipsoid separation</td>
</tr><tr>
- <td class="ttf">DATE</td>
- <td>Date (ddmmyy)</td>
+ <td class="ttf">GPSTIME</td>
+ <td>Time of day on GPS timescale. Hours, minutes and seconds [fraction (opt.)] (hhmmss[.f])</td>
</tr><tr>
- <td class="ttf">MAG_VAR</td>
- <td>Magnetic variation (degrees) (x.x)</td>
+ <td class="ttf">gpsTow</td>
+ <td>GPS week time, seconds since start of GPS week (0..604799)</td>
</tr><tr>
- <td class="ttf">MAG_REF</td>
- <td>Magnetic variation (E = East, W = West)</td>
+ <td class="ttf">gpsWk</td>
+ <td>Week number in the GPS time scale (may exceed 1024)</td>
</tr><tr>
- <td class="ttf">FIX_MODE</td>
- <td>Position Fix Mode (0 = Invalid, >0 = Valid)</td>
+ <td class="ttf">G_UNIT</td>
+ <td>Geoid units (M/F)</td>
</tr><tr>
- <td class="ttf">SAT_USED</td>
- <td>Number of Satellites used in solution</td>
+ <td class="ttf">HDG</td>
+ <td>Heading/track made good (degrees True) (x.x)</td>
</tr><tr>
<td class="ttf">HDOP</td>
<td>Horizontal Dilution of Precision</td>
</tr><tr>
- <td class="ttf">ALT</td>
- <td>Antenna Altitude</td>
+ <td class="ttf">LAT</td>
+ <td>Latitude (llll.ll)</td>
</tr><tr>
- <td class="ttf">ALT_UNIT</td>
- <td>Altitude Units (Metres/Feet)</td>
+ <td class="ttf">LAT_REF</td>
+ <td>Latitude direction (N = North, S = South)</td>
</tr><tr>
- <td class="ttf">GEO</td>
- <td>Geoid/Elipsoid separation</td>
+ <td class="ttf">LEAPS</td>
+ <td>Leap seconds or difference between GPS time scale and UTC</td>
</tr><tr>
- <td class="ttf">G_UNIT</td>
- <td>Geoid units (M/F)</td>
+ <td class="ttf">LON</td>
+ <td>Longitude (yyyyy.yy)</td>
</tr><tr>
- <td class="ttf">D_AGE</td>
- <td>Age of last DGPS Fix</td>
+ <td class="ttf">LON_REF</td>
+ <td>Longitude direction (E = East, W = West)</td>
</tr><tr>
- <td class="ttf">D_REF</td>
- <td>Reference ID of DGPS station</td>
+ <td class="ttf">MAG_REF</td>
+ <td>Magnetic variation (E = East, W = West)</td>
</tr><tr>
- <td class="ttf">GPSTIME</td>
- <td>Time of day on GPS timescale. Hours, minutes and seconds [fraction (opt.)]. (hhmmss[.f])</td>
+ <td class="ttf">MAG_VAR</td>
+ <td>Magnetic variation (degrees) (x.x)</td>
</tr><tr>
- <td class="ttf">DD</td>
- <td>Day of the month (1-31)</td>
- </tr><tr>
<td class="ttf">MM</td>
<td>Month of the year (1-12)</td>
</tr><tr>
+ <td class="ttf">POS_STAT</td>
+ <td>Position status. (A = Data valid, V = Data invalid)</td>
+ </tr><tr>
+ <td class="ttf">SAT_USED</td>
+ <td>Number of Satellites used in solution</td>
+ </tr><tr>
+ <td class="ttf">SPD</td>
+ <td>Speed over ground. (knots) (x.x)</td>
+ </tr><tr>
+ <td class="ttf">UTC</td>
+ <td>Time of day on UTC timescale. Hours, minutes and seconds [fraction (opt.)] (hhmmss[.fff])</td>
+ </tr><tr>
<td class="ttf">YYYY</td>
<td>Year</td>
</tr><tr>
+ <td class="ttf">WEEK</td>
+ <td>GPS week (0-1023)</td>
+ </tr><tr>
+ <td class="ttf">WSEC</td>
+ <td>Seconds since start of week (0-604799)</td>
+ </tr><tr>
+ <td class="ttf">LEAP</td>
+ <td>GPS leap seconds, that is, seconds ahead of UTC</td>
+ </tr><tr>
<td class="ttf">AA.BB</td>
<td>Denotes the signal strength (should be < 05.00)</td>
</tr><tr>
@@ -181,6 +209,36 @@
</tbody></table></p>
+ <h4><a name="talkerids"/>NMEA Talker IDs</h4>
+
+ <p>
+ GNSS receivers use a distinct talker ID for the GNSS they
+ process. Receivers capable of tracking different systems at the same time
+ can emit <tt>$GPRMC</tt> (GPS), <tt>$GLRMC</tt> (GLONASS),
+ <tt>$GARMC</tt> (Galileo), <tt>$GNRMC</tt> (generic/combined) and others
+ all in one data stream.
+ </p><p>
+ The driver supports this to a certain degree by ignoring the
+ talker ID on the standard sentences RMC, GLL, GGA, ZDA and ZDG. (It
+ possibly should not do that on the latter, but for now, that's the way
+ it is.) So whenever <tt>$GPRMC</tt> is mentioned in this document,
+ substitute any possible talker ID your receiver might emit -- it will
+ still match.
+ </p><p>
+ This approach has a drawback. It is easy to use for single-system
+ receivers, but it cannot separate the data streams for multi-system
+ receiver modules. It is therefore undefined which GNSS actually
+ provides the data, and this can lead to strange behavior. This is
+ especially true if the different GNSS provide very different signal
+ quality to the receiver; the driver is not able to cherry-pick the best
+ source and might actually end up in using the worst available. It is
+ therefore recommended to set up such a receiver to either use just a
+ single GNSS (which would defeat its purpose) or to emit only the
+ combined data, which usually has the <tt>GN</tt> talker ID defined by
+ the NMEA standard.
+ <p>
+
+
<h4>The 'mode' byte</h4>
<p>
@@ -202,7 +260,7 @@
<td align="center">0</td>
<td align="center">1</td>
<td align="center">1</td>
- <td>process <tt>$GPMRC</tt></td>
+ <td>process <tt>$GPRMC</tt></td>
</tr><tr>
<td align="center">1</td>
<td align="center">2</td>
@@ -259,9 +317,14 @@
<td align="center">0x100</td>
<td>process <tt>$PGRMF</tt></td>
</tr><tr>
- <td align="center">9-15</td>
+ <td align="center">9</td>
+ <td align="center">512</td>
+ <td align="center">0x200</td>
+ <td>process <tt>$PUBX,04</tt></td>
+ </tr><tr>
+ <td align="center">10-15</td>
<td align="center"></td>
- <td align="center">0xFE00</td>
+ <td align="center">0xFC00</td>
<td>reserved - leave 0</td>
</tr><tr>
<td align="center">16</td>
@@ -269,6 +332,24 @@
<td align="center">0x10000</td>
<td>Append extra statistics to the clockstats line.
Details below.</td>
+ </tr><tr>
+ <td align="center">17</td>
+ <td align="center">131072</td>
+ <td align="center">0x20000</td>
+ <td>"Silent PPS" mode. Use the PPS channel (if enabled with
+ fudge flag 1) to get precise receive time stamps.
+ Do <em>not</em> set the PPS flag in the clock status, so the
+ clock is not considered as PPS peer.
+ </td>
+ </tr><tr>
+ <td align="center">18</td>
+ <td align="center">262144</td>
+ <td align="center">0x40000</td>
+ <td>Trust the date delivered via NMEA. Do this only if
+ you <em>really</em> trust the receiver!
+ See <a href="#datetrust">below</a>. <strong>Caveat:</strong>
+ This (hitherto undocumented) bit has moved!
+ </td>
</tr>
</tbody></table>
@@ -291,7 +372,7 @@
</li></ul>
The driver uses 4800 bits per second by default, but faster bitrates can
be selected using bits 4 to 6 of the mode field.
- <p></p>
+ </p>
<p>
<strong>Caveat:</strong> Using higher line speeds does not necessarily
@@ -306,6 +387,29 @@
linespeed of 4800 bps or 9600 bps.
</p>
+ <h4><a name="datetrust"/>About distrusting NMEA date stamps</h4>
+ <p>
+ Trusting the calendar dates delivered via NMEA is a risky thing, and by
+ default these dates are handled with a huge dose of skepticism. Many
+ receivers deliver a correct calendar date for a period of just 1024 weeks,
+ with a starting point baked somewhere into their firmware. Beyond that,
+ they warp back to the begin of their era and simply provide wrong date
+ information. To battle this widely observed effect, the date delivered is
+ by default reduced to GPS time again and then (re-)mapped according to the
+ base date, either the implicit value or the value set via "tos basedate".
+ If the receiver can <em>really</em> be trusted to deliver the right date
+ (which is not impossible, just more expensive for the manufacturer), then
+ mode bit 18 can be used to bypass the era mapping. Setting this bit is
+ not needed under most circumstances, and setting it with an unreliable
+ receiver can have severe effects. Handle with care.
+ </p><p>
+ <strong>Note:</strong> This functionality was available for some time as
+ undocumented feature, with a different bit value. It was moved in the
+ process of becoming officially acknowledged to avoid excessive scattering
+ of the mode bit mask.
+ </p>
+
+
<h4>Monitor Data</h4>
<p>The last GPS sentence that is accepted or rejected is written to the
--- contrib/ntp/html/drivers/driver29.html.orig
+++ contrib/ntp/html/drivers/driver29.html
@@ -11,7 +11,7 @@
<body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
<h1><font size="+2">Trimble Palisade and Thunderbolt Receivers</font>
<p>Last update:
- <!-- #BeginDate format:En2m -->21-Oct-2010 23:44<!-- #EndDate -->
+ <!-- #BeginDate format:En2m -->13-Sep-2019 08:07<!-- #EndDate -->
UTC</p>
<hr>
</h1>
@@ -69,13 +69,28 @@
</td>
<td><b>9600 baud, 8-bits, 1-stop, no parity</b></td>
</tr>
+ <tr>
+ <td>
+ <div align="right">
+ <tt><font size="+1">Serial I/O (Copernicus II):</font></tt></div>
+ </td>
+ <td><b>38400 baud, 8-bits, 1-stop, no parity</b></td>
+ </tr>
</table>
<h2><font size="+1">Description</font></h2>
The <b>refclock_palisade</b> driver supports <a href="http://www.trimble.com/products/ntp">Trimble Navigation's Palisade Smart Antenna GPS receiver</a>.<br>
Additional software and information about the Palisade GPS is available from: <a href="http://www.trimble.com/oem/ntp">http://www.trimble.com/oem/ntp</a>.<br>
Latest NTP driver source, executables and documentation is maintained at: <a href="ftp://ftp.trimble.com/pub/ntp">ftp://ftp.trimble.com/pub/ntp</a>
- <p>This documentation describes version 7.12 of the GPS Firmware and version 2.46 (July 15, 1999) and later, of the driver source.<br> </p>
+ <p>This documentation describes version 7.12 of the GPS Firmware and version 2.46 (July 15, 1999) and later, of the driver source.</p>
<p>This documentation describes version 1 of the Thunderbolt Receiver Firmware, no tests have been made on further firmwares, please read "Notes on the Thunderbolt Receiver's Firmware" at the end of this documentation for more information.</p>
+ <p>This driver also supports the following receivers:</p>
+ <blockquote>
+ <p>Endrun Technologies Praecis NTP server with GPS</p>
+ <p>Trimble Acutime Gold smart antenna</p>
+ <p>Trimble Resolution family</p>
+ <p>Trimble ACE III</p>
+ <p>Trimble Copernicus II</p>
+ </blockquote>
<h2><font size="+1">Operating System Compatibility</font></h2>
The Palisade driver has been tested on the following software and hardware platforms:<br>
<center>
@@ -118,7 +133,7 @@
</tr>
</table>
</center><P>
- <b>Attention</b>: Thunderbolt Receiver has not being tested on the previous software and hardware plataforms.
+ <b>Attention</b>: Other receiver types have not being tested on the previous software and hardware plataforms.
<h2><font size="+1">GPS Receiver</font></h2>
The Palisade GPS receiver is an 8-channel smart antenna, housing the GPS receiver, antenna and interface in a single unit, and is designed for rooftop deployment in static timing applications.
<p>Palisade generates a PPS synchronized to UTC within +/- 100 ns. The Palisade's external event input with 40 nanosecond resolution is utilized by the Palisade NTP driver for asynchronous precision time transfer.</p>
@@ -232,7 +247,41 @@
<tt># and set flag2 to turn off event polling.</tt><br>
<tt><a href="#flag2">fudge 127.127.29.0 flag2 1</a></tt><br>
<tt>#------------------------------------------------------------------------------</tt><br> </p>
- Currently the Thunderbolt mode doesn't support event polling, the reasons are explained on the "Notes on the Thunderbolt Receiver's Firmware" section at the end of this documentation.
+
+ <h4>Resolution NTP Configuration file</h4>
+ <tt>#------------------------------------------------------------------------------</tt>
+ <p>Configuration without event polling:<br>
+ <tt>#------------------------------------------------------------------------------</tt><br>
+ <tt># The Primary reference</tt><br>
+ <tt>server 127.127.29.0 mode 5 # Trimble Resolution GPS (Stratum 1).</tt><br>
+ <tt># Set packet delay</tt><br>
+ <tt><a href="#time1">fudge 127.127.29.0 time1 0.410</a></tt><br>
+ <tt># and set flag2 to turn off event polling.</tt><br>
+ <tt><a href="#flag2">fudge 127.127.29.0 flag2 1</a></tt><br>
+ <tt>#------------------------------------------------------------------------------</tt><br> </p>
+
+ <h4>ACE III NTP Configuration file</h4>
+ <tt>#------------------------------------------------------------------------------</tt>
+ <p>Configuration with event polling:<br>
+ <tt>#------------------------------------------------------------------------------</tt><br>
+ <tt># The Primary reference</tt><br>
+ <tt>server 127.127.29.0 mode 6 # Trimble ACE III GPS (Stratum 1).</tt><br>
+ <tt># Set packet delay</tt><br>
+ <tt><a href="#time1">fudge 127.127.29.0 time1 0.720</a></tt><br>
+ <tt>#------------------------------------------------------------------------------</tt><br> </p>
+
+ <h4>Copernicus II NTP Configuration file</h4>
+ <tt>#------------------------------------------------------------------------------</tt>
+ <p>Configuration without event polling:<br>
+ <tt>#------------------------------------------------------------------------------</tt><br>
+ <tt># The Primary reference</tt><br>
+ <tt>server 127.127.29.0 mode 7 # Trimble Copernicus II GPS (Stratum 1).</tt><br>
+ <tt># Set packet delay</tt><br>
+ <tt><a href="#time1">fudge 127.127.29.0 time1 0.240</a></tt><br>
+ <tt># and set flag2 to turn off event polling.</tt><br>
+ <tt><a href="#flag2">fudge 127.127.29.0 flag2 1</a></tt><br>
+ <tt>#------------------------------------------------------------------------------</tt><br> </p>
+ Currently the Thunderbolt mode doesn't support event polling, the reasons are explained on the "Notes on the Thunderbolt Receiver's Firmware" section at the end of this documentation. The Resolution and Copernicus II modes require event polling to be disabled whereas the ACE III requires polling to be enabled.
<h2><a name="TimeTransfer"></a><font size="+1">Time Transfer and Polling</font></h2>
Time transfer to the NTP host is performed via the Palisade's comprehensive time packet output. The time packets are output once per second, and whenever an event timestamp is requested.
<p>The driver requests an event time stamp at the end of each polling interval, by pulsing the RTS (request to send) line on the serial port. The Palisade GPS responds with a time stamped event packet.</p>
@@ -269,7 +318,16 @@
<h2><font size="+1">Mode Parameter</font></h2>
<dl>
<dt><tt><font size="+1">mode <i>number</i></font></tt>
- <dd>The mode parameter to the server command specifies the specific hardware this driver is for. The default is 0 for a normal Trimble Palisade. The other options are <b>1</b> for an <b>Endrun Praecis</b> in Trimble emulation mode, and <b>2</b> for the <b>Trimble Thunderbolt</b> GPS Disciplined Clock Receiver.
+ <dd>
+ The mode parameter to the server command specifies the specific hardware this driver is for. The default is 0 for a normal Trimble Palisade. The other options are:
+ <blockquote>
+ <p><b>1</b> for an <b>Endrun Praecis</b> in Trimble emulation mode</p>
+ <p><b>2</b> for the <b>Trimble Thunderbolt</b> GPS Disciplined Clock Receiver</p>
+ <p><b>3</b> for the <b>Acutime Gold</b> smart antenna</p>
+ <p><b>5</b> for <b>Trimble Resolution</b> devices</p>
+ <p><b>6</b> for the <b>Trimble ACE III</b> board</p>
+ <p><b>7</b> for the <b>Trimble Copernicus II</b> device</p>
+ </blockquote>
</dl>
<h2><font size="+1">DEFINEs</font></h2>
The following constants are defined in the driver source code. These defines may be modified to improve performance or adapt to new operating systems.<br>
@@ -291,16 +349,16 @@
<td>1 microsecond</td>
</tr>
<tr>
- <td>CURRENT_UTC</td>
- <td>Valid GPS - UTC offset</td>
- <td>13</td>
- </tr>
- <tr>
<td>SPEED232</td>
<td>Host RS-232 baud rate</td>
<td>B9600</td>
</tr>
<tr>
+ <td>SPEED232COP</td>
+ <td>Host RS-232 baud rate (Copernicus II mode)</td>
+ <td>B38400</td>
+ </tr>
+ <tr>
<td>TRMB_MINPOLL </td>
<td>Minimum polling interval</td>
<td>5 (32 seconds)</td>
--- contrib/ntp/html/miscopt.html.orig
+++ contrib/ntp/html/miscopt.html
@@ -10,7 +10,7 @@
<img src="pic/boom3.gif" alt="gif" align="left"><a href="http://www.eecis.udel.edu/~mills/pictures.html">from <i>Pogo</i>, Walt Kelly</a>
<p>We have three, now looking for more.</p>
<p>Last update:
- <!-- #BeginDate format:En2m -->14-Oct-2017 08:34<!-- #EndDate -->
+ <!-- #BeginDate format:En2m -->11-Feb-2020 14:00<!-- #EndDate -->
UTC</p>
<br clear="left">
<h4>Related Links</h4>
@@ -63,8 +63,9 @@
<dd>This command allows additional configuration commands to be included from a separate file. Include files may be nested to a depth of five; upon reaching the end of any include file, command processing resumes in the previous configuration file. This option is useful for sites that run <tt>ntpd</tt> on multiple hosts, with (mostly) common options (e.g., a restriction list).</dd>
<dt id="interface"><tt>interface [listen | ignore | drop] [all | ipv4 | ipv6 | wildcard | <i>name</i> | <i>address</i>[/<i>prefixlen</i>]]</tt></dt>
<dd>This command controls which network addresses <tt>ntpd</tt> opens, and whether input is dropped without processing. The first parameter determines the action for addresses which match the second parameter. That parameter specifies a class of addresses, or a specific interface name, or an address. In the address case, <tt><i>prefixlen</i></tt> determines how many bits must match for this rule to apply. <tt>ignore</tt> prevents opening matching addresses, <tt>drop</tt> causes <tt>ntpd</tt> to open the address and drop all received packets without examination. Multiple <tt>interface</tt> commands can be used. The last rule which matches a particular address determines the action for it. <tt>interface</tt> commands are disabled if any <a href="ntpd.html#--interface"><tt>-I</tt></a>, <a href="ntpd.html#--interface"><tt>--interface</tt></a>, <a href="ntpd.html#--novirtualips"><tt>-L</tt></a>, or <a href="ntpd.html#--novirtualips"><tt>--novirtualips</tt></a> command-line options are used. If none of those options are used and no <tt>interface</tt> actions are specified in the configuration file, all available network addresses are opened. The <tt>nic</tt> command is an alias for <tt>interface</tt>.</dd>
- <dt id="leapfile"><tt>leapfile <i>leapfile</i></tt></dt>
- <dd>This command loads the IERS leapseconds file and initializes the leapsecond values for the next leapsecond time, expiration time and TAI offset. The file can be obtained directly from the IERS at <a href="https://hpiers.obspm.fr/iers/bul/bulc/ntp/leap-seconds.list">https://hpiers.obspm.fr/iers/bul/bulc/ntp/leap-seconds.list</a> or <a href="ftp://hpiers.obspm.fr/iers/bul/bulc/ntp/leap-seconds.list">ftp://hpiers.obspm.fr/iers/bul/bulc/ntp/leap-seconds.list</a>.</dd>
+ <dt id="leapfile"><tt>leapfile <i>leapfile</i> [checkhash|ignorehash]</tt></dt>
+ <dd>This command loads the IERS leapseconds file and initializes the leapsecond values for the next leapsecond time, expiration time and TAI offset. The file can be obtained directly from the IERS at <a href="https://hpiers.obspm.fr/iers/bul/bulc/ntp/leap-seconds.list">https://hpiers.obspm.fr/iers/bul/bulc/ntp/leap-seconds.list</a> or <a href="ftp://hpiers.obspm.fr/iers/bul/bulc/ntp/leap-seconds.list">ftp://hpiers.obspm.fr/iers/bul/bulc/ntp/leap-seconds.list</a>.
+ <tt>ignorehash</tt> instructs <tt>ntpd</tt> to ignore the hash signature on the file, <tt>checkhash</tt> (which is the default when omitted) needs a hash line in the file to be valid. Files without any hash signature are lodaed in both cases.</dd>
<dd>The <i>leapfile</i> is scanned when <tt>ntpd</tt> processes the <tt>leapfile</tt> directive or when <tt>ntpd</tt> detects that <i>leapfile</i> has changed. <tt>ntpd</tt> checks once a day to see if the <i>leapfile</i> has changed.</dd>
<dd>While not strictly a security function, the Autokey protocol provides means to securely retrieve the current or updated leapsecond values from a server.</dd>
<dt id="leapsmearinterval"><tt>leapsmearinterval <i>seconds</i></tt></dt>
@@ -108,6 +109,24 @@
For the ACTS modem driver (type 18), the arguments consist of a maximum of 10 telephone numbers used to dial USNO, NIST or European time services.
For the JJY driver (type 40 mode 100 - 180), the argument is one telephone number used to dial the telephone JJY service.
The Hayes command ATDT is normally prepended to the number, which can contain other modem control codes as well.</dd>
+ <dt id="pollskewlist"
+ ><tt>pollskewlist</tt> <tt>[</tt><i>poll</i> <i>value</i><tt>
+ | </tt><i>value</i><tt>]</tt> <tt>...</tt> <tt>[default </tt><i>value</i><tt>
+ | </tt><i>value</i><tt>]</tt></dt>
+<dd>Enable skewing of our poll requests to our servers.
+<i>poll</i>
+is a number between 3 and 17 inclusive, identifying a specific poll interval.
+A poll interval is 2^n seconds in duration,
+so a poll value of 3 corresponds to 8 seconds
+and
+a poll interval of 17 corresponds to
+131,072 seconds, or about a day and a half.
+The next two numbers must be between 0 and one-half of the poll interval,
+inclusive.
+The first number specifies how early the poll may start,
+while
+the second number specifies how late the poll may be delayed.
+With no arguments, internally specified default values are chosen.</dd>
<dt id="reset"><tt>reset [allpeers] [auth] [ctl] [io] [mem] [sys] [timer]</tt></dt>
<dd>Reset one or more groups of counters maintained by ntpd and exposed by <tt>ntpq</tt> and <tt>ntpdc</tt>.</dd>
<dt id="rlimit"><tt>rlimit [memlock <i>Nmegabytes</i> | stacksize <i>N4kPages</i> | filenum <i>Nfiledescriptors</i>]</tt></dt>
@@ -147,12 +166,16 @@
<dd>Specifies the stepout threshold in seconds. The default without this command is 300 s. Since this option also affects the training and startup intervals, it should not be set less than the default. Further details are on the <a href="clock.html">Clock State Machine</a> page.</dd>
</dl>
</dd>
- <dt id="tos"><tt>tos [basedate <i>date<i> | bcpollbstep <i>poll-gate</i> | beacon <i>beacon</i> | ceiling <i>ceiling</i> | cohort {0 | 1} | floor <i>floor</i> | maxclock <i>maxclock </i>| maxdist <i>maxdist</i> | minclock <i>minclock</i> | mindist <i>mindist </i>| minsane <i>minsane</i> | orphan <i>stratum</i> | orphanwait <em>delay</em>]</tt></dt>
+ <dt id="tos"><tt>tos [basedate <i>date</i> | bcpollbstep <i>poll-gate</i> | beacon <i>beacon</i> | ceiling <i>ceiling</i> | cohort {0 | 1} | floor <i>floor</i> | maxclock <i>maxclock </i>| maxdist <i>maxdist</i> | minclock <i>minclock</i> | mindist <i>mindist </i>| minsane <i>minsane</i> | orphan <i>stratum</i> | orphanwait <em>delay</em>]</tt></dt>
<dd>This command alters certain system variables used by the the clock selection and clustering algorithms. The default values of these variables have been carefully optimized for a wide range of network speeds and reliability expectations. Very rarely is it necessary to change the default values; but, some folks can't resist twisting the knobs. It can be used to select the quality and quantity of peers used to synchronize the system clock and is most useful in dynamic server discovery schemes. The options are as follows:</dd>
<dd>
<dl>
<dt><tt>basedate <i>date</i></tt></dt>
- <dd>Set NTP era anchor. <tt><i>date</i></tt> is either a date in ISO8601 format (<i>YYYY-MM-DD<i>) or an integer giving the days since 1900-01-01, the start of the NTP epoch. <tt>ntpd</tt> will clamp the system time to an era starting with the begin of this this day (00:00:00Z), covering a range of 2<sup>32</sup> seconds or roughly 136 years. The default is the begin of the UNIX epoch, 1970-01-01.</dd>
+ <dd>Set NTP and GPS era anchor. <tt><i>date</i></tt> is either a date in ISO8601 format (<i>YYYY-MM-DD</i>) or an integer giving the days since 1900-01-01, the start of the NTP epoch. <tt>ntpd</tt> will clamp the system time to an era starting with the begin of this this day (00:00:00Z), covering a range of 2<sup>32</sup> seconds or roughly 136 years. The lowest accepted value is effectively 1970-01-02.<br>
+ The GPS era base is the next Sunday on or following the base date, but obviously not before 1980-01-06. GPS time stamps are mapped into the 1024 weeks following the GPS base.<br>
+ The default value is derived from the repository or build time stamp, minus 11 days. 1970-01-02 was chosen as lower bound so the <em>local</em> time is always after 1970-01-01,00:00. Some systems get into trouble if this is not the case.<p>
+ <b><u>ATTENTION:</u></b> If the system clock is before the effective (implied or specific) basedate, the system clock will be set to the base date once and immediately when <tt>ntpd</tt> starts. This helps systems that have lost time completely to recover. Though not noticeable under normal conditions, it <em>can</em> happen. Check the logs if starting <tt>ntpd</tt> causes sudden clock moves.
+ </dd>
<dt><tt>bcpollbstep <i>poll-gate</i></tt></dt>
<dd>This option will cause the client to delay believing backward time steps from a broadcast server for <tt>bcpollbstep</tt> poll intervals. NTP Broadcast networks are expected to be trusted, and if the server's time gets stepped backwards then it's desireable that the clients follow this change as soon as possible. However, in spite of various protections built-in to the broadcast protocol, it is possible that an attacker could perform a carefully-constructed replay attack and cause clients to erroneously step their clocks backward. If the risk of a successful broadcast replay attack is greater than the risk of the clients being out of sync in the event that there is a backward step on the broadcast time servers, this option may be used to cause the clients to delay beliveving backward time steps until <i>poll-gate</i> consecutive polls have been received. The default is 0, which means the client will accept these steps upon receipt. Any value from 0 to 4 can be specified.</dd>
<dt><tt>beacon <i>beacon</i></tt></dt>
--- contrib/ntp/include/Makefile.am.orig
+++ contrib/ntp/include/Makefile.am
@@ -25,6 +25,7 @@
ntp.h \
ntp_assert.h \
ntp_calendar.h \
+ ntp_calgps.h \
ntp_cmdargs.h \
ntp_config.h \
ntp_control.h \
@@ -46,6 +47,7 @@
ntp_md5.h \
ntp_net.h \
ntp_proto.h \
+ ntp_psl.h \
ntp_random.h \
ntp_refclock.h \
ntp_request.h \
@@ -76,6 +78,7 @@
timespecops.h \
timetoa.h \
timevalops.h \
+ timexsup.h \
trimble.h \
vint64ops.h \
$(NULL)
--- contrib/ntp/include/Makefile.in.orig
+++ contrib/ntp/include/Makefile.in
@@ -511,6 +511,7 @@
ntp.h \
ntp_assert.h \
ntp_calendar.h \
+ ntp_calgps.h \
ntp_cmdargs.h \
ntp_config.h \
ntp_control.h \
@@ -532,6 +533,7 @@
ntp_md5.h \
ntp_net.h \
ntp_proto.h \
+ ntp_psl.h \
ntp_random.h \
ntp_refclock.h \
ntp_request.h \
@@ -562,6 +564,7 @@
timespecops.h \
timetoa.h \
timevalops.h \
+ timexsup.h \
trimble.h \
vint64ops.h \
$(NULL)
--- contrib/ntp/include/ntp.h.orig
+++ contrib/ntp/include/ntp.h
@@ -359,6 +359,7 @@
l_fp aorg; /* origin timestamp */
l_fp borg; /* alternate origin timestamp */
l_fp bxmt; /* most recent broadcast transmit timestamp */
+ l_fp nonce; /* Value of nonce we sent as the xmt stamp */
double offset; /* peer clock offset */
double delay; /* peer roundtrip delay */
double jitter; /* peer jitter (squares) */
@@ -466,6 +467,7 @@
# define FLAG_ASSOC 0x8000 /* autokey request */
#endif /* OPENSSL */
#define FLAG_TSTAMP_PPS 0x10000 /* PPS source provides absolute timestamp */
+#define FLAG_LOOPNONCE 0x20000 /* Use a nonce for the loopback test */
/*
* Definitions for the clear() routine. We use memset() to clear
@@ -841,6 +843,7 @@
u_short rflags; /* restrict (accesslist) flags */
u_short mflags; /* match flags */
short ippeerlimit; /* IP peer limit */
+ int srvfuzrftpoll; /* server response: fuzz reftime */
u_long expire; /* valid until time */
union { /* variant starting here */
res_addr4 v4;
@@ -885,13 +888,16 @@
#define RES_MSSNTP 0x1000 /* enable MS-SNTP authentication */
#define RES_FLAKE 0x2000 /* flakeway - drop 10% */
#define RES_NOMRULIST 0x4000 /* mode 6 mrulist denied */
-#define RES_UNUSED 0x8000 /* Unused flag bits */
+#define RES_SRVRSPFUZ 0x8000 /* Server response: fuzz */
+
+#define RES_UNUSED 0x0000 /* Unused flag bits (none left) */
+
#define RES_ALLFLAGS (RES_FLAGS | RES_NOQUERY | \
RES_NOMODIFY | RES_NOTRAP | \
RES_LPTRAP | RES_KOD | \
RES_MSSNTP | RES_FLAKE | \
- RES_NOMRULIST)
+ RES_NOMRULIST | RES_SRVRSPFUZ )
/*
* Match flags (mflags)
--- contrib/ntp/include/ntp_calendar.h.orig
+++ contrib/ntp/include/ntp_calendar.h
@@ -19,6 +19,8 @@
uint8_t second; /* second of minute */
uint8_t weekday; /* 0..7, 0=Sunday */
};
+typedef struct calendar TCivilDate;
+typedef struct calendar const TcCivilDate;
/* ISO week calendar date */
struct isodate {
@@ -29,6 +31,8 @@
uint8_t minute; /* minute of hour */
uint8_t second; /* second of minute */
};
+typedef struct isodate TIsoDate;
+typedef struct isodate const TcIsoDate;
/* general split representation */
typedef struct {
@@ -109,6 +113,7 @@
extern const char * const months[12];
extern const char * const daynames[7];
+extern char * ntpcal_iso8601std(char*, size_t, struct calendar const*);
extern void caljulian (uint32_t, struct calendar *);
extern uint32_t caltontp (const struct calendar *);
@@ -152,6 +157,13 @@
ntpcal_daysplit(const vint64 *);
/*
+ * Split a time stamp in seconds into elapsed weeks and elapsed seconds
+ * since start of week.
+ */
+extern ntpcal_split
+ntpcal_weeksplit(const vint64 *);
+
+/*
* Merge a number of days and a number of seconds into seconds,
* expressed in 64 bits to avoid overflow.
*/
@@ -158,6 +170,13 @@
extern vint64
ntpcal_dayjoin(int32_t /* days */, int32_t /* seconds */);
+/*
+ * Merge a number of weeks and a number of seconds into seconds,
+ * expressed in 64 bits to avoid overflow.
+ */
+extern vint64
+ntpcal_weekjoin(int32_t /* weeks */, int32_t /* seconds */);
+
/* Get the number of leap years since epoch for the number of elapsed
* full years
*/
@@ -431,7 +450,7 @@
/*
* Start day of the GPS epoch. This is the Rata Die of 1980-01-06
*/
-#define DAY_GPS_STARTS 722819
+#define DAY_GPS_STARTS 722820
/*
* Difference between UN*X and NTP epoch (25567).
@@ -467,6 +486,56 @@
*/
#define GREGORIAN_CYCLE_WEEKS (GREGORIAN_CYCLE_DAYS / 7)
-#define is_leapyear(y) (!((y) % 4) && !(!((y) % 100) && (y) % 400))
+/*
+ * Is a Greogorian calendar year a leap year? The obvious solution is to
+ * test the expression
+ *
+ * (y % 4 == 0) && ((y % 100 != 0) || (y % 400 == 0))
+ *
+ * This needs (in theory) 2 true divisions -- most compilers check the
+ * (mod 4) condition by doing a bit test. Some compilers have been
+ * even observed to partially fuse the (mod 100) and (mod 400) test,
+ * but there is an alternative formula that gives the compiler even
+ * better chances:
+ *
+ * (y % 4 == 0) && ((y % 16 == 0) || (y % 25 != 0))
+ *
+ * The order of checks is chosen so that the shorcut evaluation can fix
+ * the result as soon as possible. And the compiler has to do only one
+ * true division here -- the (mod 4) and (mod 16) can be done with
+ * direct bit tests. *If* the compiler chooses to do so.
+ *
+ * The deduction is as follows: rewrite the standard formula as
+ * (y % 4 == 0) && ((y % 4*25 != 0) || (y % 16*25 == 0))
+ *
+ * then split the congruences:
+ * (y % 4 == 0) && ((y % 4 != 0 || y % 25 != 0) || (y % 16 == 0 && y % 25 == 0))
+ *
+ * eliminate the 1st inner term, as it is provably false:
+ * (y % 4 == 0) && (y % 25 != 0 || (y % 16 == 0 && y % 25 == 0))
+ *
+ * Use the distributive laws on the second major group:
+ * (y % 4 == 0) && ((y % 25 != 0 || y % 16 == 0) && (y % 25 != 0 || y % 25 == 0))
+ *
+ * Eliminate the constant term, reorder, and voila:
+ */
+static inline int
+is_leapyear(int32_t y) {
+ return !(y % 4) && (!(y % 16) || (y % 25));
+}
+/* The (mod 4) test eliminates 3/4 (or 12/16) of all values.
+ * The (mod 16) test eliminates another 1/16 of all values.
+ * 3/16 of all values reach the final division.
+ * Assuming that the true division is the most costly operation, this
+ * sequence should give most bang for the buck.
+ */
+
+/* misc */
+extern int u32mod7(uint32_t x);
+extern int i32mod7(int32_t x);
+extern uint32_t i32fmod(int32_t x, uint32_t d);
+
+extern int32_t ntpcal_expand_century(uint32_t y, uint32_t m, uint32_t d, uint32_t wd);
+
#endif
--- contrib/ntp/include/ntp_calgps.h.orig
+++ contrib/ntp/include/ntp_calgps.h
@@ -0,0 +1,151 @@
+/*
+ * ntp_calgps.h - calendar for GPS/GNSS based clocks
+ *
+ * Written by Juergen Perlinger (perlinger@ntp.org) for the NTP project.
+ * The contents of 'html/copyright.html' apply.
+ *
+ * --------------------------------------------------------------------
+ *
+ * This module implements stuff often used with GPS/GNSS receivers
+ */
+#ifndef NTP_CALGPS_H
+#define NTP_CALGPS_H
+
+#include <time.h>
+
+#include "ntp_types.h"
+#include "ntp_fp.h"
+#include "ntp_calendar.h"
+
+/* GPS week calendar (extended weeks)
+ * We use weeks based on 1899-31-12, which was the last Sunday before
+ * the begin of the NTP epoch. (Which is equivalent to saying 1900-01-01
+ * was a Monday...)
+ *
+ * We simply pre-calculate the offsets and cycle shifts for the real GPS
+ * calendar, which starts at 1980-01-06, to simplyfy some expressions.
+ *
+ * This has a fringe benefit that should not be overlooked: Since week zero
+ * is around 1900, and we should never have to deal with dates before
+ * 1970 or 1980, a week number of zero can be easily used to indicate
+ * an invalid week time stamp.
+ */
+#define GPSNTP_WSHIFT 4175 /* weeks 1899-31-12 --> 1980-01-06 */
+#define GPSNTP_WCYCLE 79 /* above, modulo 1024 */
+#define GPSNTP_DSHIFT 1 /* day number of 1900-01-01 in week */
+
+struct gpsdatum {
+ uint32_t weeks; /* weeks since GPS epoch */
+ int32_t wsecs; /* seconds since week start */
+ uint32_t frac; /* fractional seconds */
+};
+typedef struct gpsdatum TGpsDatum;
+typedef struct gpsdatum const TcGpsDatum;
+
+/* NTP date/time in split representation */
+struct ntpdatum {
+ uint32_t days; /* since NTP epoch */
+ int32_t secs; /* since midnight, denorm is ok */
+ uint32_t frac; /* fractional seconds */
+};
+typedef struct ntpdatum TNtpDatum;
+typedef struct ntpdatum const TcNtpDatum;
+
+/*
+ * GPS week/sec calendar functions
+ *
+ * see the implementation for details, especially the
+ * 'gpscal_from_weektime{1,2}()'
+ */
+
+extern TGpsDatum
+gpscal_fix_gps_era(TcGpsDatum *);
+
+extern void
+gpscal_add_offset(TGpsDatum *datum, l_fp offset);
+
+extern TGpsDatum
+gpscal_from_calendar_ex(TcCivilDate*, l_fp fofs, int/*BOOL*/ warp);
+
+static inline TGpsDatum
+gpscal_from_calendar(TcCivilDate *pCiv, l_fp fofs) {
+ return gpscal_from_calendar_ex(pCiv, fofs, TRUE);
+}
+
+extern TGpsDatum /* see source for semantic of the 'fofs' value! */
+gpscal_from_gpsweek(uint16_t w, int32_t s, l_fp fofs);
+
+extern TGpsDatum
+gpscal_from_weektime1(int32_t wsecs, l_fp fofs, l_fp pivot);
+
+extern TGpsDatum
+gpscal_from_weektime2(int32_t wsecs, l_fp fofs, TcGpsDatum *pivot);
+
+extern void
+gpscal_to_calendar(TCivilDate*, TcGpsDatum*);
+
+extern TGpsDatum
+gpscal_from_gpsntp(TcNtpDatum*);
+
+extern l_fp
+ntpfp_from_gpsdatum(TcGpsDatum *);
+
+/*
+ * NTP day/sec calendar functions
+ *
+ * see the implementation for details, especially the
+ * 'gpscal_from_daytime{1,2}()'
+ */
+extern TNtpDatum
+gpsntp_fix_gps_era(TcNtpDatum *);
+
+extern void
+gpsntp_add_offset(TNtpDatum *datum, l_fp offset);
+
+extern TNtpDatum
+gpsntp_from_calendar_ex(TcCivilDate*, l_fp fofs, int/*BOOL*/ warp);
+
+static inline TNtpDatum
+gpsntp_from_calendar(TcCivilDate * pCiv, l_fp fofs) {
+ return gpsntp_from_calendar_ex(pCiv, fofs, TRUE);
+}
+
+extern TNtpDatum
+gpsntp_from_daytime1_ex(TcCivilDate *dt, l_fp fofs, l_fp pivot, int/*BOOL*/ warp);
+
+static inline TNtpDatum
+gpsntp_from_daytime1(TcCivilDate *dt, l_fp fofs, l_fp pivot) {
+ return gpsntp_from_daytime1_ex(dt, fofs, pivot, TRUE);
+}
+
+extern TNtpDatum
+gpsntp_from_daytime2_ex(TcCivilDate *dt, l_fp fofs, TcNtpDatum *pivot, int/*BOOL*/ warp);
+
+static inline TNtpDatum
+gpsntp_from_daytime2(TcCivilDate *dt, l_fp fofs, TcNtpDatum *pivot) {
+ return gpsntp_from_daytime2_ex(dt, fofs, pivot, TRUE);
+}
+
+extern TNtpDatum
+gpsntp_from_gpscal_ex(TcGpsDatum*, int/*BOOL*/ warp);
+
+static inline TNtpDatum
+gpsntp_from_gpscal(TcGpsDatum *wd) {
+ return gpsntp_from_gpscal_ex(wd, FALSE);
+}
+
+extern void
+gpsntp_to_calendar(TCivilDate*, TcNtpDatum*);
+
+extern l_fp
+ntpfp_from_ntpdatum(TcNtpDatum*);
+
+/*
+ * Some helpers
+ */
+
+/* apply fudge to time stamp: *SUBTRACT* the given offset from an l_fp*/
+extern l_fp
+ntpfp_with_fudge(l_fp lfp, double ofs);
+
+#endif /*!defined(NTP_CALGPS_H)*/
--- contrib/ntp/include/ntp_config.h.orig
+++ contrib/ntp/include/ntp_config.h
@@ -6,6 +6,7 @@
#endif /* HAVE_SYS_RESOURCE_H */
#include "ntp_machine.h"
+#include "ntp_psl.h"
#include "ntpsim.h"
@@ -68,12 +69,13 @@
attr_val * link;
int attr;
int type; /* T_String, T_Integer, ... */
+ int flag; /* auxiliary flags */
union val {
- int i;
- u_int u;
- int_range r;
- double d;
- char * s;
+ double d; /* T_Double */
+ int i; /* T_Integer */
+ int_range r; /* T_Intrange */
+ char * s; /* T_String */
+ u_int u; /* T_U_int */
} value;
};
@@ -110,9 +112,10 @@
restrict_node * link;
address_node * addr;
address_node * mask;
- int_fifo * flag_tok_fifo;
+ attr_val_fifo * flag_tok_fifo;
int line_no;
short ippeerlimit;
+ short srvfuzrft;
};
typedef DECL_FIFO_ANCHOR(restrict_node) restrict_fifo;
@@ -246,6 +249,7 @@
attr_val_fifo * vars;
nic_rule_fifo * nic_rules;
int_fifo * reset_counters;
+ attr_val_fifo * pollskewlist;
sim_fifo * sim_details;
int mdnstries;
@@ -272,6 +276,23 @@
} settrap_parms;
+/*
+ * Poll Skew List
+ */
+
+psl_item psl[17-3+1]; /* values for polls 3-17 */
+ /* To simplify the runtime code we */
+ /* don't want to have to special-case */
+ /* dealing with a default */
+
+
+/*
+** Data Minimization Items
+*/
+
+/* Serverresponse fuzz reftime: stored in 'restrict' fifos */
+
+
/* get text from T_ tokens */
const char * token_name(int token);
@@ -298,9 +319,9 @@
void destroy_address_node(address_node *my_node);
attr_val *create_attr_dval(int attr, double value);
attr_val *create_attr_ival(int attr, int value);
+attr_val *create_attr_rval(int attr, int first, int last);
+attr_val *create_attr_sval(int attr, const char *s);
attr_val *create_attr_uval(int attr, u_int value);
-attr_val *create_attr_rangeval(int attr, int first, int last);
-attr_val *create_attr_sval(int attr, const char *s);
void destroy_attr_val(attr_val *node);
filegen_node *create_filegen_node(int filegen_token,
attr_val_fifo *options);
@@ -308,7 +329,7 @@
restrict_node *create_restrict_node(address_node *addr,
address_node *mask,
short ippeerlimit,
- int_fifo *flags, int line_no);
+ attr_val_fifo *flags, int line_no);
int_node *create_int_node(int val);
addr_opts_node *create_addr_opts_node(address_node *addr,
attr_val_fifo *options);
--- contrib/ntp/include/ntp_control.h.orig
+++ contrib/ntp/include/ntp_control.h
@@ -1,3 +1,5 @@
+#ifndef NTP_CONTROL_H
+#define NTP_CONTROL_H
/*
* ntp_control.h - definitions related to NTP mode 6 control messages
*/
@@ -190,3 +192,5 @@
#define IFSTATS_FIELDS 12
#define RESLIST_FIELDS 4
+#endif /* NTP_CONTROL_H */
+
--- contrib/ntp/include/ntp_fp.h.orig
+++ contrib/ntp/include/ntp_fp.h
@@ -344,8 +344,8 @@
/*
* Prototypes
*/
-extern char * dofptoa (u_fp, int, short, int);
-extern char * dolfptoa (u_int32, u_int32, int, short, int);
+extern char * dofptoa (u_fp, char, short, int);
+extern char * dolfptoa (u_int32, u_int32, char, short, int);
extern int atolfp (const char *, l_fp *);
extern int buftvtots (const char *, l_fp *);
--- contrib/ntp/include/ntp_io.h.orig
+++ contrib/ntp/include/ntp_io.h
@@ -84,7 +84,7 @@
extern int qos;
SOCKET move_fd(SOCKET fd);
-isc_boolean_t get_broadcastclient_flag(void);
+/*isc_boolean_t get_broadcastclient_flag(void);*/
extern void sau_from_netaddr(sockaddr_u *, const isc_netaddr_t *);
extern void add_nic_rule(nic_rule_match match_type,
const char *if_name, int prefixlen,
--- contrib/ntp/include/ntp_psl.h.orig
+++ contrib/ntp/include/ntp_psl.h
@@ -0,0 +1,17 @@
+#ifndef NTP_PSL_H
+#define NTP_PSL_H
+
+
+/*
+ * Poll Skew List Item
+ */
+
+typedef struct psl_item_tag {
+ int sub; /* int or short? unsigned is OK, but why? */
+ int qty; /* int or short? unsigned is OK, but why? */
+ int msk; /* int or short? unsigned is OK */
+} psl_item;
+
+int get_pollskew(int, psl_item *);
+
+#endif /* !defined(NTP_PSL_H) */
--- contrib/ntp/include/ntp_refclock.h.orig
+++ contrib/ntp/include/ntp_refclock.h
@@ -14,11 +14,6 @@
#include "recvbuff.h"
-#define SAMPLE(x) pp->coderecv = (pp->coderecv + 1) % MAXSTAGE; \
- pp->filter[pp->coderecv] = (x); \
- if (pp->coderecv == pp->codeproc) \
- pp->codeproc = (pp->codeproc + 1) % MAXSTAGE;
-
/*
* Macros to determine the clock type and unit numbers from a
* 127.127.t.u address
@@ -54,6 +49,7 @@
#define CLK_HAVEFLAG2 0x20
#define CLK_HAVEFLAG3 0x40
#define CLK_HAVEFLAG4 0x80
+#define CLK_HAVEMINJIT 0x100
/*
* Constant for disabling event reporting in
@@ -68,7 +64,7 @@
struct refclockstat {
u_char type; /* clock type */
u_char flags; /* clock flags */
- u_char haveflags; /* bit array of valid flags */
+ u_short haveflags; /* bit array of valid flags */
u_short lencode; /* length of last timecode */
const char *p_lastcode; /* last timecode received */
u_int32 polls; /* transmit polls */
@@ -77,6 +73,7 @@
u_int32 baddata; /* invalid data timecode received */
u_int32 timereset; /* driver resets */
const char *clockdesc; /* ASCII description */
+ double fudgeminjitter; /* configure fudge minjitter */
double fudgetime1; /* configure fudge time1 */
double fudgetime2; /* configure fudge time2 */
int32 fudgeval1; /* configure fudge value1 */
@@ -133,13 +130,12 @@
* Structure interface between the reference clock support
* ntp_refclock.c and the driver utility routines
*/
-#define MAXSTAGE 60 /* max median filter stages */
+#define MAXSTAGE 64 /* max median filter stages */
#define NSTAGE 5 /* default median filter stages */
#define BMAX 128 /* max timecode length */
#define GMT 0 /* I hope nobody sees this */
#define MAXDIAL 60 /* max length of modem dial strings */
-
struct refclockproc {
void * unitptr; /* pointer to unit structure */
struct refclock * conf; /* refclock_conf[type] */
@@ -148,6 +144,7 @@
u_char currentstatus; /* clock status */
u_char lastevent; /* last exception event */
u_char type; /* clock type */
+ u_char inpoll; /* waiting for 'refclock_receive()' */
const char *clockdesc; /* clock description */
u_long nextaction; /* local activity timeout */
void (*action)(struct peer *); /* timeout callback */
@@ -162,8 +159,8 @@
int second; /* second of minute */
long nsec; /* nanosecond of second */
u_long yearstart; /* beginning of year */
- int coderecv; /* put pointer */
- int codeproc; /* get pointer */
+ u_int coderecv; /* put pointer */
+ u_int codeproc; /* get pointer */
l_fp lastref; /* reference timestamp */
l_fp lastrec; /* receive timestamp */
double offset; /* mean offset */
@@ -176,6 +173,7 @@
*/
double fudgetime1; /* fudge time1 */
double fudgetime2; /* fudge time2 */
+ double fudgeminjitter; /* manually set lower bound for jitter */
u_char stratum; /* server stratum */
u_int32 refid; /* reference identifier */
u_char sloppyclockflag; /* fudge flags */
@@ -229,6 +227,8 @@
extern int refclock_process_f(struct refclockproc *, double);
extern void refclock_process_offset(struct refclockproc *, l_fp,
l_fp, double);
+extern int refclock_samples_avail(struct refclockproc const *);
+extern int refclock_samples_expire(struct refclockproc *, int);
extern void refclock_report (struct peer *, int);
extern int refclock_gtlin (struct recvbuf *, char *, int, l_fp *);
extern int refclock_gtraw (struct recvbuf *, char *, int, l_fp *);
@@ -235,6 +235,21 @@
extern int indicate_refclock_packet(struct refclockio *,
struct recvbuf *);
extern void process_refclock_packet(struct recvbuf *);
+
+/* save string as la_code, size==(size_t)-1 ==> ASCIIZ string */
+extern void refclock_save_lcode(
+ struct refclockproc *, char const *, size_t);
+/* format data into la_code */
+extern void refclock_format_lcode(
+ struct refclockproc *, char const *, ...);
+extern void refclock_vformat_lcode(
+ struct refclockproc *, char const *, va_list);
+
+struct refclock_atom;
+extern int refclock_ppsaugment(
+ const struct refclock_atom*, l_fp *rcvtime ,
+ double rcvfudge, double ppsfudge);
+
#endif /* REFCLOCK */
#endif /* NTP_REFCLOCK_H */
--- contrib/ntp/include/ntp_request.h.orig
+++ contrib/ntp/include/ntp_request.h
@@ -670,8 +670,10 @@
u_int32 addr; /* match address */
u_int32 mask; /* match mask */
short ippeerlimit; /* ip peer limit */
- u_short flags; /* restrict flags */
+ int srvfuzrft; /* server response fuzz reftime: poll */
+ u_short flags; /* restrict flags XXX: OLD size and name */
u_short mflags; /* match flags */
+ short unused1; /* (unused) padding for v6_flag */
u_int v6_flag; /* is this v6 or not */
struct in6_addr addr6; /* match address (v6) */
struct in6_addr mask6; /* match mask (v6) */
--- contrib/ntp/include/ntp_stdlib.h.orig
+++ contrib/ntp/include/ntp_stdlib.h
@@ -159,7 +159,7 @@
extern const char * eventstr (int);
extern const char * ceventstr (int);
extern const char * res_match_flags(u_short);
-extern const char * res_access_flags(u_short);
+extern const char * res_access_flags(u_int32);
#ifdef KERNEL_PLL
extern const char * k_st_flags (u_int32);
#endif
--- contrib/ntp/include/ntp_syslog.h.orig
+++ contrib/ntp/include/ntp_syslog.h
@@ -83,4 +83,7 @@
msyslog msl_args; \
} while (FALSE)
+extern int change_iobufs(int how);
+/* how: 0->unbuffered, 1->linebuffer, 2->full */
+
#endif /* NTP_SYSLOG_H */
--- contrib/ntp/include/ntpd.h.orig
+++ contrib/ntp/include/ntpd.h
@@ -232,7 +232,7 @@
extern double sys_maxdist;
extern char *sys_ident; /* identity scheme */
-extern void poll_update (struct peer *, u_char);
+extern void poll_update (struct peer *, u_char, u_char);
extern void clear (struct peer *);
extern void clock_filter (struct peer *, double, double, double);
@@ -282,7 +282,7 @@
/* ntp_util.c */
extern void init_util (void);
extern void write_stats (void);
-extern void stats_config (int, const char *);
+extern void stats_config (int, const char *, int optflag);
extern void record_peer_stats (sockaddr_u *, int, double, double, double, double);
extern void record_proto_stats (char *);
extern void record_loop_stats (double, double, double, double, int);
@@ -568,7 +568,7 @@
extern const char *chrootdir; /* directory to chroot() to */
#endif
#ifdef HAVE_WORKING_FORK
-extern int waitsync_fd_to_close; /* -w/--wait-sync */
+extern int daemon_pipe[2]; /* startup monitoring */
#endif
/* ntservice.c */
--- contrib/ntp/include/timespecops.h.orig
+++ contrib/ntp/include/timespecops.h
@@ -56,69 +56,12 @@
/* predicate: returns TRUE if the nanoseconds are out-of-bounds */
#define timespec_isdenormal(x) (!timespec_isnormal(x))
-/* conversion between l_fp fractions and nanoseconds */
-#ifdef HAVE_U_INT64
-# define FTOTVN(tsf) \
- ((int32) \
- (((u_int64)(tsf) * NANOSECONDS + 0x80000000) >> 32))
-# define TVNTOF(tvu) \
- ((u_int32) \
- ((((u_int64)(tvu) << 32) + NANOSECONDS / 2) / \
- NANOSECONDS))
-#else
-# define NSECFRAC (FRAC / NANOSECONDS)
-# define FTOTVN(tsf) \
- ((int32)((tsf) / NSECFRAC + 0.5))
-# define TVNTOF(tvu) \
- ((u_int32)((tvu) * NSECFRAC + 0.5))
-#endif
/* make sure nanoseconds are in nominal range */
-static inline struct timespec
-normalize_tspec(
- struct timespec x
- )
-{
-#if SIZEOF_LONG > 4
- long z;
+extern struct timespec normalize_tspec(struct timespec x);
- /*
- * tv_nsec is of type 'long', and on a 64-bit machine using only
- * loops becomes prohibitive once the upper 32 bits get
- * involved. On the other hand, division by constant should be
- * fast enough; so we do a division of the nanoseconds in that
- * case. The floor adjustment step follows with the standard
- * normalisation loops. And labs() is intentionally not used
- * here: it has implementation-defined behaviour when applied
- * to LONG_MIN.
- */
- if (x.tv_nsec < -3l * NANOSECONDS ||
- x.tv_nsec > 3l * NANOSECONDS) {
- z = x.tv_nsec / NANOSECONDS;
- x.tv_nsec -= z * NANOSECONDS;
- x.tv_sec += z;
- }
-#endif
- /* since 10**9 is close to 2**32, we don't divide but do a
- * normalisation in a loop; this takes 3 steps max, and should
- * outperform a division even if the mul-by-inverse trick is
- * employed. */
- if (x.tv_nsec < 0)
- do {
- x.tv_nsec += NANOSECONDS;
- x.tv_sec--;
- } while (x.tv_nsec < 0);
- else if (x.tv_nsec >= NANOSECONDS)
- do {
- x.tv_nsec -= NANOSECONDS;
- x.tv_sec++;
- } while (x.tv_nsec >= NANOSECONDS);
-
- return x;
-}
-
/* x = a + b */
static inline struct timespec
add_tspec(
@@ -196,46 +139,14 @@
}
/* x = abs(a) */
-static inline struct timespec
-abs_tspec(
- struct timespec a
- )
-{
- struct timespec c;
+struct timespec abs_tspec(struct timespec a);
- c = normalize_tspec(a);
- if (c.tv_sec < 0) {
- if (c.tv_nsec != 0) {
- c.tv_sec = -c.tv_sec - 1;
- c.tv_nsec = NANOSECONDS - c.tv_nsec;
- } else {
- c.tv_sec = -c.tv_sec;
- }
- }
-
- return c;
-}
-
/*
* compare previously-normalised a and b
* return 1 / 0 / -1 if a < / == / > b
*/
-static inline int
-cmp_tspec(
- struct timespec a,
- struct timespec b
- )
-{
- int r;
+extern int cmp_tspec(struct timespec a, struct timespec b);
- r = (a.tv_sec > b.tv_sec) - (a.tv_sec < b.tv_sec);
- if (0 == r)
- r = (a.tv_nsec > b.tv_nsec) -
- (a.tv_nsec < b.tv_nsec);
-
- return r;
-}
-
/*
* compare possibly-denormal a and b
* return 1 / 0 / -1 if a < / == / > b
@@ -253,20 +164,8 @@
* test previously-normalised a
* return 1 / 0 / -1 if a < / == / > 0
*/
-static inline int
-test_tspec(
- struct timespec a
- )
-{
- int r;
+extern int test_tspec(struct timespec a);
- r = (a.tv_sec > 0) - (a.tv_sec < 0);
- if (r == 0)
- r = (a.tv_nsec > 0);
-
- return r;
-}
-
/*
* test possibly-denormal a
* return 1 / 0 / -1 if a < / == / > 0
@@ -293,21 +192,8 @@
*/
/* convert from timespec duration to l_fp duration */
-static inline l_fp
-tspec_intv_to_lfp(
- struct timespec x
- )
-{
- struct timespec v;
- l_fp y;
-
- v = normalize_tspec(x);
- y.l_uf = TVNTOF(v.tv_nsec);
- y.l_i = (int32)v.tv_sec;
+extern l_fp tspec_intv_to_lfp(struct timespec x);
- return y;
-}
-
/* x must be UN*X epoch, output will be in NTP epoch */
static inline l_fp
tspec_stamp_to_lfp(
@@ -323,71 +209,14 @@
}
/* convert from l_fp type, relative signed/unsigned and absolute */
-static inline struct timespec
-lfp_intv_to_tspec(
- l_fp x
- )
-{
- struct timespec out;
- l_fp absx;
- int neg;
-
- neg = L_ISNEG(&x);
- absx = x;
- if (neg) {
- L_NEG(&absx);
- }
- out.tv_nsec = FTOTVN(absx.l_uf);
- out.tv_sec = absx.l_i;
- if (neg) {
- out.tv_sec = -out.tv_sec;
- out.tv_nsec = -out.tv_nsec;
- out = normalize_tspec(out);
- }
+extern struct timespec lfp_intv_to_tspec(l_fp x);
+extern struct timespec lfp_uintv_to_tspec(l_fp x);
- return out;
-}
-
-static inline struct timespec
-lfp_uintv_to_tspec(
- l_fp x
- )
-{
- struct timespec out;
-
- out.tv_nsec = FTOTVN(x.l_uf);
- out.tv_sec = x.l_ui;
-
- return out;
-}
-
/*
* absolute (timestamp) conversion. Input is time in NTP epoch, output
* is in UN*X epoch. The NTP time stamp will be expanded around the
* pivot time *p or the current time, if p is NULL.
*/
-static inline struct timespec
-lfp_stamp_to_tspec(
- l_fp x,
- const time_t * p
- )
-{
- struct timespec out;
- vint64 sec;
+extern struct timespec lfp_stamp_to_tspec(l_fp x, const time_t *pivot);
- sec = ntpcal_ntp_to_time(x.l_ui, p);
- out.tv_nsec = FTOTVN(x.l_uf);
-
- /* copying a vint64 to a time_t needs some care... */
-#if SIZEOF_TIME_T <= 4
- out.tv_sec = (time_t)sec.d_s.lo;
-#elif defined(HAVE_INT64)
- out.tv_sec = (time_t)sec.q_s;
-#else
- out.tv_sec = ((time_t)sec.d_s.hi << 32) | sec.d_s.lo;
-#endif
-
- return out;
-}
-
#endif /* TIMESPECOPS_H */
--- contrib/ntp/include/timexsup.h.orig
+++ contrib/ntp/include/timexsup.h
@@ -0,0 +1,42 @@
+/*
+ * timexsup.h - 'struct timex' support functions
+ *
+ * Written by Juergen Perlinger (perlinger@ntp.org) for the NTP project.
+ * The contents of 'html/copyright.html' apply.
+ */
+#ifndef TIMEXSUP_H
+#define TIMEXSUP_H
+
+
+/* convert a 'long' time value (in usec or nsec) into seconds, expressed
+ * as a 'double'. If 'STA_NANO' is not defined, this will always convert
+ * from usec. ('STA_NANO' is Linux specific at the time of this
+ * writing.)
+ *
+ * If 'STA_NANO' is defined, it will be checked in 'status' to decide
+ * which time base (usec or nsec) applies for this conversion.
+ */
+extern double dbl_from_var_long(long lval, int status);
+
+/* convert a 'long' time value in usec into seconds, expressed as
+ * 'double'. This function is there for pure symmetry right now -- it
+ * just casts and scales without any additional bells and whistles.
+ */
+extern double dbl_from_usec_long(long lval);
+
+/* If MOD_NANO is defined, set the MOD_NANO bit in '*modes' and
+ * calculate the time stamp in nsec; otherwise, calculate the result in
+ * usec.
+ *
+ * Applies proper bounds checks and saturation on LONG_MAX/LONG_MIN to
+ * avoid undefined behaviour.
+ */
+extern long var_long_from_dbl(double dval, unsigned int *modes);
+
+/* convert a 'double' time value (in seconds) into usec with proper
+ * bounds check and range clamp.
+ */
+extern long usec_long_from_dbl(double dval);
+
+#endif
+/* -*- that's all folks -*- */
--- contrib/ntp/libntp/Makefile.am.orig
+++ contrib/ntp/libntp/Makefile.am
@@ -81,6 +81,7 @@
msyslog.c \
netof.c \
ntp_calendar.c \
+ ntp_calgps.c \
ntp_crypto_rnd.c \
ntp_intres.c \
ntp_libopts.c \
@@ -104,8 +105,10 @@
strdup.c \
strl_obsd.c \
syssignal.c \
+ timespecops.c \
timetoa.c \
timevalops.c \
+ timexsup.c \
uglydate.c \
vint64ops.c \
work_fork.c \
--- contrib/ntp/libntp/Makefile.in.orig
+++ contrib/ntp/libntp/Makefile.in
@@ -154,13 +154,14 @@
hextoint.c hextolfp.c humandate.c icom.c iosignal.c \
is_ip_address.c lib_strbuf.c libssl_compat.c machines.c \
mktime.c modetoa.c mstolfp.c msyslog.c netof.c ntp_calendar.c \
- ntp_crypto_rnd.c ntp_intres.c ntp_libopts.c ntp_lineedit.c \
- ntp_random.c ntp_rfc2553.c ntp_worker.c numtoa.c numtohost.c \
- octtoint.c prettydate.c refidsmear.c recvbuff.c refnumtoa.c \
- snprintf.c socket.c socktoa.c socktohost.c ssl_init.c \
- statestr.c strdup.c strl_obsd.c syssignal.c timetoa.c \
- timevalops.c uglydate.c vint64ops.c work_fork.c work_thread.c \
- xsbprintf.c ymd2yd.c $(srcdir)/../lib/isc/assertions.c \
+ ntp_calgps.c ntp_crypto_rnd.c ntp_intres.c ntp_libopts.c \
+ ntp_lineedit.c ntp_random.c ntp_rfc2553.c ntp_worker.c \
+ numtoa.c numtohost.c octtoint.c prettydate.c refidsmear.c \
+ recvbuff.c refnumtoa.c snprintf.c socket.c socktoa.c \
+ socktohost.c ssl_init.c statestr.c strdup.c strl_obsd.c \
+ syssignal.c timespecops.c timetoa.c timevalops.c timexsup.c \
+ uglydate.c vint64ops.c work_fork.c work_thread.c xsbprintf.c \
+ ymd2yd.c $(srcdir)/../lib/isc/assertions.c \
$(srcdir)/../lib/isc/buffer.c \
$(srcdir)/../lib/isc/backtrace-emptytbl.c \
$(srcdir)/../lib/isc/backtrace.c \
@@ -213,7 +214,7 @@
is_ip_address.$(OBJEXT) lib_strbuf.$(OBJEXT) \
libssl_compat.$(OBJEXT) machines.$(OBJEXT) mktime.$(OBJEXT) \
modetoa.$(OBJEXT) mstolfp.$(OBJEXT) msyslog.$(OBJEXT) \
- netof.$(OBJEXT) ntp_calendar.$(OBJEXT) \
+ netof.$(OBJEXT) ntp_calendar.$(OBJEXT) ntp_calgps.$(OBJEXT) \
ntp_crypto_rnd.$(OBJEXT) ntp_intres.$(OBJEXT) \
ntp_libopts.$(OBJEXT) ntp_lineedit.$(OBJEXT) \
ntp_random.$(OBJEXT) ntp_rfc2553.$(OBJEXT) \
@@ -222,10 +223,11 @@
recvbuff.$(OBJEXT) refnumtoa.$(OBJEXT) snprintf.$(OBJEXT) \
socket.$(OBJEXT) socktoa.$(OBJEXT) socktohost.$(OBJEXT) \
ssl_init.$(OBJEXT) statestr.$(OBJEXT) strdup.$(OBJEXT) \
- strl_obsd.$(OBJEXT) syssignal.$(OBJEXT) timetoa.$(OBJEXT) \
- timevalops.$(OBJEXT) uglydate.$(OBJEXT) vint64ops.$(OBJEXT) \
- work_fork.$(OBJEXT) work_thread.$(OBJEXT) xsbprintf.$(OBJEXT) \
- ymd2yd.$(OBJEXT) $(am__objects_3) $(am__objects_1)
+ strl_obsd.$(OBJEXT) syssignal.$(OBJEXT) timespecops.$(OBJEXT) \
+ timetoa.$(OBJEXT) timevalops.$(OBJEXT) timexsup.$(OBJEXT) \
+ uglydate.$(OBJEXT) vint64ops.$(OBJEXT) work_fork.$(OBJEXT) \
+ work_thread.$(OBJEXT) xsbprintf.$(OBJEXT) ymd2yd.$(OBJEXT) \
+ $(am__objects_3) $(am__objects_1)
am_libntp_a_OBJECTS = systime.$(OBJEXT) $(am__objects_4)
libntp_a_OBJECTS = $(am_libntp_a_OBJECTS)
libntpsim_a_AR = $(AR) $(ARFLAGS)
@@ -238,13 +240,14 @@
hextoint.c hextolfp.c humandate.c icom.c iosignal.c \
is_ip_address.c lib_strbuf.c libssl_compat.c machines.c \
mktime.c modetoa.c mstolfp.c msyslog.c netof.c ntp_calendar.c \
- ntp_crypto_rnd.c ntp_intres.c ntp_libopts.c ntp_lineedit.c \
- ntp_random.c ntp_rfc2553.c ntp_worker.c numtoa.c numtohost.c \
- octtoint.c prettydate.c refidsmear.c recvbuff.c refnumtoa.c \
- snprintf.c socket.c socktoa.c socktohost.c ssl_init.c \
- statestr.c strdup.c strl_obsd.c syssignal.c timetoa.c \
- timevalops.c uglydate.c vint64ops.c work_fork.c work_thread.c \
- xsbprintf.c ymd2yd.c $(srcdir)/../lib/isc/assertions.c \
+ ntp_calgps.c ntp_crypto_rnd.c ntp_intres.c ntp_libopts.c \
+ ntp_lineedit.c ntp_random.c ntp_rfc2553.c ntp_worker.c \
+ numtoa.c numtohost.c octtoint.c prettydate.c refidsmear.c \
+ recvbuff.c refnumtoa.c snprintf.c socket.c socktoa.c \
+ socktohost.c ssl_init.c statestr.c strdup.c strl_obsd.c \
+ syssignal.c timespecops.c timetoa.c timevalops.c timexsup.c \
+ uglydate.c vint64ops.c work_fork.c work_thread.c xsbprintf.c \
+ ymd2yd.c $(srcdir)/../lib/isc/assertions.c \
$(srcdir)/../lib/isc/buffer.c \
$(srcdir)/../lib/isc/backtrace-emptytbl.c \
$(srcdir)/../lib/isc/backtrace.c \
@@ -675,6 +678,7 @@
msyslog.c \
netof.c \
ntp_calendar.c \
+ ntp_calgps.c \
ntp_crypto_rnd.c \
ntp_intres.c \
ntp_libopts.c \
@@ -698,8 +702,10 @@
strdup.c \
strl_obsd.c \
syssignal.c \
+ timespecops.c \
timetoa.c \
timevalops.c \
+ timexsup.c \
uglydate.c \
vint64ops.c \
work_fork.c \
@@ -834,6 +840,7 @@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/netof.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/netscope.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ntp_calendar.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ntp_calgps.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ntp_crypto_rnd.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ntp_intres.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ntp_libopts.Po@am__quote@
@@ -870,8 +877,10 @@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/task.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/thread.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/time.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/timespecops.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/timetoa.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/timevalops.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/timexsup.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tsmemcmp.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uglydate.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vint64ops.Po@am__quote@
--- contrib/ntp/libntp/decodenetnum.c.orig
+++ contrib/ntp/libntp/decodenetnum.c
@@ -15,6 +15,19 @@
#include "ntp_stdlib.h"
#include "ntp_assert.h"
+#define PORTSTR(x) _PORTSTR(x)
+#define _PORTSTR(x) #x
+
+static int
+isnumstr(
+ const char *s
+ )
+{
+ while (*s >= '0' && *s <= '9')
+ ++s;
+ return !*s;
+}
+
/*
* decodenetnum convert text IP address and port to sockaddr_u
*
@@ -26,22 +39,25 @@
sockaddr_u *netnum
)
{
+ static const char * const servicename = "ntp";
+ static const char * const serviceport = PORTSTR(NTP_PORT);
+
struct addrinfo hints, *ai = NULL;
int err;
- u_short port;
- const char *cp;
+ const char *host_str;
const char *port_str;
char *pp;
char *np;
- char name[80];
+ char nbuf[80];
REQUIRE(num != NULL);
- if (strlen(num) >= sizeof(name)) {
- return 0;
+ if (strlen(num) >= sizeof(nbuf)) {
+ printf("length error\n");
+ return FALSE;
}
- port_str = NULL;
+ port_str = servicename;
if ('[' != num[0]) {
/*
* to distinguish IPv6 embedded colons from a port
@@ -50,37 +66,53 @@
*/
pp = strchr(num, ':');
if (NULL == pp)
- cp = num; /* no colons */
+ host_str = num; /* no colons */
else if (NULL != strchr(pp + 1, ':'))
- cp = num; /* two or more colons */
+ host_str = num; /* two or more colons */
else { /* one colon */
- strlcpy(name, num, sizeof(name));
- cp = name;
- pp = strchr(cp, ':');
+ strlcpy(nbuf, num, sizeof(nbuf));
+ host_str = nbuf;
+ pp = strchr(nbuf, ':');
*pp = '\0';
port_str = pp + 1;
}
} else {
- cp = num + 1;
- np = name;
- while (*cp && ']' != *cp)
- *np++ = *cp++;
+ host_str = np = nbuf;
+ while (*++num && ']' != *num)
+ *np++ = *num;
*np = 0;
- if (']' == cp[0] && ':' == cp[1] && '\0' != cp[2])
- port_str = &cp[2];
- cp = name;
+ if (']' == num[0] && ':' == num[1] && '\0' != num[2])
+ port_str = &num[2];
}
+ if ( ! *host_str)
+ return FALSE;
+ if ( ! *port_str)
+ port_str = servicename;
+
ZERO(hints);
- hints.ai_flags = Z_AI_NUMERICHOST;
- err = getaddrinfo(cp, "ntp", &hints, &ai);
+ hints.ai_flags |= Z_AI_NUMERICHOST;
+ if (isnumstr(port_str))
+ hints.ai_flags |= Z_AI_NUMERICSERV;
+ err = getaddrinfo(host_str, port_str, &hints, &ai);
+ /* retry with default service name if the service lookup failed */
+ if (err == EAI_SERVICE && strcmp(port_str, servicename)) {
+ hints.ai_flags &= ~Z_AI_NUMERICSERV;
+ port_str = servicename;
+ err = getaddrinfo(host_str, port_str, &hints, &ai);
+ }
+ /* retry another time with default service port if the service lookup failed */
+ if (err == EAI_SERVICE && strcmp(port_str, serviceport)) {
+ hints.ai_flags |= Z_AI_NUMERICSERV;
+ port_str = serviceport;
+ err = getaddrinfo(host_str, port_str, &hints, &ai);
+ }
if (err != 0)
- return 0;
+ return FALSE;
+
INSIST(ai->ai_addrlen <= sizeof(*netnum));
ZERO(*netnum);
memcpy(netnum, ai->ai_addr, ai->ai_addrlen);
freeaddrinfo(ai);
- if (NULL == port_str || 1 != sscanf(port_str, "%hu", &port))
- port = NTP_PORT;
- SET_PORT(netnum, port);
- return 1;
+
+ return TRUE;
}
--- contrib/ntp/libntp/dofptoa.c.orig
+++ contrib/ntp/libntp/dofptoa.c
@@ -12,7 +12,7 @@
char *
dofptoa(
u_fp fpv,
- int neg,
+ char sign,
short ndec,
int msec
)
@@ -106,8 +106,8 @@
* Copy it into the buffer, asciizing as we go.
*/
bp = buf;
- if (neg)
- *bp++ = '-';
+ if (sign)
+ *bp++ = sign;
while (cp < cpend) {
if (cp == cpdec)
@@ -135,7 +135,7 @@
plusfp = (u_fp)fpv;
}
- return dofptoa(plusfp, neg, ndec, FALSE);
+ return dofptoa(plusfp, (neg?'-':0), ndec, FALSE);
}
@@ -155,5 +155,5 @@
plusfp = (u_fp)fpv;
}
- return dofptoa(plusfp, neg, ndec, TRUE);
+ return dofptoa(plusfp, (neg?'-':0), ndec, TRUE);
}
--- contrib/ntp/libntp/dolfptoa.c.orig
+++ contrib/ntp/libntp/dolfptoa.c
@@ -13,7 +13,7 @@
dolfptoa(
u_int32 fpi,
u_int32 fpv,
- int neg,
+ char sign,
short ndec,
int msec
)
@@ -120,8 +120,8 @@
cp = cpdec - 1;
bp = buf;
- if (neg)
- *bp++ = '-';
+ if (sign)
+ *bp++ = sign;
while (cp < cpend) {
if (cp == cpdec)
*bp++ = '.';
@@ -150,7 +150,7 @@
M_NEG(fpi, fpf);
}
- return dolfptoa(fpi, fpf, isneg, ndec, FALSE);
+ return dolfptoa(fpi, fpf, (isneg?'-':'+'), ndec, FALSE);
}
@@ -168,7 +168,7 @@
M_NEG(fpi, fpf);
}
- return dolfptoa(fpi, fpf, isneg, ndec, TRUE);
+ return dolfptoa(fpi, fpf, (isneg?'-':'+'), ndec, TRUE);
}
--- contrib/ntp/libntp/mstolfp.c.orig
+++ contrib/ntp/libntp/mstolfp.c
@@ -22,7 +22,7 @@
/*
* We understand numbers of the form:
*
- * [spaces][-][digits][.][digits][spaces|\n|\0]
+ * [spaces][-|+][digits][.][digits][spaces|\n|\0]
*
* This is one enormous hack. Since I didn't feel like
* rewriting the decoding routine for milliseconds, what
@@ -35,9 +35,8 @@
while (isspace((unsigned char)*cp))
cp++;
- if (*cp == '-') {
- *bp++ = '-';
- cp++;
+ if (*cp == '-' || *cp == '+') {
+ *bp++ = *cp++;
}
if (*cp != '.' && !isdigit((unsigned char)*cp))
--- contrib/ntp/libntp/msyslog.c.orig
+++ contrib/ntp/libntp/msyslog.c
@@ -582,3 +582,41 @@
msyslog(LOG_ERR, "Cannot reopen log file %s, %m",
syslog_fname);
}
+
+/* Helper for unit tests, where stdout + stderr are piped to the same
+ * stream. This works moderately reliable only if both streams are
+ * unbuffered or line buffered. Unfortunately stdout can be fully
+ * buffered on pipes or files...
+ */
+int
+change_iobufs(
+ int how
+ )
+{
+ int retv = 0;
+
+# ifdef HAVE_SETVBUF
+
+ int mode;
+
+ switch (how) {
+ case 0 : mode = _IONBF; break; /* no buffering */
+ case 1 : mode = _IOLBF; break; /* line buffering */
+ case 2 : mode = _IOFBF; break; /* full buffering */
+ default: mode = _IOLBF; break; /* line buffering */
+ }
+
+ retv = 1;
+ if (setvbuf(stdout, NULL, mode, BUFSIZ) != 0)
+ retv = -1;
+ if (setvbuf(stderr, NULL, mode, BUFSIZ) != 0)
+ retv = -1;
+
+# else
+
+ UNUSED_ARG(how);
+
+# endif
+
+ return retv;
+}
--- contrib/ntp/libntp/ntp_calendar.c.orig
+++ contrib/ntp/libntp/ntp_calendar.c
@@ -40,16 +40,10 @@
* complement can be easily created using XOR and a mask.
*
* Finally, check for overflow conditions is minimal. There are only two
- * calculation steps in the whole calendar that suffer from an internal
- * overflow, and these conditions are checked: errno is set to EDOM and
- * the results are clamped/saturated in this case. All other functions
- * do not suffer from internal overflow and simply return the result
- * truncated to 32 bits.
- *
- * This is a sacrifice made for execution speed. Since a 32-bit day
- * counter covers +/- 5,879,610 years and the clamp limits the effective
- * range to +/-2.9 million years, this should not pose a problem here.
- *
+ * calculation steps in the whole calendar that potentially suffer from
+ * an internal overflow, and these are coded in a way that avoids
+ * it. All other functions do not suffer from internal overflow and
+ * simply return the result truncated to 32 bits.
*/
#include <config.h>
@@ -61,6 +55,9 @@
#include "ntp_fp.h"
#include "ntp_unixtime.h"
+#include "ntpd.h"
+#include "lib_strbuf.h"
+
/* For now, let's take the conservative approach: if the target property
* macros are not defined, check a few well-known compiler/architecture
* settings. Default is to assume that the representation of signed
@@ -88,6 +85,10 @@
# define TARGET_HAS_SAR 0
#endif
+#if !defined(HAVE_64BITREGS) && defined(UINT64_MAX) && (SIZE_MAX >= UINT64_MAX)
+# define HAVE_64BITREGS
+#endif
+
/*
*---------------------------------------------------------------------
* replacing the 'time()' function
@@ -139,7 +140,7 @@
* we do this only if 'int' has at least 4 bytes.
*/
return (uint32_t)(v >> 31);
-
+
# else
/* This should be a rather generic approach for getting a sign
@@ -146,40 +147,8 @@
* extension mask...
*/
return UINT32_C(0) - (uint32_t)(v < 0);
-
-# endif
-}
-static inline uint32_t
-int32_to_uint32_2cpl(
- const int32_t v)
-{
- uint32_t vu;
-
-# if TARGET_HAS_2CPL
-
- /* Just copy through the 32 bits from the signed value if we're
- * on a two's complement target.
- */
- vu = (uint32_t)v;
-
-# else
-
- /* Convert from signed int to unsigned int two's complement. Do
- * not make any assumptions about the representation of signed
- * integers, but make sure signed integer overflow cannot happen
- * here. A compiler on a two's complement target *might* find
- * out that this is just a complicated cast (as above), but your
- * mileage might vary.
- */
- if (v < 0)
- vu = ~(uint32_t)(-(v + 1));
- else
- vu = (uint32_t)v;
-
# endif
-
- return vu;
}
static inline int32_t
@@ -187,7 +156,7 @@
const uint32_t vu)
{
int32_t v;
-
+
# if TARGET_HAS_2CPL
/* Just copy through the 32 bits from the unsigned value if
@@ -206,31 +175,12 @@
v = -(int32_t)(~vu) - 1;
else
v = (int32_t)vu;
-
+
# endif
-
+
return v;
}
-/* Some of the calculations need to multiply the input by 4 before doing
- * a division. This can cause overflow and strange results. Therefore we
- * clamp / saturate the input operand. And since we do the calculations
- * in unsigned int with an extra sign flag/mask, we only loose one bit
- * of the input value range.
- */
-static inline uint32_t
-uint32_saturate(
- uint32_t vu,
- uint32_t mu)
-{
- static const uint32_t limit = UINT32_MAX/4u;
- if ((mu ^ vu) > limit) {
- vu = mu ^ limit;
- errno = EDOM;
- }
- return vu;
-}
-
/*
*---------------------------------------------------------------------
* Convert between 'time_t' and 'vint64'
@@ -335,7 +285,7 @@
* Note that MSVC declares DATE and TIME to be in the local time
* zone, while neither the C standard nor the GCC docs make any
* statement about this. As a result, we may be +/-12hrs off
- * UTC. But for practical purposes, this should not be a
+ * UTC. But for practical purposes, this should not be a
* problem.
*
*/
@@ -349,12 +299,12 @@
char monstr[4];
const char * cp;
unsigned short hour, minute, second, day, year;
- /* Note: The above quantities are used for sscanf 'hu' format,
+ /* Note: The above quantities are used for sscanf 'hu' format,
* so using 'uint16_t' is contra-indicated!
*/
# ifdef DEBUG
- static int ignore = 0;
+ static int ignore = 0;
# endif
ZERO(*jd);
@@ -398,19 +348,6 @@
*---------------------------------------------------------------------
*/
-/* month table for a year starting with March,1st */
-static const uint16_t shift_month_table[13] = {
- 0, 31, 61, 92, 122, 153, 184, 214, 245, 275, 306, 337, 366
-};
-
-/* month tables for years starting with January,1st; regular & leap */
-static const uint16_t real_month_table[2][13] = {
- /* -*- table for regular years -*- */
- { 0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365 },
- /* -*- table for leap years -*- */
- { 0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335, 366 }
-};
-
/*
* Some notes on the terminology:
*
@@ -452,6 +389,60 @@
/*
*---------------------------------------------------------------------
+ * fast modulo 7 operations (floor/mathematical convention)
+ *---------------------------------------------------------------------
+ */
+int
+u32mod7(
+ uint32_t x
+ )
+{
+ /* This is a combination of tricks from "Hacker's Delight" with
+ * some modifications, like a multiplication that rounds up to
+ * drop the final adjustment stage.
+ *
+ * Do a partial reduction by digit sum to keep the value in the
+ * range permitted for the mul/shift stage. There are several
+ * possible and absolutely equivalent shift/mask combinations;
+ * this one is ARM-friendly because of a mask that fits into 16
+ * bit.
+ */
+ x = (x >> 15) + (x & UINT32_C(0x7FFF));
+ /* Take reminder as (mod 8) by mul/shift. Since the multiplier
+ * was calculated using ceil() instead of floor(), it skips the
+ * value '7' properly.
+ * M <- ceil(ldexp(8/7, 29))
+ */
+ return (int)((x * UINT32_C(0x24924925)) >> 29);
+}
+
+int
+i32mod7(
+ int32_t x
+ )
+{
+ /* We add (2**32 - 2**32 % 7), which is (2**32 - 4), to negative
+ * numbers to map them into the postive range. Only the term '-4'
+ * survives, obviously.
+ */
+ uint32_t ux = (uint32_t)x;
+ return u32mod7((x < 0) ? (ux - 4u) : ux);
+}
+
+uint32_t
+i32fmod(
+ int32_t x,
+ uint32_t d
+ )
+{
+ uint32_t ux = (uint32_t)x;
+ uint32_t sf = UINT32_C(0) - (x < 0);
+ ux = (sf ^ ux ) % d;
+ return (d & sf) + (sf ^ ux);
+}
+
+/*
+ *---------------------------------------------------------------------
* Do a periodic extension of 'value' around 'pivot' with a period of
* 'cycle'.
*
@@ -494,7 +485,7 @@
* division routine for 64bit ops on a platform that can only do
* 32/16bit divisions and is still performant is a bit more
* difficult. Since most usecases can be coded in a way that does only
- * require the 32-bit version a 64bit version is NOT provided here.
+ * require the 32bit version a 64bit version is NOT provided here.
*---------------------------------------------------------------------
*/
int32_t
@@ -504,40 +495,38 @@
int32_t cycle
)
{
- uint32_t diff;
- char cpl = 0; /* modulo complement flag */
- char neg = 0; /* sign change flag */
+ /* Implement a 4-quadrant modulus calculation by 2 2-quadrant
+ * branches, one for positive and one for negative dividers.
+ * Everything else can be handled by bit level logic and
+ * conditional one's complement arithmetic. By convention, we
+ * assume
+ *
+ * x % b == 0 if |b| < 2
+ *
+ * that is, we don't actually divide for cycles of -1,0,1 and
+ * return the pivot value in that case.
+ */
+ uint32_t uv = (uint32_t)value;
+ uint32_t up = (uint32_t)pivot;
+ uint32_t uc, sf;
- /* make the cycle positive and adjust the flags */
- if (cycle < 0) {
- cycle = - cycle;
- neg ^= 1;
- cpl ^= 1;
+ if (cycle > 1)
+ {
+ uc = (uint32_t)cycle;
+ sf = UINT32_C(0) - (value < pivot);
+
+ uv = sf ^ (uv - up);
+ uv %= uc;
+ pivot += (uc & sf) + (sf ^ uv);
}
- /* guard against div by zero or one */
- if (cycle > 1) {
- /*
- * Get absolute difference as unsigned quantity and
- * the complement flag. This is done by always
- * subtracting the smaller value from the bigger
- * one.
- */
- if (value >= pivot) {
- diff = int32_to_uint32_2cpl(value)
- - int32_to_uint32_2cpl(pivot);
- } else {
- diff = int32_to_uint32_2cpl(pivot)
- - int32_to_uint32_2cpl(value);
- cpl ^= 1;
- }
- diff %= (uint32_t)cycle;
- if (diff) {
- if (cpl)
- diff = (uint32_t)cycle - diff;
- if (neg)
- diff = ~diff + 1;
- pivot += uint32_2cpl_to_int32(diff);
- }
+ else if (cycle < -1)
+ {
+ uc = ~(uint32_t)cycle + 1;
+ sf = UINT32_C(0) - (value > pivot);
+
+ uv = sf ^ (up - uv);
+ uv %= uc;
+ pivot -= (uc & sf) + (sf ^ uv);
}
return pivot;
}
@@ -557,7 +546,7 @@
* standard. (Though this is admittedly not one of the most 'natural'
* aspects of the 'C' language and easily to get wrong.)
*
- * see
+ * see
* http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1570.pdf
* "ISO/IEC 9899:201x Committee Draft — April 12, 2011"
* 6.4.4.1 Integer constants, clause 5
@@ -565,7 +554,7 @@
* why there is no sign extension/overflow problem here.
*
* But to ease the minds of the doubtful, I added back the 'u' qualifiers
- * that somehow got lost over the last years.
+ * that somehow got lost over the last years.
*/
@@ -574,7 +563,7 @@
* Convert a timestamp in NTP scale to a 64bit seconds value in the UN*X
* scale with proper epoch unfolding around a given pivot or the current
* system time. This function happily accepts negative pivot values as
- * timestamps befor 1970-01-01, so be aware of possible trouble on
+ * timestamps before 1970-01-01, so be aware of possible trouble on
* platforms with 32bit 'time_t'!
*
* This is also a periodic extension, but since the cycle is 2^32 and
@@ -690,74 +679,146 @@
)
{
ntpcal_split res;
- uint32_t Q;
+ uint32_t Q, R;
-# if defined(HAVE_INT64)
-
- /* Manual floor division by SECSPERDAY. This uses the one's
- * complement trick, too, but without an extra flag value: The
- * flag would be 64bit, and that's a bit of overkill on a 32bit
- * target that has to use a register pair for a 64bit number.
+# if defined(HAVE_64BITREGS)
+
+ /* Assume we have 64bit registers an can do a divison by
+ * constant reasonably fast using the one's complement trick..
*/
+ uint64_t sf64 = (uint64_t)-(ts->q_s < 0);
+ Q = (uint32_t)(sf64 ^ ((sf64 ^ ts->Q_s) / SECSPERDAY));
+ R = (uint32_t)(ts->Q_s - Q * SECSPERDAY);
+
+# elif defined(UINT64_MAX) && !defined(__arm__)
+
+ /* We rely on the compiler to do efficient 64bit divisions as
+ * good as possible. Which might or might not be true. At least
+ * for ARM CPUs, the sum-by-digit code in the next section is
+ * faster for many compilers. (This might change over time, but
+ * the 64bit-by-32bit division will never outperform the exact
+ * division by a substantial factor....)
+ */
if (ts->q_s < 0)
Q = ~(uint32_t)(~ts->Q_s / SECSPERDAY);
else
- Q = (uint32_t)(ts->Q_s / SECSPERDAY);
+ Q = (uint32_t)( ts->Q_s / SECSPERDAY);
+ R = ts->D_s.lo - Q * SECSPERDAY;
# else
- uint32_t ah, al, sflag, A;
-
- /* get operand into ah/al (either ts or ts' one's complement,
- * for later floor division)
- */
- sflag = int32_sflag(ts->d_s.hi);
- ah = sflag ^ ts->D_s.hi;
- al = sflag ^ ts->D_s.lo;
-
- /* Since 86400 == 128*675 we can drop the least 7 bits and
- * divide by 675 instead of 86400. Then the maximum remainder
- * after each devision step is 674, and we need 10 bits for
- * that. So in the next step we can shift in 22 bits from the
- * numerator.
+ /* We don't have 64bit regs. That hurts a bit.
*
- * Therefore we load the accu with the top 13 bits (51..63) in
- * the first shot. We don't have to remember the quotient -- it
- * would be shifted out anyway.
+ * Here we use a mean trick to get away with just one explicit
+ * modulo operation and pure 32bit ops.
+ *
+ * Remember: 86400 <--> 128 * 675
+ *
+ * So we discard the lowest 7 bit and do an exact division by
+ * 675, modulo 2**32.
+ *
+ * First we shift out the lower 7 bits.
+ *
+ * Then we use a digit-wise pseudo-reduction, where a 'digit' is
+ * actually a 16-bit group. This is followed by a full reduction
+ * with a 'true' division step. This yields the modulus of the
+ * full 64bit value. The sign bit gets some extra treatment.
+ *
+ * Then we decrement the lower limb by that modulus, so it is
+ * exactly divisible by 675. [*]
+ *
+ * Then we multiply with the modular inverse of 675 (mod 2**32)
+ * and voila, we have the result.
+ *
+ * Special Thanks to Henry S. Warren and his "Hacker's delight"
+ * for giving that idea.
+ *
+ * (Note[*]: that's not the full truth. We would have to
+ * subtract the modulus from the full 64 bit number to get a
+ * number that is divisible by 675. But since we use the
+ * multiplicative inverse (mod 2**32) there's no reason to carry
+ * the subtraction into the upper bits!)
*/
- A = ah >> 19;
- if (A >= 675)
- A = (A % 675u);
+ uint32_t al = ts->D_s.lo;
+ uint32_t ah = ts->D_s.hi;
- /* Now assemble the remainder with bits 29..50 from the
- * numerator and divide. This creates the upper ten bits of the
- * quotient. (Well, the top 22 bits of a 44bit result. But that
- * will be truncated to 32 bits anyway.)
- */
- A = (A << 19) | (ah & 0x0007FFFFu);
- A = (A << 3) | (al >> 29);
- Q = A / 675u;
- A = A % 675u;
+ /* shift out the lower 7 bits, smash sign bit */
+ al = (al >> 7) | (ah << 25);
+ ah = (ah >> 7) & 0x00FFFFFFu;
- /* Now assemble the remainder with bits 7..28 from the numerator
- * and do a final division step.
- */
- A = (A << 22) | ((al >> 7) & 0x003FFFFFu);
- Q = (Q << 22) | (A / 675u);
+ R = (ts->d_s.hi < 0) ? 239 : 0;/* sign bit value */
+ R += (al & 0xFFFF);
+ R += (al >> 16 ) * 61u; /* 2**16 % 675 */
+ R += (ah & 0xFFFF) * 346u; /* 2**32 % 675 */
+ R += (ah >> 16 ) * 181u; /* 2**48 % 675 */
+ R %= 675u; /* final reduction */
+ Q = (al - R) * 0x2D21C10Bu; /* modinv(675, 2**32) */
+ R = (R << 7) | (ts->d_s.lo & 0x07F);
- /* The last 7 bits get simply dropped, as they have no affect on
- * the quotient when dividing by 86400.
+# endif
+
+ res.hi = uint32_2cpl_to_int32(Q);
+ res.lo = R;
+
+ return res;
+}
+
+/*
+ *---------------------------------------------------------------------
+ * Split a 64bit seconds value into elapsed weeks in 'res.hi' and
+ * elapsed seconds since week start in 'res.lo' using explicit floor
+ * division. This function happily accepts negative time values as
+ * timestamps before the respective epoch start.
+ *---------------------------------------------------------------------
+ */
+ntpcal_split
+ntpcal_weeksplit(
+ const vint64 *ts
+ )
+{
+ ntpcal_split res;
+ uint32_t Q, R;
+
+ /* This is a very close relative to the day split function; for
+ * details, see there!
*/
- /* apply sign correction and calculate the true floor
- * remainder.
- */
- Q ^= sflag;
-
+# if defined(HAVE_64BITREGS)
+
+ uint64_t sf64 = (uint64_t)-(ts->q_s < 0);
+ Q = (uint32_t)(sf64 ^ ((sf64 ^ ts->Q_s) / SECSPERWEEK));
+ R = (uint32_t)(ts->Q_s - Q * SECSPERWEEK);
+
+# elif defined(UINT64_MAX) && !defined(__arm__)
+
+ if (ts->q_s < 0)
+ Q = ~(uint32_t)(~ts->Q_s / SECSPERWEEK);
+ else
+ Q = (uint32_t)( ts->Q_s / SECSPERWEEK);
+ R = ts->D_s.lo - Q * SECSPERWEEK;
+
+# else
+
+ /* Remember: 7*86400 <--> 604800 <--> 128 * 4725 */
+ uint32_t al = ts->D_s.lo;
+ uint32_t ah = ts->D_s.hi;
+
+ al = (al >> 7) | (ah << 25);
+ ah = (ah >> 7) & 0x00FFFFFF;
+
+ R = (ts->d_s.hi < 0) ? 2264 : 0;/* sign bit value */
+ R += (al & 0xFFFF);
+ R += (al >> 16 ) * 4111u; /* 2**16 % 4725 */
+ R += (ah & 0xFFFF) * 3721u; /* 2**32 % 4725 */
+ R += (ah >> 16 ) * 2206u; /* 2**48 % 4725 */
+ R %= 4725u; /* final reduction */
+ Q = (al - R) * 0x98BBADDDu; /* modinv(4725, 2**32) */
+ R = (R << 7) | (ts->d_s.lo & 0x07F);
+
# endif
-
+
res.hi = uint32_2cpl_to_int32(Q);
- res.lo = ts->D_s.lo - Q * SECSPERDAY;
+ res.lo = R;
return res;
}
@@ -779,23 +840,23 @@
* one's complement trick and factoring out the intermediate XOR
* ops to reduce the number of operations.
*/
- uint32_t us, um, uh, ud, sflag;
+ uint32_t us, um, uh, ud, sf32;
- sflag = int32_sflag(ts);
- us = int32_to_uint32_2cpl(ts);
+ sf32 = int32_sflag(ts);
- um = (sflag ^ us) / SECSPERMIN;
+ us = (uint32_t)ts;
+ um = (sf32 ^ us) / SECSPERMIN;
uh = um / MINSPERHR;
ud = uh / HRSPERDAY;
- um ^= sflag;
- uh ^= sflag;
- ud ^= sflag;
+ um ^= sf32;
+ uh ^= sf32;
+ ud ^= sf32;
split[0] = (int32_t)(uh - ud * HRSPERDAY );
split[1] = (int32_t)(um - uh * MINSPERHR );
split[2] = (int32_t)(us - um * SECSPERMIN);
-
+
return uint32_2cpl_to_int32(ud);
}
@@ -815,45 +876,77 @@
int *isleapyear
)
{
- /* Use the fast cyclesplit algorithm here, to calculate the
+ /* Use the fast cycle split algorithm here, to calculate the
* centuries and years in a century with one division each. This
* reduces the number of division operations to two, but is
- * susceptible to internal range overflow. We make sure the
- * input operands are in the safe range; this still gives us
- * approx +/-2.9 million years.
+ * susceptible to internal range overflow. We take some extra
+ * steps to avoid the gap.
*/
ntpcal_split res;
int32_t n100, n001; /* calendar year cycles */
- uint32_t uday, Q, sflag;
+ uint32_t uday, Q;
- /* split off centuries first */
- sflag = int32_sflag(days);
- uday = uint32_saturate(int32_to_uint32_2cpl(days), sflag);
- uday = (4u * uday) | 3u;
- Q = sflag ^ ((sflag ^ uday) / GREGORIAN_CYCLE_DAYS);
- uday = uday - Q * GREGORIAN_CYCLE_DAYS;
+ /* split off centuries first
+ *
+ * We want to execute '(days * 4 + 3) /% 146097' under floor
+ * division rules in the first step. Well, actually we want to
+ * calculate 'floor((days + 0.75) / 36524.25)', but we want to
+ * do it in scaled integer calculation.
+ */
+# if defined(HAVE_64BITREGS)
+
+ /* not too complicated with an intermediate 64bit value */
+ uint64_t ud64, sf64;
+ ud64 = ((uint64_t)days << 2) | 3u;
+ sf64 = (uint64_t)-(days < 0);
+ Q = (uint32_t)(sf64 ^ ((sf64 ^ ud64) / GREGORIAN_CYCLE_DAYS));
+ uday = (uint32_t)(ud64 - Q * GREGORIAN_CYCLE_DAYS);
n100 = uint32_2cpl_to_int32(Q);
-
+
+# else
+
+ /* '4*days+3' suffers from range overflow when going to the
+ * limits. We solve this by doing an exact division (mod 2^32)
+ * after caclulating the remainder first.
+ *
+ * We start with a partial reduction by digit sums, extracting
+ * the upper bits from the original value before they get lost
+ * by scaling, and do one full division step to get the true
+ * remainder. Then a final multiplication with the
+ * multiplicative inverse of 146097 (mod 2^32) gives us the full
+ * quotient.
+ *
+ * (-2^33) % 146097 --> 130717 : the sign bit value
+ * ( 2^20) % 146097 --> 25897 : the upper digit value
+ * modinv(146097, 2^32) --> 660721233 : the inverse
+ */
+ uint32_t ux = ((uint32_t)days << 2) | 3;
+ uday = (days < 0) ? 130717u : 0u; /* sign dgt */
+ uday += ((days >> 18) & 0x01FFFu) * 25897u; /* hi dgt (src!) */
+ uday += (ux & 0xFFFFFu); /* lo dgt */
+ uday %= GREGORIAN_CYCLE_DAYS; /* full reduction */
+ Q = (ux - uday) * 660721233u; /* exact div */
+ n100 = uint32_2cpl_to_int32(Q);
+
+# endif
+
/* Split off years in century -- days >= 0 here, and we're far
* away from integer overflow trouble now. */
uday |= 3;
- n001 = uday / GREGORIAN_NORMAL_LEAP_CYCLE_DAYS;
- uday = uday % GREGORIAN_NORMAL_LEAP_CYCLE_DAYS;
+ n001 = uday / GREGORIAN_NORMAL_LEAP_CYCLE_DAYS;
+ uday -= n001 * GREGORIAN_NORMAL_LEAP_CYCLE_DAYS;
/* Assemble the year and day in year */
res.hi = n100 * 100 + n001;
res.lo = uday / 4u;
- /* Eventually set the leap year flag. Note: 0 <= n001 <= 99 and
- * Q is still the two's complement representation of the
- * centuries: The modulo 4 ops can be done with masking here.
- * We also shift the year and the century by one, so the tests
- * can be done against zero instead of 3.
- */
- if (isleapyear)
- *isleapyear = !((n001+1) & 3)
- && ((n001 != 99) || !((Q+1) & 3));
-
+ /* Possibly set the leap year flag */
+ if (isleapyear) {
+ uint32_t tc = (uint32_t)n100 + 1;
+ uint32_t ty = (uint32_t)n001 + 1;
+ *isleapyear = !(ty & 3)
+ && ((ty != 100) || !(tc & 3));
+ }
return res;
}
@@ -870,22 +963,24 @@
ntpcal_split
ntpcal_split_yeardays(
int32_t eyd,
- int isleapyear
+ int isleap
)
{
- ntpcal_split res;
- const uint16_t *lt; /* month length table */
+ /* Use the unshifted-year, February-with-30-days approach here.
+ * Fractional interpolations are used in both directions, with
+ * the smallest power-of-two divider to avoid any true division.
+ */
+ ntpcal_split res = {-1, -1};
- /* check leap year flag and select proper table */
- lt = real_month_table[(isleapyear != 0)];
- if (0 <= eyd && eyd < lt[12]) {
- /* get zero-based month by approximation & correction step */
- res.hi = eyd >> 5; /* approx month; might be 1 too low */
- if (lt[res.hi + 1] <= eyd) /* fixup approximative month value */
- res.hi += 1;
- res.lo = eyd - lt[res.hi];
- } else {
- res.lo = res.hi = -1;
+ /* convert 'isleap' to number of defective days */
+ isleap = 1 + !isleap;
+ /* adjust for February of 30 nominal days */
+ if (eyd >= 61 - isleap)
+ eyd += isleap;
+ /* if in range, convert to months and days in month */
+ if (eyd >= 0 && eyd < 367) {
+ res.hi = (eyd * 67 + 32) >> 11;
+ res.lo = eyd - ((489 * res.hi + 8) >> 4);
}
return res;
@@ -906,16 +1001,8 @@
int leapy;
u_int ymask;
- /* Get day-of-week first. Since rd is signed, the remainder can
- * be in the range [-6..+6], but the assignment to an unsigned
- * variable maps the negative values to positive values >=7.
- * This makes the sign correction look strange, but adding 7
- * causes the needed wrap-around into the desired value range of
- * zero to six, both inclusive.
- */
- jd->weekday = rd % DAYSPERWEEK;
- if (jd->weekday >= DAYSPERWEEK) /* weekday is unsigned! */
- jd->weekday += DAYSPERWEEK;
+ /* Get day-of-week first. It's simply the RD (mod 7)... */
+ jd->weekday = i32mod7(rd);
split = ntpcal_split_eradays(rd - 1, &leapy);
/* Get year and day-of-year, with overflow check. If any of the
@@ -952,9 +1039,7 @@
int leapy;
/* get day-of-week first */
- utm->tm_wday = rd % DAYSPERWEEK;
- if (utm->tm_wday < 0)
- utm->tm_wday += DAYSPERWEEK;
+ utm->tm_wday = i32mod7(rd);
/* get year and day-of-year */
split = ntpcal_split_eradays(rd - 1, &leapy);
@@ -1087,6 +1172,53 @@
* ====================================================================
*/
+#if !defined(HAVE_INT64)
+/* multiplication helper. Seconds in days and weeks are multiples of 128,
+ * and without that factor fit well into 16 bit. So a multiplication
+ * of 32bit by 16bit and some shifting can be used on pure 32bit machines
+ * with compilers that do not support 64bit integers.
+ *
+ * Calculate ( hi * mul * 128 ) + lo
+ */
+static vint64
+_dwjoin(
+ uint16_t mul,
+ int32_t hi,
+ int32_t lo
+ )
+{
+ vint64 res;
+ uint32_t p1, p2, sf;
+
+ /* get sign flag and absolute value of 'hi' in p1 */
+ sf = (uint32_t)-(hi < 0);
+ p1 = ((uint32_t)hi + sf) ^ sf;
+
+ /* assemble major units: res <- |hi| * mul */
+ res.D_s.lo = (p1 & 0xFFFF) * mul;
+ res.D_s.hi = 0;
+ p1 = (p1 >> 16) * mul;
+ p2 = p1 >> 16;
+ p1 = p1 << 16;
+ M_ADD(res.D_s.hi, res.D_s.lo, p2, p1);
+
+ /* mul by 128, using shift: res <-- res << 7 */
+ res.D_s.hi = (res.D_s.hi << 7) | (res.D_s.lo >> 25);
+ res.D_s.lo = (res.D_s.lo << 7);
+
+ /* fix up sign: res <-- (res + [sf|sf]) ^ [sf|sf] */
+ M_ADD(res.D_s.hi, res.D_s.lo, sf, sf);
+ res.D_s.lo ^= sf;
+ res.D_s.hi ^= sf;
+
+ /* properly add seconds: res <-- res + [sx(lo)|lo] */
+ p2 = (uint32_t)-(lo < 0);
+ p1 = (uint32_t)lo;
+ M_ADD(res.D_s.hi, res.D_s.lo, p2, p1);
+ return res;
+}
+#endif
+
/*
*---------------------------------------------------------------------
* Merge a number of days and a number of seconds into seconds,
@@ -1109,43 +1241,37 @@
# else
- uint32_t p1, p2;
- int isneg;
+ res = _dwjoin(675, days, secs);
- /*
- * res = days *86400 + secs, using manual 16/32 bit
- * multiplications and shifts.
- */
- isneg = (days < 0);
- if (isneg)
- days = -days;
+# endif
- /* assemble days * 675 */
- res.D_s.lo = (days & 0xFFFF) * 675u;
- res.D_s.hi = 0;
- p1 = (days >> 16) * 675u;
- p2 = p1 >> 16;
- p1 = p1 << 16;
- M_ADD(res.D_s.hi, res.D_s.lo, p2, p1);
+ return res;
+}
- /* mul by 128, using shift */
- res.D_s.hi = (res.D_s.hi << 7) | (res.D_s.lo >> 25);
- res.D_s.lo = (res.D_s.lo << 7);
+/*
+ *---------------------------------------------------------------------
+ * Merge a number of weeks and a number of seconds into seconds,
+ * expressed in 64 bits to avoid overflow.
+ *---------------------------------------------------------------------
+ */
+vint64
+ntpcal_weekjoin(
+ int32_t week,
+ int32_t secs
+ )
+{
+ vint64 res;
- /* fix sign */
- if (isneg)
- M_NEG(res.D_s.hi, res.D_s.lo);
+# if defined(HAVE_INT64)
- /* properly add seconds */
- p2 = 0;
- if (secs < 0) {
- p1 = (uint32_t)-secs;
- M_NEG(p2, p1);
- } else {
- p1 = (uint32_t)secs;
- }
- M_ADD(res.D_s.hi, res.D_s.lo, p2, p1);
+ res.q_s = week;
+ res.q_s *= SECSPERWEEK;
+ res.q_s += secs;
+# else
+
+ res = _dwjoin(4725, week, secs);
+
# endif
return res;
@@ -1167,11 +1293,11 @@
* get away with only one true division and doing shifts otherwise.
*/
- uint32_t sflag, sum, uyear;
+ uint32_t sf32, sum, uyear;
- sflag = int32_sflag(years);
- uyear = int32_to_uint32_2cpl(years);
- uyear ^= sflag;
+ sf32 = int32_sflag(years);
+ uyear = (uint32_t)years;
+ uyear ^= sf32;
sum = (uyear /= 4u); /* 4yr rule --> IN */
sum -= (uyear /= 25u); /* 100yr rule --> OUT */
@@ -1183,7 +1309,7 @@
* the one's complement would have to be done when
* adding/subtracting the terms.
*/
- return uint32_2cpl_to_int32(sflag ^ sum);
+ return uint32_2cpl_to_int32(sf32 ^ sum);
}
/*
@@ -1222,25 +1348,33 @@
{
ntpcal_split res;
- /* Add ten months and correct if needed. (It likely is...) */
- res.lo = m + 10;
- res.hi = (res.lo >= 12);
- if (res.hi)
- res.lo -= 12;
+ /* Add ten months with proper year adjustment. */
+ if (m < 2) {
+ res.lo = m + 10;
+ res.hi = 0;
+ } else {
+ res.lo = m - 2;
+ res.hi = 1;
+ }
- /* if still out of range, normalise by floor division ... */
+ /* Possibly normalise by floor division. This does not hapen for
+ * input in normal range. */
if (res.lo < 0 || res.lo >= 12) {
- uint32_t mu, Q, sflag;
- sflag = int32_sflag(res.lo);
- mu = int32_to_uint32_2cpl(res.lo);
- Q = sflag ^ ((sflag ^ mu) / 12u);
+ uint32_t mu, Q, sf32;
+ sf32 = int32_sflag(res.lo);
+ mu = (uint32_t)res.lo;
+ Q = sf32 ^ ((sf32 ^ mu) / 12u);
+
res.hi += uint32_2cpl_to_int32(Q);
- res.lo = mu - Q * 12u;
+ res.lo = mu - Q * 12u;
}
-
- /* get cummulated days in year with unshift */
- res.lo = shift_month_table[res.lo] - 306;
+ /* Get cummulated days in year with unshift. Use the fractional
+ * interpolation with smallest possible power of two in the
+ * divider.
+ */
+ res.lo = ((res.lo * 979 + 16) >> 5) - 306;
+
return res;
}
@@ -1292,8 +1426,9 @@
ntpcal_split tmp;
if (0 <= mons && mons < 12) {
- years += 1;
- mdays += real_month_table[is_leapyear(years)][mons];
+ if (mons >= 2)
+ mdays -= 2 - is_leapyear(years+1);
+ mdays += (489 * mons + 8) >> 4;
} else {
tmp = ntpcal_days_in_months(mons);
mdays += tmp.lo
@@ -1449,7 +1584,7 @@
const struct calendar *jd
)
{
- vint64 join;
+ vint64 join;
int32_t days, secs;
days = ntpcal_date_to_rd(jd) - DAY_UNIX_STARTS;
@@ -1470,7 +1605,7 @@
int
ntpcal_ntp64_to_date(
struct calendar *jd,
- const vint64 *ntp
+ const vint64 *ntp
)
{
ntpcal_split ds;
@@ -1519,7 +1654,7 @@
)
{
/*
- * Get lower half of 64-bit NTP timestamp from date/time.
+ * Get lower half of 64bit NTP timestamp from date/time.
*/
return ntpcal_date_to_ntp64(jd).d_s.lo;
}
@@ -1624,7 +1759,7 @@
* w = (y * a + b ) / k
* y = (w * a' + b') / k'
*
- * In this implementation the values of k and k' are chosen to be
+ * In this implementation the values of k and k' are chosen to be the
* smallest possible powers of two, so the division can be implemented
* as shifts if the optimiser chooses to do so.
*
@@ -1640,20 +1775,20 @@
isocal_weeks_in_years(
int32_t years
)
-{
+{
/*
* use: w = (y * 53431 + b[c]) / 1024 as interpolation
*/
static const uint16_t bctab[4] = { 157, 449, 597, 889 };
- int32_t cs, cw;
- uint32_t cc, ci, yu, sflag;
+ int32_t cs, cw;
+ uint32_t cc, ci, yu, sf32;
- sflag = int32_sflag(years);
- yu = int32_to_uint32_2cpl(years);
-
+ sf32 = int32_sflag(years);
+ yu = (uint32_t)years;
+
/* split off centuries, using floor division */
- cc = sflag ^ ((sflag ^ yu) / 100u);
+ cc = sf32 ^ ((sf32 ^ yu) / 100u);
yu -= cc * 100u;
/* calculate century cycles shift and cycle index:
@@ -1666,9 +1801,9 @@
* shifting.
*/
ci = cc * 3u + 1;
- cs = uint32_2cpl_to_int32(sflag ^ ((sflag ^ ci) / 4u));
- ci = ci % 4u;
-
+ cs = uint32_2cpl_to_int32(sf32 ^ ((sf32 ^ ci) >> 2));
+ ci = ci & 3u;
+
/* Get weeks in century. Can use plain division here as all ops
* are >= 0, and let the compiler sort out the possible
* optimisations.
@@ -1696,31 +1831,54 @@
static const uint16_t bctab[4] = { 85, 130, 17, 62 };
ntpcal_split res;
- int32_t cc, ci;
- uint32_t sw, cy, Q, sflag;
+ int32_t cc, ci;
+ uint32_t sw, cy, Q;
- /* Use two fast cycle-split divisions here. This is again
- * susceptible to internal overflow, so we check the range. This
- * still permits more than +/-20 million years, so this is
- * likely a pure academical problem.
+ /* Use two fast cycle-split divisions again. Herew e want to
+ * execute '(weeks * 4 + 2) /% 20871' under floor division rules
+ * in the first step.
*
- * We want to execute '(weeks * 4 + 2) /% 20871' under floor
- * division rules in the first step.
+ * This is of course (again) susceptible to internal overflow if
+ * coded directly in 32bit. And again we use 64bit division on
+ * a 64bit target and exact division after calculating the
+ * remainder first on a 32bit target. With the smaller divider,
+ * that's even a bit neater.
*/
- sflag = int32_sflag(weeks);
- sw = uint32_saturate(int32_to_uint32_2cpl(weeks), sflag);
- sw = 4u * sw + 2;
- Q = sflag ^ ((sflag ^ sw) / GREGORIAN_CYCLE_WEEKS);
- sw -= Q * GREGORIAN_CYCLE_WEEKS;
- ci = Q % 4u;
+# if defined(HAVE_64BITREGS)
+
+ /* Full floor division with 64bit values. */
+ uint64_t sf64, sw64;
+ sf64 = (uint64_t)-(weeks < 0);
+ sw64 = ((uint64_t)weeks << 2) | 2u;
+ Q = (uint32_t)(sf64 ^ ((sf64 ^ sw64) / GREGORIAN_CYCLE_WEEKS));
+ sw = (uint32_t)(sw64 - Q * GREGORIAN_CYCLE_WEEKS);
+
+# else
+
+ /* Exact division after calculating the remainder via partial
+ * reduction by digit sum.
+ * (-2^33) % 20871 --> 5491 : the sign bit value
+ * ( 2^20) % 20871 --> 5026 : the upper digit value
+ * modinv(20871, 2^32) --> 330081335 : the inverse
+ */
+ uint32_t ux = ((uint32_t)weeks << 2) | 2;
+ sw = (weeks < 0) ? 5491u : 0u; /* sign dgt */
+ sw += ((weeks >> 18) & 0x01FFFu) * 5026u; /* hi dgt (src!) */
+ sw += (ux & 0xFFFFFu); /* lo dgt */
+ sw %= GREGORIAN_CYCLE_WEEKS; /* full reduction */
+ Q = (ux - sw) * 330081335u; /* exact div */
+
+# endif
+
+ ci = Q & 3u;
cc = uint32_2cpl_to_int32(Q);
/* Split off years; sw >= 0 here! The scaled weeks in the years
* are scaled up by 157 afterwards.
- */
+ */
sw = (sw / 4u) * 157u + bctab[ci];
- cy = sw / 8192u; /* ws >> 13 , let the compiler sort it out */
- sw = sw % 8192u; /* ws & 8191, let the compiler sort it out */
+ cy = sw / 8192u; /* sw >> 13 , let the compiler sort it out */
+ sw = sw % 8192u; /* sw & 8191, let the compiler sort it out */
/* assemble elapsed years and downscale the elapsed weeks in
* the year.
@@ -1743,8 +1901,8 @@
)
{
ntpcal_split ds;
- int32_t ts[3];
- uint32_t uw, ud, sflag;
+ int32_t ts[3];
+ uint32_t uw, ud, sf32;
/*
* Split NTP time into days and seconds, shift days into CE
@@ -1760,10 +1918,11 @@
/* split days into days and weeks, using floor division in unsigned */
ds.hi += DAY_NTP_STARTS - 1; /* shift from NTP to RDN */
- sflag = int32_sflag(ds.hi);
- ud = int32_to_uint32_2cpl(ds.hi);
- uw = sflag ^ ((sflag ^ ud) / DAYSPERWEEK);
- ud -= uw * DAYSPERWEEK;
+ sf32 = int32_sflag(ds.hi);
+ ud = (uint32_t)ds.hi;
+ uw = sf32 ^ ((sf32 ^ ud) / DAYSPERWEEK);
+ ud -= uw * DAYSPERWEEK;
+
ds.hi = uint32_2cpl_to_int32(uw);
ds.lo = ud;
@@ -1820,7 +1979,7 @@
)
{
/*
- * Get lower half of 64-bit NTP timestamp from date/time.
+ * Get lower half of 64bit NTP timestamp from date/time.
*/
return isocal_date_to_ntp64(id).d_s.lo;
}
@@ -1839,7 +1998,7 @@
{
struct calendar jd;
int32_t ed;
-
+
if (!ntpcal_get_build_date(&jd))
return NTP_TO_UNIX_DAYS;
@@ -1865,7 +2024,7 @@
int rc, nc;
size_t sl;
- sl = strlen(str);
+ sl = strlen(str);
rc = sscanf(str, "%4hu-%2hu-%2hu%n", &y, &m, &d, &nc);
if (rc == 3 && (size_t)nc == sl) {
if (m >= 1 && m <= 12 && d >= 1 && d <= 31)
@@ -1909,7 +2068,7 @@
(unsigned long)day);
day = NTP_TO_UNIX_DAYS;
}
- retv = s_baseday;
+ retv = s_baseday;
s_baseday = day;
ntpcal_rd_to_date(&jd, day + DAY_NTP_STARTS);
msyslog(LOG_INFO, "basedate set to %04hu-%02hu-%02hu",
@@ -1924,7 +2083,7 @@
ntpcal_rd_to_date(&jd, day + DAY_NTP_STARTS);
msyslog(LOG_INFO, "gps base set to %04hu-%02hu-%02hu (week %d)",
jd.year, (u_short)jd.month, (u_short)jd.monthday, s_gpsweek);
-
+
return retv;
}
@@ -1966,10 +2125,111 @@
#if GPSWEEKS != 1024
# error GPSWEEKS defined wrong -- should be 1024!
#endif
-
+
uint32_t diff;
diff = ((uint32_t)weekno - s_gpsweek) & (GPSWEEKS - 1);
return s_gpsweek + diff;
}
+/*
+ * ====================================================================
+ * misc. helpers
+ * ====================================================================
+ */
+
+/* --------------------------------------------------------------------
+ * reconstruct the centrury from a truncated date and a day-of-week
+ *
+ * Given a date with truncated year (2-digit, 0..99) and a day-of-week
+ * from 1(Mon) to 7(Sun), recover the full year between 1900AD and 2300AD.
+ */
+int32_t
+ntpcal_expand_century(
+ uint32_t y,
+ uint32_t m,
+ uint32_t d,
+ uint32_t wd)
+{
+ /* This algorithm is short but tricky... It's related to
+ * Zeller's congruence, partially done backwards.
+ *
+ * A few facts to remember:
+ * 1) The Gregorian calendar has a cycle of 400 years.
+ * 2) The weekday of the 1st day of a century shifts by 5 days
+ * during a great cycle.
+ * 3) For calendar math, a century starts with the 1st year,
+ * which is year 1, !not! zero.
+ *
+ * So we start with taking the weekday difference (mod 7)
+ * between the truncated date (which is taken as an absolute
+ * date in the 1st century in the proleptic calendar) and the
+ * weekday given.
+ *
+ * When dividing this residual by 5, we obtain the number of
+ * centuries to add to the base. But since the residual is (mod
+ * 7), we have to make this an exact division by multiplication
+ * with the modular inverse of 5 (mod 7), which is 3:
+ * 3*5 === 1 (mod 7).
+ *
+ * If this yields a result of 4/5/6, the given date/day-of-week
+ * combination is impossible, and we return zero as resulting
+ * year to indicate failure.
+ *
+ * Then we remap the century to the range starting with year
+ * 1900.
+ */
+
+ uint32_t c;
+
+ /* check basic constraints */
+ if ((y >= 100u) || (--m >= 12u) || (--d >= 31u))
+ return 0;
+
+ if ((m += 10u) >= 12u) /* shift base to prev. March,1st */
+ m -= 12u;
+ else if (--y >= 100u)
+ y += 100u;
+ d += y + (y >> 2) + 2u; /* year share */
+ d += (m * 83u + 16u) >> 5; /* month share */
+
+ /* get (wd - d), shifted to positive value, and multiply with
+ * 3(mod 7). (Exact division, see to comment)
+ * Note: 1) d <= 184 at this point.
+ * 2) 252 % 7 == 0, but 'wd' is off by one since we did
+ * '--d' above, so we add just 251 here!
+ */
+ c = u32mod7(3 * (251u + wd - d));
+ if (c > 3u)
+ return 0;
+
+ if ((m > 9u) && (++y >= 100u)) {/* undo base shift */
+ y -= 100u;
+ c = (c + 1) & 3u;
+ }
+ y += (c * 100u); /* combine into 1st cycle */
+ y += (y < 300u) ? 2000 : 1600; /* map to destination era */
+ return (int)y;
+}
+
+char *
+ntpcal_iso8601std(
+ char * buf,
+ size_t len,
+ TcCivilDate * cdp
+ )
+{
+ if (!buf) {
+ LIB_GETBUF(buf);
+ len = LIB_BUFLENGTH;
+ }
+ if (len) {
+ len = snprintf(buf, len, "%04u-%02u-%02uT%02u:%02u:%02u",
+ cdp->year, cdp->month, cdp->monthday,
+ cdp->hour, cdp->minute, cdp->second);
+ if (len < 0)
+ *buf = '\0';
+ }
+ return buf;
+}
+
/* -*-EOF-*- */
--- contrib/ntp/libntp/ntp_calgps.c.orig
+++ contrib/ntp/libntp/ntp_calgps.c
@@ -0,0 +1,634 @@
+/*
+ * ntp_calgps.c - calendar for GPS/GNSS based clocks
+ *
+ * Written by Juergen Perlinger (perlinger@ntp.org) for the NTP project.
+ * The contents of 'html/copyright.html' apply.
+ *
+ * --------------------------------------------------------------------
+ *
+ * This module implements stuff often used with GPS/GNSS receivers
+ */
+
+#include <config.h>
+#include <sys/types.h>
+
+#include "ntp_types.h"
+#include "ntp_calendar.h"
+#include "ntp_calgps.h"
+#include "ntp_stdlib.h"
+#include "ntp_unixtime.h"
+
+#include "ntp_fp.h"
+#include "ntpd.h"
+#include "vint64ops.h"
+
+/* ====================================================================
+ * misc. helpers -- might go elsewhere sometime?
+ * ====================================================================
+ */
+
+l_fp
+ntpfp_with_fudge(
+ l_fp lfp,
+ double ofs
+ )
+{
+ l_fp fpo;
+ /* calculate 'lfp - ofs' as '(l_fp)(-ofs) + lfp': negating a
+ * double is cheap, as it only flips one bit...
+ */
+ ofs = -ofs;
+ DTOLFP(ofs, &fpo);
+ L_ADD(&fpo, &lfp);
+ return fpo;
+}
+
+
+/* ====================================================================
+ * GPS calendar functions
+ * ====================================================================
+ */
+
+/* --------------------------------------------------------------------
+ * normalization functions for day/time and week/time representations.
+ * Since we only use moderate offsets (leap second corrections and
+ * alike) it does not really pay off to do a floor-corrected division
+ * here. We use compare/decrement/increment loops instead.
+ * --------------------------------------------------------------------
+ */
+static void
+_norm_ntp_datum(
+ TNtpDatum * datum
+ )
+{
+ static const int32_t limit = SECSPERDAY;
+
+ if (datum->secs >= limit) {
+ do
+ ++datum->days;
+ while ((datum->secs -= limit) >= limit);
+ } else if (datum->secs < 0) {
+ do
+ --datum->days;
+ while ((datum->secs += limit) < 0);
+ }
+}
+
+static void
+_norm_gps_datum(
+ TGpsDatum * datum
+ )
+{
+ static const int32_t limit = 7 * SECSPERDAY;
+
+ if (datum->wsecs >= limit) {
+ do
+ ++datum->weeks;
+ while ((datum->wsecs -= limit) >= limit);
+ } else if (datum->wsecs < 0) {
+ do
+ --datum->weeks;
+ while ((datum->wsecs += limit) < 0);
+ }
+}
+
+/* --------------------------------------------------------------------
+ * Add an offset to a day/time and week/time representation.
+ *
+ * !!Attention!! the offset should be small, compared to the time period
+ * (either a day or a week).
+ * --------------------------------------------------------------------
+ */
+void
+gpsntp_add_offset(
+ TNtpDatum * datum,
+ l_fp offset
+ )
+{
+ /* fraction can be added easily */
+ datum->frac += offset.l_uf;
+ datum->secs += (datum->frac < offset.l_uf);
+
+ /* avoid integer overflow on the seconds */
+ if (offset.l_ui >= INT32_MAX)
+ datum->secs -= (int32_t)~offset.l_ui + 1;
+ else
+ datum->secs += (int32_t)offset.l_ui;
+ _norm_ntp_datum(datum);
+}
+
+void
+gpscal_add_offset(
+ TGpsDatum * datum,
+ l_fp offset
+ )
+{
+ /* fraction can be added easily */
+ datum->frac += offset.l_uf;
+ datum->wsecs += (datum->frac < offset.l_uf);
+
+
+ /* avoid integer overflow on the seconds */
+ if (offset.l_ui >= INT32_MAX)
+ datum->wsecs -= (int32_t)~offset.l_ui + 1;
+ else
+ datum->wsecs += (int32_t)offset.l_ui;
+ _norm_gps_datum(datum);
+}
+
+/* -------------------------------------------------------------------
+ * API functions civil calendar and NTP datum
+ * -------------------------------------------------------------------
+ */
+
+static TNtpDatum
+_gpsntp_fix_gps_era(
+ TcNtpDatum * in
+ )
+{
+ /* force result in basedate era
+ *
+ * When calculating this directly in days, we have to execute a
+ * real modulus calculation, since we're obviously not doing a
+ * modulus by a power of 2. Executing this as true floor mod
+ * needs some care and is done under explicit usage of one's
+ * complement and masking to get mostly branchless code.
+ */
+ static uint32_t const clen = 7*1024;
+
+ uint32_t base, days, sign;
+ TNtpDatum out = *in;
+
+ /* Get base in NTP day scale. No overflows here. */
+ base = (basedate_get_gpsweek() + GPSNTP_WSHIFT) * 7
+ - GPSNTP_DSHIFT;
+ days = out.days;
+
+ sign = (uint32_t)-(days < base);
+ days = sign ^ (days - base);
+ days %= clen;
+ days = base + (sign & clen) + (sign ^ days);
+
+ out.days = days;
+ return out;
+}
+
+TNtpDatum
+gpsntp_fix_gps_era(
+ TcNtpDatum * in
+ )
+{
+ TNtpDatum out = *in;
+ _norm_ntp_datum(&out);
+ return _gpsntp_fix_gps_era(&out);
+}
+
+/* ----------------------------------------------------------------- */
+static TNtpDatum
+_gpsntp_from_daytime(
+ TcCivilDate * jd,
+ l_fp fofs,
+ TcNtpDatum * pivot,
+ int warp
+ )
+{
+ static const int32_t shift = SECSPERDAY / 2;
+
+ TNtpDatum retv;
+
+ /* set result based on pivot -- ops order is important here */
+ ZERO(retv);
+ retv.secs = ntpcal_date_to_daysec(jd);
+ gpsntp_add_offset(&retv, fofs); /* result is normalized */
+ retv.days = pivot->days;
+
+ /* Manual periodic extension without division: */
+ if (pivot->secs < shift) {
+ int32_t lim = pivot->secs + shift;
+ retv.days -= (retv.secs > lim ||
+ (retv.secs == lim && retv.frac >= pivot->frac));
+ } else {
+ int32_t lim = pivot->secs - shift;
+ retv.days += (retv.secs < lim ||
+ (retv.secs == lim && retv.frac < pivot->frac));
+ }
+ return warp ? _gpsntp_fix_gps_era(&retv) : retv;
+}
+
+/* -----------------------------------------------------------------
+ * Given the time-of-day part of a civil datum and an additional
+ * (fractional) offset, calculate a full time stamp around a given pivot
+ * time so that the difference between the pivot and the resulting time
+ * stamp is less or equal to 12 hours absolute.
+ */
+TNtpDatum
+gpsntp_from_daytime2_ex(
+ TcCivilDate * jd,
+ l_fp fofs,
+ TcNtpDatum * pivot,
+ int/*BOOL*/ warp
+ )
+{
+ TNtpDatum dpiv = *pivot;
+ _norm_ntp_datum(&dpiv);
+ return _gpsntp_from_daytime(jd, fofs, &dpiv, warp);
+}
+
+/* -----------------------------------------------------------------
+ * This works similar to 'gpsntp_from_daytime1()' and actually even uses
+ * it, but the pivot is calculated from the pivot given as 'l_fp' in NTP
+ * time scale. This is in turn expanded around the current system time,
+ * and the resulting absolute pivot is then used to calculate the full
+ * NTP time stamp.
+ */
+TNtpDatum
+gpsntp_from_daytime1_ex(
+ TcCivilDate * jd,
+ l_fp fofs,
+ l_fp pivot,
+ int/*BOOL*/ warp
+ )
+{
+ vint64 pvi64;
+ TNtpDatum dpiv;
+ ntpcal_split split;
+
+ pvi64 = ntpcal_ntp_to_ntp(pivot.l_ui, NULL);
+ split = ntpcal_daysplit(&pvi64);
+ dpiv.days = split.hi;
+ dpiv.secs = split.lo;
+ dpiv.frac = pivot.l_uf;
+ return _gpsntp_from_daytime(jd, fofs, &dpiv, warp);
+}
+
+/* -----------------------------------------------------------------
+ * Given a calendar date, zap it into a GPS time format and then convert
+ * that one into the NTP time scale.
+ */
+TNtpDatum
+gpsntp_from_calendar_ex(
+ TcCivilDate * jd,
+ l_fp fofs,
+ int/*BOOL*/ warp
+ )
+{
+ TGpsDatum gps;
+ gps = gpscal_from_calendar_ex(jd, fofs, warp);
+ return gpsntp_from_gpscal_ex(&gps, FALSE);
+}
+
+/* -----------------------------------------------------------------
+ * create a civil calendar datum from a NTP date representation
+ */
+void
+gpsntp_to_calendar(
+ TCivilDate * cd,
+ TcNtpDatum * nd
+ )
+{
+ memset(cd, 0, sizeof(*cd));
+ ntpcal_rd_to_date(
+ cd,
+ nd->days + DAY_NTP_STARTS + ntpcal_daysec_to_date(
+ cd, nd->secs));
+}
+
+/* -----------------------------------------------------------------
+ * get day/tod representation from week/tow datum
+ */
+TNtpDatum
+gpsntp_from_gpscal_ex(
+ TcGpsDatum * gd,
+ int/*BOOL*/ warp
+ )
+{
+ TNtpDatum retv;
+ vint64 ts64;
+ ntpcal_split split;
+ TGpsDatum date = *gd;
+
+ if (warp) {
+ uint32_t base = basedate_get_gpsweek() + GPSNTP_WSHIFT;
+ _norm_gps_datum(&date);
+ date.weeks = ((date.weeks - base) & 1023u) + base;
+ }
+
+ ts64 = ntpcal_weekjoin(date.weeks, date.wsecs);
+ ts64 = subv64u32(&ts64, (GPSNTP_DSHIFT * SECSPERDAY));
+ split = ntpcal_daysplit(&ts64);
+
+ retv.frac = gd->frac;
+ retv.secs = split.lo;
+ retv.days = split.hi;
+ return retv;
+}
+
+/* -----------------------------------------------------------------
+ * get LFP from ntp datum
+ */
+l_fp
+ntpfp_from_ntpdatum(
+ TcNtpDatum * nd
+ )
+{
+ l_fp retv;
+
+ retv.l_uf = nd->frac;
+ retv.l_ui = nd->days * (uint32_t)SECSPERDAY
+ + nd->secs;
+ return retv;
+}
+
+/* -------------------------------------------------------------------
+ * API functions GPS week calendar
+ *
+ * Here we use a calendar base of 1899-12-31, so the NTP epoch has
+ * { 0, 86400.0 } in this representation.
+ * -------------------------------------------------------------------
+ */
+
+static TGpsDatum
+_gpscal_fix_gps_era(
+ TcGpsDatum * in
+ )
+{
+ /* force result in basedate era
+ *
+ * This is based on calculating the modulus to a power of two,
+ * so signed integer overflow does not affect the result. Which
+ * in turn makes for a very compact calculation...
+ */
+ uint32_t base, week;
+ TGpsDatum out = *in;
+
+ week = out.weeks;
+ base = basedate_get_gpsweek() + GPSNTP_WSHIFT;
+ week = base + ((week - base) & (GPSWEEKS - 1));
+ out.weeks = week;
+ return out;
+}
+
+TGpsDatum
+gpscal_fix_gps_era(
+ TcGpsDatum * in
+ )
+{
+ TGpsDatum out = *in;
+ _norm_gps_datum(&out);
+ return _gpscal_fix_gps_era(&out);
+}
+
+/* -----------------------------------------------------------------
+ * Given a calendar date, zap it into a GPS time format and the do a
+ * proper era mapping in the GPS time scale, based on the GPS base date,
+ * if so requested.
+ *
+ * This function also augments the century if just a 2-digit year
+ * (0..99) is provided on input.
+ *
+ * This is a fail-safe against GPS receivers with an unknown starting
+ * point for their internal calendar calculation and therefore
+ * unpredictable (but reproducible!) rollover behavior. While there
+ * *are* receivers that create a full date in the proper way, many
+ * others just don't. The overall damage is minimized by simply not
+ * trusting the era mapping of the receiver and doing the era assignment
+ * with a configurable base date *inside* ntpd.
+ */
+TGpsDatum
+gpscal_from_calendar_ex(
+ TcCivilDate * jd,
+ l_fp fofs,
+ int/*BOOL*/ warp
+ )
+{
+ /* (-DAY_GPS_STARTS) (mod 7*1024) -- complement of cycle shift */
+ static const uint32_t s_compl_shift =
+ (7 * 1024) - DAY_GPS_STARTS % (7 * 1024);
+
+ TGpsDatum gps;
+ TCivilDate cal;
+ int32_t days, week;
+
+ /* if needed, convert from 2-digit year to full year
+ * !!NOTE!! works only between 1980 and 2079!
+ */
+ cal = *jd;
+ if (cal.year < 80)
+ cal.year += 2000;
+ else if (cal.year < 100)
+ cal.year += 1900;
+
+ /* get RDN from date, possibly adjusting the century */
+again: if (cal.month && cal.monthday) { /* use Y/M/D civil date */
+ days = ntpcal_date_to_rd(&cal);
+ } else { /* using Y/DoY date */
+ days = ntpcal_year_to_ystart(cal.year)
+ + (int32_t)cal.yearday
+ - 1; /* both RDN and yearday start with '1'. */
+ }
+
+ /* Rebase to days after the GPS epoch. 'days' is positive here,
+ * but it might be less than the GPS epoch start. Depending on
+ * the input, we have to do different things to get the desired
+ * result. (Since we want to remap the era anyway, we only have
+ * to retain congruential identities....)
+ */
+
+ if (days >= DAY_GPS_STARTS) {
+ /* simply shift to days since GPS epoch */
+ days -= DAY_GPS_STARTS;
+ } else if (jd->year < 100) {
+ /* Two-digit year on input: add another century and
+ * retry. This can happen only if the century expansion
+ * yielded a date between 1980-01-01 and 1980-01-05,
+ * both inclusive. We have at most one retry here.
+ */
+ cal.year += 100;
+ goto again;
+ } else {
+ /* A very bad date before the GPS epoch. There's not
+ * much we can do, except to add the complement of
+ * DAY_GPS_STARTS % (7 * 1024) here, that is, use a
+ * congruential identity: Add the complement instead of
+ * subtracting the value gives a value with the same
+ * modulus. But of course, now we MUST to go through a
+ * cycle fix... because the date was obviously wrong!
+ */
+ warp = TRUE;
+ days += s_compl_shift;
+ }
+
+ /* Splitting to weeks is simple now: */
+ week = days / 7;
+ days -= week * 7;
+
+ /* re-base on start of NTP with weeks mapped to 1024 weeks
+ * starting with the GPS base day set in the calendar.
+ */
+ gps.weeks = week + GPSNTP_WSHIFT;
+ gps.wsecs = days * SECSPERDAY + ntpcal_date_to_daysec(&cal);
+ gps.frac = 0;
+ gpscal_add_offset(&gps, fofs);
+ return warp ? _gpscal_fix_gps_era(&gps) : gps;
+}
+
+/* -----------------------------------------------------------------
+ * get civil date from week/tow representation
+ */
+void
+gpscal_to_calendar(
+ TCivilDate * cd,
+ TcGpsDatum * wd
+ )
+{
+ TNtpDatum nd;
+
+ memset(cd, 0, sizeof(*cd));
+ nd = gpsntp_from_gpscal_ex(wd, FALSE);
+ gpsntp_to_calendar(cd, &nd);
+}
+
+/* -----------------------------------------------------------------
+ * Given the week and seconds in week, as well as the fraction/offset
+ * (which should/could include the leap seconds offset), unfold the
+ * weeks (which are assumed to have just 10 bits) into expanded weeks
+ * based on the GPS base date derived from the build date (default) or
+ * set by the configuration.
+ *
+ * !NOTE! This function takes RAW GPS weeks, aligned to the GPS start
+ * (1980-01-06) on input. The output weeks will be aligned to NTPD's
+ * week calendar start (1899-12-31)!
+ */
+TGpsDatum
+gpscal_from_gpsweek(
+ uint16_t week,
+ int32_t secs,
+ l_fp fofs
+ )
+{
+ TGpsDatum retv;
+
+ retv.frac = 0;
+ retv.wsecs = secs;
+ retv.weeks = week + GPSNTP_WSHIFT;
+ gpscal_add_offset(&retv, fofs);
+ return _gpscal_fix_gps_era(&retv);
+}
+
+/* -----------------------------------------------------------------
+ * internal work horse for time-of-week expansion
+ */
+static TGpsDatum
+_gpscal_from_weektime(
+ int32_t wsecs,
+ l_fp fofs,
+ TcGpsDatum * pivot
+ )
+{
+ static const int32_t shift = SECSPERWEEK / 2;
+
+ TGpsDatum retv;
+
+ /* set result based on pivot -- ops order is important here */
+ ZERO(retv);
+ retv.wsecs = wsecs;
+ gpscal_add_offset(&retv, fofs); /* result is normalized */
+ retv.weeks = pivot->weeks;
+
+ /* Manual periodic extension without division: */
+ if (pivot->wsecs < shift) {
+ int32_t lim = pivot->wsecs + shift;
+ retv.weeks -= (retv.wsecs > lim ||
+ (retv.wsecs == lim && retv.frac >= pivot->frac));
+ } else {
+ int32_t lim = pivot->wsecs - shift;
+ retv.weeks += (retv.wsecs < lim ||
+ (retv.wsecs == lim && retv.frac < pivot->frac));
+ }
+ return _gpscal_fix_gps_era(&retv);
+}
+
+/* -----------------------------------------------------------------
+ * expand a time-of-week around a pivot given as week datum
+ */
+TGpsDatum
+gpscal_from_weektime2(
+ int32_t wsecs,
+ l_fp fofs,
+ TcGpsDatum * pivot
+ )
+{
+ TGpsDatum wpiv = * pivot;
+ _norm_gps_datum(&wpiv);
+ return _gpscal_from_weektime(wsecs, fofs, &wpiv);
+}
+
+/* -----------------------------------------------------------------
+ * epand a time-of-week around an pivot given as LFP, which in turn
+ * is expanded around the current system time and then converted
+ * into a week datum.
+ */
+TGpsDatum
+gpscal_from_weektime1(
+ int32_t wsecs,
+ l_fp fofs,
+ l_fp pivot
+ )
+{
+ vint64 pvi64;
+ TGpsDatum wpiv;
+ ntpcal_split split;
+
+ /* get 64-bit pivot in NTP epoch */
+ pvi64 = ntpcal_ntp_to_ntp(pivot.l_ui, NULL);
+
+ /* convert to weeks since 1899-12-31 and seconds in week */
+ pvi64 = addv64u32(&pvi64, (GPSNTP_DSHIFT * SECSPERDAY));
+ split = ntpcal_weeksplit(&pvi64);
+
+ wpiv.weeks = split.hi;
+ wpiv.wsecs = split.lo;
+ wpiv.frac = pivot.l_uf;
+ return _gpscal_from_weektime(wsecs, fofs, &wpiv);
+}
+
+/* -----------------------------------------------------------------
+ * get week/tow representation from day/tod datum
+ */
+TGpsDatum
+gpscal_from_gpsntp(
+ TcNtpDatum * gd
+ )
+{
+ TGpsDatum retv;
+ vint64 ts64;
+ ntpcal_split split;
+
+ ts64 = ntpcal_dayjoin(gd->days, gd->secs);
+ ts64 = addv64u32(&ts64, (GPSNTP_DSHIFT * SECSPERDAY));
+ split = ntpcal_weeksplit(&ts64);
+
+ retv.frac = gd->frac;
+ retv.wsecs = split.lo;
+ retv.weeks = split.hi;
+ return retv;
+}
+
+/* -----------------------------------------------------------------
+ * convert week/tow to LFP stamp
+ */
+l_fp
+ntpfp_from_gpsdatum(
+ TcGpsDatum * gd
+ )
+{
+ l_fp retv;
+
+ retv.l_uf = gd->frac;
+ retv.l_ui = gd->weeks * (uint32_t)SECSPERWEEK
+ + (uint32_t)gd->wsecs
+ - (uint32_t)SECSPERDAY * GPSNTP_DSHIFT;
+ return retv;
+}
+
+/* -*-EOF-*- */
--- contrib/ntp/libntp/recvbuff.c.orig
+++ contrib/ntp/libntp/recvbuff.c
@@ -226,7 +226,6 @@
LOCK();
-#ifdef HAVE_SIGNALED_IO
/*
* make sure there are free buffers when we
* wander off to do lengthy packet processing with
@@ -241,7 +240,6 @@
*/
create_buffers(RECV_INC);
}
-#endif
/*
* try to grab a full buffer
--- contrib/ntp/libntp/statestr.c.orig
+++ contrib/ntp/libntp/statestr.c
@@ -181,16 +181,23 @@
{ RES_IGNORE, "ignore", 0 },
{ RES_DONTSERVE, "noserve", "serve" },
{ RES_DONTTRUST, "notrust", "trust" },
+ { RES_VERSION, "version", 0 },
+ { RES_NOPEER, "nopeer", "peer" },
+ { RES_NOEPEER, "noepeer", "epeer" },
+ { RES_LIMITED, "limited", 0 },
+
{ RES_NOQUERY, "noquery", "query" },
{ RES_NOMODIFY, "nomodify", 0 },
- { RES_NOPEER, "nopeer", "peer" },
- { RES_NOEPEER, "noepeer", "epeer" },
{ RES_NOTRAP, "notrap", "trap" },
{ RES_LPTRAP, "lptrap", 0 },
- { RES_LIMITED, "limited", 0 },
- { RES_VERSION, "version", 0 },
+
{ RES_KOD, "kod", 0 },
+ { RES_MSSNTP, "mssntp", 0 },
{ RES_FLAKE, "flake", 0 },
+ { RES_NOMRULIST, "nomrulist", 0 },
+
+ { RES_SRVRSPFUZ, "serverresponse fuzz", 0 },
+
/* not used with getcode(), no terminating entry needed */
};
@@ -418,7 +425,7 @@
const char *
res_access_flags(
- u_short af
+ u_int32 af
)
{
return decode_bitflags(af, " ", res_access_bits,
--- contrib/ntp/libntp/systime.c.orig
+++ contrib/ntp/libntp/systime.c
@@ -619,12 +619,11 @@
{
#if SIZEOF_TIME_T > 4
- struct timeval timetv, tvlast;
+ struct timeval tvbase, tvlast;
struct timespec timets;
- uint32_t tdiff;
-
- timetv.tv_sec = basedate_get_erabase();
+ tvbase.tv_sec = basedate_get_erabase();
+ tvbase.tv_usec = 0;
/* ---> time-critical path starts ---> */
@@ -636,14 +635,10 @@
tvlast.tv_usec -= 1000000;
tvlast.tv_sec += 1;
}
- timetv.tv_usec = tvlast.tv_usec;
- tdiff = (uint32_t)(tvlast.tv_sec & UINT32_MAX) -
- (uint32_t)(timetv.tv_sec & UINT32_MAX);
- timetv.tv_sec += tdiff;
- if (timetv.tv_sec != tvlast.tv_sec) {
+ if (tvbase.tv_sec > tvlast.tv_sec) {
/* now set new system time */
- if (ntp_set_tod(&timetv, NULL) != 0) {
+ if (ntp_set_tod(&tvbase, NULL) != 0) {
msyslog(LOG_ERR, "clamp-systime: %m");
return FALSE;
}
@@ -650,7 +645,7 @@
} else {
msyslog(LOG_INFO,
"clamp-systime: clock (%s) in allowed range",
- tv_fmt_libbuf(&timetv));
+ tv_fmt_libbuf(&tvlast));
return FALSE;
}
@@ -657,7 +652,7 @@
/* <--- time-critical path ended with 'ntp_set_tod()' <--- */
sys_residual = 0;
- lamport_violated = (timetv.tv_sec < tvlast.tv_sec);
+ lamport_violated = (tvbase.tv_sec < tvlast.tv_sec);
if (step_callback)
(*step_callback)();
@@ -668,15 +663,16 @@
_clear_adjtime();
# endif
- update_uwtmp(timetv, tvlast);
+ update_uwtmp(tvbase, tvlast);
msyslog(LOG_WARNING,
"clamp-systime: clock stepped from %s to %s!",
- tv_fmt_libbuf(&tvlast), tv_fmt_libbuf(&timetv));
+ tv_fmt_libbuf(&tvlast), tv_fmt_libbuf(&tvbase));
return TRUE;
#else
- return 0;
+ return FALSE;
+
#endif
}
--- contrib/ntp/libntp/timespecops.c.orig
+++ contrib/ntp/libntp/timespecops.c
@@ -0,0 +1,233 @@
+/*
+ * timespecops.c -- calculations on 'struct timespec' values
+ *
+ * Written by Juergen Perlinger (perlinger@ntp.org) for the NTP project.
+ * The contents of 'html/copyright.html' apply.
+ *
+ */
+
+#include "config.h"
+
+#include <sys/types.h>
+#include <stdio.h>
+#include <math.h>
+
+#include "ntp.h"
+#include "timetoa.h"
+#include "timespecops.h"
+
+
+/* nanoseconds per second */
+#define NANOSECONDS 1000000000
+
+/* conversion between l_fp fractions and nanoseconds */
+#ifdef HAVE_U_INT64
+# define FTOTVN(tsf) \
+ ((int32) \
+ (((u_int64)(tsf) * NANOSECONDS + 0x80000000) >> 32))
+# define TVNTOF(tvu) \
+ ((u_int32) \
+ ((((u_int64)(tvu) << 32) + NANOSECONDS / 2) / \
+ NANOSECONDS))
+#else
+# define NSECFRAC (FRAC / NANOSECONDS)
+# define FTOTVN(tsf) \
+ ((int32)((tsf) / NSECFRAC + 0.5))
+# define TVNTOF(tvu) \
+ ((u_int32)((tvu) * NSECFRAC + 0.5))
+#endif
+
+
+
+/* make sure nanoseconds are in nominal range */
+struct timespec
+normalize_tspec(
+ struct timespec x
+ )
+{
+#if SIZEOF_LONG > 4
+ long z;
+
+ /*
+ * tv_nsec is of type 'long', and on a 64-bit machine using only
+ * loops becomes prohibitive once the upper 32 bits get
+ * involved. On the other hand, division by constant should be
+ * fast enough; so we do a division of the nanoseconds in that
+ * case. The floor adjustment step follows with the standard
+ * normalisation loops. And labs() is intentionally not used
+ * here: it has implementation-defined behaviour when applied
+ * to LONG_MIN.
+ */
+ if (x.tv_nsec < -3l * NANOSECONDS ||
+ x.tv_nsec > 3l * NANOSECONDS) {
+ z = x.tv_nsec / NANOSECONDS;
+ x.tv_nsec -= z * NANOSECONDS;
+ x.tv_sec += z;
+ }
+#endif
+ /* since 10**9 is close to 2**32, we don't divide but do a
+ * normalisation in a loop; this takes 3 steps max, and should
+ * outperform a division even if the mul-by-inverse trick is
+ * employed. */
+ if (x.tv_nsec < 0)
+ do {
+ x.tv_nsec += NANOSECONDS;
+ x.tv_sec--;
+ } while (x.tv_nsec < 0);
+ else if (x.tv_nsec >= NANOSECONDS)
+ do {
+ x.tv_nsec -= NANOSECONDS;
+ x.tv_sec++;
+ } while (x.tv_nsec >= NANOSECONDS);
+
+ return x;
+}
+
+/* x = abs(a) */
+struct timespec
+abs_tspec(
+ struct timespec a
+ )
+{
+ struct timespec c;
+
+ c = normalize_tspec(a);
+ if (c.tv_sec < 0) {
+ if (c.tv_nsec != 0) {
+ c.tv_sec = -c.tv_sec - 1;
+ c.tv_nsec = NANOSECONDS - c.tv_nsec;
+ } else {
+ c.tv_sec = -c.tv_sec;
+ }
+ }
+
+ return c;
+}
+
+/*
+ * compare previously-normalised a and b
+ * return 1 / 0 / -1 if a < / == / > b
+ */
+int
+cmp_tspec(
+ struct timespec a,
+ struct timespec b
+ )
+{
+ int r;
+
+ r = (a.tv_sec > b.tv_sec) - (a.tv_sec < b.tv_sec);
+ if (0 == r)
+ r = (a.tv_nsec > b.tv_nsec) -
+ (a.tv_nsec < b.tv_nsec);
+
+ return r;
+}
+
+/*
+ * test previously-normalised a
+ * return 1 / 0 / -1 if a < / == / > 0
+ */
+int
+test_tspec(
+ struct timespec a
+ )
+{
+ int r;
+
+ r = (a.tv_sec > 0) - (a.tv_sec < 0);
+ if (r == 0)
+ r = (a.tv_nsec > 0);
+
+ return r;
+}
+
+/*
+ * convert to l_fp type, relative and absolute
+ */
+
+/* convert from timespec duration to l_fp duration */
+l_fp
+tspec_intv_to_lfp(
+ struct timespec x
+ )
+{
+ struct timespec v;
+ l_fp y;
+
+ v = normalize_tspec(x);
+ y.l_uf = TVNTOF(v.tv_nsec);
+ y.l_i = (int32)v.tv_sec;
+
+ return y;
+}
+
+/* convert from l_fp type, relative signed/unsigned and absolute */
+struct timespec
+lfp_intv_to_tspec(
+ l_fp x
+ )
+{
+ struct timespec out;
+ l_fp absx;
+ int neg;
+
+ neg = L_ISNEG(&x);
+ absx = x;
+ if (neg) {
+ L_NEG(&absx);
+ }
+ out.tv_nsec = FTOTVN(absx.l_uf);
+ out.tv_sec = absx.l_i;
+ if (neg) {
+ out.tv_sec = -out.tv_sec;
+ out.tv_nsec = -out.tv_nsec;
+ out = normalize_tspec(out);
+ }
+
+ return out;
+}
+
+struct timespec
+lfp_uintv_to_tspec(
+ l_fp x
+ )
+{
+ struct timespec out;
+
+ out.tv_nsec = FTOTVN(x.l_uf);
+ out.tv_sec = x.l_ui;
+
+ return out;
+}
+
+/*
+ * absolute (timestamp) conversion. Input is time in NTP epoch, output
+ * is in UN*X epoch. The NTP time stamp will be expanded around the
+ * pivot time *p or the current time, if p is NULL.
+ */
+struct timespec
+lfp_stamp_to_tspec(
+ l_fp x,
+ const time_t * p
+ )
+{
+ struct timespec out;
+ vint64 sec;
+
+ sec = ntpcal_ntp_to_time(x.l_ui, p);
+ out.tv_nsec = FTOTVN(x.l_uf);
+
+ /* copying a vint64 to a time_t needs some care... */
+#if SIZEOF_TIME_T <= 4
+ out.tv_sec = (time_t)sec.d_s.lo;
+#elif defined(HAVE_INT64)
+ out.tv_sec = (time_t)sec.q_s;
+#else
+ out.tv_sec = ((time_t)sec.d_s.hi << 32) | sec.d_s.lo;
+#endif
+
+ return out;
+}
+
+/* -*-EOF-*- */
--- contrib/ntp/libntp/timexsup.c.orig
+++ contrib/ntp/libntp/timexsup.c
@@ -0,0 +1,83 @@
+/*
+ * timexsup.c - 'struct timex' support functions
+ *
+ * Written by Juergen Perlinger (perlinger@ntp.org) for the NTP project.
+ * The contents of 'html/copyright.html' apply.
+ */
+
+#include "config.h"
+#include "timexsup.h"
+#include <limits.h>
+#include <math.h>
+
+#ifdef HAVE_SYS_TIMEX_H
+# include <sys/timex.h>
+#endif
+
+#if defined(MOD_NANO) != defined(STA_NANO)
+# warning inconsistent definitions of MOD_NANO vs STA_NANO
+#endif
+
+static long
+clamp_rounded(
+ double dval
+ )
+{
+ /* round */
+ dval = floor(dval + 0.5);
+
+ /* clamp / saturate */
+ if (dval >= LONG_MAX)
+ return LONG_MAX;
+ if (dval <= LONG_MIN)
+ return LONG_MIN;
+ return (long)dval;
+
+}
+double
+dbl_from_var_long(
+ long lval,
+ int status
+ )
+{
+#ifdef STA_NANO
+ if (status & STA_NANO)
+ return (double)lval * 1e-9;
+#else
+ (void)status;
+#endif
+ return (double)lval * 1e-6;
+}
+
+double
+dbl_from_usec_long(
+ long lval
+ )
+{
+ return (double)lval * 1e-6;
+}
+
+long
+var_long_from_dbl(
+ double dval,
+ unsigned int * modes
+ )
+{
+#ifdef MOD_NANO
+ *modes |= MOD_NANO;
+ dval *= 1e+9;
+#else
+ (void)modes;
+ dval *= 1e+6;
+#endif
+ return clamp_rounded(dval);
+}
+
+long
+usec_long_from_dbl(
+ double dval
+ )
+{
+ return clamp_rounded(dval * 1e+6);
+}
+
--- contrib/ntp/libparse/Makefile.am.orig
+++ contrib/ntp/libparse/Makefile.am
@@ -164,9 +164,11 @@
parsesolaris.o: sys/systm.h
+# [Bug3608] Solaris has inconsistent definitions of ffs() and fls(). Drop the
+# ones from 'systm.h'.
sys/systm.h:
-mkdir sys
- sed -e '/ffs(.*)/d' < /usr/include/sys/systm.h > sys/systm.h
+ sed -e '/f[fl]s(.*)/d' < /usr/include/sys/systm.h > sys/systm.h
## check-libparse is invoked by ntpd/Makefile.am
check-libparse: $(noinst_LIBRARIES)
--- contrib/ntp/libparse/Makefile.in.orig
+++ contrib/ntp/libparse/Makefile.in
@@ -1000,9 +1000,11 @@
parsesolaris.o: sys/systm.h
+# [Bug3608] Solaris has inconsistent definitions of ffs() and fls(). Drop the
+# ones from 'systm.h'.
sys/systm.h:
-mkdir sys
- sed -e '/ffs(.*)/d' < /usr/include/sys/systm.h > sys/systm.h
+ sed -e '/f[fl]s(.*)/d' < /usr/include/sys/systm.h > sys/systm.h
check-libparse: $(noinst_LIBRARIES)
@: do-nothing action to avoid default SCCS get
--- contrib/ntp/libparse/clk_rawdcf.c.orig
+++ contrib/ntp/libparse/clk_rawdcf.c
@@ -220,6 +220,58 @@
return psum;
}
+static int/*BOOL*/
+zeller_expand(
+ clocktime_t *clock_time,
+ unsigned int wd
+ )
+{
+ unsigned int y = (unsigned int)clock_time->year;
+ unsigned int m = (unsigned int)clock_time->month - 1u;
+ unsigned int d = (unsigned int)clock_time->day - 1u;
+ unsigned int c;
+
+ /* Check basic constraints first. */
+ if ((y >= 100u) || (m >= 12u) || (d >= 31u) || (--wd >= 7u))
+ return FALSE;
+
+ /* Get weekday of date in 1st century by a variation on Zeller's
+ * congruence. All operands are non-negative, and the month
+ * formula is adjusted to use a divider of 32, so we can do a
+ * shift instead of a 'true' division:
+ */
+ if ((m += 10u) >= 12u) /* shift base to 0000-03-01 */
+ m -= 12u;
+ else if (--y >= 100u)
+ y += 100;
+ d += y + (y >> 2) + 2u; /* year-related share */
+ d += (m * 83u + 16u) >> 5; /* month-related share */
+
+ /* The next step combines the exact division by modular inverse
+ * with the (mod 7) step in such way that no true division and
+ * only one multiplication is needed. The multiplier is
+ * M <- ceil((3*8)/7 * 2**29)
+ * and combines multiplication by invmod(5, 7) -> 3 and modulus
+ * by 7 transformation to (mod 8) in one step.
+ * Note that 252 == 0 (mod 7) and that 'd' is less than 185,
+ * so the number to invert and reduce is strictly positive. In
+ * the end, 'c' is number of centuries since start of a great
+ * cycle and must be in [0..3] or we had bad input.
+ */
+ c = (((252u + wd - d) * 0x6db6db6eU) >> 29) & 7u;
+ if (c >= 4)
+ return FALSE;
+ /* undo calendar base shift now */
+ if ((m > 9u) && (++y >= 100u)) {
+ y -= 100u;
+ c = (c + 1u) & 3u;
+ }
+ /* combine year with centuries & map to [1970..2369] */
+ y += (c * 100u);
+ clock_time->year = (int)y + ((y < 370u) ? 2000 : 1600);
+ return TRUE;
+}
+
static u_long
convert_rawdcf(
unsigned char *buffer,
@@ -288,6 +340,9 @@
clock_time->year = ext_bf(buffer, DCF_Y10, dcfprm->zerobits);
clock_time->year = TIMES10(clock_time->year) + ext_bf(buffer, DCF_Y1, dcfprm->zerobits);
+ if (!zeller_expand(clock_time, ext_bf(buffer, DCF_DW, dcfprm->zerobits)))
+ return CVT_FAIL|CVT_BADFMT;
+
switch (ext_bf(buffer, DCF_Z, dcfprm->zerobits))
{
case DCF_Z_MET:
--- contrib/ntp/ntpd/Makefile.am.orig
+++ contrib/ntp/ntpd/Makefile.am
@@ -25,7 +25,7 @@
if NTP_CROSSCOMPILE
CHECK_SAVECONFIG=
else
-CHECK_SAVECONFIG= check-saveconfig
+CHECK_SAVECONFIG= check-saveconfig check-pslsaveconfig
endif
else !SAVECONFIG_ENABLED
CHECK_SAVECONFIG=
@@ -110,9 +110,20 @@
$(NULL)
CLEANFILES = \
+ check-psl0 \
+ check-psl1 \
+ check-psl2 \
+ check-pslsaveconfig \
check-saveconfig \
compsave.conf \
+ compsave.conf+ \
k-g-u-submake \
+ psl0save.conf \
+ psl0save.conf+ \
+ psl1save.conf \
+ psl1save.conf+ \
+ psl2save.conf \
+ psl2save.conf+ \
$(EXTRA_PROGRAMS) \
$(NULL)
@@ -147,6 +158,9 @@
ntpd.html \
ntpd.texi \
ntpdbase-opts.def \
+ psl0.conf \
+ psl1.conf \
+ psl2.conf \
refclock_msfees.c \
$(B_S_DIST) \
$(NULL)
@@ -345,13 +359,13 @@
$(srcdir)/invoke-ntp.keys.texi: $(srcdir)/ntp.keys.def $(std_def_list)
$(run_ag) -Tagtexi-file.tpl -DLEVEL=section ntp.keys.def
-$(srcdir)/ntp.conf.html: $(srcdir)/ntp.conf.texi $(top_srcdir)/sntp/include/version.texi
+$(srcdir)/ntp.conf.html: $(srcdir)/ntp.conf.texi $(srcdir)/invoke-ntp.conf.texi $(top_srcdir)/sntp/include/version.texi
cd $(srcdir) && ( makeinfo --force --html --no-split -o ntp.conf.html ntp.conf.texi || true )
-$(srcdir)/ntp.keys.html: $(srcdir)/ntp.keys.texi $(top_srcdir)/sntp/include/version.texi
+$(srcdir)/ntp.keys.html: $(srcdir)/ntp.keys.texi $(srcdir)/invoke-ntp.keys.texi $(top_srcdir)/sntp/include/version.texi
cd $(srcdir) && ( makeinfo --force --html --no-split -o ntp.keys.html ntp.keys.texi || true )
-$(srcdir)/ntpd.html: $(srcdir)/ntpd.texi $(top_srcdir)/sntp/include/version.texi
+$(srcdir)/ntpd.html: $(srcdir)/ntpd.texi $(srcdir)/invoke-ntpd.texi $(top_srcdir)/sntp/include/version.texi
cd $(srcdir) && ( makeinfo --force --html --no-split -o ntpd.html ntpd.texi || true )
###
@@ -413,13 +427,41 @@
$(PROGRAMS): $(LDADD)
-compsave.conf: ntpd complete.conf
- ./ntpd --configfile complete.conf --saveconfigquit $@
-
check-saveconfig: complete.conf compsave.conf
-diff -u complete.conf compsave.conf
cmp complete.conf compsave.conf && echo stamp > $@
+compsave.conf: ntpd complete.conf
+ ./ntpd --configfile complete.conf --saveconfigquit $@+
+ grep -v '^#' $@+ > $@
+
+check-pslsaveconfig: check-psl0 check-psl1 check-psl2
+ echo stamp > $@
+
+check-psl0: psl0.conf psl0save.conf
+ -diff -u $< psl0save.conf
+ cmp $< psl0save.conf && echo stamp > $@
+
+psl0save.conf: psl0.conf ntpd
+ ./ntpd --configfile $< --saveconfigquit $@+
+ grep -v '^#' $@+ > $@
+
+check-psl1: psl1.conf psl1save.conf
+ -diff -u $< psl1save.conf
+ cmp $< psl1save.conf && echo stamp > $@
+
+psl1save.conf: psl1.conf ntpd
+ ./ntpd --configfile $< --saveconfigquit $@+
+ grep -v '^#' $@+ > $@
+
+check-psl2: psl2.conf psl2save.conf
+ -diff -u $< psl2save.conf
+ cmp $< psl2save.conf && echo stamp > $@
+
+psl2save.conf: psl2.conf ntpd
+ ./ntpd --configfile $< --saveconfigquit $@+
+ grep -v '^#' $@+ > $@
+
../libntp/libntpsim.a:
cd ../libntp && $(MAKE) $(AM_MAKEFLAGS) libntpsim.a
--- contrib/ntp/ntpd/Makefile.in.orig
+++ contrib/ntp/ntpd/Makefile.in
@@ -615,7 +615,7 @@
# LDADD might need RESLIB and ADJLIB.
LDADD = version.o libntpd.a $(LIBPARSE)
AM_YFLAGS = -d -t -r all
-@NTP_CROSSCOMPILE_FALSE@@SAVECONFIG_ENABLED_TRUE@CHECK_SAVECONFIG = check-saveconfig
+@NTP_CROSSCOMPILE_FALSE@@SAVECONFIG_ENABLED_TRUE@CHECK_SAVECONFIG = check-saveconfig check-pslsaveconfig
@NTP_CROSSCOMPILE_TRUE@@SAVECONFIG_ENABLED_TRUE@CHECK_SAVECONFIG =
@SAVECONFIG_ENABLED_FALSE@CHECK_SAVECONFIG =
@VPATH_HACK_FALSE@VPHACK =
@@ -667,8 +667,11 @@
$(man_MANS) \
$(NULL)
-CLEANFILES = check-saveconfig compsave.conf k-g-u-submake \
- $(EXTRA_PROGRAMS) $(NULL) check-libopts check-libntp .deps-ver
+CLEANFILES = check-psl0 check-psl1 check-psl2 check-pslsaveconfig \
+ check-saveconfig compsave.conf compsave.conf+ k-g-u-submake \
+ psl0save.conf psl0save.conf+ psl1save.conf psl1save.conf+ \
+ psl2save.conf psl2save.conf+ $(EXTRA_PROGRAMS) $(NULL) \
+ check-libopts check-libntp .deps-ver
EXTRA_DIST = \
complete.conf.in \
invoke-ntp.conf.menu \
@@ -700,6 +703,9 @@
ntpd.html \
ntpd.texi \
ntpdbase-opts.def \
+ psl0.conf \
+ psl1.conf \
+ psl2.conf \
refclock_msfees.c \
$(B_S_DIST) \
$(NULL)
@@ -1743,13 +1749,13 @@
$(srcdir)/invoke-ntp.keys.texi: $(srcdir)/ntp.keys.def $(std_def_list)
$(run_ag) -Tagtexi-file.tpl -DLEVEL=section ntp.keys.def
-$(srcdir)/ntp.conf.html: $(srcdir)/ntp.conf.texi $(top_srcdir)/sntp/include/version.texi
+$(srcdir)/ntp.conf.html: $(srcdir)/ntp.conf.texi $(srcdir)/invoke-ntp.conf.texi $(top_srcdir)/sntp/include/version.texi
cd $(srcdir) && ( makeinfo --force --html --no-split -o ntp.conf.html ntp.conf.texi || true )
-$(srcdir)/ntp.keys.html: $(srcdir)/ntp.keys.texi $(top_srcdir)/sntp/include/version.texi
+$(srcdir)/ntp.keys.html: $(srcdir)/ntp.keys.texi $(srcdir)/invoke-ntp.keys.texi $(top_srcdir)/sntp/include/version.texi
cd $(srcdir) && ( makeinfo --force --html --no-split -o ntp.keys.html ntp.keys.texi || true )
-$(srcdir)/ntpd.html: $(srcdir)/ntpd.texi $(top_srcdir)/sntp/include/version.texi
+$(srcdir)/ntpd.html: $(srcdir)/ntpd.texi $(srcdir)/invoke-ntpd.texi $(top_srcdir)/sntp/include/version.texi
cd $(srcdir) && ( makeinfo --force --html --no-split -o ntpd.html ntpd.texi || true )
###
@@ -1811,13 +1817,41 @@
$(PROGRAMS): $(LDADD)
-compsave.conf: ntpd complete.conf
- ./ntpd --configfile complete.conf --saveconfigquit $@
-
check-saveconfig: complete.conf compsave.conf
-diff -u complete.conf compsave.conf
cmp complete.conf compsave.conf && echo stamp > $@
+compsave.conf: ntpd complete.conf
+ ./ntpd --configfile complete.conf --saveconfigquit $@+
+ grep -v '^#' $@+ > $@
+
+check-pslsaveconfig: check-psl0 check-psl1 check-psl2
+ echo stamp > $@
+
+check-psl0: psl0.conf psl0save.conf
+ -diff -u $< psl0save.conf
+ cmp $< psl0save.conf && echo stamp > $@
+
+psl0save.conf: psl0.conf ntpd
+ ./ntpd --configfile $< --saveconfigquit $@+
+ grep -v '^#' $@+ > $@
+
+check-psl1: psl1.conf psl1save.conf
+ -diff -u $< psl1save.conf
+ cmp $< psl1save.conf && echo stamp > $@
+
+psl1save.conf: psl1.conf ntpd
+ ./ntpd --configfile $< --saveconfigquit $@+
+ grep -v '^#' $@+ > $@
+
+check-psl2: psl2.conf psl2save.conf
+ -diff -u $< psl2save.conf
+ cmp $< psl2save.conf && echo stamp > $@
+
+psl2save.conf: psl2.conf ntpd
+ ./ntpd --configfile $< --saveconfigquit $@+
+ grep -v '^#' $@+ > $@
+
../libntp/libntpsim.a:
cd ../libntp && $(MAKE) $(AM_MAKEFLAGS) libntpsim.a
--- contrib/ntp/ntpd/cmd_args.c.orig
+++ contrib/ntp/ntpd/cmd_args.c
@@ -71,7 +71,7 @@
}
if (HAVE_OPT( DRIFTFILE ))
- stats_config(STATS_FREQ_FILE, OPT_ARG( DRIFTFILE ));
+ stats_config(STATS_FREQ_FILE, OPT_ARG( DRIFTFILE ), 0);
if (HAVE_OPT( PANICGATE ))
allow_panic = TRUE;
@@ -90,7 +90,7 @@
getauthkeys(OPT_ARG( KEYFILE ));
if (HAVE_OPT( PIDFILE ))
- stats_config(STATS_PID_FILE, OPT_ARG( PIDFILE ));
+ stats_config(STATS_PID_FILE, OPT_ARG( PIDFILE ), 0);
if (HAVE_OPT( QUIT ))
mode_ntpdate = TRUE;
@@ -110,7 +110,7 @@
} while (0);
if (HAVE_OPT( STATSDIR ))
- stats_config(STATS_STATSDIR, OPT_ARG( STATSDIR ));
+ stats_config(STATS_STATSDIR, OPT_ARG( STATSDIR ), 0);
if (HAVE_OPT( TRUSTEDKEY )) {
int ct = STACKCT_OPT( TRUSTEDKEY );
--- contrib/ntp/ntpd/complete.conf.in.orig
+++ contrib/ntp/ntpd/complete.conf.in
@@ -1,7 +1,8 @@
saveconfigdir "/etc/ntp/conf"
-driftfile "/etc/ntp.drift" 1e-7
+driftfile "/etc/ntp.drift"
logfile "/var/log/ntp.log"
-leapfile "/etc/ntp.leapseconds"
+leapfile "/etc/ntp.leapseconds" ignorehash
+leapfile "/etc/ntp.leapseconds" checkhash
@HAVE_LEAPSMEARINTERVAL@
nonvolatile 1e-7
ident "udent"
@@ -31,7 +32,7 @@
tinker allan 1500 dispersion 15 freq 0 huffpuff 7200 panic 1000 step 0.128 stepout 900 tick 0.01
broadcastclient
server 127.127.1.0 mode 4294967295 prefer true
-fudge 127.127.1.0 time1 0 time2 1.1 stratum 7 refid Abcd
+fudge 127.127.1.0 time1 0 time2 1.1 stratum 7 refid Abcd minjitter 0.2
pool 0.north-america.pool.ntp.org. iburst preempt
server 1.north-america.pool.ntp.org. iburst
server -4 2.north-america.pool.ntp.org. minpoll 6 maxpoll 10 iburst
@@ -38,7 +39,7 @@
server -6 ntp.davehart.net. minpoll 6 maxpoll 10 version 5 burst iburst
peer -6 davehart.broker.freenet6.net. ident "autokey-group" xleave autokey
peer -4 192.168.192.168 key 1 noselect
-server [fe80::123%1]
+server [fe80::123%1] xmtnonce
broadcast 192.168.192.255
manycastclient 224.0.1.1
manycastclient ff05::101
@@ -46,6 +47,7 @@
multicastclient 224.0.1.1 ff05::101
mru maxage 64 mindepth 600 initalloc 600 initmem 16 incalloc 99 incmem 4 maxdepth 1024 maxmem 4096
discard minimum 1 average 3 monitor 3000
+pollskewlist 3 1|2 4 3|4 default 6|7
restrict default ippeerlimit -1
restrict default ippeerlimit 0 nomodify limited kod noserve nomrulist
restrict source ippeerlimit 1
@@ -53,6 +55,7 @@
restrict trusted.host.name.example.com. ippeerlimit -1 nomodify
restrict [fe80::1] mask [ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff] ippeerlimit -1
restrict 127.0.0.1 mask 255.255.255.255 ippeerlimit -1
+restrict 127.0.0.2 ippeerlimit -1 serverresponse fuzz
restrict ::1 ippeerlimit -1
interface drop ipv6
interface ignore ipv4
--- contrib/ntp/ntpd/invoke-ntp.conf.texi.orig
+++ contrib/ntp/ntpd/invoke-ntp.conf.texi
@@ -6,7 +6,7 @@
#
# EDIT THIS FILE WITH CAUTION (invoke-ntp.conf.texi)
#
-# It has been AutoGen-ed February 20, 2019 at 09:56:39 AM by AutoGen 5.18.5
+# It has been AutoGen-ed March 3, 2020 at 05:40:57 PM by AutoGen 5.18.5
# From the definitions ntp.conf.def
# and the template file agtexi-file.tpl
@end ignore
@@ -134,8 +134,8 @@
See IPv6 references for the
equivalent classes for that address family.
@table @asis
-@item @code{pool} @kbd{address} @code{[@code{burst}]} @code{[@code{iburst}]} @code{[@code{version} @kbd{version}]} @code{[@code{prefer}]} @code{[@code{minpoll} @kbd{minpoll}]} @code{[@code{maxpoll} @kbd{maxpoll}]}
-@item @code{server} @kbd{address} @code{[@code{key} @kbd{key} @kbd{|} @code{autokey}]} @code{[@code{burst}]} @code{[@code{iburst}]} @code{[@code{version} @kbd{version}]} @code{[@code{prefer}]} @code{[@code{minpoll} @kbd{minpoll}]} @code{[@code{maxpoll} @kbd{maxpoll}]} @code{[@code{true}]}
+@item @code{pool} @kbd{address} @code{[@code{burst}]} @code{[@code{iburst}]} @code{[@code{version} @kbd{version}]} @code{[@code{prefer}]} @code{[@code{minpoll} @kbd{minpoll}]} @code{[@code{maxpoll} @kbd{maxpoll}]} @code{[@code{xmtnonce}]}
+@item @code{server} @kbd{address} @code{[@code{key} @kbd{key} @kbd{|} @code{autokey}]} @code{[@code{burst}]} @code{[@code{iburst}]} @code{[@code{version} @kbd{version}]} @code{[@code{prefer}]} @code{[@code{minpoll} @kbd{minpoll}]} @code{[@code{maxpoll} @kbd{maxpoll}]} @code{[@code{true}]} @code{[@code{xmtnonce}]}
@item @code{peer} @kbd{address} @code{[@code{key} @kbd{key} @kbd{|} @code{autokey}]} @code{[@code{version} @kbd{version}]} @code{[@code{prefer}]} @code{[@code{minpoll} @kbd{minpoll}]} @code{[@code{maxpoll} @kbd{maxpoll}]} @code{[@code{true}]} @code{[@code{xleave}]}
@item @code{broadcast} @kbd{address} @code{[@code{key} @kbd{key} @kbd{|} @code{autokey}]} @code{[@code{version} @kbd{version}]} @code{[@code{prefer}]} @code{[@code{minpoll} @kbd{minpoll}]} @code{[@code{ttl} @kbd{ttl}]} @code{[@code{xleave}]}
@item @code{manycastclient} @kbd{address} @code{[@code{key} @kbd{key} @kbd{|} @code{autokey}]} @code{[@code{version} @kbd{version}]} @code{[@code{prefer}]} @code{[@code{minpoll} @kbd{minpoll}]} @code{[@code{maxpoll} @kbd{maxpoll}]} @code{[@code{ttl} @kbd{ttl}]}
@@ -305,9 +305,6 @@
The server is discarded by the selection algroithm.
@item @code{preempt}
Says the association can be preempted.
-@item @code{true}
-Marks the server as a truechimer.
-Use this option only for testing.
@item @code{prefer}
Marks the server as preferred.
All other things being equal,
@@ -321,7 +318,8 @@
@file{/usr/share/doc/ntp})
for further information.
@item @code{true}
-Forces the association to always survive the selection and clustering algorithms.
+Marks the server as a truechimer,
+forcing the association to always survive the selection and clustering algorithms.
This option should almost certainly
@emph{only}
be used while testing an association.
@@ -349,6 +347,13 @@
and
@code{broadcast}
modes only, this flag enables interleave mode.
+@item @code{xmtnonce}
+Valid only for
+@code{server}
+and
+@code{pool}
+modes, this flag puts a random number in the packet's transmit timestamp.
+
@end table
@subsubsection Auxiliary Commands
@table @asis
@@ -1622,6 +1627,10 @@
@code{ntpport}
is considered more specific and
is sorted later in the list.
+@item @code{serverresponse fuzz}
+When reponding to server requests,
+fuzz the low order bits of the
+@code{reftime}.
@item @code{version}
Deny packets that do not match the current NTP version.
@end table
@@ -2766,6 +2775,21 @@
one telephone number used to dial the telephone JJY service.
The Hayes command ATDT is normally prepended to the number.
The number can contain other modem control codes as well.
+@item @code{pollskewlist} @code{[@kbd{poll} @kbd{value} | @kbd{value}]} @kbd{...} @code{[@code{default} @kbd{value} | @kbd{value}]}
+Enable skewing of our poll requests to our servers.
+@kbd{poll}
+is a number between 3 and 17 inclusive, identifying a specific poll interval.
+A poll interval is 2^n seconds in duration,
+so a poll value of 3 corresponds to 8 seconds
+and
+a poll interval of 17 corresponds to
+131,072 seconds, or about a day and a half.
+The next two numbers must be between 0 and one-half of the poll interval,
+inclusive.
+The first number specifies how early the poll may start,
+while
+the second number specifies how late the poll may be delayed.
+With no arguments, internally specified default values are chosen.
@item @code{reset} @code{[@code{allpeers}]} @code{[@code{auth}]} @code{[@code{ctl}]} @code{[@code{io}]} @code{[@code{mem}]} @code{[@code{sys}]} @code{[@code{timer}]}
Reset one or more groups of counters maintained by
@code{ntpd}
--- contrib/ntp/ntpd/invoke-ntp.keys.texi.orig
+++ contrib/ntp/ntpd/invoke-ntp.keys.texi
@@ -6,7 +6,7 @@
#
# EDIT THIS FILE WITH CAUTION (invoke-ntp.keys.texi)
#
-# It has been AutoGen-ed February 20, 2019 at 09:56:41 AM by AutoGen 5.18.5
+# It has been AutoGen-ed March 3, 2020 at 05:40:59 PM by AutoGen 5.18.5
# From the definitions ntp.keys.def
# and the template file agtexi-file.tpl
@end ignore
--- contrib/ntp/ntpd/invoke-ntpd.texi.orig
+++ contrib/ntp/ntpd/invoke-ntpd.texi
@@ -6,7 +6,7 @@
#
# EDIT THIS FILE WITH CAUTION (invoke-ntpd.texi)
#
-# It has been AutoGen-ed February 20, 2019 at 09:56:42 AM by AutoGen 5.18.5
+# It has been AutoGen-ed March 3, 2020 at 05:41:00 PM by AutoGen 5.18.5
# From the definitions ntpd-opts.def
# and the template file agtexi-cmd.tpl
@end ignore
@@ -142,7 +142,7 @@
@exampleindent 0
@example
-ntpd - NTP daemon program - Ver. 4.2.8p13
+ntpd - NTP daemon program - Ver. 4.2.8p14
Usage: ntpd [ -<flag> [<val>] | --<name>[@{=| @}<val>] ]... \
[ <server1> ... <serverN> ]
Flg Arg Option-Name Description
--- contrib/ntp/ntpd/keyword-gen-utd.orig
+++ contrib/ntp/ntpd/keyword-gen-utd
@@ -1 +1 @@
- * Generated 2018-01-14 03:53:33 UTC diff_ignore_line
+ * Generated 2020-02-13 08:56:28 UTC diff_ignore_line
--- contrib/ntp/ntpd/keyword-gen.c.orig
+++ contrib/ntp/ntpd/keyword-gen.c
@@ -43,6 +43,7 @@
{ "broadcast", T_Broadcast, FOLLBY_STRING },
{ "broadcastclient", T_Broadcastclient, FOLLBY_TOKEN },
{ "broadcastdelay", T_Broadcastdelay, FOLLBY_TOKEN },
+{ "checkhash", T_Checkhash, FOLLBY_TOKEN },
{ "ctl", T_Ctl, FOLLBY_TOKEN },
{ "disable", T_Disable, FOLLBY_TOKEN },
{ "driftfile", T_Driftfile, FOLLBY_STRING },
@@ -51,6 +52,7 @@
{ "end", T_End, FOLLBY_TOKEN },
{ "filegen", T_Filegen, FOLLBY_TOKEN },
{ "fudge", T_Fudge, FOLLBY_STRING },
+{ "ignorehash", T_Ignorehash, FOLLBY_TOKEN },
{ "io", T_Io, FOLLBY_TOKEN },
{ "includefile", T_Includefile, FOLLBY_STRING },
{ "leapfile", T_Leapfile, FOLLBY_STRING },
@@ -64,6 +66,7 @@
{ "peer", T_Peer, FOLLBY_STRING },
{ "phone", T_Phone, FOLLBY_STRINGS_TO_EOC },
{ "pidfile", T_Pidfile, FOLLBY_STRING },
+{ "pollskewlist", T_PollSkewList, FOLLBY_TOKEN },
{ "pool", T_Pool, FOLLBY_STRING },
{ "discard", T_Discard, FOLLBY_TOKEN },
{ "reset", T_Reset, FOLLBY_TOKEN },
@@ -70,6 +73,9 @@
{ "restrict", T_Restrict, FOLLBY_TOKEN },
{ "rlimit", T_Rlimit, FOLLBY_TOKEN },
{ "server", T_Server, FOLLBY_STRING },
+{ "serverresponse", T_Serverresponse, FOLLBY_TOKEN },
+{ "fuzz", T_Fuzz, FOLLBY_TOKEN },
+{ "poll", T_Poll, FOLLBY_TOKEN },
{ "setvar", T_Setvar, FOLLBY_STRING },
{ "statistics", T_Statistics, FOLLBY_TOKEN },
{ "statsdir", T_Statsdir, FOLLBY_STRING },
@@ -81,6 +87,7 @@
{ "trap", T_Trap, FOLLBY_STRING },
{ "unconfig", T_Unconfig, FOLLBY_STRING },
{ "unpeer", T_Unpeer, FOLLBY_STRING },
+{ "xmtnonce", T_Xmtnonce, FOLLBY_TOKEN },
/* authentication_command */
{ "controlkey", T_ControlKey, FOLLBY_TOKEN },
{ "crypto", T_Crypto, FOLLBY_TOKEN },
@@ -199,6 +206,7 @@
{ "stratum", T_Stratum, FOLLBY_TOKEN },
{ "time1", T_Time1, FOLLBY_TOKEN },
{ "time2", T_Time2, FOLLBY_TOKEN },
+{ "minjitter", T_Minjitter, FOLLBY_TOKEN },
/* system_option */
{ "auth", T_Auth, FOLLBY_TOKEN },
{ "bclient", T_Bclient, FOLLBY_TOKEN },
--- contrib/ntp/ntpd/ntp.conf.5man.orig
+++ contrib/ntp/ntpd/ntp.conf.5man
@@ -10,11 +10,11 @@
.ds B-Font B
.ds I-Font I
.ds R-Font R
-.TH ntp.conf 5man "20 Feb 2019" "4.2.8p13" "File Formats"
+.TH ntp.conf 5man "03 Mar 2020" "4.2.8p14" "File Formats"
.\"
.\" EDIT THIS FILE WITH CAUTION (in-mem file)
.\"
-.\" It has been AutoGen-ed February 20, 2019 at 09:56:43 AM by AutoGen 5.18.5
+.\" It has been AutoGen-ed March 3, 2020 at 05:41:02 PM by AutoGen 5.18.5
.\" From the definitions ntp.conf.def
.\" and the template file agman-cmd.tpl
.SH NAME
@@ -161,9 +161,9 @@
See IPv6 references for the
equivalent classes for that address family.
.TP 7
-.NOP \f\*[B-Font]pool\f[] \f\*[I-Font]address\f[] [\f\*[B-Font]burst\f[]] [\f\*[B-Font]iburst\f[]] [\f\*[B-Font]version\f[] \f\*[I-Font]version\f[]] [\f\*[B-Font]prefer\f[]] [\f\*[B-Font]minpoll\f[] \f\*[I-Font]minpoll\f[]] [\f\*[B-Font]maxpoll\f[] \f\*[I-Font]maxpoll\f[]]
+.NOP \f\*[B-Font]pool\f[] \f\*[I-Font]address\f[] [\f\*[B-Font]burst\f[]] [\f\*[B-Font]iburst\f[]] [\f\*[B-Font]version\f[] \f\*[I-Font]version\f[]] [\f\*[B-Font]prefer\f[]] [\f\*[B-Font]minpoll\f[] \f\*[I-Font]minpoll\f[]] [\f\*[B-Font]maxpoll\f[] \f\*[I-Font]maxpoll\f[]] [\f\*[B-Font]xmtnonce\f[]]
.TP 7
-.NOP \f\*[B-Font]server\f[] \f\*[I-Font]address\f[] [\f\*[B-Font]key\f[] \f\*[I-Font]key\f[] \f\*[I-Font]\&|\f[] \f\*[B-Font]autokey\f[]] [\f\*[B-Font]burst\f[]] [\f\*[B-Font]iburst\f[]] [\f\*[B-Font]version\f[] \f\*[I-Font]version\f[]] [\f\*[B-Font]prefer\f[]] [\f\*[B-Font]minpoll\f[] \f\*[I-Font]minpoll\f[]] [\f\*[B-Font]maxpoll\f[] \f\*[I-Font]maxpoll\f[]] [\f\*[B-Font]true\f[]]
+.NOP \f\*[B-Font]server\f[] \f\*[I-Font]address\f[] [\f\*[B-Font]key\f[] \f\*[I-Font]key\f[] \f\*[I-Font]\&|\f[] \f\*[B-Font]autokey\f[]] [\f\*[B-Font]burst\f[]] [\f\*[B-Font]iburst\f[]] [\f\*[B-Font]version\f[] \f\*[I-Font]version\f[]] [\f\*[B-Font]prefer\f[]] [\f\*[B-Font]minpoll\f[] \f\*[I-Font]minpoll\f[]] [\f\*[B-Font]maxpoll\f[] \f\*[I-Font]maxpoll\f[]] [\f\*[B-Font]true\f[]] [\f\*[B-Font]xmtnonce\f[]]
.TP 7
.NOP \f\*[B-Font]peer\f[] \f\*[I-Font]address\f[] [\f\*[B-Font]key\f[] \f\*[I-Font]key\f[] \f\*[I-Font]\&|\f[] \f\*[B-Font]autokey\f[]] [\f\*[B-Font]version\f[] \f\*[I-Font]version\f[]] [\f\*[B-Font]prefer\f[]] [\f\*[B-Font]minpoll\f[] \f\*[I-Font]minpoll\f[]] [\f\*[B-Font]maxpoll\f[] \f\*[I-Font]maxpoll\f[]] [\f\*[B-Font]true\f[]] [\f\*[B-Font]xleave\f[]]
.TP 7
@@ -352,10 +352,6 @@
.NOP \f\*[B-Font]preempt\f[]
Says the association can be preempted.
.TP 7
-.NOP \f\*[B-Font]true\f[]
-Marks the server as a truechimer.
-Use this option only for testing.
-.TP 7
.NOP \f\*[B-Font]prefer\f[]
Marks the server as preferred.
All other things being equal,
@@ -370,7 +366,8 @@
for further information.
.TP 7
.NOP \f\*[B-Font]true\f[]
-Forces the association to always survive the selection and clustering algorithms.
+Marks the server as a truechimer,
+forcing the association to always survive the selection and clustering algorithms.
This option should almost certainly
\fIonly\f[]
be used while testing an association.
@@ -401,6 +398,13 @@
and
\f\*[B-Font]broadcast\f[]
modes only, this flag enables interleave mode.
+.TP 7
+.NOP \f\*[B-Font]xmtnonce\f[]
+Valid only for
+\f\*[B-Font]server\f[]
+and
+\f\*[B-Font]pool\f[]
+modes, this flag puts a random number in the packet's transmit timestamp.
.PP
.SS Auxiliary Commands
.TP 7
@@ -1838,6 +1842,11 @@
is considered more specific and
is sorted later in the list.
.TP 7
+.NOP \f\*[B-Font]serverresponse fuzz\f[]
+When reponding to server requests,
+fuzz the low order bits of the
+\f\*[B-Font]reftime\f[].
+.TP 7
.NOP \f\*[B-Font]version\f[]
Deny packets that do not match the current NTP version.
.RE
@@ -3092,6 +3101,22 @@
The Hayes command ATDT is normally prepended to the number.
The number can contain other modem control codes as well.
.TP 7
+.NOP \f\*[B-Font]pollskewlist\f[] [\f\*[I-Font]poll\f[] \f\*[I-Font]value\f[] | \f\*[I-Font]value\f[]] \f\*[I-Font]...\f[] [\f\*[B-Font]default\f[] \f\*[I-Font]value\f[] | \f\*[I-Font]value\f[]]
+Enable skewing of our poll requests to our servers.
+\f\*[I-Font]poll\f[]
+is a number between 3 and 17 inclusive, identifying a specific poll interval.
+A poll interval is 2^n seconds in duration,
+so a poll value of 3 corresponds to 8 seconds
+and
+a poll interval of 17 corresponds to
+131,072 seconds, or about a day and a half.
+The next two numbers must be between 0 and one-half of the poll interval,
+inclusive.
+The first number specifies how early the poll may start,
+while
+the second number specifies how late the poll may be delayed.
+With no arguments, internally specified default values are chosen.
+.TP 7
.NOP \f\*[B-Font]reset\f[] [\f\*[B-Font]allpeers\f[]] [\f\*[B-Font]auth\f[]] [\f\*[B-Font]ctl\f[]] [\f\*[B-Font]io\f[]] [\f\*[B-Font]mem\f[]] [\f\*[B-Font]sys\f[]] [\f\*[B-Font]timer\f[]]
Reset one or more groups of counters maintained by
\f\*[B-Font]ntpd\f[]
@@ -3424,7 +3449,7 @@
.SH "AUTHORS"
The University of Delaware and Network Time Foundation
.SH "COPYRIGHT"
-Copyright (C) 1992-2017 The University of Delaware and Network Time Foundation all rights reserved.
+Copyright (C) 1992-2020 The University of Delaware and Network Time Foundation all rights reserved.
This program is released under the terms of the NTP license, <http://ntp.org/license>.
.SH BUGS
The syntax checking is not picky; some combinations of
--- contrib/ntp/ntpd/ntp.conf.5mdoc.orig
+++ contrib/ntp/ntpd/ntp.conf.5mdoc
@@ -1,9 +1,9 @@
-.Dd February 20 2019
+.Dd March 3 2020
.Dt NTP_CONF 5mdoc File Formats
.Os
.\" EDIT THIS FILE WITH CAUTION (ntp.mdoc)
.\"
-.\" It has been AutoGen-ed February 20, 2019 at 09:56:34 AM by AutoGen 5.18.5
+.\" It has been AutoGen-ed March 3, 2020 at 05:40:53 PM by AutoGen 5.18.5
.\" From the definitions ntp.conf.def
.\" and the template file agmdoc-cmd.tpl
.Sh NAME
@@ -144,6 +144,7 @@
.Op Cm prefer
.Op Cm minpoll Ar minpoll
.Op Cm maxpoll Ar maxpoll
+.Op Cm xmtnonce
.Xc
.It Xo Ic server Ar address
.Op Cm key Ar key \&| Cm autokey
@@ -154,6 +155,7 @@
.Op Cm minpoll Ar minpoll
.Op Cm maxpoll Ar maxpoll
.Op Cm true
+.Op Cm xmtnonce
.Xc
.It Xo Ic peer Ar address
.Op Cm key Ar key \&| Cm autokey
@@ -346,9 +348,6 @@
The server is discarded by the selection algroithm.
.It Cm preempt
Says the association can be preempted.
-.It Cm true
-Marks the server as a truechimer.
-Use this option only for testing.
.It Cm prefer
Marks the server as preferred.
All other things being equal,
@@ -362,7 +361,8 @@
.Pa /usr/share/doc/ntp )
for further information.
.It Cm true
-Forces the association to always survive the selection and clustering algorithms.
+Marks the server as a truechimer,
+forcing the association to always survive the selection and clustering algorithms.
This option should almost certainly
.Em only
be used while testing an association.
@@ -390,6 +390,12 @@
and
.Cm broadcast
modes only, this flag enables interleave mode.
+.It Cm xmtnonce
+Valid only for
+.Cm server
+and
+.Cm pool
+modes, this flag puts a random number in the packet's transmit timestamp.
.El
.Ss Auxiliary Commands
.Bl -tag -width indent
@@ -1694,6 +1700,10 @@
.Cm ntpport
is considered more specific and
is sorted later in the list.
+.It Ic "serverresponse fuzz"
+When reponding to server requests,
+fuzz the low order bits of the
+.Cm reftime .
.It Cm version
Deny packets that do not match the current NTP version.
.El
@@ -2919,6 +2929,31 @@
one telephone number used to dial the telephone JJY service.
The Hayes command ATDT is normally prepended to the number.
The number can contain other modem control codes as well.
+.It Xo Cm pollskewlist
+.Oo
+.Ar poll
+.Ar value | value
+.Oc
+.Ar ...
+.Oo
+.Cm default
+.Ar value | value
+.Oc
+.Xc
+Enable skewing of our poll requests to our servers.
+.Ar poll
+is a number between 3 and 17 inclusive, identifying a specific poll interval.
+A poll interval is 2^n seconds in duration,
+so a poll value of 3 corresponds to 8 seconds
+and
+a poll interval of 17 corresponds to
+131,072 seconds, or about a day and a half.
+The next two numbers must be between 0 and one\-half of the poll interval,
+inclusive.
+The first number specifies how early the poll may start,
+while
+the second number specifies how late the poll may be delayed.
+With no arguments, internally specified default values are chosen.
.It Xo Ic reset
.Oo
.Ic allpeers
@@ -3255,7 +3290,7 @@
.Sh "AUTHORS"
The University of Delaware and Network Time Foundation
.Sh "COPYRIGHT"
-Copyright (C) 1992\-2017 The University of Delaware and Network Time Foundation all rights reserved.
+Copyright (C) 1992\-2020 The University of Delaware and Network Time Foundation all rights reserved.
This program is released under the terms of the NTP license, <http://ntp.org/license>.
.Sh BUGS
The syntax checking is not picky; some combinations of
--- contrib/ntp/ntpd/ntp.conf.def.orig
+++ contrib/ntp/ntpd/ntp.conf.def
@@ -146,6 +146,7 @@
.Op Cm prefer
.Op Cm minpoll Ar minpoll
.Op Cm maxpoll Ar maxpoll
+.Op Cm xmtnonce
.Xc
.It Xo Ic server Ar address
.Op Cm key Ar key \&| Cm autokey
@@ -156,6 +157,7 @@
.Op Cm minpoll Ar minpoll
.Op Cm maxpoll Ar maxpoll
.Op Cm true
+.Op Cm xmtnonce
.Xc
.It Xo Ic peer Ar address
.Op Cm key Ar key \&| Cm autokey
@@ -348,9 +350,6 @@
The server is discarded by the selection algroithm.
.It Cm preempt
Says the association can be preempted.
-.It Cm true
-Marks the server as a truechimer.
-Use this option only for testing.
.It Cm prefer
Marks the server as preferred.
All other things being equal,
@@ -364,7 +363,8 @@
.Pa /usr/share/doc/ntp )
for further information.
.It Cm true
-Forces the association to always survive the selection and clustering algorithms.
+Marks the server as a truechimer,
+forcing the association to always survive the selection and clustering algorithms.
This option should almost certainly
.Em only
be used while testing an association.
@@ -392,6 +392,13 @@
and
.Cm broadcast
modes only, this flag enables interleave mode.
+.It Cm xmtnonce
+Valid only for
+.Cm server
+and
+.Cm pool
+modes, this flag puts a random number in the packet's transmit timestamp.
+
.El
.Ss Auxiliary Commands
.Bl -tag -width indent
@@ -1696,6 +1703,10 @@
.Cm ntpport
is considered more specific and
is sorted later in the list.
+.It Ic "serverresponse fuzz"
+When reponding to server requests,
+fuzz the low order bits of the
+.Cm reftime .
.It Cm version
Deny packets that do not match the current NTP version.
.El
@@ -2921,6 +2932,31 @@
one telephone number used to dial the telephone JJY service.
The Hayes command ATDT is normally prepended to the number.
The number can contain other modem control codes as well.
+.It Xo Cm pollskewlist
+.Oo
+.Ar poll
+.Ar value | value
+.Oc
+.Ar ...
+.Oo
+.Cm default
+.Ar value | value
+.Oc
+.Xc
+Enable skewing of our poll requests to our servers.
+.Ar poll
+is a number between 3 and 17 inclusive, identifying a specific poll interval.
+A poll interval is 2^n seconds in duration,
+so a poll value of 3 corresponds to 8 seconds
+and
+a poll interval of 17 corresponds to
+131,072 seconds, or about a day and a half.
+The next two numbers must be between 0 and one-half of the poll interval,
+inclusive.
+The first number specifies how early the poll may start,
+while
+the second number specifies how late the poll may be delayed.
+With no arguments, internally specified default values are chosen.
.It Xo Ic reset
.Oo
.Ic allpeers
--- contrib/ntp/ntpd/ntp.conf.html.orig
+++ contrib/ntp/ntpd/ntp.conf.html
@@ -61,7 +61,7 @@
<p>This document describes the configuration file for the NTP Project’s
<code>ntpd</code> program.
</p>
-<p>This document applies to version 4.2.8p13 of <code>ntp.conf</code>.
+<p>This document applies to version 4.2.8p14 of <code>ntp.conf</code>.
</p>
<a name="SEC_Overview"></a>
<h2 class="shortcontents-heading">Short Table of Contents</h2>
@@ -257,8 +257,8 @@
See IPv6 references for the
equivalent classes for that address family.
</p><dl compact="compact">
-<dt><code>pool</code> <kbd>address</kbd> <code>[<code>burst</code>]</code> <code>[<code>iburst</code>]</code> <code>[<code>version</code> <kbd>version</kbd>]</code> <code>[<code>prefer</code>]</code> <code>[<code>minpoll</code> <kbd>minpoll</kbd>]</code> <code>[<code>maxpoll</code> <kbd>maxpoll</kbd>]</code></dt>
-<dt><code>server</code> <kbd>address</kbd> <code>[<code>key</code> <kbd>key</kbd> <kbd>|</kbd> <code>autokey</code>]</code> <code>[<code>burst</code>]</code> <code>[<code>iburst</code>]</code> <code>[<code>version</code> <kbd>version</kbd>]</code> <code>[<code>prefer</code>]</code> <code>[<code>minpoll</code> <kbd>minpoll</kbd>]</code> <code>[<code>maxpoll</code> <kbd>maxpoll</kbd>]</code> <code>[<code>true</code>]</code></dt>
+<dt><code>pool</code> <kbd>address</kbd> <code>[<code>burst</code>]</code> <code>[<code>iburst</code>]</code> <code>[<code>version</code> <kbd>version</kbd>]</code> <code>[<code>prefer</code>]</code> <code>[<code>minpoll</code> <kbd>minpoll</kbd>]</code> <code>[<code>maxpoll</code> <kbd>maxpoll</kbd>]</code> <code>[<code>xmtnonce</code>]</code></dt>
+<dt><code>server</code> <kbd>address</kbd> <code>[<code>key</code> <kbd>key</kbd> <kbd>|</kbd> <code>autokey</code>]</code> <code>[<code>burst</code>]</code> <code>[<code>iburst</code>]</code> <code>[<code>version</code> <kbd>version</kbd>]</code> <code>[<code>prefer</code>]</code> <code>[<code>minpoll</code> <kbd>minpoll</kbd>]</code> <code>[<code>maxpoll</code> <kbd>maxpoll</kbd>]</code> <code>[<code>true</code>]</code> <code>[<code>xmtnonce</code>]</code></dt>
<dt><code>peer</code> <kbd>address</kbd> <code>[<code>key</code> <kbd>key</kbd> <kbd>|</kbd> <code>autokey</code>]</code> <code>[<code>version</code> <kbd>version</kbd>]</code> <code>[<code>prefer</code>]</code> <code>[<code>minpoll</code> <kbd>minpoll</kbd>]</code> <code>[<code>maxpoll</code> <kbd>maxpoll</kbd>]</code> <code>[<code>true</code>]</code> <code>[<code>xleave</code>]</code></dt>
<dt><code>broadcast</code> <kbd>address</kbd> <code>[<code>key</code> <kbd>key</kbd> <kbd>|</kbd> <code>autokey</code>]</code> <code>[<code>version</code> <kbd>version</kbd>]</code> <code>[<code>prefer</code>]</code> <code>[<code>minpoll</code> <kbd>minpoll</kbd>]</code> <code>[<code>ttl</code> <kbd>ttl</kbd>]</code> <code>[<code>xleave</code>]</code></dt>
<dt><code>manycastclient</code> <kbd>address</kbd> <code>[<code>key</code> <kbd>key</kbd> <kbd>|</kbd> <code>autokey</code>]</code> <code>[<code>version</code> <kbd>version</kbd>]</code> <code>[<code>prefer</code>]</code> <code>[<code>minpoll</code> <kbd>minpoll</kbd>]</code> <code>[<code>maxpoll</code> <kbd>maxpoll</kbd>]</code> <code>[<code>ttl</code> <kbd>ttl</kbd>]</code></dt>
@@ -440,10 +440,6 @@
<dt><code>preempt</code></dt>
<dd><p>Says the association can be preempted.
</p></dd>
-<dt><code>true</code></dt>
-<dd><p>Marks the server as a truechimer.
-Use this option only for testing.
-</p></dd>
<dt><code>prefer</code></dt>
<dd><p>Marks the server as preferred.
All other things being equal,
@@ -458,7 +454,8 @@
for further information.
</p></dd>
<dt><code>true</code></dt>
-<dd><p>Forces the association to always survive the selection and clustering algorithms.
+<dd><p>Marks the server as a truechimer,
+forcing the association to always survive the selection and clustering algorithms.
This option should almost certainly
<em>only</em>
be used while testing an association.
@@ -490,6 +487,14 @@
<code>broadcast</code>
modes only, this flag enables interleave mode.
</p></dd>
+<dt><code>xmtnonce</code></dt>
+<dd><p>Valid only for
+<code>server</code>
+and
+<code>pool</code>
+modes, this flag puts a random number in the packet’s transmit timestamp.
+</p>
+</dd>
</dl>
<a name="Auxiliary-Commands"></a>
<h4 class="subsubsection">1.1.1.2 Auxiliary Commands</h4>
@@ -1862,6 +1867,11 @@
is considered more specific and
is sorted later in the list.
</p></dd>
+<dt><code>serverresponse fuzz</code></dt>
+<dd><p>When reponding to server requests,
+fuzz the low order bits of the
+<code>reftime</code>.
+</p></dd>
<dt><code>version</code></dt>
<dd><p>Deny packets that do not match the current NTP version.
</p></dd>
@@ -3077,6 +3087,22 @@
The Hayes command ATDT is normally prepended to the number.
The number can contain other modem control codes as well.
</p></dd>
+<dt><code>pollskewlist</code> <code>[<kbd>poll</kbd> <kbd>value</kbd> | <kbd>value</kbd>]</code> <kbd>...</kbd> <code>[<code>default</code> <kbd>value</kbd> | <kbd>value</kbd>]</code></dt>
+<dd><p>Enable skewing of our poll requests to our servers.
+<kbd>poll</kbd>
+is a number between 3 and 17 inclusive, identifying a specific poll interval.
+A poll interval is 2^n seconds in duration,
+so a poll value of 3 corresponds to 8 seconds
+and
+a poll interval of 17 corresponds to
+131,072 seconds, or about a day and a half.
+The next two numbers must be between 0 and one-half of the poll interval,
+inclusive.
+The first number specifies how early the poll may start,
+while
+the second number specifies how late the poll may be delayed.
+With no arguments, internally specified default values are chosen.
+</p></dd>
<dt><code>reset</code> <code>[<code>allpeers</code>]</code> <code>[<code>auth</code>]</code> <code>[<code>ctl</code>]</code> <code>[<code>io</code>]</code> <code>[<code>mem</code>]</code> <code>[<code>sys</code>]</code> <code>[<code>timer</code>]</code></dt>
<dd><p>Reset one or more groups of counters maintained by
<code>ntpd</code>
--- contrib/ntp/ntpd/ntp.conf.man.in.orig
+++ contrib/ntp/ntpd/ntp.conf.man.in
@@ -10,11 +10,11 @@
.ds B-Font B
.ds I-Font I
.ds R-Font R
-.TH ntp.conf 5 "20 Feb 2019" "4.2.8p13" "File Formats"
+.TH ntp.conf 5 "03 Mar 2020" "4.2.8p14" "File Formats"
.\"
.\" EDIT THIS FILE WITH CAUTION (in-mem file)
.\"
-.\" It has been AutoGen-ed February 20, 2019 at 09:56:43 AM by AutoGen 5.18.5
+.\" It has been AutoGen-ed March 3, 2020 at 05:41:02 PM by AutoGen 5.18.5
.\" From the definitions ntp.conf.def
.\" and the template file agman-cmd.tpl
.SH NAME
@@ -161,9 +161,9 @@
See IPv6 references for the
equivalent classes for that address family.
.TP 7
-.NOP \f\*[B-Font]pool\f[] \f\*[I-Font]address\f[] [\f\*[B-Font]burst\f[]] [\f\*[B-Font]iburst\f[]] [\f\*[B-Font]version\f[] \f\*[I-Font]version\f[]] [\f\*[B-Font]prefer\f[]] [\f\*[B-Font]minpoll\f[] \f\*[I-Font]minpoll\f[]] [\f\*[B-Font]maxpoll\f[] \f\*[I-Font]maxpoll\f[]]
+.NOP \f\*[B-Font]pool\f[] \f\*[I-Font]address\f[] [\f\*[B-Font]burst\f[]] [\f\*[B-Font]iburst\f[]] [\f\*[B-Font]version\f[] \f\*[I-Font]version\f[]] [\f\*[B-Font]prefer\f[]] [\f\*[B-Font]minpoll\f[] \f\*[I-Font]minpoll\f[]] [\f\*[B-Font]maxpoll\f[] \f\*[I-Font]maxpoll\f[]] [\f\*[B-Font]xmtnonce\f[]]
.TP 7
-.NOP \f\*[B-Font]server\f[] \f\*[I-Font]address\f[] [\f\*[B-Font]key\f[] \f\*[I-Font]key\f[] \f\*[I-Font]\&|\f[] \f\*[B-Font]autokey\f[]] [\f\*[B-Font]burst\f[]] [\f\*[B-Font]iburst\f[]] [\f\*[B-Font]version\f[] \f\*[I-Font]version\f[]] [\f\*[B-Font]prefer\f[]] [\f\*[B-Font]minpoll\f[] \f\*[I-Font]minpoll\f[]] [\f\*[B-Font]maxpoll\f[] \f\*[I-Font]maxpoll\f[]] [\f\*[B-Font]true\f[]]
+.NOP \f\*[B-Font]server\f[] \f\*[I-Font]address\f[] [\f\*[B-Font]key\f[] \f\*[I-Font]key\f[] \f\*[I-Font]\&|\f[] \f\*[B-Font]autokey\f[]] [\f\*[B-Font]burst\f[]] [\f\*[B-Font]iburst\f[]] [\f\*[B-Font]version\f[] \f\*[I-Font]version\f[]] [\f\*[B-Font]prefer\f[]] [\f\*[B-Font]minpoll\f[] \f\*[I-Font]minpoll\f[]] [\f\*[B-Font]maxpoll\f[] \f\*[I-Font]maxpoll\f[]] [\f\*[B-Font]true\f[]] [\f\*[B-Font]xmtnonce\f[]]
.TP 7
.NOP \f\*[B-Font]peer\f[] \f\*[I-Font]address\f[] [\f\*[B-Font]key\f[] \f\*[I-Font]key\f[] \f\*[I-Font]\&|\f[] \f\*[B-Font]autokey\f[]] [\f\*[B-Font]version\f[] \f\*[I-Font]version\f[]] [\f\*[B-Font]prefer\f[]] [\f\*[B-Font]minpoll\f[] \f\*[I-Font]minpoll\f[]] [\f\*[B-Font]maxpoll\f[] \f\*[I-Font]maxpoll\f[]] [\f\*[B-Font]true\f[]] [\f\*[B-Font]xleave\f[]]
.TP 7
@@ -352,10 +352,6 @@
.NOP \f\*[B-Font]preempt\f[]
Says the association can be preempted.
.TP 7
-.NOP \f\*[B-Font]true\f[]
-Marks the server as a truechimer.
-Use this option only for testing.
-.TP 7
.NOP \f\*[B-Font]prefer\f[]
Marks the server as preferred.
All other things being equal,
@@ -370,7 +366,8 @@
for further information.
.TP 7
.NOP \f\*[B-Font]true\f[]
-Forces the association to always survive the selection and clustering algorithms.
+Marks the server as a truechimer,
+forcing the association to always survive the selection and clustering algorithms.
This option should almost certainly
\fIonly\f[]
be used while testing an association.
@@ -401,6 +398,13 @@
and
\f\*[B-Font]broadcast\f[]
modes only, this flag enables interleave mode.
+.TP 7
+.NOP \f\*[B-Font]xmtnonce\f[]
+Valid only for
+\f\*[B-Font]server\f[]
+and
+\f\*[B-Font]pool\f[]
+modes, this flag puts a random number in the packet's transmit timestamp.
.PP
.SS Auxiliary Commands
.TP 7
@@ -1838,6 +1842,11 @@
is considered more specific and
is sorted later in the list.
.TP 7
+.NOP \f\*[B-Font]serverresponse fuzz\f[]
+When reponding to server requests,
+fuzz the low order bits of the
+\f\*[B-Font]reftime\f[].
+.TP 7
.NOP \f\*[B-Font]version\f[]
Deny packets that do not match the current NTP version.
.RE
@@ -3092,6 +3101,22 @@
The Hayes command ATDT is normally prepended to the number.
The number can contain other modem control codes as well.
.TP 7
+.NOP \f\*[B-Font]pollskewlist\f[] [\f\*[I-Font]poll\f[] \f\*[I-Font]value\f[] | \f\*[I-Font]value\f[]] \f\*[I-Font]...\f[] [\f\*[B-Font]default\f[] \f\*[I-Font]value\f[] | \f\*[I-Font]value\f[]]
+Enable skewing of our poll requests to our servers.
+\f\*[I-Font]poll\f[]
+is a number between 3 and 17 inclusive, identifying a specific poll interval.
+A poll interval is 2^n seconds in duration,
+so a poll value of 3 corresponds to 8 seconds
+and
+a poll interval of 17 corresponds to
+131,072 seconds, or about a day and a half.
+The next two numbers must be between 0 and one-half of the poll interval,
+inclusive.
+The first number specifies how early the poll may start,
+while
+the second number specifies how late the poll may be delayed.
+With no arguments, internally specified default values are chosen.
+.TP 7
.NOP \f\*[B-Font]reset\f[] [\f\*[B-Font]allpeers\f[]] [\f\*[B-Font]auth\f[]] [\f\*[B-Font]ctl\f[]] [\f\*[B-Font]io\f[]] [\f\*[B-Font]mem\f[]] [\f\*[B-Font]sys\f[]] [\f\*[B-Font]timer\f[]]
Reset one or more groups of counters maintained by
\f\*[B-Font]ntpd\f[]
@@ -3424,7 +3449,7 @@
.SH "AUTHORS"
The University of Delaware and Network Time Foundation
.SH "COPYRIGHT"
-Copyright (C) 1992-2017 The University of Delaware and Network Time Foundation all rights reserved.
+Copyright (C) 1992-2020 The University of Delaware and Network Time Foundation all rights reserved.
This program is released under the terms of the NTP license, <http://ntp.org/license>.
.SH BUGS
The syntax checking is not picky; some combinations of
--- contrib/ntp/ntpd/ntp.conf.mdoc.in.orig
+++ contrib/ntp/ntpd/ntp.conf.mdoc.in
@@ -1,9 +1,9 @@
-.Dd February 20 2019
+.Dd March 3 2020
.Dt NTP_CONF 5 File Formats
.Os
.\" EDIT THIS FILE WITH CAUTION (ntp.mdoc)
.\"
-.\" It has been AutoGen-ed February 20, 2019 at 09:56:34 AM by AutoGen 5.18.5
+.\" It has been AutoGen-ed March 3, 2020 at 05:40:53 PM by AutoGen 5.18.5
.\" From the definitions ntp.conf.def
.\" and the template file agmdoc-cmd.tpl
.Sh NAME
@@ -144,6 +144,7 @@
.Op Cm prefer
.Op Cm minpoll Ar minpoll
.Op Cm maxpoll Ar maxpoll
+.Op Cm xmtnonce
.Xc
.It Xo Ic server Ar address
.Op Cm key Ar key \&| Cm autokey
@@ -154,6 +155,7 @@
.Op Cm minpoll Ar minpoll
.Op Cm maxpoll Ar maxpoll
.Op Cm true
+.Op Cm xmtnonce
.Xc
.It Xo Ic peer Ar address
.Op Cm key Ar key \&| Cm autokey
@@ -346,9 +348,6 @@
The server is discarded by the selection algroithm.
.It Cm preempt
Says the association can be preempted.
-.It Cm true
-Marks the server as a truechimer.
-Use this option only for testing.
.It Cm prefer
Marks the server as preferred.
All other things being equal,
@@ -362,7 +361,8 @@
.Pa /usr/share/doc/ntp )
for further information.
.It Cm true
-Forces the association to always survive the selection and clustering algorithms.
+Marks the server as a truechimer,
+forcing the association to always survive the selection and clustering algorithms.
This option should almost certainly
.Em only
be used while testing an association.
@@ -390,6 +390,12 @@
and
.Cm broadcast
modes only, this flag enables interleave mode.
+.It Cm xmtnonce
+Valid only for
+.Cm server
+and
+.Cm pool
+modes, this flag puts a random number in the packet's transmit timestamp.
.El
.Ss Auxiliary Commands
.Bl -tag -width indent
@@ -1694,6 +1700,10 @@
.Cm ntpport
is considered more specific and
is sorted later in the list.
+.It Ic "serverresponse fuzz"
+When reponding to server requests,
+fuzz the low order bits of the
+.Cm reftime .
.It Cm version
Deny packets that do not match the current NTP version.
.El
@@ -2919,6 +2929,31 @@
one telephone number used to dial the telephone JJY service.
The Hayes command ATDT is normally prepended to the number.
The number can contain other modem control codes as well.
+.It Xo Cm pollskewlist
+.Oo
+.Ar poll
+.Ar value | value
+.Oc
+.Ar ...
+.Oo
+.Cm default
+.Ar value | value
+.Oc
+.Xc
+Enable skewing of our poll requests to our servers.
+.Ar poll
+is a number between 3 and 17 inclusive, identifying a specific poll interval.
+A poll interval is 2^n seconds in duration,
+so a poll value of 3 corresponds to 8 seconds
+and
+a poll interval of 17 corresponds to
+131,072 seconds, or about a day and a half.
+The next two numbers must be between 0 and one\-half of the poll interval,
+inclusive.
+The first number specifies how early the poll may start,
+while
+the second number specifies how late the poll may be delayed.
+With no arguments, internally specified default values are chosen.
.It Xo Ic reset
.Oo
.Ic allpeers
@@ -3255,7 +3290,7 @@
.Sh "AUTHORS"
The University of Delaware and Network Time Foundation
.Sh "COPYRIGHT"
-Copyright (C) 1992\-2017 The University of Delaware and Network Time Foundation all rights reserved.
+Copyright (C) 1992\-2020 The University of Delaware and Network Time Foundation all rights reserved.
This program is released under the terms of the NTP license, <http://ntp.org/license>.
.Sh BUGS
The syntax checking is not picky; some combinations of
--- contrib/ntp/ntpd/ntp.keys.5man.orig
+++ contrib/ntp/ntpd/ntp.keys.5man
@@ -1,8 +1,8 @@
-.TH ntp.keys 5man "20 Feb 2019" "4.2.8p13" "File Formats"
+.TH ntp.keys 5man "03 Mar 2020" "4.2.8p14" "File Formats"
.\"
.\" EDIT THIS FILE WITH CAUTION (ntp.man)
.\"
-.\" It has been AutoGen-ed February 20, 2019 at 09:56:44 AM by AutoGen 5.18.5
+.\" It has been AutoGen-ed March 3, 2020 at 05:41:04 PM by AutoGen 5.18.5
.\" From the definitions ntp.keys.def
.\" and the template file agman-file.tpl
.Sh NAME
@@ -176,7 +176,7 @@
.SH "AUTHORS"
The University of Delaware and Network Time Foundation
.SH "COPYRIGHT"
-Copyright (C) 1992-2017 The University of Delaware and Network Time Foundation all rights reserved.
+Copyright (C) 1992-2020 The University of Delaware and Network Time Foundation all rights reserved.
This program is released under the terms of the NTP license, <http://ntp.org/license>.
.SH "BUGS"
Please send bug reports to: http://bugs.ntp.org, bugs@ntp.org
--- contrib/ntp/ntpd/ntp.keys.5mdoc.orig
+++ contrib/ntp/ntpd/ntp.keys.5mdoc
@@ -1,9 +1,9 @@
-.Dd February 20 2019
+.Dd March 3 2020
.Dt NTP_KEYS 5mdoc File Formats
.Os FreeBSD 11.2-RELEASE_SI
.\" EDIT THIS FILE WITH CAUTION (ntp.mdoc)
.\"
-.\" It has been AutoGen-ed February 20, 2019 at 09:56:35 AM by AutoGen 5.18.5
+.\" It has been AutoGen-ed March 3, 2020 at 05:40:54 PM by AutoGen 5.18.5
.\" From the definitions ntp.keys.def
.\" and the template file agmdoc-file.tpl
.Sh NAME
@@ -163,7 +163,7 @@
.Sh "AUTHORS"
The University of Delaware and Network Time Foundation
.Sh "COPYRIGHT"
-Copyright (C) 1992\-2017 The University of Delaware and Network Time Foundation all rights reserved.
+Copyright (C) 1992\-2020 The University of Delaware and Network Time Foundation all rights reserved.
This program is released under the terms of the NTP license, <http://ntp.org/license>.
.Sh "BUGS"
Please send bug reports to: http://bugs.ntp.org, bugs@ntp.org
--- contrib/ntp/ntpd/ntp.keys.html.orig
+++ contrib/ntp/ntpd/ntp.keys.html
@@ -61,7 +61,7 @@
<p>This document describes the symmetric key file for the NTP Project’s
<code>ntpd</code> program.
</p>
-<p>This document applies to version 4.2.8p13 of <code>ntp.keys</code>.
+<p>This document applies to version 4.2.8p14 of <code>ntp.keys</code>.
</p>
<a name="SEC_Overview"></a>
<h2 class="shortcontents-heading">Short Table of Contents</h2>
--- contrib/ntp/ntpd/ntp.keys.man.in.orig
+++ contrib/ntp/ntpd/ntp.keys.man.in
@@ -1,8 +1,8 @@
-.TH ntp.keys 5 "20 Feb 2019" "4.2.8p13" "File Formats"
+.TH ntp.keys 5 "03 Mar 2020" "4.2.8p14" "File Formats"
.\"
.\" EDIT THIS FILE WITH CAUTION (ntp.man)
.\"
-.\" It has been AutoGen-ed February 20, 2019 at 09:56:44 AM by AutoGen 5.18.5
+.\" It has been AutoGen-ed March 3, 2020 at 05:41:04 PM by AutoGen 5.18.5
.\" From the definitions ntp.keys.def
.\" and the template file agman-file.tpl
.Sh NAME
@@ -176,7 +176,7 @@
.SH "AUTHORS"
The University of Delaware and Network Time Foundation
.SH "COPYRIGHT"
-Copyright (C) 1992-2017 The University of Delaware and Network Time Foundation all rights reserved.
+Copyright (C) 1992-2020 The University of Delaware and Network Time Foundation all rights reserved.
This program is released under the terms of the NTP license, <http://ntp.org/license>.
.SH "BUGS"
Please send bug reports to: http://bugs.ntp.org, bugs@ntp.org
--- contrib/ntp/ntpd/ntp.keys.mdoc.in.orig
+++ contrib/ntp/ntpd/ntp.keys.mdoc.in
@@ -1,9 +1,9 @@
-.Dd February 20 2019
+.Dd March 3 2020
.Dt NTP_KEYS 5 File Formats
.Os FreeBSD 11.2-RELEASE_SI
.\" EDIT THIS FILE WITH CAUTION (ntp.mdoc)
.\"
-.\" It has been AutoGen-ed February 20, 2019 at 09:56:35 AM by AutoGen 5.18.5
+.\" It has been AutoGen-ed March 3, 2020 at 05:40:54 PM by AutoGen 5.18.5
.\" From the definitions ntp.keys.def
.\" and the template file agmdoc-file.tpl
.Sh NAME
@@ -163,7 +163,7 @@
.Sh "AUTHORS"
The University of Delaware and Network Time Foundation
.Sh "COPYRIGHT"
-Copyright (C) 1992\-2017 The University of Delaware and Network Time Foundation all rights reserved.
+Copyright (C) 1992\-2020 The University of Delaware and Network Time Foundation all rights reserved.
This program is released under the terms of the NTP license, <http://ntp.org/license>.
.Sh "BUGS"
Please send bug reports to: http://bugs.ntp.org, bugs@ntp.org
--- contrib/ntp/ntpd/ntp_config.c.orig
+++ contrib/ntp/ntpd/ntp_config.c
@@ -29,6 +29,7 @@
#ifdef HAVE_SYS_WAIT_H
# include <sys/wait.h>
#endif
+#include <time.h>
#include <isc/net.h>
#include <isc/result.h>
@@ -148,7 +149,7 @@
*/
extern int yydebug; /* ntp_parser.c (.y) */
config_tree cfgt; /* Parser output stored here */
-struct config_tree_tag *cfg_tree_history; /* History of configs */
+config_tree *cfg_tree_history; /* History of configs */
char * sys_phone[MAXPHONE] = {NULL}; /* ACTS phone numbers */
char default_keysdir[] = NTP_KEYSDIR;
char * keysdir = default_keysdir; /* crypto keys directory */
@@ -324,6 +325,7 @@
static void config_ntpd(config_tree *, int/*BOOL*/ input_from_file);
static void config_other_modes(config_tree *);
static void config_auth(config_tree *);
+static void attrtopsl(int poll, attr_val *avp);
static void config_access(config_tree *);
static void config_mdnstries(config_tree *);
static void config_phone(config_tree *);
@@ -500,7 +502,14 @@
{
config_tree * cfg_ptr;
int return_value;
+ time_t now = time(NULL);
+ struct tm tm = *localtime(&now);
+ fprintf(df, "#NTF:D %04d%02d%02d@%02d:%02d:%02d\n",
+ tm.tm_year+1900, tm.tm_mon+1, tm.tm_mday,
+ tm.tm_hour, tm.tm_min, tm.tm_sec);
+ fprintf(df, "#NTF:V %s\n", Version);
+
return_value = 0;
for (cfg_ptr = cfg_tree_history;
cfg_ptr != NULL;
@@ -531,7 +540,6 @@
setvar_node *setv_node;
nic_rule_node *rule_node;
int_node *i_n;
- int_node *flag_tok_fifo;
int_node *counter_set;
string_node *str_node;
@@ -591,6 +599,11 @@
atrv = atrv->link;
fprintf(df, " %s\n",
normal_dtoa(atrv->value.d));
+ } else if (T_Leapfile == atrv->attr) {
+ fputs((atrv->flag
+ ? " checkhash\n"
+ : " ignorehash\n"),
+ df);
} else {
fprintf(df, "\n");
}
@@ -925,6 +938,21 @@
fprintf(df, "\n");
}
+ atrv = HEAD_PFIFO(ptree->pollskewlist);
+ if (atrv != NULL) {
+ fprintf(df, "pollskewlist");
+ for ( ; atrv != NULL; atrv = atrv->link) {
+ if (-1 == atrv->attr) {
+ fprintf(df, " default");
+ } else {
+ fprintf(df, " %d", atrv->attr);
+ }
+ fprintf(df, " %d|%d",
+ atrv->value.r.first, atrv->value.r.last);
+ }
+ fprintf(df, "\n");
+ }
+
for (rest_node = HEAD_PFIFO(ptree->restrict_opts);
rest_node != NULL;
rest_node = rest_node->link) {
@@ -933,9 +961,10 @@
if (NULL == rest_node->addr) {
s = "default";
/* Don't need to set is_default=1 here */
- flag_tok_fifo = HEAD_PFIFO(rest_node->flag_tok_fifo);
- for ( ; flag_tok_fifo != NULL; flag_tok_fifo = flag_tok_fifo->link) {
- if (T_Source == flag_tok_fifo->i) {
+ atrv = HEAD_PFIFO(rest_node->flag_tok_fifo);
+ for ( ; atrv != NULL; atrv = atrv->link) {
+ if ( T_Integer == atrv->type
+ && T_Source == atrv->attr) {
s = "source";
break;
}
@@ -967,12 +996,35 @@
fprintf(df, " mask %s",
rest_node->mask->address);
fprintf(df, " ippeerlimit %d", rest_node->ippeerlimit);
- flag_tok_fifo = HEAD_PFIFO(rest_node->flag_tok_fifo);
- for ( ; flag_tok_fifo != NULL; flag_tok_fifo = flag_tok_fifo->link)
- if (T_Source != flag_tok_fifo->i)
- fprintf(df, " %s", keyword(flag_tok_fifo->i));
- fprintf(df, "\n");
+ atrv = HEAD_PFIFO(rest_node->flag_tok_fifo);
+ for ( ; atrv != NULL; atrv = atrv->link) {
+ if ( T_Integer == atrv->type
+ && T_Source != atrv->attr) {
+ fprintf(df, " %s", keyword(atrv->attr));
+ }
+ }
+ fprintf(df, "\n");
+/**/
+#if 0
+msyslog(LOG_INFO, "Dumping flag_tok_fifo:");
+atrv = HEAD_PFIFO(rest_node->flag_tok_fifo);
+for ( ; atrv != NULL; atrv = atrv->link) {
+ msyslog(LOG_INFO, "- flag_tok_fifo: flags: %08x", atrv->flag);
+ switch(atrv->type) {
+ case T_Integer:
+ msyslog(LOG_INFO, "- T_Integer: attr <%s>/%d, value %d",
+ keyword(atrv->attr), atrv->attr, atrv->value.i);
+ break;
+ default:
+ msyslog(LOG_INFO, "- Other: attr <%s>/%d, value ???",
+ keyword(atrv->attr), atrv->attr);
+ break;
+
}
+}
+#endif
+/**/
+ }
rule_node = HEAD_PFIFO(ptree->nic_rules);
for ( ; rule_node != NULL; rule_node = rule_node->link) {
@@ -1053,7 +1105,6 @@
#endif /* SAVECONFIG */
-
/* generic fifo routines for structs linked by 1st member */
void *
append_gen_fifo(
@@ -1191,7 +1242,7 @@
attr_val *
-create_attr_rangeval(
+create_attr_rval(
int attr,
int first,
int last
@@ -1480,8 +1531,8 @@
address_node * addr,
address_node * mask,
short ippeerlimit,
- int_fifo * flag_tok_fifo,
- int line_no
+ attr_val_fifo * flag_tok_fifo,
+ int nline
)
{
restrict_node *my_node;
@@ -1491,7 +1542,7 @@
my_node->mask = mask;
my_node->ippeerlimit = ippeerlimit;
my_node->flag_tok_fifo = flag_tok_fifo;
- my_node->line_no = line_no;
+ my_node->line_no = nline;
return my_node;
}
@@ -1507,7 +1558,7 @@
*/
destroy_address_node(my_node->addr);
destroy_address_node(my_node->mask);
- destroy_int_fifo(my_node->flag_tok_fifo);
+ destroy_attr_val_fifo(my_node->flag_tok_fifo);
free(my_node);
}
@@ -2307,7 +2358,7 @@
/* Set the statistics directory */
if (ptree->stats_dir)
- stats_config(STATS_STATSDIR, ptree->stats_dir);
+ stats_config(STATS_STATSDIR, ptree->stats_dir, 0);
/* NOTE:
* Calling filegen_get is brain dead. Doing a string
@@ -2472,7 +2523,6 @@
static int warned_signd;
attr_val * my_opt;
restrict_node * my_node;
- int_node * curr_tok_fifo;
sockaddr_u addr;
sockaddr_u mask;
struct addrinfo hints;
@@ -2484,6 +2534,9 @@
u_short mflags;
short ippeerlimit;
int range_err;
+ psl_item my_psl_item;
+ attr_val * atrv;
+ attr_val * dflt_psl_atr;
const char * signd_warning =
#ifdef HAVE_NTP_SIGND
"MS-SNTP signd operations currently block ntpd degrading service to all clients.";
@@ -2599,25 +2652,24 @@
}
}
- /* Configure the restrict options */
+ /* Configure each line of restrict options */
my_node = HEAD_PFIFO(ptree->restrict_opts);
for (; my_node != NULL; my_node = my_node->link) {
+
/* Grab the ippeerlmit */
ippeerlimit = my_node->ippeerlimit;
-DPRINTF(1, ("config_access: top-level node %p: ippeerlimit %d\n", my_node, ippeerlimit));
-
/* Parse the flags */
rflags = 0;
mflags = 0;
- curr_tok_fifo = HEAD_PFIFO(my_node->flag_tok_fifo);
- for (; curr_tok_fifo != NULL; curr_tok_fifo = curr_tok_fifo->link) {
- switch (curr_tok_fifo->i) {
+ my_opt = HEAD_PFIFO(my_node->flag_tok_fifo);
+ for (; my_opt != NULL; my_opt = my_opt->link) {
+ switch (my_opt->attr) {
default:
- fatal_error("config_access: flag-type-token=%d", curr_tok_fifo->i);
+ fatal_error("config_access: Unknown flag-type-token=%s/%d", keyword(my_opt->attr), my_opt->attr);
case T_Ntpport:
mflags |= RESM_NTPONLY;
@@ -2639,10 +2691,6 @@
rflags |= RES_KOD;
break;
- case T_Mssntp:
- rflags |= RES_MSSNTP;
- break;
-
case T_Limited:
rflags |= RES_LIMITED;
break;
@@ -2651,6 +2699,10 @@
rflags |= RES_LPTRAP;
break;
+ case T_Mssntp:
+ rflags |= RES_MSSNTP;
+ break;
+
case T_Nomodify:
rflags |= RES_NOMODIFY;
break;
@@ -2683,6 +2735,10 @@
rflags |= RES_DONTTRUST;
break;
+ case T_ServerresponseFuzz:
+ rflags |= RES_SRVRSPFUZ;
+ break;
+
case T_Version:
rflags |= RES_VERSION;
break;
@@ -2822,10 +2878,171 @@
if (ai_list != NULL)
freeaddrinfo(ai_list);
}
+
+ /* Deal with the Poll Skew List */
+
+ ZERO(psl);
+ ZERO(my_psl_item);
+
+ /*
+ * First, find the last default pollskewlist item.
+ * There should only be one of these with the current grammar,
+ * but better safe than sorry.
+ */
+ dflt_psl_atr = NULL;
+ atrv = HEAD_PFIFO(ptree->pollskewlist);
+ for ( ; atrv != NULL; atrv = atrv->link) {
+ switch (atrv->attr) {
+ case -1: /* default */
+ dflt_psl_atr = atrv;
+ break;
+
+ case 3: /* Fall through */
+ case 4: /* Fall through */
+ case 5: /* Fall through */
+ case 6: /* Fall through */
+ case 7: /* Fall through */
+ case 8: /* Fall through */
+ case 9: /* Fall through */
+ case 10: /* Fall through */
+ case 11: /* Fall through */
+ case 12: /* Fall through */
+ case 13: /* Fall through */
+ case 14: /* Fall through */
+ case 15: /* Fall through */
+ case 16: /* Fall through */
+ case 17:
+ /* ignore */
+ break;
+
+ default:
+ msyslog(LOG_ERR,
+ "config_access: default PSL scan: ignoring unexpected poll value %d",
+ atrv->attr);
+ break;
+ }
+ }
+
+ /* If we have a nonzero default, initialize the PSL */
+ if ( dflt_psl_atr
+ && ( 0 != dflt_psl_atr->value.r.first
+ || 0 != dflt_psl_atr->value.r.last)) {
+ int i;
+
+ for (i = 3; i <= 17; ++i) {
+ attrtopsl(i, dflt_psl_atr);
+ }
+ }
+
+ /* Finally, update the PSL with any explicit entries */
+ atrv = HEAD_PFIFO(ptree->pollskewlist);
+ for ( ; atrv != NULL; atrv = atrv->link) {
+ switch (atrv->attr) {
+ case -1: /* default */
+ /* Ignore */
+ break;
+
+ case 3: /* Fall through */
+ case 4: /* Fall through */
+ case 5: /* Fall through */
+ case 6: /* Fall through */
+ case 7: /* Fall through */
+ case 8: /* Fall through */
+ case 9: /* Fall through */
+ case 10: /* Fall through */
+ case 11: /* Fall through */
+ case 12: /* Fall through */
+ case 13: /* Fall through */
+ case 14: /* Fall through */
+ case 15: /* Fall through */
+ case 16: /* Fall through */
+ case 17:
+ attrtopsl(atrv->attr, atrv);
+ break;
+
+ default:
+ break; /* Ignore - we reported this above */
+ }
+ }
+
+#if 0
+ int p;
+ msyslog(LOG_INFO, "Dumping PSL:");
+ for (p = 3; p <= 17; ++p) {
+ psl_item psi;
+
+ if (0 == get_pollskew(p, &psi)) {
+ msyslog(LOG_INFO, "poll %d: sub %d, qty %d, msk %d",
+ p, psi.sub, psi.qty, psi.msk);
+ } else {
+ msyslog(LOG_ERR, "Dumping PSL: get_pollskew(%d) failed!", p);
+ }
+ }
+#endif
}
+
+
+void
+attrtopsl(int poll, attr_val *avp)
+{
+
+ DEBUG_INSIST((poll - 3) < sizeof psl);
+ if (poll < 3 || poll > 17) {
+ msyslog(LOG_ERR, "attrtopsl(%d, ...): Poll value is out of range - ignoring", poll);
+ } else {
+ int pao = poll - 3; /* poll array offset */
+ int lower = avp->value.r.first; /* a positive number */
+ int upper = avp->value.r.last;
+ int psmax = 1 << (poll - 1);
+ int qmsk;
+
+ if (lower > psmax) {
+ msyslog(LOG_WARNING, "attrtopsl: default: poll %d lower bound reduced from %d to %d",
+ poll, lower, psmax);
+ lower = psmax;
+ }
+ if (upper > psmax) {
+ msyslog(LOG_WARNING, "attrtopsl: default: poll %d upper bound reduced from %d to %d",
+ poll, upper, psmax);
+ upper = psmax;
+ }
+ psl[pao].sub = lower;
+ psl[pao].qty = lower + upper;
+
+ qmsk = 1;
+ while (qmsk < (lower + upper)) {
+ qmsk <<= 1;
+ qmsk |= 1;
+ };
+ psl[pao].msk = qmsk;
+ }
+
+ return;
+}
#endif /* !SIM */
+int
+get_pollskew(
+ int p,
+ psl_item *rv
+ )
+{
+
+ DEBUG_INSIST(3 <= p && 17 >= p);
+ if (3 <= p && 17 >= p) {
+ *rv = psl[p - 3];
+
+ return 0;
+ } else {
+ msyslog(LOG_ERR, "get_pollskew(%d): poll is not between 3 and 17!", p);
+ return -1;
+ }
+
+ /* NOTREACHED */
+}
+
+
#ifdef FREE_CFG_T
static void
free_config_access(
@@ -3644,6 +3861,13 @@
/* Parse all the options to the fudge command */
ZERO(clock_stat);
+ /* some things are not necessarily cleared by ZERO...*/
+ clock_stat.fudgeminjitter = 0.0;
+ clock_stat.fudgetime1 = 0.0;
+ clock_stat.fudgetime2 = 0.0;
+ clock_stat.p_lastcode = NULL;
+ clock_stat.clockdesc = NULL;
+ clock_stat.kv_list = NULL;
curr_opt = HEAD_PFIFO(curr_fudge->options);
for (; curr_opt != NULL; curr_opt = curr_opt->link) {
switch (curr_opt->attr) {
@@ -3665,10 +3889,9 @@
case T_Refid:
clock_stat.haveflags |= CLK_HAVEVAL2;
- clock_stat.fudgeval2 = 0;
- memcpy(&clock_stat.fudgeval2,
- curr_opt->value.s,
- min(strlen(curr_opt->value.s), 4));
+ /* strncpy() does exactly what we want here: */
+ strncpy((char*)&clock_stat.fudgeval2,
+ curr_opt->value.s, 4);
break;
case T_Flag1:
@@ -3703,6 +3926,11 @@
clock_stat.flags &= ~CLK_FLAG4;
break;
+ case T_Minjitter:
+ clock_stat.haveflags |= CLK_HAVEMINJIT;
+ clock_stat.fudgeminjitter = curr_opt->value.d;
+ break;
+
default:
msyslog(LOG_ERR,
"Unexpected fudge flag %s (%d) for %s",
@@ -3757,7 +3985,7 @@
stats_drift_file = 0;
msyslog(LOG_INFO, "config: driftfile disabled");
} else
- stats_config(STATS_FREQ_FILE, curr_var->value.s);
+ stats_config(STATS_FREQ_FILE, curr_var->value.s, 0);
break;
case T_Dscp:
@@ -3775,7 +4003,7 @@
break;
case T_Leapfile:
- stats_config(STATS_LEAP_FILE, curr_var->value.s);
+ stats_config(STATS_LEAP_FILE, curr_var->value.s, curr_var->flag);
break;
#ifdef LEAP_SMEAR
@@ -3786,7 +4014,7 @@
#endif
case T_Pidfile:
- stats_config(STATS_PID_FILE, curr_var->value.s);
+ stats_config(STATS_PID_FILE, curr_var->value.s, 0);
break;
case T_Logfile:
@@ -3866,9 +4094,9 @@
return 0;
}
/*
- * Shouldn't be able to specify multicast
- * address for server/peer!
- * and unicast address for manycastclient!
+ * Shouldn't be able to specify:
+ * - multicast address for server/peer!
+ * - unicast address for manycastclient!
*/
if ((T_Server == hmode || T_Peer == hmode || T_Pool == hmode)
&& IS_MCAST(peeraddr)) {
@@ -3928,9 +4156,12 @@
{
int peerflags;
attr_val *option;
+ int hmode;
+ DEBUG_INSIST(pn);
/* translate peerflags options to bits */
peerflags = 0;
+ hmode = pn->host_mode;
option = HEAD_PFIFO(pn->peerflags);
for (; option != NULL; option = option->link) {
switch (option->value.i) {
@@ -3969,6 +4200,12 @@
case T_Xleave:
peerflags |= FLAG_XLEAVE;
break;
+
+ case T_Xmtnonce:
+ if ( MODE_CLIENT == hmode ) {
+ peerflags |= FLAG_LOOPNONCE;
+ }
+ break;
}
}
@@ -5278,7 +5515,9 @@
char *
-build_iflags(u_int32 iflags)
+build_iflags(
+ u_int32 iflags
+ )
{
static char ifs[1024];
@@ -5351,7 +5590,9 @@
char *
-build_mflags(u_short mflags)
+build_mflags(
+ u_short mflags
+ )
{
static char mfs[1024];
@@ -5379,7 +5620,9 @@
char *
-build_rflags(u_short rflags)
+build_rflags(
+ u_short rflags
+ )
{
static char rfs[1024];
@@ -5455,6 +5698,11 @@
appendstr(rfs, sizeof rfs, "notrust");
}
+ if (rflags & RES_SRVRSPFUZ) {
+ rflags &= ~RES_SRVRSPFUZ;
+ appendstr(rfs, sizeof rfs, "srvrspfuz");
+ }
+
if (rflags & RES_VERSION) {
rflags &= ~RES_VERSION;
appendstr(rfs, sizeof rfs, "version");
--- contrib/ntp/ntpd/ntp_control.c.orig
+++ contrib/ntp/ntpd/ntp_control.c
@@ -28,6 +28,8 @@
#include "ntp_leapsec.h"
#include "ntp_md5.h" /* provides OpenSSL digest API */
#include "lib_strbuf.h"
+#include "timexsup.h"
+
#include <rc_cmdlength.h>
#ifdef KERNEL_PLL
# include "ntp_syscall.h"
@@ -327,7 +329,8 @@
#define CC_FLAGS 11
#define CC_DEVICE 12
#define CC_VARLIST 13
-#define CC_MAXCODE CC_VARLIST
+#define CC_FUDGEMINJIT 14
+#define CC_MAXCODE CC_FUDGEMINJIT
/*
* System variable values. The array can be indexed by the variable
@@ -625,7 +628,8 @@
{ CC_FLAGS, RO, "flags" }, /* 11 */
{ CC_DEVICE, RO, "device" }, /* 12 */
{ CC_VARLIST, RO, "clock_var_list" }, /* 13 */
- { 0, EOV, "" } /* 14 */
+ { CC_FUDGEMINJIT, RO, "minjitter" }, /* 14 */
+ { 0, EOV, "" } /* 15 */
};
@@ -640,6 +644,7 @@
CC_NOREPLY,
CC_BADFORMAT,
CC_BADDATA,
+ CC_FUDGEMINJIT,
CC_FUDGETIME1,
CC_FUDGETIME2,
CC_FUDGEVAL1,
@@ -1187,15 +1192,21 @@
pkt = (struct ntp_control *)&rbufp->recv_pkt;
/*
- * If the length is less than required for the header, or
- * it is a response or a fragment, ignore this.
+ * If the length is less than required for the header,
+ * ignore it.
*/
- if (rbufp->recv_length < (int)CTL_HEADER_LEN
- || (CTL_RESPONSE | CTL_MORE | CTL_ERROR) & pkt->r_m_e_op
+ if (rbufp->recv_length < (int)CTL_HEADER_LEN) {
+ DPRINTF(1, ("Short control packet\n"));
+ numctltooshort++;
+ return;
+ }
+
+ /*
+ * If this packet is a response or a fragment, ignore it.
+ */
+ if ( (CTL_RESPONSE | CTL_MORE | CTL_ERROR) & pkt->r_m_e_op
|| pkt->offset != 0) {
DPRINTF(1, ("invalid format in control packet\n"));
- if (rbufp->recv_length < (int)CTL_HEADER_LEN)
- numctltooshort++;
if (CTL_RESPONSE & pkt->r_m_e_op)
numctlinputresp++;
if (CTL_MORE & pkt->r_m_e_op)
@@ -1206,6 +1217,7 @@
numctlbadoffset++;
return;
}
+
res_version = PKT_VERSION(pkt->li_vn_mode);
if (res_version > NTP_VERSION || res_version < NTP_OLDVERSION) {
DPRINTF(1, ("unknown version %d in control packet\n",
@@ -1910,15 +1922,6 @@
static struct timex ntx;
static u_long ntp_adjtime_time;
- static const double to_ms_usec =
- 1.0e-3; /* usec to msec */
- static const double to_ms_nusec =
-# ifdef STA_NANO
- 1.0e-6; /* nsec to msec */
-# else
- to_ms_usec;
-# endif
-
/*
* CS_K_* variables depend on up-to-date output of ntp_adjtime()
*/
@@ -2321,7 +2324,8 @@
case CS_K_OFFSET:
CTL_IF_KERNLOOP(
ctl_putdblf,
- (sys_var[varid].text, 0, -1, to_ms_nusec * ntx.offset)
+ (sys_var[varid].text, 0, -1,
+ 1000 * dbl_from_var_long(ntx.offset, ntx.status))
);
break;
@@ -2336,7 +2340,7 @@
CTL_IF_KERNLOOP(
ctl_putdblf,
(sys_var[varid].text, 0, 6,
- to_ms_usec * ntx.maxerror)
+ 1000 * dbl_from_usec_long(ntx.maxerror))
);
break;
@@ -2344,7 +2348,7 @@
CTL_IF_KERNLOOP(
ctl_putdblf,
(sys_var[varid].text, 0, 6,
- to_ms_usec * ntx.esterror)
+ 1000 * dbl_from_usec_long(ntx.esterror))
);
break;
@@ -2368,7 +2372,7 @@
CTL_IF_KERNLOOP(
ctl_putdblf,
(sys_var[varid].text, 0, 6,
- to_ms_usec * ntx.precision)
+ 1000 * dbl_from_var_long(ntx.precision, ntx.status))
);
break;
@@ -2396,7 +2400,8 @@
case CS_K_PPS_JITTER:
CTL_IF_KERNPPS(
ctl_putdbl,
- (sys_var[varid].text, to_ms_nusec * ntx.jitter)
+ (sys_var[varid].text,
+ 1000 * dbl_from_var_long(ntx.jitter, ntx.status))
);
break;
@@ -2965,14 +2970,9 @@
break;
case CC_FUDGEVAL2:
- if (mustput || (pcs->haveflags & CLK_HAVEVAL2)) {
- if (pcs->fudgeval1 > 1)
- ctl_putadr(clock_var[id].text,
- pcs->fudgeval2, NULL);
- else
- ctl_putrefid(clock_var[id].text,
- pcs->fudgeval2);
- }
+ /* RefID of clocks are always text even if stratum is fudged */
+ if (mustput || (pcs->haveflags & CLK_HAVEVAL2))
+ ctl_putrefid(clock_var[id].text, pcs->fudgeval2);
break;
case CC_FLAGS:
@@ -3045,6 +3045,16 @@
*s = '\0';
ctl_putdata(buf, (unsigned)(s - buf), 0);
break;
+
+ case CC_FUDGEMINJIT:
+ if (mustput || (pcs->haveflags & CLK_HAVEMINJIT))
+ ctl_putdbl(clock_var[id].text,
+ pcs->fudgeminjitter * 1e3);
+ break;
+
+ default:
+ break;
+
}
}
#endif
--- contrib/ntp/ntpd/ntp_io.c.orig
+++ contrib/ntp/ntpd/ntp_io.c
@@ -177,7 +177,7 @@
endpt * any6_interface; /* wildcard ipv6 interface */
endpt * loopback_interface; /* loopback ipv4 interface */
-isc_boolean_t broadcast_client_enabled; /* is broadcast client enabled */
+static isc_boolean_t broadcast_client_enabled; /* is broadcast client enabled */
u_int sys_ifnum; /* next .ifnum to assign */
int ninterfaces; /* Total number of interfaces */
@@ -2011,12 +2011,9 @@
*/
refresh_all_peerinterfaces();
- if (broadcast_client_enabled)
+ if (broadcast_client_enabled || sys_bclient)
io_setbclient();
- if (sys_bclient)
- io_setbclient();
-
#ifdef MCAST
/*
* Check multicast interfaces and try to join multicast groups if
@@ -2343,11 +2340,12 @@
/*
* return the broadcast client flag value
*/
-isc_boolean_t
+/*isc_boolean_t
get_broadcastclient_flag(void)
{
return (broadcast_client_enabled);
}
+*/
/*
* Check to see if the address is a multicast address
@@ -2605,32 +2603,38 @@
io_setbclient(void)
{
#ifdef OPEN_BCAST_SOCKET
- struct interface * interf;
- unsigned int nif;
+ endpt * ep;
+ unsigned int nif, ni4, ni6;
- nif = 0;
+ nif = ni4 = ni6 = 0;
set_reuseaddr(1);
- for (interf = ep_list;
- interf != NULL;
- interf = interf->elink) {
-
- if (interf->flags & (INT_WILDCARD | INT_LOOPBACK))
+ for (ep = ep_list; ep != NULL; ep = ep->elink) {
+ /* count IPv6 vs IPv4 interfaces. Needed later to decide
+ * if we should log an error or not.
+ */
+ switch (ep->family) {
+ case AF_INET : ++ni4; break;
+ case AF_INET6: ++ni6; break;
+ default : break;
+ }
+
+ if (ep->flags & (INT_WILDCARD | INT_LOOPBACK))
continue;
/* use only allowed addresses */
- if (interf->ignore_packets)
+ if (ep->ignore_packets)
continue;
/* Need a broadcast-capable interface */
- if (!(interf->flags & INT_BROADCAST))
+ if (!(ep->flags & INT_BROADCAST))
continue;
/* Only IPv4 addresses are valid for broadcast */
- REQUIRE(IS_IPV4(&interf->bcast));
+ REQUIRE(IS_IPV4(&ep->bcast));
/* Do we already have the broadcast address open? */
- if (interf->flags & INT_BCASTOPEN) {
+ if (ep->flags & INT_BCASTOPEN) {
/*
* account for already open interfaces to avoid
* misleading warning below
@@ -2642,19 +2646,19 @@
/*
* Try to open the broadcast address
*/
- interf->family = AF_INET;
- interf->bfd = open_socket(&interf->bcast, 1, 0, interf);
+ ep->family = AF_INET;
+ ep->bfd = open_socket(&ep->bcast, 1, 0, ep);
/*
* If we succeeded then we use it otherwise enable
* broadcast on the interface address
*/
- if (interf->bfd != INVALID_SOCKET) {
+ if (ep->bfd != INVALID_SOCKET) {
nif++;
- interf->flags |= INT_BCASTOPEN;
+ ep->flags |= INT_BCASTOPEN;
msyslog(LOG_INFO,
"Listen for broadcasts to %s on interface #%d %s",
- stoa(&interf->bcast), interf->ifnum, interf->name);
+ stoa(&ep->bcast), ep->ifnum, ep->name);
} else switch (errno) {
/* Silently ignore EADDRINUSE as we probably
* opened the socket already for an address in
@@ -2668,8 +2672,8 @@
* regular socket, it's quite useless to try this
* again.
*/
- if (interf->fd != INVALID_SOCKET) {
- interf->flags |= INT_BCASTOPEN;
+ if (ep->fd != INVALID_SOCKET) {
+ ep->flags |= INT_BCASTOPEN;
nif++;
}
# endif
@@ -2678,7 +2682,7 @@
default:
msyslog(LOG_INFO,
"failed to listen for broadcasts to %s on interface #%d %s",
- stoa(&interf->bcast), interf->ifnum, interf->name);
+ stoa(&ep->bcast), ep->ifnum, ep->name);
break;
}
}
@@ -2688,8 +2692,14 @@
DPRINTF(1, ("io_setbclient: listening to %d broadcast addresses\n", nif));
} else {
broadcast_client_enabled = ISC_FALSE;
- msyslog(LOG_ERR,
- "Unable to listen for broadcasts, no broadcast interfaces available");
+ /* This is expected when having only IPv6 interfaces
+ * and no IPv4 interfaces at all. We suppress the error
+ * log in that case... everything else should work!
+ */
+ if (ni4 && !ni6) {
+ msyslog(LOG_ERR,
+ "Unable to listen for broadcasts, no broadcast interfaces available");
+ }
}
#else
msyslog(LOG_ERR,
@@ -3134,7 +3144,8 @@
int rc;
u_char cttl;
l_fp fp_zero = { { 0 }, 0 };
-
+ l_fp org, rec, xmt;
+
ismcast = IS_MCAST(dest);
if (!ismcast)
src = ep;
@@ -3219,11 +3230,14 @@
} while (ismcast && src != NULL);
/* HMS: pkt->rootdisp is usually random here */
+ NTOHL_FP(&pkt->org, &org);
+ NTOHL_FP(&pkt->rec, &rec);
+ NTOHL_FP(&pkt->xmt, &xmt);
record_raw_stats(src ? &src->sin : NULL, dest,
- &pkt->org, &pkt->rec, &pkt->xmt, &fp_zero,
+ &org, &rec, &xmt, &fp_zero,
+ PKT_LEAP(pkt->li_vn_mode),
+ PKT_VERSION(pkt->li_vn_mode),
PKT_MODE(pkt->li_vn_mode),
- PKT_VERSION(pkt->li_vn_mode),
- PKT_LEAP(pkt->li_vn_mode),
pkt->stratum,
pkt->ppoll, pkt->precision,
pkt->rootdelay, pkt->rootdisp, pkt->refid,
--- contrib/ntp/ntpd/ntp_keyword.h.orig
+++ contrib/ntp/ntpd/ntp_keyword.h
@@ -2,7 +2,7 @@
* ntp_keyword.h
*
* NOTE: edit this file with caution, it is generated by keyword-gen.c
- * Generated 2018-01-14 03:53:33 UTC diff_ignore_line
+ * Generated 2020-02-13 08:56:28 UTC diff_ignore_line
*
*/
#include "ntp_scanner.h"
@@ -10,7 +10,7 @@
#define LOWEST_KEYWORD_ID 258
-const char * const keyword_text[200] = {
+const char * const keyword_text[209] = {
/* 0 258 T_Abbrev */ "abbrev",
/* 1 259 T_Age */ "age",
/* 2 260 T_All */ "all",
@@ -30,197 +30,206 @@
/* 16 274 T_Burst */ "burst",
/* 17 275 T_Calibrate */ "calibrate",
/* 18 276 T_Ceiling */ "ceiling",
- /* 19 277 T_Clockstats */ "clockstats",
- /* 20 278 T_Cohort */ "cohort",
- /* 21 279 T_ControlKey */ "controlkey",
- /* 22 280 T_Crypto */ "crypto",
- /* 23 281 T_Cryptostats */ "cryptostats",
- /* 24 282 T_Ctl */ "ctl",
- /* 25 283 T_Day */ "day",
- /* 26 284 T_Default */ "default",
- /* 27 285 T_Digest */ "digest",
- /* 28 286 T_Disable */ "disable",
- /* 29 287 T_Discard */ "discard",
- /* 30 288 T_Dispersion */ "dispersion",
- /* 31 289 T_Double */ NULL,
- /* 32 290 T_Driftfile */ "driftfile",
- /* 33 291 T_Drop */ "drop",
- /* 34 292 T_Dscp */ "dscp",
- /* 35 293 T_Ellipsis */ "...",
- /* 36 294 T_Enable */ "enable",
- /* 37 295 T_End */ "end",
- /* 38 296 T_Epeer */ "epeer",
- /* 39 297 T_False */ NULL,
- /* 40 298 T_File */ "file",
- /* 41 299 T_Filegen */ "filegen",
- /* 42 300 T_Filenum */ "filenum",
- /* 43 301 T_Flag1 */ "flag1",
- /* 44 302 T_Flag2 */ "flag2",
- /* 45 303 T_Flag3 */ "flag3",
- /* 46 304 T_Flag4 */ "flag4",
- /* 47 305 T_Flake */ "flake",
- /* 48 306 T_Floor */ "floor",
- /* 49 307 T_Freq */ "freq",
- /* 50 308 T_Fudge */ "fudge",
- /* 51 309 T_Host */ "host",
- /* 52 310 T_Huffpuff */ "huffpuff",
- /* 53 311 T_Iburst */ "iburst",
- /* 54 312 T_Ident */ "ident",
- /* 55 313 T_Ignore */ "ignore",
- /* 56 314 T_Incalloc */ "incalloc",
- /* 57 315 T_Incmem */ "incmem",
- /* 58 316 T_Initalloc */ "initalloc",
- /* 59 317 T_Initmem */ "initmem",
- /* 60 318 T_Includefile */ "includefile",
- /* 61 319 T_Integer */ NULL,
- /* 62 320 T_Interface */ "interface",
- /* 63 321 T_Intrange */ NULL,
- /* 64 322 T_Io */ "io",
- /* 65 323 T_Ippeerlimit */ "ippeerlimit",
- /* 66 324 T_Ipv4 */ "ipv4",
- /* 67 325 T_Ipv4_flag */ "-4",
- /* 68 326 T_Ipv6 */ "ipv6",
- /* 69 327 T_Ipv6_flag */ "-6",
- /* 70 328 T_Kernel */ "kernel",
- /* 71 329 T_Key */ "key",
- /* 72 330 T_Keys */ "keys",
- /* 73 331 T_Keysdir */ "keysdir",
- /* 74 332 T_Kod */ "kod",
- /* 75 333 T_Mssntp */ "mssntp",
- /* 76 334 T_Leapfile */ "leapfile",
- /* 77 335 T_Leapsmearinterval */ "leapsmearinterval",
- /* 78 336 T_Limited */ "limited",
- /* 79 337 T_Link */ "link",
- /* 80 338 T_Listen */ "listen",
- /* 81 339 T_Logconfig */ "logconfig",
- /* 82 340 T_Logfile */ "logfile",
- /* 83 341 T_Loopstats */ "loopstats",
- /* 84 342 T_Lowpriotrap */ "lowpriotrap",
- /* 85 343 T_Manycastclient */ "manycastclient",
- /* 86 344 T_Manycastserver */ "manycastserver",
- /* 87 345 T_Mask */ "mask",
- /* 88 346 T_Maxage */ "maxage",
- /* 89 347 T_Maxclock */ "maxclock",
- /* 90 348 T_Maxdepth */ "maxdepth",
- /* 91 349 T_Maxdist */ "maxdist",
- /* 92 350 T_Maxmem */ "maxmem",
- /* 93 351 T_Maxpoll */ "maxpoll",
- /* 94 352 T_Mdnstries */ "mdnstries",
- /* 95 353 T_Mem */ "mem",
- /* 96 354 T_Memlock */ "memlock",
- /* 97 355 T_Minclock */ "minclock",
- /* 98 356 T_Mindepth */ "mindepth",
- /* 99 357 T_Mindist */ "mindist",
- /* 100 358 T_Minimum */ "minimum",
- /* 101 359 T_Minpoll */ "minpoll",
- /* 102 360 T_Minsane */ "minsane",
- /* 103 361 T_Mode */ "mode",
- /* 104 362 T_Mode7 */ "mode7",
- /* 105 363 T_Monitor */ "monitor",
- /* 106 364 T_Month */ "month",
- /* 107 365 T_Mru */ "mru",
- /* 108 366 T_Multicastclient */ "multicastclient",
- /* 109 367 T_Nic */ "nic",
- /* 110 368 T_Nolink */ "nolink",
- /* 111 369 T_Nomodify */ "nomodify",
- /* 112 370 T_Nomrulist */ "nomrulist",
- /* 113 371 T_None */ "none",
- /* 114 372 T_Nonvolatile */ "nonvolatile",
- /* 115 373 T_Noepeer */ "noepeer",
- /* 116 374 T_Nopeer */ "nopeer",
- /* 117 375 T_Noquery */ "noquery",
- /* 118 376 T_Noselect */ "noselect",
- /* 119 377 T_Noserve */ "noserve",
- /* 120 378 T_Notrap */ "notrap",
- /* 121 379 T_Notrust */ "notrust",
- /* 122 380 T_Ntp */ "ntp",
- /* 123 381 T_Ntpport */ "ntpport",
- /* 124 382 T_NtpSignDsocket */ "ntpsigndsocket",
- /* 125 383 T_Orphan */ "orphan",
- /* 126 384 T_Orphanwait */ "orphanwait",
- /* 127 385 T_PCEdigest */ "peer_clear_digest_early",
- /* 128 386 T_Panic */ "panic",
- /* 129 387 T_Peer */ "peer",
- /* 130 388 T_Peerstats */ "peerstats",
- /* 131 389 T_Phone */ "phone",
- /* 132 390 T_Pid */ "pid",
- /* 133 391 T_Pidfile */ "pidfile",
- /* 134 392 T_Pool */ "pool",
- /* 135 393 T_Port */ "port",
- /* 136 394 T_Preempt */ "preempt",
- /* 137 395 T_Prefer */ "prefer",
- /* 138 396 T_Protostats */ "protostats",
- /* 139 397 T_Pw */ "pw",
- /* 140 398 T_Randfile */ "randfile",
- /* 141 399 T_Rawstats */ "rawstats",
- /* 142 400 T_Refid */ "refid",
- /* 143 401 T_Requestkey */ "requestkey",
- /* 144 402 T_Reset */ "reset",
- /* 145 403 T_Restrict */ "restrict",
- /* 146 404 T_Revoke */ "revoke",
- /* 147 405 T_Rlimit */ "rlimit",
- /* 148 406 T_Saveconfigdir */ "saveconfigdir",
- /* 149 407 T_Server */ "server",
- /* 150 408 T_Setvar */ "setvar",
- /* 151 409 T_Source */ "source",
- /* 152 410 T_Stacksize */ "stacksize",
- /* 153 411 T_Statistics */ "statistics",
- /* 154 412 T_Stats */ "stats",
- /* 155 413 T_Statsdir */ "statsdir",
- /* 156 414 T_Step */ "step",
- /* 157 415 T_Stepback */ "stepback",
- /* 158 416 T_Stepfwd */ "stepfwd",
- /* 159 417 T_Stepout */ "stepout",
- /* 160 418 T_Stratum */ "stratum",
- /* 161 419 T_String */ NULL,
- /* 162 420 T_Sys */ "sys",
- /* 163 421 T_Sysstats */ "sysstats",
- /* 164 422 T_Tick */ "tick",
- /* 165 423 T_Time1 */ "time1",
- /* 166 424 T_Time2 */ "time2",
- /* 167 425 T_Timer */ "timer",
- /* 168 426 T_Timingstats */ "timingstats",
- /* 169 427 T_Tinker */ "tinker",
- /* 170 428 T_Tos */ "tos",
- /* 171 429 T_Trap */ "trap",
- /* 172 430 T_True */ "true",
- /* 173 431 T_Trustedkey */ "trustedkey",
- /* 174 432 T_Ttl */ "ttl",
- /* 175 433 T_Type */ "type",
- /* 176 434 T_U_int */ NULL,
- /* 177 435 T_UEcrypto */ "unpeer_crypto_early",
- /* 178 436 T_UEcryptonak */ "unpeer_crypto_nak_early",
- /* 179 437 T_UEdigest */ "unpeer_digest_early",
- /* 180 438 T_Unconfig */ "unconfig",
- /* 181 439 T_Unpeer */ "unpeer",
- /* 182 440 T_Version */ "version",
- /* 183 441 T_WanderThreshold */ NULL,
- /* 184 442 T_Week */ "week",
- /* 185 443 T_Wildcard */ "wildcard",
- /* 186 444 T_Xleave */ "xleave",
- /* 187 445 T_Year */ "year",
- /* 188 446 T_Flag */ NULL,
- /* 189 447 T_EOC */ NULL,
- /* 190 448 T_Simulate */ "simulate",
- /* 191 449 T_Beep_Delay */ "beep_delay",
- /* 192 450 T_Sim_Duration */ "simulation_duration",
- /* 193 451 T_Server_Offset */ "server_offset",
- /* 194 452 T_Duration */ "duration",
- /* 195 453 T_Freq_Offset */ "freq_offset",
- /* 196 454 T_Wander */ "wander",
- /* 197 455 T_Jitter */ "jitter",
- /* 198 456 T_Prop_Delay */ "prop_delay",
- /* 199 457 T_Proc_Delay */ "proc_delay"
+ /* 19 277 T_Checkhash */ "checkhash",
+ /* 20 278 T_Clockstats */ "clockstats",
+ /* 21 279 T_Cohort */ "cohort",
+ /* 22 280 T_ControlKey */ "controlkey",
+ /* 23 281 T_Crypto */ "crypto",
+ /* 24 282 T_Cryptostats */ "cryptostats",
+ /* 25 283 T_Ctl */ "ctl",
+ /* 26 284 T_Day */ "day",
+ /* 27 285 T_Default */ "default",
+ /* 28 286 T_Digest */ "digest",
+ /* 29 287 T_Disable */ "disable",
+ /* 30 288 T_Discard */ "discard",
+ /* 31 289 T_Dispersion */ "dispersion",
+ /* 32 290 T_Double */ NULL,
+ /* 33 291 T_Driftfile */ "driftfile",
+ /* 34 292 T_Drop */ "drop",
+ /* 35 293 T_Dscp */ "dscp",
+ /* 36 294 T_Ellipsis */ "...",
+ /* 37 295 T_Enable */ "enable",
+ /* 38 296 T_End */ "end",
+ /* 39 297 T_Epeer */ "epeer",
+ /* 40 298 T_False */ NULL,
+ /* 41 299 T_File */ "file",
+ /* 42 300 T_Filegen */ "filegen",
+ /* 43 301 T_Filenum */ "filenum",
+ /* 44 302 T_Flag1 */ "flag1",
+ /* 45 303 T_Flag2 */ "flag2",
+ /* 46 304 T_Flag3 */ "flag3",
+ /* 47 305 T_Flag4 */ "flag4",
+ /* 48 306 T_Flake */ "flake",
+ /* 49 307 T_Floor */ "floor",
+ /* 50 308 T_Freq */ "freq",
+ /* 51 309 T_Fudge */ "fudge",
+ /* 52 310 T_Fuzz */ "fuzz",
+ /* 53 311 T_Host */ "host",
+ /* 54 312 T_Huffpuff */ "huffpuff",
+ /* 55 313 T_Iburst */ "iburst",
+ /* 56 314 T_Ident */ "ident",
+ /* 57 315 T_Ignore */ "ignore",
+ /* 58 316 T_Ignorehash */ "ignorehash",
+ /* 59 317 T_Incalloc */ "incalloc",
+ /* 60 318 T_Incmem */ "incmem",
+ /* 61 319 T_Initalloc */ "initalloc",
+ /* 62 320 T_Initmem */ "initmem",
+ /* 63 321 T_Includefile */ "includefile",
+ /* 64 322 T_Integer */ NULL,
+ /* 65 323 T_Interface */ "interface",
+ /* 66 324 T_Intrange */ NULL,
+ /* 67 325 T_Io */ "io",
+ /* 68 326 T_Ippeerlimit */ "ippeerlimit",
+ /* 69 327 T_Ipv4 */ "ipv4",
+ /* 70 328 T_Ipv4_flag */ "-4",
+ /* 71 329 T_Ipv6 */ "ipv6",
+ /* 72 330 T_Ipv6_flag */ "-6",
+ /* 73 331 T_Kernel */ "kernel",
+ /* 74 332 T_Key */ "key",
+ /* 75 333 T_Keys */ "keys",
+ /* 76 334 T_Keysdir */ "keysdir",
+ /* 77 335 T_Kod */ "kod",
+ /* 78 336 T_Leapfile */ "leapfile",
+ /* 79 337 T_Leapsmearinterval */ "leapsmearinterval",
+ /* 80 338 T_Limited */ "limited",
+ /* 81 339 T_Link */ "link",
+ /* 82 340 T_Listen */ "listen",
+ /* 83 341 T_Logconfig */ "logconfig",
+ /* 84 342 T_Logfile */ "logfile",
+ /* 85 343 T_Loopstats */ "loopstats",
+ /* 86 344 T_Lowpriotrap */ "lowpriotrap",
+ /* 87 345 T_Manycastclient */ "manycastclient",
+ /* 88 346 T_Manycastserver */ "manycastserver",
+ /* 89 347 T_Mask */ "mask",
+ /* 90 348 T_Maxage */ "maxage",
+ /* 91 349 T_Maxclock */ "maxclock",
+ /* 92 350 T_Maxdepth */ "maxdepth",
+ /* 93 351 T_Maxdist */ "maxdist",
+ /* 94 352 T_Maxmem */ "maxmem",
+ /* 95 353 T_Maxpoll */ "maxpoll",
+ /* 96 354 T_Mdnstries */ "mdnstries",
+ /* 97 355 T_Mem */ "mem",
+ /* 98 356 T_Memlock */ "memlock",
+ /* 99 357 T_Minclock */ "minclock",
+ /* 100 358 T_Mindepth */ "mindepth",
+ /* 101 359 T_Mindist */ "mindist",
+ /* 102 360 T_Minimum */ "minimum",
+ /* 103 361 T_Minjitter */ "minjitter",
+ /* 104 362 T_Minpoll */ "minpoll",
+ /* 105 363 T_Minsane */ "minsane",
+ /* 106 364 T_Mode */ "mode",
+ /* 107 365 T_Mode7 */ "mode7",
+ /* 108 366 T_Monitor */ "monitor",
+ /* 109 367 T_Month */ "month",
+ /* 110 368 T_Mru */ "mru",
+ /* 111 369 T_Mssntp */ "mssntp",
+ /* 112 370 T_Multicastclient */ "multicastclient",
+ /* 113 371 T_Nic */ "nic",
+ /* 114 372 T_Nolink */ "nolink",
+ /* 115 373 T_Nomodify */ "nomodify",
+ /* 116 374 T_Nomrulist */ "nomrulist",
+ /* 117 375 T_None */ "none",
+ /* 118 376 T_Nonvolatile */ "nonvolatile",
+ /* 119 377 T_Noepeer */ "noepeer",
+ /* 120 378 T_Nopeer */ "nopeer",
+ /* 121 379 T_Noquery */ "noquery",
+ /* 122 380 T_Noselect */ "noselect",
+ /* 123 381 T_Noserve */ "noserve",
+ /* 124 382 T_Notrap */ "notrap",
+ /* 125 383 T_Notrust */ "notrust",
+ /* 126 384 T_Ntp */ "ntp",
+ /* 127 385 T_Ntpport */ "ntpport",
+ /* 128 386 T_NtpSignDsocket */ "ntpsigndsocket",
+ /* 129 387 T_Orphan */ "orphan",
+ /* 130 388 T_Orphanwait */ "orphanwait",
+ /* 131 389 T_PCEdigest */ "peer_clear_digest_early",
+ /* 132 390 T_Panic */ "panic",
+ /* 133 391 T_Peer */ "peer",
+ /* 134 392 T_Peerstats */ "peerstats",
+ /* 135 393 T_Phone */ "phone",
+ /* 136 394 T_Pid */ "pid",
+ /* 137 395 T_Pidfile */ "pidfile",
+ /* 138 396 T_Poll */ "poll",
+ /* 139 397 T_PollSkewList */ "pollskewlist",
+ /* 140 398 T_Pool */ "pool",
+ /* 141 399 T_Port */ "port",
+ /* 142 400 T_Preempt */ "preempt",
+ /* 143 401 T_Prefer */ "prefer",
+ /* 144 402 T_Protostats */ "protostats",
+ /* 145 403 T_Pw */ "pw",
+ /* 146 404 T_Randfile */ "randfile",
+ /* 147 405 T_Rawstats */ "rawstats",
+ /* 148 406 T_Refid */ "refid",
+ /* 149 407 T_Requestkey */ "requestkey",
+ /* 150 408 T_Reset */ "reset",
+ /* 151 409 T_Restrict */ "restrict",
+ /* 152 410 T_Revoke */ "revoke",
+ /* 153 411 T_Rlimit */ "rlimit",
+ /* 154 412 T_Saveconfigdir */ "saveconfigdir",
+ /* 155 413 T_Server */ "server",
+ /* 156 414 T_Serverresponse */ "serverresponse",
+ /* 157 415 T_ServerresponseFuzz */ NULL,
+ /* 158 416 T_Setvar */ "setvar",
+ /* 159 417 T_Source */ "source",
+ /* 160 418 T_Stacksize */ "stacksize",
+ /* 161 419 T_Statistics */ "statistics",
+ /* 162 420 T_Stats */ "stats",
+ /* 163 421 T_Statsdir */ "statsdir",
+ /* 164 422 T_Step */ "step",
+ /* 165 423 T_Stepback */ "stepback",
+ /* 166 424 T_Stepfwd */ "stepfwd",
+ /* 167 425 T_Stepout */ "stepout",
+ /* 168 426 T_Stratum */ "stratum",
+ /* 169 427 T_String */ NULL,
+ /* 170 428 T_Sys */ "sys",
+ /* 171 429 T_Sysstats */ "sysstats",
+ /* 172 430 T_Tick */ "tick",
+ /* 173 431 T_Time1 */ "time1",
+ /* 174 432 T_Time2 */ "time2",
+ /* 175 433 T_Timer */ "timer",
+ /* 176 434 T_Timingstats */ "timingstats",
+ /* 177 435 T_Tinker */ "tinker",
+ /* 178 436 T_Tos */ "tos",
+ /* 179 437 T_Trap */ "trap",
+ /* 180 438 T_True */ "true",
+ /* 181 439 T_Trustedkey */ "trustedkey",
+ /* 182 440 T_Ttl */ "ttl",
+ /* 183 441 T_Type */ "type",
+ /* 184 442 T_U_int */ NULL,
+ /* 185 443 T_UEcrypto */ "unpeer_crypto_early",
+ /* 186 444 T_UEcryptonak */ "unpeer_crypto_nak_early",
+ /* 187 445 T_UEdigest */ "unpeer_digest_early",
+ /* 188 446 T_Unconfig */ "unconfig",
+ /* 189 447 T_Unpeer */ "unpeer",
+ /* 190 448 T_Version */ "version",
+ /* 191 449 T_WanderThreshold */ NULL,
+ /* 192 450 T_Week */ "week",
+ /* 193 451 T_Wildcard */ "wildcard",
+ /* 194 452 T_Xleave */ "xleave",
+ /* 195 453 T_Xmtnonce */ "xmtnonce",
+ /* 196 454 T_Year */ "year",
+ /* 197 455 T_Flag */ NULL,
+ /* 198 456 T_EOC */ NULL,
+ /* 199 457 T_Simulate */ "simulate",
+ /* 200 458 T_Beep_Delay */ "beep_delay",
+ /* 201 459 T_Sim_Duration */ "simulation_duration",
+ /* 202 460 T_Server_Offset */ "server_offset",
+ /* 203 461 T_Duration */ "duration",
+ /* 204 462 T_Freq_Offset */ "freq_offset",
+ /* 205 463 T_Wander */ "wander",
+ /* 206 464 T_Jitter */ "jitter",
+ /* 207 465 T_Prop_Delay */ "prop_delay",
+ /* 208 466 T_Proc_Delay */ "proc_delay"
};
-#define SCANNER_INIT_S 940
+#define SCANNER_INIT_S 985
-const scan_state sst[943] = {
+const scan_state sst[988] = {
/*SS_T( ch, f-by, match, other ), */
0, /* 0 */
- S_ST( '-', 3, 327, 0 ), /* 1 */
+ S_ST( '-', 3, 330, 0 ), /* 1 */
S_ST( '.', 3, 3, 1 ), /* 2 */
- S_ST( '.', 3, 293, 0 ), /* 3 . */
+ S_ST( '.', 3, 294, 0 ), /* 3 . */
S_ST( 'a', 3, 23, 2 ), /* 4 */
S_ST( 'b', 3, 6, 0 ), /* 5 a */
S_ST( 'b', 3, 7, 0 ), /* 6 ab */
@@ -275,7 +284,7 @@
S_ST( 'd', 3, 56, 0 ), /* 55 beep_ */
S_ST( 'e', 3, 57, 0 ), /* 56 beep_d */
S_ST( 'l', 3, 58, 0 ), /* 57 beep_de */
- S_ST( 'a', 3, 449, 0 ), /* 58 beep_del */
+ S_ST( 'a', 3, 458, 0 ), /* 58 beep_del */
S_ST( 'r', 3, 60, 48 ), /* 59 b */
S_ST( 'o', 3, 61, 0 ), /* 60 br */
S_ST( 'a', 3, 62, 0 ), /* 61 bro */
@@ -295,7 +304,7 @@
S_ST( 'u', 3, 76, 59 ), /* 75 b */
S_ST( 'r', 3, 77, 0 ), /* 76 bu */
S_ST( 's', 3, 274, 0 ), /* 77 bur */
- S_ST( 'c', 3, 118, 28 ), /* 78 */
+ S_ST( 'c', 3, 125, 28 ), /* 78 */
S_ST( 'a', 3, 80, 0 ), /* 79 c */
S_ST( 'l', 3, 81, 0 ), /* 80 ca */
S_ST( 'i', 3, 82, 0 ), /* 81 cal */
@@ -308,173 +317,173 @@
S_ST( 'l', 3, 89, 0 ), /* 88 cei */
S_ST( 'i', 3, 90, 0 ), /* 89 ceil */
S_ST( 'n', 3, 276, 0 ), /* 90 ceili */
- S_ST( 'l', 3, 92, 86 ), /* 91 c */
- S_ST( 'o', 3, 93, 0 ), /* 92 cl */
- S_ST( 'c', 3, 94, 0 ), /* 93 clo */
- S_ST( 'k', 3, 95, 0 ), /* 94 cloc */
- S_ST( 's', 3, 96, 0 ), /* 95 clock */
- S_ST( 't', 3, 97, 0 ), /* 96 clocks */
- S_ST( 'a', 3, 98, 0 ), /* 97 clockst */
- S_ST( 't', 3, 277, 0 ), /* 98 clocksta */
- S_ST( 'o', 3, 103, 91 ), /* 99 c */
- S_ST( 'h', 3, 101, 0 ), /* 100 co */
- S_ST( 'o', 3, 102, 0 ), /* 101 coh */
- S_ST( 'r', 3, 278, 0 ), /* 102 coho */
- S_ST( 'n', 3, 104, 100 ), /* 103 co */
- S_ST( 't', 3, 105, 0 ), /* 104 con */
- S_ST( 'r', 3, 106, 0 ), /* 105 cont */
- S_ST( 'o', 3, 107, 0 ), /* 106 contr */
- S_ST( 'l', 3, 108, 0 ), /* 107 contro */
- S_ST( 'k', 3, 109, 0 ), /* 108 control */
- S_ST( 'e', 3, 279, 0 ), /* 109 controlk */
- S_ST( 'r', 3, 111, 99 ), /* 110 c */
- S_ST( 'y', 3, 112, 0 ), /* 111 cr */
- S_ST( 'p', 3, 113, 0 ), /* 112 cry */
- S_ST( 't', 3, 280, 0 ), /* 113 cryp */
- S_ST( 's', 3, 115, 0 ), /* 114 crypto */
- S_ST( 't', 3, 116, 0 ), /* 115 cryptos */
- S_ST( 'a', 3, 117, 0 ), /* 116 cryptost */
- S_ST( 't', 3, 281, 0 ), /* 117 cryptosta */
- S_ST( 't', 3, 282, 110 ), /* 118 c */
- S_ST( 'd', 3, 153, 78 ), /* 119 */
- S_ST( 'a', 3, 283, 0 ), /* 120 d */
- S_ST( 'e', 3, 122, 120 ), /* 121 d */
- S_ST( 'f', 3, 123, 0 ), /* 122 de */
- S_ST( 'a', 3, 124, 0 ), /* 123 def */
- S_ST( 'u', 3, 125, 0 ), /* 124 defa */
- S_ST( 'l', 3, 284, 0 ), /* 125 defau */
- S_ST( 'i', 3, 130, 121 ), /* 126 d */
- S_ST( 'g', 3, 128, 0 ), /* 127 di */
- S_ST( 'e', 3, 129, 0 ), /* 128 dig */
- S_ST( 's', 3, 285, 0 ), /* 129 dige */
- S_ST( 's', 3, 137, 127 ), /* 130 di */
- S_ST( 'a', 3, 132, 0 ), /* 131 dis */
- S_ST( 'b', 3, 133, 0 ), /* 132 disa */
- S_ST( 'l', 3, 286, 0 ), /* 133 disab */
- S_ST( 'c', 3, 135, 131 ), /* 134 dis */
- S_ST( 'a', 3, 136, 0 ), /* 135 disc */
- S_ST( 'r', 3, 287, 0 ), /* 136 disca */
- S_ST( 'p', 3, 138, 134 ), /* 137 dis */
- S_ST( 'e', 3, 139, 0 ), /* 138 disp */
- S_ST( 'r', 3, 140, 0 ), /* 139 dispe */
- S_ST( 's', 3, 141, 0 ), /* 140 disper */
- S_ST( 'i', 3, 142, 0 ), /* 141 dispers */
- S_ST( 'o', 3, 288, 0 ), /* 142 dispersi */
- S_ST( 'r', 3, 150, 126 ), /* 143 d */
- S_ST( 'i', 3, 145, 0 ), /* 144 dr */
- S_ST( 'f', 3, 146, 0 ), /* 145 dri */
- S_ST( 't', 3, 147, 0 ), /* 146 drif */
- S_ST( 'f', 3, 148, 0 ), /* 147 drift */
- S_ST( 'i', 3, 149, 0 ), /* 148 driftf */
- S_ST( 'l', 3, 290, 0 ), /* 149 driftfi */
- S_ST( 'o', 3, 291, 144 ), /* 150 dr */
- S_ST( 's', 3, 152, 143 ), /* 151 d */
- S_ST( 'c', 3, 292, 0 ), /* 152 ds */
- S_ST( 'u', 3, 154, 151 ), /* 153 d */
- S_ST( 'r', 3, 155, 0 ), /* 154 du */
- S_ST( 'a', 3, 156, 0 ), /* 155 dur */
- S_ST( 't', 3, 157, 0 ), /* 156 dura */
- S_ST( 'i', 3, 158, 0 ), /* 157 durat */
- S_ST( 'o', 3, 452, 0 ), /* 158 durati */
- S_ST( 'e', 3, 164, 119 ), /* 159 */
- S_ST( 'n', 3, 295, 0 ), /* 160 e */
- S_ST( 'a', 3, 162, 0 ), /* 161 en */
- S_ST( 'b', 3, 163, 0 ), /* 162 ena */
- S_ST( 'l', 3, 294, 0 ), /* 163 enab */
- S_ST( 'p', 3, 165, 160 ), /* 164 e */
- S_ST( 'e', 3, 166, 0 ), /* 165 ep */
- S_ST( 'e', 3, 296, 0 ), /* 166 epe */
- S_ST( 'f', 3, 188, 159 ), /* 167 */
- S_ST( 'i', 3, 169, 0 ), /* 168 f */
- S_ST( 'l', 3, 298, 0 ), /* 169 fi */
- S_ST( 'g', 3, 171, 0 ), /* 170 file */
- S_ST( 'e', 3, 299, 0 ), /* 171 fileg */
- S_ST( 'n', 3, 173, 170 ), /* 172 file */
- S_ST( 'u', 3, 300, 0 ), /* 173 filen */
- S_ST( 'l', 3, 178, 168 ), /* 174 f */
- S_ST( 'a', 3, 177, 0 ), /* 175 fl */
- S_ST( 'g', 3, 304, 0 ), /* 176 fla */
- S_ST( 'k', 3, 305, 176 ), /* 177 fla */
- S_ST( 'o', 3, 179, 175 ), /* 178 fl */
- S_ST( 'o', 3, 306, 0 ), /* 179 flo */
- S_ST( 'r', 3, 181, 174 ), /* 180 f */
- S_ST( 'e', 3, 307, 0 ), /* 181 fr */
- S_ST( '_', 3, 183, 0 ), /* 182 freq */
- S_ST( 'o', 3, 184, 0 ), /* 183 freq_ */
- S_ST( 'f', 3, 185, 0 ), /* 184 freq_o */
- S_ST( 'f', 3, 186, 0 ), /* 185 freq_of */
- S_ST( 's', 3, 187, 0 ), /* 186 freq_off */
- S_ST( 'e', 3, 453, 0 ), /* 187 freq_offs */
- S_ST( 'u', 3, 189, 180 ), /* 188 f */
- S_ST( 'd', 3, 190, 0 ), /* 189 fu */
- S_ST( 'g', 3, 308, 0 ), /* 190 fud */
- S_ST( 'h', 3, 194, 167 ), /* 191 */
- S_ST( 'o', 3, 193, 0 ), /* 192 h */
- S_ST( 's', 3, 309, 0 ), /* 193 ho */
- S_ST( 'u', 3, 195, 192 ), /* 194 h */
- S_ST( 'f', 3, 196, 0 ), /* 195 hu */
- S_ST( 'f', 3, 197, 0 ), /* 196 huf */
- S_ST( 'p', 3, 198, 0 ), /* 197 huff */
- S_ST( 'u', 3, 199, 0 ), /* 198 huffp */
- S_ST( 'f', 3, 310, 0 ), /* 199 huffpu */
- S_ST( 'i', 3, 241, 191 ), /* 200 */
- S_ST( 'b', 3, 202, 0 ), /* 201 i */
- S_ST( 'u', 3, 203, 0 ), /* 202 ib */
- S_ST( 'r', 3, 204, 0 ), /* 203 ibu */
- S_ST( 's', 3, 311, 0 ), /* 204 ibur */
- S_ST( 'd', 3, 206, 201 ), /* 205 i */
- S_ST( 'e', 3, 207, 0 ), /* 206 id */
- S_ST( 'n', 3, 312, 0 ), /* 207 ide */
- S_ST( 'g', 3, 209, 205 ), /* 208 i */
- S_ST( 'n', 3, 210, 0 ), /* 209 ig */
- S_ST( 'o', 3, 211, 0 ), /* 210 ign */
- S_ST( 'r', 3, 313, 0 ), /* 211 igno */
- S_ST( 'n', 3, 235, 208 ), /* 212 i */
- S_ST( 'c', 3, 225, 0 ), /* 213 in */
- S_ST( 'a', 3, 215, 0 ), /* 214 inc */
- S_ST( 'l', 3, 216, 0 ), /* 215 inca */
- S_ST( 'l', 3, 217, 0 ), /* 216 incal */
- S_ST( 'o', 3, 314, 0 ), /* 217 incall */
- S_ST( 'l', 3, 219, 214 ), /* 218 inc */
- S_ST( 'u', 3, 220, 0 ), /* 219 incl */
- S_ST( 'd', 3, 221, 0 ), /* 220 inclu */
- S_ST( 'e', 3, 222, 0 ), /* 221 includ */
- S_ST( 'f', 3, 223, 0 ), /* 222 include */
- S_ST( 'i', 3, 224, 0 ), /* 223 includef */
- S_ST( 'l', 3, 318, 0 ), /* 224 includefi */
- S_ST( 'm', 3, 226, 218 ), /* 225 inc */
- S_ST( 'e', 3, 315, 0 ), /* 226 incm */
- S_ST( 'i', 3, 228, 213 ), /* 227 in */
- S_ST( 't', 3, 233, 0 ), /* 228 ini */
- S_ST( 'a', 3, 230, 0 ), /* 229 init */
- S_ST( 'l', 3, 231, 0 ), /* 230 inita */
- S_ST( 'l', 3, 232, 0 ), /* 231 inital */
- S_ST( 'o', 3, 316, 0 ), /* 232 initall */
- S_ST( 'm', 3, 234, 229 ), /* 233 init */
- S_ST( 'e', 3, 317, 0 ), /* 234 initm */
- S_ST( 't', 3, 236, 227 ), /* 235 in */
- S_ST( 'e', 3, 237, 0 ), /* 236 int */
- S_ST( 'r', 3, 238, 0 ), /* 237 inte */
- S_ST( 'f', 3, 239, 0 ), /* 238 inter */
- S_ST( 'a', 3, 240, 0 ), /* 239 interf */
- S_ST( 'c', 3, 320, 0 ), /* 240 interfa */
- S_ST( 'p', 3, 250, 322 ), /* 241 i */
- S_ST( 'p', 3, 243, 0 ), /* 242 ip */
- S_ST( 'e', 3, 244, 0 ), /* 243 ipp */
- S_ST( 'e', 3, 245, 0 ), /* 244 ippe */
- S_ST( 'r', 3, 246, 0 ), /* 245 ippee */
- S_ST( 'l', 3, 247, 0 ), /* 246 ippeer */
- S_ST( 'i', 3, 248, 0 ), /* 247 ippeerl */
- S_ST( 'm', 3, 249, 0 ), /* 248 ippeerli */
- S_ST( 'i', 3, 323, 0 ), /* 249 ippeerlim */
- S_ST( 'v', 3, 326, 242 ), /* 250 ip */
- S_ST( 'j', 3, 252, 200 ), /* 251 */
- S_ST( 'i', 3, 253, 0 ), /* 252 j */
- S_ST( 't', 3, 254, 0 ), /* 253 ji */
- S_ST( 't', 3, 255, 0 ), /* 254 jit */
- S_ST( 'e', 3, 455, 0 ), /* 255 jitt */
- S_ST( 'k', 3, 434, 251 ), /* 256 */
- S_ST( 'e', 3, 329, 0 ), /* 257 k */
+ S_ST( 'h', 3, 92, 86 ), /* 91 c */
+ S_ST( 'e', 3, 93, 0 ), /* 92 ch */
+ S_ST( 'c', 3, 94, 0 ), /* 93 che */
+ S_ST( 'k', 3, 95, 0 ), /* 94 chec */
+ S_ST( 'h', 3, 96, 0 ), /* 95 check */
+ S_ST( 'a', 3, 97, 0 ), /* 96 checkh */
+ S_ST( 's', 3, 277, 0 ), /* 97 checkha */
+ S_ST( 'l', 3, 99, 91 ), /* 98 c */
+ S_ST( 'o', 3, 100, 0 ), /* 99 cl */
+ S_ST( 'c', 3, 101, 0 ), /* 100 clo */
+ S_ST( 'k', 3, 102, 0 ), /* 101 cloc */
+ S_ST( 's', 3, 103, 0 ), /* 102 clock */
+ S_ST( 't', 3, 104, 0 ), /* 103 clocks */
+ S_ST( 'a', 3, 105, 0 ), /* 104 clockst */
+ S_ST( 't', 3, 278, 0 ), /* 105 clocksta */
+ S_ST( 'o', 3, 110, 98 ), /* 106 c */
+ S_ST( 'h', 3, 108, 0 ), /* 107 co */
+ S_ST( 'o', 3, 109, 0 ), /* 108 coh */
+ S_ST( 'r', 3, 279, 0 ), /* 109 coho */
+ S_ST( 'n', 3, 111, 107 ), /* 110 co */
+ S_ST( 't', 3, 112, 0 ), /* 111 con */
+ S_ST( 'r', 3, 113, 0 ), /* 112 cont */
+ S_ST( 'o', 3, 114, 0 ), /* 113 contr */
+ S_ST( 'l', 3, 115, 0 ), /* 114 contro */
+ S_ST( 'k', 3, 116, 0 ), /* 115 control */
+ S_ST( 'e', 3, 280, 0 ), /* 116 controlk */
+ S_ST( 'r', 3, 118, 106 ), /* 117 c */
+ S_ST( 'y', 3, 119, 0 ), /* 118 cr */
+ S_ST( 'p', 3, 120, 0 ), /* 119 cry */
+ S_ST( 't', 3, 281, 0 ), /* 120 cryp */
+ S_ST( 's', 3, 122, 0 ), /* 121 crypto */
+ S_ST( 't', 3, 123, 0 ), /* 122 cryptos */
+ S_ST( 'a', 3, 124, 0 ), /* 123 cryptost */
+ S_ST( 't', 3, 282, 0 ), /* 124 cryptosta */
+ S_ST( 't', 3, 283, 117 ), /* 125 c */
+ S_ST( 'd', 3, 160, 78 ), /* 126 */
+ S_ST( 'a', 3, 284, 0 ), /* 127 d */
+ S_ST( 'e', 3, 129, 127 ), /* 128 d */
+ S_ST( 'f', 3, 130, 0 ), /* 129 de */
+ S_ST( 'a', 3, 131, 0 ), /* 130 def */
+ S_ST( 'u', 3, 132, 0 ), /* 131 defa */
+ S_ST( 'l', 3, 285, 0 ), /* 132 defau */
+ S_ST( 'i', 3, 137, 128 ), /* 133 d */
+ S_ST( 'g', 3, 135, 0 ), /* 134 di */
+ S_ST( 'e', 3, 136, 0 ), /* 135 dig */
+ S_ST( 's', 3, 286, 0 ), /* 136 dige */
+ S_ST( 's', 3, 144, 134 ), /* 137 di */
+ S_ST( 'a', 3, 139, 0 ), /* 138 dis */
+ S_ST( 'b', 3, 140, 0 ), /* 139 disa */
+ S_ST( 'l', 3, 287, 0 ), /* 140 disab */
+ S_ST( 'c', 3, 142, 138 ), /* 141 dis */
+ S_ST( 'a', 3, 143, 0 ), /* 142 disc */
+ S_ST( 'r', 3, 288, 0 ), /* 143 disca */
+ S_ST( 'p', 3, 145, 141 ), /* 144 dis */
+ S_ST( 'e', 3, 146, 0 ), /* 145 disp */
+ S_ST( 'r', 3, 147, 0 ), /* 146 dispe */
+ S_ST( 's', 3, 148, 0 ), /* 147 disper */
+ S_ST( 'i', 3, 149, 0 ), /* 148 dispers */
+ S_ST( 'o', 3, 289, 0 ), /* 149 dispersi */
+ S_ST( 'r', 3, 157, 133 ), /* 150 d */
+ S_ST( 'i', 3, 152, 0 ), /* 151 dr */
+ S_ST( 'f', 3, 153, 0 ), /* 152 dri */
+ S_ST( 't', 3, 154, 0 ), /* 153 drif */
+ S_ST( 'f', 3, 155, 0 ), /* 154 drift */
+ S_ST( 'i', 3, 156, 0 ), /* 155 driftf */
+ S_ST( 'l', 3, 291, 0 ), /* 156 driftfi */
+ S_ST( 'o', 3, 292, 151 ), /* 157 dr */
+ S_ST( 's', 3, 159, 150 ), /* 158 d */
+ S_ST( 'c', 3, 293, 0 ), /* 159 ds */
+ S_ST( 'u', 3, 161, 158 ), /* 160 d */
+ S_ST( 'r', 3, 162, 0 ), /* 161 du */
+ S_ST( 'a', 3, 163, 0 ), /* 162 dur */
+ S_ST( 't', 3, 164, 0 ), /* 163 dura */
+ S_ST( 'i', 3, 165, 0 ), /* 164 durat */
+ S_ST( 'o', 3, 461, 0 ), /* 165 durati */
+ S_ST( 'e', 3, 171, 126 ), /* 166 */
+ S_ST( 'n', 3, 296, 0 ), /* 167 e */
+ S_ST( 'a', 3, 169, 0 ), /* 168 en */
+ S_ST( 'b', 3, 170, 0 ), /* 169 ena */
+ S_ST( 'l', 3, 295, 0 ), /* 170 enab */
+ S_ST( 'p', 3, 172, 167 ), /* 171 e */
+ S_ST( 'e', 3, 173, 0 ), /* 172 ep */
+ S_ST( 'e', 3, 297, 0 ), /* 173 epe */
+ S_ST( 'f', 3, 195, 166 ), /* 174 */
+ S_ST( 'i', 3, 176, 0 ), /* 175 f */
+ S_ST( 'l', 3, 299, 0 ), /* 176 fi */
+ S_ST( 'g', 3, 178, 0 ), /* 177 file */
+ S_ST( 'e', 3, 300, 0 ), /* 178 fileg */
+ S_ST( 'n', 3, 180, 177 ), /* 179 file */
+ S_ST( 'u', 3, 301, 0 ), /* 180 filen */
+ S_ST( 'l', 3, 185, 175 ), /* 181 f */
+ S_ST( 'a', 3, 184, 0 ), /* 182 fl */
+ S_ST( 'g', 3, 305, 0 ), /* 183 fla */
+ S_ST( 'k', 3, 306, 183 ), /* 184 fla */
+ S_ST( 'o', 3, 186, 182 ), /* 185 fl */
+ S_ST( 'o', 3, 307, 0 ), /* 186 flo */
+ S_ST( 'r', 3, 188, 181 ), /* 187 f */
+ S_ST( 'e', 3, 308, 0 ), /* 188 fr */
+ S_ST( '_', 3, 190, 0 ), /* 189 freq */
+ S_ST( 'o', 3, 191, 0 ), /* 190 freq_ */
+ S_ST( 'f', 3, 192, 0 ), /* 191 freq_o */
+ S_ST( 'f', 3, 193, 0 ), /* 192 freq_of */
+ S_ST( 's', 3, 194, 0 ), /* 193 freq_off */
+ S_ST( 'e', 3, 462, 0 ), /* 194 freq_offs */
+ S_ST( 'u', 3, 198, 187 ), /* 195 f */
+ S_ST( 'd', 3, 197, 0 ), /* 196 fu */
+ S_ST( 'g', 3, 309, 0 ), /* 197 fud */
+ S_ST( 'z', 3, 310, 196 ), /* 198 fu */
+ S_ST( 'h', 3, 202, 174 ), /* 199 */
+ S_ST( 'o', 3, 201, 0 ), /* 200 h */
+ S_ST( 's', 3, 311, 0 ), /* 201 ho */
+ S_ST( 'u', 3, 203, 200 ), /* 202 h */
+ S_ST( 'f', 3, 204, 0 ), /* 203 hu */
+ S_ST( 'f', 3, 205, 0 ), /* 204 huf */
+ S_ST( 'p', 3, 206, 0 ), /* 205 huff */
+ S_ST( 'u', 3, 207, 0 ), /* 206 huffp */
+ S_ST( 'f', 3, 312, 0 ), /* 207 huffpu */
+ S_ST( 'i', 3, 252, 199 ), /* 208 */
+ S_ST( 'b', 3, 210, 0 ), /* 209 i */
+ S_ST( 'u', 3, 211, 0 ), /* 210 ib */
+ S_ST( 'r', 3, 212, 0 ), /* 211 ibu */
+ S_ST( 's', 3, 313, 0 ), /* 212 ibur */
+ S_ST( 'd', 3, 214, 209 ), /* 213 i */
+ S_ST( 'e', 3, 215, 0 ), /* 214 id */
+ S_ST( 'n', 3, 314, 0 ), /* 215 ide */
+ S_ST( 'g', 3, 217, 213 ), /* 216 i */
+ S_ST( 'n', 3, 218, 0 ), /* 217 ig */
+ S_ST( 'o', 3, 219, 0 ), /* 218 ign */
+ S_ST( 'r', 3, 315, 0 ), /* 219 igno */
+ S_ST( 'h', 3, 221, 0 ), /* 220 ignore */
+ S_ST( 'a', 3, 222, 0 ), /* 221 ignoreh */
+ S_ST( 's', 3, 316, 0 ), /* 222 ignoreha */
+ S_ST( 'n', 3, 246, 216 ), /* 223 i */
+ S_ST( 'c', 3, 236, 0 ), /* 224 in */
+ S_ST( 'a', 3, 226, 0 ), /* 225 inc */
+ S_ST( 'l', 3, 227, 0 ), /* 226 inca */
+ S_ST( 'l', 3, 228, 0 ), /* 227 incal */
+ S_ST( 'o', 3, 317, 0 ), /* 228 incall */
+ S_ST( 'l', 3, 230, 225 ), /* 229 inc */
+ S_ST( 'u', 3, 231, 0 ), /* 230 incl */
+ S_ST( 'd', 3, 232, 0 ), /* 231 inclu */
+ S_ST( 'e', 3, 233, 0 ), /* 232 includ */
+ S_ST( 'f', 3, 234, 0 ), /* 233 include */
+ S_ST( 'i', 3, 235, 0 ), /* 234 includef */
+ S_ST( 'l', 3, 321, 0 ), /* 235 includefi */
+ S_ST( 'm', 3, 237, 229 ), /* 236 inc */
+ S_ST( 'e', 3, 318, 0 ), /* 237 incm */
+ S_ST( 'i', 3, 239, 224 ), /* 238 in */
+ S_ST( 't', 3, 244, 0 ), /* 239 ini */
+ S_ST( 'a', 3, 241, 0 ), /* 240 init */
+ S_ST( 'l', 3, 242, 0 ), /* 241 inita */
+ S_ST( 'l', 3, 243, 0 ), /* 242 inital */
+ S_ST( 'o', 3, 319, 0 ), /* 243 initall */
+ S_ST( 'm', 3, 245, 240 ), /* 244 init */
+ S_ST( 'e', 3, 320, 0 ), /* 245 initm */
+ S_ST( 't', 3, 247, 238 ), /* 246 in */
+ S_ST( 'e', 3, 248, 0 ), /* 247 int */
+ S_ST( 'r', 3, 249, 0 ), /* 248 inte */
+ S_ST( 'f', 3, 250, 0 ), /* 249 inter */
+ S_ST( 'a', 3, 251, 0 ), /* 250 interf */
+ S_ST( 'c', 3, 323, 0 ), /* 251 interfa */
+ S_ST( 'p', 3, 324, 325 ), /* 252 i */
+ S_ST( 'p', 3, 254, 0 ), /* 253 ip */
+ S_ST( 'e', 3, 255, 0 ), /* 254 ipp */
+ S_ST( 'e', 3, 256, 0 ), /* 255 ippe */
+ S_ST( 'r', 3, 257, 0 ), /* 256 ippee */
+ S_ST( 'l', 3, 290, 0 ), /* 257 ippeer */
S_ST( 'v', 1, 0, 0 ), /* 258 T_Abbrev */
S_ST( 'e', 0, 0, 0 ), /* 259 T_Age */
S_ST( 'l', 0, 12, 0 ), /* 260 T_All */
@@ -494,671 +503,716 @@
S_ST( 't', 0, 0, 0 ), /* 274 T_Burst */
S_ST( 'e', 0, 0, 0 ), /* 275 T_Calibrate */
S_ST( 'g', 0, 0, 0 ), /* 276 T_Ceiling */
- S_ST( 's', 0, 0, 0 ), /* 277 T_Clockstats */
- S_ST( 't', 0, 0, 0 ), /* 278 T_Cohort */
- S_ST( 'y', 0, 0, 0 ), /* 279 T_ControlKey */
- S_ST( 'o', 0, 114, 0 ), /* 280 T_Crypto */
- S_ST( 's', 0, 0, 0 ), /* 281 T_Cryptostats */
- S_ST( 'l', 0, 0, 0 ), /* 282 T_Ctl */
- S_ST( 'y', 0, 0, 0 ), /* 283 T_Day */
- S_ST( 't', 0, 0, 0 ), /* 284 T_Default */
- S_ST( 't', 1, 0, 0 ), /* 285 T_Digest */
- S_ST( 'e', 0, 0, 0 ), /* 286 T_Disable */
- S_ST( 'd', 0, 0, 0 ), /* 287 T_Discard */
- S_ST( 'n', 0, 0, 0 ), /* 288 T_Dispersion */
- S_ST( 'r', 3, 297, 0 ), /* 289 ke */
- S_ST( 'e', 1, 0, 0 ), /* 290 T_Driftfile */
- S_ST( 'p', 0, 0, 0 ), /* 291 T_Drop */
- S_ST( 'p', 0, 0, 0 ), /* 292 T_Dscp */
- S_ST( '.', 0, 0, 0 ), /* 293 T_Ellipsis */
- S_ST( 'e', 0, 0, 0 ), /* 294 T_Enable */
- S_ST( 'd', 0, 0, 161 ), /* 295 T_End */
- S_ST( 'r', 0, 0, 0 ), /* 296 T_Epeer */
- S_ST( 'n', 3, 319, 0 ), /* 297 ker */
- S_ST( 'e', 1, 172, 0 ), /* 298 T_File */
- S_ST( 'n', 0, 0, 0 ), /* 299 T_Filegen */
- S_ST( 'm', 0, 0, 0 ), /* 300 T_Filenum */
- S_ST( '1', 0, 0, 0 ), /* 301 T_Flag1 */
- S_ST( '2', 0, 0, 301 ), /* 302 T_Flag2 */
- S_ST( '3', 0, 0, 302 ), /* 303 T_Flag3 */
- S_ST( '4', 0, 0, 303 ), /* 304 T_Flag4 */
- S_ST( 'e', 0, 0, 0 ), /* 305 T_Flake */
- S_ST( 'r', 0, 0, 0 ), /* 306 T_Floor */
- S_ST( 'q', 0, 182, 0 ), /* 307 T_Freq */
- S_ST( 'e', 1, 0, 0 ), /* 308 T_Fudge */
- S_ST( 't', 1, 0, 0 ), /* 309 T_Host */
- S_ST( 'f', 0, 0, 0 ), /* 310 T_Huffpuff */
- S_ST( 't', 0, 0, 0 ), /* 311 T_Iburst */
- S_ST( 't', 1, 0, 0 ), /* 312 T_Ident */
- S_ST( 'e', 0, 0, 0 ), /* 313 T_Ignore */
- S_ST( 'c', 0, 0, 0 ), /* 314 T_Incalloc */
- S_ST( 'm', 0, 0, 0 ), /* 315 T_Incmem */
- S_ST( 'c', 0, 0, 0 ), /* 316 T_Initalloc */
- S_ST( 'm', 0, 0, 0 ), /* 317 T_Initmem */
- S_ST( 'e', 1, 0, 0 ), /* 318 T_Includefile */
- S_ST( 'e', 3, 328, 0 ), /* 319 kern */
- S_ST( 'e', 0, 0, 0 ), /* 320 T_Interface */
- S_ST( 'd', 3, 419, 0 ), /* 321 keys */
- S_ST( 'o', 0, 0, 212 ), /* 322 T_Io */
- S_ST( 't', 0, 0, 0 ), /* 323 T_Ippeerlimit */
- S_ST( '4', 0, 0, 0 ), /* 324 T_Ipv4 */
- S_ST( '4', 0, 0, 0 ), /* 325 T_Ipv4_flag */
- S_ST( '6', 0, 0, 324 ), /* 326 T_Ipv6 */
- S_ST( '6', 0, 0, 325 ), /* 327 T_Ipv6_flag */
- S_ST( 'l', 0, 0, 0 ), /* 328 T_Kernel */
- S_ST( 'y', 0, 330, 289 ), /* 329 T_Key */
- S_ST( 's', 1, 321, 0 ), /* 330 T_Keys */
- S_ST( 'r', 1, 0, 0 ), /* 331 T_Keysdir */
- S_ST( 'd', 0, 0, 0 ), /* 332 T_Kod */
- S_ST( 'p', 0, 0, 0 ), /* 333 T_Mssntp */
- S_ST( 'e', 1, 0, 0 ), /* 334 T_Leapfile */
- S_ST( 'l', 0, 0, 0 ), /* 335 T_Leapsmearinterval */
- S_ST( 'd', 0, 0, 0 ), /* 336 T_Limited */
- S_ST( 'k', 0, 0, 0 ), /* 337 T_Link */
- S_ST( 'n', 0, 0, 0 ), /* 338 T_Listen */
- S_ST( 'g', 2, 0, 0 ), /* 339 T_Logconfig */
- S_ST( 'e', 1, 0, 0 ), /* 340 T_Logfile */
- S_ST( 's', 0, 0, 0 ), /* 341 T_Loopstats */
- S_ST( 'p', 0, 0, 0 ), /* 342 T_Lowpriotrap */
- S_ST( 't', 1, 0, 0 ), /* 343 T_Manycastclient */
- S_ST( 'r', 2, 0, 0 ), /* 344 T_Manycastserver */
- S_ST( 'k', 0, 0, 0 ), /* 345 T_Mask */
- S_ST( 'e', 0, 0, 0 ), /* 346 T_Maxage */
- S_ST( 'k', 0, 0, 0 ), /* 347 T_Maxclock */
- S_ST( 'h', 0, 0, 0 ), /* 348 T_Maxdepth */
- S_ST( 't', 0, 0, 0 ), /* 349 T_Maxdist */
- S_ST( 'm', 0, 0, 0 ), /* 350 T_Maxmem */
- S_ST( 'l', 0, 0, 0 ), /* 351 T_Maxpoll */
- S_ST( 's', 0, 0, 0 ), /* 352 T_Mdnstries */
- S_ST( 'm', 0, 552, 0 ), /* 353 T_Mem */
- S_ST( 'k', 0, 0, 0 ), /* 354 T_Memlock */
- S_ST( 'k', 0, 0, 0 ), /* 355 T_Minclock */
- S_ST( 'h', 0, 0, 0 ), /* 356 T_Mindepth */
- S_ST( 't', 0, 0, 0 ), /* 357 T_Mindist */
- S_ST( 'm', 0, 0, 0 ), /* 358 T_Minimum */
- S_ST( 'l', 0, 0, 0 ), /* 359 T_Minpoll */
- S_ST( 'e', 0, 0, 0 ), /* 360 T_Minsane */
- S_ST( 'e', 0, 362, 0 ), /* 361 T_Mode */
- S_ST( '7', 0, 0, 0 ), /* 362 T_Mode7 */
- S_ST( 'r', 0, 0, 0 ), /* 363 T_Monitor */
- S_ST( 'h', 0, 0, 0 ), /* 364 T_Month */
- S_ST( 'u', 0, 0, 0 ), /* 365 T_Mru */
- S_ST( 't', 2, 0, 0 ), /* 366 T_Multicastclient */
- S_ST( 'c', 0, 0, 0 ), /* 367 T_Nic */
- S_ST( 'k', 0, 0, 0 ), /* 368 T_Nolink */
- S_ST( 'y', 0, 0, 0 ), /* 369 T_Nomodify */
- S_ST( 't', 0, 0, 0 ), /* 370 T_Nomrulist */
- S_ST( 'e', 0, 0, 0 ), /* 371 T_None */
- S_ST( 'e', 0, 0, 0 ), /* 372 T_Nonvolatile */
- S_ST( 'r', 0, 0, 0 ), /* 373 T_Noepeer */
- S_ST( 'r', 0, 0, 0 ), /* 374 T_Nopeer */
- S_ST( 'y', 0, 0, 0 ), /* 375 T_Noquery */
- S_ST( 't', 0, 0, 0 ), /* 376 T_Noselect */
- S_ST( 'e', 0, 0, 0 ), /* 377 T_Noserve */
- S_ST( 'p', 0, 0, 0 ), /* 378 T_Notrap */
- S_ST( 't', 0, 0, 0 ), /* 379 T_Notrust */
- S_ST( 'p', 0, 652, 0 ), /* 380 T_Ntp */
- S_ST( 't', 0, 0, 0 ), /* 381 T_Ntpport */
- S_ST( 't', 1, 0, 0 ), /* 382 T_NtpSignDsocket */
- S_ST( 'n', 0, 667, 0 ), /* 383 T_Orphan */
- S_ST( 't', 0, 0, 0 ), /* 384 T_Orphanwait */
- S_ST( 'y', 0, 0, 0 ), /* 385 T_PCEdigest */
- S_ST( 'c', 0, 0, 0 ), /* 386 T_Panic */
- S_ST( 'r', 1, 694, 0 ), /* 387 T_Peer */
- S_ST( 's', 0, 0, 0 ), /* 388 T_Peerstats */
- S_ST( 'e', 2, 0, 0 ), /* 389 T_Phone */
- S_ST( 'd', 0, 702, 0 ), /* 390 T_Pid */
- S_ST( 'e', 1, 0, 0 ), /* 391 T_Pidfile */
- S_ST( 'l', 1, 0, 0 ), /* 392 T_Pool */
- S_ST( 't', 0, 0, 0 ), /* 393 T_Port */
- S_ST( 't', 0, 0, 0 ), /* 394 T_Preempt */
- S_ST( 'r', 0, 0, 0 ), /* 395 T_Prefer */
- S_ST( 's', 0, 0, 0 ), /* 396 T_Protostats */
- S_ST( 'w', 1, 0, 708 ), /* 397 T_Pw */
- S_ST( 'e', 1, 0, 0 ), /* 398 T_Randfile */
- S_ST( 's', 0, 0, 0 ), /* 399 T_Rawstats */
- S_ST( 'd', 1, 0, 0 ), /* 400 T_Refid */
- S_ST( 'y', 0, 0, 0 ), /* 401 T_Requestkey */
- S_ST( 't', 0, 0, 0 ), /* 402 T_Reset */
- S_ST( 't', 0, 0, 0 ), /* 403 T_Restrict */
- S_ST( 'e', 0, 0, 0 ), /* 404 T_Revoke */
- S_ST( 't', 0, 0, 0 ), /* 405 T_Rlimit */
- S_ST( 'r', 1, 0, 0 ), /* 406 T_Saveconfigdir */
- S_ST( 'r', 1, 785, 0 ), /* 407 T_Server */
- S_ST( 'r', 1, 0, 0 ), /* 408 T_Setvar */
- S_ST( 'e', 0, 0, 0 ), /* 409 T_Source */
- S_ST( 'e', 0, 0, 0 ), /* 410 T_Stacksize */
- S_ST( 's', 0, 0, 0 ), /* 411 T_Statistics */
- S_ST( 's', 0, 828, 823 ), /* 412 T_Stats */
- S_ST( 'r', 1, 0, 0 ), /* 413 T_Statsdir */
- S_ST( 'p', 0, 836, 0 ), /* 414 T_Step */
- S_ST( 'k', 0, 0, 0 ), /* 415 T_Stepback */
- S_ST( 'd', 0, 0, 0 ), /* 416 T_Stepfwd */
- S_ST( 't', 0, 0, 0 ), /* 417 T_Stepout */
- S_ST( 'm', 0, 0, 0 ), /* 418 T_Stratum */
- S_ST( 'i', 3, 331, 0 ), /* 419 keysd */
- S_ST( 's', 0, 843, 0 ), /* 420 T_Sys */
- S_ST( 's', 0, 0, 0 ), /* 421 T_Sysstats */
- S_ST( 'k', 0, 0, 0 ), /* 422 T_Tick */
- S_ST( '1', 0, 0, 0 ), /* 423 T_Time1 */
- S_ST( '2', 0, 0, 423 ), /* 424 T_Time2 */
- S_ST( 'r', 0, 0, 424 ), /* 425 T_Timer */
- S_ST( 's', 0, 0, 0 ), /* 426 T_Timingstats */
- S_ST( 'r', 0, 0, 0 ), /* 427 T_Tinker */
- S_ST( 's', 0, 0, 0 ), /* 428 T_Tos */
- S_ST( 'p', 1, 0, 0 ), /* 429 T_Trap */
- S_ST( 'e', 0, 0, 0 ), /* 430 T_True */
- S_ST( 'y', 0, 0, 0 ), /* 431 T_Trustedkey */
- S_ST( 'l', 0, 0, 0 ), /* 432 T_Ttl */
- S_ST( 'e', 0, 0, 0 ), /* 433 T_Type */
- S_ST( 'o', 3, 332, 257 ), /* 434 k */
- S_ST( 'y', 0, 0, 0 ), /* 435 T_UEcrypto */
- S_ST( 'y', 0, 0, 0 ), /* 436 T_UEcryptonak */
- S_ST( 'y', 0, 0, 0 ), /* 437 T_UEdigest */
- S_ST( 'g', 1, 0, 0 ), /* 438 T_Unconfig */
- S_ST( 'r', 1, 885, 0 ), /* 439 T_Unpeer */
- S_ST( 'n', 0, 0, 0 ), /* 440 T_Version */
- S_ST( 'l', 3, 483, 256 ), /* 441 */
- S_ST( 'k', 0, 0, 0 ), /* 442 T_Week */
- S_ST( 'd', 0, 0, 0 ), /* 443 T_Wildcard */
- S_ST( 'e', 0, 0, 0 ), /* 444 T_Xleave */
- S_ST( 'r', 0, 0, 0 ), /* 445 T_Year */
- S_ST( 'e', 3, 447, 0 ), /* 446 l */
- S_ST( 'a', 3, 458, 0 ), /* 447 le */
- S_ST( 'e', 0, 0, 0 ), /* 448 T_Simulate */
- S_ST( 'y', 0, 0, 0 ), /* 449 T_Beep_Delay */
- S_ST( 'n', 0, 0, 0 ), /* 450 T_Sim_Duration */
- S_ST( 't', 0, 0, 0 ), /* 451 T_Server_Offset */
- S_ST( 'n', 0, 0, 0 ), /* 452 T_Duration */
- S_ST( 't', 0, 0, 0 ), /* 453 T_Freq_Offset */
- S_ST( 'r', 0, 0, 0 ), /* 454 T_Wander */
- S_ST( 'r', 0, 0, 0 ), /* 455 T_Jitter */
- S_ST( 'y', 0, 0, 0 ), /* 456 T_Prop_Delay */
- S_ST( 'y', 0, 0, 0 ), /* 457 T_Proc_Delay */
- S_ST( 'p', 3, 462, 0 ), /* 458 lea */
- S_ST( 'f', 3, 460, 0 ), /* 459 leap */
- S_ST( 'i', 3, 461, 0 ), /* 460 leapf */
- S_ST( 'l', 3, 334, 0 ), /* 461 leapfi */
- S_ST( 's', 3, 463, 459 ), /* 462 leap */
- S_ST( 'm', 3, 464, 0 ), /* 463 leaps */
- S_ST( 'e', 3, 465, 0 ), /* 464 leapsm */
- S_ST( 'a', 3, 466, 0 ), /* 465 leapsme */
- S_ST( 'r', 3, 467, 0 ), /* 466 leapsmea */
- S_ST( 'i', 3, 468, 0 ), /* 467 leapsmear */
- S_ST( 'n', 3, 469, 0 ), /* 468 leapsmeari */
- S_ST( 't', 3, 470, 0 ), /* 469 leapsmearin */
- S_ST( 'e', 3, 471, 0 ), /* 470 leapsmearint */
- S_ST( 'r', 3, 472, 0 ), /* 471 leapsmearinte */
- S_ST( 'v', 3, 473, 0 ), /* 472 leapsmearinter */
- S_ST( 'a', 3, 335, 0 ), /* 473 leapsmearinterv */
- S_ST( 'i', 3, 480, 446 ), /* 474 l */
- S_ST( 'm', 3, 476, 0 ), /* 475 li */
- S_ST( 'i', 3, 477, 0 ), /* 476 lim */
- S_ST( 't', 3, 478, 0 ), /* 477 limi */
- S_ST( 'e', 3, 336, 0 ), /* 478 limit */
- S_ST( 'n', 3, 337, 475 ), /* 479 li */
- S_ST( 's', 3, 481, 479 ), /* 480 li */
- S_ST( 't', 3, 482, 0 ), /* 481 lis */
- S_ST( 'e', 3, 338, 0 ), /* 482 list */
- S_ST( 'o', 3, 499, 474 ), /* 483 l */
- S_ST( 'g', 3, 490, 0 ), /* 484 lo */
- S_ST( 'c', 3, 486, 0 ), /* 485 log */
- S_ST( 'o', 3, 487, 0 ), /* 486 logc */
- S_ST( 'n', 3, 488, 0 ), /* 487 logco */
- S_ST( 'f', 3, 489, 0 ), /* 488 logcon */
- S_ST( 'i', 3, 339, 0 ), /* 489 logconf */
- S_ST( 'f', 3, 491, 485 ), /* 490 log */
- S_ST( 'i', 3, 492, 0 ), /* 491 logf */
- S_ST( 'l', 3, 340, 0 ), /* 492 logfi */
- S_ST( 'o', 3, 494, 484 ), /* 493 lo */
- S_ST( 'p', 3, 495, 0 ), /* 494 loo */
- S_ST( 's', 3, 496, 0 ), /* 495 loop */
- S_ST( 't', 3, 497, 0 ), /* 496 loops */
- S_ST( 'a', 3, 498, 0 ), /* 497 loopst */
- S_ST( 't', 3, 341, 0 ), /* 498 loopsta */
- S_ST( 'w', 3, 500, 493 ), /* 499 lo */
- S_ST( 'p', 3, 501, 0 ), /* 500 low */
- S_ST( 'r', 3, 502, 0 ), /* 501 lowp */
- S_ST( 'i', 3, 503, 0 ), /* 502 lowpr */
- S_ST( 'o', 3, 504, 0 ), /* 503 lowpri */
- S_ST( 't', 3, 505, 0 ), /* 504 lowprio */
- S_ST( 'r', 3, 506, 0 ), /* 505 lowpriot */
- S_ST( 'a', 3, 342, 0 ), /* 506 lowpriotr */
- S_ST( 'm', 3, 588, 441 ), /* 507 */
- S_ST( 'a', 3, 526, 0 ), /* 508 m */
- S_ST( 'n', 3, 510, 0 ), /* 509 ma */
- S_ST( 'y', 3, 511, 0 ), /* 510 man */
- S_ST( 'c', 3, 512, 0 ), /* 511 many */
- S_ST( 'a', 3, 513, 0 ), /* 512 manyc */
- S_ST( 's', 3, 514, 0 ), /* 513 manyca */
- S_ST( 't', 3, 520, 0 ), /* 514 manycas */
- S_ST( 'c', 3, 516, 0 ), /* 515 manycast */
- S_ST( 'l', 3, 517, 0 ), /* 516 manycastc */
- S_ST( 'i', 3, 518, 0 ), /* 517 manycastcl */
- S_ST( 'e', 3, 519, 0 ), /* 518 manycastcli */
- S_ST( 'n', 3, 343, 0 ), /* 519 manycastclie */
- S_ST( 's', 3, 521, 515 ), /* 520 manycast */
- S_ST( 'e', 3, 522, 0 ), /* 521 manycasts */
- S_ST( 'r', 3, 523, 0 ), /* 522 manycastse */
- S_ST( 'v', 3, 524, 0 ), /* 523 manycastser */
- S_ST( 'e', 3, 344, 0 ), /* 524 manycastserv */
- S_ST( 's', 3, 345, 509 ), /* 525 ma */
- S_ST( 'x', 3, 541, 525 ), /* 526 ma */
- S_ST( 'a', 3, 528, 0 ), /* 527 max */
- S_ST( 'g', 3, 346, 0 ), /* 528 maxa */
- S_ST( 'c', 3, 530, 527 ), /* 529 max */
- S_ST( 'l', 3, 531, 0 ), /* 530 maxc */
- S_ST( 'o', 3, 532, 0 ), /* 531 maxcl */
- S_ST( 'c', 3, 347, 0 ), /* 532 maxclo */
- S_ST( 'd', 3, 537, 529 ), /* 533 max */
- S_ST( 'e', 3, 535, 0 ), /* 534 maxd */
- S_ST( 'p', 3, 536, 0 ), /* 535 maxde */
- S_ST( 't', 3, 348, 0 ), /* 536 maxdep */
- S_ST( 'i', 3, 538, 534 ), /* 537 maxd */
- S_ST( 's', 3, 349, 0 ), /* 538 maxdi */
- S_ST( 'm', 3, 540, 533 ), /* 539 max */
- S_ST( 'e', 3, 350, 0 ), /* 540 maxm */
- S_ST( 'p', 3, 542, 539 ), /* 541 max */
- S_ST( 'o', 3, 543, 0 ), /* 542 maxp */
- S_ST( 'l', 3, 351, 0 ), /* 543 maxpo */
- S_ST( 'd', 3, 545, 508 ), /* 544 m */
- S_ST( 'n', 3, 546, 0 ), /* 545 md */
- S_ST( 's', 3, 547, 0 ), /* 546 mdn */
- S_ST( 't', 3, 548, 0 ), /* 547 mdns */
- S_ST( 'r', 3, 549, 0 ), /* 548 mdnst */
- S_ST( 'i', 3, 550, 0 ), /* 549 mdnstr */
- S_ST( 'e', 3, 352, 0 ), /* 550 mdnstri */
- S_ST( 'e', 3, 353, 544 ), /* 551 m */
- S_ST( 'l', 3, 553, 0 ), /* 552 mem */
- S_ST( 'o', 3, 554, 0 ), /* 553 meml */
- S_ST( 'c', 3, 354, 0 ), /* 554 memlo */
- S_ST( 'i', 3, 556, 551 ), /* 555 m */
- S_ST( 'n', 3, 573, 0 ), /* 556 mi */
- S_ST( 'c', 3, 558, 0 ), /* 557 min */
- S_ST( 'l', 3, 559, 0 ), /* 558 minc */
- S_ST( 'o', 3, 560, 0 ), /* 559 mincl */
- S_ST( 'c', 3, 355, 0 ), /* 560 minclo */
- S_ST( 'd', 3, 565, 557 ), /* 561 min */
- S_ST( 'e', 3, 563, 0 ), /* 562 mind */
- S_ST( 'p', 3, 564, 0 ), /* 563 minde */
- S_ST( 't', 3, 356, 0 ), /* 564 mindep */
- S_ST( 'i', 3, 566, 562 ), /* 565 mind */
- S_ST( 's', 3, 357, 0 ), /* 566 mindi */
- S_ST( 'i', 3, 568, 561 ), /* 567 min */
- S_ST( 'm', 3, 569, 0 ), /* 568 mini */
- S_ST( 'u', 3, 358, 0 ), /* 569 minim */
- S_ST( 'p', 3, 571, 567 ), /* 570 min */
- S_ST( 'o', 3, 572, 0 ), /* 571 minp */
- S_ST( 'l', 3, 359, 0 ), /* 572 minpo */
- S_ST( 's', 3, 574, 570 ), /* 573 min */
- S_ST( 'a', 3, 575, 0 ), /* 574 mins */
- S_ST( 'n', 3, 360, 0 ), /* 575 minsa */
- S_ST( 'o', 3, 578, 555 ), /* 576 m */
- S_ST( 'd', 3, 361, 0 ), /* 577 mo */
- S_ST( 'n', 3, 582, 577 ), /* 578 mo */
- S_ST( 'i', 3, 580, 0 ), /* 579 mon */
- S_ST( 't', 3, 581, 0 ), /* 580 moni */
- S_ST( 'o', 3, 363, 0 ), /* 581 monit */
- S_ST( 't', 3, 364, 579 ), /* 582 mon */
- S_ST( 'r', 3, 365, 576 ), /* 583 m */
- S_ST( 's', 3, 585, 583 ), /* 584 m */
- S_ST( 's', 3, 586, 0 ), /* 585 ms */
- S_ST( 'n', 3, 587, 0 ), /* 586 mss */
- S_ST( 't', 3, 333, 0 ), /* 587 mssn */
- S_ST( 'u', 3, 589, 584 ), /* 588 m */
- S_ST( 'l', 3, 590, 0 ), /* 589 mu */
- S_ST( 't', 3, 591, 0 ), /* 590 mul */
- S_ST( 'i', 3, 592, 0 ), /* 591 mult */
- S_ST( 'c', 3, 593, 0 ), /* 592 multi */
- S_ST( 'a', 3, 594, 0 ), /* 593 multic */
- S_ST( 's', 3, 595, 0 ), /* 594 multica */
- S_ST( 't', 3, 596, 0 ), /* 595 multicas */
- S_ST( 'c', 3, 597, 0 ), /* 596 multicast */
- S_ST( 'l', 3, 598, 0 ), /* 597 multicastc */
- S_ST( 'i', 3, 599, 0 ), /* 598 multicastcl */
- S_ST( 'e', 3, 600, 0 ), /* 599 multicastcli */
- S_ST( 'n', 3, 366, 0 ), /* 600 multicastclie */
- S_ST( 'n', 3, 648, 507 ), /* 601 */
- S_ST( 'i', 3, 367, 0 ), /* 602 n */
- S_ST( 'o', 3, 643, 602 ), /* 603 n */
- S_ST( 'e', 3, 605, 0 ), /* 604 no */
- S_ST( 'p', 3, 606, 0 ), /* 605 noe */
- S_ST( 'e', 3, 607, 0 ), /* 606 noep */
- S_ST( 'e', 3, 373, 0 ), /* 607 noepe */
- S_ST( 'l', 3, 609, 604 ), /* 608 no */
- S_ST( 'i', 3, 610, 0 ), /* 609 nol */
- S_ST( 'n', 3, 368, 0 ), /* 610 noli */
- S_ST( 'm', 3, 616, 608 ), /* 611 no */
- S_ST( 'o', 3, 613, 0 ), /* 612 nom */
- S_ST( 'd', 3, 614, 0 ), /* 613 nomo */
- S_ST( 'i', 3, 615, 0 ), /* 614 nomod */
- S_ST( 'f', 3, 369, 0 ), /* 615 nomodi */
- S_ST( 'r', 3, 617, 612 ), /* 616 nom */
- S_ST( 'u', 3, 618, 0 ), /* 617 nomr */
- S_ST( 'l', 3, 619, 0 ), /* 618 nomru */
- S_ST( 'i', 3, 620, 0 ), /* 619 nomrul */
- S_ST( 's', 3, 370, 0 ), /* 620 nomruli */
- S_ST( 'n', 3, 622, 611 ), /* 621 no */
- S_ST( 'v', 3, 623, 371 ), /* 622 non */
- S_ST( 'o', 3, 624, 0 ), /* 623 nonv */
- S_ST( 'l', 3, 625, 0 ), /* 624 nonvo */
- S_ST( 'a', 3, 626, 0 ), /* 625 nonvol */
- S_ST( 't', 3, 627, 0 ), /* 626 nonvola */
- S_ST( 'i', 3, 628, 0 ), /* 627 nonvolat */
- S_ST( 'l', 3, 372, 0 ), /* 628 nonvolati */
- S_ST( 'p', 3, 630, 621 ), /* 629 no */
- S_ST( 'e', 3, 631, 0 ), /* 630 nop */
- S_ST( 'e', 3, 374, 0 ), /* 631 nope */
- S_ST( 'q', 3, 633, 629 ), /* 632 no */
- S_ST( 'u', 3, 634, 0 ), /* 633 noq */
- S_ST( 'e', 3, 635, 0 ), /* 634 noqu */
- S_ST( 'r', 3, 375, 0 ), /* 635 noque */
- S_ST( 's', 3, 637, 632 ), /* 636 no */
- S_ST( 'e', 3, 641, 0 ), /* 637 nos */
- S_ST( 'l', 3, 639, 0 ), /* 638 nose */
- S_ST( 'e', 3, 640, 0 ), /* 639 nosel */
- S_ST( 'c', 3, 376, 0 ), /* 640 nosele */
- S_ST( 'r', 3, 642, 638 ), /* 641 nose */
- S_ST( 'v', 3, 377, 0 ), /* 642 noser */
- S_ST( 't', 3, 644, 636 ), /* 643 no */
- S_ST( 'r', 3, 646, 0 ), /* 644 not */
- S_ST( 'a', 3, 378, 0 ), /* 645 notr */
- S_ST( 'u', 3, 647, 645 ), /* 646 notr */
- S_ST( 's', 3, 379, 0 ), /* 647 notru */
- S_ST( 't', 3, 380, 603 ), /* 648 n */
- S_ST( 'p', 3, 650, 0 ), /* 649 ntp */
- S_ST( 'o', 3, 651, 0 ), /* 650 ntpp */
- S_ST( 'r', 3, 381, 0 ), /* 651 ntppo */
- S_ST( 's', 3, 653, 649 ), /* 652 ntp */
- S_ST( 'i', 3, 654, 0 ), /* 653 ntps */
- S_ST( 'g', 3, 655, 0 ), /* 654 ntpsi */
- S_ST( 'n', 3, 656, 0 ), /* 655 ntpsig */
- S_ST( 'd', 3, 657, 0 ), /* 656 ntpsign */
- S_ST( 's', 3, 658, 0 ), /* 657 ntpsignd */
- S_ST( 'o', 3, 659, 0 ), /* 658 ntpsignds */
- S_ST( 'c', 3, 660, 0 ), /* 659 ntpsigndso */
- S_ST( 'k', 3, 661, 0 ), /* 660 ntpsigndsoc */
- S_ST( 'e', 3, 382, 0 ), /* 661 ntpsigndsock */
- S_ST( 'o', 3, 663, 601 ), /* 662 */
- S_ST( 'r', 3, 664, 0 ), /* 663 o */
- S_ST( 'p', 3, 665, 0 ), /* 664 or */
- S_ST( 'h', 3, 666, 0 ), /* 665 orp */
- S_ST( 'a', 3, 383, 0 ), /* 666 orph */
- S_ST( 'w', 3, 668, 0 ), /* 667 orphan */
- S_ST( 'a', 3, 669, 0 ), /* 668 orphanw */
- S_ST( 'i', 3, 384, 0 ), /* 669 orphanwa */
- S_ST( 'p', 3, 397, 662 ), /* 670 */
- S_ST( 'a', 3, 672, 0 ), /* 671 p */
- S_ST( 'n', 3, 673, 0 ), /* 672 pa */
- S_ST( 'i', 3, 386, 0 ), /* 673 pan */
- S_ST( 'e', 3, 675, 671 ), /* 674 p */
- S_ST( 'e', 3, 387, 0 ), /* 675 pe */
- S_ST( '_', 3, 677, 0 ), /* 676 peer */
- S_ST( 'c', 3, 678, 0 ), /* 677 peer_ */
- S_ST( 'l', 3, 679, 0 ), /* 678 peer_c */
- S_ST( 'e', 3, 680, 0 ), /* 679 peer_cl */
- S_ST( 'a', 3, 681, 0 ), /* 680 peer_cle */
- S_ST( 'r', 3, 682, 0 ), /* 681 peer_clea */
- S_ST( '_', 3, 683, 0 ), /* 682 peer_clear */
- S_ST( 'd', 3, 684, 0 ), /* 683 peer_clear_ */
- S_ST( 'i', 3, 685, 0 ), /* 684 peer_clear_d */
- S_ST( 'g', 3, 686, 0 ), /* 685 peer_clear_di */
- S_ST( 'e', 3, 687, 0 ), /* 686 peer_clear_dig */
- S_ST( 's', 3, 688, 0 ), /* 687 peer_clear_dige */
- S_ST( 't', 3, 689, 0 ), /* 688 peer_clear_diges */
- S_ST( '_', 3, 690, 0 ), /* 689 peer_clear_digest */
- S_ST( 'e', 3, 691, 0 ), /* 690 peer_clear_digest_ */
- S_ST( 'a', 3, 692, 0 ), /* 691 peer_clear_digest_e */
- S_ST( 'r', 3, 693, 0 ), /* 692 peer_clear_digest_ea */
- S_ST( 'l', 3, 385, 0 ), /* 693 peer_clear_digest_ear */
- S_ST( 's', 3, 695, 676 ), /* 694 peer */
- S_ST( 't', 3, 696, 0 ), /* 695 peers */
- S_ST( 'a', 3, 697, 0 ), /* 696 peerst */
- S_ST( 't', 3, 388, 0 ), /* 697 peersta */
- S_ST( 'h', 3, 699, 674 ), /* 698 p */
- S_ST( 'o', 3, 700, 0 ), /* 699 ph */
- S_ST( 'n', 3, 389, 0 ), /* 700 pho */
- S_ST( 'i', 3, 390, 698 ), /* 701 p */
- S_ST( 'f', 3, 703, 0 ), /* 702 pid */
- S_ST( 'i', 3, 704, 0 ), /* 703 pidf */
- S_ST( 'l', 3, 391, 0 ), /* 704 pidfi */
- S_ST( 'o', 3, 707, 701 ), /* 705 p */
- S_ST( 'o', 3, 392, 0 ), /* 706 po */
- S_ST( 'r', 3, 393, 706 ), /* 707 po */
- S_ST( 'r', 3, 715, 705 ), /* 708 p */
- S_ST( 'e', 3, 713, 0 ), /* 709 pr */
- S_ST( 'e', 3, 711, 0 ), /* 710 pre */
- S_ST( 'm', 3, 712, 0 ), /* 711 pree */
- S_ST( 'p', 3, 394, 0 ), /* 712 preem */
- S_ST( 'f', 3, 714, 710 ), /* 713 pre */
- S_ST( 'e', 3, 395, 0 ), /* 714 pref */
- S_ST( 'o', 3, 728, 709 ), /* 715 pr */
- S_ST( 'c', 3, 717, 0 ), /* 716 pro */
- S_ST( '_', 3, 718, 0 ), /* 717 proc */
- S_ST( 'd', 3, 719, 0 ), /* 718 proc_ */
- S_ST( 'e', 3, 720, 0 ), /* 719 proc_d */
- S_ST( 'l', 3, 721, 0 ), /* 720 proc_de */
- S_ST( 'a', 3, 457, 0 ), /* 721 proc_del */
- S_ST( 'p', 3, 723, 716 ), /* 722 pro */
- S_ST( '_', 3, 724, 0 ), /* 723 prop */
- S_ST( 'd', 3, 725, 0 ), /* 724 prop_ */
- S_ST( 'e', 3, 726, 0 ), /* 725 prop_d */
- S_ST( 'l', 3, 727, 0 ), /* 726 prop_de */
- S_ST( 'a', 3, 456, 0 ), /* 727 prop_del */
- S_ST( 't', 3, 729, 722 ), /* 728 pro */
- S_ST( 'o', 3, 730, 0 ), /* 729 prot */
- S_ST( 's', 3, 731, 0 ), /* 730 proto */
- S_ST( 't', 3, 732, 0 ), /* 731 protos */
- S_ST( 'a', 3, 733, 0 ), /* 732 protost */
- S_ST( 't', 3, 396, 0 ), /* 733 protosta */
- S_ST( 'r', 3, 765, 670 ), /* 734 */
- S_ST( 'a', 3, 741, 0 ), /* 735 r */
- S_ST( 'n', 3, 737, 0 ), /* 736 ra */
- S_ST( 'd', 3, 738, 0 ), /* 737 ran */
- S_ST( 'f', 3, 739, 0 ), /* 738 rand */
- S_ST( 'i', 3, 740, 0 ), /* 739 randf */
- S_ST( 'l', 3, 398, 0 ), /* 740 randfi */
- S_ST( 'w', 3, 742, 736 ), /* 741 ra */
- S_ST( 's', 3, 743, 0 ), /* 742 raw */
- S_ST( 't', 3, 744, 0 ), /* 743 raws */
- S_ST( 'a', 3, 745, 0 ), /* 744 rawst */
- S_ST( 't', 3, 399, 0 ), /* 745 rawsta */
- S_ST( 'e', 3, 762, 735 ), /* 746 r */
- S_ST( 'f', 3, 748, 0 ), /* 747 re */
- S_ST( 'i', 3, 400, 0 ), /* 748 ref */
- S_ST( 'q', 3, 750, 747 ), /* 749 re */
- S_ST( 'u', 3, 751, 0 ), /* 750 req */
- S_ST( 'e', 3, 752, 0 ), /* 751 requ */
- S_ST( 's', 3, 753, 0 ), /* 752 reque */
- S_ST( 't', 3, 754, 0 ), /* 753 reques */
- S_ST( 'k', 3, 755, 0 ), /* 754 request */
- S_ST( 'e', 3, 401, 0 ), /* 755 requestk */
- S_ST( 's', 3, 758, 749 ), /* 756 re */
- S_ST( 'e', 3, 402, 0 ), /* 757 res */
- S_ST( 't', 3, 759, 757 ), /* 758 res */
- S_ST( 'r', 3, 760, 0 ), /* 759 rest */
- S_ST( 'i', 3, 761, 0 ), /* 760 restr */
- S_ST( 'c', 3, 403, 0 ), /* 761 restri */
- S_ST( 'v', 3, 763, 756 ), /* 762 re */
- S_ST( 'o', 3, 764, 0 ), /* 763 rev */
- S_ST( 'k', 3, 404, 0 ), /* 764 revo */
- S_ST( 'l', 3, 766, 746 ), /* 765 r */
- S_ST( 'i', 3, 767, 0 ), /* 766 rl */
- S_ST( 'm', 3, 768, 0 ), /* 767 rli */
- S_ST( 'i', 3, 405, 0 ), /* 768 rlim */
- S_ST( 's', 3, 842, 734 ), /* 769 */
- S_ST( 'a', 3, 771, 0 ), /* 770 s */
- S_ST( 'v', 3, 772, 0 ), /* 771 sa */
- S_ST( 'e', 3, 773, 0 ), /* 772 sav */
- S_ST( 'c', 3, 774, 0 ), /* 773 save */
- S_ST( 'o', 3, 775, 0 ), /* 774 savec */
- S_ST( 'n', 3, 776, 0 ), /* 775 saveco */
- S_ST( 'f', 3, 777, 0 ), /* 776 savecon */
- S_ST( 'i', 3, 778, 0 ), /* 777 saveconf */
- S_ST( 'g', 3, 779, 0 ), /* 778 saveconfi */
- S_ST( 'd', 3, 780, 0 ), /* 779 saveconfig */
- S_ST( 'i', 3, 406, 0 ), /* 780 saveconfigd */
- S_ST( 'e', 3, 791, 770 ), /* 781 s */
- S_ST( 'r', 3, 783, 0 ), /* 782 se */
- S_ST( 'v', 3, 784, 0 ), /* 783 ser */
- S_ST( 'e', 3, 407, 0 ), /* 784 serv */
- S_ST( '_', 3, 786, 0 ), /* 785 server */
- S_ST( 'o', 3, 787, 0 ), /* 786 server_ */
- S_ST( 'f', 3, 788, 0 ), /* 787 server_o */
- S_ST( 'f', 3, 789, 0 ), /* 788 server_of */
- S_ST( 's', 3, 790, 0 ), /* 789 server_off */
- S_ST( 'e', 3, 451, 0 ), /* 790 server_offs */
- S_ST( 't', 3, 792, 782 ), /* 791 se */
- S_ST( 'v', 3, 793, 0 ), /* 792 set */
- S_ST( 'a', 3, 408, 0 ), /* 793 setv */
- S_ST( 'i', 3, 795, 781 ), /* 794 s */
- S_ST( 'm', 3, 796, 0 ), /* 795 si */
- S_ST( 'u', 3, 797, 0 ), /* 796 sim */
- S_ST( 'l', 3, 798, 0 ), /* 797 simu */
- S_ST( 'a', 3, 799, 0 ), /* 798 simul */
- S_ST( 't', 3, 800, 0 ), /* 799 simula */
- S_ST( 'i', 3, 801, 448 ), /* 800 simulat */
- S_ST( 'o', 3, 802, 0 ), /* 801 simulati */
- S_ST( 'n', 3, 803, 0 ), /* 802 simulatio */
- S_ST( '_', 3, 804, 0 ), /* 803 simulation */
- S_ST( 'd', 3, 805, 0 ), /* 804 simulation_ */
- S_ST( 'u', 3, 806, 0 ), /* 805 simulation_d */
- S_ST( 'r', 3, 807, 0 ), /* 806 simulation_du */
- S_ST( 'a', 3, 808, 0 ), /* 807 simulation_dur */
- S_ST( 't', 3, 809, 0 ), /* 808 simulation_dura */
- S_ST( 'i', 3, 810, 0 ), /* 809 simulation_durat */
- S_ST( 'o', 3, 450, 0 ), /* 810 simulation_durati */
- S_ST( 'o', 3, 812, 794 ), /* 811 s */
- S_ST( 'u', 3, 813, 0 ), /* 812 so */
- S_ST( 'r', 3, 814, 0 ), /* 813 sou */
- S_ST( 'c', 3, 409, 0 ), /* 814 sour */
- S_ST( 't', 3, 838, 811 ), /* 815 s */
- S_ST( 'a', 3, 822, 0 ), /* 816 st */
- S_ST( 'c', 3, 818, 0 ), /* 817 sta */
- S_ST( 'k', 3, 819, 0 ), /* 818 stac */
- S_ST( 's', 3, 820, 0 ), /* 819 stack */
- S_ST( 'i', 3, 821, 0 ), /* 820 stacks */
- S_ST( 'z', 3, 410, 0 ), /* 821 stacksi */
- S_ST( 't', 3, 412, 817 ), /* 822 sta */
- S_ST( 'i', 3, 824, 0 ), /* 823 stat */
- S_ST( 's', 3, 825, 0 ), /* 824 stati */
- S_ST( 't', 3, 826, 0 ), /* 825 statis */
- S_ST( 'i', 3, 827, 0 ), /* 826 statist */
- S_ST( 'c', 3, 411, 0 ), /* 827 statisti */
- S_ST( 'd', 3, 829, 0 ), /* 828 stats */
- S_ST( 'i', 3, 413, 0 ), /* 829 statsd */
- S_ST( 'e', 3, 414, 816 ), /* 830 st */
- S_ST( 'b', 3, 832, 0 ), /* 831 step */
- S_ST( 'a', 3, 833, 0 ), /* 832 stepb */
- S_ST( 'c', 3, 415, 0 ), /* 833 stepba */
- S_ST( 'f', 3, 835, 831 ), /* 834 step */
- S_ST( 'w', 3, 416, 0 ), /* 835 stepf */
- S_ST( 'o', 3, 837, 834 ), /* 836 step */
- S_ST( 'u', 3, 417, 0 ), /* 837 stepo */
- S_ST( 'r', 3, 839, 830 ), /* 838 st */
- S_ST( 'a', 3, 840, 0 ), /* 839 str */
- S_ST( 't', 3, 841, 0 ), /* 840 stra */
- S_ST( 'u', 3, 418, 0 ), /* 841 strat */
- S_ST( 'y', 3, 420, 815 ), /* 842 s */
- S_ST( 's', 3, 844, 0 ), /* 843 sys */
- S_ST( 't', 3, 845, 0 ), /* 844 syss */
- S_ST( 'a', 3, 846, 0 ), /* 845 sysst */
- S_ST( 't', 3, 421, 0 ), /* 846 syssta */
- S_ST( 't', 3, 873, 769 ), /* 847 */
- S_ST( 'i', 3, 859, 0 ), /* 848 t */
- S_ST( 'c', 3, 422, 0 ), /* 849 ti */
- S_ST( 'm', 3, 852, 849 ), /* 850 ti */
- S_ST( 'e', 3, 425, 0 ), /* 851 tim */
- S_ST( 'i', 3, 853, 851 ), /* 852 tim */
- S_ST( 'n', 3, 854, 0 ), /* 853 timi */
- S_ST( 'g', 3, 855, 0 ), /* 854 timin */
- S_ST( 's', 3, 856, 0 ), /* 855 timing */
- S_ST( 't', 3, 857, 0 ), /* 856 timings */
- S_ST( 'a', 3, 858, 0 ), /* 857 timingst */
- S_ST( 't', 3, 426, 0 ), /* 858 timingsta */
- S_ST( 'n', 3, 860, 850 ), /* 859 ti */
- S_ST( 'k', 3, 861, 0 ), /* 860 tin */
- S_ST( 'e', 3, 427, 0 ), /* 861 tink */
- S_ST( 'o', 3, 428, 848 ), /* 862 t */
- S_ST( 'r', 3, 865, 862 ), /* 863 t */
- S_ST( 'a', 3, 429, 0 ), /* 864 tr */
- S_ST( 'u', 3, 866, 864 ), /* 865 tr */
- S_ST( 's', 3, 867, 430 ), /* 866 tru */
- S_ST( 't', 3, 868, 0 ), /* 867 trus */
- S_ST( 'e', 3, 869, 0 ), /* 868 trust */
- S_ST( 'd', 3, 870, 0 ), /* 869 truste */
- S_ST( 'k', 3, 871, 0 ), /* 870 trusted */
- S_ST( 'e', 3, 431, 0 ), /* 871 trustedk */
- S_ST( 't', 3, 432, 863 ), /* 872 t */
- S_ST( 'y', 3, 874, 872 ), /* 873 t */
- S_ST( 'p', 3, 433, 0 ), /* 874 ty */
- S_ST( 'u', 3, 876, 847 ), /* 875 */
- S_ST( 'n', 3, 882, 0 ), /* 876 u */
- S_ST( 'c', 3, 878, 0 ), /* 877 un */
- S_ST( 'o', 3, 879, 0 ), /* 878 unc */
- S_ST( 'n', 3, 880, 0 ), /* 879 unco */
- S_ST( 'f', 3, 881, 0 ), /* 880 uncon */
- S_ST( 'i', 3, 438, 0 ), /* 881 unconf */
- S_ST( 'p', 3, 883, 877 ), /* 882 un */
- S_ST( 'e', 3, 884, 0 ), /* 883 unp */
- S_ST( 'e', 3, 439, 0 ), /* 884 unpe */
- S_ST( '_', 3, 905, 0 ), /* 885 unpeer */
- S_ST( 'c', 3, 887, 0 ), /* 886 unpeer_ */
- S_ST( 'r', 3, 888, 0 ), /* 887 unpeer_c */
- S_ST( 'y', 3, 889, 0 ), /* 888 unpeer_cr */
- S_ST( 'p', 3, 890, 0 ), /* 889 unpeer_cry */
- S_ST( 't', 3, 891, 0 ), /* 890 unpeer_cryp */
- S_ST( 'o', 3, 892, 0 ), /* 891 unpeer_crypt */
- S_ST( '_', 3, 897, 0 ), /* 892 unpeer_crypto */
- S_ST( 'e', 3, 894, 0 ), /* 893 unpeer_crypto_ */
- S_ST( 'a', 3, 895, 0 ), /* 894 unpeer_crypto_e */
- S_ST( 'r', 3, 896, 0 ), /* 895 unpeer_crypto_ea */
- S_ST( 'l', 3, 435, 0 ), /* 896 unpeer_crypto_ear */
- S_ST( 'n', 3, 898, 893 ), /* 897 unpeer_crypto_ */
- S_ST( 'a', 3, 899, 0 ), /* 898 unpeer_crypto_n */
- S_ST( 'k', 3, 900, 0 ), /* 899 unpeer_crypto_na */
- S_ST( '_', 3, 901, 0 ), /* 900 unpeer_crypto_nak */
- S_ST( 'e', 3, 902, 0 ), /* 901 unpeer_crypto_nak_ */
- S_ST( 'a', 3, 903, 0 ), /* 902 unpeer_crypto_nak_e */
- S_ST( 'r', 3, 904, 0 ), /* 903 unpeer_crypto_nak_ea */
- S_ST( 'l', 3, 436, 0 ), /* 904 unpeer_crypto_nak_ear */
- S_ST( 'd', 3, 906, 886 ), /* 905 unpeer_ */
- S_ST( 'i', 3, 907, 0 ), /* 906 unpeer_d */
- S_ST( 'g', 3, 908, 0 ), /* 907 unpeer_di */
- S_ST( 'e', 3, 909, 0 ), /* 908 unpeer_dig */
- S_ST( 's', 3, 910, 0 ), /* 909 unpeer_dige */
- S_ST( 't', 3, 911, 0 ), /* 910 unpeer_diges */
- S_ST( '_', 3, 912, 0 ), /* 911 unpeer_digest */
- S_ST( 'e', 3, 913, 0 ), /* 912 unpeer_digest_ */
- S_ST( 'a', 3, 914, 0 ), /* 913 unpeer_digest_e */
- S_ST( 'r', 3, 915, 0 ), /* 914 unpeer_digest_ea */
- S_ST( 'l', 3, 437, 0 ), /* 915 unpeer_digest_ear */
- S_ST( 'v', 3, 917, 875 ), /* 916 */
- S_ST( 'e', 3, 918, 0 ), /* 917 v */
- S_ST( 'r', 3, 919, 0 ), /* 918 ve */
- S_ST( 's', 3, 920, 0 ), /* 919 ver */
- S_ST( 'i', 3, 921, 0 ), /* 920 vers */
- S_ST( 'o', 3, 440, 0 ), /* 921 versi */
- S_ST( 'w', 3, 929, 916 ), /* 922 */
- S_ST( 'a', 3, 924, 0 ), /* 923 w */
- S_ST( 'n', 3, 925, 0 ), /* 924 wa */
- S_ST( 'd', 3, 926, 0 ), /* 925 wan */
- S_ST( 'e', 3, 454, 0 ), /* 926 wand */
- S_ST( 'e', 3, 928, 923 ), /* 927 w */
- S_ST( 'e', 3, 442, 0 ), /* 928 we */
- S_ST( 'i', 3, 930, 927 ), /* 929 w */
- S_ST( 'l', 3, 931, 0 ), /* 930 wi */
- S_ST( 'd', 3, 932, 0 ), /* 931 wil */
- S_ST( 'c', 3, 933, 0 ), /* 932 wild */
- S_ST( 'a', 3, 934, 0 ), /* 933 wildc */
- S_ST( 'r', 3, 443, 0 ), /* 934 wildca */
- S_ST( 'x', 3, 936, 922 ), /* 935 */
- S_ST( 'l', 3, 937, 0 ), /* 936 x */
- S_ST( 'e', 3, 938, 0 ), /* 937 xl */
- S_ST( 'a', 3, 939, 0 ), /* 938 xle */
- S_ST( 'v', 3, 444, 0 ), /* 939 xlea */
- S_ST( 'y', 3, 941, 935 ), /* 940 [initial state] */
- S_ST( 'e', 3, 942, 0 ), /* 941 y */
- S_ST( 'a', 3, 445, 0 ) /* 942 ye */
+ S_ST( 'h', 0, 0, 0 ), /* 277 T_Checkhash */
+ S_ST( 's', 0, 0, 0 ), /* 278 T_Clockstats */
+ S_ST( 't', 0, 0, 0 ), /* 279 T_Cohort */
+ S_ST( 'y', 0, 0, 0 ), /* 280 T_ControlKey */
+ S_ST( 'o', 0, 121, 0 ), /* 281 T_Crypto */
+ S_ST( 's', 0, 0, 0 ), /* 282 T_Cryptostats */
+ S_ST( 'l', 0, 0, 0 ), /* 283 T_Ctl */
+ S_ST( 'y', 0, 0, 0 ), /* 284 T_Day */
+ S_ST( 't', 0, 0, 0 ), /* 285 T_Default */
+ S_ST( 't', 1, 0, 0 ), /* 286 T_Digest */
+ S_ST( 'e', 0, 0, 0 ), /* 287 T_Disable */
+ S_ST( 'd', 0, 0, 0 ), /* 288 T_Discard */
+ S_ST( 'n', 0, 0, 0 ), /* 289 T_Dispersion */
+ S_ST( 'i', 3, 298, 0 ), /* 290 ippeerl */
+ S_ST( 'e', 1, 0, 0 ), /* 291 T_Driftfile */
+ S_ST( 'p', 0, 0, 0 ), /* 292 T_Drop */
+ S_ST( 'p', 0, 0, 0 ), /* 293 T_Dscp */
+ S_ST( '.', 0, 0, 0 ), /* 294 T_Ellipsis */
+ S_ST( 'e', 0, 0, 0 ), /* 295 T_Enable */
+ S_ST( 'd', 0, 0, 168 ), /* 296 T_End */
+ S_ST( 'r', 0, 0, 0 ), /* 297 T_Epeer */
+ S_ST( 'm', 3, 322, 0 ), /* 298 ippeerli */
+ S_ST( 'e', 1, 179, 0 ), /* 299 T_File */
+ S_ST( 'n', 0, 0, 0 ), /* 300 T_Filegen */
+ S_ST( 'm', 0, 0, 0 ), /* 301 T_Filenum */
+ S_ST( '1', 0, 0, 0 ), /* 302 T_Flag1 */
+ S_ST( '2', 0, 0, 302 ), /* 303 T_Flag2 */
+ S_ST( '3', 0, 0, 303 ), /* 304 T_Flag3 */
+ S_ST( '4', 0, 0, 304 ), /* 305 T_Flag4 */
+ S_ST( 'e', 0, 0, 0 ), /* 306 T_Flake */
+ S_ST( 'r', 0, 0, 0 ), /* 307 T_Floor */
+ S_ST( 'q', 0, 189, 0 ), /* 308 T_Freq */
+ S_ST( 'e', 1, 0, 0 ), /* 309 T_Fudge */
+ S_ST( 'z', 0, 0, 0 ), /* 310 T_Fuzz */
+ S_ST( 't', 1, 0, 0 ), /* 311 T_Host */
+ S_ST( 'f', 0, 0, 0 ), /* 312 T_Huffpuff */
+ S_ST( 't', 0, 0, 0 ), /* 313 T_Iburst */
+ S_ST( 't', 1, 0, 0 ), /* 314 T_Ident */
+ S_ST( 'e', 0, 220, 0 ), /* 315 T_Ignore */
+ S_ST( 'h', 0, 0, 0 ), /* 316 T_Ignorehash */
+ S_ST( 'c', 0, 0, 0 ), /* 317 T_Incalloc */
+ S_ST( 'm', 0, 0, 0 ), /* 318 T_Incmem */
+ S_ST( 'c', 0, 0, 0 ), /* 319 T_Initalloc */
+ S_ST( 'm', 0, 0, 0 ), /* 320 T_Initmem */
+ S_ST( 'e', 1, 0, 0 ), /* 321 T_Includefile */
+ S_ST( 'i', 3, 326, 0 ), /* 322 ippeerlim */
+ S_ST( 'e', 0, 0, 0 ), /* 323 T_Interface */
+ S_ST( 'v', 3, 329, 253 ), /* 324 ip */
+ S_ST( 'o', 0, 0, 223 ), /* 325 T_Io */
+ S_ST( 't', 0, 0, 0 ), /* 326 T_Ippeerlimit */
+ S_ST( '4', 0, 0, 0 ), /* 327 T_Ipv4 */
+ S_ST( '4', 0, 0, 0 ), /* 328 T_Ipv4_flag */
+ S_ST( '6', 0, 0, 327 ), /* 329 T_Ipv6 */
+ S_ST( '6', 0, 0, 328 ), /* 330 T_Ipv6_flag */
+ S_ST( 'l', 0, 0, 0 ), /* 331 T_Kernel */
+ S_ST( 'y', 0, 333, 468 ), /* 332 T_Key */
+ S_ST( 's', 1, 471, 0 ), /* 333 T_Keys */
+ S_ST( 'r', 1, 0, 0 ), /* 334 T_Keysdir */
+ S_ST( 'd', 0, 0, 0 ), /* 335 T_Kod */
+ S_ST( 'e', 1, 0, 0 ), /* 336 T_Leapfile */
+ S_ST( 'l', 0, 0, 0 ), /* 337 T_Leapsmearinterval */
+ S_ST( 'd', 0, 0, 0 ), /* 338 T_Limited */
+ S_ST( 'k', 0, 0, 0 ), /* 339 T_Link */
+ S_ST( 'n', 0, 0, 0 ), /* 340 T_Listen */
+ S_ST( 'g', 2, 0, 0 ), /* 341 T_Logconfig */
+ S_ST( 'e', 1, 0, 0 ), /* 342 T_Logfile */
+ S_ST( 's', 0, 0, 0 ), /* 343 T_Loopstats */
+ S_ST( 'p', 0, 0, 0 ), /* 344 T_Lowpriotrap */
+ S_ST( 't', 1, 0, 0 ), /* 345 T_Manycastclient */
+ S_ST( 'r', 2, 0, 0 ), /* 346 T_Manycastserver */
+ S_ST( 'k', 0, 0, 0 ), /* 347 T_Mask */
+ S_ST( 'e', 0, 0, 0 ), /* 348 T_Maxage */
+ S_ST( 'k', 0, 0, 0 ), /* 349 T_Maxclock */
+ S_ST( 'h', 0, 0, 0 ), /* 350 T_Maxdepth */
+ S_ST( 't', 0, 0, 0 ), /* 351 T_Maxdist */
+ S_ST( 'm', 0, 0, 0 ), /* 352 T_Maxmem */
+ S_ST( 'l', 0, 0, 0 ), /* 353 T_Maxpoll */
+ S_ST( 's', 0, 0, 0 ), /* 354 T_Mdnstries */
+ S_ST( 'm', 0, 571, 0 ), /* 355 T_Mem */
+ S_ST( 'k', 0, 0, 0 ), /* 356 T_Memlock */
+ S_ST( 'k', 0, 0, 0 ), /* 357 T_Minclock */
+ S_ST( 'h', 0, 0, 0 ), /* 358 T_Mindepth */
+ S_ST( 't', 0, 0, 0 ), /* 359 T_Mindist */
+ S_ST( 'm', 0, 0, 0 ), /* 360 T_Minimum */
+ S_ST( 'r', 0, 0, 0 ), /* 361 T_Minjitter */
+ S_ST( 'l', 0, 0, 0 ), /* 362 T_Minpoll */
+ S_ST( 'e', 0, 0, 0 ), /* 363 T_Minsane */
+ S_ST( 'e', 0, 365, 0 ), /* 364 T_Mode */
+ S_ST( '7', 0, 0, 0 ), /* 365 T_Mode7 */
+ S_ST( 'r', 0, 0, 0 ), /* 366 T_Monitor */
+ S_ST( 'h', 0, 0, 0 ), /* 367 T_Month */
+ S_ST( 'u', 0, 0, 0 ), /* 368 T_Mru */
+ S_ST( 'p', 0, 0, 0 ), /* 369 T_Mssntp */
+ S_ST( 't', 2, 0, 0 ), /* 370 T_Multicastclient */
+ S_ST( 'c', 0, 0, 0 ), /* 371 T_Nic */
+ S_ST( 'k', 0, 0, 0 ), /* 372 T_Nolink */
+ S_ST( 'y', 0, 0, 0 ), /* 373 T_Nomodify */
+ S_ST( 't', 0, 0, 0 ), /* 374 T_Nomrulist */
+ S_ST( 'e', 0, 0, 0 ), /* 375 T_None */
+ S_ST( 'e', 0, 0, 0 ), /* 376 T_Nonvolatile */
+ S_ST( 'r', 0, 0, 0 ), /* 377 T_Noepeer */
+ S_ST( 'r', 0, 0, 0 ), /* 378 T_Nopeer */
+ S_ST( 'y', 0, 0, 0 ), /* 379 T_Noquery */
+ S_ST( 't', 0, 0, 0 ), /* 380 T_Noselect */
+ S_ST( 'e', 0, 0, 0 ), /* 381 T_Noserve */
+ S_ST( 'p', 0, 0, 0 ), /* 382 T_Notrap */
+ S_ST( 't', 0, 0, 0 ), /* 383 T_Notrust */
+ S_ST( 'p', 0, 676, 0 ), /* 384 T_Ntp */
+ S_ST( 't', 0, 0, 0 ), /* 385 T_Ntpport */
+ S_ST( 't', 1, 0, 0 ), /* 386 T_NtpSignDsocket */
+ S_ST( 'n', 0, 691, 0 ), /* 387 T_Orphan */
+ S_ST( 't', 0, 0, 0 ), /* 388 T_Orphanwait */
+ S_ST( 'y', 0, 0, 0 ), /* 389 T_PCEdigest */
+ S_ST( 'c', 0, 0, 0 ), /* 390 T_Panic */
+ S_ST( 'r', 1, 718, 0 ), /* 391 T_Peer */
+ S_ST( 's', 0, 0, 0 ), /* 392 T_Peerstats */
+ S_ST( 'e', 2, 0, 0 ), /* 393 T_Phone */
+ S_ST( 'd', 0, 726, 0 ), /* 394 T_Pid */
+ S_ST( 'e', 1, 0, 0 ), /* 395 T_Pidfile */
+ S_ST( 'l', 0, 731, 0 ), /* 396 T_Poll */
+ S_ST( 't', 0, 0, 0 ), /* 397 T_PollSkewList */
+ S_ST( 'l', 1, 0, 0 ), /* 398 T_Pool */
+ S_ST( 't', 0, 0, 0 ), /* 399 T_Port */
+ S_ST( 't', 0, 0, 0 ), /* 400 T_Preempt */
+ S_ST( 'r', 0, 0, 0 ), /* 401 T_Prefer */
+ S_ST( 's', 0, 0, 0 ), /* 402 T_Protostats */
+ S_ST( 'w', 1, 0, 740 ), /* 403 T_Pw */
+ S_ST( 'e', 1, 0, 0 ), /* 404 T_Randfile */
+ S_ST( 's', 0, 0, 0 ), /* 405 T_Rawstats */
+ S_ST( 'd', 1, 0, 0 ), /* 406 T_Refid */
+ S_ST( 'y', 0, 0, 0 ), /* 407 T_Requestkey */
+ S_ST( 't', 0, 0, 0 ), /* 408 T_Reset */
+ S_ST( 't', 0, 0, 0 ), /* 409 T_Restrict */
+ S_ST( 'e', 0, 0, 0 ), /* 410 T_Revoke */
+ S_ST( 't', 0, 0, 0 ), /* 411 T_Rlimit */
+ S_ST( 'r', 1, 0, 0 ), /* 412 T_Saveconfigdir */
+ S_ST( 'r', 1, 823, 0 ), /* 413 T_Server */
+ S_ST( 'e', 0, 0, 0 ), /* 414 T_Serverresponse */
+ S_ST( 'j', 3, 427, 208 ), /* 415 */
+ S_ST( 'r', 1, 0, 0 ), /* 416 T_Setvar */
+ S_ST( 'e', 0, 0, 0 ), /* 417 T_Source */
+ S_ST( 'e', 0, 0, 0 ), /* 418 T_Stacksize */
+ S_ST( 's', 0, 0, 0 ), /* 419 T_Statistics */
+ S_ST( 's', 0, 867, 862 ), /* 420 T_Stats */
+ S_ST( 'r', 1, 0, 0 ), /* 421 T_Statsdir */
+ S_ST( 'p', 0, 875, 0 ), /* 422 T_Step */
+ S_ST( 'k', 0, 0, 0 ), /* 423 T_Stepback */
+ S_ST( 'd', 0, 0, 0 ), /* 424 T_Stepfwd */
+ S_ST( 't', 0, 0, 0 ), /* 425 T_Stepout */
+ S_ST( 'm', 0, 0, 0 ), /* 426 T_Stratum */
+ S_ST( 'i', 3, 442, 0 ), /* 427 j */
+ S_ST( 's', 0, 882, 0 ), /* 428 T_Sys */
+ S_ST( 's', 0, 0, 0 ), /* 429 T_Sysstats */
+ S_ST( 'k', 0, 0, 0 ), /* 430 T_Tick */
+ S_ST( '1', 0, 0, 0 ), /* 431 T_Time1 */
+ S_ST( '2', 0, 0, 431 ), /* 432 T_Time2 */
+ S_ST( 'r', 0, 0, 432 ), /* 433 T_Timer */
+ S_ST( 's', 0, 0, 0 ), /* 434 T_Timingstats */
+ S_ST( 'r', 0, 0, 0 ), /* 435 T_Tinker */
+ S_ST( 's', 0, 0, 0 ), /* 436 T_Tos */
+ S_ST( 'p', 1, 0, 0 ), /* 437 T_Trap */
+ S_ST( 'e', 0, 0, 0 ), /* 438 T_True */
+ S_ST( 'y', 0, 0, 0 ), /* 439 T_Trustedkey */
+ S_ST( 'l', 0, 0, 0 ), /* 440 T_Ttl */
+ S_ST( 'e', 0, 0, 0 ), /* 441 T_Type */
+ S_ST( 't', 3, 449, 0 ), /* 442 ji */
+ S_ST( 'y', 0, 0, 0 ), /* 443 T_UEcrypto */
+ S_ST( 'y', 0, 0, 0 ), /* 444 T_UEcryptonak */
+ S_ST( 'y', 0, 0, 0 ), /* 445 T_UEdigest */
+ S_ST( 'g', 1, 0, 0 ), /* 446 T_Unconfig */
+ S_ST( 'r', 1, 924, 0 ), /* 447 T_Unpeer */
+ S_ST( 'n', 0, 0, 0 ), /* 448 T_Version */
+ S_ST( 't', 3, 455, 0 ), /* 449 jit */
+ S_ST( 'k', 0, 0, 0 ), /* 450 T_Week */
+ S_ST( 'd', 0, 0, 0 ), /* 451 T_Wildcard */
+ S_ST( 'e', 0, 0, 0 ), /* 452 T_Xleave */
+ S_ST( 'e', 0, 0, 0 ), /* 453 T_Xmtnonce */
+ S_ST( 'r', 0, 0, 0 ), /* 454 T_Year */
+ S_ST( 'e', 3, 464, 0 ), /* 455 jitt */
+ S_ST( 'k', 3, 473, 415 ), /* 456 */
+ S_ST( 'e', 0, 0, 0 ), /* 457 T_Simulate */
+ S_ST( 'y', 0, 0, 0 ), /* 458 T_Beep_Delay */
+ S_ST( 'n', 0, 0, 0 ), /* 459 T_Sim_Duration */
+ S_ST( 't', 0, 0, 0 ), /* 460 T_Server_Offset */
+ S_ST( 'n', 0, 0, 0 ), /* 461 T_Duration */
+ S_ST( 't', 0, 0, 0 ), /* 462 T_Freq_Offset */
+ S_ST( 'r', 0, 0, 0 ), /* 463 T_Wander */
+ S_ST( 'r', 0, 0, 0 ), /* 464 T_Jitter */
+ S_ST( 'y', 0, 0, 0 ), /* 465 T_Prop_Delay */
+ S_ST( 'y', 0, 0, 0 ), /* 466 T_Proc_Delay */
+ S_ST( 'e', 3, 332, 0 ), /* 467 k */
+ S_ST( 'r', 3, 469, 0 ), /* 468 ke */
+ S_ST( 'n', 3, 470, 0 ), /* 469 ker */
+ S_ST( 'e', 3, 331, 0 ), /* 470 kern */
+ S_ST( 'd', 3, 472, 0 ), /* 471 keys */
+ S_ST( 'i', 3, 334, 0 ), /* 472 keysd */
+ S_ST( 'o', 3, 335, 467 ), /* 473 k */
+ S_ST( 'l', 3, 502, 456 ), /* 474 */
+ S_ST( 'e', 3, 476, 0 ), /* 475 l */
+ S_ST( 'a', 3, 477, 0 ), /* 476 le */
+ S_ST( 'p', 3, 481, 0 ), /* 477 lea */
+ S_ST( 'f', 3, 479, 0 ), /* 478 leap */
+ S_ST( 'i', 3, 480, 0 ), /* 479 leapf */
+ S_ST( 'l', 3, 336, 0 ), /* 480 leapfi */
+ S_ST( 's', 3, 482, 478 ), /* 481 leap */
+ S_ST( 'm', 3, 483, 0 ), /* 482 leaps */
+ S_ST( 'e', 3, 484, 0 ), /* 483 leapsm */
+ S_ST( 'a', 3, 485, 0 ), /* 484 leapsme */
+ S_ST( 'r', 3, 486, 0 ), /* 485 leapsmea */
+ S_ST( 'i', 3, 487, 0 ), /* 486 leapsmear */
+ S_ST( 'n', 3, 488, 0 ), /* 487 leapsmeari */
+ S_ST( 't', 3, 489, 0 ), /* 488 leapsmearin */
+ S_ST( 'e', 3, 490, 0 ), /* 489 leapsmearint */
+ S_ST( 'r', 3, 491, 0 ), /* 490 leapsmearinte */
+ S_ST( 'v', 3, 492, 0 ), /* 491 leapsmearinter */
+ S_ST( 'a', 3, 337, 0 ), /* 492 leapsmearinterv */
+ S_ST( 'i', 3, 499, 475 ), /* 493 l */
+ S_ST( 'm', 3, 495, 0 ), /* 494 li */
+ S_ST( 'i', 3, 496, 0 ), /* 495 lim */
+ S_ST( 't', 3, 497, 0 ), /* 496 limi */
+ S_ST( 'e', 3, 338, 0 ), /* 497 limit */
+ S_ST( 'n', 3, 339, 494 ), /* 498 li */
+ S_ST( 's', 3, 500, 498 ), /* 499 li */
+ S_ST( 't', 3, 501, 0 ), /* 500 lis */
+ S_ST( 'e', 3, 340, 0 ), /* 501 list */
+ S_ST( 'o', 3, 518, 493 ), /* 502 l */
+ S_ST( 'g', 3, 509, 0 ), /* 503 lo */
+ S_ST( 'c', 3, 505, 0 ), /* 504 log */
+ S_ST( 'o', 3, 506, 0 ), /* 505 logc */
+ S_ST( 'n', 3, 507, 0 ), /* 506 logco */
+ S_ST( 'f', 3, 508, 0 ), /* 507 logcon */
+ S_ST( 'i', 3, 341, 0 ), /* 508 logconf */
+ S_ST( 'f', 3, 510, 504 ), /* 509 log */
+ S_ST( 'i', 3, 511, 0 ), /* 510 logf */
+ S_ST( 'l', 3, 342, 0 ), /* 511 logfi */
+ S_ST( 'o', 3, 513, 503 ), /* 512 lo */
+ S_ST( 'p', 3, 514, 0 ), /* 513 loo */
+ S_ST( 's', 3, 515, 0 ), /* 514 loop */
+ S_ST( 't', 3, 516, 0 ), /* 515 loops */
+ S_ST( 'a', 3, 517, 0 ), /* 516 loopst */
+ S_ST( 't', 3, 343, 0 ), /* 517 loopsta */
+ S_ST( 'w', 3, 519, 512 ), /* 518 lo */
+ S_ST( 'p', 3, 520, 0 ), /* 519 low */
+ S_ST( 'r', 3, 521, 0 ), /* 520 lowp */
+ S_ST( 'i', 3, 522, 0 ), /* 521 lowpr */
+ S_ST( 'o', 3, 523, 0 ), /* 522 lowpri */
+ S_ST( 't', 3, 524, 0 ), /* 523 lowprio */
+ S_ST( 'r', 3, 525, 0 ), /* 524 lowpriot */
+ S_ST( 'a', 3, 344, 0 ), /* 525 lowpriotr */
+ S_ST( 'm', 3, 612, 474 ), /* 526 */
+ S_ST( 'a', 3, 545, 0 ), /* 527 m */
+ S_ST( 'n', 3, 529, 0 ), /* 528 ma */
+ S_ST( 'y', 3, 530, 0 ), /* 529 man */
+ S_ST( 'c', 3, 531, 0 ), /* 530 many */
+ S_ST( 'a', 3, 532, 0 ), /* 531 manyc */
+ S_ST( 's', 3, 533, 0 ), /* 532 manyca */
+ S_ST( 't', 3, 539, 0 ), /* 533 manycas */
+ S_ST( 'c', 3, 535, 0 ), /* 534 manycast */
+ S_ST( 'l', 3, 536, 0 ), /* 535 manycastc */
+ S_ST( 'i', 3, 537, 0 ), /* 536 manycastcl */
+ S_ST( 'e', 3, 538, 0 ), /* 537 manycastcli */
+ S_ST( 'n', 3, 345, 0 ), /* 538 manycastclie */
+ S_ST( 's', 3, 540, 534 ), /* 539 manycast */
+ S_ST( 'e', 3, 541, 0 ), /* 540 manycasts */
+ S_ST( 'r', 3, 542, 0 ), /* 541 manycastse */
+ S_ST( 'v', 3, 543, 0 ), /* 542 manycastser */
+ S_ST( 'e', 3, 346, 0 ), /* 543 manycastserv */
+ S_ST( 's', 3, 347, 528 ), /* 544 ma */
+ S_ST( 'x', 3, 560, 544 ), /* 545 ma */
+ S_ST( 'a', 3, 547, 0 ), /* 546 max */
+ S_ST( 'g', 3, 348, 0 ), /* 547 maxa */
+ S_ST( 'c', 3, 549, 546 ), /* 548 max */
+ S_ST( 'l', 3, 550, 0 ), /* 549 maxc */
+ S_ST( 'o', 3, 551, 0 ), /* 550 maxcl */
+ S_ST( 'c', 3, 349, 0 ), /* 551 maxclo */
+ S_ST( 'd', 3, 556, 548 ), /* 552 max */
+ S_ST( 'e', 3, 554, 0 ), /* 553 maxd */
+ S_ST( 'p', 3, 555, 0 ), /* 554 maxde */
+ S_ST( 't', 3, 350, 0 ), /* 555 maxdep */
+ S_ST( 'i', 3, 557, 553 ), /* 556 maxd */
+ S_ST( 's', 3, 351, 0 ), /* 557 maxdi */
+ S_ST( 'm', 3, 559, 552 ), /* 558 max */
+ S_ST( 'e', 3, 352, 0 ), /* 559 maxm */
+ S_ST( 'p', 3, 561, 558 ), /* 560 max */
+ S_ST( 'o', 3, 562, 0 ), /* 561 maxp */
+ S_ST( 'l', 3, 353, 0 ), /* 562 maxpo */
+ S_ST( 'd', 3, 564, 527 ), /* 563 m */
+ S_ST( 'n', 3, 565, 0 ), /* 564 md */
+ S_ST( 's', 3, 566, 0 ), /* 565 mdn */
+ S_ST( 't', 3, 567, 0 ), /* 566 mdns */
+ S_ST( 'r', 3, 568, 0 ), /* 567 mdnst */
+ S_ST( 'i', 3, 569, 0 ), /* 568 mdnstr */
+ S_ST( 'e', 3, 354, 0 ), /* 569 mdnstri */
+ S_ST( 'e', 3, 355, 563 ), /* 570 m */
+ S_ST( 'l', 3, 572, 0 ), /* 571 mem */
+ S_ST( 'o', 3, 573, 0 ), /* 572 meml */
+ S_ST( 'c', 3, 356, 0 ), /* 573 memlo */
+ S_ST( 'i', 3, 575, 570 ), /* 574 m */
+ S_ST( 'n', 3, 597, 0 ), /* 575 mi */
+ S_ST( 'c', 3, 577, 0 ), /* 576 min */
+ S_ST( 'l', 3, 578, 0 ), /* 577 minc */
+ S_ST( 'o', 3, 579, 0 ), /* 578 mincl */
+ S_ST( 'c', 3, 357, 0 ), /* 579 minclo */
+ S_ST( 'd', 3, 584, 576 ), /* 580 min */
+ S_ST( 'e', 3, 582, 0 ), /* 581 mind */
+ S_ST( 'p', 3, 583, 0 ), /* 582 minde */
+ S_ST( 't', 3, 358, 0 ), /* 583 mindep */
+ S_ST( 'i', 3, 585, 581 ), /* 584 mind */
+ S_ST( 's', 3, 359, 0 ), /* 585 mindi */
+ S_ST( 'i', 3, 587, 580 ), /* 586 min */
+ S_ST( 'm', 3, 588, 0 ), /* 587 mini */
+ S_ST( 'u', 3, 360, 0 ), /* 588 minim */
+ S_ST( 'j', 3, 590, 586 ), /* 589 min */
+ S_ST( 'i', 3, 591, 0 ), /* 590 minj */
+ S_ST( 't', 3, 592, 0 ), /* 591 minji */
+ S_ST( 't', 3, 593, 0 ), /* 592 minjit */
+ S_ST( 'e', 3, 361, 0 ), /* 593 minjitt */
+ S_ST( 'p', 3, 595, 589 ), /* 594 min */
+ S_ST( 'o', 3, 596, 0 ), /* 595 minp */
+ S_ST( 'l', 3, 362, 0 ), /* 596 minpo */
+ S_ST( 's', 3, 598, 594 ), /* 597 min */
+ S_ST( 'a', 3, 599, 0 ), /* 598 mins */
+ S_ST( 'n', 3, 363, 0 ), /* 599 minsa */
+ S_ST( 'o', 3, 602, 574 ), /* 600 m */
+ S_ST( 'd', 3, 364, 0 ), /* 601 mo */
+ S_ST( 'n', 3, 606, 601 ), /* 602 mo */
+ S_ST( 'i', 3, 604, 0 ), /* 603 mon */
+ S_ST( 't', 3, 605, 0 ), /* 604 moni */
+ S_ST( 'o', 3, 366, 0 ), /* 605 monit */
+ S_ST( 't', 3, 367, 603 ), /* 606 mon */
+ S_ST( 'r', 3, 368, 600 ), /* 607 m */
+ S_ST( 's', 3, 609, 607 ), /* 608 m */
+ S_ST( 's', 3, 610, 0 ), /* 609 ms */
+ S_ST( 'n', 3, 611, 0 ), /* 610 mss */
+ S_ST( 't', 3, 369, 0 ), /* 611 mssn */
+ S_ST( 'u', 3, 613, 608 ), /* 612 m */
+ S_ST( 'l', 3, 614, 0 ), /* 613 mu */
+ S_ST( 't', 3, 615, 0 ), /* 614 mul */
+ S_ST( 'i', 3, 616, 0 ), /* 615 mult */
+ S_ST( 'c', 3, 617, 0 ), /* 616 multi */
+ S_ST( 'a', 3, 618, 0 ), /* 617 multic */
+ S_ST( 's', 3, 619, 0 ), /* 618 multica */
+ S_ST( 't', 3, 620, 0 ), /* 619 multicas */
+ S_ST( 'c', 3, 621, 0 ), /* 620 multicast */
+ S_ST( 'l', 3, 622, 0 ), /* 621 multicastc */
+ S_ST( 'i', 3, 623, 0 ), /* 622 multicastcl */
+ S_ST( 'e', 3, 624, 0 ), /* 623 multicastcli */
+ S_ST( 'n', 3, 370, 0 ), /* 624 multicastclie */
+ S_ST( 'n', 3, 672, 526 ), /* 625 */
+ S_ST( 'i', 3, 371, 0 ), /* 626 n */
+ S_ST( 'o', 3, 667, 626 ), /* 627 n */
+ S_ST( 'e', 3, 629, 0 ), /* 628 no */
+ S_ST( 'p', 3, 630, 0 ), /* 629 noe */
+ S_ST( 'e', 3, 631, 0 ), /* 630 noep */
+ S_ST( 'e', 3, 377, 0 ), /* 631 noepe */
+ S_ST( 'l', 3, 633, 628 ), /* 632 no */
+ S_ST( 'i', 3, 634, 0 ), /* 633 nol */
+ S_ST( 'n', 3, 372, 0 ), /* 634 noli */
+ S_ST( 'm', 3, 640, 632 ), /* 635 no */
+ S_ST( 'o', 3, 637, 0 ), /* 636 nom */
+ S_ST( 'd', 3, 638, 0 ), /* 637 nomo */
+ S_ST( 'i', 3, 639, 0 ), /* 638 nomod */
+ S_ST( 'f', 3, 373, 0 ), /* 639 nomodi */
+ S_ST( 'r', 3, 641, 636 ), /* 640 nom */
+ S_ST( 'u', 3, 642, 0 ), /* 641 nomr */
+ S_ST( 'l', 3, 643, 0 ), /* 642 nomru */
+ S_ST( 'i', 3, 644, 0 ), /* 643 nomrul */
+ S_ST( 's', 3, 374, 0 ), /* 644 nomruli */
+ S_ST( 'n', 3, 646, 635 ), /* 645 no */
+ S_ST( 'v', 3, 647, 375 ), /* 646 non */
+ S_ST( 'o', 3, 648, 0 ), /* 647 nonv */
+ S_ST( 'l', 3, 649, 0 ), /* 648 nonvo */
+ S_ST( 'a', 3, 650, 0 ), /* 649 nonvol */
+ S_ST( 't', 3, 651, 0 ), /* 650 nonvola */
+ S_ST( 'i', 3, 652, 0 ), /* 651 nonvolat */
+ S_ST( 'l', 3, 376, 0 ), /* 652 nonvolati */
+ S_ST( 'p', 3, 654, 645 ), /* 653 no */
+ S_ST( 'e', 3, 655, 0 ), /* 654 nop */
+ S_ST( 'e', 3, 378, 0 ), /* 655 nope */
+ S_ST( 'q', 3, 657, 653 ), /* 656 no */
+ S_ST( 'u', 3, 658, 0 ), /* 657 noq */
+ S_ST( 'e', 3, 659, 0 ), /* 658 noqu */
+ S_ST( 'r', 3, 379, 0 ), /* 659 noque */
+ S_ST( 's', 3, 661, 656 ), /* 660 no */
+ S_ST( 'e', 3, 665, 0 ), /* 661 nos */
+ S_ST( 'l', 3, 663, 0 ), /* 662 nose */
+ S_ST( 'e', 3, 664, 0 ), /* 663 nosel */
+ S_ST( 'c', 3, 380, 0 ), /* 664 nosele */
+ S_ST( 'r', 3, 666, 662 ), /* 665 nose */
+ S_ST( 'v', 3, 381, 0 ), /* 666 noser */
+ S_ST( 't', 3, 668, 660 ), /* 667 no */
+ S_ST( 'r', 3, 670, 0 ), /* 668 not */
+ S_ST( 'a', 3, 382, 0 ), /* 669 notr */
+ S_ST( 'u', 3, 671, 669 ), /* 670 notr */
+ S_ST( 's', 3, 383, 0 ), /* 671 notru */
+ S_ST( 't', 3, 384, 627 ), /* 672 n */
+ S_ST( 'p', 3, 674, 0 ), /* 673 ntp */
+ S_ST( 'o', 3, 675, 0 ), /* 674 ntpp */
+ S_ST( 'r', 3, 385, 0 ), /* 675 ntppo */
+ S_ST( 's', 3, 677, 673 ), /* 676 ntp */
+ S_ST( 'i', 3, 678, 0 ), /* 677 ntps */
+ S_ST( 'g', 3, 679, 0 ), /* 678 ntpsi */
+ S_ST( 'n', 3, 680, 0 ), /* 679 ntpsig */
+ S_ST( 'd', 3, 681, 0 ), /* 680 ntpsign */
+ S_ST( 's', 3, 682, 0 ), /* 681 ntpsignd */
+ S_ST( 'o', 3, 683, 0 ), /* 682 ntpsignds */
+ S_ST( 'c', 3, 684, 0 ), /* 683 ntpsigndso */
+ S_ST( 'k', 3, 685, 0 ), /* 684 ntpsigndsoc */
+ S_ST( 'e', 3, 386, 0 ), /* 685 ntpsigndsock */
+ S_ST( 'o', 3, 687, 625 ), /* 686 */
+ S_ST( 'r', 3, 688, 0 ), /* 687 o */
+ S_ST( 'p', 3, 689, 0 ), /* 688 or */
+ S_ST( 'h', 3, 690, 0 ), /* 689 orp */
+ S_ST( 'a', 3, 387, 0 ), /* 690 orph */
+ S_ST( 'w', 3, 692, 0 ), /* 691 orphan */
+ S_ST( 'a', 3, 693, 0 ), /* 692 orphanw */
+ S_ST( 'i', 3, 388, 0 ), /* 693 orphanwa */
+ S_ST( 'p', 3, 403, 686 ), /* 694 */
+ S_ST( 'a', 3, 696, 0 ), /* 695 p */
+ S_ST( 'n', 3, 697, 0 ), /* 696 pa */
+ S_ST( 'i', 3, 390, 0 ), /* 697 pan */
+ S_ST( 'e', 3, 699, 695 ), /* 698 p */
+ S_ST( 'e', 3, 391, 0 ), /* 699 pe */
+ S_ST( '_', 3, 701, 0 ), /* 700 peer */
+ S_ST( 'c', 3, 702, 0 ), /* 701 peer_ */
+ S_ST( 'l', 3, 703, 0 ), /* 702 peer_c */
+ S_ST( 'e', 3, 704, 0 ), /* 703 peer_cl */
+ S_ST( 'a', 3, 705, 0 ), /* 704 peer_cle */
+ S_ST( 'r', 3, 706, 0 ), /* 705 peer_clea */
+ S_ST( '_', 3, 707, 0 ), /* 706 peer_clear */
+ S_ST( 'd', 3, 708, 0 ), /* 707 peer_clear_ */
+ S_ST( 'i', 3, 709, 0 ), /* 708 peer_clear_d */
+ S_ST( 'g', 3, 710, 0 ), /* 709 peer_clear_di */
+ S_ST( 'e', 3, 711, 0 ), /* 710 peer_clear_dig */
+ S_ST( 's', 3, 712, 0 ), /* 711 peer_clear_dige */
+ S_ST( 't', 3, 713, 0 ), /* 712 peer_clear_diges */
+ S_ST( '_', 3, 714, 0 ), /* 713 peer_clear_digest */
+ S_ST( 'e', 3, 715, 0 ), /* 714 peer_clear_digest_ */
+ S_ST( 'a', 3, 716, 0 ), /* 715 peer_clear_digest_e */
+ S_ST( 'r', 3, 717, 0 ), /* 716 peer_clear_digest_ea */
+ S_ST( 'l', 3, 389, 0 ), /* 717 peer_clear_digest_ear */
+ S_ST( 's', 3, 719, 700 ), /* 718 peer */
+ S_ST( 't', 3, 720, 0 ), /* 719 peers */
+ S_ST( 'a', 3, 721, 0 ), /* 720 peerst */
+ S_ST( 't', 3, 392, 0 ), /* 721 peersta */
+ S_ST( 'h', 3, 723, 698 ), /* 722 p */
+ S_ST( 'o', 3, 724, 0 ), /* 723 ph */
+ S_ST( 'n', 3, 393, 0 ), /* 724 pho */
+ S_ST( 'i', 3, 394, 722 ), /* 725 p */
+ S_ST( 'f', 3, 727, 0 ), /* 726 pid */
+ S_ST( 'i', 3, 728, 0 ), /* 727 pidf */
+ S_ST( 'l', 3, 395, 0 ), /* 728 pidfi */
+ S_ST( 'o', 3, 739, 725 ), /* 729 p */
+ S_ST( 'l', 3, 396, 0 ), /* 730 po */
+ S_ST( 's', 3, 732, 0 ), /* 731 poll */
+ S_ST( 'k', 3, 733, 0 ), /* 732 polls */
+ S_ST( 'e', 3, 734, 0 ), /* 733 pollsk */
+ S_ST( 'w', 3, 735, 0 ), /* 734 pollske */
+ S_ST( 'l', 3, 736, 0 ), /* 735 pollskew */
+ S_ST( 'i', 3, 737, 0 ), /* 736 pollskewl */
+ S_ST( 's', 3, 397, 0 ), /* 737 pollskewli */
+ S_ST( 'o', 3, 398, 730 ), /* 738 po */
+ S_ST( 'r', 3, 399, 738 ), /* 739 po */
+ S_ST( 'r', 3, 747, 729 ), /* 740 p */
+ S_ST( 'e', 3, 745, 0 ), /* 741 pr */
+ S_ST( 'e', 3, 743, 0 ), /* 742 pre */
+ S_ST( 'm', 3, 744, 0 ), /* 743 pree */
+ S_ST( 'p', 3, 400, 0 ), /* 744 preem */
+ S_ST( 'f', 3, 746, 742 ), /* 745 pre */
+ S_ST( 'e', 3, 401, 0 ), /* 746 pref */
+ S_ST( 'o', 3, 760, 741 ), /* 747 pr */
+ S_ST( 'c', 3, 749, 0 ), /* 748 pro */
+ S_ST( '_', 3, 750, 0 ), /* 749 proc */
+ S_ST( 'd', 3, 751, 0 ), /* 750 proc_ */
+ S_ST( 'e', 3, 752, 0 ), /* 751 proc_d */
+ S_ST( 'l', 3, 753, 0 ), /* 752 proc_de */
+ S_ST( 'a', 3, 466, 0 ), /* 753 proc_del */
+ S_ST( 'p', 3, 755, 748 ), /* 754 pro */
+ S_ST( '_', 3, 756, 0 ), /* 755 prop */
+ S_ST( 'd', 3, 757, 0 ), /* 756 prop_ */
+ S_ST( 'e', 3, 758, 0 ), /* 757 prop_d */
+ S_ST( 'l', 3, 759, 0 ), /* 758 prop_de */
+ S_ST( 'a', 3, 465, 0 ), /* 759 prop_del */
+ S_ST( 't', 3, 761, 754 ), /* 760 pro */
+ S_ST( 'o', 3, 762, 0 ), /* 761 prot */
+ S_ST( 's', 3, 763, 0 ), /* 762 proto */
+ S_ST( 't', 3, 764, 0 ), /* 763 protos */
+ S_ST( 'a', 3, 765, 0 ), /* 764 protost */
+ S_ST( 't', 3, 402, 0 ), /* 765 protosta */
+ S_ST( 'r', 3, 797, 694 ), /* 766 */
+ S_ST( 'a', 3, 773, 0 ), /* 767 r */
+ S_ST( 'n', 3, 769, 0 ), /* 768 ra */
+ S_ST( 'd', 3, 770, 0 ), /* 769 ran */
+ S_ST( 'f', 3, 771, 0 ), /* 770 rand */
+ S_ST( 'i', 3, 772, 0 ), /* 771 randf */
+ S_ST( 'l', 3, 404, 0 ), /* 772 randfi */
+ S_ST( 'w', 3, 774, 768 ), /* 773 ra */
+ S_ST( 's', 3, 775, 0 ), /* 774 raw */
+ S_ST( 't', 3, 776, 0 ), /* 775 raws */
+ S_ST( 'a', 3, 777, 0 ), /* 776 rawst */
+ S_ST( 't', 3, 405, 0 ), /* 777 rawsta */
+ S_ST( 'e', 3, 794, 767 ), /* 778 r */
+ S_ST( 'f', 3, 780, 0 ), /* 779 re */
+ S_ST( 'i', 3, 406, 0 ), /* 780 ref */
+ S_ST( 'q', 3, 782, 779 ), /* 781 re */
+ S_ST( 'u', 3, 783, 0 ), /* 782 req */
+ S_ST( 'e', 3, 784, 0 ), /* 783 requ */
+ S_ST( 's', 3, 785, 0 ), /* 784 reque */
+ S_ST( 't', 3, 786, 0 ), /* 785 reques */
+ S_ST( 'k', 3, 787, 0 ), /* 786 request */
+ S_ST( 'e', 3, 407, 0 ), /* 787 requestk */
+ S_ST( 's', 3, 790, 781 ), /* 788 re */
+ S_ST( 'e', 3, 408, 0 ), /* 789 res */
+ S_ST( 't', 3, 791, 789 ), /* 790 res */
+ S_ST( 'r', 3, 792, 0 ), /* 791 rest */
+ S_ST( 'i', 3, 793, 0 ), /* 792 restr */
+ S_ST( 'c', 3, 409, 0 ), /* 793 restri */
+ S_ST( 'v', 3, 795, 788 ), /* 794 re */
+ S_ST( 'o', 3, 796, 0 ), /* 795 rev */
+ S_ST( 'k', 3, 410, 0 ), /* 796 revo */
+ S_ST( 'l', 3, 798, 778 ), /* 797 r */
+ S_ST( 'i', 3, 799, 0 ), /* 798 rl */
+ S_ST( 'm', 3, 800, 0 ), /* 799 rli */
+ S_ST( 'i', 3, 411, 0 ), /* 800 rlim */
+ S_ST( 's', 3, 881, 766 ), /* 801 */
+ S_ST( 'a', 3, 803, 0 ), /* 802 s */
+ S_ST( 'v', 3, 804, 0 ), /* 803 sa */
+ S_ST( 'e', 3, 805, 0 ), /* 804 sav */
+ S_ST( 'c', 3, 806, 0 ), /* 805 save */
+ S_ST( 'o', 3, 807, 0 ), /* 806 savec */
+ S_ST( 'n', 3, 808, 0 ), /* 807 saveco */
+ S_ST( 'f', 3, 809, 0 ), /* 808 savecon */
+ S_ST( 'i', 3, 810, 0 ), /* 809 saveconf */
+ S_ST( 'g', 3, 811, 0 ), /* 810 saveconfi */
+ S_ST( 'd', 3, 812, 0 ), /* 811 saveconfig */
+ S_ST( 'i', 3, 412, 0 ), /* 812 saveconfigd */
+ S_ST( 'e', 3, 830, 802 ), /* 813 s */
+ S_ST( 'r', 3, 815, 0 ), /* 814 se */
+ S_ST( 'v', 3, 816, 0 ), /* 815 ser */
+ S_ST( 'e', 3, 413, 0 ), /* 816 serv */
+ S_ST( '_', 3, 818, 0 ), /* 817 server */
+ S_ST( 'o', 3, 819, 0 ), /* 818 server_ */
+ S_ST( 'f', 3, 820, 0 ), /* 819 server_o */
+ S_ST( 'f', 3, 821, 0 ), /* 820 server_of */
+ S_ST( 's', 3, 822, 0 ), /* 821 server_off */
+ S_ST( 'e', 3, 460, 0 ), /* 822 server_offs */
+ S_ST( 'r', 3, 824, 817 ), /* 823 server */
+ S_ST( 'e', 3, 825, 0 ), /* 824 serverr */
+ S_ST( 's', 3, 826, 0 ), /* 825 serverre */
+ S_ST( 'p', 3, 827, 0 ), /* 826 serverres */
+ S_ST( 'o', 3, 828, 0 ), /* 827 serverresp */
+ S_ST( 'n', 3, 829, 0 ), /* 828 serverrespo */
+ S_ST( 's', 3, 414, 0 ), /* 829 serverrespon */
+ S_ST( 't', 3, 831, 814 ), /* 830 se */
+ S_ST( 'v', 3, 832, 0 ), /* 831 set */
+ S_ST( 'a', 3, 416, 0 ), /* 832 setv */
+ S_ST( 'i', 3, 834, 813 ), /* 833 s */
+ S_ST( 'm', 3, 835, 0 ), /* 834 si */
+ S_ST( 'u', 3, 836, 0 ), /* 835 sim */
+ S_ST( 'l', 3, 837, 0 ), /* 836 simu */
+ S_ST( 'a', 3, 838, 0 ), /* 837 simul */
+ S_ST( 't', 3, 839, 0 ), /* 838 simula */
+ S_ST( 'i', 3, 840, 457 ), /* 839 simulat */
+ S_ST( 'o', 3, 841, 0 ), /* 840 simulati */
+ S_ST( 'n', 3, 842, 0 ), /* 841 simulatio */
+ S_ST( '_', 3, 843, 0 ), /* 842 simulation */
+ S_ST( 'd', 3, 844, 0 ), /* 843 simulation_ */
+ S_ST( 'u', 3, 845, 0 ), /* 844 simulation_d */
+ S_ST( 'r', 3, 846, 0 ), /* 845 simulation_du */
+ S_ST( 'a', 3, 847, 0 ), /* 846 simulation_dur */
+ S_ST( 't', 3, 848, 0 ), /* 847 simulation_dura */
+ S_ST( 'i', 3, 849, 0 ), /* 848 simulation_durat */
+ S_ST( 'o', 3, 459, 0 ), /* 849 simulation_durati */
+ S_ST( 'o', 3, 851, 833 ), /* 850 s */
+ S_ST( 'u', 3, 852, 0 ), /* 851 so */
+ S_ST( 'r', 3, 853, 0 ), /* 852 sou */
+ S_ST( 'c', 3, 417, 0 ), /* 853 sour */
+ S_ST( 't', 3, 877, 850 ), /* 854 s */
+ S_ST( 'a', 3, 861, 0 ), /* 855 st */
+ S_ST( 'c', 3, 857, 0 ), /* 856 sta */
+ S_ST( 'k', 3, 858, 0 ), /* 857 stac */
+ S_ST( 's', 3, 859, 0 ), /* 858 stack */
+ S_ST( 'i', 3, 860, 0 ), /* 859 stacks */
+ S_ST( 'z', 3, 418, 0 ), /* 860 stacksi */
+ S_ST( 't', 3, 420, 856 ), /* 861 sta */
+ S_ST( 'i', 3, 863, 0 ), /* 862 stat */
+ S_ST( 's', 3, 864, 0 ), /* 863 stati */
+ S_ST( 't', 3, 865, 0 ), /* 864 statis */
+ S_ST( 'i', 3, 866, 0 ), /* 865 statist */
+ S_ST( 'c', 3, 419, 0 ), /* 866 statisti */
+ S_ST( 'd', 3, 868, 0 ), /* 867 stats */
+ S_ST( 'i', 3, 421, 0 ), /* 868 statsd */
+ S_ST( 'e', 3, 422, 855 ), /* 869 st */
+ S_ST( 'b', 3, 871, 0 ), /* 870 step */
+ S_ST( 'a', 3, 872, 0 ), /* 871 stepb */
+ S_ST( 'c', 3, 423, 0 ), /* 872 stepba */
+ S_ST( 'f', 3, 874, 870 ), /* 873 step */
+ S_ST( 'w', 3, 424, 0 ), /* 874 stepf */
+ S_ST( 'o', 3, 876, 873 ), /* 875 step */
+ S_ST( 'u', 3, 425, 0 ), /* 876 stepo */
+ S_ST( 'r', 3, 878, 869 ), /* 877 st */
+ S_ST( 'a', 3, 879, 0 ), /* 878 str */
+ S_ST( 't', 3, 880, 0 ), /* 879 stra */
+ S_ST( 'u', 3, 426, 0 ), /* 880 strat */
+ S_ST( 'y', 3, 428, 854 ), /* 881 s */
+ S_ST( 's', 3, 883, 0 ), /* 882 sys */
+ S_ST( 't', 3, 884, 0 ), /* 883 syss */
+ S_ST( 'a', 3, 885, 0 ), /* 884 sysst */
+ S_ST( 't', 3, 429, 0 ), /* 885 syssta */
+ S_ST( 't', 3, 912, 801 ), /* 886 */
+ S_ST( 'i', 3, 898, 0 ), /* 887 t */
+ S_ST( 'c', 3, 430, 0 ), /* 888 ti */
+ S_ST( 'm', 3, 891, 888 ), /* 889 ti */
+ S_ST( 'e', 3, 433, 0 ), /* 890 tim */
+ S_ST( 'i', 3, 892, 890 ), /* 891 tim */
+ S_ST( 'n', 3, 893, 0 ), /* 892 timi */
+ S_ST( 'g', 3, 894, 0 ), /* 893 timin */
+ S_ST( 's', 3, 895, 0 ), /* 894 timing */
+ S_ST( 't', 3, 896, 0 ), /* 895 timings */
+ S_ST( 'a', 3, 897, 0 ), /* 896 timingst */
+ S_ST( 't', 3, 434, 0 ), /* 897 timingsta */
+ S_ST( 'n', 3, 899, 889 ), /* 898 ti */
+ S_ST( 'k', 3, 900, 0 ), /* 899 tin */
+ S_ST( 'e', 3, 435, 0 ), /* 900 tink */
+ S_ST( 'o', 3, 436, 887 ), /* 901 t */
+ S_ST( 'r', 3, 904, 901 ), /* 902 t */
+ S_ST( 'a', 3, 437, 0 ), /* 903 tr */
+ S_ST( 'u', 3, 905, 903 ), /* 904 tr */
+ S_ST( 's', 3, 906, 438 ), /* 905 tru */
+ S_ST( 't', 3, 907, 0 ), /* 906 trus */
+ S_ST( 'e', 3, 908, 0 ), /* 907 trust */
+ S_ST( 'd', 3, 909, 0 ), /* 908 truste */
+ S_ST( 'k', 3, 910, 0 ), /* 909 trusted */
+ S_ST( 'e', 3, 439, 0 ), /* 910 trustedk */
+ S_ST( 't', 3, 440, 902 ), /* 911 t */
+ S_ST( 'y', 3, 913, 911 ), /* 912 t */
+ S_ST( 'p', 3, 441, 0 ), /* 913 ty */
+ S_ST( 'u', 3, 915, 886 ), /* 914 */
+ S_ST( 'n', 3, 921, 0 ), /* 915 u */
+ S_ST( 'c', 3, 917, 0 ), /* 916 un */
+ S_ST( 'o', 3, 918, 0 ), /* 917 unc */
+ S_ST( 'n', 3, 919, 0 ), /* 918 unco */
+ S_ST( 'f', 3, 920, 0 ), /* 919 uncon */
+ S_ST( 'i', 3, 446, 0 ), /* 920 unconf */
+ S_ST( 'p', 3, 922, 916 ), /* 921 un */
+ S_ST( 'e', 3, 923, 0 ), /* 922 unp */
+ S_ST( 'e', 3, 447, 0 ), /* 923 unpe */
+ S_ST( '_', 3, 944, 0 ), /* 924 unpeer */
+ S_ST( 'c', 3, 926, 0 ), /* 925 unpeer_ */
+ S_ST( 'r', 3, 927, 0 ), /* 926 unpeer_c */
+ S_ST( 'y', 3, 928, 0 ), /* 927 unpeer_cr */
+ S_ST( 'p', 3, 929, 0 ), /* 928 unpeer_cry */
+ S_ST( 't', 3, 930, 0 ), /* 929 unpeer_cryp */
+ S_ST( 'o', 3, 931, 0 ), /* 930 unpeer_crypt */
+ S_ST( '_', 3, 936, 0 ), /* 931 unpeer_crypto */
+ S_ST( 'e', 3, 933, 0 ), /* 932 unpeer_crypto_ */
+ S_ST( 'a', 3, 934, 0 ), /* 933 unpeer_crypto_e */
+ S_ST( 'r', 3, 935, 0 ), /* 934 unpeer_crypto_ea */
+ S_ST( 'l', 3, 443, 0 ), /* 935 unpeer_crypto_ear */
+ S_ST( 'n', 3, 937, 932 ), /* 936 unpeer_crypto_ */
+ S_ST( 'a', 3, 938, 0 ), /* 937 unpeer_crypto_n */
+ S_ST( 'k', 3, 939, 0 ), /* 938 unpeer_crypto_na */
+ S_ST( '_', 3, 940, 0 ), /* 939 unpeer_crypto_nak */
+ S_ST( 'e', 3, 941, 0 ), /* 940 unpeer_crypto_nak_ */
+ S_ST( 'a', 3, 942, 0 ), /* 941 unpeer_crypto_nak_e */
+ S_ST( 'r', 3, 943, 0 ), /* 942 unpeer_crypto_nak_ea */
+ S_ST( 'l', 3, 444, 0 ), /* 943 unpeer_crypto_nak_ear */
+ S_ST( 'd', 3, 945, 925 ), /* 944 unpeer_ */
+ S_ST( 'i', 3, 946, 0 ), /* 945 unpeer_d */
+ S_ST( 'g', 3, 947, 0 ), /* 946 unpeer_di */
+ S_ST( 'e', 3, 948, 0 ), /* 947 unpeer_dig */
+ S_ST( 's', 3, 949, 0 ), /* 948 unpeer_dige */
+ S_ST( 't', 3, 950, 0 ), /* 949 unpeer_diges */
+ S_ST( '_', 3, 951, 0 ), /* 950 unpeer_digest */
+ S_ST( 'e', 3, 952, 0 ), /* 951 unpeer_digest_ */
+ S_ST( 'a', 3, 953, 0 ), /* 952 unpeer_digest_e */
+ S_ST( 'r', 3, 954, 0 ), /* 953 unpeer_digest_ea */
+ S_ST( 'l', 3, 445, 0 ), /* 954 unpeer_digest_ear */
+ S_ST( 'v', 3, 956, 914 ), /* 955 */
+ S_ST( 'e', 3, 957, 0 ), /* 956 v */
+ S_ST( 'r', 3, 958, 0 ), /* 957 ve */
+ S_ST( 's', 3, 959, 0 ), /* 958 ver */
+ S_ST( 'i', 3, 960, 0 ), /* 959 vers */
+ S_ST( 'o', 3, 448, 0 ), /* 960 versi */
+ S_ST( 'w', 3, 968, 955 ), /* 961 */
+ S_ST( 'a', 3, 963, 0 ), /* 962 w */
+ S_ST( 'n', 3, 964, 0 ), /* 963 wa */
+ S_ST( 'd', 3, 965, 0 ), /* 964 wan */
+ S_ST( 'e', 3, 463, 0 ), /* 965 wand */
+ S_ST( 'e', 3, 967, 962 ), /* 966 w */
+ S_ST( 'e', 3, 450, 0 ), /* 967 we */
+ S_ST( 'i', 3, 969, 966 ), /* 968 w */
+ S_ST( 'l', 3, 970, 0 ), /* 969 wi */
+ S_ST( 'd', 3, 971, 0 ), /* 970 wil */
+ S_ST( 'c', 3, 972, 0 ), /* 971 wild */
+ S_ST( 'a', 3, 973, 0 ), /* 972 wildc */
+ S_ST( 'r', 3, 451, 0 ), /* 973 wildca */
+ S_ST( 'x', 3, 979, 961 ), /* 974 */
+ S_ST( 'l', 3, 976, 0 ), /* 975 x */
+ S_ST( 'e', 3, 977, 0 ), /* 976 xl */
+ S_ST( 'a', 3, 978, 0 ), /* 977 xle */
+ S_ST( 'v', 3, 452, 0 ), /* 978 xlea */
+ S_ST( 'm', 3, 980, 975 ), /* 979 x */
+ S_ST( 't', 3, 981, 0 ), /* 980 xm */
+ S_ST( 'n', 3, 982, 0 ), /* 981 xmt */
+ S_ST( 'o', 3, 983, 0 ), /* 982 xmtn */
+ S_ST( 'n', 3, 984, 0 ), /* 983 xmtno */
+ S_ST( 'c', 3, 453, 0 ), /* 984 xmtnon */
+ S_ST( 'y', 3, 986, 974 ), /* 985 [initial state] */
+ S_ST( 'e', 3, 987, 0 ), /* 986 y */
+ S_ST( 'a', 3, 454, 0 ) /* 987 ye */
};
--- contrib/ntp/ntpd/ntp_leapsec.c.orig
+++ contrib/ntp/ntpd/ntp_leapsec.c
@@ -422,7 +422,8 @@
leapsec_load_stream(
FILE * ifp ,
const char * fname,
- int/*BOOL*/ logall)
+ int/*BOOL*/ logall,
+ int/*BOOL*/ vhash)
{
leap_table_t *pt;
int rcheck;
@@ -430,36 +431,37 @@
if (NULL == fname)
fname = "<unknown>";
- rcheck = leapsec_validate((leapsec_reader)getc, ifp);
- if (logall)
- switch (rcheck)
- {
- case LSVALID_GOODHASH:
- msyslog(LOG_NOTICE, "%s ('%s'): good hash signature",
- logPrefix, fname);
- break;
-
- case LSVALID_NOHASH:
- msyslog(LOG_ERR, "%s ('%s'): no hash signature",
- logPrefix, fname);
- break;
- case LSVALID_BADHASH:
- msyslog(LOG_ERR, "%s ('%s'): signature mismatch",
- logPrefix, fname);
- break;
- case LSVALID_BADFORMAT:
- msyslog(LOG_ERR, "%s ('%s'): malformed hash signature",
- logPrefix, fname);
- break;
- default:
- msyslog(LOG_ERR, "%s ('%s'): unknown error code %d",
- logPrefix, fname, rcheck);
- break;
- }
- if (rcheck < 0)
- return FALSE;
-
- rewind(ifp);
+ if (vhash) {
+ rcheck = leapsec_validate((leapsec_reader)getc, ifp);
+ if (logall)
+ switch (rcheck)
+ {
+ case LSVALID_GOODHASH:
+ msyslog(LOG_NOTICE, "%s ('%s'): good hash signature",
+ logPrefix, fname);
+ break;
+
+ case LSVALID_NOHASH:
+ msyslog(LOG_ERR, "%s ('%s'): no hash signature",
+ logPrefix, fname);
+ break;
+ case LSVALID_BADHASH:
+ msyslog(LOG_ERR, "%s ('%s'): signature mismatch",
+ logPrefix, fname);
+ break;
+ case LSVALID_BADFORMAT:
+ msyslog(LOG_ERR, "%s ('%s'): malformed hash signature",
+ logPrefix, fname);
+ break;
+ default:
+ msyslog(LOG_ERR, "%s ('%s'): unknown error code %d",
+ logPrefix, fname, rcheck);
+ break;
+ }
+ if (rcheck < 0)
+ return FALSE;
+ rewind(ifp);
+ }
pt = leapsec_get_table(TRUE);
if (!leapsec_load(pt, (leapsec_reader)getc, ifp, TRUE)) {
switch (errno) {
@@ -498,7 +500,8 @@
const char * fname,
struct stat * sb_old,
int/*BOOL*/ force,
- int/*BOOL*/ logall)
+ int/*BOOL*/ logall,
+ int/*BOOL*/ vhash)
{
FILE * fp;
struct stat sb_new;
@@ -551,7 +554,7 @@
return FALSE;
}
- rc = leapsec_load_stream(fp, fname, logall);
+ rc = leapsec_load_stream(fp, fname, logall, vhash);
fclose(fp);
return rc;
}
--- contrib/ntp/ntpd/ntp_leapsec.h.orig
+++ contrib/ntp/ntpd/ntp_leapsec.h
@@ -174,7 +174,7 @@
* around the generic load function, 'leapsec_load()'.
*/
extern int/*BOOL*/ leapsec_load_stream(FILE * fp, const char * fname,
- int/*BOOL*/logall);
+ int/*BOOL*/logall, int/*BOOL*/vhash);
/* Read a leap second file from file. It checks that the file exists and
* (if 'force' is not applied) the ctime/mtime has changed since the
@@ -184,7 +184,8 @@
* otherwise. Uses 'leapsec_load_stream()' internally.
*/
extern int/*BOOL*/ leapsec_load_file(const char * fname, struct stat * sb,
- int/*BOOL*/force, int/*BOOL*/logall);
+ int/*BOOL*/force, int/*BOOL*/logall,
+ int/*BOOL*/vhash);
/* Get the current leap data signature. This consists of the last
* ransition, the table expiration, and the total TAI difference at the
--- contrib/ntp/ntpd/ntp_loopfilter.c.orig
+++ contrib/ntp/ntpd/ntp_loopfilter.c
@@ -15,6 +15,7 @@
#include "ntp_io.h"
#include "ntp_unixtime.h"
#include "ntp_stdlib.h"
+#include "timexsup.h"
#include <limits.h>
#include <stdio.h>
@@ -167,6 +168,9 @@
int tc_counter; /* jiggle counter */
double last_offset; /* last offset (s) */
+u_int tc_twinlo; /* TC step down not before this time */
+u_int tc_twinhi; /* TC step up not before this time */
+
/*
* Huff-n'-puff filter variables
*/
@@ -761,30 +765,21 @@
if (ext_enable) {
ntv.modes = MOD_STATUS;
} else {
-#ifdef STA_NANO
- ntv.modes = MOD_BITS | MOD_NANO;
-#else /* STA_NANO */
ntv.modes = MOD_BITS;
-#endif /* STA_NANO */
- if (clock_offset < 0)
- dtemp = -.5;
- else
- dtemp = .5;
+ ntv.offset = var_long_from_dbl(
+ clock_offset, &ntv.modes);
#ifdef STA_NANO
- ntv.offset = (int32)(clock_offset * 1e9 +
- dtemp);
ntv.constant = sys_poll;
#else /* STA_NANO */
- ntv.offset = (int32)(clock_offset * 1e6 +
- dtemp);
ntv.constant = sys_poll - 4;
#endif /* STA_NANO */
if (ntv.constant < 0)
ntv.constant = 0;
- ntv.esterror = (u_int32)(clock_jitter * 1e6);
- ntv.maxerror = (u_int32)((sys_rootdelay / 2 +
- sys_rootdisp) * 1e6);
+ ntv.esterror = usec_long_from_dbl(
+ clock_jitter);
+ ntv.maxerror = usec_long_from_dbl(
+ sys_rootdelay / 2 + sys_rootdisp);
ntv.status = STA_PLL;
/*
@@ -823,11 +818,7 @@
ntp_adjtime_error_handler(__func__, &ntv, ntp_adj_ret, errno, hardpps_enable, 0, __LINE__ - 1);
}
pll_status = ntv.status;
-#ifdef STA_NANO
- clock_offset = ntv.offset / 1e9;
-#else /* STA_NANO */
- clock_offset = ntv.offset / 1e6;
-#endif /* STA_NANO */
+ clock_offset = dbl_from_var_long(ntv.offset, ntv.status);
clock_frequency = FREQTOD(ntv.freq);
/*
@@ -834,11 +825,8 @@
* If the kernel PPS is lit, monitor its performance.
*/
if (ntv.status & STA_PPSTIME) {
-#ifdef STA_NANO
- clock_jitter = ntv.jitter / 1e9;
-#else /* STA_NANO */
- clock_jitter = ntv.jitter / 1e6;
-#endif /* STA_NANO */
+ clock_jitter = dbl_from_var_long(
+ ntv.jitter, ntv.status);
}
#if defined(STA_NANO) && NTP_API == 4
@@ -888,34 +876,52 @@
* increased, otherwise it is decreased. A bit of hysteresis
* helps calm the dance. Works best using burst mode. Don't
* fiddle with the poll during the startup clamp period.
+ * [Bug 3615] also observe time gates to avoid eager stepping
*/
if (freq_cnt > 0) {
tc_counter = 0;
+ tc_twinlo = current_time;
+ tc_twinhi = current_time;
} else if (fabs(clock_offset) < CLOCK_PGATE * clock_jitter) {
tc_counter += sys_poll;
if (tc_counter > CLOCK_LIMIT) {
tc_counter = CLOCK_LIMIT;
- if (sys_poll < peer->maxpoll) {
- tc_counter = 0;
- sys_poll++;
- }
+ if (sys_poll < peer->maxpoll)
+ sys_poll += (current_time >= tc_twinhi);
}
} else {
tc_counter -= sys_poll << 1;
if (tc_counter < -CLOCK_LIMIT) {
tc_counter = -CLOCK_LIMIT;
- if (sys_poll > peer->minpoll) {
- tc_counter = 0;
- sys_poll--;
- }
+ if (sys_poll > peer->minpoll)
+ sys_poll -= (current_time >= tc_twinlo);
}
}
/*
* If the time constant has changed, update the poll variables.
+ *
+ * [bug 3615] also set new time gates
+ * The time limit for stepping down will be half the TC interval
+ * or 60 secs from now, whatever is bigger, and the step up time
+ * limit will be half the TC interval after the step down limit.
+ *
+ * The 'sys_poll' value affects the servo loop gain, and
+ * overshooting sys_poll slows it down unnecessarily. Stepping
+ * down too fast also has bad effects.
+ *
+ * The 'tc_counter' dance itself is something that *should*
+ * happen *once* every (1 << sys_poll) seconds, I think, but
+ * that's not how it works right now, and adding time guards
+ * seems the least intrusive way to handle this.
*/
- if (osys_poll != sys_poll)
- poll_update(peer, sys_poll);
+ if (osys_poll != sys_poll) {
+ u_int deadband = 1u << (sys_poll - 1);
+ tc_counter = 0;
+ tc_twinlo = current_time + max(deadband, 60);
+ tc_twinhi = tc_twinlo + deadband;
+ poll_update(peer, sys_poll, 0);
+ }
/*
* Yibbidy, yibbbidy, yibbidy; that'h all folks.
--- contrib/ntp/ntpd/ntp_parser.c.orig
+++ contrib/ntp/ntpd/ntp_parser.c
@@ -62,7 +62,7 @@
/* Copy the first part of user declarations. */
-#line 11 "ntp_parser.y" /* yacc.c:339 */
+#line 11 "../../ntpd/ntp_parser.y" /* yacc.c:339 */
#ifdef HAVE_CONFIG_H
# include <config.h>
@@ -97,7 +97,7 @@
# define ONLY_SIM(a) NULL
#endif
-#line 101 "ntp_parser.c" /* yacc.c:339 */
+#line 101 "../../ntpd/ntp_parser.c" /* yacc.c:339 */
# ifndef YY_NULLPTR
# if defined __cplusplus && 201103L <= __cplusplus
@@ -117,8 +117,8 @@
/* In a future release of Bison, this section will be replaced
by #include "y.tab.h". */
-#ifndef YY_YY_NTP_PARSER_H_INCLUDED
-# define YY_YY_NTP_PARSER_H_INCLUDED
+#ifndef YY_YY__NTPD_NTP_PARSER_H_INCLUDED
+# define YY_YY__NTPD_NTP_PARSER_H_INCLUDED
/* Debug traces. */
#ifndef YYDEBUG
# define YYDEBUG 1
@@ -151,187 +151,196 @@
T_Burst = 274,
T_Calibrate = 275,
T_Ceiling = 276,
- T_Clockstats = 277,
- T_Cohort = 278,
- T_ControlKey = 279,
- T_Crypto = 280,
- T_Cryptostats = 281,
- T_Ctl = 282,
- T_Day = 283,
- T_Default = 284,
- T_Digest = 285,
- T_Disable = 286,
- T_Discard = 287,
- T_Dispersion = 288,
- T_Double = 289,
- T_Driftfile = 290,
- T_Drop = 291,
- T_Dscp = 292,
- T_Ellipsis = 293,
- T_Enable = 294,
- T_End = 295,
- T_Epeer = 296,
- T_False = 297,
- T_File = 298,
- T_Filegen = 299,
- T_Filenum = 300,
- T_Flag1 = 301,
- T_Flag2 = 302,
- T_Flag3 = 303,
- T_Flag4 = 304,
- T_Flake = 305,
- T_Floor = 306,
- T_Freq = 307,
- T_Fudge = 308,
- T_Host = 309,
- T_Huffpuff = 310,
- T_Iburst = 311,
- T_Ident = 312,
- T_Ignore = 313,
- T_Incalloc = 314,
- T_Incmem = 315,
- T_Initalloc = 316,
- T_Initmem = 317,
- T_Includefile = 318,
- T_Integer = 319,
- T_Interface = 320,
- T_Intrange = 321,
- T_Io = 322,
- T_Ippeerlimit = 323,
- T_Ipv4 = 324,
- T_Ipv4_flag = 325,
- T_Ipv6 = 326,
- T_Ipv6_flag = 327,
- T_Kernel = 328,
- T_Key = 329,
- T_Keys = 330,
- T_Keysdir = 331,
- T_Kod = 332,
- T_Mssntp = 333,
- T_Leapfile = 334,
- T_Leapsmearinterval = 335,
- T_Limited = 336,
- T_Link = 337,
- T_Listen = 338,
- T_Logconfig = 339,
- T_Logfile = 340,
- T_Loopstats = 341,
- T_Lowpriotrap = 342,
- T_Manycastclient = 343,
- T_Manycastserver = 344,
- T_Mask = 345,
- T_Maxage = 346,
- T_Maxclock = 347,
- T_Maxdepth = 348,
- T_Maxdist = 349,
- T_Maxmem = 350,
- T_Maxpoll = 351,
- T_Mdnstries = 352,
- T_Mem = 353,
- T_Memlock = 354,
- T_Minclock = 355,
- T_Mindepth = 356,
- T_Mindist = 357,
- T_Minimum = 358,
- T_Minpoll = 359,
- T_Minsane = 360,
- T_Mode = 361,
- T_Mode7 = 362,
- T_Monitor = 363,
- T_Month = 364,
- T_Mru = 365,
- T_Multicastclient = 366,
- T_Nic = 367,
- T_Nolink = 368,
- T_Nomodify = 369,
- T_Nomrulist = 370,
- T_None = 371,
- T_Nonvolatile = 372,
- T_Noepeer = 373,
- T_Nopeer = 374,
- T_Noquery = 375,
- T_Noselect = 376,
- T_Noserve = 377,
- T_Notrap = 378,
- T_Notrust = 379,
- T_Ntp = 380,
- T_Ntpport = 381,
- T_NtpSignDsocket = 382,
- T_Orphan = 383,
- T_Orphanwait = 384,
- T_PCEdigest = 385,
- T_Panic = 386,
- T_Peer = 387,
- T_Peerstats = 388,
- T_Phone = 389,
- T_Pid = 390,
- T_Pidfile = 391,
- T_Pool = 392,
- T_Port = 393,
- T_Preempt = 394,
- T_Prefer = 395,
- T_Protostats = 396,
- T_Pw = 397,
- T_Randfile = 398,
- T_Rawstats = 399,
- T_Refid = 400,
- T_Requestkey = 401,
- T_Reset = 402,
- T_Restrict = 403,
- T_Revoke = 404,
- T_Rlimit = 405,
- T_Saveconfigdir = 406,
- T_Server = 407,
- T_Setvar = 408,
- T_Source = 409,
- T_Stacksize = 410,
- T_Statistics = 411,
- T_Stats = 412,
- T_Statsdir = 413,
- T_Step = 414,
- T_Stepback = 415,
- T_Stepfwd = 416,
- T_Stepout = 417,
- T_Stratum = 418,
- T_String = 419,
- T_Sys = 420,
- T_Sysstats = 421,
- T_Tick = 422,
- T_Time1 = 423,
- T_Time2 = 424,
- T_Timer = 425,
- T_Timingstats = 426,
- T_Tinker = 427,
- T_Tos = 428,
- T_Trap = 429,
- T_True = 430,
- T_Trustedkey = 431,
- T_Ttl = 432,
- T_Type = 433,
- T_U_int = 434,
- T_UEcrypto = 435,
- T_UEcryptonak = 436,
- T_UEdigest = 437,
- T_Unconfig = 438,
- T_Unpeer = 439,
- T_Version = 440,
- T_WanderThreshold = 441,
- T_Week = 442,
- T_Wildcard = 443,
- T_Xleave = 444,
- T_Year = 445,
- T_Flag = 446,
- T_EOC = 447,
- T_Simulate = 448,
- T_Beep_Delay = 449,
- T_Sim_Duration = 450,
- T_Server_Offset = 451,
- T_Duration = 452,
- T_Freq_Offset = 453,
- T_Wander = 454,
- T_Jitter = 455,
- T_Prop_Delay = 456,
- T_Proc_Delay = 457
+ T_Checkhash = 277,
+ T_Clockstats = 278,
+ T_Cohort = 279,
+ T_ControlKey = 280,
+ T_Crypto = 281,
+ T_Cryptostats = 282,
+ T_Ctl = 283,
+ T_Day = 284,
+ T_Default = 285,
+ T_Digest = 286,
+ T_Disable = 287,
+ T_Discard = 288,
+ T_Dispersion = 289,
+ T_Double = 290,
+ T_Driftfile = 291,
+ T_Drop = 292,
+ T_Dscp = 293,
+ T_Ellipsis = 294,
+ T_Enable = 295,
+ T_End = 296,
+ T_Epeer = 297,
+ T_False = 298,
+ T_File = 299,
+ T_Filegen = 300,
+ T_Filenum = 301,
+ T_Flag1 = 302,
+ T_Flag2 = 303,
+ T_Flag3 = 304,
+ T_Flag4 = 305,
+ T_Flake = 306,
+ T_Floor = 307,
+ T_Freq = 308,
+ T_Fudge = 309,
+ T_Fuzz = 310,
+ T_Host = 311,
+ T_Huffpuff = 312,
+ T_Iburst = 313,
+ T_Ident = 314,
+ T_Ignore = 315,
+ T_Ignorehash = 316,
+ T_Incalloc = 317,
+ T_Incmem = 318,
+ T_Initalloc = 319,
+ T_Initmem = 320,
+ T_Includefile = 321,
+ T_Integer = 322,
+ T_Interface = 323,
+ T_Intrange = 324,
+ T_Io = 325,
+ T_Ippeerlimit = 326,
+ T_Ipv4 = 327,
+ T_Ipv4_flag = 328,
+ T_Ipv6 = 329,
+ T_Ipv6_flag = 330,
+ T_Kernel = 331,
+ T_Key = 332,
+ T_Keys = 333,
+ T_Keysdir = 334,
+ T_Kod = 335,
+ T_Leapfile = 336,
+ T_Leapsmearinterval = 337,
+ T_Limited = 338,
+ T_Link = 339,
+ T_Listen = 340,
+ T_Logconfig = 341,
+ T_Logfile = 342,
+ T_Loopstats = 343,
+ T_Lowpriotrap = 344,
+ T_Manycastclient = 345,
+ T_Manycastserver = 346,
+ T_Mask = 347,
+ T_Maxage = 348,
+ T_Maxclock = 349,
+ T_Maxdepth = 350,
+ T_Maxdist = 351,
+ T_Maxmem = 352,
+ T_Maxpoll = 353,
+ T_Mdnstries = 354,
+ T_Mem = 355,
+ T_Memlock = 356,
+ T_Minclock = 357,
+ T_Mindepth = 358,
+ T_Mindist = 359,
+ T_Minimum = 360,
+ T_Minjitter = 361,
+ T_Minpoll = 362,
+ T_Minsane = 363,
+ T_Mode = 364,
+ T_Mode7 = 365,
+ T_Monitor = 366,
+ T_Month = 367,
+ T_Mru = 368,
+ T_Mssntp = 369,
+ T_Multicastclient = 370,
+ T_Nic = 371,
+ T_Nolink = 372,
+ T_Nomodify = 373,
+ T_Nomrulist = 374,
+ T_None = 375,
+ T_Nonvolatile = 376,
+ T_Noepeer = 377,
+ T_Nopeer = 378,
+ T_Noquery = 379,
+ T_Noselect = 380,
+ T_Noserve = 381,
+ T_Notrap = 382,
+ T_Notrust = 383,
+ T_Ntp = 384,
+ T_Ntpport = 385,
+ T_NtpSignDsocket = 386,
+ T_Orphan = 387,
+ T_Orphanwait = 388,
+ T_PCEdigest = 389,
+ T_Panic = 390,
+ T_Peer = 391,
+ T_Peerstats = 392,
+ T_Phone = 393,
+ T_Pid = 394,
+ T_Pidfile = 395,
+ T_Poll = 396,
+ T_PollSkewList = 397,
+ T_Pool = 398,
+ T_Port = 399,
+ T_Preempt = 400,
+ T_Prefer = 401,
+ T_Protostats = 402,
+ T_Pw = 403,
+ T_Randfile = 404,
+ T_Rawstats = 405,
+ T_Refid = 406,
+ T_Requestkey = 407,
+ T_Reset = 408,
+ T_Restrict = 409,
+ T_Revoke = 410,
+ T_Rlimit = 411,
+ T_Saveconfigdir = 412,
+ T_Server = 413,
+ T_Serverresponse = 414,
+ T_ServerresponseFuzz = 415,
+ T_Setvar = 416,
+ T_Source = 417,
+ T_Stacksize = 418,
+ T_Statistics = 419,
+ T_Stats = 420,
+ T_Statsdir = 421,
+ T_Step = 422,
+ T_Stepback = 423,
+ T_Stepfwd = 424,
+ T_Stepout = 425,
+ T_Stratum = 426,
+ T_String = 427,
+ T_Sys = 428,
+ T_Sysstats = 429,
+ T_Tick = 430,
+ T_Time1 = 431,
+ T_Time2 = 432,
+ T_Timer = 433,
+ T_Timingstats = 434,
+ T_Tinker = 435,
+ T_Tos = 436,
+ T_Trap = 437,
+ T_True = 438,
+ T_Trustedkey = 439,
+ T_Ttl = 440,
+ T_Type = 441,
+ T_U_int = 442,
+ T_UEcrypto = 443,
+ T_UEcryptonak = 444,
+ T_UEdigest = 445,
+ T_Unconfig = 446,
+ T_Unpeer = 447,
+ T_Version = 448,
+ T_WanderThreshold = 449,
+ T_Week = 450,
+ T_Wildcard = 451,
+ T_Xleave = 452,
+ T_Xmtnonce = 453,
+ T_Year = 454,
+ T_Flag = 455,
+ T_EOC = 456,
+ T_Simulate = 457,
+ T_Beep_Delay = 458,
+ T_Sim_Duration = 459,
+ T_Server_Offset = 460,
+ T_Duration = 461,
+ T_Freq_Offset = 462,
+ T_Wander = 463,
+ T_Jitter = 464,
+ T_Prop_Delay = 465,
+ T_Proc_Delay = 466
};
#endif
/* Tokens. */
@@ -354,187 +363,196 @@
#define T_Burst 274
#define T_Calibrate 275
#define T_Ceiling 276
-#define T_Clockstats 277
-#define T_Cohort 278
-#define T_ControlKey 279
-#define T_Crypto 280
-#define T_Cryptostats 281
-#define T_Ctl 282
-#define T_Day 283
-#define T_Default 284
-#define T_Digest 285
-#define T_Disable 286
-#define T_Discard 287
-#define T_Dispersion 288
-#define T_Double 289
-#define T_Driftfile 290
-#define T_Drop 291
-#define T_Dscp 292
-#define T_Ellipsis 293
-#define T_Enable 294
-#define T_End 295
-#define T_Epeer 296
-#define T_False 297
-#define T_File 298
-#define T_Filegen 299
-#define T_Filenum 300
-#define T_Flag1 301
-#define T_Flag2 302
-#define T_Flag3 303
-#define T_Flag4 304
-#define T_Flake 305
-#define T_Floor 306
-#define T_Freq 307
-#define T_Fudge 308
-#define T_Host 309
-#define T_Huffpuff 310
-#define T_Iburst 311
-#define T_Ident 312
-#define T_Ignore 313
-#define T_Incalloc 314
-#define T_Incmem 315
-#define T_Initalloc 316
-#define T_Initmem 317
-#define T_Includefile 318
-#define T_Integer 319
-#define T_Interface 320
-#define T_Intrange 321
-#define T_Io 322
-#define T_Ippeerlimit 323
-#define T_Ipv4 324
-#define T_Ipv4_flag 325
-#define T_Ipv6 326
-#define T_Ipv6_flag 327
-#define T_Kernel 328
-#define T_Key 329
-#define T_Keys 330
-#define T_Keysdir 331
-#define T_Kod 332
-#define T_Mssntp 333
-#define T_Leapfile 334
-#define T_Leapsmearinterval 335
-#define T_Limited 336
-#define T_Link 337
-#define T_Listen 338
-#define T_Logconfig 339
-#define T_Logfile 340
-#define T_Loopstats 341
-#define T_Lowpriotrap 342
-#define T_Manycastclient 343
-#define T_Manycastserver 344
-#define T_Mask 345
-#define T_Maxage 346
-#define T_Maxclock 347
-#define T_Maxdepth 348
-#define T_Maxdist 349
-#define T_Maxmem 350
-#define T_Maxpoll 351
-#define T_Mdnstries 352
-#define T_Mem 353
-#define T_Memlock 354
-#define T_Minclock 355
-#define T_Mindepth 356
-#define T_Mindist 357
-#define T_Minimum 358
-#define T_Minpoll 359
-#define T_Minsane 360
-#define T_Mode 361
-#define T_Mode7 362
-#define T_Monitor 363
-#define T_Month 364
-#define T_Mru 365
-#define T_Multicastclient 366
-#define T_Nic 367
-#define T_Nolink 368
-#define T_Nomodify 369
-#define T_Nomrulist 370
-#define T_None 371
-#define T_Nonvolatile 372
-#define T_Noepeer 373
-#define T_Nopeer 374
-#define T_Noquery 375
-#define T_Noselect 376
-#define T_Noserve 377
-#define T_Notrap 378
-#define T_Notrust 379
-#define T_Ntp 380
-#define T_Ntpport 381
-#define T_NtpSignDsocket 382
-#define T_Orphan 383
-#define T_Orphanwait 384
-#define T_PCEdigest 385
-#define T_Panic 386
-#define T_Peer 387
-#define T_Peerstats 388
-#define T_Phone 389
-#define T_Pid 390
-#define T_Pidfile 391
-#define T_Pool 392
-#define T_Port 393
-#define T_Preempt 394
-#define T_Prefer 395
-#define T_Protostats 396
-#define T_Pw 397
-#define T_Randfile 398
-#define T_Rawstats 399
-#define T_Refid 400
-#define T_Requestkey 401
-#define T_Reset 402
-#define T_Restrict 403
-#define T_Revoke 404
-#define T_Rlimit 405
-#define T_Saveconfigdir 406
-#define T_Server 407
-#define T_Setvar 408
-#define T_Source 409
-#define T_Stacksize 410
-#define T_Statistics 411
-#define T_Stats 412
-#define T_Statsdir 413
-#define T_Step 414
-#define T_Stepback 415
-#define T_Stepfwd 416
-#define T_Stepout 417
-#define T_Stratum 418
-#define T_String 419
-#define T_Sys 420
-#define T_Sysstats 421
-#define T_Tick 422
-#define T_Time1 423
-#define T_Time2 424
-#define T_Timer 425
-#define T_Timingstats 426
-#define T_Tinker 427
-#define T_Tos 428
-#define T_Trap 429
-#define T_True 430
-#define T_Trustedkey 431
-#define T_Ttl 432
-#define T_Type 433
-#define T_U_int 434
-#define T_UEcrypto 435
-#define T_UEcryptonak 436
-#define T_UEdigest 437
-#define T_Unconfig 438
-#define T_Unpeer 439
-#define T_Version 440
-#define T_WanderThreshold 441
-#define T_Week 442
-#define T_Wildcard 443
-#define T_Xleave 444
-#define T_Year 445
-#define T_Flag 446
-#define T_EOC 447
-#define T_Simulate 448
-#define T_Beep_Delay 449
-#define T_Sim_Duration 450
-#define T_Server_Offset 451
-#define T_Duration 452
-#define T_Freq_Offset 453
-#define T_Wander 454
-#define T_Jitter 455
-#define T_Prop_Delay 456
-#define T_Proc_Delay 457
+#define T_Checkhash 277
+#define T_Clockstats 278
+#define T_Cohort 279
+#define T_ControlKey 280
+#define T_Crypto 281
+#define T_Cryptostats 282
+#define T_Ctl 283
+#define T_Day 284
+#define T_Default 285
+#define T_Digest 286
+#define T_Disable 287
+#define T_Discard 288
+#define T_Dispersion 289
+#define T_Double 290
+#define T_Driftfile 291
+#define T_Drop 292
+#define T_Dscp 293
+#define T_Ellipsis 294
+#define T_Enable 295
+#define T_End 296
+#define T_Epeer 297
+#define T_False 298
+#define T_File 299
+#define T_Filegen 300
+#define T_Filenum 301
+#define T_Flag1 302
+#define T_Flag2 303
+#define T_Flag3 304
+#define T_Flag4 305
+#define T_Flake 306
+#define T_Floor 307
+#define T_Freq 308
+#define T_Fudge 309
+#define T_Fuzz 310
+#define T_Host 311
+#define T_Huffpuff 312
+#define T_Iburst 313
+#define T_Ident 314
+#define T_Ignore 315
+#define T_Ignorehash 316
+#define T_Incalloc 317
+#define T_Incmem 318
+#define T_Initalloc 319
+#define T_Initmem 320
+#define T_Includefile 321
+#define T_Integer 322
+#define T_Interface 323
+#define T_Intrange 324
+#define T_Io 325
+#define T_Ippeerlimit 326
+#define T_Ipv4 327
+#define T_Ipv4_flag 328
+#define T_Ipv6 329
+#define T_Ipv6_flag 330
+#define T_Kernel 331
+#define T_Key 332
+#define T_Keys 333
+#define T_Keysdir 334
+#define T_Kod 335
+#define T_Leapfile 336
+#define T_Leapsmearinterval 337
+#define T_Limited 338
+#define T_Link 339
+#define T_Listen 340
+#define T_Logconfig 341
+#define T_Logfile 342
+#define T_Loopstats 343
+#define T_Lowpriotrap 344
+#define T_Manycastclient 345
+#define T_Manycastserver 346
+#define T_Mask 347
+#define T_Maxage 348
+#define T_Maxclock 349
+#define T_Maxdepth 350
+#define T_Maxdist 351
+#define T_Maxmem 352
+#define T_Maxpoll 353
+#define T_Mdnstries 354
+#define T_Mem 355
+#define T_Memlock 356
+#define T_Minclock 357
+#define T_Mindepth 358
+#define T_Mindist 359
+#define T_Minimum 360
+#define T_Minjitter 361
+#define T_Minpoll 362
+#define T_Minsane 363
+#define T_Mode 364
+#define T_Mode7 365
+#define T_Monitor 366
+#define T_Month 367
+#define T_Mru 368
+#define T_Mssntp 369
+#define T_Multicastclient 370
+#define T_Nic 371
+#define T_Nolink 372
+#define T_Nomodify 373
+#define T_Nomrulist 374
+#define T_None 375
+#define T_Nonvolatile 376
+#define T_Noepeer 377
+#define T_Nopeer 378
+#define T_Noquery 379
+#define T_Noselect 380
+#define T_Noserve 381
+#define T_Notrap 382
+#define T_Notrust 383
+#define T_Ntp 384
+#define T_Ntpport 385
+#define T_NtpSignDsocket 386
+#define T_Orphan 387
+#define T_Orphanwait 388
+#define T_PCEdigest 389
+#define T_Panic 390
+#define T_Peer 391
+#define T_Peerstats 392
+#define T_Phone 393
+#define T_Pid 394
+#define T_Pidfile 395
+#define T_Poll 396
+#define T_PollSkewList 397
+#define T_Pool 398
+#define T_Port 399
+#define T_Preempt 400
+#define T_Prefer 401
+#define T_Protostats 402
+#define T_Pw 403
+#define T_Randfile 404
+#define T_Rawstats 405
+#define T_Refid 406
+#define T_Requestkey 407
+#define T_Reset 408
+#define T_Restrict 409
+#define T_Revoke 410
+#define T_Rlimit 411
+#define T_Saveconfigdir 412
+#define T_Server 413
+#define T_Serverresponse 414
+#define T_ServerresponseFuzz 415
+#define T_Setvar 416
+#define T_Source 417
+#define T_Stacksize 418
+#define T_Statistics 419
+#define T_Stats 420
+#define T_Statsdir 421
+#define T_Step 422
+#define T_Stepback 423
+#define T_Stepfwd 424
+#define T_Stepout 425
+#define T_Stratum 426
+#define T_String 427
+#define T_Sys 428
+#define T_Sysstats 429
+#define T_Tick 430
+#define T_Time1 431
+#define T_Time2 432
+#define T_Timer 433
+#define T_Timingstats 434
+#define T_Tinker 435
+#define T_Tos 436
+#define T_Trap 437
+#define T_True 438
+#define T_Trustedkey 439
+#define T_Ttl 440
+#define T_Type 441
+#define T_U_int 442
+#define T_UEcrypto 443
+#define T_UEcryptonak 444
+#define T_UEdigest 445
+#define T_Unconfig 446
+#define T_Unpeer 447
+#define T_Version 448
+#define T_WanderThreshold 449
+#define T_Week 450
+#define T_Wildcard 451
+#define T_Xleave 452
+#define T_Xmtnonce 453
+#define T_Year 454
+#define T_Flag 455
+#define T_EOC 456
+#define T_Simulate 457
+#define T_Beep_Delay 458
+#define T_Sim_Duration 459
+#define T_Server_Offset 460
+#define T_Duration 461
+#define T_Freq_Offset 462
+#define T_Wander 463
+#define T_Jitter 464
+#define T_Prop_Delay 465
+#define T_Proc_Delay 466
/* Value type. */
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
@@ -541,7 +559,7 @@
union YYSTYPE
{
-#line 52 "ntp_parser.y" /* yacc.c:355 */
+#line 52 "../../ntpd/ntp_parser.y" /* yacc.c:355 */
char * String;
double Double;
@@ -560,7 +578,7 @@
script_info * Sim_script;
script_info_fifo * Sim_script_fifo;
-#line 564 "ntp_parser.c" /* yacc.c:355 */
+#line 582 "../../ntpd/ntp_parser.c" /* yacc.c:355 */
};
typedef union YYSTYPE YYSTYPE;
@@ -573,11 +591,11 @@
int yyparse (void);
-#endif /* !YY_YY_NTP_PARSER_H_INCLUDED */
+#endif /* !YY_YY__NTPD_NTP_PARSER_H_INCLUDED */
/* Copy the second part of user declarations. */
-#line 581 "ntp_parser.c" /* yacc.c:358 */
+#line 599 "../../ntpd/ntp_parser.c" /* yacc.c:358 */
#ifdef short
# undef short
@@ -817,23 +835,23 @@
#endif /* !YYCOPY_NEEDED */
/* YYFINAL -- State number of the termination state. */
-#define YYFINAL 216
+#define YYFINAL 219
/* YYLAST -- Last index in YYTABLE. */
-#define YYLAST 662
+#define YYLAST 740
/* YYNTOKENS -- Number of terminals. */
-#define YYNTOKENS 208
+#define YYNTOKENS 218
/* YYNNTS -- Number of nonterminals. */
-#define YYNNTS 107
+#define YYNNTS 111
/* YYNRULES -- Number of rules. */
-#define YYNRULES 324
+#define YYNRULES 336
/* YYNSTATES -- Number of states. */
-#define YYNSTATES 436
+#define YYNSTATES 453
/* YYTRANSLATE[YYX] -- Symbol number corresponding to YYX as returned
by yylex, with out-of-bounds checking. */
#define YYUNDEFTOK 2
-#define YYMAXUTOK 457
+#define YYMAXUTOK 466
#define YYTRANSLATE(YYX) \
((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
@@ -846,15 +864,15 @@
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 204, 205, 2, 2, 2, 2, 2, 2, 2, 2,
+ 214, 215, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 203, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 213, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 206, 2, 207, 2, 2, 2, 2,
+ 2, 2, 2, 216, 212, 217, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
@@ -887,7 +905,8 @@
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
+ 195, 196, 197, 198, 199, 200, 201, 202, 203, 204,
+ 205, 206, 207, 208, 209, 210, 211
};
#if YYDEBUG
@@ -894,39 +913,40 @@
/* YYRLINE[YYN] -- Source line where rule number YYN was defined. */
static const yytype_uint16 yyrline[] =
{
- 0, 378, 378, 382, 383, 384, 399, 400, 401, 402,
- 403, 404, 405, 406, 407, 408, 409, 410, 411, 412,
- 420, 430, 431, 432, 433, 434, 438, 439, 444, 449,
- 451, 457, 458, 466, 467, 468, 472, 477, 478, 479,
- 480, 481, 482, 483, 484, 488, 490, 495, 496, 497,
- 498, 499, 500, 504, 509, 518, 528, 529, 539, 541,
- 543, 545, 556, 563, 565, 570, 572, 574, 576, 578,
- 588, 594, 595, 603, 605, 617, 618, 619, 620, 621,
- 630, 635, 640, 648, 650, 652, 654, 659, 660, 661,
- 662, 663, 664, 665, 666, 667, 671, 672, 681, 683,
- 692, 702, 707, 715, 716, 717, 718, 719, 720, 721,
- 722, 727, 728, 736, 746, 755, 770, 775, 776, 780,
- 781, 785, 786, 787, 788, 789, 790, 791, 800, 804,
- 808, 816, 824, 832, 847, 862, 875, 876, 896, 897,
- 905, 906, 907, 908, 909, 910, 911, 912, 913, 914,
- 915, 916, 917, 918, 919, 920, 921, 925, 930, 938,
- 943, 944, 945, 949, 954, 962, 967, 968, 969, 970,
- 971, 972, 973, 974, 982, 992, 997, 1005, 1007, 1009,
- 1018, 1020, 1025, 1026, 1030, 1031, 1032, 1033, 1041, 1046,
- 1051, 1059, 1064, 1065, 1066, 1075, 1077, 1082, 1087, 1095,
- 1097, 1114, 1115, 1116, 1117, 1118, 1119, 1123, 1124, 1125,
- 1126, 1127, 1128, 1136, 1141, 1146, 1154, 1159, 1160, 1161,
- 1162, 1163, 1164, 1165, 1166, 1167, 1168, 1177, 1178, 1179,
- 1186, 1193, 1200, 1216, 1235, 1237, 1239, 1241, 1243, 1245,
- 1252, 1257, 1258, 1259, 1263, 1267, 1276, 1277, 1281, 1282,
- 1283, 1287, 1298, 1316, 1328, 1333, 1335, 1340, 1341, 1349,
- 1351, 1359, 1364, 1372, 1397, 1404, 1414, 1415, 1419, 1420,
- 1421, 1422, 1426, 1427, 1428, 1432, 1437, 1442, 1450, 1451,
- 1452, 1453, 1454, 1455, 1456, 1466, 1471, 1479, 1484, 1492,
- 1494, 1498, 1503, 1508, 1516, 1521, 1529, 1538, 1539, 1543,
- 1544, 1548, 1556, 1574, 1578, 1583, 1591, 1596, 1597, 1601,
- 1606, 1614, 1619, 1624, 1629, 1634, 1642, 1647, 1652, 1660,
- 1665, 1666, 1667, 1668, 1669
+ 0, 391, 391, 395, 396, 397, 412, 413, 414, 415,
+ 416, 417, 418, 419, 420, 421, 422, 423, 424, 425,
+ 433, 443, 444, 445, 446, 447, 451, 452, 457, 462,
+ 464, 470, 471, 479, 480, 481, 485, 490, 491, 492,
+ 493, 494, 495, 496, 497, 498, 502, 504, 509, 510,
+ 511, 512, 513, 514, 518, 523, 532, 542, 543, 553,
+ 555, 557, 559, 570, 577, 579, 584, 586, 588, 590,
+ 592, 602, 608, 609, 617, 619, 631, 632, 633, 634,
+ 635, 644, 649, 654, 662, 664, 666, 668, 673, 674,
+ 675, 676, 677, 678, 679, 680, 681, 685, 686, 695,
+ 697, 706, 716, 721, 729, 730, 731, 732, 733, 734,
+ 735, 736, 741, 742, 750, 760, 769, 784, 789, 790,
+ 794, 795, 799, 800, 801, 802, 803, 804, 805, 814,
+ 818, 822, 830, 838, 846, 861, 876, 889, 890, 910,
+ 911, 919, 930, 931, 932, 933, 934, 935, 936, 937,
+ 938, 939, 940, 941, 942, 943, 944, 945, 946, 950,
+ 955, 963, 968, 969, 970, 974, 979, 987, 992, 993,
+ 994, 995, 996, 997, 998, 999, 1007, 1017, 1022, 1030,
+ 1032, 1034, 1043, 1045, 1050, 1051, 1052, 1056, 1057, 1058,
+ 1059, 1067, 1072, 1077, 1085, 1090, 1091, 1092, 1101, 1103,
+ 1108, 1113, 1121, 1123, 1140, 1141, 1142, 1143, 1144, 1145,
+ 1149, 1150, 1151, 1152, 1153, 1154, 1162, 1167, 1172, 1180,
+ 1185, 1186, 1187, 1188, 1189, 1190, 1191, 1192, 1193, 1194,
+ 1203, 1204, 1205, 1212, 1219, 1226, 1242, 1261, 1269, 1271,
+ 1273, 1275, 1277, 1279, 1281, 1288, 1293, 1294, 1295, 1299,
+ 1303, 1312, 1314, 1317, 1321, 1325, 1326, 1327, 1331, 1342,
+ 1360, 1373, 1374, 1379, 1405, 1406, 1411, 1416, 1418, 1423,
+ 1424, 1432, 1434, 1442, 1447, 1455, 1480, 1487, 1497, 1498,
+ 1502, 1503, 1504, 1505, 1509, 1510, 1511, 1515, 1520, 1525,
+ 1533, 1534, 1535, 1536, 1537, 1538, 1539, 1549, 1554, 1562,
+ 1567, 1575, 1577, 1581, 1586, 1591, 1599, 1604, 1612, 1621,
+ 1622, 1626, 1627, 1631, 1639, 1657, 1661, 1666, 1674, 1679,
+ 1680, 1684, 1689, 1697, 1702, 1707, 1712, 1717, 1725, 1730,
+ 1735, 1743, 1748, 1749, 1750, 1751, 1752
};
#endif
@@ -939,55 +959,57 @@
"T_Allpeers", "T_Auth", "T_Autokey", "T_Automax", "T_Average",
"T_Basedate", "T_Bclient", "T_Bcpollbstep", "T_Beacon", "T_Broadcast",
"T_Broadcastclient", "T_Broadcastdelay", "T_Burst", "T_Calibrate",
- "T_Ceiling", "T_Clockstats", "T_Cohort", "T_ControlKey", "T_Crypto",
- "T_Cryptostats", "T_Ctl", "T_Day", "T_Default", "T_Digest", "T_Disable",
- "T_Discard", "T_Dispersion", "T_Double", "T_Driftfile", "T_Drop",
- "T_Dscp", "T_Ellipsis", "T_Enable", "T_End", "T_Epeer", "T_False",
- "T_File", "T_Filegen", "T_Filenum", "T_Flag1", "T_Flag2", "T_Flag3",
- "T_Flag4", "T_Flake", "T_Floor", "T_Freq", "T_Fudge", "T_Host",
- "T_Huffpuff", "T_Iburst", "T_Ident", "T_Ignore", "T_Incalloc",
- "T_Incmem", "T_Initalloc", "T_Initmem", "T_Includefile", "T_Integer",
- "T_Interface", "T_Intrange", "T_Io", "T_Ippeerlimit", "T_Ipv4",
- "T_Ipv4_flag", "T_Ipv6", "T_Ipv6_flag", "T_Kernel", "T_Key", "T_Keys",
- "T_Keysdir", "T_Kod", "T_Mssntp", "T_Leapfile", "T_Leapsmearinterval",
- "T_Limited", "T_Link", "T_Listen", "T_Logconfig", "T_Logfile",
- "T_Loopstats", "T_Lowpriotrap", "T_Manycastclient", "T_Manycastserver",
- "T_Mask", "T_Maxage", "T_Maxclock", "T_Maxdepth", "T_Maxdist",
- "T_Maxmem", "T_Maxpoll", "T_Mdnstries", "T_Mem", "T_Memlock",
- "T_Minclock", "T_Mindepth", "T_Mindist", "T_Minimum", "T_Minpoll",
- "T_Minsane", "T_Mode", "T_Mode7", "T_Monitor", "T_Month", "T_Mru",
- "T_Multicastclient", "T_Nic", "T_Nolink", "T_Nomodify", "T_Nomrulist",
- "T_None", "T_Nonvolatile", "T_Noepeer", "T_Nopeer", "T_Noquery",
- "T_Noselect", "T_Noserve", "T_Notrap", "T_Notrust", "T_Ntp", "T_Ntpport",
+ "T_Ceiling", "T_Checkhash", "T_Clockstats", "T_Cohort", "T_ControlKey",
+ "T_Crypto", "T_Cryptostats", "T_Ctl", "T_Day", "T_Default", "T_Digest",
+ "T_Disable", "T_Discard", "T_Dispersion", "T_Double", "T_Driftfile",
+ "T_Drop", "T_Dscp", "T_Ellipsis", "T_Enable", "T_End", "T_Epeer",
+ "T_False", "T_File", "T_Filegen", "T_Filenum", "T_Flag1", "T_Flag2",
+ "T_Flag3", "T_Flag4", "T_Flake", "T_Floor", "T_Freq", "T_Fudge",
+ "T_Fuzz", "T_Host", "T_Huffpuff", "T_Iburst", "T_Ident", "T_Ignore",
+ "T_Ignorehash", "T_Incalloc", "T_Incmem", "T_Initalloc", "T_Initmem",
+ "T_Includefile", "T_Integer", "T_Interface", "T_Intrange", "T_Io",
+ "T_Ippeerlimit", "T_Ipv4", "T_Ipv4_flag", "T_Ipv6", "T_Ipv6_flag",
+ "T_Kernel", "T_Key", "T_Keys", "T_Keysdir", "T_Kod", "T_Leapfile",
+ "T_Leapsmearinterval", "T_Limited", "T_Link", "T_Listen", "T_Logconfig",
+ "T_Logfile", "T_Loopstats", "T_Lowpriotrap", "T_Manycastclient",
+ "T_Manycastserver", "T_Mask", "T_Maxage", "T_Maxclock", "T_Maxdepth",
+ "T_Maxdist", "T_Maxmem", "T_Maxpoll", "T_Mdnstries", "T_Mem",
+ "T_Memlock", "T_Minclock", "T_Mindepth", "T_Mindist", "T_Minimum",
+ "T_Minjitter", "T_Minpoll", "T_Minsane", "T_Mode", "T_Mode7",
+ "T_Monitor", "T_Month", "T_Mru", "T_Mssntp", "T_Multicastclient",
+ "T_Nic", "T_Nolink", "T_Nomodify", "T_Nomrulist", "T_None",
+ "T_Nonvolatile", "T_Noepeer", "T_Nopeer", "T_Noquery", "T_Noselect",
+ "T_Noserve", "T_Notrap", "T_Notrust", "T_Ntp", "T_Ntpport",
"T_NtpSignDsocket", "T_Orphan", "T_Orphanwait", "T_PCEdigest", "T_Panic",
- "T_Peer", "T_Peerstats", "T_Phone", "T_Pid", "T_Pidfile", "T_Pool",
- "T_Port", "T_Preempt", "T_Prefer", "T_Protostats", "T_Pw", "T_Randfile",
- "T_Rawstats", "T_Refid", "T_Requestkey", "T_Reset", "T_Restrict",
- "T_Revoke", "T_Rlimit", "T_Saveconfigdir", "T_Server", "T_Setvar",
- "T_Source", "T_Stacksize", "T_Statistics", "T_Stats", "T_Statsdir",
- "T_Step", "T_Stepback", "T_Stepfwd", "T_Stepout", "T_Stratum",
- "T_String", "T_Sys", "T_Sysstats", "T_Tick", "T_Time1", "T_Time2",
- "T_Timer", "T_Timingstats", "T_Tinker", "T_Tos", "T_Trap", "T_True",
- "T_Trustedkey", "T_Ttl", "T_Type", "T_U_int", "T_UEcrypto",
- "T_UEcryptonak", "T_UEdigest", "T_Unconfig", "T_Unpeer", "T_Version",
- "T_WanderThreshold", "T_Week", "T_Wildcard", "T_Xleave", "T_Year",
- "T_Flag", "T_EOC", "T_Simulate", "T_Beep_Delay", "T_Sim_Duration",
- "T_Server_Offset", "T_Duration", "T_Freq_Offset", "T_Wander", "T_Jitter",
- "T_Prop_Delay", "T_Proc_Delay", "'='", "'('", "')'", "'{'", "'}'",
- "$accept", "configuration", "command_list", "command", "server_command",
- "client_type", "address", "ip_address", "address_fam", "option_list",
- "option", "option_flag", "option_flag_keyword", "option_int",
- "option_int_keyword", "option_str", "option_str_keyword",
- "unpeer_command", "unpeer_keyword", "other_mode_command",
- "authentication_command", "crypto_command_list", "crypto_command",
- "crypto_str_keyword", "orphan_mode_command", "tos_option_list",
- "tos_option", "tos_option_int_keyword", "tos_option_dbl_keyword",
- "monitoring_command", "stats_list", "stat", "filegen_option_list",
- "filegen_option", "link_nolink", "enable_disable", "filegen_type",
- "access_control_command", "res_ippeerlimit", "ac_flag_list",
- "access_control_flag", "discard_option_list", "discard_option",
- "discard_option_keyword", "mru_option_list", "mru_option",
- "mru_option_keyword", "fudge_command", "fudge_factor_list",
+ "T_Peer", "T_Peerstats", "T_Phone", "T_Pid", "T_Pidfile", "T_Poll",
+ "T_PollSkewList", "T_Pool", "T_Port", "T_Preempt", "T_Prefer",
+ "T_Protostats", "T_Pw", "T_Randfile", "T_Rawstats", "T_Refid",
+ "T_Requestkey", "T_Reset", "T_Restrict", "T_Revoke", "T_Rlimit",
+ "T_Saveconfigdir", "T_Server", "T_Serverresponse",
+ "T_ServerresponseFuzz", "T_Setvar", "T_Source", "T_Stacksize",
+ "T_Statistics", "T_Stats", "T_Statsdir", "T_Step", "T_Stepback",
+ "T_Stepfwd", "T_Stepout", "T_Stratum", "T_String", "T_Sys", "T_Sysstats",
+ "T_Tick", "T_Time1", "T_Time2", "T_Timer", "T_Timingstats", "T_Tinker",
+ "T_Tos", "T_Trap", "T_True", "T_Trustedkey", "T_Ttl", "T_Type",
+ "T_U_int", "T_UEcrypto", "T_UEcryptonak", "T_UEdigest", "T_Unconfig",
+ "T_Unpeer", "T_Version", "T_WanderThreshold", "T_Week", "T_Wildcard",
+ "T_Xleave", "T_Xmtnonce", "T_Year", "T_Flag", "T_EOC", "T_Simulate",
+ "T_Beep_Delay", "T_Sim_Duration", "T_Server_Offset", "T_Duration",
+ "T_Freq_Offset", "T_Wander", "T_Jitter", "T_Prop_Delay", "T_Proc_Delay",
+ "'|'", "'='", "'('", "')'", "'{'", "'}'", "$accept", "configuration",
+ "command_list", "command", "server_command", "client_type", "address",
+ "ip_address", "address_fam", "option_list", "option", "option_flag",
+ "option_flag_keyword", "option_int", "option_int_keyword", "option_str",
+ "option_str_keyword", "unpeer_command", "unpeer_keyword",
+ "other_mode_command", "authentication_command", "crypto_command_list",
+ "crypto_command", "crypto_str_keyword", "orphan_mode_command",
+ "tos_option_list", "tos_option", "tos_option_int_keyword",
+ "tos_option_dbl_keyword", "monitoring_command", "stats_list", "stat",
+ "filegen_option_list", "filegen_option", "link_nolink", "enable_disable",
+ "filegen_type", "access_control_command", "res_ippeerlimit",
+ "ac_flag_list", "access_control_flag", "discard_option_list",
+ "discard_option", "discard_option_keyword", "mru_option_list",
+ "mru_option", "mru_option_keyword", "fudge_command", "fudge_factor_list",
"fudge_factor", "fudge_factor_dbl_keyword", "fudge_factor_bool_keyword",
"rlimit_command", "rlimit_option_list", "rlimit_option",
"rlimit_option_keyword", "system_option_command", "system_option_list",
@@ -995,7 +1017,8 @@
"system_option_local_flag_keyword", "tinker_command",
"tinker_option_list", "tinker_option", "tinker_option_keyword",
"miscellaneous_command", "misc_cmd_dbl_keyword", "misc_cmd_int_keyword",
- "misc_cmd_str_keyword", "misc_cmd_str_lcl_keyword", "drift_parm",
+ "opt_hash_check", "misc_cmd_str_keyword", "misc_cmd_str_lcl_keyword",
+ "drift_parm", "pollskew_list", "pollskew_spec", "pollskew_cycle",
"variable_assign", "t_default_or_zero", "trap_option_list",
"trap_option", "log_config_list", "log_config_command",
"interface_command", "interface_nic", "nic_rule_class",
@@ -1035,14 +1058,15 @@
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, 61, 40, 41, 123, 125
+ 455, 456, 457, 458, 459, 460, 461, 462, 463, 464,
+ 465, 466, 124, 61, 40, 41, 123, 125
};
# endif
-#define YYPACT_NINF -215
+#define YYPACT_NINF -261
#define yypact_value_is_default(Yystate) \
- (!!((Yystate) == (-215)))
+ (!!((Yystate) == (-261)))
#define YYTABLE_NINF -7
@@ -1053,50 +1077,52 @@
STATE-NUM. */
static const yytype_int16 yypact[] =
{
- 11, -175, 2, -215, -215, -215, 3, -215, 93, 9,
- -138, -215, 93, -215, 66, -40, -215, -93, -215, -87,
- -82, -215, -215, -81, -215, -215, -40, 20, 210, -40,
- -215, -215, -70, -215, -67, -215, -215, 34, 6, -13,
- 47, -6, -215, -215, -48, 66, -45, -215, 412, 483,
- -39, -60, 62, -215, -215, -215, 127, 203, -63, -215,
- -40, -215, -40, -215, -215, -215, -215, -215, -215, -215,
- -215, -215, -215, -11, 75, -24, -22, -215, -18, -215,
- -215, -53, -215, -215, -215, 48, -215, -215, -215, -215,
- -215, -215, -215, -215, -215, -215, -215, -215, 93, -215,
- -215, -215, -215, -215, -215, 9, -215, 82, 120, -215,
- 93, -215, -215, -215, -215, -215, -215, -215, -215, -215,
- -215, -215, -215, 86, -215, 4, 373, -215, -215, -215,
- -81, -215, -215, -40, -215, -215, -215, -215, -215, -215,
- -215, -215, -215, 210, -215, 106, -40, -215, -215, 15,
- -215, -215, -215, -215, -215, -215, -215, -215, 6, -215,
- 105, 146, 151, 105, -30, -215, -215, -215, -215, -6,
- -215, 117, -21, -215, 66, -215, -215, -215, -215, -215,
- -215, -215, -215, -215, -215, -215, -215, 412, -215, -11,
- 22, -215, -215, -215, -20, -215, -215, -215, -215, -215,
- -215, -215, -215, 483, -215, 128, -11, -215, -215, -215,
- 129, -60, -215, -215, -215, 132, -215, 10, -215, -215,
- -215, -215, -215, -215, -215, -215, -215, -215, -215, -215,
- 1, -133, -215, -215, -215, -215, -215, 134, -215, 41,
- -215, -215, -215, -215, -28, 42, -215, -215, -215, -215,
- 45, 148, -215, -215, 86, -215, -11, -20, -215, -215,
- -215, -215, -215, -215, -215, -215, 150, -215, 105, 105,
- -215, -39, -215, -215, -215, 51, -215, -215, -215, -215,
- -215, -215, -215, -215, -215, -215, -215, -57, 178, -215,
- -215, -215, 288, -215, -215, -215, -215, -215, -215, -215,
- -215, -115, 25, 23, -215, -215, -215, -215, 61, -215,
- -215, 21, -215, -215, -215, -215, -215, -215, -215, -215,
- -215, -215, 477, -215, -215, 477, 105, 477, 201, -39,
- 169, -215, 172, -215, -215, -215, -215, -215, -215, -215,
- -215, -215, -215, -215, -215, -215, -215, -215, -215, -215,
- -215, -215, -59, -215, 77, 36, 52, -100, -215, 39,
- -215, -11, -215, -215, -215, -215, -215, -215, -215, -215,
- -215, -215, -215, -215, -215, -215, -215, -215, -215, -215,
- -215, -215, -215, -215, -215, -215, -215, -215, -215, 477,
- 477, -215, -215, -215, -215, -215, 43, -215, -215, -215,
- -40, -215, -215, -215, 55, -215, 477, -215, -215, 49,
- 56, -11, 54, -166, -215, 67, -11, -215, -215, -215,
- 70, 63, -215, -215, -215, -215, -215, 124, 85, 64,
- -215, 89, -215, -11, -215, -215
+ 19, -163, -36, -261, -261, -261, -25, -261, 326, 77,
+ -125, -261, 326, -261, 16, -45, -261, -119, -261, -103,
+ -100, -98, -261, -95, -261, -261, -45, 13, 238, -45,
+ -261, -261, -88, -261, -86, -261, -261, -261, 22, 109,
+ -8, 23, -38, -261, -261, -81, 16, -80, -261, 443,
+ 607, -73, -58, 35, -261, -261, -261, 103, 229, -90,
+ -261, -45, -261, -45, -261, -261, -261, -261, -261, -261,
+ -261, -261, -261, -261, -9, 45, -53, -51, -261, -19,
+ -261, -261, -102, -261, -261, -261, 82, -261, -261, -261,
+ -261, -261, -261, -261, -261, -261, -261, -261, -261, 326,
+ -261, -261, -261, -261, -261, -261, 77, -261, 55, 91,
+ -261, 326, -261, -261, -261, -261, -261, -261, -261, -261,
+ -261, -261, -261, -261, 46, -261, -42, 407, -261, -261,
+ -11, -261, -95, -261, -261, -45, -261, -261, -261, -261,
+ -261, -261, -261, -261, -261, 238, -261, 64, -45, -261,
+ -261, -28, -13, -261, -261, -261, -261, -261, -261, -261,
+ -261, 109, -261, 74, 118, 119, 74, -31, -261, -261,
+ -261, -261, -38, -261, 93, -55, -261, 16, -261, -261,
+ -261, -261, -261, -261, -261, -261, -261, -261, -261, -261,
+ 443, -261, -9, -7, -261, -261, -261, -40, -261, -261,
+ -261, -261, -261, -261, -261, -261, 607, -261, 100, -9,
+ -261, -261, -261, 101, -58, -261, -261, -261, 102, -261,
+ -23, -261, -261, -261, -261, -261, -261, -261, -261, -261,
+ -261, -261, -261, 9, -170, -261, -261, -261, -261, -261,
+ 122, -261, -2, -261, -261, -261, -261, 107, 14, -261,
+ -261, -261, -261, -261, 20, 126, -261, -261, 46, -261,
+ -9, -40, -261, -261, -261, -261, -261, -261, -261, -261,
+ -261, -261, -261, -261, -261, 129, -261, 139, -261, 74,
+ 74, -261, -73, -261, -261, -261, 36, -261, -261, -261,
+ -261, -261, -261, -261, -261, -261, -261, -261, -62, 168,
+ -261, -261, -261, 410, -261, -261, -261, -261, -261, -261,
+ -261, -261, -96, 17, 6, -261, -261, -261, -261, 61,
+ -261, -261, 3, -261, -261, -261, -261, -261, -261, -261,
+ -261, -261, 24, -261, 534, -261, -261, 534, 74, 534,
+ 204, -73, 173, -261, 174, -261, -261, -261, -261, -261,
+ -261, -261, -261, -261, -261, -261, -261, -261, -261, -261,
+ -261, -261, -261, -261, -261, -63, -261, 70, 31, 47,
+ -146, -261, 33, -261, -9, -261, -261, -261, -261, -261,
+ -261, -261, -261, -261, 183, -261, -261, -261, -261, -261,
+ -261, -261, -261, -261, -261, -261, -261, -261, -261, -261,
+ -261, 196, -261, -261, 534, 534, -261, -261, -261, -261,
+ -261, 37, -261, -261, -261, -45, -261, -261, -261, 48,
+ -261, -261, -261, 534, -261, -261, 43, 51, -9, 50,
+ -193, -261, 57, -9, -261, -261, -261, 52, 5, -261,
+ -261, -261, -261, -261, 18, 58, 53, -261, 63, -261,
+ -9, -261, -261
};
/* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM.
@@ -1104,82 +1130,86 @@
means the default is an error. */
static const yytype_uint16 yydefact[] =
{
- 0, 0, 0, 24, 58, 241, 0, 71, 0, 0,
- 253, 244, 0, 234, 0, 0, 246, 0, 266, 0,
- 0, 247, 245, 0, 248, 25, 0, 0, 0, 0,
- 267, 242, 0, 23, 0, 249, 22, 0, 0, 0,
- 0, 0, 250, 21, 0, 0, 0, 243, 0, 0,
- 0, 0, 0, 56, 57, 303, 0, 2, 0, 7,
- 0, 8, 0, 9, 10, 13, 11, 12, 14, 15,
- 16, 17, 18, 0, 0, 0, 0, 227, 0, 228,
- 19, 0, 5, 62, 63, 64, 201, 202, 203, 204,
- 207, 205, 206, 208, 209, 210, 211, 212, 196, 198,
- 199, 200, 160, 161, 162, 128, 158, 0, 251, 235,
- 195, 103, 104, 105, 106, 110, 107, 108, 109, 111,
- 29, 30, 28, 0, 26, 0, 6, 65, 66, 263,
- 236, 262, 295, 59, 61, 166, 167, 168, 169, 170,
- 171, 172, 173, 129, 164, 0, 60, 70, 293, 237,
- 67, 278, 279, 280, 281, 282, 283, 284, 275, 277,
- 136, 29, 30, 136, 136, 68, 194, 192, 193, 188,
- 190, 0, 0, 238, 98, 102, 99, 217, 218, 219,
- 220, 221, 222, 223, 224, 225, 226, 213, 215, 0,
- 0, 87, 88, 89, 0, 90, 91, 97, 92, 96,
- 93, 94, 95, 80, 82, 0, 0, 86, 257, 289,
- 0, 69, 288, 290, 286, 240, 1, 0, 4, 31,
- 55, 300, 299, 229, 230, 231, 232, 274, 273, 272,
- 0, 0, 79, 75, 76, 77, 78, 0, 72, 0,
- 197, 157, 159, 252, 100, 0, 184, 185, 186, 187,
- 0, 0, 182, 183, 174, 176, 0, 0, 27, 233,
- 261, 294, 163, 165, 292, 276, 0, 138, 136, 136,
- 138, 0, 138, 189, 191, 0, 101, 214, 216, 301,
- 298, 296, 297, 85, 81, 83, 84, 239, 0, 287,
- 285, 3, 20, 268, 269, 270, 265, 271, 264, 307,
- 308, 0, 0, 0, 74, 73, 120, 119, 0, 117,
- 118, 0, 112, 115, 116, 180, 181, 179, 175, 177,
- 178, 137, 132, 138, 138, 135, 136, 130, 256, 0,
- 0, 258, 0, 37, 38, 39, 54, 47, 49, 48,
- 51, 40, 41, 42, 43, 50, 52, 44, 32, 33,
- 36, 34, 0, 35, 0, 0, 0, 0, 310, 0,
- 305, 0, 113, 127, 123, 125, 121, 122, 124, 126,
- 114, 140, 141, 142, 143, 144, 145, 146, 148, 149,
- 147, 150, 151, 152, 153, 154, 155, 156, 139, 133,
- 134, 138, 255, 254, 260, 259, 0, 45, 46, 53,
- 0, 304, 302, 309, 0, 306, 131, 291, 313, 0,
- 0, 0, 0, 0, 315, 0, 0, 311, 314, 312,
- 0, 0, 320, 321, 322, 323, 324, 0, 0, 0,
- 316, 0, 318, 0, 317, 319
+ 0, 0, 0, 24, 59, 246, 0, 72, 0, 0,
+ 260, 249, 0, 238, 0, 0, 254, 0, 278, 0,
+ 0, 0, 250, 0, 255, 25, 0, 0, 0, 0,
+ 279, 247, 0, 23, 0, 256, 261, 22, 0, 0,
+ 0, 0, 0, 257, 21, 0, 0, 0, 248, 0,
+ 0, 0, 0, 0, 57, 58, 315, 0, 2, 0,
+ 7, 0, 8, 0, 9, 10, 13, 11, 12, 14,
+ 15, 16, 17, 18, 0, 0, 0, 0, 230, 0,
+ 231, 19, 0, 5, 63, 64, 65, 204, 205, 206,
+ 207, 210, 208, 209, 211, 212, 213, 214, 215, 199,
+ 201, 202, 203, 162, 163, 164, 129, 160, 0, 258,
+ 239, 198, 104, 105, 106, 107, 111, 108, 109, 110,
+ 112, 29, 30, 28, 0, 26, 0, 6, 66, 67,
+ 253, 275, 240, 274, 307, 60, 62, 168, 169, 170,
+ 171, 172, 173, 174, 175, 130, 166, 0, 61, 71,
+ 305, 241, 242, 68, 290, 291, 292, 293, 294, 295,
+ 296, 287, 289, 137, 29, 30, 137, 137, 69, 197,
+ 195, 196, 191, 193, 0, 0, 243, 99, 103, 100,
+ 220, 221, 222, 223, 224, 225, 226, 227, 228, 229,
+ 216, 218, 0, 0, 88, 89, 90, 0, 91, 92,
+ 98, 93, 97, 94, 95, 96, 81, 83, 0, 0,
+ 87, 269, 301, 0, 70, 300, 302, 298, 245, 1,
+ 0, 4, 31, 56, 312, 311, 232, 233, 234, 235,
+ 286, 285, 284, 0, 0, 80, 76, 77, 78, 79,
+ 0, 73, 0, 200, 159, 161, 259, 101, 0, 187,
+ 188, 189, 190, 186, 0, 0, 184, 185, 176, 178,
+ 0, 0, 27, 236, 252, 251, 237, 273, 306, 165,
+ 167, 304, 265, 264, 262, 0, 288, 0, 139, 137,
+ 137, 139, 0, 139, 192, 194, 0, 102, 217, 219,
+ 313, 310, 308, 309, 86, 82, 84, 85, 244, 0,
+ 299, 297, 3, 20, 280, 281, 282, 277, 283, 276,
+ 319, 320, 0, 0, 0, 75, 74, 121, 120, 0,
+ 118, 119, 0, 113, 116, 117, 182, 183, 181, 177,
+ 179, 180, 0, 138, 133, 139, 139, 136, 137, 131,
+ 268, 0, 0, 270, 0, 37, 38, 39, 55, 48,
+ 50, 49, 52, 40, 41, 42, 43, 51, 53, 44,
+ 45, 32, 33, 36, 34, 0, 35, 0, 0, 0,
+ 0, 322, 0, 317, 0, 114, 128, 124, 126, 122,
+ 123, 125, 127, 115, 0, 142, 143, 144, 145, 146,
+ 147, 148, 150, 151, 149, 152, 153, 154, 155, 156,
+ 157, 0, 158, 140, 134, 135, 139, 267, 266, 272,
+ 271, 0, 46, 47, 54, 0, 316, 314, 321, 0,
+ 318, 263, 141, 132, 303, 325, 0, 0, 0, 0,
+ 0, 327, 0, 0, 323, 326, 324, 0, 0, 332,
+ 333, 334, 335, 336, 0, 0, 0, 328, 0, 330,
+ 0, 329, 331
};
/* YYPGOTO[NTERM-NUM]. */
static const yytype_int16 yypgoto[] =
{
- -215, -215, -215, -23, -215, -215, -15, -49, -215, -215,
- -215, -215, -215, -215, -215, -215, -215, -215, -215, -215,
- -215, -215, -215, -215, -215, -215, 81, -215, -215, -215,
- -215, -38, -215, -215, -215, -215, -215, -215, -154, -214,
- -215, -215, 153, -215, -215, 142, -215, -215, -215, 32,
- -215, -215, -215, -215, 121, -215, -215, 277, -35, -215,
- -215, -215, -215, 107, -215, -215, -215, -215, -215, -215,
- -215, -215, -215, -215, -215, -215, 163, -215, -215, -215,
- -215, -215, -215, 137, -215, -215, 87, -215, -215, 267,
- 53, -187, -215, -215, -215, -215, -2, -215, -215, -55,
- -215, -215, -215, -109, -215, -121, -215
+ -261, -261, -261, -48, -261, -261, -15, -50, -261, -261,
+ -261, -261, -261, -261, -261, -261, -261, -261, -261, -261,
+ -261, -261, -261, -261, -261, -261, 65, -261, -261, -261,
+ -261, -41, -261, -261, -261, -261, -261, -261, -151, -260,
+ -261, -261, 166, -261, -261, 128, -261, -261, -261, 21,
+ -261, -261, -261, -261, 104, -261, -261, 263, -43, -261,
+ -261, -261, -261, 87, -261, -261, -261, -261, -261, -261,
+ -261, -261, -261, -261, -261, -261, -261, -261, -261, -261,
+ 146, -261, -261, -261, -261, -261, -261, 120, -261, -261,
+ 66, -261, -261, 255, 25, -190, -261, -261, -261, -261,
+ -27, -261, -261, -78, -261, -261, -261, -141, -261, -154,
+ -261
};
/* YYDEFGOTO[NTERM-NUM]. */
static const yytype_int16 yydefgoto[] =
{
- -1, 56, 57, 58, 59, 60, 132, 124, 125, 292,
- 348, 349, 350, 351, 352, 353, 354, 61, 62, 63,
- 64, 85, 238, 239, 65, 203, 204, 205, 206, 66,
- 174, 119, 244, 312, 313, 314, 370, 67, 267, 322,
- 388, 105, 106, 107, 143, 144, 145, 68, 254, 255,
- 256, 257, 69, 169, 170, 171, 70, 98, 99, 100,
- 101, 71, 187, 188, 189, 72, 73, 74, 75, 76,
- 109, 173, 393, 287, 331, 130, 131, 77, 78, 298,
- 230, 79, 158, 159, 215, 211, 212, 213, 149, 133,
- 283, 223, 207, 80, 81, 301, 302, 303, 357, 358,
- 410, 359, 413, 414, 427, 428, 429
+ -1, 57, 58, 59, 60, 61, 134, 125, 126, 303,
+ 361, 362, 363, 364, 365, 366, 367, 62, 63, 64,
+ 65, 86, 241, 242, 66, 206, 207, 208, 209, 67,
+ 177, 120, 247, 323, 324, 325, 383, 68, 278, 334,
+ 403, 106, 107, 108, 145, 146, 147, 69, 258, 259,
+ 260, 261, 70, 172, 173, 174, 71, 99, 100, 101,
+ 102, 72, 190, 191, 192, 73, 74, 75, 266, 76,
+ 77, 110, 152, 274, 275, 176, 408, 298, 343, 132,
+ 133, 78, 79, 309, 233, 80, 161, 162, 218, 214,
+ 215, 216, 151, 135, 294, 226, 210, 81, 82, 312,
+ 313, 314, 370, 371, 427, 372, 430, 431, 444, 445,
+ 446
};
/* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM. If
@@ -1187,144 +1217,160 @@
number is the opposite. If YYTABLE_NINF, syntax error. */
static const yytype_int16 yytable[] =
{
- 123, 208, 278, 306, 209, 397, 293, 175, 329, 270,
- 272, 307, 1, 151, 152, 308, 160, 82, 227, 286,
- 102, 2, 280, 221, 164, 363, 108, 3, 4, 5,
- 120, 412, 121, 153, 217, 6, 7, 355, 266, 166,
- 228, 417, 8, 9, 281, 219, 10, 220, 11, 364,
- 12, 13, 355, 222, 309, 14, 325, 161, 327, 162,
- 271, 299, 300, 240, 15, 229, 83, 84, 16, 319,
- 294, 126, 295, 154, 17, 240, 18, 127, 232, 299,
- 300, 330, 128, 129, 134, 310, 19, 20, 111, 245,
- 21, 22, 112, 167, 147, 23, 24, 148, 150, 25,
- 26, 86, 233, 259, 155, 234, 87, 402, 27, 389,
- 390, 165, 103, 88, 323, 324, 172, 104, 261, 176,
- 398, 28, 29, 30, 122, 122, 214, 216, 31, 218,
- 365, 261, 246, 247, 248, 249, 276, 366, 32, 224,
- 225, 163, 226, 33, 210, 34, 242, 35, 36, 168,
- 311, 122, 113, 231, 243, 282, 367, 37, 38, 39,
- 40, 41, 42, 43, 44, 296, 89, 45, 258, 46,
- 263, 156, 391, 266, 405, 268, 157, 406, 47, 264,
- 269, 274, 275, 48, 49, 50, 279, 51, 52, 297,
- 235, 236, 285, 288, 53, 54, 290, 237, 304, 114,
- 90, 91, 291, -6, 55, 305, 315, 115, 368, 316,
- 116, 369, 317, 2, 321, 328, 332, 360, 92, 3,
- 4, 5, 326, 93, 415, 362, 361, 6, 7, 420,
- 392, 250, 117, 395, 8, 9, 396, 118, 10, 400,
- 11, 399, 12, 13, 401, 404, 435, 14, 407, 251,
- 94, 409, 411, 412, 252, 253, 15, 416, 241, 419,
- 16, 422, 423, 424, 425, 426, 17, 433, 18, 135,
- 136, 137, 138, 95, 96, 97, 421, 432, 19, 20,
- 394, 434, 21, 22, 284, 262, 318, 23, 24, 110,
- 273, 25, 26, 260, 277, 265, 146, 333, 289, 356,
- 27, 139, 403, 140, 418, 141, 431, 334, 0, 0,
- 320, 142, 0, 28, 29, 30, 0, 0, 0, 0,
- 31, 0, 422, 423, 424, 425, 426, 0, 0, 0,
- 32, 430, 0, 0, 0, 33, 0, 34, 0, 35,
- 36, 0, 0, 0, 335, 336, 0, 0, 0, 37,
- 38, 39, 40, 41, 42, 43, 44, 0, 0, 45,
- 0, 46, 337, 0, 0, 0, 0, 0, 0, 0,
- 47, 0, 0, 0, 0, 48, 49, 50, 0, 51,
- 52, 0, 0, 2, 338, 408, 53, 54, 0, 3,
- 4, 5, 339, 0, 340, -6, 55, 6, 7, 0,
- 0, 0, 0, 0, 8, 9, 0, 0, 10, 341,
- 11, 0, 12, 13, 0, 0, 0, 14, 177, 0,
- 0, 0, 0, 0, 0, 0, 15, 342, 343, 0,
- 16, 0, 0, 0, 0, 0, 17, 0, 18, 0,
- 0, 0, 0, 0, 0, 178, 0, 0, 19, 20,
- 0, 0, 21, 22, 0, 0, 0, 23, 24, 0,
- 0, 25, 26, 344, 179, 345, 0, 180, 0, 0,
- 27, 0, 0, 346, 0, 0, 0, 347, 0, 0,
- 0, 0, 0, 28, 29, 30, 0, 0, 0, 0,
- 31, 0, 0, 0, 0, 190, 0, 191, 192, 0,
- 32, 0, 0, 0, 193, 33, 194, 34, 0, 35,
- 36, 0, 0, 0, 0, 0, 0, 0, 371, 37,
- 38, 39, 40, 41, 42, 43, 44, 372, 0, 45,
- 0, 46, 0, 0, 195, 373, 0, 0, 0, 0,
- 47, 0, 0, 181, 0, 48, 49, 50, 0, 51,
- 52, 0, 0, 0, 374, 375, 53, 54, 376, 0,
- 0, 0, 0, 0, 377, 0, 55, 0, 0, 0,
- 0, 182, 183, 184, 185, 196, 0, 197, 0, 186,
- 0, 0, 0, 198, 0, 199, 0, 0, 200, 0,
- 0, 378, 379, 0, 0, 380, 381, 382, 0, 383,
- 384, 385, 0, 386, 0, 0, 0, 0, 0, 0,
- 0, 201, 202, 0, 0, 0, 0, 0, 0, 0,
+ 124, 211, 289, 291, 412, 178, 341, 376, 169, 212,
+ 220, 264, 368, 429, 304, 281, 283, 272, 230, 297,
+ 1, 337, 163, 339, 434, 167, 224, 292, 121, 2,
+ 122, 84, 377, 310, 311, 3, 4, 5, 83, 112,
+ 277, 231, 85, 113, 6, 7, 222, 109, 223, 248,
+ 265, 8, 9, 127, 273, 10, 243, 11, 225, 12,
+ 13, 282, 368, 170, 14, 164, 232, 165, 243, 128,
+ 330, 417, 129, 15, 130, 404, 405, 131, 16, 263,
+ 136, 305, 342, 306, 149, 17, 150, 18, 103, 153,
+ 168, 175, 179, 249, 250, 251, 252, 19, 20, 123,
+ 21, 22, 217, 219, 114, 23, 24, 310, 311, 25,
+ 26, 221, 227, 235, 234, 378, 154, 155, 27, 228,
+ 268, 229, 245, 379, 413, 171, 246, 123, 335, 336,
+ 262, 270, 28, 268, 29, 30, 287, 156, 236, 317,
+ 31, 237, 380, 293, 271, 277, 423, 318, 279, 280,
+ 32, 319, 253, 115, 166, 33, 213, 34, 286, 35,
+ 285, 36, 37, 116, 123, 290, 117, 296, 299, 301,
+ 316, 38, 39, 40, 41, 42, 43, 44, 302, 157,
+ 45, 307, 104, 46, 420, 47, 326, 406, 105, 315,
+ 118, 320, 327, 328, 48, 119, 332, 254, 381, 49,
+ 50, 51, 382, 52, 53, 308, 333, 344, 340, 158,
+ 54, 55, 439, 440, 441, 442, 443, 255, 373, 374,
+ -6, 56, 256, 257, 321, 439, 440, 441, 442, 443,
+ 238, 239, 338, 375, 407, 447, 384, 240, 432, 2,
+ 410, 411, 414, 437, 415, 3, 4, 5, 416, 419,
+ 421, 422, 424, 426, 6, 7, 428, 429, 436, 449,
+ 452, 8, 9, 433, 451, 10, 450, 11, 438, 12,
+ 13, 295, 244, 269, 14, 111, 284, 288, 267, 329,
+ 300, 276, 159, 15, 148, 369, 331, 160, 16, 435,
+ 448, 409, 418, 322, 0, 17, 0, 18, 0, 0,
+ 137, 138, 139, 140, 0, 0, 0, 19, 20, 0,
+ 21, 22, 0, 0, 0, 23, 24, 0, 0, 25,
+ 26, 0, 0, 0, 0, 0, 0, 0, 27, 0,
+ 0, 141, 0, 142, 87, 143, 0, 0, 0, 88,
+ 0, 144, 28, 0, 29, 30, 89, 0, 0, 0,
+ 31, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 32, 0, 0, 0, 0, 33, 0, 34, 0, 35,
+ 0, 36, 37, 0, 0, 0, 0, 0, 0, 0,
+ 0, 38, 39, 40, 41, 42, 43, 44, 0, 0,
+ 45, 0, 0, 46, 0, 47, 0, 0, 0, 0,
+ 425, 0, 90, 0, 48, 0, 0, 0, 0, 49,
+ 50, 51, 0, 52, 53, 0, 0, 2, 0, 345,
+ 54, 55, 0, 3, 4, 5, 0, 0, 0, 346,
+ -6, 56, 6, 7, 0, 0, 91, 92, 0, 8,
+ 9, 0, 0, 10, 0, 11, 0, 12, 13, 180,
+ 0, 0, 14, 0, 0, 93, 0, 0, 0, 0,
+ 94, 15, 0, 0, 0, 0, 16, 0, 347, 348,
+ 0, 0, 0, 17, 0, 18, 0, 181, 0, 0,
+ 0, 0, 0, 0, 0, 19, 20, 349, 21, 22,
+ 0, 95, 0, 23, 24, 0, 182, 25, 26, 0,
+ 183, 0, 0, 0, 0, 0, 27, 0, 350, 0,
+ 0, 0, 0, 0, 96, 97, 98, 351, 0, 352,
+ 28, 0, 29, 30, 0, 0, 0, 0, 31, 0,
+ 0, 0, 0, 0, 0, 353, 0, 0, 32, 0,
+ 0, 0, 0, 33, 0, 34, 0, 35, 0, 36,
+ 37, 0, 0, 0, 0, 354, 355, 0, 0, 38,
+ 39, 40, 41, 42, 43, 44, 0, 0, 45, 0,
+ 0, 46, 0, 47, 0, 0, 385, 0, 184, 0,
+ 0, 0, 48, 0, 0, 386, 0, 49, 50, 51,
+ 0, 52, 53, 356, 387, 357, 0, 0, 54, 55,
+ 0, 0, 0, 358, 0, 0, 0, 359, 360, 56,
+ 185, 186, 187, 188, 388, 0, 0, 389, 189, 193,
+ 0, 194, 195, 390, 0, 0, 0, 0, 196, 0,
+ 0, 197, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 391, 0,
+ 0, 0, 392, 393, 0, 0, 394, 395, 396, 198,
+ 397, 398, 399, 0, 400, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 387
+ 0, 0, 0, 401, 0, 0, 0, 0, 0, 0,
+ 0, 199, 0, 200, 0, 0, 0, 0, 0, 201,
+ 0, 202, 0, 0, 0, 203, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 402, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 204,
+ 205
};
static const yytype_int16 yycheck[] =
{
- 15, 50, 189, 31, 64, 64, 5, 45, 65, 163,
- 164, 39, 1, 7, 8, 43, 29, 192, 36, 206,
- 11, 10, 42, 34, 39, 4, 164, 16, 17, 18,
- 70, 197, 72, 27, 57, 24, 25, 152, 68, 45,
- 58, 207, 31, 32, 64, 60, 35, 62, 37, 28,
- 39, 40, 152, 64, 82, 44, 270, 70, 272, 72,
- 90, 194, 195, 98, 53, 83, 64, 64, 57, 256,
- 69, 164, 71, 67, 63, 110, 65, 164, 30, 194,
- 195, 138, 164, 164, 64, 113, 75, 76, 22, 3,
- 79, 80, 26, 99, 164, 84, 85, 164, 64, 88,
- 89, 8, 54, 126, 98, 57, 13, 207, 97, 323,
- 324, 64, 103, 20, 268, 269, 164, 108, 133, 164,
- 179, 110, 111, 112, 164, 164, 64, 0, 117, 192,
- 109, 146, 46, 47, 48, 49, 174, 116, 127, 64,
- 164, 154, 164, 132, 204, 134, 64, 136, 137, 155,
- 178, 164, 86, 206, 34, 175, 135, 146, 147, 148,
- 149, 150, 151, 152, 153, 164, 73, 156, 164, 158,
- 64, 165, 326, 68, 361, 29, 170, 391, 167, 164,
- 29, 64, 203, 172, 173, 174, 164, 176, 177, 188,
- 142, 143, 64, 64, 183, 184, 64, 149, 64, 133,
- 107, 108, 192, 192, 193, 164, 164, 141, 187, 164,
- 144, 190, 64, 10, 64, 164, 38, 192, 125, 16,
- 17, 18, 271, 130, 411, 164, 203, 24, 25, 416,
- 29, 145, 166, 64, 31, 32, 64, 171, 35, 203,
- 37, 164, 39, 40, 192, 206, 433, 44, 205, 163,
- 157, 196, 203, 197, 168, 169, 53, 203, 105, 192,
- 57, 198, 199, 200, 201, 202, 63, 203, 65, 59,
- 60, 61, 62, 180, 181, 182, 206, 192, 75, 76,
- 329, 192, 79, 80, 203, 143, 254, 84, 85, 12,
- 169, 88, 89, 130, 187, 158, 29, 9, 211, 301,
- 97, 91, 357, 93, 413, 95, 427, 19, -1, -1,
- 257, 101, -1, 110, 111, 112, -1, -1, -1, -1,
- 117, -1, 198, 199, 200, 201, 202, -1, -1, -1,
- 127, 207, -1, -1, -1, 132, -1, 134, -1, 136,
- 137, -1, -1, -1, 56, 57, -1, -1, -1, 146,
- 147, 148, 149, 150, 151, 152, 153, -1, -1, 156,
- -1, 158, 74, -1, -1, -1, -1, -1, -1, -1,
- 167, -1, -1, -1, -1, 172, 173, 174, -1, 176,
- 177, -1, -1, 10, 96, 400, 183, 184, -1, 16,
- 17, 18, 104, -1, 106, 192, 193, 24, 25, -1,
- -1, -1, -1, -1, 31, 32, -1, -1, 35, 121,
- 37, -1, 39, 40, -1, -1, -1, 44, 6, -1,
- -1, -1, -1, -1, -1, -1, 53, 139, 140, -1,
- 57, -1, -1, -1, -1, -1, 63, -1, 65, -1,
- -1, -1, -1, -1, -1, 33, -1, -1, 75, 76,
- -1, -1, 79, 80, -1, -1, -1, 84, 85, -1,
- -1, 88, 89, 175, 52, 177, -1, 55, -1, -1,
- 97, -1, -1, 185, -1, -1, -1, 189, -1, -1,
- -1, -1, -1, 110, 111, 112, -1, -1, -1, -1,
- 117, -1, -1, -1, -1, 12, -1, 14, 15, -1,
- 127, -1, -1, -1, 21, 132, 23, 134, -1, 136,
- 137, -1, -1, -1, -1, -1, -1, -1, 41, 146,
- 147, 148, 149, 150, 151, 152, 153, 50, -1, 156,
- -1, 158, -1, -1, 51, 58, -1, -1, -1, -1,
- 167, -1, -1, 131, -1, 172, 173, 174, -1, 176,
- 177, -1, -1, -1, 77, 78, 183, 184, 81, -1,
- -1, -1, -1, -1, 87, -1, 193, -1, -1, -1,
- -1, 159, 160, 161, 162, 92, -1, 94, -1, 167,
- -1, -1, -1, 100, -1, 102, -1, -1, 105, -1,
- -1, 114, 115, -1, -1, 118, 119, 120, -1, 122,
- 123, 124, -1, 126, -1, -1, -1, -1, -1, -1,
- -1, 128, 129, -1, -1, -1, -1, -1, -1, -1,
+ 15, 51, 192, 43, 67, 46, 68, 4, 46, 67,
+ 58, 22, 158, 206, 5, 166, 167, 30, 37, 209,
+ 1, 281, 30, 283, 217, 40, 35, 67, 73, 10,
+ 75, 67, 29, 203, 204, 16, 17, 18, 201, 23,
+ 71, 60, 67, 27, 25, 26, 61, 172, 63, 3,
+ 61, 32, 33, 172, 67, 36, 99, 38, 67, 40,
+ 41, 92, 158, 101, 45, 73, 85, 75, 111, 172,
+ 260, 217, 172, 54, 172, 335, 336, 172, 59, 127,
+ 67, 72, 144, 74, 172, 66, 172, 68, 11, 67,
+ 67, 172, 172, 47, 48, 49, 50, 78, 79, 172,
+ 81, 82, 67, 0, 88, 86, 87, 203, 204, 90,
+ 91, 201, 67, 31, 216, 112, 7, 8, 99, 172,
+ 135, 172, 67, 120, 187, 163, 35, 172, 279, 280,
+ 172, 67, 113, 148, 115, 116, 177, 28, 56, 32,
+ 121, 59, 139, 183, 172, 71, 406, 40, 30, 30,
+ 131, 44, 106, 137, 162, 136, 214, 138, 213, 140,
+ 67, 142, 143, 147, 172, 172, 150, 67, 67, 67,
+ 172, 152, 153, 154, 155, 156, 157, 158, 201, 70,
+ 161, 172, 105, 164, 374, 166, 172, 338, 111, 67,
+ 174, 84, 172, 67, 175, 179, 67, 151, 195, 180,
+ 181, 182, 199, 184, 185, 196, 67, 39, 172, 100,
+ 191, 192, 207, 208, 209, 210, 211, 171, 201, 213,
+ 201, 202, 176, 177, 117, 207, 208, 209, 210, 211,
+ 148, 149, 282, 172, 30, 217, 212, 155, 428, 10,
+ 67, 67, 172, 433, 213, 16, 17, 18, 201, 216,
+ 67, 55, 215, 205, 25, 26, 213, 206, 201, 201,
+ 450, 32, 33, 213, 201, 36, 213, 38, 216, 40,
+ 41, 206, 106, 145, 45, 12, 172, 190, 132, 258,
+ 214, 161, 173, 54, 29, 312, 261, 178, 59, 430,
+ 444, 341, 370, 186, -1, 66, -1, 68, -1, -1,
+ 62, 63, 64, 65, -1, -1, -1, 78, 79, -1,
+ 81, 82, -1, -1, -1, 86, 87, -1, -1, 90,
+ 91, -1, -1, -1, -1, -1, -1, -1, 99, -1,
+ -1, 93, -1, 95, 8, 97, -1, -1, -1, 13,
+ -1, 103, 113, -1, 115, 116, 20, -1, -1, -1,
+ 121, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 131, -1, -1, -1, -1, 136, -1, 138, -1, 140,
+ -1, 142, 143, -1, -1, -1, -1, -1, -1, -1,
+ -1, 152, 153, 154, 155, 156, 157, 158, -1, -1,
+ 161, -1, -1, 164, -1, 166, -1, -1, -1, -1,
+ 415, -1, 76, -1, 175, -1, -1, -1, -1, 180,
+ 181, 182, -1, 184, 185, -1, -1, 10, -1, 9,
+ 191, 192, -1, 16, 17, 18, -1, -1, -1, 19,
+ 201, 202, 25, 26, -1, -1, 110, 111, -1, 32,
+ 33, -1, -1, 36, -1, 38, -1, 40, 41, 6,
+ -1, -1, 45, -1, -1, 129, -1, -1, -1, -1,
+ 134, 54, -1, -1, -1, -1, 59, -1, 58, 59,
+ -1, -1, -1, 66, -1, 68, -1, 34, -1, -1,
+ -1, -1, -1, -1, -1, 78, 79, 77, 81, 82,
+ -1, 165, -1, 86, 87, -1, 53, 90, 91, -1,
+ 57, -1, -1, -1, -1, -1, 99, -1, 98, -1,
+ -1, -1, -1, -1, 188, 189, 190, 107, -1, 109,
+ 113, -1, 115, 116, -1, -1, -1, -1, 121, -1,
+ -1, -1, -1, -1, -1, 125, -1, -1, 131, -1,
+ -1, -1, -1, 136, -1, 138, -1, 140, -1, 142,
+ 143, -1, -1, -1, -1, 145, 146, -1, -1, 152,
+ 153, 154, 155, 156, 157, 158, -1, -1, 161, -1,
+ -1, 164, -1, 166, -1, -1, 42, -1, 135, -1,
+ -1, -1, 175, -1, -1, 51, -1, 180, 181, 182,
+ -1, 184, 185, 183, 60, 185, -1, -1, 191, 192,
+ -1, -1, -1, 193, -1, -1, -1, 197, 198, 202,
+ 167, 168, 169, 170, 80, -1, -1, 83, 175, 12,
+ -1, 14, 15, 89, -1, -1, -1, -1, 21, -1,
+ -1, 24, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 114, -1,
+ -1, -1, 118, 119, -1, -1, 122, 123, 124, 52,
+ 126, 127, 128, -1, 130, -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, 185
+ -1, -1, -1, 159, -1, -1, -1, -1, -1, -1,
+ -1, 94, -1, 96, -1, -1, -1, -1, -1, 102,
+ -1, 104, -1, -1, -1, 108, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 193, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 132,
+ 133
};
/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
@@ -1331,88 +1377,91 @@
symbol of state STATE-NUM. */
static const yytype_uint16 yystos[] =
{
- 0, 1, 10, 16, 17, 18, 24, 25, 31, 32,
- 35, 37, 39, 40, 44, 53, 57, 63, 65, 75,
- 76, 79, 80, 84, 85, 88, 89, 97, 110, 111,
- 112, 117, 127, 132, 134, 136, 137, 146, 147, 148,
- 149, 150, 151, 152, 153, 156, 158, 167, 172, 173,
- 174, 176, 177, 183, 184, 193, 209, 210, 211, 212,
- 213, 225, 226, 227, 228, 232, 237, 245, 255, 260,
- 264, 269, 273, 274, 275, 276, 277, 285, 286, 289,
- 301, 302, 192, 64, 64, 229, 8, 13, 20, 73,
- 107, 108, 125, 130, 157, 180, 181, 182, 265, 266,
- 267, 268, 11, 103, 108, 249, 250, 251, 164, 278,
- 265, 22, 26, 86, 133, 141, 144, 166, 171, 239,
- 70, 72, 164, 214, 215, 216, 164, 164, 164, 164,
- 283, 284, 214, 297, 64, 59, 60, 61, 62, 91,
- 93, 95, 101, 252, 253, 254, 297, 164, 164, 296,
- 64, 7, 8, 27, 67, 98, 165, 170, 290, 291,
- 29, 70, 72, 154, 214, 64, 45, 99, 155, 261,
- 262, 263, 164, 279, 238, 239, 164, 6, 33, 52,
- 55, 131, 159, 160, 161, 162, 167, 270, 271, 272,
- 12, 14, 15, 21, 23, 51, 92, 94, 100, 102,
- 105, 128, 129, 233, 234, 235, 236, 300, 215, 64,
- 204, 293, 294, 295, 64, 292, 0, 211, 192, 214,
- 214, 34, 64, 299, 64, 164, 164, 36, 58, 83,
- 288, 206, 30, 54, 57, 142, 143, 149, 230, 231,
- 266, 250, 64, 34, 240, 3, 46, 47, 48, 49,
- 145, 163, 168, 169, 256, 257, 258, 259, 164, 211,
- 284, 214, 253, 64, 164, 291, 68, 246, 29, 29,
- 246, 90, 246, 262, 64, 203, 239, 271, 299, 164,
- 42, 64, 175, 298, 234, 64, 299, 281, 64, 294,
- 64, 192, 217, 5, 69, 71, 164, 188, 287, 194,
- 195, 303, 304, 305, 64, 164, 31, 39, 43, 82,
- 113, 178, 241, 242, 243, 164, 164, 64, 257, 299,
- 298, 64, 247, 246, 246, 247, 215, 247, 164, 65,
- 138, 282, 38, 9, 19, 56, 57, 74, 96, 104,
- 106, 121, 139, 140, 175, 177, 185, 189, 218, 219,
- 220, 221, 222, 223, 224, 152, 304, 306, 307, 309,
- 192, 203, 164, 4, 28, 109, 116, 135, 187, 190,
- 244, 41, 50, 58, 77, 78, 81, 87, 114, 115,
- 118, 119, 120, 122, 123, 124, 126, 185, 248, 247,
- 247, 246, 29, 280, 215, 64, 64, 64, 179, 164,
- 203, 192, 207, 307, 206, 299, 247, 205, 214, 196,
- 308, 203, 197, 310, 311, 299, 203, 207, 311, 192,
- 299, 206, 198, 199, 200, 201, 202, 312, 313, 314,
- 207, 313, 192, 203, 192, 299
+ 0, 1, 10, 16, 17, 18, 25, 26, 32, 33,
+ 36, 38, 40, 41, 45, 54, 59, 66, 68, 78,
+ 79, 81, 82, 86, 87, 90, 91, 99, 113, 115,
+ 116, 121, 131, 136, 138, 140, 142, 143, 152, 153,
+ 154, 155, 156, 157, 158, 161, 164, 166, 175, 180,
+ 181, 182, 184, 185, 191, 192, 202, 219, 220, 221,
+ 222, 223, 235, 236, 237, 238, 242, 247, 255, 265,
+ 270, 274, 279, 283, 284, 285, 287, 288, 299, 300,
+ 303, 315, 316, 201, 67, 67, 239, 8, 13, 20,
+ 76, 110, 111, 129, 134, 165, 188, 189, 190, 275,
+ 276, 277, 278, 11, 105, 111, 259, 260, 261, 172,
+ 289, 275, 23, 27, 88, 137, 147, 150, 174, 179,
+ 249, 73, 75, 172, 224, 225, 226, 172, 172, 172,
+ 172, 172, 297, 298, 224, 311, 67, 62, 63, 64,
+ 65, 93, 95, 97, 103, 262, 263, 264, 311, 172,
+ 172, 310, 290, 67, 7, 8, 28, 70, 100, 173,
+ 178, 304, 305, 30, 73, 75, 162, 224, 67, 46,
+ 101, 163, 271, 272, 273, 172, 293, 248, 249, 172,
+ 6, 34, 53, 57, 135, 167, 168, 169, 170, 175,
+ 280, 281, 282, 12, 14, 15, 21, 24, 52, 94,
+ 96, 102, 104, 108, 132, 133, 243, 244, 245, 246,
+ 314, 225, 67, 214, 307, 308, 309, 67, 306, 0,
+ 221, 201, 224, 224, 35, 67, 313, 67, 172, 172,
+ 37, 60, 85, 302, 216, 31, 56, 59, 148, 149,
+ 155, 240, 241, 276, 260, 67, 35, 250, 3, 47,
+ 48, 49, 50, 106, 151, 171, 176, 177, 266, 267,
+ 268, 269, 172, 221, 22, 61, 286, 298, 224, 263,
+ 67, 172, 30, 67, 291, 292, 305, 71, 256, 30,
+ 30, 256, 92, 256, 272, 67, 213, 249, 281, 313,
+ 172, 43, 67, 183, 312, 244, 67, 313, 295, 67,
+ 308, 67, 201, 227, 5, 72, 74, 172, 196, 301,
+ 203, 204, 317, 318, 319, 67, 172, 32, 40, 44,
+ 84, 117, 186, 251, 252, 253, 172, 172, 67, 267,
+ 313, 312, 67, 67, 257, 256, 256, 257, 225, 257,
+ 172, 68, 144, 296, 39, 9, 19, 58, 59, 77,
+ 98, 107, 109, 125, 145, 146, 183, 185, 193, 197,
+ 198, 228, 229, 230, 231, 232, 233, 234, 158, 318,
+ 320, 321, 323, 201, 213, 172, 4, 29, 112, 120,
+ 139, 195, 199, 254, 212, 42, 51, 60, 80, 83,
+ 89, 114, 118, 119, 122, 123, 124, 126, 127, 128,
+ 130, 159, 193, 258, 257, 257, 256, 30, 294, 225,
+ 67, 67, 67, 187, 172, 213, 201, 217, 321, 216,
+ 313, 67, 55, 257, 215, 224, 205, 322, 213, 206,
+ 324, 325, 313, 213, 217, 325, 201, 313, 216, 207,
+ 208, 209, 210, 211, 326, 327, 328, 217, 327, 201,
+ 213, 201, 313
};
/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
static const yytype_uint16 yyr1[] =
{
- 0, 208, 209, 210, 210, 210, 211, 211, 211, 211,
- 211, 211, 211, 211, 211, 211, 211, 211, 211, 211,
- 212, 213, 213, 213, 213, 213, 214, 214, 215, 216,
- 216, 217, 217, 218, 218, 218, 219, 220, 220, 220,
- 220, 220, 220, 220, 220, 221, 221, 222, 222, 222,
- 222, 222, 222, 223, 224, 225, 226, 226, 227, 227,
- 227, 227, 228, 228, 228, 228, 228, 228, 228, 228,
- 228, 229, 229, 230, 230, 231, 231, 231, 231, 231,
- 232, 233, 233, 234, 234, 234, 234, 235, 235, 235,
- 235, 235, 235, 235, 235, 235, 236, 236, 237, 237,
- 237, 238, 238, 239, 239, 239, 239, 239, 239, 239,
- 239, 240, 240, 241, 241, 241, 241, 242, 242, 243,
- 243, 244, 244, 244, 244, 244, 244, 244, 245, 245,
- 245, 245, 245, 245, 245, 245, 246, 246, 247, 247,
- 248, 248, 248, 248, 248, 248, 248, 248, 248, 248,
- 248, 248, 248, 248, 248, 248, 248, 249, 249, 250,
- 251, 251, 251, 252, 252, 253, 254, 254, 254, 254,
- 254, 254, 254, 254, 255, 256, 256, 257, 257, 257,
- 257, 257, 258, 258, 259, 259, 259, 259, 260, 261,
- 261, 262, 263, 263, 263, 264, 264, 265, 265, 266,
- 266, 267, 267, 267, 267, 267, 267, 268, 268, 268,
- 268, 268, 268, 269, 270, 270, 271, 272, 272, 272,
- 272, 272, 272, 272, 272, 272, 272, 273, 273, 273,
- 273, 273, 273, 273, 273, 273, 273, 273, 273, 273,
- 273, 274, 274, 274, 275, 275, 276, 276, 277, 277,
- 277, 278, 278, 278, 279, 280, 280, 281, 281, 282,
- 282, 283, 283, 284, 285, 285, 286, 286, 287, 287,
- 287, 287, 288, 288, 288, 289, 290, 290, 291, 291,
- 291, 291, 291, 291, 291, 292, 292, 293, 293, 294,
- 294, 295, 296, 296, 297, 297, 298, 298, 298, 299,
- 299, 300, 301, 302, 303, 303, 304, 305, 305, 306,
- 306, 307, 308, 309, 310, 310, 311, 312, 312, 313,
- 314, 314, 314, 314, 314
+ 0, 218, 219, 220, 220, 220, 221, 221, 221, 221,
+ 221, 221, 221, 221, 221, 221, 221, 221, 221, 221,
+ 222, 223, 223, 223, 223, 223, 224, 224, 225, 226,
+ 226, 227, 227, 228, 228, 228, 229, 230, 230, 230,
+ 230, 230, 230, 230, 230, 230, 231, 231, 232, 232,
+ 232, 232, 232, 232, 233, 234, 235, 236, 236, 237,
+ 237, 237, 237, 238, 238, 238, 238, 238, 238, 238,
+ 238, 238, 239, 239, 240, 240, 241, 241, 241, 241,
+ 241, 242, 243, 243, 244, 244, 244, 244, 245, 245,
+ 245, 245, 245, 245, 245, 245, 245, 246, 246, 247,
+ 247, 247, 248, 248, 249, 249, 249, 249, 249, 249,
+ 249, 249, 250, 250, 251, 251, 251, 251, 252, 252,
+ 253, 253, 254, 254, 254, 254, 254, 254, 254, 255,
+ 255, 255, 255, 255, 255, 255, 255, 256, 256, 257,
+ 257, 257, 258, 258, 258, 258, 258, 258, 258, 258,
+ 258, 258, 258, 258, 258, 258, 258, 258, 258, 259,
+ 259, 260, 261, 261, 261, 262, 262, 263, 264, 264,
+ 264, 264, 264, 264, 264, 264, 265, 266, 266, 267,
+ 267, 267, 267, 267, 268, 268, 268, 269, 269, 269,
+ 269, 270, 271, 271, 272, 273, 273, 273, 274, 274,
+ 275, 275, 276, 276, 277, 277, 277, 277, 277, 277,
+ 278, 278, 278, 278, 278, 278, 279, 280, 280, 281,
+ 282, 282, 282, 282, 282, 282, 282, 282, 282, 282,
+ 283, 283, 283, 283, 283, 283, 283, 283, 283, 283,
+ 283, 283, 283, 283, 283, 283, 284, 284, 284, 285,
+ 285, 286, 286, 286, 287, 288, 288, 288, 289, 289,
+ 289, 290, 290, 291, 292, 292, 293, 294, 294, 295,
+ 295, 296, 296, 297, 297, 298, 299, 299, 300, 300,
+ 301, 301, 301, 301, 302, 302, 302, 303, 304, 304,
+ 305, 305, 305, 305, 305, 305, 305, 306, 306, 307,
+ 307, 308, 308, 309, 310, 310, 311, 311, 312, 312,
+ 312, 313, 313, 314, 315, 316, 317, 317, 318, 319,
+ 319, 320, 320, 321, 322, 323, 324, 324, 325, 326,
+ 326, 327, 328, 328, 328, 328, 328
};
/* YYR2[YYN] -- Number of symbols on the right hand side of rule YYN. */
@@ -1422,35 +1471,36 @@
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
3, 1, 1, 1, 1, 1, 1, 2, 1, 1,
1, 0, 2, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 2, 2, 1, 1, 1,
- 1, 1, 1, 2, 1, 2, 1, 1, 1, 2,
+ 1, 1, 1, 1, 1, 1, 2, 2, 1, 1,
+ 1, 1, 1, 1, 2, 1, 2, 1, 1, 1,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 0, 2, 2, 2, 1, 1, 1, 1, 1,
- 2, 2, 1, 2, 2, 2, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 2, 2,
- 3, 2, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 0, 2, 2, 2, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 2, 2,
- 4, 6, 4, 5, 5, 4, 0, 2, 0, 2,
+ 2, 2, 0, 2, 2, 2, 1, 1, 1, 1,
+ 1, 2, 2, 1, 2, 2, 2, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 2,
+ 2, 3, 2, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 0, 2, 2, 2, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 2,
+ 2, 4, 6, 4, 5, 5, 4, 0, 2, 0,
+ 2, 3, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 2,
+ 1, 2, 1, 1, 1, 2, 1, 2, 1, 1,
+ 1, 1, 1, 1, 1, 1, 3, 2, 1, 2,
+ 2, 2, 2, 2, 1, 1, 1, 1, 1, 1,
+ 1, 2, 2, 1, 2, 1, 1, 1, 2, 2,
+ 2, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 2, 2, 1, 2,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 2, 2, 2, 2, 3, 3, 1, 2,
+ 2, 2, 2, 2, 3, 2, 1, 1, 1, 1,
+ 1, 1, 1, 0, 1, 1, 1, 1, 1, 2,
+ 0, 0, 2, 4, 1, 1, 4, 1, 0, 0,
+ 2, 2, 2, 2, 1, 1, 3, 3, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 2, 2, 1,
1, 1, 1, 1, 1, 1, 1, 2, 1, 2,
- 1, 1, 1, 2, 1, 2, 1, 1, 1, 1,
- 1, 1, 1, 1, 3, 2, 1, 2, 2, 2,
- 2, 2, 1, 1, 1, 1, 1, 1, 2, 2,
- 1, 2, 1, 1, 1, 2, 2, 2, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 2, 2, 1, 2, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 2,
- 2, 2, 2, 3, 1, 2, 2, 2, 2, 3,
- 2, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 2, 0, 4, 1, 0, 0, 2, 2,
- 2, 2, 1, 1, 3, 3, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 2, 2, 1, 1, 1,
- 1, 1, 1, 1, 1, 2, 1, 2, 1, 1,
- 1, 5, 2, 1, 2, 1, 1, 1, 1, 1,
- 1, 2, 5, 1, 3, 2, 3, 1, 1, 2,
- 1, 5, 4, 3, 2, 1, 6, 3, 2, 3,
- 1, 1, 1, 1, 1
+ 1, 1, 1, 5, 2, 1, 2, 1, 1, 1,
+ 1, 1, 1, 2, 5, 1, 3, 2, 3, 1,
+ 1, 2, 1, 5, 4, 3, 2, 1, 6, 3,
+ 2, 3, 1, 1, 1, 1, 1
};
@@ -2127,7 +2177,7 @@
switch (yyn)
{
case 5:
-#line 385 "ntp_parser.y" /* yacc.c:1646 */
+#line 398 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
/* I will need to incorporate much more fine grained
* error messages. The following should suffice for
@@ -2140,11 +2190,11 @@
ip_ctx->errpos.nline,
ip_ctx->errpos.ncol);
}
-#line 2144 "ntp_parser.c" /* yacc.c:1646 */
+#line 2194 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
case 20:
-#line 421 "ntp_parser.y" /* yacc.c:1646 */
+#line 434 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
peer_node *my_node;
@@ -2151,74 +2201,74 @@
my_node = create_peer_node((yyvsp[-2].Integer), (yyvsp[-1].Address_node), (yyvsp[0].Attr_val_fifo));
APPEND_G_FIFO(cfgt.peers, my_node);
}
-#line 2155 "ntp_parser.c" /* yacc.c:1646 */
+#line 2205 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
case 27:
-#line 440 "ntp_parser.y" /* yacc.c:1646 */
+#line 453 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ (yyval.Address_node) = create_address_node((yyvsp[0].String), (yyvsp[-1].Integer)); }
-#line 2161 "ntp_parser.c" /* yacc.c:1646 */
+#line 2211 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
case 28:
-#line 445 "ntp_parser.y" /* yacc.c:1646 */
+#line 458 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ (yyval.Address_node) = create_address_node((yyvsp[0].String), AF_UNSPEC); }
-#line 2167 "ntp_parser.c" /* yacc.c:1646 */
+#line 2217 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
case 29:
-#line 450 "ntp_parser.y" /* yacc.c:1646 */
+#line 463 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ (yyval.Integer) = AF_INET; }
-#line 2173 "ntp_parser.c" /* yacc.c:1646 */
+#line 2223 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
case 30:
-#line 452 "ntp_parser.y" /* yacc.c:1646 */
+#line 465 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ (yyval.Integer) = AF_INET6; }
-#line 2179 "ntp_parser.c" /* yacc.c:1646 */
+#line 2229 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
case 31:
-#line 457 "ntp_parser.y" /* yacc.c:1646 */
+#line 470 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ (yyval.Attr_val_fifo) = NULL; }
-#line 2185 "ntp_parser.c" /* yacc.c:1646 */
+#line 2235 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
case 32:
-#line 459 "ntp_parser.y" /* yacc.c:1646 */
+#line 472 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
(yyval.Attr_val_fifo) = (yyvsp[-1].Attr_val_fifo);
APPEND_G_FIFO((yyval.Attr_val_fifo), (yyvsp[0].Attr_val));
}
-#line 2194 "ntp_parser.c" /* yacc.c:1646 */
+#line 2244 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
case 36:
-#line 473 "ntp_parser.y" /* yacc.c:1646 */
+#line 486 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ (yyval.Attr_val) = create_attr_ival(T_Flag, (yyvsp[0].Integer)); }
-#line 2200 "ntp_parser.c" /* yacc.c:1646 */
+#line 2250 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 45:
-#line 489 "ntp_parser.y" /* yacc.c:1646 */
+ case 46:
+#line 503 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ (yyval.Attr_val) = create_attr_ival((yyvsp[-1].Integer), (yyvsp[0].Integer)); }
-#line 2206 "ntp_parser.c" /* yacc.c:1646 */
+#line 2256 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 46:
-#line 491 "ntp_parser.y" /* yacc.c:1646 */
+ case 47:
+#line 505 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ (yyval.Attr_val) = create_attr_uval((yyvsp[-1].Integer), (yyvsp[0].Integer)); }
-#line 2212 "ntp_parser.c" /* yacc.c:1646 */
+#line 2262 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 53:
-#line 505 "ntp_parser.y" /* yacc.c:1646 */
+ case 54:
+#line 519 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ (yyval.Attr_val) = create_attr_sval((yyvsp[-1].Integer), (yyvsp[0].String)); }
-#line 2218 "ntp_parser.c" /* yacc.c:1646 */
+#line 2268 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 55:
-#line 519 "ntp_parser.y" /* yacc.c:1646 */
+ case 56:
+#line 533 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
unpeer_node *my_node;
@@ -2226,35 +2276,35 @@
if (my_node)
APPEND_G_FIFO(cfgt.unpeers, my_node);
}
-#line 2230 "ntp_parser.c" /* yacc.c:1646 */
+#line 2280 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 58:
-#line 540 "ntp_parser.y" /* yacc.c:1646 */
+ case 59:
+#line 554 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ cfgt.broadcastclient = 1; }
-#line 2236 "ntp_parser.c" /* yacc.c:1646 */
+#line 2286 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 59:
-#line 542 "ntp_parser.y" /* yacc.c:1646 */
+ case 60:
+#line 556 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ CONCAT_G_FIFOS(cfgt.manycastserver, (yyvsp[0].Address_fifo)); }
-#line 2242 "ntp_parser.c" /* yacc.c:1646 */
+#line 2292 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 60:
-#line 544 "ntp_parser.y" /* yacc.c:1646 */
+ case 61:
+#line 558 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ CONCAT_G_FIFOS(cfgt.multicastclient, (yyvsp[0].Address_fifo)); }
-#line 2248 "ntp_parser.c" /* yacc.c:1646 */
+#line 2298 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 61:
-#line 546 "ntp_parser.y" /* yacc.c:1646 */
+ case 62:
+#line 560 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ cfgt.mdnstries = (yyvsp[0].Integer); }
-#line 2254 "ntp_parser.c" /* yacc.c:1646 */
+#line 2304 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 62:
-#line 557 "ntp_parser.y" /* yacc.c:1646 */
+ case 63:
+#line 571 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
attr_val *atrv;
@@ -2261,50 +2311,50 @@
atrv = create_attr_ival((yyvsp[-1].Integer), (yyvsp[0].Integer));
APPEND_G_FIFO(cfgt.vars, atrv);
}
-#line 2265 "ntp_parser.c" /* yacc.c:1646 */
+#line 2315 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 63:
-#line 564 "ntp_parser.y" /* yacc.c:1646 */
+ case 64:
+#line 578 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ cfgt.auth.control_key = (yyvsp[0].Integer); }
-#line 2271 "ntp_parser.c" /* yacc.c:1646 */
+#line 2321 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 64:
-#line 566 "ntp_parser.y" /* yacc.c:1646 */
+ case 65:
+#line 580 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
cfgt.auth.cryptosw++;
CONCAT_G_FIFOS(cfgt.auth.crypto_cmd_list, (yyvsp[0].Attr_val_fifo));
}
-#line 2280 "ntp_parser.c" /* yacc.c:1646 */
+#line 2330 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 65:
-#line 571 "ntp_parser.y" /* yacc.c:1646 */
+ case 66:
+#line 585 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ cfgt.auth.keys = (yyvsp[0].String); }
-#line 2286 "ntp_parser.c" /* yacc.c:1646 */
+#line 2336 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 66:
-#line 573 "ntp_parser.y" /* yacc.c:1646 */
+ case 67:
+#line 587 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ cfgt.auth.keysdir = (yyvsp[0].String); }
-#line 2292 "ntp_parser.c" /* yacc.c:1646 */
+#line 2342 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 67:
-#line 575 "ntp_parser.y" /* yacc.c:1646 */
+ case 68:
+#line 589 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ cfgt.auth.request_key = (yyvsp[0].Integer); }
-#line 2298 "ntp_parser.c" /* yacc.c:1646 */
+#line 2348 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 68:
-#line 577 "ntp_parser.y" /* yacc.c:1646 */
+ case 69:
+#line 591 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ cfgt.auth.revoke = (yyvsp[0].Integer); }
-#line 2304 "ntp_parser.c" /* yacc.c:1646 */
+#line 2354 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 69:
-#line 579 "ntp_parser.y" /* yacc.c:1646 */
+ case 70:
+#line 593 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
/* [Bug 948] leaves it open if appending or
* replacing the trusted key list is the right
@@ -2314,38 +2364,38 @@
DESTROY_G_FIFO(cfgt.auth.trusted_key_list, destroy_attr_val); /* remove for append */
CONCAT_G_FIFOS(cfgt.auth.trusted_key_list, (yyvsp[0].Attr_val_fifo));
}
-#line 2318 "ntp_parser.c" /* yacc.c:1646 */
+#line 2368 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 70:
-#line 589 "ntp_parser.y" /* yacc.c:1646 */
+ case 71:
+#line 603 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ cfgt.auth.ntp_signd_socket = (yyvsp[0].String); }
-#line 2324 "ntp_parser.c" /* yacc.c:1646 */
+#line 2374 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 71:
-#line 594 "ntp_parser.y" /* yacc.c:1646 */
+ case 72:
+#line 608 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ (yyval.Attr_val_fifo) = NULL; }
-#line 2330 "ntp_parser.c" /* yacc.c:1646 */
+#line 2380 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 72:
-#line 596 "ntp_parser.y" /* yacc.c:1646 */
+ case 73:
+#line 610 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
(yyval.Attr_val_fifo) = (yyvsp[-1].Attr_val_fifo);
APPEND_G_FIFO((yyval.Attr_val_fifo), (yyvsp[0].Attr_val));
}
-#line 2339 "ntp_parser.c" /* yacc.c:1646 */
+#line 2389 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 73:
-#line 604 "ntp_parser.y" /* yacc.c:1646 */
+ case 74:
+#line 618 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ (yyval.Attr_val) = create_attr_sval((yyvsp[-1].Integer), (yyvsp[0].String)); }
-#line 2345 "ntp_parser.c" /* yacc.c:1646 */
+#line 2395 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 74:
-#line 606 "ntp_parser.y" /* yacc.c:1646 */
+ case 75:
+#line 620 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
(yyval.Attr_val) = NULL;
cfgt.auth.revoke = (yyvsp[0].Integer);
@@ -2354,65 +2404,65 @@
"please use 'revoke %d' instead.",
cfgt.auth.revoke, cfgt.auth.revoke);
}
-#line 2358 "ntp_parser.c" /* yacc.c:1646 */
+#line 2408 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 80:
-#line 631 "ntp_parser.y" /* yacc.c:1646 */
+ case 81:
+#line 645 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ CONCAT_G_FIFOS(cfgt.orphan_cmds, (yyvsp[0].Attr_val_fifo)); }
-#line 2364 "ntp_parser.c" /* yacc.c:1646 */
+#line 2414 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 81:
-#line 636 "ntp_parser.y" /* yacc.c:1646 */
+ case 82:
+#line 650 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
(yyval.Attr_val_fifo) = (yyvsp[-1].Attr_val_fifo);
APPEND_G_FIFO((yyval.Attr_val_fifo), (yyvsp[0].Attr_val));
}
-#line 2373 "ntp_parser.c" /* yacc.c:1646 */
+#line 2423 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 82:
-#line 641 "ntp_parser.y" /* yacc.c:1646 */
+ case 83:
+#line 655 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
(yyval.Attr_val_fifo) = NULL;
APPEND_G_FIFO((yyval.Attr_val_fifo), (yyvsp[0].Attr_val));
}
-#line 2382 "ntp_parser.c" /* yacc.c:1646 */
+#line 2432 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 83:
-#line 649 "ntp_parser.y" /* yacc.c:1646 */
+ case 84:
+#line 663 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ (yyval.Attr_val) = create_attr_dval((yyvsp[-1].Integer), (double)(yyvsp[0].Integer)); }
-#line 2388 "ntp_parser.c" /* yacc.c:1646 */
+#line 2438 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 84:
-#line 651 "ntp_parser.y" /* yacc.c:1646 */
+ case 85:
+#line 665 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ (yyval.Attr_val) = create_attr_dval((yyvsp[-1].Integer), (yyvsp[0].Double)); }
-#line 2394 "ntp_parser.c" /* yacc.c:1646 */
+#line 2444 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 85:
-#line 653 "ntp_parser.y" /* yacc.c:1646 */
+ case 86:
+#line 667 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ (yyval.Attr_val) = create_attr_dval((yyvsp[-1].Integer), (double)(yyvsp[0].Integer)); }
-#line 2400 "ntp_parser.c" /* yacc.c:1646 */
+#line 2450 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 86:
-#line 655 "ntp_parser.y" /* yacc.c:1646 */
+ case 87:
+#line 669 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ (yyval.Attr_val) = create_attr_ival(T_Basedate, (yyvsp[0].Integer)); }
-#line 2406 "ntp_parser.c" /* yacc.c:1646 */
+#line 2456 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 98:
-#line 682 "ntp_parser.y" /* yacc.c:1646 */
+ case 99:
+#line 696 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ CONCAT_G_FIFOS(cfgt.stats_list, (yyvsp[0].Int_fifo)); }
-#line 2412 "ntp_parser.c" /* yacc.c:1646 */
+#line 2462 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 99:
-#line 684 "ntp_parser.y" /* yacc.c:1646 */
+ case 100:
+#line 698 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
if (lex_from_file()) {
cfgt.stats_dir = (yyvsp[0].String);
@@ -2421,11 +2471,11 @@
yyerror("statsdir remote configuration ignored");
}
}
-#line 2425 "ntp_parser.c" /* yacc.c:1646 */
+#line 2475 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 100:
-#line 693 "ntp_parser.y" /* yacc.c:1646 */
+ case 101:
+#line 707 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
filegen_node *fgn;
@@ -2432,44 +2482,44 @@
fgn = create_filegen_node((yyvsp[-1].Integer), (yyvsp[0].Attr_val_fifo));
APPEND_G_FIFO(cfgt.filegen_opts, fgn);
}
-#line 2436 "ntp_parser.c" /* yacc.c:1646 */
+#line 2486 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 101:
-#line 703 "ntp_parser.y" /* yacc.c:1646 */
+ case 102:
+#line 717 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
(yyval.Int_fifo) = (yyvsp[-1].Int_fifo);
APPEND_G_FIFO((yyval.Int_fifo), create_int_node((yyvsp[0].Integer)));
}
-#line 2445 "ntp_parser.c" /* yacc.c:1646 */
+#line 2495 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 102:
-#line 708 "ntp_parser.y" /* yacc.c:1646 */
+ case 103:
+#line 722 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
(yyval.Int_fifo) = NULL;
APPEND_G_FIFO((yyval.Int_fifo), create_int_node((yyvsp[0].Integer)));
}
-#line 2454 "ntp_parser.c" /* yacc.c:1646 */
+#line 2504 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 111:
-#line 727 "ntp_parser.y" /* yacc.c:1646 */
+ case 112:
+#line 741 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ (yyval.Attr_val_fifo) = NULL; }
-#line 2460 "ntp_parser.c" /* yacc.c:1646 */
+#line 2510 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 112:
-#line 729 "ntp_parser.y" /* yacc.c:1646 */
+ case 113:
+#line 743 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
(yyval.Attr_val_fifo) = (yyvsp[-1].Attr_val_fifo);
APPEND_G_FIFO((yyval.Attr_val_fifo), (yyvsp[0].Attr_val));
}
-#line 2469 "ntp_parser.c" /* yacc.c:1646 */
+#line 2519 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 113:
-#line 737 "ntp_parser.y" /* yacc.c:1646 */
+ case 114:
+#line 751 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
if (lex_from_file()) {
(yyval.Attr_val) = create_attr_sval((yyvsp[-1].Integer), (yyvsp[0].String));
@@ -2479,11 +2529,11 @@
yyerror("filegen file remote config ignored");
}
}
-#line 2483 "ntp_parser.c" /* yacc.c:1646 */
+#line 2533 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 114:
-#line 747 "ntp_parser.y" /* yacc.c:1646 */
+ case 115:
+#line 761 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
if (lex_from_file()) {
(yyval.Attr_val) = create_attr_ival((yyvsp[-1].Integer), (yyvsp[0].Integer));
@@ -2492,11 +2542,11 @@
yyerror("filegen type remote config ignored");
}
}
-#line 2496 "ntp_parser.c" /* yacc.c:1646 */
+#line 2546 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 115:
-#line 756 "ntp_parser.y" /* yacc.c:1646 */
+ case 116:
+#line 770 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
const char *err;
@@ -2511,69 +2561,69 @@
yyerror(err);
}
}
-#line 2515 "ntp_parser.c" /* yacc.c:1646 */
+#line 2565 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 116:
-#line 771 "ntp_parser.y" /* yacc.c:1646 */
+ case 117:
+#line 785 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ (yyval.Attr_val) = create_attr_ival(T_Flag, (yyvsp[0].Integer)); }
-#line 2521 "ntp_parser.c" /* yacc.c:1646 */
+#line 2571 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 128:
-#line 801 "ntp_parser.y" /* yacc.c:1646 */
+ case 129:
+#line 815 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
CONCAT_G_FIFOS(cfgt.discard_opts, (yyvsp[0].Attr_val_fifo));
}
-#line 2529 "ntp_parser.c" /* yacc.c:1646 */
+#line 2579 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 129:
-#line 805 "ntp_parser.y" /* yacc.c:1646 */
+ case 130:
+#line 819 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
CONCAT_G_FIFOS(cfgt.mru_opts, (yyvsp[0].Attr_val_fifo));
}
-#line 2537 "ntp_parser.c" /* yacc.c:1646 */
+#line 2587 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 130:
-#line 809 "ntp_parser.y" /* yacc.c:1646 */
+ case 131:
+#line 823 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
restrict_node *rn;
- rn = create_restrict_node((yyvsp[-2].Address_node), NULL, (yyvsp[-1].Integer), (yyvsp[0].Int_fifo),
+ rn = create_restrict_node((yyvsp[-2].Address_node), NULL, (yyvsp[-1].Integer), (yyvsp[0].Attr_val_fifo),
lex_current()->curpos.nline);
APPEND_G_FIFO(cfgt.restrict_opts, rn);
}
-#line 2549 "ntp_parser.c" /* yacc.c:1646 */
+#line 2599 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 131:
-#line 817 "ntp_parser.y" /* yacc.c:1646 */
+ case 132:
+#line 831 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
restrict_node *rn;
- rn = create_restrict_node((yyvsp[-4].Address_node), (yyvsp[-2].Address_node), (yyvsp[-1].Integer), (yyvsp[0].Int_fifo),
+ rn = create_restrict_node((yyvsp[-4].Address_node), (yyvsp[-2].Address_node), (yyvsp[-1].Integer), (yyvsp[0].Attr_val_fifo),
lex_current()->curpos.nline);
APPEND_G_FIFO(cfgt.restrict_opts, rn);
}
-#line 2561 "ntp_parser.c" /* yacc.c:1646 */
+#line 2611 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 132:
-#line 825 "ntp_parser.y" /* yacc.c:1646 */
+ case 133:
+#line 839 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
restrict_node *rn;
- rn = create_restrict_node(NULL, NULL, (yyvsp[-1].Integer), (yyvsp[0].Int_fifo),
+ rn = create_restrict_node(NULL, NULL, (yyvsp[-1].Integer), (yyvsp[0].Attr_val_fifo),
lex_current()->curpos.nline);
APPEND_G_FIFO(cfgt.restrict_opts, rn);
}
-#line 2573 "ntp_parser.c" /* yacc.c:1646 */
+#line 2623 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 133:
-#line 833 "ntp_parser.y" /* yacc.c:1646 */
+ case 134:
+#line 847 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
restrict_node *rn;
@@ -2584,15 +2634,15 @@
create_address_node(
estrdup("0.0.0.0"),
AF_INET),
- (yyvsp[-1].Integer), (yyvsp[0].Int_fifo),
+ (yyvsp[-1].Integer), (yyvsp[0].Attr_val_fifo),
lex_current()->curpos.nline);
APPEND_G_FIFO(cfgt.restrict_opts, rn);
}
-#line 2592 "ntp_parser.c" /* yacc.c:1646 */
+#line 2642 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 134:
-#line 848 "ntp_parser.y" /* yacc.c:1646 */
+ case 135:
+#line 862 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
restrict_node *rn;
@@ -2603,34 +2653,34 @@
create_address_node(
estrdup("::"),
AF_INET6),
- (yyvsp[-1].Integer), (yyvsp[0].Int_fifo),
+ (yyvsp[-1].Integer), (yyvsp[0].Attr_val_fifo),
lex_current()->curpos.nline);
APPEND_G_FIFO(cfgt.restrict_opts, rn);
}
-#line 2611 "ntp_parser.c" /* yacc.c:1646 */
+#line 2661 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 135:
-#line 863 "ntp_parser.y" /* yacc.c:1646 */
+ case 136:
+#line 877 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
restrict_node * rn;
- APPEND_G_FIFO((yyvsp[0].Int_fifo), create_int_node((yyvsp[-2].Integer)));
+ APPEND_G_FIFO((yyvsp[0].Attr_val_fifo), create_attr_ival((yyvsp[-2].Integer), 1));
rn = create_restrict_node(
- NULL, NULL, (yyvsp[-1].Integer), (yyvsp[0].Int_fifo), lex_current()->curpos.nline);
+ NULL, NULL, (yyvsp[-1].Integer), (yyvsp[0].Attr_val_fifo), lex_current()->curpos.nline);
APPEND_G_FIFO(cfgt.restrict_opts, rn);
}
-#line 2624 "ntp_parser.c" /* yacc.c:1646 */
+#line 2674 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 136:
-#line 875 "ntp_parser.y" /* yacc.c:1646 */
+ case 137:
+#line 889 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ (yyval.Integer) = -1; }
-#line 2630 "ntp_parser.c" /* yacc.c:1646 */
+#line 2680 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 137:
-#line 877 "ntp_parser.y" /* yacc.c:1646 */
+ case 138:
+#line 891 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
if (((yyvsp[0].Integer) < -1) || ((yyvsp[0].Integer) > 100)) {
struct FILE_INFO * ip_ctx;
@@ -2646,74 +2696,89 @@
}
(yyval.Integer) = (yyvsp[0].Integer);
}
-#line 2650 "ntp_parser.c" /* yacc.c:1646 */
+#line 2700 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 138:
-#line 896 "ntp_parser.y" /* yacc.c:1646 */
- { (yyval.Int_fifo) = NULL; }
-#line 2656 "ntp_parser.c" /* yacc.c:1646 */
+ case 139:
+#line 910 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
+ { (yyval.Attr_val_fifo) = NULL; }
+#line 2706 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 139:
-#line 898 "ntp_parser.y" /* yacc.c:1646 */
+ case 140:
+#line 912 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
- (yyval.Int_fifo) = (yyvsp[-1].Int_fifo);
- APPEND_G_FIFO((yyval.Int_fifo), create_int_node((yyvsp[0].Integer)));
+ attr_val *av;
+
+ (yyval.Attr_val_fifo) = (yyvsp[-1].Attr_val_fifo);
+ av = create_attr_ival((yyvsp[0].Integer), 1);
+ APPEND_G_FIFO((yyval.Attr_val_fifo), av);
}
-#line 2665 "ntp_parser.c" /* yacc.c:1646 */
+#line 2718 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 157:
-#line 926 "ntp_parser.y" /* yacc.c:1646 */
+ case 141:
+#line 920 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
+ attr_val *av;
+
+ (yyval.Attr_val_fifo) = (yyvsp[-2].Attr_val_fifo);
+ av = create_attr_ival(T_ServerresponseFuzz, 1);
+ APPEND_G_FIFO((yyval.Attr_val_fifo), av);
+ }
+#line 2730 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
+ break;
+
+ case 159:
+#line 951 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
+ {
(yyval.Attr_val_fifo) = (yyvsp[-1].Attr_val_fifo);
APPEND_G_FIFO((yyval.Attr_val_fifo), (yyvsp[0].Attr_val));
}
-#line 2674 "ntp_parser.c" /* yacc.c:1646 */
+#line 2739 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 158:
-#line 931 "ntp_parser.y" /* yacc.c:1646 */
+ case 160:
+#line 956 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
(yyval.Attr_val_fifo) = NULL;
APPEND_G_FIFO((yyval.Attr_val_fifo), (yyvsp[0].Attr_val));
}
-#line 2683 "ntp_parser.c" /* yacc.c:1646 */
+#line 2748 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 159:
-#line 939 "ntp_parser.y" /* yacc.c:1646 */
+ case 161:
+#line 964 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ (yyval.Attr_val) = create_attr_ival((yyvsp[-1].Integer), (yyvsp[0].Integer)); }
-#line 2689 "ntp_parser.c" /* yacc.c:1646 */
+#line 2754 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 163:
-#line 950 "ntp_parser.y" /* yacc.c:1646 */
+ case 165:
+#line 975 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
(yyval.Attr_val_fifo) = (yyvsp[-1].Attr_val_fifo);
APPEND_G_FIFO((yyval.Attr_val_fifo), (yyvsp[0].Attr_val));
}
-#line 2698 "ntp_parser.c" /* yacc.c:1646 */
+#line 2763 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 164:
-#line 955 "ntp_parser.y" /* yacc.c:1646 */
+ case 166:
+#line 980 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
(yyval.Attr_val_fifo) = NULL;
APPEND_G_FIFO((yyval.Attr_val_fifo), (yyvsp[0].Attr_val));
}
-#line 2707 "ntp_parser.c" /* yacc.c:1646 */
+#line 2772 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 165:
-#line 963 "ntp_parser.y" /* yacc.c:1646 */
+ case 167:
+#line 988 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ (yyval.Attr_val) = create_attr_ival((yyvsp[-1].Integer), (yyvsp[0].Integer)); }
-#line 2713 "ntp_parser.c" /* yacc.c:1646 */
+#line 2778 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 174:
-#line 983 "ntp_parser.y" /* yacc.c:1646 */
+ case 176:
+#line 1008 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
addr_opts_node *aon;
@@ -2720,41 +2785,41 @@
aon = create_addr_opts_node((yyvsp[-1].Address_node), (yyvsp[0].Attr_val_fifo));
APPEND_G_FIFO(cfgt.fudge, aon);
}
-#line 2724 "ntp_parser.c" /* yacc.c:1646 */
+#line 2789 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 175:
-#line 993 "ntp_parser.y" /* yacc.c:1646 */
+ case 177:
+#line 1018 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
(yyval.Attr_val_fifo) = (yyvsp[-1].Attr_val_fifo);
APPEND_G_FIFO((yyval.Attr_val_fifo), (yyvsp[0].Attr_val));
}
-#line 2733 "ntp_parser.c" /* yacc.c:1646 */
+#line 2798 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 176:
-#line 998 "ntp_parser.y" /* yacc.c:1646 */
+ case 178:
+#line 1023 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
(yyval.Attr_val_fifo) = NULL;
APPEND_G_FIFO((yyval.Attr_val_fifo), (yyvsp[0].Attr_val));
}
-#line 2742 "ntp_parser.c" /* yacc.c:1646 */
+#line 2807 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 177:
-#line 1006 "ntp_parser.y" /* yacc.c:1646 */
+ case 179:
+#line 1031 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ (yyval.Attr_val) = create_attr_dval((yyvsp[-1].Integer), (yyvsp[0].Double)); }
-#line 2748 "ntp_parser.c" /* yacc.c:1646 */
+#line 2813 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 178:
-#line 1008 "ntp_parser.y" /* yacc.c:1646 */
+ case 180:
+#line 1033 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ (yyval.Attr_val) = create_attr_ival((yyvsp[-1].Integer), (yyvsp[0].Integer)); }
-#line 2754 "ntp_parser.c" /* yacc.c:1646 */
+#line 2819 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 179:
-#line 1010 "ntp_parser.y" /* yacc.c:1646 */
+ case 181:
+#line 1035 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
if ((yyvsp[0].Integer) >= 0 && (yyvsp[0].Integer) <= 16) {
(yyval.Attr_val) = create_attr_ival((yyvsp[-1].Integer), (yyvsp[0].Integer));
@@ -2763,89 +2828,89 @@
yyerror("fudge factor: stratum value not in [0..16], ignored");
}
}
-#line 2767 "ntp_parser.c" /* yacc.c:1646 */
+#line 2832 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 180:
-#line 1019 "ntp_parser.y" /* yacc.c:1646 */
+ case 182:
+#line 1044 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ (yyval.Attr_val) = create_attr_sval((yyvsp[-1].Integer), (yyvsp[0].String)); }
-#line 2773 "ntp_parser.c" /* yacc.c:1646 */
+#line 2838 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 181:
-#line 1021 "ntp_parser.y" /* yacc.c:1646 */
+ case 183:
+#line 1046 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ (yyval.Attr_val) = create_attr_sval((yyvsp[-1].Integer), (yyvsp[0].String)); }
-#line 2779 "ntp_parser.c" /* yacc.c:1646 */
+#line 2844 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 188:
-#line 1042 "ntp_parser.y" /* yacc.c:1646 */
+ case 191:
+#line 1068 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ CONCAT_G_FIFOS(cfgt.rlimit, (yyvsp[0].Attr_val_fifo)); }
-#line 2785 "ntp_parser.c" /* yacc.c:1646 */
+#line 2850 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 189:
-#line 1047 "ntp_parser.y" /* yacc.c:1646 */
+ case 192:
+#line 1073 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
(yyval.Attr_val_fifo) = (yyvsp[-1].Attr_val_fifo);
APPEND_G_FIFO((yyval.Attr_val_fifo), (yyvsp[0].Attr_val));
}
-#line 2794 "ntp_parser.c" /* yacc.c:1646 */
+#line 2859 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 190:
-#line 1052 "ntp_parser.y" /* yacc.c:1646 */
+ case 193:
+#line 1078 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
(yyval.Attr_val_fifo) = NULL;
APPEND_G_FIFO((yyval.Attr_val_fifo), (yyvsp[0].Attr_val));
}
-#line 2803 "ntp_parser.c" /* yacc.c:1646 */
+#line 2868 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 191:
-#line 1060 "ntp_parser.y" /* yacc.c:1646 */
+ case 194:
+#line 1086 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ (yyval.Attr_val) = create_attr_ival((yyvsp[-1].Integer), (yyvsp[0].Integer)); }
-#line 2809 "ntp_parser.c" /* yacc.c:1646 */
+#line 2874 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 195:
-#line 1076 "ntp_parser.y" /* yacc.c:1646 */
+ case 198:
+#line 1102 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ CONCAT_G_FIFOS(cfgt.enable_opts, (yyvsp[0].Attr_val_fifo)); }
-#line 2815 "ntp_parser.c" /* yacc.c:1646 */
+#line 2880 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 196:
-#line 1078 "ntp_parser.y" /* yacc.c:1646 */
+ case 199:
+#line 1104 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ CONCAT_G_FIFOS(cfgt.disable_opts, (yyvsp[0].Attr_val_fifo)); }
-#line 2821 "ntp_parser.c" /* yacc.c:1646 */
+#line 2886 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 197:
-#line 1083 "ntp_parser.y" /* yacc.c:1646 */
+ case 200:
+#line 1109 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
(yyval.Attr_val_fifo) = (yyvsp[-1].Attr_val_fifo);
APPEND_G_FIFO((yyval.Attr_val_fifo), (yyvsp[0].Attr_val));
}
-#line 2830 "ntp_parser.c" /* yacc.c:1646 */
+#line 2895 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 198:
-#line 1088 "ntp_parser.y" /* yacc.c:1646 */
+ case 201:
+#line 1114 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
(yyval.Attr_val_fifo) = NULL;
APPEND_G_FIFO((yyval.Attr_val_fifo), (yyvsp[0].Attr_val));
}
-#line 2839 "ntp_parser.c" /* yacc.c:1646 */
+#line 2904 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 199:
-#line 1096 "ntp_parser.y" /* yacc.c:1646 */
+ case 202:
+#line 1122 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ (yyval.Attr_val) = create_attr_ival(T_Flag, (yyvsp[0].Integer)); }
-#line 2845 "ntp_parser.c" /* yacc.c:1646 */
+#line 2910 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 200:
-#line 1098 "ntp_parser.y" /* yacc.c:1646 */
+ case 203:
+#line 1124 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
if (lex_from_file()) {
(yyval.Attr_val) = create_attr_ival(T_Flag, (yyvsp[0].Integer));
@@ -2859,41 +2924,41 @@
yyerror(err_str);
}
}
-#line 2863 "ntp_parser.c" /* yacc.c:1646 */
+#line 2928 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 213:
-#line 1137 "ntp_parser.y" /* yacc.c:1646 */
+ case 216:
+#line 1163 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ CONCAT_G_FIFOS(cfgt.tinker, (yyvsp[0].Attr_val_fifo)); }
-#line 2869 "ntp_parser.c" /* yacc.c:1646 */
+#line 2934 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 214:
-#line 1142 "ntp_parser.y" /* yacc.c:1646 */
+ case 217:
+#line 1168 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
(yyval.Attr_val_fifo) = (yyvsp[-1].Attr_val_fifo);
APPEND_G_FIFO((yyval.Attr_val_fifo), (yyvsp[0].Attr_val));
}
-#line 2878 "ntp_parser.c" /* yacc.c:1646 */
+#line 2943 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 215:
-#line 1147 "ntp_parser.y" /* yacc.c:1646 */
+ case 218:
+#line 1173 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
(yyval.Attr_val_fifo) = NULL;
APPEND_G_FIFO((yyval.Attr_val_fifo), (yyvsp[0].Attr_val));
}
-#line 2887 "ntp_parser.c" /* yacc.c:1646 */
+#line 2952 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 216:
-#line 1155 "ntp_parser.y" /* yacc.c:1646 */
+ case 219:
+#line 1181 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ (yyval.Attr_val) = create_attr_dval((yyvsp[-1].Integer), (yyvsp[0].Double)); }
-#line 2893 "ntp_parser.c" /* yacc.c:1646 */
+#line 2958 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 229:
-#line 1180 "ntp_parser.y" /* yacc.c:1646 */
+ case 232:
+#line 1206 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
attr_val *av;
@@ -2900,11 +2965,11 @@
av = create_attr_dval((yyvsp[-1].Integer), (yyvsp[0].Double));
APPEND_G_FIFO(cfgt.vars, av);
}
-#line 2904 "ntp_parser.c" /* yacc.c:1646 */
+#line 2969 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 230:
-#line 1187 "ntp_parser.y" /* yacc.c:1646 */
+ case 233:
+#line 1213 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
attr_val *av;
@@ -2911,11 +2976,11 @@
av = create_attr_ival((yyvsp[-1].Integer), (yyvsp[0].Integer));
APPEND_G_FIFO(cfgt.vars, av);
}
-#line 2915 "ntp_parser.c" /* yacc.c:1646 */
+#line 2980 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 231:
-#line 1194 "ntp_parser.y" /* yacc.c:1646 */
+ case 234:
+#line 1220 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
attr_val *av;
@@ -2922,11 +2987,11 @@
av = create_attr_sval((yyvsp[-1].Integer), (yyvsp[0].String));
APPEND_G_FIFO(cfgt.vars, av);
}
-#line 2926 "ntp_parser.c" /* yacc.c:1646 */
+#line 2991 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 232:
-#line 1201 "ntp_parser.y" /* yacc.c:1646 */
+ case 235:
+#line 1227 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
char error_text[64];
attr_val *av;
@@ -2942,11 +3007,11 @@
yyerror(error_text);
}
}
-#line 2946 "ntp_parser.c" /* yacc.c:1646 */
+#line 3011 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 233:
-#line 1217 "ntp_parser.y" /* yacc.c:1646 */
+ case 236:
+#line 1243 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
if (!lex_from_file()) {
YYFREE((yyvsp[-1].String)); /* avoid leak */
@@ -2965,41 +3030,59 @@
}
YYFREE((yyvsp[-1].String)); /* avoid leak */
}
-#line 2969 "ntp_parser.c" /* yacc.c:1646 */
+#line 3034 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 234:
-#line 1236 "ntp_parser.y" /* yacc.c:1646 */
+ case 237:
+#line 1262 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
+ {
+ attr_val *av;
+
+ av = create_attr_sval((yyvsp[-2].Integer), (yyvsp[-1].String));
+ av->flag = (yyvsp[0].Integer);
+ APPEND_G_FIFO(cfgt.vars, av);
+ }
+#line 3046 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
+ break;
+
+ case 238:
+#line 1270 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ lex_flush_stack(); }
-#line 2975 "ntp_parser.c" /* yacc.c:1646 */
+#line 3052 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 235:
-#line 1238 "ntp_parser.y" /* yacc.c:1646 */
+ case 239:
+#line 1272 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ /* see drift_parm below for actions */ }
-#line 2981 "ntp_parser.c" /* yacc.c:1646 */
+#line 3058 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 236:
-#line 1240 "ntp_parser.y" /* yacc.c:1646 */
+ case 240:
+#line 1274 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ CONCAT_G_FIFOS(cfgt.logconfig, (yyvsp[0].Attr_val_fifo)); }
-#line 2987 "ntp_parser.c" /* yacc.c:1646 */
+#line 3064 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 237:
-#line 1242 "ntp_parser.y" /* yacc.c:1646 */
+ case 241:
+#line 1276 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ CONCAT_G_FIFOS(cfgt.phone, (yyvsp[0].String_fifo)); }
-#line 2993 "ntp_parser.c" /* yacc.c:1646 */
+#line 3070 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 238:
-#line 1244 "ntp_parser.y" /* yacc.c:1646 */
+ case 242:
+#line 1278 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
+ { CONCAT_G_FIFOS(cfgt.pollskewlist, (yyvsp[0].Attr_val_fifo)); }
+#line 3076 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
+ break;
+
+ case 243:
+#line 1280 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ APPEND_G_FIFO(cfgt.setvar, (yyvsp[0].Set_var)); }
-#line 2999 "ntp_parser.c" /* yacc.c:1646 */
+#line 3082 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 239:
-#line 1246 "ntp_parser.y" /* yacc.c:1646 */
+ case 244:
+#line 1282 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
addr_opts_node *aon;
@@ -3006,27 +3089,45 @@
aon = create_addr_opts_node((yyvsp[-1].Address_node), (yyvsp[0].Attr_val_fifo));
APPEND_G_FIFO(cfgt.trap, aon);
}
-#line 3010 "ntp_parser.c" /* yacc.c:1646 */
+#line 3093 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 240:
-#line 1253 "ntp_parser.y" /* yacc.c:1646 */
+ case 245:
+#line 1289 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ CONCAT_G_FIFOS(cfgt.ttl, (yyvsp[0].Attr_val_fifo)); }
-#line 3016 "ntp_parser.c" /* yacc.c:1646 */
+#line 3099 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 245:
-#line 1268 "ntp_parser.y" /* yacc.c:1646 */
+ case 250:
+#line 1304 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
#ifndef LEAP_SMEAR
yyerror("Built without LEAP_SMEAR support.");
#endif
}
-#line 3026 "ntp_parser.c" /* yacc.c:1646 */
+#line 3109 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
case 251:
-#line 1288 "ntp_parser.y" /* yacc.c:1646 */
+#line 1313 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
+ { (yyval.Integer) = FALSE; }
+#line 3115 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
+ break;
+
+ case 252:
+#line 1315 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
+ { (yyval.Integer) = TRUE; }
+#line 3121 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
+ break;
+
+ case 253:
+#line 1317 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
+ { (yyval.Integer) = TRUE; }
+#line 3127 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
+ break;
+
+ case 258:
+#line 1332 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
if (lex_from_file()) {
attr_val *av;
@@ -3037,11 +3138,11 @@
yyerror("driftfile remote configuration ignored");
}
}
-#line 3041 "ntp_parser.c" /* yacc.c:1646 */
+#line 3142 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 252:
-#line 1299 "ntp_parser.y" /* yacc.c:1646 */
+ case 259:
+#line 1343 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
if (lex_from_file()) {
attr_val *av;
@@ -3058,11 +3159,11 @@
yyerror("driftfile remote configuration ignored");
}
}
-#line 3062 "ntp_parser.c" /* yacc.c:1646 */
+#line 3163 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 253:
-#line 1316 "ntp_parser.y" /* yacc.c:1646 */
+ case 260:
+#line 1360 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
if (lex_from_file()) {
attr_val *av;
@@ -3072,71 +3173,122 @@
yyerror("driftfile remote configuration ignored");
}
}
-#line 3076 "ntp_parser.c" /* yacc.c:1646 */
+#line 3177 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 254:
-#line 1329 "ntp_parser.y" /* yacc.c:1646 */
+ case 261:
+#line 1373 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
+ { (yyval.Attr_val_fifo) = NULL; }
+#line 3183 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
+ break;
+
+ case 262:
+#line 1375 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
+ { (yyval.Attr_val_fifo) = append_gen_fifo((yyvsp[-1].Attr_val_fifo), (yyvsp[0].Attr_val)); }
+#line 3189 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
+ break;
+
+ case 263:
+#line 1380 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
+ {
+ if ((yyvsp[-2].Integer) < 0 || (yyvsp[0].Integer) < 0) {
+ /* bad numbers */
+ yyerror("pollskewlist: skew values must be >=0");
+ destroy_attr_val((yyvsp[-3].Attr_val));
+ (yyvsp[-3].Attr_val) = NULL;
+ } else if ((yyvsp[-3].Attr_val) == NULL) {
+ yyerror("pollskewlist: poll value must be 3-17, inclusive");
+ } else if ((yyvsp[-3].Attr_val)->attr <= 0) {
+ /* process default range */
+ (yyvsp[-3].Attr_val)->value.r.first = (yyvsp[-2].Integer);
+ (yyvsp[-3].Attr_val)->value.r.last = (yyvsp[0].Integer);
+ } else if ((yyvsp[-2].Integer) < (1 << ((yyvsp[-3].Attr_val)->attr - 1)) && (yyvsp[0].Integer) < (1 << ((yyvsp[-3].Attr_val)->attr - 1))) {
+ (yyvsp[-3].Attr_val)->value.r.first = (yyvsp[-2].Integer);
+ (yyvsp[-3].Attr_val)->value.r.last = (yyvsp[0].Integer);
+ } else {
+ yyerror("pollskewlist: randomization limit must be <= half the poll interval");
+ destroy_attr_val((yyvsp[-3].Attr_val));
+ (yyvsp[-3].Attr_val) = NULL;
+ }
+ (yyval.Attr_val) = (yyvsp[-3].Attr_val);
+ }
+#line 3216 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
+ break;
+
+ case 264:
+#line 1405 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
+ { (yyval.Attr_val) = ((yyvsp[0].Integer) >= 3 && (yyvsp[0].Integer) <= 17) ? create_attr_rval((yyvsp[0].Integer), 0, 0) : NULL; }
+#line 3222 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
+ break;
+
+ case 265:
+#line 1406 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
+ { (yyval.Attr_val) = create_attr_rval(-1, 0, 0); }
+#line 3228 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
+ break;
+
+ case 266:
+#line 1412 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ (yyval.Set_var) = create_setvar_node((yyvsp[-3].String), (yyvsp[-1].String), (yyvsp[0].Integer)); }
-#line 3082 "ntp_parser.c" /* yacc.c:1646 */
+#line 3234 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 256:
-#line 1335 "ntp_parser.y" /* yacc.c:1646 */
+ case 268:
+#line 1418 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ (yyval.Integer) = 0; }
-#line 3088 "ntp_parser.c" /* yacc.c:1646 */
+#line 3240 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 257:
-#line 1340 "ntp_parser.y" /* yacc.c:1646 */
+ case 269:
+#line 1423 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ (yyval.Attr_val_fifo) = NULL; }
-#line 3094 "ntp_parser.c" /* yacc.c:1646 */
+#line 3246 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 258:
-#line 1342 "ntp_parser.y" /* yacc.c:1646 */
+ case 270:
+#line 1425 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
(yyval.Attr_val_fifo) = (yyvsp[-1].Attr_val_fifo);
APPEND_G_FIFO((yyval.Attr_val_fifo), (yyvsp[0].Attr_val));
}
-#line 3103 "ntp_parser.c" /* yacc.c:1646 */
+#line 3255 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 259:
-#line 1350 "ntp_parser.y" /* yacc.c:1646 */
+ case 271:
+#line 1433 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ (yyval.Attr_val) = create_attr_ival((yyvsp[-1].Integer), (yyvsp[0].Integer)); }
-#line 3109 "ntp_parser.c" /* yacc.c:1646 */
+#line 3261 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 260:
-#line 1352 "ntp_parser.y" /* yacc.c:1646 */
+ case 272:
+#line 1435 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
(yyval.Attr_val) = create_attr_sval((yyvsp[-1].Integer), estrdup((yyvsp[0].Address_node)->address));
destroy_address_node((yyvsp[0].Address_node));
}
-#line 3118 "ntp_parser.c" /* yacc.c:1646 */
+#line 3270 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 261:
-#line 1360 "ntp_parser.y" /* yacc.c:1646 */
+ case 273:
+#line 1443 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
(yyval.Attr_val_fifo) = (yyvsp[-1].Attr_val_fifo);
APPEND_G_FIFO((yyval.Attr_val_fifo), (yyvsp[0].Attr_val));
}
-#line 3127 "ntp_parser.c" /* yacc.c:1646 */
+#line 3279 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 262:
-#line 1365 "ntp_parser.y" /* yacc.c:1646 */
+ case 274:
+#line 1448 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
(yyval.Attr_val_fifo) = NULL;
APPEND_G_FIFO((yyval.Attr_val_fifo), (yyvsp[0].Attr_val));
}
-#line 3136 "ntp_parser.c" /* yacc.c:1646 */
+#line 3288 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 263:
-#line 1373 "ntp_parser.y" /* yacc.c:1646 */
+ case 275:
+#line 1456 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
char prefix;
char * type;
@@ -3158,11 +3310,11 @@
(yyval.Attr_val) = create_attr_sval(prefix, estrdup(type));
YYFREE((yyvsp[0].String));
}
-#line 3162 "ntp_parser.c" /* yacc.c:1646 */
+#line 3314 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 264:
-#line 1398 "ntp_parser.y" /* yacc.c:1646 */
+ case 276:
+#line 1481 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
nic_rule_node *nrn;
@@ -3169,11 +3321,11 @@
nrn = create_nic_rule_node((yyvsp[0].Integer), NULL, (yyvsp[-1].Integer));
APPEND_G_FIFO(cfgt.nic_rules, nrn);
}
-#line 3173 "ntp_parser.c" /* yacc.c:1646 */
+#line 3325 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 265:
-#line 1405 "ntp_parser.y" /* yacc.c:1646 */
+ case 277:
+#line 1488 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
nic_rule_node *nrn;
@@ -3180,119 +3332,119 @@
nrn = create_nic_rule_node(0, (yyvsp[0].String), (yyvsp[-1].Integer));
APPEND_G_FIFO(cfgt.nic_rules, nrn);
}
-#line 3184 "ntp_parser.c" /* yacc.c:1646 */
+#line 3336 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 275:
-#line 1433 "ntp_parser.y" /* yacc.c:1646 */
+ case 287:
+#line 1516 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ CONCAT_G_FIFOS(cfgt.reset_counters, (yyvsp[0].Int_fifo)); }
-#line 3190 "ntp_parser.c" /* yacc.c:1646 */
+#line 3342 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 276:
-#line 1438 "ntp_parser.y" /* yacc.c:1646 */
+ case 288:
+#line 1521 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
(yyval.Int_fifo) = (yyvsp[-1].Int_fifo);
APPEND_G_FIFO((yyval.Int_fifo), create_int_node((yyvsp[0].Integer)));
}
-#line 3199 "ntp_parser.c" /* yacc.c:1646 */
+#line 3351 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 277:
-#line 1443 "ntp_parser.y" /* yacc.c:1646 */
+ case 289:
+#line 1526 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
(yyval.Int_fifo) = NULL;
APPEND_G_FIFO((yyval.Int_fifo), create_int_node((yyvsp[0].Integer)));
}
-#line 3208 "ntp_parser.c" /* yacc.c:1646 */
+#line 3360 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 285:
-#line 1467 "ntp_parser.y" /* yacc.c:1646 */
+ case 297:
+#line 1550 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
(yyval.Attr_val_fifo) = (yyvsp[-1].Attr_val_fifo);
APPEND_G_FIFO((yyval.Attr_val_fifo), create_int_node((yyvsp[0].Integer)));
}
-#line 3217 "ntp_parser.c" /* yacc.c:1646 */
+#line 3369 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 286:
-#line 1472 "ntp_parser.y" /* yacc.c:1646 */
+ case 298:
+#line 1555 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
(yyval.Attr_val_fifo) = NULL;
APPEND_G_FIFO((yyval.Attr_val_fifo), create_int_node((yyvsp[0].Integer)));
}
-#line 3226 "ntp_parser.c" /* yacc.c:1646 */
+#line 3378 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 287:
-#line 1480 "ntp_parser.y" /* yacc.c:1646 */
+ case 299:
+#line 1563 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
(yyval.Attr_val_fifo) = (yyvsp[-1].Attr_val_fifo);
APPEND_G_FIFO((yyval.Attr_val_fifo), (yyvsp[0].Attr_val));
}
-#line 3235 "ntp_parser.c" /* yacc.c:1646 */
+#line 3387 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 288:
-#line 1485 "ntp_parser.y" /* yacc.c:1646 */
+ case 300:
+#line 1568 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
(yyval.Attr_val_fifo) = NULL;
APPEND_G_FIFO((yyval.Attr_val_fifo), (yyvsp[0].Attr_val));
}
-#line 3244 "ntp_parser.c" /* yacc.c:1646 */
+#line 3396 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 289:
-#line 1493 "ntp_parser.y" /* yacc.c:1646 */
+ case 301:
+#line 1576 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ (yyval.Attr_val) = create_attr_ival('i', (yyvsp[0].Integer)); }
-#line 3250 "ntp_parser.c" /* yacc.c:1646 */
+#line 3402 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 291:
-#line 1499 "ntp_parser.y" /* yacc.c:1646 */
- { (yyval.Attr_val) = create_attr_rangeval('-', (yyvsp[-3].Integer), (yyvsp[-1].Integer)); }
-#line 3256 "ntp_parser.c" /* yacc.c:1646 */
+ case 303:
+#line 1582 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
+ { (yyval.Attr_val) = create_attr_rval('-', (yyvsp[-3].Integer), (yyvsp[-1].Integer)); }
+#line 3408 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 292:
-#line 1504 "ntp_parser.y" /* yacc.c:1646 */
+ case 304:
+#line 1587 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
(yyval.String_fifo) = (yyvsp[-1].String_fifo);
APPEND_G_FIFO((yyval.String_fifo), create_string_node((yyvsp[0].String)));
}
-#line 3265 "ntp_parser.c" /* yacc.c:1646 */
+#line 3417 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 293:
-#line 1509 "ntp_parser.y" /* yacc.c:1646 */
+ case 305:
+#line 1592 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
(yyval.String_fifo) = NULL;
APPEND_G_FIFO((yyval.String_fifo), create_string_node((yyvsp[0].String)));
}
-#line 3274 "ntp_parser.c" /* yacc.c:1646 */
+#line 3426 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 294:
-#line 1517 "ntp_parser.y" /* yacc.c:1646 */
+ case 306:
+#line 1600 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
(yyval.Address_fifo) = (yyvsp[-1].Address_fifo);
APPEND_G_FIFO((yyval.Address_fifo), (yyvsp[0].Address_node));
}
-#line 3283 "ntp_parser.c" /* yacc.c:1646 */
+#line 3435 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 295:
-#line 1522 "ntp_parser.y" /* yacc.c:1646 */
+ case 307:
+#line 1605 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
(yyval.Address_fifo) = NULL;
APPEND_G_FIFO((yyval.Address_fifo), (yyvsp[0].Address_node));
}
-#line 3292 "ntp_parser.c" /* yacc.c:1646 */
+#line 3444 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 296:
-#line 1530 "ntp_parser.y" /* yacc.c:1646 */
+ case 308:
+#line 1613 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
if ((yyvsp[0].Integer) != 0 && (yyvsp[0].Integer) != 1) {
yyerror("Integer value is not boolean (0 or 1). Assuming 1");
@@ -3301,35 +3453,35 @@
(yyval.Integer) = (yyvsp[0].Integer);
}
}
-#line 3305 "ntp_parser.c" /* yacc.c:1646 */
+#line 3457 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 297:
-#line 1538 "ntp_parser.y" /* yacc.c:1646 */
+ case 309:
+#line 1621 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ (yyval.Integer) = 1; }
-#line 3311 "ntp_parser.c" /* yacc.c:1646 */
+#line 3463 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 298:
-#line 1539 "ntp_parser.y" /* yacc.c:1646 */
+ case 310:
+#line 1622 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ (yyval.Integer) = 0; }
-#line 3317 "ntp_parser.c" /* yacc.c:1646 */
+#line 3469 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 299:
-#line 1543 "ntp_parser.y" /* yacc.c:1646 */
+ case 311:
+#line 1626 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ (yyval.Double) = (double)(yyvsp[0].Integer); }
-#line 3323 "ntp_parser.c" /* yacc.c:1646 */
+#line 3475 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 301:
-#line 1549 "ntp_parser.y" /* yacc.c:1646 */
+ case 313:
+#line 1632 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ (yyval.Integer) = basedate_eval_string((yyvsp[0].String)); YYFREE((yyvsp[0].String)); }
-#line 3329 "ntp_parser.c" /* yacc.c:1646 */
+#line 3481 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 302:
-#line 1557 "ntp_parser.y" /* yacc.c:1646 */
+ case 314:
+#line 1640 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
sim_node *sn;
@@ -3339,125 +3491,125 @@
/* Revert from ; to \n for end-of-command */
old_config_style = 1;
}
-#line 3343 "ntp_parser.c" /* yacc.c:1646 */
+#line 3495 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 303:
-#line 1574 "ntp_parser.y" /* yacc.c:1646 */
+ case 315:
+#line 1657 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ old_config_style = 0; }
-#line 3349 "ntp_parser.c" /* yacc.c:1646 */
+#line 3501 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 304:
-#line 1579 "ntp_parser.y" /* yacc.c:1646 */
+ case 316:
+#line 1662 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
(yyval.Attr_val_fifo) = (yyvsp[-2].Attr_val_fifo);
APPEND_G_FIFO((yyval.Attr_val_fifo), (yyvsp[-1].Attr_val));
}
-#line 3358 "ntp_parser.c" /* yacc.c:1646 */
+#line 3510 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 305:
-#line 1584 "ntp_parser.y" /* yacc.c:1646 */
+ case 317:
+#line 1667 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
(yyval.Attr_val_fifo) = NULL;
APPEND_G_FIFO((yyval.Attr_val_fifo), (yyvsp[-1].Attr_val));
}
-#line 3367 "ntp_parser.c" /* yacc.c:1646 */
+#line 3519 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 306:
-#line 1592 "ntp_parser.y" /* yacc.c:1646 */
+ case 318:
+#line 1675 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ (yyval.Attr_val) = create_attr_dval((yyvsp[-2].Integer), (yyvsp[0].Double)); }
-#line 3373 "ntp_parser.c" /* yacc.c:1646 */
+#line 3525 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 309:
-#line 1602 "ntp_parser.y" /* yacc.c:1646 */
+ case 321:
+#line 1685 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
(yyval.Sim_server_fifo) = (yyvsp[-1].Sim_server_fifo);
APPEND_G_FIFO((yyval.Sim_server_fifo), (yyvsp[0].Sim_server));
}
-#line 3382 "ntp_parser.c" /* yacc.c:1646 */
+#line 3534 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 310:
-#line 1607 "ntp_parser.y" /* yacc.c:1646 */
+ case 322:
+#line 1690 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
(yyval.Sim_server_fifo) = NULL;
APPEND_G_FIFO((yyval.Sim_server_fifo), (yyvsp[0].Sim_server));
}
-#line 3391 "ntp_parser.c" /* yacc.c:1646 */
+#line 3543 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 311:
-#line 1615 "ntp_parser.y" /* yacc.c:1646 */
+ case 323:
+#line 1698 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ (yyval.Sim_server) = ONLY_SIM(create_sim_server((yyvsp[-4].Address_node), (yyvsp[-2].Double), (yyvsp[-1].Sim_script_fifo))); }
-#line 3397 "ntp_parser.c" /* yacc.c:1646 */
+#line 3549 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 312:
-#line 1620 "ntp_parser.y" /* yacc.c:1646 */
+ case 324:
+#line 1703 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ (yyval.Double) = (yyvsp[-1].Double); }
-#line 3403 "ntp_parser.c" /* yacc.c:1646 */
+#line 3555 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 313:
-#line 1625 "ntp_parser.y" /* yacc.c:1646 */
+ case 325:
+#line 1708 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ (yyval.Address_node) = (yyvsp[0].Address_node); }
-#line 3409 "ntp_parser.c" /* yacc.c:1646 */
+#line 3561 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 314:
-#line 1630 "ntp_parser.y" /* yacc.c:1646 */
+ case 326:
+#line 1713 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
(yyval.Sim_script_fifo) = (yyvsp[-1].Sim_script_fifo);
APPEND_G_FIFO((yyval.Sim_script_fifo), (yyvsp[0].Sim_script));
}
-#line 3418 "ntp_parser.c" /* yacc.c:1646 */
+#line 3570 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 315:
-#line 1635 "ntp_parser.y" /* yacc.c:1646 */
+ case 327:
+#line 1718 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
(yyval.Sim_script_fifo) = NULL;
APPEND_G_FIFO((yyval.Sim_script_fifo), (yyvsp[0].Sim_script));
}
-#line 3427 "ntp_parser.c" /* yacc.c:1646 */
+#line 3579 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 316:
-#line 1643 "ntp_parser.y" /* yacc.c:1646 */
+ case 328:
+#line 1726 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ (yyval.Sim_script) = ONLY_SIM(create_sim_script_info((yyvsp[-3].Double), (yyvsp[-1].Attr_val_fifo))); }
-#line 3433 "ntp_parser.c" /* yacc.c:1646 */
+#line 3585 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 317:
-#line 1648 "ntp_parser.y" /* yacc.c:1646 */
+ case 329:
+#line 1731 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
(yyval.Attr_val_fifo) = (yyvsp[-2].Attr_val_fifo);
APPEND_G_FIFO((yyval.Attr_val_fifo), (yyvsp[-1].Attr_val));
}
-#line 3442 "ntp_parser.c" /* yacc.c:1646 */
+#line 3594 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 318:
-#line 1653 "ntp_parser.y" /* yacc.c:1646 */
+ case 330:
+#line 1736 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{
(yyval.Attr_val_fifo) = NULL;
APPEND_G_FIFO((yyval.Attr_val_fifo), (yyvsp[-1].Attr_val));
}
-#line 3451 "ntp_parser.c" /* yacc.c:1646 */
+#line 3603 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
- case 319:
-#line 1661 "ntp_parser.y" /* yacc.c:1646 */
+ case 331:
+#line 1744 "../../ntpd/ntp_parser.y" /* yacc.c:1646 */
{ (yyval.Attr_val) = create_attr_dval((yyvsp[-2].Integer), (yyvsp[0].Double)); }
-#line 3457 "ntp_parser.c" /* yacc.c:1646 */
+#line 3609 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
break;
-#line 3461 "ntp_parser.c" /* yacc.c:1646 */
+#line 3613 "../../ntpd/ntp_parser.c" /* yacc.c:1646 */
default: break;
}
/* User semantic actions sometimes alter yychar, and that requires
@@ -3685,7 +3837,7 @@
#endif
return yyresult;
}
-#line 1672 "ntp_parser.y" /* yacc.c:1906 */
+#line 1755 "../../ntpd/ntp_parser.y" /* yacc.c:1906 */
void
--- contrib/ntp/ntpd/ntp_parser.h.orig
+++ contrib/ntp/ntpd/ntp_parser.h
@@ -30,8 +30,8 @@
This special exception was added by the Free Software Foundation in
version 2.2 of Bison. */
-#ifndef YY_YY_NTP_PARSER_H_INCLUDED
-# define YY_YY_NTP_PARSER_H_INCLUDED
+#ifndef YY_YY__NTPD_NTP_PARSER_H_INCLUDED
+# define YY_YY__NTPD_NTP_PARSER_H_INCLUDED
/* Debug traces. */
#ifndef YYDEBUG
# define YYDEBUG 1
@@ -64,187 +64,196 @@
T_Burst = 274,
T_Calibrate = 275,
T_Ceiling = 276,
- T_Clockstats = 277,
- T_Cohort = 278,
- T_ControlKey = 279,
- T_Crypto = 280,
- T_Cryptostats = 281,
- T_Ctl = 282,
- T_Day = 283,
- T_Default = 284,
- T_Digest = 285,
- T_Disable = 286,
- T_Discard = 287,
- T_Dispersion = 288,
- T_Double = 289,
- T_Driftfile = 290,
- T_Drop = 291,
- T_Dscp = 292,
- T_Ellipsis = 293,
- T_Enable = 294,
- T_End = 295,
- T_Epeer = 296,
- T_False = 297,
- T_File = 298,
- T_Filegen = 299,
- T_Filenum = 300,
- T_Flag1 = 301,
- T_Flag2 = 302,
- T_Flag3 = 303,
- T_Flag4 = 304,
- T_Flake = 305,
- T_Floor = 306,
- T_Freq = 307,
- T_Fudge = 308,
- T_Host = 309,
- T_Huffpuff = 310,
- T_Iburst = 311,
- T_Ident = 312,
- T_Ignore = 313,
- T_Incalloc = 314,
- T_Incmem = 315,
- T_Initalloc = 316,
- T_Initmem = 317,
- T_Includefile = 318,
- T_Integer = 319,
- T_Interface = 320,
- T_Intrange = 321,
- T_Io = 322,
- T_Ippeerlimit = 323,
- T_Ipv4 = 324,
- T_Ipv4_flag = 325,
- T_Ipv6 = 326,
- T_Ipv6_flag = 327,
- T_Kernel = 328,
- T_Key = 329,
- T_Keys = 330,
- T_Keysdir = 331,
- T_Kod = 332,
- T_Mssntp = 333,
- T_Leapfile = 334,
- T_Leapsmearinterval = 335,
- T_Limited = 336,
- T_Link = 337,
- T_Listen = 338,
- T_Logconfig = 339,
- T_Logfile = 340,
- T_Loopstats = 341,
- T_Lowpriotrap = 342,
- T_Manycastclient = 343,
- T_Manycastserver = 344,
- T_Mask = 345,
- T_Maxage = 346,
- T_Maxclock = 347,
- T_Maxdepth = 348,
- T_Maxdist = 349,
- T_Maxmem = 350,
- T_Maxpoll = 351,
- T_Mdnstries = 352,
- T_Mem = 353,
- T_Memlock = 354,
- T_Minclock = 355,
- T_Mindepth = 356,
- T_Mindist = 357,
- T_Minimum = 358,
- T_Minpoll = 359,
- T_Minsane = 360,
- T_Mode = 361,
- T_Mode7 = 362,
- T_Monitor = 363,
- T_Month = 364,
- T_Mru = 365,
- T_Multicastclient = 366,
- T_Nic = 367,
- T_Nolink = 368,
- T_Nomodify = 369,
- T_Nomrulist = 370,
- T_None = 371,
- T_Nonvolatile = 372,
- T_Noepeer = 373,
- T_Nopeer = 374,
- T_Noquery = 375,
- T_Noselect = 376,
- T_Noserve = 377,
- T_Notrap = 378,
- T_Notrust = 379,
- T_Ntp = 380,
- T_Ntpport = 381,
- T_NtpSignDsocket = 382,
- T_Orphan = 383,
- T_Orphanwait = 384,
- T_PCEdigest = 385,
- T_Panic = 386,
- T_Peer = 387,
- T_Peerstats = 388,
- T_Phone = 389,
- T_Pid = 390,
- T_Pidfile = 391,
- T_Pool = 392,
- T_Port = 393,
- T_Preempt = 394,
- T_Prefer = 395,
- T_Protostats = 396,
- T_Pw = 397,
- T_Randfile = 398,
- T_Rawstats = 399,
- T_Refid = 400,
- T_Requestkey = 401,
- T_Reset = 402,
- T_Restrict = 403,
- T_Revoke = 404,
- T_Rlimit = 405,
- T_Saveconfigdir = 406,
- T_Server = 407,
- T_Setvar = 408,
- T_Source = 409,
- T_Stacksize = 410,
- T_Statistics = 411,
- T_Stats = 412,
- T_Statsdir = 413,
- T_Step = 414,
- T_Stepback = 415,
- T_Stepfwd = 416,
- T_Stepout = 417,
- T_Stratum = 418,
- T_String = 419,
- T_Sys = 420,
- T_Sysstats = 421,
- T_Tick = 422,
- T_Time1 = 423,
- T_Time2 = 424,
- T_Timer = 425,
- T_Timingstats = 426,
- T_Tinker = 427,
- T_Tos = 428,
- T_Trap = 429,
- T_True = 430,
- T_Trustedkey = 431,
- T_Ttl = 432,
- T_Type = 433,
- T_U_int = 434,
- T_UEcrypto = 435,
- T_UEcryptonak = 436,
- T_UEdigest = 437,
- T_Unconfig = 438,
- T_Unpeer = 439,
- T_Version = 440,
- T_WanderThreshold = 441,
- T_Week = 442,
- T_Wildcard = 443,
- T_Xleave = 444,
- T_Year = 445,
- T_Flag = 446,
- T_EOC = 447,
- T_Simulate = 448,
- T_Beep_Delay = 449,
- T_Sim_Duration = 450,
- T_Server_Offset = 451,
- T_Duration = 452,
- T_Freq_Offset = 453,
- T_Wander = 454,
- T_Jitter = 455,
- T_Prop_Delay = 456,
- T_Proc_Delay = 457
+ T_Checkhash = 277,
+ T_Clockstats = 278,
+ T_Cohort = 279,
+ T_ControlKey = 280,
+ T_Crypto = 281,
+ T_Cryptostats = 282,
+ T_Ctl = 283,
+ T_Day = 284,
+ T_Default = 285,
+ T_Digest = 286,
+ T_Disable = 287,
+ T_Discard = 288,
+ T_Dispersion = 289,
+ T_Double = 290,
+ T_Driftfile = 291,
+ T_Drop = 292,
+ T_Dscp = 293,
+ T_Ellipsis = 294,
+ T_Enable = 295,
+ T_End = 296,
+ T_Epeer = 297,
+ T_False = 298,
+ T_File = 299,
+ T_Filegen = 300,
+ T_Filenum = 301,
+ T_Flag1 = 302,
+ T_Flag2 = 303,
+ T_Flag3 = 304,
+ T_Flag4 = 305,
+ T_Flake = 306,
+ T_Floor = 307,
+ T_Freq = 308,
+ T_Fudge = 309,
+ T_Fuzz = 310,
+ T_Host = 311,
+ T_Huffpuff = 312,
+ T_Iburst = 313,
+ T_Ident = 314,
+ T_Ignore = 315,
+ T_Ignorehash = 316,
+ T_Incalloc = 317,
+ T_Incmem = 318,
+ T_Initalloc = 319,
+ T_Initmem = 320,
+ T_Includefile = 321,
+ T_Integer = 322,
+ T_Interface = 323,
+ T_Intrange = 324,
+ T_Io = 325,
+ T_Ippeerlimit = 326,
+ T_Ipv4 = 327,
+ T_Ipv4_flag = 328,
+ T_Ipv6 = 329,
+ T_Ipv6_flag = 330,
+ T_Kernel = 331,
+ T_Key = 332,
+ T_Keys = 333,
+ T_Keysdir = 334,
+ T_Kod = 335,
+ T_Leapfile = 336,
+ T_Leapsmearinterval = 337,
+ T_Limited = 338,
+ T_Link = 339,
+ T_Listen = 340,
+ T_Logconfig = 341,
+ T_Logfile = 342,
+ T_Loopstats = 343,
+ T_Lowpriotrap = 344,
+ T_Manycastclient = 345,
+ T_Manycastserver = 346,
+ T_Mask = 347,
+ T_Maxage = 348,
+ T_Maxclock = 349,
+ T_Maxdepth = 350,
+ T_Maxdist = 351,
+ T_Maxmem = 352,
+ T_Maxpoll = 353,
+ T_Mdnstries = 354,
+ T_Mem = 355,
+ T_Memlock = 356,
+ T_Minclock = 357,
+ T_Mindepth = 358,
+ T_Mindist = 359,
+ T_Minimum = 360,
+ T_Minjitter = 361,
+ T_Minpoll = 362,
+ T_Minsane = 363,
+ T_Mode = 364,
+ T_Mode7 = 365,
+ T_Monitor = 366,
+ T_Month = 367,
+ T_Mru = 368,
+ T_Mssntp = 369,
+ T_Multicastclient = 370,
+ T_Nic = 371,
+ T_Nolink = 372,
+ T_Nomodify = 373,
+ T_Nomrulist = 374,
+ T_None = 375,
+ T_Nonvolatile = 376,
+ T_Noepeer = 377,
+ T_Nopeer = 378,
+ T_Noquery = 379,
+ T_Noselect = 380,
+ T_Noserve = 381,
+ T_Notrap = 382,
+ T_Notrust = 383,
+ T_Ntp = 384,
+ T_Ntpport = 385,
+ T_NtpSignDsocket = 386,
+ T_Orphan = 387,
+ T_Orphanwait = 388,
+ T_PCEdigest = 389,
+ T_Panic = 390,
+ T_Peer = 391,
+ T_Peerstats = 392,
+ T_Phone = 393,
+ T_Pid = 394,
+ T_Pidfile = 395,
+ T_Poll = 396,
+ T_PollSkewList = 397,
+ T_Pool = 398,
+ T_Port = 399,
+ T_Preempt = 400,
+ T_Prefer = 401,
+ T_Protostats = 402,
+ T_Pw = 403,
+ T_Randfile = 404,
+ T_Rawstats = 405,
+ T_Refid = 406,
+ T_Requestkey = 407,
+ T_Reset = 408,
+ T_Restrict = 409,
+ T_Revoke = 410,
+ T_Rlimit = 411,
+ T_Saveconfigdir = 412,
+ T_Server = 413,
+ T_Serverresponse = 414,
+ T_ServerresponseFuzz = 415,
+ T_Setvar = 416,
+ T_Source = 417,
+ T_Stacksize = 418,
+ T_Statistics = 419,
+ T_Stats = 420,
+ T_Statsdir = 421,
+ T_Step = 422,
+ T_Stepback = 423,
+ T_Stepfwd = 424,
+ T_Stepout = 425,
+ T_Stratum = 426,
+ T_String = 427,
+ T_Sys = 428,
+ T_Sysstats = 429,
+ T_Tick = 430,
+ T_Time1 = 431,
+ T_Time2 = 432,
+ T_Timer = 433,
+ T_Timingstats = 434,
+ T_Tinker = 435,
+ T_Tos = 436,
+ T_Trap = 437,
+ T_True = 438,
+ T_Trustedkey = 439,
+ T_Ttl = 440,
+ T_Type = 441,
+ T_U_int = 442,
+ T_UEcrypto = 443,
+ T_UEcryptonak = 444,
+ T_UEdigest = 445,
+ T_Unconfig = 446,
+ T_Unpeer = 447,
+ T_Version = 448,
+ T_WanderThreshold = 449,
+ T_Week = 450,
+ T_Wildcard = 451,
+ T_Xleave = 452,
+ T_Xmtnonce = 453,
+ T_Year = 454,
+ T_Flag = 455,
+ T_EOC = 456,
+ T_Simulate = 457,
+ T_Beep_Delay = 458,
+ T_Sim_Duration = 459,
+ T_Server_Offset = 460,
+ T_Duration = 461,
+ T_Freq_Offset = 462,
+ T_Wander = 463,
+ T_Jitter = 464,
+ T_Prop_Delay = 465,
+ T_Proc_Delay = 466
};
#endif
/* Tokens. */
@@ -267,187 +276,196 @@
#define T_Burst 274
#define T_Calibrate 275
#define T_Ceiling 276
-#define T_Clockstats 277
-#define T_Cohort 278
-#define T_ControlKey 279
-#define T_Crypto 280
-#define T_Cryptostats 281
-#define T_Ctl 282
-#define T_Day 283
-#define T_Default 284
-#define T_Digest 285
-#define T_Disable 286
-#define T_Discard 287
-#define T_Dispersion 288
-#define T_Double 289
-#define T_Driftfile 290
-#define T_Drop 291
-#define T_Dscp 292
-#define T_Ellipsis 293
-#define T_Enable 294
-#define T_End 295
-#define T_Epeer 296
-#define T_False 297
-#define T_File 298
-#define T_Filegen 299
-#define T_Filenum 300
-#define T_Flag1 301
-#define T_Flag2 302
-#define T_Flag3 303
-#define T_Flag4 304
-#define T_Flake 305
-#define T_Floor 306
-#define T_Freq 307
-#define T_Fudge 308
-#define T_Host 309
-#define T_Huffpuff 310
-#define T_Iburst 311
-#define T_Ident 312
-#define T_Ignore 313
-#define T_Incalloc 314
-#define T_Incmem 315
-#define T_Initalloc 316
-#define T_Initmem 317
-#define T_Includefile 318
-#define T_Integer 319
-#define T_Interface 320
-#define T_Intrange 321
-#define T_Io 322
-#define T_Ippeerlimit 323
-#define T_Ipv4 324
-#define T_Ipv4_flag 325
-#define T_Ipv6 326
-#define T_Ipv6_flag 327
-#define T_Kernel 328
-#define T_Key 329
-#define T_Keys 330
-#define T_Keysdir 331
-#define T_Kod 332
-#define T_Mssntp 333
-#define T_Leapfile 334
-#define T_Leapsmearinterval 335
-#define T_Limited 336
-#define T_Link 337
-#define T_Listen 338
-#define T_Logconfig 339
-#define T_Logfile 340
-#define T_Loopstats 341
-#define T_Lowpriotrap 342
-#define T_Manycastclient 343
-#define T_Manycastserver 344
-#define T_Mask 345
-#define T_Maxage 346
-#define T_Maxclock 347
-#define T_Maxdepth 348
-#define T_Maxdist 349
-#define T_Maxmem 350
-#define T_Maxpoll 351
-#define T_Mdnstries 352
-#define T_Mem 353
-#define T_Memlock 354
-#define T_Minclock 355
-#define T_Mindepth 356
-#define T_Mindist 357
-#define T_Minimum 358
-#define T_Minpoll 359
-#define T_Minsane 360
-#define T_Mode 361
-#define T_Mode7 362
-#define T_Monitor 363
-#define T_Month 364
-#define T_Mru 365
-#define T_Multicastclient 366
-#define T_Nic 367
-#define T_Nolink 368
-#define T_Nomodify 369
-#define T_Nomrulist 370
-#define T_None 371
-#define T_Nonvolatile 372
-#define T_Noepeer 373
-#define T_Nopeer 374
-#define T_Noquery 375
-#define T_Noselect 376
-#define T_Noserve 377
-#define T_Notrap 378
-#define T_Notrust 379
-#define T_Ntp 380
-#define T_Ntpport 381
-#define T_NtpSignDsocket 382
-#define T_Orphan 383
-#define T_Orphanwait 384
-#define T_PCEdigest 385
-#define T_Panic 386
-#define T_Peer 387
-#define T_Peerstats 388
-#define T_Phone 389
-#define T_Pid 390
-#define T_Pidfile 391
-#define T_Pool 392
-#define T_Port 393
-#define T_Preempt 394
-#define T_Prefer 395
-#define T_Protostats 396
-#define T_Pw 397
-#define T_Randfile 398
-#define T_Rawstats 399
-#define T_Refid 400
-#define T_Requestkey 401
-#define T_Reset 402
-#define T_Restrict 403
-#define T_Revoke 404
-#define T_Rlimit 405
-#define T_Saveconfigdir 406
-#define T_Server 407
-#define T_Setvar 408
-#define T_Source 409
-#define T_Stacksize 410
-#define T_Statistics 411
-#define T_Stats 412
-#define T_Statsdir 413
-#define T_Step 414
-#define T_Stepback 415
-#define T_Stepfwd 416
-#define T_Stepout 417
-#define T_Stratum 418
-#define T_String 419
-#define T_Sys 420
-#define T_Sysstats 421
-#define T_Tick 422
-#define T_Time1 423
-#define T_Time2 424
-#define T_Timer 425
-#define T_Timingstats 426
-#define T_Tinker 427
-#define T_Tos 428
-#define T_Trap 429
-#define T_True 430
-#define T_Trustedkey 431
-#define T_Ttl 432
-#define T_Type 433
-#define T_U_int 434
-#define T_UEcrypto 435
-#define T_UEcryptonak 436
-#define T_UEdigest 437
-#define T_Unconfig 438
-#define T_Unpeer 439
-#define T_Version 440
-#define T_WanderThreshold 441
-#define T_Week 442
-#define T_Wildcard 443
-#define T_Xleave 444
-#define T_Year 445
-#define T_Flag 446
-#define T_EOC 447
-#define T_Simulate 448
-#define T_Beep_Delay 449
-#define T_Sim_Duration 450
-#define T_Server_Offset 451
-#define T_Duration 452
-#define T_Freq_Offset 453
-#define T_Wander 454
-#define T_Jitter 455
-#define T_Prop_Delay 456
-#define T_Proc_Delay 457
+#define T_Checkhash 277
+#define T_Clockstats 278
+#define T_Cohort 279
+#define T_ControlKey 280
+#define T_Crypto 281
+#define T_Cryptostats 282
+#define T_Ctl 283
+#define T_Day 284
+#define T_Default 285
+#define T_Digest 286
+#define T_Disable 287
+#define T_Discard 288
+#define T_Dispersion 289
+#define T_Double 290
+#define T_Driftfile 291
+#define T_Drop 292
+#define T_Dscp 293
+#define T_Ellipsis 294
+#define T_Enable 295
+#define T_End 296
+#define T_Epeer 297
+#define T_False 298
+#define T_File 299
+#define T_Filegen 300
+#define T_Filenum 301
+#define T_Flag1 302
+#define T_Flag2 303
+#define T_Flag3 304
+#define T_Flag4 305
+#define T_Flake 306
+#define T_Floor 307
+#define T_Freq 308
+#define T_Fudge 309
+#define T_Fuzz 310
+#define T_Host 311
+#define T_Huffpuff 312
+#define T_Iburst 313
+#define T_Ident 314
+#define T_Ignore 315
+#define T_Ignorehash 316
+#define T_Incalloc 317
+#define T_Incmem 318
+#define T_Initalloc 319
+#define T_Initmem 320
+#define T_Includefile 321
+#define T_Integer 322
+#define T_Interface 323
+#define T_Intrange 324
+#define T_Io 325
+#define T_Ippeerlimit 326
+#define T_Ipv4 327
+#define T_Ipv4_flag 328
+#define T_Ipv6 329
+#define T_Ipv6_flag 330
+#define T_Kernel 331
+#define T_Key 332
+#define T_Keys 333
+#define T_Keysdir 334
+#define T_Kod 335
+#define T_Leapfile 336
+#define T_Leapsmearinterval 337
+#define T_Limited 338
+#define T_Link 339
+#define T_Listen 340
+#define T_Logconfig 341
+#define T_Logfile 342
+#define T_Loopstats 343
+#define T_Lowpriotrap 344
+#define T_Manycastclient 345
+#define T_Manycastserver 346
+#define T_Mask 347
+#define T_Maxage 348
+#define T_Maxclock 349
+#define T_Maxdepth 350
+#define T_Maxdist 351
+#define T_Maxmem 352
+#define T_Maxpoll 353
+#define T_Mdnstries 354
+#define T_Mem 355
+#define T_Memlock 356
+#define T_Minclock 357
+#define T_Mindepth 358
+#define T_Mindist 359
+#define T_Minimum 360
+#define T_Minjitter 361
+#define T_Minpoll 362
+#define T_Minsane 363
+#define T_Mode 364
+#define T_Mode7 365
+#define T_Monitor 366
+#define T_Month 367
+#define T_Mru 368
+#define T_Mssntp 369
+#define T_Multicastclient 370
+#define T_Nic 371
+#define T_Nolink 372
+#define T_Nomodify 373
+#define T_Nomrulist 374
+#define T_None 375
+#define T_Nonvolatile 376
+#define T_Noepeer 377
+#define T_Nopeer 378
+#define T_Noquery 379
+#define T_Noselect 380
+#define T_Noserve 381
+#define T_Notrap 382
+#define T_Notrust 383
+#define T_Ntp 384
+#define T_Ntpport 385
+#define T_NtpSignDsocket 386
+#define T_Orphan 387
+#define T_Orphanwait 388
+#define T_PCEdigest 389
+#define T_Panic 390
+#define T_Peer 391
+#define T_Peerstats 392
+#define T_Phone 393
+#define T_Pid 394
+#define T_Pidfile 395
+#define T_Poll 396
+#define T_PollSkewList 397
+#define T_Pool 398
+#define T_Port 399
+#define T_Preempt 400
+#define T_Prefer 401
+#define T_Protostats 402
+#define T_Pw 403
+#define T_Randfile 404
+#define T_Rawstats 405
+#define T_Refid 406
+#define T_Requestkey 407
+#define T_Reset 408
+#define T_Restrict 409
+#define T_Revoke 410
+#define T_Rlimit 411
+#define T_Saveconfigdir 412
+#define T_Server 413
+#define T_Serverresponse 414
+#define T_ServerresponseFuzz 415
+#define T_Setvar 416
+#define T_Source 417
+#define T_Stacksize 418
+#define T_Statistics 419
+#define T_Stats 420
+#define T_Statsdir 421
+#define T_Step 422
+#define T_Stepback 423
+#define T_Stepfwd 424
+#define T_Stepout 425
+#define T_Stratum 426
+#define T_String 427
+#define T_Sys 428
+#define T_Sysstats 429
+#define T_Tick 430
+#define T_Time1 431
+#define T_Time2 432
+#define T_Timer 433
+#define T_Timingstats 434
+#define T_Tinker 435
+#define T_Tos 436
+#define T_Trap 437
+#define T_True 438
+#define T_Trustedkey 439
+#define T_Ttl 440
+#define T_Type 441
+#define T_U_int 442
+#define T_UEcrypto 443
+#define T_UEcryptonak 444
+#define T_UEdigest 445
+#define T_Unconfig 446
+#define T_Unpeer 447
+#define T_Version 448
+#define T_WanderThreshold 449
+#define T_Week 450
+#define T_Wildcard 451
+#define T_Xleave 452
+#define T_Xmtnonce 453
+#define T_Year 454
+#define T_Flag 455
+#define T_EOC 456
+#define T_Simulate 457
+#define T_Beep_Delay 458
+#define T_Sim_Duration 459
+#define T_Server_Offset 460
+#define T_Duration 461
+#define T_Freq_Offset 462
+#define T_Wander 463
+#define T_Jitter 464
+#define T_Prop_Delay 465
+#define T_Proc_Delay 466
/* Value type. */
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
@@ -454,7 +472,7 @@
union YYSTYPE
{
-#line 52 "ntp_parser.y" /* yacc.c:1909 */
+#line 52 "../../ntpd/ntp_parser.y" /* yacc.c:1909 */
char * String;
double Double;
@@ -473,7 +491,7 @@
script_info * Sim_script;
script_info_fifo * Sim_script_fifo;
-#line 477 "ntp_parser.h" /* yacc.c:1909 */
+#line 495 "../../ntpd/ntp_parser.h" /* yacc.c:1909 */
};
typedef union YYSTYPE YYSTYPE;
@@ -486,4 +504,4 @@
int yyparse (void);
-#endif /* !YY_YY_NTP_PARSER_H_INCLUDED */
+#endif /* !YY_YY__NTPD_NTP_PARSER_H_INCLUDED */
--- contrib/ntp/ntpd/ntp_peer.c.orig
+++ contrib/ntp/ntpd/ntp_peer.c
@@ -844,11 +844,13 @@
return NULL;
}
+#if 0
DPRINTF(1, ("newpeer(%s) found no existing and %d other associations\n",
(hostname)
? hostname
: stoa(srcadr),
ip_count));
+#endif
/* Check ippeerlimit wrt ip_count */
if (ippeerlimit > -1) {
--- contrib/ntp/ntpd/ntp_proto.c.orig
+++ contrib/ntp/ntpd/ntp_proto.c
@@ -15,6 +15,7 @@
#include "ntp_control.h"
#include "ntp_string.h"
#include "ntp_leapsec.h"
+#include "ntp_psl.h"
#include "refidsmear.h"
#include "lib_strbuf.h"
@@ -31,6 +32,13 @@
# define BDELAY_DEFAULT (-0.050)
#endif
+#define SRVFUZ_SHIFT 6 /* 64 seconds */
+#define SRVRSP_FUZZ(x) \
+ do { \
+ x.l_uf &= 0; \
+ x.l_ui &= ~((1 << SRVFUZ_SHIFT) - 1U); \
+ } while(0)
+
/*
* This macro defines the authentication state. If x is 1 authentication
* is required; otherwise it is optional.
@@ -79,6 +87,11 @@
#define POOL_SOLICIT_WINDOW 8
/*
+ * flag bits propagated from pool to individual peers
+ */
+#define POOL_FLAG_PMASK (FLAG_IBURST | FLAG_NOSELECT)
+
+/*
* peer_select groups statistics for a peer used by clock_select() and
* clock_cluster().
*/
@@ -97,10 +110,16 @@
u_char xmt_leap; /* leap indicator sent in client requests, set up by set_sys_leap() */
u_char sys_stratum; /* system stratum */
s_char sys_precision; /* local clock precision (log2 s) */
-double sys_rootdelay; /* roundtrip delay to primary source */
-double sys_rootdisp; /* dispersion to primary source */
+double sys_rootdelay; /* roundtrip delay to root (primary source) */
+double sys_rootdisp; /* dispersion to root (primary source) */
+double prev_rootdisp; /* previous root dispersion */
+double p2_rootdisp; /* previous previous root dispersion */
u_int32 sys_refid; /* reference id (network byte order) */
l_fp sys_reftime; /* last update time */
+l_fp prev_reftime; /* previous sys_reftime */
+l_fp p2_reftime; /* previous previous sys_reftime */
+u_long prev_time; /* "current_time" when saved prev_time */
+u_long p2_time; /* previous prev_time */
struct peer *sys_peer; /* current peer */
#ifdef LEAP_SMEAR
@@ -337,11 +356,18 @@
/*
* The ORIGIN must match, or this cannot be a valid NAK, either.
*/
+
+ if (FLAG_LOOPNONCE & peer->flags) {
+ myorg = &peer->nonce;
+ } else {
+ if (peer->flip > 0) {
+ myorg = &peer->borg;
+ } else {
+ myorg = &peer->aorg;
+ }
+ }
+
NTOHL_FP(&rpkt->org, &p_org);
- if (peer->flip > 0)
- myorg = &peer->borg;
- else
- myorg = &peer->aorg;
if (L_ISZERO(&p_org) ||
L_ISZERO( myorg) ||
@@ -387,7 +413,7 @@
*/
if (peer->cast_flags & (MDF_BCAST | MDF_MCAST)) {
peer->outdate = current_time;
- poll_update(peer, hpoll);
+ poll_update(peer, hpoll, 0);
if (sys_leap != LEAP_NOTINSYNC)
peer_xmit(peer);
return;
@@ -408,7 +434,7 @@
*/
if (peer->cast_flags & MDF_ACAST) {
peer->outdate = current_time;
- poll_update(peer, hpoll);
+ poll_update(peer, hpoll, 0);
if (peer->unreach > sys_beacon) {
peer->unreach = 0;
peer->ttl = 0;
@@ -437,7 +463,7 @@
*/
if (peer->cast_flags & MDF_POOL) {
peer->outdate = current_time;
- poll_update(peer, hpoll);
+ poll_update(peer, hpoll, 0);
if ( (peer_associations <= 2 * sys_maxclock)
&& ( peer_associations < sys_maxclock
|| sys_survivors < sys_minclock))
@@ -549,7 +575,7 @@
/*
* Do not transmit if in broadcast client mode.
*/
- poll_update(peer, hpoll);
+ poll_update(peer, hpoll, (peer->hmode == MODE_CLIENT));
if (peer->hmode != MODE_BCLIENT)
peer_xmit(peer);
@@ -640,12 +666,13 @@
*/
/*
* Bogus port check is before anything, since it probably
- * reveals a clogging attack.
+ * reveals a clogging attack. Likewise the mimimum packet size
+ * of 2 bytes (for mode 6/7) must be checked first.
*/
sys_received++;
- if (0 == SRCPORT(&rbufp->recv_srcadr)) {
+ if (0 == SRCPORT(&rbufp->recv_srcadr) || rbufp->recv_length < 2) {
sys_badlength++;
- return; /* bogus port */
+ return; /* bogus port / length */
}
restrictions(&rbufp->recv_srcadr, &r4a);
restrict_mask = r4a.rflags;
@@ -652,20 +679,8 @@
pkt = &rbufp->recv_pkt;
hisversion = PKT_VERSION(pkt->li_vn_mode);
- hisleap = PKT_LEAP(pkt->li_vn_mode);
hismode = (int)PKT_MODE(pkt->li_vn_mode);
- hisstratum = PKT_TO_STRATUM(pkt->stratum);
- DPRINTF(1, ("receive: at %ld %s<-%s ippeerlimit %d mode %d iflags %s restrict %s org %#010x.%08x xmt %#010x.%08x\n",
- current_time, stoa(&rbufp->dstadr->sin),
- stoa(&rbufp->recv_srcadr), r4a.ippeerlimit, hismode,
- build_iflags(rbufp->dstadr->flags),
- build_rflags(restrict_mask),
- ntohl(pkt->org.l_ui), ntohl(pkt->org.l_uf),
- ntohl(pkt->xmt.l_ui), ntohl(pkt->xmt.l_uf)));
- /* See basic mode and broadcast checks, below */
- INSIST(0 != hisstratum);
-
if (restrict_mask & RES_IGNORE) {
DPRINTF(2, ("receive: drop: RES_IGNORE\n"));
sys_restricted++;
@@ -696,6 +711,30 @@
return; /* no time serve */
}
+
+ /* If we arrive here, we should have a standard NTP packet. We
+ * check that the minimum size is available and fetch some more
+ * items from the packet once we can be sure they are indeed
+ * there.
+ */
+ if (rbufp->recv_length < LEN_PKT_NOMAC) {
+ sys_badlength++;
+ return; /* bogus length */
+ }
+
+ hisleap = PKT_LEAP(pkt->li_vn_mode);
+ hisstratum = PKT_TO_STRATUM(pkt->stratum);
+ INSIST(0 != hisstratum); /* paranoia check PKT_TO_STRATUM result */
+
+ DPRINTF(1, ("receive: at %ld %s<-%s ippeerlimit %d mode %d iflags %s "
+ "restrict %s org %#010x.%08x xmt %#010x.%08x\n",
+ current_time, stoa(&rbufp->dstadr->sin),
+ stoa(&rbufp->recv_srcadr), r4a.ippeerlimit, hismode,
+ build_iflags(rbufp->dstadr->flags),
+ build_rflags(restrict_mask),
+ ntohl(pkt->org.l_ui), ntohl(pkt->org.l_uf),
+ ntohl(pkt->xmt.l_ui), ntohl(pkt->xmt.l_uf)));
+
/*
* This is for testing. If restricted drop ten percent of
* surviving packets.
@@ -888,12 +927,13 @@
}
return; /* rate exceeded */
}
- if (hismode == MODE_CLIENT)
+ if (hismode == MODE_CLIENT) {
fast_xmit(rbufp, MODE_SERVER, skeyid,
restrict_mask);
- else
+ } else {
fast_xmit(rbufp, MODE_ACTIVE, skeyid,
restrict_mask);
+ }
return; /* rate exceeded */
}
restrict_mask &= ~RES_KOD;
@@ -1250,9 +1290,11 @@
if (AUTH(restrict_mask & RES_DONTTRUST,
is_authentic)) {
+ /* Bug 3596: Do we want to fuzz the reftime? */
fast_xmit(rbufp, MODE_SERVER, skeyid,
restrict_mask);
} else if (is_authentic == AUTH_ERROR) {
+ /* Bug 3596: Do we want to fuzz the reftime? */
fast_xmit(rbufp, MODE_SERVER, 0,
restrict_mask);
sys_badauth++;
@@ -1318,6 +1360,7 @@
pkt->refid,
rbufp->recv_length - MIN_V4_PKT_LEN, (u_char *)&pkt->exten);
+ /* Bug 3596: Do we want to fuzz the reftime? */
fast_xmit(rbufp, MODE_SERVER, skeyid,
restrict_mask);
}
@@ -1386,8 +1429,8 @@
peer = newpeer(&rbufp->recv_srcadr, NULL, rbufp->dstadr,
r4a.ippeerlimit, MODE_CLIENT, hisversion,
peer2->minpoll, peer2->maxpoll,
- FLAG_PREEMPT | (FLAG_IBURST & peer2->flags),
- MDF_UCAST | MDF_UCLNT, 0, skeyid, sys_ident);
+ (FLAG_PREEMPT | (POOL_FLAG_PMASK & peer2->flags)),
+ (MDF_UCAST | MDF_UCLNT), 0, skeyid, sys_ident);
if (NULL == peer) {
DPRINTF(2, ("receive: AM_MANYCAST drop: duplicate\n"));
sys_declined++;
@@ -1858,7 +1901,9 @@
* packet is a replay. This prevents the bad guys from replaying
* the most recent packet, authenticated or not.
*/
- } else if (L_ISEQU(&peer->xmt, &p_xmt)) {
+ } else if ( ((FLAG_LOOPNONCE & peer->flags) && L_ISEQU(&peer->nonce, &p_xmt))
+ || (!(FLAG_LOOPNONCE & peer->flags) && L_ISEQU(&peer->xmt, &p_xmt))
+ ) {
DPRINTF(2, ("receive: drop: Duplicate xmit\n"));
peer->flash |= TEST1; /* duplicate */
peer->oldpkt++;
@@ -1958,6 +2003,10 @@
* We have earlier asserted that hisstratum cannot be 0.
* If hisstratum is STRATUM_UNSPEC, it means he's not sync'd.
*/
+
+ /* XXX: FLAG_LOOPNONCE */
+ DEBUG_INSIST(0 == (FLAG_LOOPNONCE & peer->flags));
+
} else if (peer->flip == 0) {
if (0) {
} else if (L_ISZERO(&p_org)) {
@@ -1967,6 +2016,7 @@
msyslog(LOG_INFO,
"receive: BUG 3361: Clearing peer->aorg ");
L_CLR(&peer->aorg);
+ /* Clear peer->nonce, too? */
#endif
/**/
switch (hismode) {
@@ -2020,6 +2070,7 @@
}
} else {
L_CLR(&peer->aorg);
+ /* XXX: FLAG_LOOPNONCE */
}
/*
@@ -2193,7 +2244,7 @@
peer->minpoll = peer->ppoll;
peer->burst = peer->retry = 0;
peer->throttle = (NTP_SHIFT + 1) * (1 << peer->minpoll);
- poll_update(peer, pkt->ppoll);
+ poll_update(peer, pkt->ppoll, 0);
return; /* kiss-o'-death */
}
if (kissCode != NOKISS) {
@@ -2383,10 +2434,18 @@
/*
* The dance is complete and the flash bits have been lit. Toss
* the packet over the fence for processing, which may light up
- * more flashers.
+ * more flashers. Leave if the packet is not good.
*/
process_packet(peer, pkt, rbufp->recv_length);
+ if (peer->flash & PKT_TEST_MASK)
+ return;
+ /* [bug 3592] Update poll. Ideally this should not happen in a
+ * receive branch, but too much is going on here... at least we
+ * do it only if the packet was good!
+ */
+ poll_update(peer, peer->hpoll, (peer->hmode == MODE_CLIENT));
+
/*
* In interleaved mode update the state variables. Also adjust the
* transmit phase to avoid crossover.
@@ -2465,7 +2524,10 @@
peer->seldisptoolarge++;
DPRINTF(1, ("packet: flash header %04x\n",
peer->flash));
- poll_update(peer, peer->hpoll); /* ppoll updated? */
+
+ /* ppoll updated? */
+ /* XXX: Fuzz the poll? */
+ poll_update(peer, peer->hpoll, (peer->hmode == MODE_CLIENT));
return;
}
@@ -2509,7 +2571,7 @@
if (peer->burst > 0)
peer->nextdate = current_time;
}
- poll_update(peer, peer->hpoll);
+ poll_update(peer, peer->hpoll, (peer->hmode == MODE_CLIENT));
/**/
@@ -2776,7 +2838,7 @@
sys_poll = peer->minpoll;
if (sys_poll > peer->maxpoll)
sys_poll = peer->maxpoll;
- poll_update(peer, sys_poll);
+ poll_update(peer, sys_poll, 0);
sys_stratum = min(peer->stratum + 1, STRATUM_UNSPEC);
if ( peer->stratum == STRATUM_REFCLOCK
|| peer->stratum == STRATUM_UNSPEC)
@@ -2807,11 +2869,21 @@
+ clock_phi * (current_time - peer->update)
+ fabs(sys_offset);
+ p2_rootdisp = prev_rootdisp;
+ prev_rootdisp = sys_rootdisp;
if (dtemp > sys_mindisp)
sys_rootdisp = dtemp;
else
sys_rootdisp = sys_mindisp;
+
sys_rootdelay = peer->delay + peer->rootdelay;
+
+ p2_reftime = prev_reftime;
+ p2_time = prev_time;
+
+ prev_reftime = sys_reftime;
+ prev_time = current_time + 64 + (rand() & 0x3f); /* 64-127 s */
+
sys_reftime = peer->dst;
DPRINTF(1, ("clock_update: at %lu sample %lu associd %d\n",
@@ -2856,7 +2928,11 @@
sys_stratum = STRATUM_UNSPEC;
memcpy(&sys_refid, "STEP", 4);
sys_rootdelay = 0;
+ p2_rootdisp = 0;
+ prev_rootdisp = 0;
sys_rootdisp = 0;
+ L_CLR(&p2_reftime); /* Should we clear p2_reftime? */
+ L_CLR(&prev_reftime); /* Should we clear prev_reftime? */
L_CLR(&sys_reftime);
sys_jitter = LOGTOD(sys_precision);
leapsec_reset_frame();
@@ -2883,9 +2959,10 @@
* first clock sync, send them home satisfied.
*/
#ifdef HAVE_WORKING_FORK
- if (waitsync_fd_to_close != -1) {
- close(waitsync_fd_to_close);
- waitsync_fd_to_close = -1;
+ if (daemon_pipe[1] != -1) {
+ write(daemon_pipe[1], "S\n", 2);
+ close(daemon_pipe[1]);
+ daemon_pipe[1] = -1;
DPRINTF(1, ("notified parent --wait-sync is done\n"));
}
#endif /* HAVE_WORKING_FORK */
@@ -2930,10 +3007,11 @@
void
poll_update(
struct peer *peer, /* peer structure pointer */
- u_char mpoll
+ u_char mpoll,
+ u_char skewpoll
)
{
- u_long next, utemp;
+ u_long next, utemp, limit;
u_char hpoll;
/*
@@ -2977,6 +3055,15 @@
*/
utemp = current_time + max(peer->throttle - (NTP_SHIFT - 1) *
(1 << peer->minpoll), ntp_minpkt);
+
+ /*[Bug 3592] avoid unlimited postpone of next poll */
+ limit = (2u << hpoll);
+ if (limit > 64)
+ limit -= (limit >> 2);
+ limit += peer->outdate;
+ if (limit < current_time)
+ limit = current_time;
+
if (peer->burst > 0) {
if (peer->nextdate > current_time)
return;
@@ -3022,6 +3109,29 @@
next = ((0x1000UL | (ntp_random() & 0x0ff)) <<
hpoll) >> 12;
next += peer->outdate;
+ /* XXX: bug3596: Deal with poll skew list? */
+ if (skewpoll) {
+ psl_item psi;
+
+ if (0 == get_pollskew(hpoll, &psi)) {
+ int sub = psi.sub;
+ int qty = psi.qty;
+ int msk = psi.msk;
+ int val;
+
+ if ( 0 != sub
+ || 0 != qty) {
+ do {
+ val = ntp_random() & msk;
+ } while (val > qty);
+
+ next -= sub;
+ next += val;
+ }
+ } else {
+ /* get_pollskew() already logged this */
+ }
+ }
if (next > utemp)
peer->nextdate = next;
else
@@ -3029,6 +3139,13 @@
if (peer->throttle > (1 << peer->minpoll))
peer->nextdate += ntp_minpkt;
}
+
+ /*[Bug 3592] avoid unlimited postpone of next poll */
+ if (peer->nextdate > limit) {
+ DPRINTF(1, ("poll_update: clamp reached; limit %lu next %lu\n",
+ limit, peer->nextdate));
+ peer->nextdate = limit;
+ }
DPRINTF(2, ("poll_update: at %lu %s poll %d burst %d retry %d head %d early %lu next %lu\n",
current_time, ntoa(&peer->srcadr), peer->hpoll,
peer->burst, peer->retry, peer->throttle,
@@ -3953,6 +4070,7 @@
xpkt.refid = sys_refid;
xpkt.rootdelay = HTONS_FP(DTOFP(sys_rootdelay));
xpkt.rootdisp = HTONS_FP(DTOUFP(sys_rootdisp));
+ /* Use sys_reftime for peer exchanges */
HTONL_FP(&sys_reftime, &xpkt.reftime);
HTONL_FP(&peer->rec, &xpkt.org);
HTONL_FP(&peer->dst, &xpkt.rec);
@@ -4377,7 +4495,7 @@
static void
fast_xmit(
struct recvbuf *rbufp, /* receive packet pointer */
- int xmode, /* receive mode */
+ int xmode, /* receive mode */ /* XXX: HMS: really? */
keyid_t xkeyid, /* transmit key ID */
int flags /* restrict mask */
)
@@ -4408,8 +4526,8 @@
/*
* If this is a kiss-o'-death (KoD) packet, show leap
* unsynchronized, stratum zero, reference ID the four-character
- * kiss code and system root delay. Note we don't reveal the
- * local time, so these packets can't be used for
+ * kiss code and (???) system root delay. Note we don't reveal
+ * the local time, so these packets can't be used for
* synchronization.
*/
if (flags & RES_KOD) {
@@ -4431,18 +4549,23 @@
* This is a normal packet. Use the system variables.
*/
} else {
+ double this_rootdisp;
+ l_fp this_ref_time;
+
#ifdef LEAP_SMEAR
/*
* Make copies of the variables which can be affected by smearing.
*/
- l_fp this_ref_time;
l_fp this_recv_time;
#endif
/*
- * If we are inside the leap smear interval we add the current smear offset to
- * the packet receive time, to the packet transmit time, and eventually to the
- * reftime to make sure the reftime isn't later than the transmit/receive times.
+ * If we are inside the leap smear interval we add
+ * the current smear offset to:
+ * - the packet receive time,
+ * - the packet transmit time,
+ * - and eventually to the reftime to make sure the
+ * reftime isn't later than the transmit/receive times.
*/
xpkt.li_vn_mode = PKT_LI_VN_MODE(xmt_leap,
PKT_VERSION(rpkt->li_vn_mode), xmode);
@@ -4452,12 +4575,60 @@
xpkt.precision = sys_precision;
xpkt.refid = sys_refid;
xpkt.rootdelay = HTONS_FP(DTOFP(sys_rootdelay));
- xpkt.rootdisp = HTONS_FP(DTOUFP(sys_rootdisp));
+ /*
+ ** Server Response Fuzzing
+ **
+ ** Which values do we want to use for reftime and rootdisp?
+ */
+
+ if ( MODE_SERVER == xmode
+ && RES_SRVRSPFUZ & flags) {
+ if (current_time < p2_time) {
+ this_ref_time = p2_reftime;
+ this_rootdisp = p2_rootdisp;
+ } else if (current_time < prev_time) {
+ this_ref_time = prev_reftime;
+ this_rootdisp = prev_rootdisp;
+ } else {
+ this_ref_time = sys_reftime;
+ this_rootdisp = sys_rootdisp;
+ }
+
+ SRVRSP_FUZZ(this_ref_time);
+ } else {
+ this_ref_time = sys_reftime;
+ this_rootdisp = sys_rootdisp;
+ }
+
+ /*
+ ** ROOT DISPERSION
+ */
+
+ xpkt.rootdisp = HTONS_FP(DTOUFP(this_rootdisp));
+
+ /*
+ ** REFTIME
+ */
+
#ifdef LEAP_SMEAR
- this_ref_time = sys_reftime;
if (leap_smear.in_progress) {
+ /* adjust the reftime by the same amount as the
+ * leap smear, as we don't want to risk the
+ * reftime being later than the transmit time.
+ */
leap_smear_add_offs(&this_ref_time, NULL);
+ }
+#endif
+
+ HTONL_FP(&this_ref_time, &xpkt.reftime);
+
+ /*
+ ** REFID
+ */
+
+#ifdef LEAP_SMEAR
+ if (leap_smear.in_progress) {
xpkt.refid = convertLFPToRefID(leap_smear.offset);
DPRINTF(2, ("fast_xmit: leap_smear.in_progress: refid %8x, smear %s\n",
ntohl(xpkt.refid),
@@ -4464,13 +4635,17 @@
lfptoa(&leap_smear.offset, 8)
));
}
- HTONL_FP(&this_ref_time, &xpkt.reftime);
-#else
- HTONL_FP(&sys_reftime, &xpkt.reftime);
#endif
+ /*
+ ** ORIGIN
+ */
+
xpkt.org = rpkt->xmt;
+ /*
+ ** RECEIVE
+ */
#ifdef LEAP_SMEAR
this_recv_time = rbufp->recv_time;
if (leap_smear.in_progress)
@@ -4480,6 +4655,10 @@
HTONL_FP(&rbufp->recv_time, &xpkt.rec);
#endif
+ /*
+ ** TRANSMIT
+ */
+
get_systime(&xmt_tx);
#ifdef LEAP_SMEAR
if (leap_smear.in_progress)
@@ -4580,10 +4759,11 @@
struct interface * lcladr;
sockaddr_u * rmtadr;
r4addr r4a;
- int restrict_mask;
+ u_short restrict_mask;
struct peer * p;
l_fp xmt_tx;
+ DEBUG_REQUIRE(pool);
if (NULL == pool->ai) {
if (pool->addrs != NULL) {
/* free() is used with copy_addrinfo_list() */
@@ -4635,10 +4815,28 @@
xpkt.refid = sys_refid;
xpkt.rootdelay = HTONS_FP(DTOFP(sys_rootdelay));
xpkt.rootdisp = HTONS_FP(DTOUFP(sys_rootdisp));
+ /* Bug 3596: What are the pros/cons of using sys_reftime here? */
HTONL_FP(&sys_reftime, &xpkt.reftime);
+
+ /* HMS: the following is better done after the ntp_random() calls */
get_systime(&xmt_tx);
pool->aorg = xmt_tx;
- HTONL_FP(&xmt_tx, &xpkt.xmt);
+
+ if (FLAG_LOOPNONCE & pool->flags) {
+ l_fp nonce;
+
+ do {
+ nonce.l_ui = ntp_random();
+ } while (0 == nonce.l_ui);
+ do {
+ nonce.l_uf = ntp_random();
+ } while (0 == nonce.l_uf);
+ pool->nonce = nonce;
+ HTONL_FP(&nonce, &xpkt.xmt);
+ } else {
+ L_CLR(&pool->nonce);
+ HTONL_FP(&xmt_tx, &xpkt.xmt);
+ }
sendpkt(rmtadr, lcladr,
sys_ttl[(pool->ttl >= sys_ttlmax) ? sys_ttlmax : pool->ttl],
&xpkt, LEN_PKT_NOMAC);
--- contrib/ntp/ntpd/ntp_refclock.c.orig
+++ contrib/ntp/ntpd/ntp_refclock.c
@@ -12,6 +12,7 @@
#include "ntp_refclock.h"
#include "ntp_stdlib.h"
#include "ntp_assert.h"
+#include "timespecops.h"
#include <stdio.h>
@@ -66,11 +67,82 @@
/*
* Forward declarations
*/
-static int refclock_cmpl_fp (const void *, const void *);
-static int refclock_sample (struct refclockproc *);
-static int refclock_ioctl(int, u_int);
+static int refclock_cmpl_fp (const void *, const void *);
+static int refclock_sample (struct refclockproc *);
+static int refclock_ioctl(int, u_int);
+static void refclock_checkburst(struct peer *, struct refclockproc *);
+/* circular buffer functions
+ *
+ * circular buffer management comes in two flovours:
+ * for powers of two, and all others.
+ */
+#if MAXSTAGE & (MAXSTAGE - 1)
+
+static void clk_add_sample(
+ struct refclockproc * const pp,
+ double sv
+ )
+{
+ pp->coderecv = (pp->coderecv + 1) % MAXSTAGE;
+ if (pp->coderecv == pp->codeproc)
+ pp->codeproc = (pp->codeproc + 1) % MAXSTAGE;
+ pp->filter[pp->coderecv] = sv;
+}
+
+static double clk_pop_sample(
+ struct refclockproc * const pp
+ )
+{
+ if (pp->coderecv == pp->codeproc)
+ return 0; /* Maybe a NaN would be better? */
+ pp->codeproc = (pp->codeproc + 1) % MAXSTAGE;
+ return pp->filter[pp->codeproc];
+}
+
+static inline u_int clk_cnt_sample(
+ struct refclockproc * const pp
+ )
+{
+ u_int retv = pp->coderecv - pp->codeproc;
+ if (retv > MAXSTAGE)
+ retv += MAXSTAGE;
+ return retv;
+}
+
+#else
+
+static inline void clk_add_sample(
+ struct refclockproc * const pp,
+ double sv
+ )
+{
+ pp->coderecv = (pp->coderecv + 1) & (MAXSTAGE - 1);
+ if (pp->coderecv == pp->codeproc)
+ pp->codeproc = (pp->codeproc + 1) & (MAXSTAGE - 1);
+ pp->filter[pp->coderecv] = sv;
+}
+
+static inline double clk_pop_sample(
+ struct refclockproc * const pp
+ )
+{
+ if (pp->coderecv == pp->codeproc)
+ return 0; /* Maybe a NaN would be better? */
+ pp->codeproc = (pp->codeproc + 1) & (MAXSTAGE - 1);
+ return pp->filter[pp->codeproc];
+}
+
+static inline u_int clk_cnt_sample(
+ struct refclockproc * const pp
+ )
+{
+ return (pp->coderecv - pp->codeproc) & (MAXSTAGE - 1);
+}
+
+#endif
+
/*
* refclock_report - note the occurance of an event
*
@@ -328,9 +400,10 @@
} else {
peer->burst--;
}
+ peer->procptr->inpoll = TRUE;
if (refclock_conf[clktype]->clock_poll != noentry)
(refclock_conf[clktype]->clock_poll)(unit, peer);
- poll_update(peer, peer->hpoll);
+ poll_update(peer, peer->hpoll, 0);
}
@@ -353,8 +426,67 @@
return 0;
}
+/*
+ * Get number of available samples
+ */
+int
+refclock_samples_avail(
+ struct refclockproc const * pp
+ )
+{
+ u_int na;
+
+# if MAXSTAGE & (MAXSTAGE - 1)
+
+ na = pp->coderecv - pp->codeproc;
+ if (na > MAXSTAGE)
+ na += MAXSTAGE;
+
+# else
+
+ na = (pp->coderecv - pp->codeproc) & (MAXSTAGE - 1);
+
+# endif
+ return na;
+}
/*
+ * Expire (remove) samples from the tail (oldest samples removed)
+ *
+ * Returns number of samples deleted
+ */
+int
+refclock_samples_expire(
+ struct refclockproc * pp,
+ int nd
+ )
+{
+ u_int na;
+
+ if (nd <= 0)
+ return 0;
+
+# if MAXSTAGE & (MAXSTAGE - 1)
+
+ na = pp->coderecv - pp->codeproc;
+ if (na > MAXSTAGE)
+ na += MAXSTAGE;
+ if ((u_int)nd < na)
+ nd = na;
+ pp->codeproc = (pp->codeproc + nd) % MAXSTAGE;
+
+# else
+
+ na = (pp->coderecv - pp->codeproc) & (MAXSTAGE - 1);
+ if ((u_int)nd > na)
+ nd = (int)na;
+ pp->codeproc = (pp->codeproc + nd) & (MAXSTAGE - 1);
+
+# endif
+ return nd;
+}
+
+/*
* refclock_process_offset - update median filter
*
* This routine uses the given offset and timestamps to construct a new
@@ -376,7 +508,8 @@
lftemp = lasttim;
L_SUB(&lftemp, &lastrec);
LFPTOD(&lftemp, doffset);
- SAMPLE(doffset + fudge);
+ clk_add_sample(pp, doffset + fudge);
+ refclock_checkburst(pp->io.srcclock, pp);
}
@@ -388,7 +521,7 @@
* seconds and milliseconds/microseconds to internal timestamp format,
* then constructs a new entry in the median filter circular buffer.
* Return success (1) if the data are correct and consistent with the
- * converntional calendar.
+ * conventional calendar.
*
* Important for PPS users: Normally, the pp->lastrec is set to the
* system time when the on-time character is received and the pp->year,
@@ -409,7 +542,7 @@
* seconds and milliseconds/microseconds of the timecode. Use
* clocktime() for the aggregate seconds and the msec/usec for
* the fraction, when present. Note that this code relies on the
- * filesystem time for the years and does not use the years of
+ * file system time for the years and does not use the years of
* the timecode.
*/
if (!clocktime(pp->day, pp->hour, pp->minute, pp->second, GMT,
@@ -457,11 +590,8 @@
* anything if the buffer is empty.
*/
n = 0;
- while (pp->codeproc != pp->coderecv) {
- pp->codeproc = (pp->codeproc + 1) % MAXSTAGE;
- off[n] = pp->filter[pp->codeproc];
- n++;
- }
+ while (pp->codeproc != pp->coderecv)
+ off[n++] = clk_pop_sample(pp);
if (n == 0)
return (0);
@@ -494,6 +624,20 @@
}
pp->offset /= m;
pp->jitter = max(SQRT(pp->jitter / m), LOGTOD(sys_precision));
+
+ /*
+ * If the source has a jitter that cannot be estimated, because
+ * it is not statistic jitter, the source will be detected as
+ * falseticker sooner or later. Enforcing a minimal jitter value
+ * avoids a too low estimation while still detecting higher jitter.
+ *
+ * Note that this changes the refclock samples and ends up in the
+ * clock dispersion, not the clock jitter, despite being called
+ * jitter. To see the modified values, check the NTP clock variable
+ * "filtdisp", not "jitter".
+ */
+ pp->jitter = max(pp->jitter, pp->fudgeminjitter);
+
#ifdef DEBUG
if (debug)
printf(
@@ -532,6 +676,7 @@
* filter.
*/
pp = peer->procptr;
+ pp->inpoll = FALSE;
peer->leap = pp->leap;
if (peer->leap == LEAP_NOTINSYNC)
return;
@@ -542,7 +687,7 @@
report_event(PEVNT_REACH, peer, NULL);
peer->timereachable = current_time;
}
- peer->reach |= 1;
+ peer->reach = (peer->reach << (peer->reach & 1)) | 1;
peer->reftime = pp->lastref;
peer->aorg = pp->lastrec;
peer->rootdisp = pp->disp;
@@ -1080,6 +1225,8 @@
pp->sloppyclockflag &= ~CLK_FLAG4;
pp->sloppyclockflag |= in->flags & CLK_FLAG4;
}
+ if (in->haveflags & CLK_HAVEMINJIT)
+ pp->fudgeminjitter = in->fudgeminjitter;
}
/*
@@ -1104,6 +1251,9 @@
out->haveflags |= CLK_HAVEFLAG3;
if (CLK_FLAG4 & out->flags)
out->haveflags |= CLK_HAVEFLAG4;
+ out->fudgeminjitter = pp->fudgeminjitter;
+ if (0.0 != out->fudgeminjitter)
+ out->haveflags |= CLK_HAVEMINJIT;
out->timereset = current_time - pp->timestarted;
out->polls = pp->polls;
@@ -1367,7 +1517,8 @@
*/
pp->lastrec.l_ui = (u_int32)ap->ts.tv_sec + JAN_1970;
pp->lastrec.l_uf = (u_int32)(dtemp * FRAC);
- SAMPLE(dcorr);
+ clk_add_sample(pp, dcorr);
+ refclock_checkburst(peer, pp);
#ifdef DEBUG
if (debug > 1)
@@ -1377,4 +1528,245 @@
return (1);
}
#endif /* HAVE_PPSAPI */
+
+
+/*
+ * -------------------------------------------------------------------
+ * refclock_ppsaugment(...) -- correlate with PPS edge
+ *
+ * This function is used to correlate a receive time stamp with a PPS
+ * edge time stamp. It applies the necessary fudges and then tries to
+ * move the receive time stamp to the corresponding edge. This can warp
+ * into future, if a transmission delay of more than 500ms is not
+ * compensated with a corresponding fudge time2 value, because then the
+ * next PPS edge is nearer than the last. (Similiar to what the PPS ATOM
+ * driver does, but we deal with full time stamps here, not just phase
+ * shift information.) Likewise, a negative fudge time2 value must be
+ * used if the reference time stamp correlates with the *following* PPS
+ * pulse.
+ *
+ * Note that the receive time fudge value only needs to move the receive
+ * stamp near a PPS edge but that close proximity is not required;
+ * +/-100ms precision should be enough. But since the fudge value will
+ * probably also be used to compensate the transmission delay when no
+ * PPS edge can be related to the time stamp, it's best to get it as
+ * close as possible.
+ *
+ * It should also be noted that the typical use case is matching to the
+ * preceeding edge, as most units relate their sentences to the current
+ * second.
+ *
+ * The function returns FALSE if there is no correlation possible, TRUE
+ * otherwise. Reason for failures are:
+ *
+ * - no PPS/ATOM unit given
+ * - PPS stamp is stale (that is, the difference between the PPS stamp
+ * and the corrected time stamp would exceed two seconds)
+ * - The phase difference is too close to 0.5, and the decision wether
+ * to move up or down is too sensitive to noise.
+ *
+ * On output, the receive time stamp is updated with the 'fixed' receive
+ * time.
+ * -------------------------------------------------------------------
+ */
+
+int/*BOOL*/
+refclock_ppsaugment(
+ const struct refclock_atom * ap , /* for PPS io */
+ l_fp * rcvtime ,
+ double rcvfudge, /* i/o read fudge */
+ double ppsfudge /* pps fudge */
+ )
+{
+ l_fp delta[1];
+
+#ifdef HAVE_PPSAPI
+
+ pps_info_t pps_info;
+ struct timespec timeout;
+ l_fp stamp[1];
+ uint32_t phase;
+
+ static const uint32_t s_plim_hi = UINT32_C(1932735284);
+ static const uint32_t s_plim_lo = UINT32_C(2362232013);
+
+ /* fixup receive time in case we have to bail out early */
+ DTOLFP(rcvfudge, delta);
+ L_SUB(rcvtime, delta);
+
+ if (NULL == ap)
+ return FALSE;
+
+ ZERO(timeout);
+ ZERO(pps_info);
+
+ /* fetch PPS stamp from ATOM block */
+ if (time_pps_fetch(ap->handle, PPS_TSFMT_TSPEC,
+ &pps_info, &timeout) < 0)
+ return FALSE; /* can't get time stamps */
+
+ /* get last active PPS edge before receive */
+ if (ap->pps_params.mode & PPS_CAPTUREASSERT)
+ timeout = pps_info.assert_timestamp;
+ else if (ap->pps_params.mode & PPS_CAPTURECLEAR)
+ timeout = pps_info.clear_timestamp;
+ else
+ return FALSE; /* WHICH edge, please?!? */
+
+ /* convert PPS stamp to l_fp and apply fudge */
+ *stamp = tspec_stamp_to_lfp(timeout);
+ DTOLFP(ppsfudge, delta);
+ L_SUB(stamp, delta);
+
+ /* Get difference between PPS stamp (--> yield) and receive time
+ * (--> base)
+ */
+ *delta = *stamp;
+ L_SUB(delta, rcvtime);
+
+ /* check if either the PPS or the STAMP is stale in relation
+ * to each other. Bail if it is so...
+ */
+ phase = delta->l_ui;
+ if (phase >= 2 && phase < (uint32_t)-2)
+ return FALSE; /* PPS is stale, don't use it */
+
+ /* If the phase is too close to 0.5, the decision whether to
+ * move up or down is becoming noise sensitive. That is, we
+ * might amplify usec noise between samples into seconds with a
+ * simple threshold. This can be solved by a Schmitt Trigger
+ * characteristic, but that would also require additional state
+ * where we could remember previous decisions. Easier to play
+ * dead duck and wait for the conditions to become clear.
+ */
+ phase = delta->l_uf;
+ if (phase > s_plim_hi && phase < s_plim_lo)
+ return FALSE; /* we're in the noise lock gap */
+
+ /* sign-extend fraction into seconds */
+ delta->l_ui = UINT32_C(0) - ((phase >> 31) & 1);
+ /* add it up now */
+ L_ADD(rcvtime, delta);
+ return TRUE;
+
+# else /* have no PPS support at all */
+
+ /* just fixup receive time and fail */
+ UNUSED_ARG(ap);
+ UNUSED_ARG(ppsfudge);
+
+ DTOLFP(rcvfudge, delta);
+ L_SUB(rcvtime, delta);
+ return FALSE;
+
+# endif
+}
+
+/*
+ * -------------------------------------------------------------------
+ * check if it makes sense to schedule an 'early' poll to get the clock
+ * up fast after start or longer signal dropout.
+ */
+static void
+refclock_checkburst(
+ struct peer * peer,
+ struct refclockproc * pp
+ )
+{
+ uint32_t limit; /* when we should poll */
+ u_int needs; /* needed number of samples */
+
+ /* Paranoia: stop here if peer and clockproc don't match up.
+ * And when a poll is actually pending, we don't have to do
+ * anything, either. Likewise if the reach mask is full, of
+ * course, and if the filter has stabilized.
+ */
+ if (pp->inpoll || (peer->procptr != pp) ||
+ ((peer->reach == 0xFF) && (peer->disp <= MAXDISTANCE)))
+ return;
+
+ /* If the next poll is soon enough, bail out, too: */
+ limit = current_time + 1;
+ if (peer->nextdate <= limit)
+ return;
+
+ /* Derive the number of samples needed from the popcount of the
+ * reach mask. With less samples available, we break away.
+ */
+ needs = peer->reach;
+ needs -= (needs >> 1) & 0x55;
+ needs = (needs & 0x33) + ((needs >> 2) & 0x33);
+ needs = (needs + (needs >> 4)) & 0x0F;
+ if (needs > 6)
+ needs = 6;
+ else if (needs < 3)
+ needs = 3;
+ if (clk_cnt_sample(pp) < needs)
+ return;
+
+ /* Get serious. Reduce the poll to minimum and schedule early.
+ * (Changing the peer poll is probably in vain, as it will be
+ * re-adjusted, but maybe some time the hint will work...)
+ */
+ peer->hpoll = peer->minpoll;
+ peer->nextdate = limit;
+}
+
+/*
+ * -------------------------------------------------------------------
+ * Save the last timecode string, making sure it's properly truncated
+ * if necessary and NUL terminated in any case.
+ */
+void
+refclock_save_lcode(
+ struct refclockproc * pp,
+ char const * tc,
+ size_t len
+ )
+{
+ if (len == (size_t)-1)
+ len = strnlen(tc, sizeof(pp->a_lastcode) - 1);
+ else if (len >= sizeof(pp->a_lastcode))
+ len = sizeof(pp->a_lastcode) - 1;
+
+ pp->lencode = (u_short)len;
+ memcpy(pp->a_lastcode, tc, len);
+ pp->a_lastcode[len] = '\0';
+}
+
+/* format data into a_lastcode */
+void
+refclock_vformat_lcode(
+ struct refclockproc * pp,
+ char const * fmt,
+ va_list va
+ )
+{
+ long len;
+
+ len = vsnprintf(pp->a_lastcode, sizeof(pp->a_lastcode), fmt, va);
+ if (len <= 0)
+ len = 0;
+ else if (len >= sizeof(pp->a_lastcode))
+ len = sizeof(pp->a_lastcode) - 1;
+
+ pp->lencode = (u_short)len;
+ pp->a_lastcode[len] = '\0';
+ /* !note! the NUL byte is needed in case vsnprintf() really fails */
+}
+
+void
+refclock_format_lcode(
+ struct refclockproc * pp,
+ char const * fmt,
+ ...
+ )
+{
+ va_list va;
+
+ va_start(va, fmt);
+ refclock_vformat_lcode(pp, fmt, va);
+ va_end(va);
+}
+
#endif /* REFCLOCK */
--- contrib/ntp/ntpd/ntp_request.c.orig
+++ contrib/ntp/ntpd/ntp_request.c
@@ -841,7 +841,7 @@
pp = findexistingpeer(&addr, NULL, NULL, -1, 0, NULL);
if (NULL == pp)
continue;
- if (IS_IPV6(srcadr)) {
+ if (IS_IPV6(&pp->srcadr)) {
if (pp->dstadr)
ip->dstadr6 =
(MDF_BCAST == pp->cast_flags)
@@ -1819,7 +1819,7 @@
bad = 0;
while (items-- > 0 && !bad) {
memcpy(&cr, datap, item_sz);
- cr.flags = ntohs(cr.flags);
+ cr.flags = ntohs(cr.flags); /* XXX */
cr.mflags = ntohs(cr.mflags);
if (~RESM_NTPONLY & cr.mflags)
bad |= 1;
@@ -1854,7 +1854,7 @@
while (items-- > 0) {
memcpy(&cr, datap, item_sz);
- cr.flags = ntohs(cr.flags);
+ cr.flags = ntohs(cr.flags); /* XXX: size */
cr.mflags = ntohs(cr.mflags);
cr.ippeerlimit = ntohs(cr.ippeerlimit);
if (client_v6_capable && cr.v6_flag) {
--- contrib/ntp/ntpd/ntp_restrict.c.orig
+++ contrib/ntp/ntpd/ntp_restrict.c
@@ -96,7 +96,7 @@
* "restrict source ..." enabled knob and restriction bits.
*/
static int restrict_source_enabled;
-static u_short restrict_source_rflags;
+static u_int32 restrict_source_rflags;
static u_short restrict_source_mflags;
static short restrict_source_ippeerlimit;
@@ -141,7 +141,7 @@
inet_ntop(AF_INET, &sia, as, sizeof as);
inet_ntop(AF_INET, &sim, ms, sizeof ms);
}
- mprintf("restrict node at %p: %s/%s count %d, rflags %05x, mflags %05x, ippeerlimit %d, expire %lu, next %p\n",
+ mprintf("restrict node at %p: %s/%s count %d, rflags %08x, mflags %04x, ippeerlimit %d, expire %lu, next %p\n",
res, as, ms, res->count, res->rflags, res->mflags,
res->ippeerlimit, res->expire, res->link);
return;
@@ -154,8 +154,6 @@
void
dump_restricts(void)
{
- int defaultv4_done = 0;
- int defaultv6_done = 0;
restrict_u * res;
restrict_u * next;
@@ -570,6 +568,7 @@
r4a->rflags = match->rflags;
r4a->ippeerlimit = match->ippeerlimit;
}
+
return;
}
@@ -795,8 +794,8 @@
return;
hack_restrict(RESTRICT_FLAGS, addr, &onesmask,
- restrict_source_ippeerlimit, restrict_source_mflags,
- restrict_source_rflags, expire);
+ restrict_source_ippeerlimit,
+ restrict_source_mflags, restrict_source_rflags, expire);
DPRINTF(1, ("restrict_source: %s host restriction added\n",
stoa(addr)));
}
--- contrib/ntp/ntpd/ntp_scanner.c.orig
+++ contrib/ntp/ntpd/ntp_scanner.c
@@ -73,17 +73,26 @@
{
size_t i;
const char *text;
+ static char sbuf[64];
i = token - LOWEST_KEYWORD_ID;
- if (i < COUNTOF(keyword_text))
- text = keyword_text[i];
- else
- text = NULL;
+ switch (token) {
+ case T_ServerresponseFuzz:
+ text = "serverresponse fuzz";
+ break;
- return (text != NULL)
- ? text
- : "(keyword not found)";
+ default:
+ if (i < COUNTOF(keyword_text)) {
+ text = keyword_text[i];
+ } else {
+ snprintf(sbuf, sizeof sbuf,
+ "(keyword #%u not found)", token);
+ text = sbuf;
+ }
+ }
+
+ return text;
}
--- contrib/ntp/ntpd/ntp_util.c.orig
+++ contrib/ntp/ntpd/ntp_util.c
@@ -58,6 +58,7 @@
static char *leapfile_name; /* leapseconds file name */
static struct stat leapfile_stat; /* leapseconds file stat() buffer */
static int /*BOOL*/have_leapfile = FALSE;
+static int /*BOOL*/chck_leaphash = TRUE;
char *stats_drift_file; /* frequency file name */
static char *stats_temp_file; /* temp frequency file name */
static double wander_resid; /* last frequency update */
@@ -87,7 +88,7 @@
/*
* This controls whether stats are written to the fileset. Provided
- * so that ntpdc can turn off stats when the file system fills up.
+ * so that ntpdc can turn off stats when the file system fills up.
*/
int stats_control;
@@ -103,7 +104,7 @@
void ntpd_time_stepped(void);
static void check_leap_expiration(int, uint32_t, const time_t*);
-/*
+/*
* Prototypes
*/
#ifdef DEBUG
@@ -287,15 +288,15 @@
/* atomic */
#ifdef SYS_WINNT
if (_unlink(stats_drift_file)) /* rename semantics differ under NT */
- msyslog(LOG_WARNING,
- "Unable to remove prior drift file %s, %m",
+ msyslog(LOG_WARNING,
+ "Unable to remove prior drift file %s, %m",
stats_drift_file);
#endif /* SYS_WINNT */
#ifndef NO_RENAME
if (rename(stats_temp_file, stats_drift_file))
- msyslog(LOG_WARNING,
- "Unable to rename temp drift file %s to %s, %m",
+ msyslog(LOG_WARNING,
+ "Unable to rename temp drift file %s to %s, %m",
stats_temp_file, stats_drift_file);
#else
/* we have no rename NFS of ftp in use */
@@ -329,7 +330,8 @@
void
stats_config(
int item,
- const char *invalue /* only one type so far */
+ const char *invalue, /* only one type so far */
+ int optflag
)
{
FILE *fp;
@@ -385,7 +387,7 @@
} else {
value = newvalue;
}
-#else
+#else
value = invalue;
#endif /* SYS_WINNT */
@@ -399,7 +401,7 @@
break;
stats_drift_file = erealloc(stats_drift_file, len + 1);
- stats_temp_file = erealloc(stats_temp_file,
+ stats_temp_file = erealloc(stats_temp_file,
len + sizeof(".TEMP"));
memcpy(stats_drift_file, value, (size_t)(len+1));
memcpy(stats_temp_file, value, (size_t)len);
@@ -414,7 +416,7 @@
if (fscanf(fp, "%lf", &old_drift) != 1) {
msyslog(LOG_ERR,
- "format error frequency file %s",
+ "format error frequency file %s",
stats_drift_file);
fclose(fp);
break;
@@ -483,9 +485,11 @@
leapfile_name = erealloc(leapfile_name, len + 1);
memcpy(leapfile_name, value, len + 1);
+ chck_leaphash = optflag;
if (leapsec_load_file(
- leapfile_name, &leapfile_stat, TRUE, TRUE))
+ leapfile_name, &leapfile_stat,
+ TRUE, TRUE, chck_leaphash))
{
leap_signature_t lsig;
@@ -892,11 +896,11 @@
/* just do nothing if there is no leap file */
if ( ! (leapfile_name && *leapfile_name))
return;
-
+
/* try to load leapfile, force it if no leapfile loaded yet */
if (leapsec_load_file(
leapfile_name, &leapfile_stat,
- !have_leapfile, is_daily_check))
+ !have_leapfile, is_daily_check, chck_leaphash))
have_leapfile = TRUE;
else if (!have_leapfile)
return;
@@ -921,7 +925,7 @@
* level and frequency (once/hour or once/day, depending on the
* state.
*/
- rc = leapsec_daystolive(ntptime, systime);
+ rc = leapsec_daystolive(ntptime, systime);
if (rc == 0) {
msyslog(LOG_WARNING,
"%s ('%s'): will expire in less than one day",
@@ -929,7 +933,7 @@
} else if (is_daily_check && rc < 28) {
if (rc < 0)
msyslog(LOG_ERR,
- "%s ('%s'): expired less than %d day%s ago",
+ "%s ('%s'): expired %d day%s ago",
logPrefix, leapfile_name, -rc, (rc == -1 ? "" : "s"));
else
msyslog(LOG_WARNING,
@@ -952,7 +956,7 @@
len = strlen(keyfile);
if (!len)
return;
-
+
#ifndef SYS_WINNT
key_file_name = erealloc(key_file_name, len + 1);
memcpy(key_file_name, keyfile, len + 1);
--- contrib/ntp/ntpd/ntpd-opts.c.orig
+++ contrib/ntp/ntpd/ntpd-opts.c
@@ -1,7 +1,7 @@
/*
* EDIT THIS FILE WITH CAUTION (ntpd-opts.c)
*
- * It has been AutoGen-ed February 20, 2019 at 09:56:15 AM by AutoGen 5.18.5
+ * It has been AutoGen-ed March 3, 2020 at 05:40:30 PM by AutoGen 5.18.5
* From the definitions ntpd-opts.def
* and the template file options
*
@@ -18,7 +18,7 @@
* The ntpd program is copyrighted and licensed
* under the following terms:
*
- * Copyright (C) 1992-2017 The University of Delaware and Network Time Foundation, all rights reserved.
+ * Copyright (C) 1992-2020 The University of Delaware and Network Time Foundation, all rights reserved.
* This is free software. It is licensed for use, modification and
* redistribution under the terms of the NTP License, copies of which
* can be seen at:
@@ -75,8 +75,8 @@
* static const strings for ntpd options
*/
static char const ntpd_opt_strs[3132] =
-/* 0 */ "ntpd 4.2.8p13\n"
- "Copyright (C) 1992-2017 The University of Delaware and Network Time Foundation, all rights reserved.\n"
+/* 0 */ "ntpd 4.2.8p14\n"
+ "Copyright (C) 1992-2020 The University of Delaware and Network Time Foundation, all rights reserved.\n"
"This is free software. It is licensed for use, modification and\n"
"redistribution under the terms of the NTP License, copies of which\n"
"can be seen at:\n"
@@ -205,12 +205,12 @@
/* 2901 */ "output version information and exit\0"
/* 2937 */ "version\0"
/* 2945 */ "NTPD\0"
-/* 2950 */ "ntpd - NTP daemon program - Ver. 4.2.8p13\n"
+/* 2950 */ "ntpd - NTP daemon program - Ver. 4.2.8p14\n"
"Usage: %s [ -<flag> [<val>] | --<name>[{=| }<val>] ]... \\\n"
"\t\t[ <server1> ... <serverN> ]\n\0"
/* 3082 */ "http://bugs.ntp.org, bugs@ntp.org\0"
/* 3116 */ "\n\0"
-/* 3118 */ "ntpd 4.2.8p13";
+/* 3118 */ "ntpd 4.2.8p14";
/**
* ipv4 option description with
@@ -1529,8 +1529,8 @@
translate option names.
*/
/* referenced via ntpdOptions.pzCopyright */
- puts(_("ntpd 4.2.8p13\n\
-Copyright (C) 1992-2017 The University of Delaware and Network Time Foundation, all rights reserved.\n\
+ puts(_("ntpd 4.2.8p14\n\
+Copyright (C) 1992-2020 The University of Delaware and Network Time Foundation, all rights reserved.\n\
This is free software. It is licensed for use, modification and\n\
redistribution under the terms of the NTP License, copies of which\n\
can be seen at:\n"));
@@ -1670,7 +1670,7 @@
puts(_("output version information and exit"));
/* referenced via ntpdOptions.pzUsageTitle */
- puts(_("ntpd - NTP daemon program - Ver. 4.2.8p13\n\
+ puts(_("ntpd - NTP daemon program - Ver. 4.2.8p14\n\
Usage: %s [ -<flag> [<val>] | --<name>[{=| }<val>] ]... \\\n\
\t\t[ <server1> ... <serverN> ]\n"));
@@ -1678,7 +1678,7 @@
puts(_("\n"));
/* referenced via ntpdOptions.pzFullVersion */
- puts(_("ntpd 4.2.8p13"));
+ puts(_("ntpd 4.2.8p14"));
/* referenced via ntpdOptions.pzFullUsage */
puts(_("<<<NOT-FOUND>>>"));
--- contrib/ntp/ntpd/ntpd-opts.h.orig
+++ contrib/ntp/ntpd/ntpd-opts.h
@@ -1,7 +1,7 @@
/*
* EDIT THIS FILE WITH CAUTION (ntpd-opts.h)
*
- * It has been AutoGen-ed February 20, 2019 at 09:56:15 AM by AutoGen 5.18.5
+ * It has been AutoGen-ed March 3, 2020 at 05:40:30 PM by AutoGen 5.18.5
* From the definitions ntpd-opts.def
* and the template file options
*
@@ -18,7 +18,7 @@
* The ntpd program is copyrighted and licensed
* under the following terms:
*
- * Copyright (C) 1992-2017 The University of Delaware and Network Time Foundation, all rights reserved.
+ * Copyright (C) 1992-2020 The University of Delaware and Network Time Foundation, all rights reserved.
* This is free software. It is licensed for use, modification and
* redistribution under the terms of the NTP License, copies of which
* can be seen at:
@@ -106,9 +106,9 @@
/** count of all options for ntpd */
#define OPTION_CT 38
/** ntpd version */
-#define NTPD_VERSION "4.2.8p13"
+#define NTPD_VERSION "4.2.8p14"
/** Full ntpd version text */
-#define NTPD_FULL_VERSION "ntpd 4.2.8p13"
+#define NTPD_FULL_VERSION "ntpd 4.2.8p14"
/**
* Interface defines for all options. Replace "n" with the UPPER_CASED
--- contrib/ntp/ntpd/ntpd.1ntpdman.orig
+++ contrib/ntp/ntpd/ntpd.1ntpdman
@@ -10,11 +10,11 @@
.ds B-Font B
.ds I-Font I
.ds R-Font R
-.TH ntpd 1ntpdman "20 Feb 2019" "4.2.8p13" "User Commands"
+.TH ntpd 1ntpdman "03 Mar 2020" "4.2.8p14" "User Commands"
.\"
.\" EDIT THIS FILE WITH CAUTION (in-mem file)
.\"
-.\" It has been AutoGen-ed February 20, 2019 at 09:56:46 AM by AutoGen 5.18.5
+.\" It has been AutoGen-ed March 3, 2020 at 05:41:05 PM by AutoGen 5.18.5
.\" From the definitions ntpd-opts.def
.\" and the template file agman-cmd.tpl
.SH NAME
@@ -979,7 +979,7 @@
.SH "AUTHORS"
The University of Delaware and Network Time Foundation
.SH "COPYRIGHT"
-Copyright (C) 1992-2017 The University of Delaware and Network Time Foundation all rights reserved.
+Copyright (C) 1992-2020 The University of Delaware and Network Time Foundation all rights reserved.
This program is released under the terms of the NTP license, <http://ntp.org/license>.
.SH BUGS
The
--- contrib/ntp/ntpd/ntpd.1ntpdmdoc.orig
+++ contrib/ntp/ntpd/ntpd.1ntpdmdoc
@@ -1,9 +1,9 @@
-.Dd February 20 2019
+.Dd March 3 2020
.Dt NTPD 1ntpdmdoc User Commands
.Os
.\" EDIT THIS FILE WITH CAUTION (ntpd-opts.mdoc)
.\"
-.\" It has been AutoGen-ed February 20, 2019 at 09:56:37 AM by AutoGen 5.18.5
+.\" It has been AutoGen-ed March 3, 2020 at 05:40:55 PM by AutoGen 5.18.5
.\" From the definitions ntpd-opts.def
.\" and the template file agmdoc-cmd.tpl
.Sh NAME
@@ -886,7 +886,7 @@
.Sh "AUTHORS"
The University of Delaware and Network Time Foundation
.Sh "COPYRIGHT"
-Copyright (C) 1992\-2017 The University of Delaware and Network Time Foundation all rights reserved.
+Copyright (C) 1992\-2020 The University of Delaware and Network Time Foundation all rights reserved.
This program is released under the terms of the NTP license, <http://ntp.org/license>.
.Sh BUGS
The
--- contrib/ntp/ntpd/ntpd.c.orig
+++ contrib/ntp/ntpd/ntpd.c
@@ -45,6 +45,9 @@
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
+#ifdef HAVE_SYS_WAIT_H
+# include <sys/wait.h>
+#endif
#include <stdio.h>
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
@@ -82,6 +85,10 @@
# include <sys/mman.h>
#endif
+#ifdef HAVE_SYSEXITS_H
+# include <sysexits.h>
+#endif
+
#ifdef HAVE_TERMIOS_H
# include <termios.h>
#endif
@@ -140,6 +147,21 @@
DNSServiceRef mdns;
#endif
+/* In case 'sysexits.h' is unavailable, define some exit codes here: */
+#ifndef EX_SOFTWARE
+# define EX_SOFTWARE 70
+#endif
+#ifndef EX_OSERR
+# define EX_OSERR 71
+#endif
+#ifndef EX_IOERR
+# define EX_IOERR 74
+#endif
+#ifndef EX_PROTOCOL
+#define EX_PROTOCOL 76
+#endif
+
+
#ifdef HAVE_SETPGRP_0
# define ntp_setpgrp(x, y) setpgrp()
#else
@@ -178,6 +200,10 @@
int mdnstries = 5;
#endif /* HAVE_DNSREGISTRATION */
+#ifdef HAVE_LINUX_CAPABILITIES
+int have_caps; /* runtime check whether capabilities work */
+#endif /* HAVE_LINUX_CAPABILITIES */
+
#ifdef HAVE_DROPROOT
int droproot;
int root_dropped;
@@ -191,7 +217,7 @@
#endif /* HAVE_DROPROOT */
#ifdef HAVE_WORKING_FORK
-int waitsync_fd_to_close = -1; /* -w/--wait-sync */
+int daemon_pipe[2] = { -1, -1 };
#endif
/*
@@ -221,7 +247,8 @@
#endif
#if !defined(SIM) && defined(HAVE_WORKING_FORK)
-static int wait_child_sync_if (int, long);
+static int wait_child_sync_if (int, unsigned long);
+static int wait_child_exit_if (pid_t, int);
#endif
#if !defined(SIM) && !defined(SYS_WINNT)
@@ -388,11 +415,9 @@
return ntpsim(argc, argv);
}
-#else /* !SIM follows */
-#ifdef NO_MAIN_ALLOWED
+#elif defined(NO_MAIN_ALLOWED)
CALL(ntpd,"ntpd",ntpdmain);
-#else /* !NO_MAIN_ALLOWED follows */
-#ifndef SYS_WINNT
+#elif !defined(SYS_WINNT)
int
main(
int argc,
@@ -402,8 +427,6 @@
return ntpdmain(argc, argv);
}
#endif /* !SYS_WINNT */
-#endif /* !NO_MAIN_ALLOWED */
-#endif /* !SIM */
#ifdef _AIX
/*
@@ -534,13 +557,13 @@
# ifdef HAVE_WORKING_FORK
static void
detach_from_terminal(
- int pipe_fds[2],
+ int pipe[2],
long wait_sync,
const char *logfilename
)
{
- int rc;
- int exit_code;
+ pid_t cpid;
+ int exit_code;
# if !defined(HAVE_SETSID) && !defined (HAVE_SETPGID) && defined(TIOCNOTTY)
int fid;
# endif
@@ -548,16 +571,28 @@
struct sigaction sa;
# endif
- rc = fork();
- if (-1 == rc) {
- exit_code = (errno) ? errno : -1;
- msyslog(LOG_ERR, "fork: %m");
- exit(exit_code);
- }
- if (rc > 0) {
+ cpid = fork();
+ if (0 != cpid) {
/* parent */
- exit_code = wait_child_sync_if(pipe_fds[0],
- wait_sync);
+ if (-1 == cpid) {
+ msyslog(LOG_ERR, "fork: %m");
+ exit_code = EX_OSERR;
+ } else {
+ close(pipe[1]);
+ pipe[1] = -1;
+ exit_code = wait_child_sync_if(
+ pipe[0], wait_sync);
+ DPRINTF(1, ("sync_if: rc=%d\n", exit_code));
+ if (exit_code <= 0) {
+ /* probe daemon exit code -- wait for
+ * child process if we have an unexpected
+ * EOF on the monitor pipe.
+ */
+ exit_code = wait_child_exit_if(
+ cpid, (exit_code < 0));
+ DPRINTF(1, ("exit_if: rc=%d\n", exit_code));
+ }
+ }
exit(exit_code);
}
@@ -572,7 +607,8 @@
syslog_file = NULL;
syslogit = TRUE;
}
- close_all_except(waitsync_fd_to_close);
+ close_all_except(pipe[1]);
+ pipe[0] = -1;
INSIST(0 == open("/dev/null", 0) && 1 == dup2(0, 1) \
&& 2 == dup2(0, 2));
@@ -779,9 +815,6 @@
# endif
# if defined(HAVE_WORKING_FORK)
long wait_sync = 0;
- int pipe_fds[2];
- int rc;
- int exit_code;
# endif /* HAVE_WORKING_FORK*/
# ifdef SCO5_CLOCK
int fd;
@@ -847,9 +880,16 @@
" %s", saved_argv[i]);
cp += strlen(cp);
}
- msyslog(LOG_INFO, "%s", buf);
+ msyslog(LOG_NOTICE, "%s", buf);
}
+ msyslog(LOG_NOTICE, "----------------------------------------------------");
+ msyslog(LOG_NOTICE, "ntp-4 is maintained by Network Time Foundation,");
+ msyslog(LOG_NOTICE, "Inc. (NTF), a non-profit 501(c)(3) public-benefit");
+ msyslog(LOG_NOTICE, "corporation. Support and training for ntp-4 are");
+ msyslog(LOG_NOTICE, "available at https://www.nwtime.org/support");
+ msyslog(LOG_NOTICE, "----------------------------------------------------");
+
/*
* Install trap handlers to log errors and assertion failures.
* Default handlers print to stderr which doesn't work if detached.
@@ -919,27 +959,24 @@
# endif
# ifdef HAVE_WORKING_FORK
- /* make sure the FDs are initialised */
- pipe_fds[0] = -1;
- pipe_fds[1] = -1;
- do { /* 'loop' once */
- if (!HAVE_OPT( WAIT_SYNC ))
- break;
+ /* make sure the FDs are initialised
+ *
+ * note: if WAIT_SYNC is requested, we *have* to fork. This will
+ * overide any '-n' (nofork) or '-d' (debug) option presented on
+ * the command line!
+ */
+ if (HAVE_OPT(WAIT_SYNC)) {
wait_sync = OPT_VALUE_WAIT_SYNC;
- if (wait_sync <= 0) {
+ if (wait_sync <= 0)
wait_sync = 0;
- break;
- }
- /* -w requires a fork() even with debug > 0 */
- nofork = FALSE;
- if (pipe(pipe_fds)) {
- exit_code = (errno) ? errno : -1;
- msyslog(LOG_ERR,
- "Pipe creation failed for --wait-sync: %m");
- exit(exit_code);
- }
- waitsync_fd_to_close = pipe_fds[1];
- } while (0); /* 'loop' once */
+ else
+ nofork = FALSE;
+ }
+ if ( !nofork && pipe(daemon_pipe)) {
+ msyslog(LOG_ERR,
+ "Pipe creation failed for --wait-sync/daemon: %m");
+ exit(EX_OSERR);
+ }
# endif /* HAVE_WORKING_FORK */
init_lib();
@@ -965,12 +1002,11 @@
/*
* Detach us from the terminal. May need an #ifndef GIZMO.
*/
+# ifdef HAVE_WORKING_FORK
if (!nofork) {
-
-# ifdef HAVE_WORKING_FORK
- detach_from_terminal(pipe_fds, wait_sync, logfilename);
+ detach_from_terminal(daemon_pipe, wait_sync, logfilename);
+ }
# endif /* HAVE_WORKING_FORK */
- }
# ifdef SCO5_CLOCK
/*
@@ -1115,12 +1151,33 @@
report_event(EVNT_SYSRESTART, NULL, NULL);
initializing = FALSE;
+# ifdef HAVE_LINUX_CAPABILITIES
+ {
+ /* Check that setting capabilities actually works; we might be
+ * run on a kernel with disabled capabilities. We must not
+ * drop privileges in this case.
+ */
+ cap_t caps;
+ caps = cap_from_text("cap_sys_time,cap_setuid,cap_setgid,cap_sys_chroot,cap_net_bind_service=pe");
+ if ( ! caps) {
+ msyslog( LOG_ERR, "cap_from_text() failed: %m" );
+ exit(-1);
+ }
+ have_caps = (cap_set_proc(caps) == 0);
+ cap_free(caps); /* caps not NULL here! */
+ }
+# endif /* HAVE_LINUX_CAPABILITIES */
+
# ifdef HAVE_DROPROOT
+# ifdef HAVE_LINUX_CAPABILITIES
+ if (droproot && have_caps) {
+# else
if (droproot) {
+# endif /*HAVE_LINUX_CAPABILITIES*/
-#ifdef NEED_EARLY_FORK
+# ifdef NEED_EARLY_FORK
fork_nonchroot_worker();
-#endif
+# endif
/* Drop super-user privileges and chroot now if the OS supports this */
@@ -1346,11 +1403,18 @@
}
#endif /* LIBSECCOMP and KERN_SECCOMP */
-#ifdef SYS_WINNT
+#if defined(SYS_WINNT)
ntservice_isup();
-#endif
+#elif defined(HAVE_WORKING_FORK)
+ if (daemon_pipe[1] != -1) {
+ write(daemon_pipe[1], "R\n", 2);
+ }
+#endif /* HAVE_WORKING_FORK */
-# ifdef HAVE_IO_COMPLETION_PORT
+# ifndef HAVE_IO_COMPLETION_PORT
+ BLOCK_IO_AND_ALARM();
+ was_alarmed = FALSE;
+# endif
for (;;) {
#if !defined(SIM) && defined(SIGDIE1)
@@ -1357,17 +1421,10 @@
if (signalled)
finish_safe(signo);
#endif
+# ifdef HAVE_IO_COMPLETION_PORT
GetReceivedBuffers();
+
# else /* normal I/O */
-
- BLOCK_IO_AND_ALARM();
- was_alarmed = FALSE;
-
- for (;;) {
-#if !defined(SIM) && defined(SIGDIE1)
- if (signalled)
- finish_safe(signo);
-#endif
if (alarm_flag) { /* alarmed? */
was_alarmed = TRUE;
alarm_flag = FALSE;
@@ -1532,14 +1589,15 @@
* wait_child_sync_if - implements parent side of -w/--wait-sync
*/
# ifdef HAVE_WORKING_FORK
+
static int
wait_child_sync_if(
- int pipe_read_fd,
- long wait_sync
+ int pipe_read_fd,
+ unsigned long wait_sync
)
{
int rc;
- int exit_code;
+ char ch;
time_t wait_end_time;
time_t cur_time;
time_t wait_rem;
@@ -1546,12 +1604,15 @@
fd_set readset;
struct timeval wtimeout;
- if (0 == wait_sync)
- return 0;
+ /* we wait a bit for the child in *any* case, because on failure
+ * of the child we have to get and inspect the exit code!
+ */
+ wait_end_time = time(NULL);
+ if (wait_sync)
+ wait_end_time += wait_sync;
+ else
+ wait_end_time += 30;
- /* waitsync_fd_to_close used solely by child */
- close(waitsync_fd_to_close);
- wait_end_time = time(NULL) + wait_sync;
do {
cur_time = time(NULL);
wait_rem = (wait_end_time > cur_time)
@@ -1566,10 +1627,9 @@
if (-1 == rc) {
if (EINTR == errno)
continue;
- exit_code = (errno) ? errno : -1;
msyslog(LOG_ERR,
- "--wait-sync select failed: %m");
- return exit_code;
+ "daemon startup: select failed: %m");
+ return EX_IOERR;
}
if (0 == rc) {
/*
@@ -1586,16 +1646,70 @@
NULL, &wtimeout);
if (0 == rc) /* select() timeout */
break;
- else /* readable */
+ }
+ rc = read(pipe_read_fd, &ch, 1);
+ if (rc == 0) {
+ DPRINTF(2, ("daemon control: got EOF\n"));
+ return -1; /* unexpected EOF, check daemon */
+ } else if (rc == 1) {
+ DPRINTF(2, ("daemon control: got '%c'\n",
+ (ch >= ' ' ? ch : '.')));
+ if (ch == 'R' && !wait_sync)
return 0;
- } else /* readable */
- return 0;
+ if (ch == 'S' && wait_sync)
+ return 0;
+ } else {
+ DPRINTF(2, ("daemon control: read 1 char failed: %s\n",
+ strerror(errno)));
+ return EX_IOERR;
+ }
} while (wait_rem > 0);
- fprintf(stderr, "%s: -w/--wait-sync %ld timed out.\n",
- progname, wait_sync);
- return ETIMEDOUT;
+ if (wait_sync) {
+ fprintf(stderr, "%s: -w/--wait-sync %ld timed out.\n",
+ progname, wait_sync);
+ return EX_PROTOCOL;
+ } else {
+ fprintf(stderr, "%s: daemon startup monitoring timed out.\n",
+ progname);
+ return 0;
+ }
}
+
+
+static int
+wait_child_exit_if(
+ pid_t cpid,
+ int blocking
+ )
+{
+# ifdef HAVE_WAITPID
+ int rc = 0;
+ int wstatus;
+ if (cpid == waitpid(cpid, &wstatus, (blocking ? 0 : WNOHANG))) {
+ DPRINTF(1, ("child (pid=%d) dead now\n", cpid));
+ if (WIFEXITED(wstatus)) {
+ rc = WEXITSTATUS(wstatus);
+ msyslog(LOG_ERR, "daemon child exited with code %d",
+ rc);
+ } else if (WIFSIGNALED(wstatus)) {
+ rc = EX_SOFTWARE;
+ msyslog(LOG_ERR, "daemon child died with signal %d",
+ WTERMSIG(wstatus));
+ } else {
+ rc = EX_SOFTWARE;
+ msyslog(LOG_ERR, "daemon child died with unknown cause");
+ }
+ } else {
+ DPRINTF(1, ("child (pid=%d) still alive\n", cpid));
+ }
+ return rc;
+# else
+ UNUSED_ARG(cpid);
+ return 0;
+# endif
+}
+
# endif /* HAVE_WORKING_FORK */
--- contrib/ntp/ntpd/ntpd.html.orig
+++ contrib/ntp/ntpd/ntpd.html
@@ -67,7 +67,7 @@
symmetric and broadcast modes, and with both symmetric-key and public-key
cryptography.
</p>
-<p>This document applies to version 4.2.8p13 of <code>ntpd</code>.
+<p>This document applies to version 4.2.8p14 of <code>ntpd</code>.
</p>
<a name="SEC_Overview"></a>
<h2 class="shortcontents-heading">Short Table of Contents</h2>
@@ -309,7 +309,7 @@
with a status code of 0.
</p>
<div class="example">
-<pre class="example">ntpd - NTP daemon program - Ver. 4.2.8p12
+<pre class="example">ntpd - NTP daemon program - Ver. 4.2.8p14
Usage: ntpd [ -<flag> [<val>] | --<name>[{=| }<val>] ]... \
[ <server1> ... <serverN> ]
Flg Arg Option-Name Description
@@ -331,7 +331,7 @@
-g no panicgate Allow the first adjustment to be Big
- may appear multiple times
-G no force-step-once Step any initial offset correction.
- -i Str jaildir Jail directory
+ -i --- jaildir built without --enable-clockctl or --enable-linuxcaps or --enable-solarisprivs
-I Str interface Listen on an interface name or address
- may appear multiple times
-k Str keyfile path to symmetric keys
@@ -354,7 +354,7 @@
-s Str statsdir Statistics file location
-t Str trustedkey Trusted key number
- may appear multiple times
- -u Str user Run as userid (or userid:groupid)
+ -u --- user built without --enable-clockctl or --enable-linuxcaps or --enable-solarisprivs
-U Num updateinterval interval in seconds between scans for new or dropped interfaces
Str var make ARG an ntp variable (RW)
- may appear multiple times
--- contrib/ntp/ntpd/ntpd.man.in.orig
+++ contrib/ntp/ntpd/ntpd.man.in
@@ -10,11 +10,11 @@
.ds B-Font B
.ds I-Font I
.ds R-Font R
-.TH ntpd @NTPD_MS@ "20 Feb 2019" "4.2.8p13" "User Commands"
+.TH ntpd @NTPD_MS@ "03 Mar 2020" "4.2.8p14" "User Commands"
.\"
.\" EDIT THIS FILE WITH CAUTION (in-mem file)
.\"
-.\" It has been AutoGen-ed February 20, 2019 at 09:56:46 AM by AutoGen 5.18.5
+.\" It has been AutoGen-ed March 3, 2020 at 05:41:05 PM by AutoGen 5.18.5
.\" From the definitions ntpd-opts.def
.\" and the template file agman-cmd.tpl
.SH NAME
@@ -979,7 +979,7 @@
.SH "AUTHORS"
The University of Delaware and Network Time Foundation
.SH "COPYRIGHT"
-Copyright (C) 1992-2017 The University of Delaware and Network Time Foundation all rights reserved.
+Copyright (C) 1992-2020 The University of Delaware and Network Time Foundation all rights reserved.
This program is released under the terms of the NTP license, <http://ntp.org/license>.
.SH BUGS
The
--- contrib/ntp/ntpd/ntpd.mdoc.in.orig
+++ contrib/ntp/ntpd/ntpd.mdoc.in
@@ -1,9 +1,9 @@
-.Dd February 20 2019
+.Dd March 3 2020
.Dt NTPD @NTPD_MS@ User Commands
.Os
.\" EDIT THIS FILE WITH CAUTION (ntpd-opts.mdoc)
.\"
-.\" It has been AutoGen-ed February 20, 2019 at 09:56:37 AM by AutoGen 5.18.5
+.\" It has been AutoGen-ed March 3, 2020 at 05:40:55 PM by AutoGen 5.18.5
.\" From the definitions ntpd-opts.def
.\" and the template file agmdoc-cmd.tpl
.Sh NAME
@@ -886,7 +886,7 @@
.Sh "AUTHORS"
The University of Delaware and Network Time Foundation
.Sh "COPYRIGHT"
-Copyright (C) 1992\-2017 The University of Delaware and Network Time Foundation all rights reserved.
+Copyright (C) 1992\-2020 The University of Delaware and Network Time Foundation all rights reserved.
This program is released under the terms of the NTP license, <http://ntp.org/license>.
.Sh BUGS
The
--- contrib/ntp/ntpd/psl0.conf.orig
+++ contrib/ntp/ntpd/psl0.conf
@@ -0,0 +1 @@
+pollskewlist default 0|0
--- contrib/ntp/ntpd/psl1.conf.orig
+++ contrib/ntp/ntpd/psl1.conf
@@ -0,0 +1 @@
+pollskewlist default 4|4
--- contrib/ntp/ntpd/psl2.conf.orig
+++ contrib/ntp/ntpd/psl2.conf
@@ -0,0 +1 @@
+pollskewlist 3 3|3 4 4|4 default 5|5
--- contrib/ntp/ntpd/refclock_gpsdjson.c.orig
+++ contrib/ntp/ntpd/refclock_gpsdjson.c
@@ -949,7 +949,7 @@
pp->lastref = stamp;
if (pp->coderecv == pp->codeproc)
refclock_report(peer, CEVNT_NOMINAL);
- refclock_process_offset(pp, stamp, recvt, pp->fudgetime1);
+ refclock_process_offset(pp, stamp, recvt, 0.0);
}
/* ------------------------------------------------------------------ */
--- contrib/ntp/ntpd/refclock_jupiter.c.orig
+++ contrib/ntp/ntpd/refclock_jupiter.c
@@ -35,6 +35,7 @@
# include <config.h>
#endif
+/* This clock *REQUIRES* the PPS API to be available */
#if defined(REFCLOCK) && defined(CLOCK_JUPITER) && defined(HAVE_PPSAPI)
#include "ntpd.h"
@@ -42,16 +43,16 @@
#include "ntp_refclock.h"
#include "ntp_unixtime.h"
#include "ntp_stdlib.h"
+#include "ntp_calendar.h"
+#include "ntp_calgps.h"
+#include "timespecops.h"
#include <stdio.h>
#include <ctype.h>
#include "jupiter.h"
+#include "ppsapi_timepps.h"
-#ifdef HAVE_PPSAPI
-# include "ppsapi_timepps.h"
-#endif
-
#ifdef WORDS_BIGENDIAN
#define getshort(s) ((((s) & 0xff) << 8) | (((s) >> 8) & 0xff))
#define putshort(s) ((((s) & 0xff) << 8) | (((s) >> 8) & 0xff))
@@ -108,23 +109,18 @@
*/
struct instance {
struct peer *peer; /* peer */
- u_int pollcnt; /* poll message counter */
- u_int polled; /* Hand in a time sample? */
-#ifdef HAVE_PPSAPI
+
pps_params_t pps_params; /* pps parameters */
pps_info_t pps_info; /* last pps data */
pps_handle_t pps_handle; /* pps handle */
- u_int assert; /* pps edge to use */
- u_int hardpps; /* enable kernel mode */
- struct timespec ts; /* last timestamp */
-#endif
- l_fp limit;
- u_int gpos_gweek; /* Current GPOS GPS week number */
- u_int gpos_sweek; /* Current GPOS GPS seconds into week */
- u_int gweek; /* current GPS week number */
- u_int32 lastsweek; /* last seconds into GPS week */
- time_t timecode; /* current ntp timecode */
- u_int32 stime; /* used to detect firmware bug */
+ u_int assert; /* pps edge to use */
+ u_int hardpps; /* enable kernel mode */
+ l_fp rcv_pps; /* last pps timestamp */
+ l_fp rcv_next; /* rcv time of next reftime */
+ TGpsDatum ref_next; /* next GPS time stamp to use with PPS */
+ TGpsDatum piv_next; /* pivot for week date unfolding */
+ uint16_t piv_hold; /* TTL for pivot value */
+ uint16_t rcvtout; /* receive timeout ticker */
int wantid; /* don't reconfig on channel id msg */
u_int moving; /* mobile platform? */
u_char sloppyclockflag; /* fudge flags */
@@ -135,28 +131,27 @@
/*
* Function prototypes
*/
-static void jupiter_canmsg (struct instance *, u_int);
+static void jupiter_canmsg (struct instance * const, u_int);
static u_short jupiter_cksum (u_short *, u_int);
-static int jupiter_config (struct instance *);
+static int jupiter_config (struct instance * const);
static void jupiter_debug (struct peer *, const char *,
const char *, ...) NTP_PRINTF(3, 4);
-static const char * jupiter_parse_t (struct instance *, u_short *);
-static const char * jupiter_parse_gpos (struct instance *, u_short *);
-static void jupiter_platform (struct instance *, u_int);
+static const char * jupiter_parse_t (struct instance * const, u_short *, l_fp);
+static const char * jupiter_parse_gpos(struct instance * const, u_short *);
+static void jupiter_platform(struct instance * const, u_int);
static void jupiter_poll (int, struct peer *);
static void jupiter_control (int, const struct refclockstat *,
struct refclockstat *, struct peer *);
-#ifdef HAVE_PPSAPI
-static int jupiter_ppsapi (struct instance *);
-static int jupiter_pps (struct instance *);
-#endif /* HAVE_PPSAPI */
-static int jupiter_recv (struct instance *);
-static void jupiter_receive (struct recvbuf *rbufp);
-static void jupiter_reqmsg (struct instance *, u_int, u_int);
-static void jupiter_reqonemsg(struct instance *, u_int);
-static char * jupiter_send (struct instance *, struct jheader *);
+static int jupiter_ppsapi (struct instance * const);
+static int jupiter_pps (struct instance * const);
+static int jupiter_recv (struct instance * const);
+static void jupiter_receive (struct recvbuf * const rbufp);
+static void jupiter_reqmsg (struct instance * const, u_int, u_int);
+static void jupiter_reqonemsg(struct instance * const, u_int);
+static char * jupiter_send (struct instance * const, struct jheader *);
static void jupiter_shutdown(int, struct peer *);
static int jupiter_start (int, struct peer *);
+static void jupiter_ticker (int, struct peer *);
/*
* Transfer vector
@@ -168,7 +163,7 @@
jupiter_control, /* (clock control) */
noentry, /* (clock init) */
noentry, /* (clock buginfo) */
- NOFLAGS /* not used */
+ jupiter_ticker /* 1HZ ticker */
};
/*
@@ -180,8 +175,8 @@
struct peer *peer
)
{
- struct refclockproc *pp;
- struct instance *instance;
+ struct refclockproc * const pp = peer->procptr;
+ struct instance * up;
int fd;
char gpsdev[20];
@@ -197,9 +192,8 @@
}
/* Allocate unit structure */
- instance = emalloc_zero(sizeof(*instance));
- instance->peer = peer;
- pp = peer->procptr;
+ up = emalloc_zero(sizeof(*up));
+ up->peer = peer;
pp->io.clock_recv = jupiter_receive;
pp->io.srcclock = peer;
pp->io.datalen = 0;
@@ -207,10 +201,10 @@
if (!io_addclock(&pp->io)) {
close(fd);
pp->io.fd = -1;
- free(instance);
+ free(up);
return (0);
}
- pp->unitptr = instance;
+ pp->unitptr = up;
/*
* Initialize miscellaneous variables
@@ -219,26 +213,25 @@
pp->clockdesc = DESCRIPTION;
memcpy((char *)&pp->refid, REFID, 4);
-#ifdef HAVE_PPSAPI
- instance->assert = 1;
- instance->hardpps = 0;
+ up->assert = 1;
+ up->hardpps = 0;
/*
* Start the PPSAPI interface if it is there. Default to use
* the assert edge and do not enable the kernel hardpps.
*/
- if (time_pps_create(fd, &instance->pps_handle) < 0) {
- instance->pps_handle = 0;
+ if (time_pps_create(fd, &up->pps_handle) < 0) {
+ up->pps_handle = 0;
msyslog(LOG_ERR,
"refclock_jupiter: time_pps_create failed: %m");
}
- else if (!jupiter_ppsapi(instance))
+ else if (!jupiter_ppsapi(up))
goto clean_up;
-#endif /* HAVE_PPSAPI */
-
+
/* Ensure the receiver is properly configured */
- if (!jupiter_config(instance))
+ if (!jupiter_config(up))
goto clean_up;
+ jupiter_pps(up); /* get current PPS state */
return (1);
clean_up:
@@ -253,24 +246,20 @@
static void
jupiter_shutdown(int unit, struct peer *peer)
{
- struct instance *instance;
- struct refclockproc *pp;
-
- pp = peer->procptr;
- instance = pp->unitptr;
- if (!instance)
+ struct refclockproc * const pp = peer->procptr;
+ struct instance * const up = pp->unitptr;
+
+ if (!up)
return;
-#ifdef HAVE_PPSAPI
- if (instance->pps_handle) {
- time_pps_destroy(instance->pps_handle);
- instance->pps_handle = 0;
+ if (up->pps_handle) {
+ time_pps_destroy(up->pps_handle);
+ up->pps_handle = 0;
}
-#endif /* HAVE_PPSAPI */
if (pp->io.fd != -1)
io_closeclock(&pp->io);
- free(instance);
+ free(up);
}
/*
@@ -277,88 +266,138 @@
* jupiter_config - Configure the receiver
*/
static int
-jupiter_config(struct instance *instance)
+jupiter_config(struct instance * const up)
{
- jupiter_debug(instance->peer, __func__, "init receiver");
+ jupiter_debug(up->peer, __func__, "init receiver");
/*
* Initialize the unit variables
*/
- instance->sloppyclockflag = instance->peer->procptr->sloppyclockflag;
- instance->moving = !!(instance->sloppyclockflag & CLK_FLAG2);
- if (instance->moving)
- jupiter_debug(instance->peer, __func__, "mobile platform");
+ up->sloppyclockflag = up->peer->procptr->sloppyclockflag;
+ up->moving = !!(up->sloppyclockflag & CLK_FLAG2);
+ if (up->moving)
+ jupiter_debug(up->peer, __func__, "mobile platform");
- instance->pollcnt = 2;
- instance->polled = 0;
- instance->gpos_gweek = 0;
- instance->gpos_sweek = 0;
- instance->gweek = 0;
- instance->lastsweek = 2 * WEEKSECS;
- instance->timecode = 0;
- instance->stime = 0;
- instance->ssize = 0;
+ ZERO(up->rcv_next);
+ ZERO(up->ref_next);
+ ZERO(up->piv_next);
+ up->ssize = 0;
/* Stop outputting all messages */
- jupiter_canmsg(instance, JUPITER_ALL);
+ jupiter_canmsg(up, JUPITER_ALL);
/* Request the receiver id so we can syslog the firmware version */
- jupiter_reqonemsg(instance, JUPITER_O_ID);
+ jupiter_reqonemsg(up, JUPITER_O_ID);
/* Flag that this the id was requested (so we don't get called again) */
- instance->wantid = 1;
+ up->wantid = 1;
/* Request perodic time mark pulse messages */
- jupiter_reqmsg(instance, JUPITER_O_PULSE, 1);
+ jupiter_reqmsg(up, JUPITER_O_PULSE, 1);
/* Request perodic geodetic position status */
- jupiter_reqmsg(instance, JUPITER_O_GPOS, 1);
+ jupiter_reqmsg(up, JUPITER_O_GPOS, 1);
/* Set application platform type */
- if (instance->moving)
- jupiter_platform(instance, JUPITER_I_PLAT_MED);
+ if (up->moving)
+ jupiter_platform(up, JUPITER_I_PLAT_MED);
else
- jupiter_platform(instance, JUPITER_I_PLAT_LOW);
+ jupiter_platform(up, JUPITER_I_PLAT_LOW);
return (1);
}
-#ifdef HAVE_PPSAPI
+static void
+jupiter_checkpps(
+ struct refclockproc * const pp,
+ struct instance * const up
+ )
+{
+ l_fp tstamp, delta;
+ struct calendar cd;
+
+ if (jupiter_pps(up) || !up->piv_next.weeks)
+ return;
+
+ /* check delay between pulse message and pulse. */
+ delta = up->rcv_pps; /* set by jupiter_pps() */
+ L_SUB(&delta, &up->rcv_next); /* recv time pulse message */
+ if (delta.l_ui != 0 || delta.l_uf >= 0xC0000000) {
+ up->ref_next.weeks = 0; /* consider as consumed... */
+ return;
+ }
+
+ pp->lastrec = up->rcv_pps;
+ tstamp = ntpfp_from_gpsdatum(&up->ref_next);
+ refclock_process_offset(pp, tstamp, up->rcv_pps, pp->fudgetime1);
+ up->rcvtout = 2;
+
+ gpscal_to_calendar(&cd, &up->ref_next);
+ refclock_save_lcode(pp, ntpcal_iso8601std(NULL, 0, &cd),
+ (size_t)-1);
+ up->ref_next.weeks = 0; /* consumed... */
+}
+
/*
+ * jupiter_ticker - process periodic checks
+ */
+static void
+jupiter_ticker(int unit, struct peer *peer)
+{
+ struct refclockproc * const pp = peer->procptr;
+ struct instance * const up = pp->unitptr;
+
+ if (!up)
+ return;
+
+ /* check if we can add another sample now */
+ jupiter_checkpps(pp, up);
+
+ /* check the pivot update cycle */
+ if (up->piv_hold && !--up->piv_hold)
+ ZERO(up->piv_next);
+
+ if (up->rcvtout)
+ --up->rcvtout;
+ else if (pp->coderecv != pp->codeproc)
+ refclock_samples_expire(pp, 1);
+}
+
+/*
* Initialize PPSAPI
*/
int
jupiter_ppsapi(
- struct instance *instance /* unit structure pointer */
+ struct instance * const up /* unit structure pointer */
)
{
int capability;
- if (time_pps_getcap(instance->pps_handle, &capability) < 0) {
+ if (time_pps_getcap(up->pps_handle, &capability) < 0) {
msyslog(LOG_ERR,
"refclock_jupiter: time_pps_getcap failed: %m");
return (0);
}
- memset(&instance->pps_params, 0, sizeof(pps_params_t));
- if (!instance->assert)
- instance->pps_params.mode = capability & PPS_CAPTURECLEAR;
+ memset(&up->pps_params, 0, sizeof(pps_params_t));
+ if (!up->assert)
+ up->pps_params.mode = capability & PPS_CAPTURECLEAR;
else
- instance->pps_params.mode = capability & PPS_CAPTUREASSERT;
- if (!(instance->pps_params.mode & (PPS_CAPTUREASSERT | PPS_CAPTURECLEAR))) {
+ up->pps_params.mode = capability & PPS_CAPTUREASSERT;
+ if (!(up->pps_params.mode & (PPS_CAPTUREASSERT | PPS_CAPTURECLEAR))) {
msyslog(LOG_ERR,
"refclock_jupiter: invalid capture edge %d",
- instance->assert);
+ up->assert);
return (0);
}
- instance->pps_params.mode |= PPS_TSFMT_TSPEC;
- if (time_pps_setparams(instance->pps_handle, &instance->pps_params) < 0) {
+ up->pps_params.mode |= PPS_TSFMT_TSPEC;
+ if (time_pps_setparams(up->pps_handle, &up->pps_params) < 0) {
msyslog(LOG_ERR,
"refclock_jupiter: time_pps_setparams failed: %m");
return (0);
}
- if (instance->hardpps) {
- if (time_pps_kcbind(instance->pps_handle, PPS_KC_HARDPPS,
- instance->pps_params.mode & ~PPS_TSFMT_TSPEC,
+ if (up->hardpps) {
+ if (time_pps_kcbind(up->pps_handle, PPS_KC_HARDPPS,
+ up->pps_params.mode & ~PPS_TSFMT_TSPEC,
PPS_TSFMT_TSPEC) < 0) {
msyslog(LOG_ERR,
"refclock_jupiter: time_pps_kcbind failed: %m");
@@ -366,15 +405,15 @@
}
hardpps_enable = 1;
}
-/* instance->peer->precision = PPS_PRECISION; */
+/* up->peer->precision = PPS_PRECISION; */
#if DEBUG
if (debug) {
- time_pps_getparams(instance->pps_handle, &instance->pps_params);
- jupiter_debug(instance->peer, __func__,
+ time_pps_getparams(up->pps_handle, &up->pps_params);
+ jupiter_debug(up->peer, __func__,
"pps capability 0x%x version %d mode 0x%x kern %d",
- capability, instance->pps_params.api_version,
- instance->pps_params.mode, instance->hardpps);
+ capability, up->pps_params.api_version,
+ up->pps_params.mode, up->hardpps);
}
#endif
@@ -387,48 +426,44 @@
* Return 0 on failure and 1 on success.
*/
static int
-jupiter_pps(struct instance *instance)
+jupiter_pps(struct instance * const up)
{
pps_info_t pps_info;
struct timespec timeout, ts;
- double dtemp;
l_fp tstmp;
/*
* Convert the timespec nanoseconds field to ntp l_fp units.
*/
- if (instance->pps_handle == 0)
+ if (up->pps_handle == 0)
return 1;
timeout.tv_sec = 0;
timeout.tv_nsec = 0;
- memcpy(&pps_info, &instance->pps_info, sizeof(pps_info_t));
- if (time_pps_fetch(instance->pps_handle, PPS_TSFMT_TSPEC, &instance->pps_info,
+ memcpy(&pps_info, &up->pps_info, sizeof(pps_info_t));
+ if (time_pps_fetch(up->pps_handle, PPS_TSFMT_TSPEC, &up->pps_info,
&timeout) < 0)
return 1;
- if (instance->pps_params.mode & PPS_CAPTUREASSERT) {
+ if (up->pps_params.mode & PPS_CAPTUREASSERT) {
if (pps_info.assert_sequence ==
- instance->pps_info.assert_sequence)
+ up->pps_info.assert_sequence)
return 1;
- ts = instance->pps_info.assert_timestamp;
- } else if (instance->pps_params.mode & PPS_CAPTURECLEAR) {
+ ts = up->pps_info.assert_timestamp;
+ } else if (up->pps_params.mode & PPS_CAPTURECLEAR) {
if (pps_info.clear_sequence ==
- instance->pps_info.clear_sequence)
+ up->pps_info.clear_sequence)
return 1;
- ts = instance->pps_info.clear_timestamp;
+ ts = up->pps_info.clear_timestamp;
} else {
return 1;
}
- if ((instance->ts.tv_sec == ts.tv_sec) && (instance->ts.tv_nsec == ts.tv_nsec))
+
+ tstmp = tspec_stamp_to_lfp(ts);
+ if (L_ISEQU(&tstmp, &up->rcv_pps))
return 1;
- instance->ts = ts;
- tstmp.l_ui = (u_int32)ts.tv_sec + JAN_1970;
- dtemp = ts.tv_nsec * FRAC / 1e9;
- tstmp.l_uf = (u_int32)dtemp;
- instance->peer->procptr->lastrec = tstmp;
+ up->rcv_pps = tstmp;
return 0;
}
-#endif /* HAVE_PPSAPI */
/*
* jupiter_poll - jupiter watchdog routine
@@ -436,37 +471,25 @@
static void
jupiter_poll(int unit, struct peer *peer)
{
- struct instance *instance;
- struct refclockproc *pp;
+ struct refclockproc * const pp = peer->procptr;
+ struct instance * const up = pp->unitptr;
- pp = peer->procptr;
- instance = pp->unitptr;
+ pp->polls++;
/*
- * You don't need to poll this clock. It puts out timecodes
- * once per second. If asked for a timestamp, take note.
- * The next time a timecode comes in, it will be fed back.
+ * If we have new samples since last poll, everything is fine.
+ * if not, blarb loudly.
*/
-
- /*
- * If we haven't had a response in a while, reset the receiver.
- */
- if (instance->pollcnt > 0) {
- instance->pollcnt--;
+ if (pp->coderecv != pp->codeproc) {
+ refclock_receive(peer);
+ refclock_report(peer, CEVNT_NOMINAL);
} else {
refclock_report(peer, CEVNT_TIMEOUT);
/* Request the receiver id to trigger a reconfig */
- jupiter_reqonemsg(instance, JUPITER_O_ID);
- instance->wantid = 0;
+ jupiter_reqonemsg(up, JUPITER_O_ID);
+ up->wantid = 0;
}
-
- /*
- * polled every 64 seconds. Ask jupiter_receive to hand in
- * a timestamp.
- */
- instance->polled = 1;
- pp->polls++;
}
/*
@@ -480,30 +503,21 @@
struct peer *peer /* peer structure pointer */
)
{
- struct refclockproc *pp;
- struct instance *instance;
+ struct refclockproc * const pp = peer->procptr;
+ struct instance * const up = pp->unitptr;
+
u_char sloppyclockflag;
- pp = peer->procptr;
- instance = pp->unitptr;
+ up->assert = !(pp->sloppyclockflag & CLK_FLAG3);
+ jupiter_ppsapi(up);
- DTOLFP(pp->fudgetime2, &instance->limit);
- /* Force positive value. */
- if (L_ISNEG(&instance->limit))
- L_NEG(&instance->limit);
-
-#ifdef HAVE_PPSAPI
- instance->assert = !(pp->sloppyclockflag & CLK_FLAG3);
- jupiter_ppsapi(instance);
-#endif /* HAVE_PPSAPI */
-
- sloppyclockflag = instance->sloppyclockflag;
- instance->sloppyclockflag = pp->sloppyclockflag;
- if ((instance->sloppyclockflag & CLK_FLAG2) !=
+ sloppyclockflag = up->sloppyclockflag;
+ up->sloppyclockflag = pp->sloppyclockflag;
+ if ((up->sloppyclockflag & CLK_FLAG2) !=
(sloppyclockflag & CLK_FLAG2)) {
jupiter_debug(peer, __func__,
"mode switch: reset receiver");
- jupiter_config(instance);
+ jupiter_config(up);
return;
}
}
@@ -513,49 +527,43 @@
* Gag me!
*/
static void
-jupiter_receive(struct recvbuf *rbufp)
+jupiter_receive(struct recvbuf * const rbufp)
{
+ struct peer * const peer = rbufp->recv_peer;
+ struct refclockproc * const pp = peer->procptr;
+ struct instance * const up = pp->unitptr;
+
size_t bpcnt;
- int cc, size, ppsret;
- time_t last_timecode;
- u_int32 laststime;
+ int cc, size;
const char *cp;
u_char *bp;
u_short *sp;
struct jid *ip;
struct jheader *hp;
- struct peer *peer;
- struct refclockproc *pp;
- struct instance *instance;
- l_fp tstamp;
/* Initialize pointers and read the timecode and timestamp */
- peer = rbufp->recv_peer;
- pp = peer->procptr;
- instance = pp->unitptr;
-
bp = (u_char *)rbufp->recv_buffer;
bpcnt = rbufp->recv_length;
/* This shouldn't happen */
- if (bpcnt > sizeof(instance->sbuf) - instance->ssize)
- bpcnt = sizeof(instance->sbuf) - instance->ssize;
+ if (bpcnt > sizeof(up->sbuf) - up->ssize)
+ bpcnt = sizeof(up->sbuf) - up->ssize;
/* Append to input buffer */
- memcpy((u_char *)instance->sbuf + instance->ssize, bp, bpcnt);
- instance->ssize += bpcnt;
+ memcpy((u_char *)up->sbuf + up->ssize, bp, bpcnt);
+ up->ssize += bpcnt;
/* While there's at least a header and we parse an intact message */
- while (instance->ssize > (int)sizeof(*hp) && (cc = jupiter_recv(instance)) > 0) {
- instance->pollcnt = 2;
-
- tstamp = rbufp->recv_time;
- hp = (struct jheader *)instance->sbuf;
+ while (up->ssize > (int)sizeof(*hp) && (cc = jupiter_recv(up)) > 0) {
+ hp = (struct jheader *)up->sbuf;
sp = (u_short *)(hp + 1);
size = cc - sizeof(*hp);
switch (getshort(hp->id)) {
case JUPITER_O_PULSE:
+ /* first see if we can push another sample: */
+ jupiter_checkpps(pp, up);
+
if (size != sizeof(struct jpulse)) {
jupiter_debug(peer, __func__,
"pulse: len %d != %u",
@@ -563,87 +571,24 @@
refclock_report(peer, CEVNT_BADREPLY);
break;
}
-
- /*
- * There appears to be a firmware bug related
- * to the pulse message; in addition to the one
- * per second messages, we get an extra pulse
+
+ /* Parse timecode (even when there's no pps)
+ *
+ * There appears to be a firmware bug related to
+ * the pulse message; in addition to the one per
+ * second messages, we get an extra pulse
* message once an hour (on the anniversary of
* the cold start). It seems to come 200 ms
- * after the one requested. So if we've seen a
- * pulse message in the last 210 ms, we skip
- * this one.
+ * after the one requested.
+ *
+ * But since we feed samples only when a new PPS
+ * pulse is found we can simply ignore that and
+ * aggregate/update any existing timing message.
*/
- laststime = instance->stime;
- instance->stime = DS2UI(((struct jpulse *)sp)->stime);
- if (laststime != 0 && instance->stime - laststime <= 21) {
+ if ((cp = jupiter_parse_t(up, sp, rbufp->recv_time)) != NULL) {
jupiter_debug(peer, __func__,
- "avoided firmware bug (stime %.2f, laststime %.2f)",
- (double)instance->stime * 0.01, (double)laststime * 0.01);
- break;
- }
-
- /* Retrieve pps timestamp */
- ppsret = jupiter_pps(instance);
-
- /*
- * Add one second if msg received early
- * (i.e. before limit, a.k.a. fudgetime2) in
- * the second.
- */
- L_SUB(&tstamp, &pp->lastrec);
- if (!L_ISGEQ(&tstamp, &instance->limit))
- ++pp->lastrec.l_ui;
-
- /* Parse timecode (even when there's no pps) */
- last_timecode = instance->timecode;
- if ((cp = jupiter_parse_t(instance, sp)) != NULL) {
- jupiter_debug(peer, __func__,
"pulse: %s", cp);
- break;
}
-
- /* Bail if we didn't get a pps timestamp */
- if (ppsret)
- break;
-
- /* Bail if we don't have the last timecode yet */
- if (last_timecode == 0)
- break;
-
- /* Add the new sample to a median filter */
- tstamp.l_ui = JAN_1970 + (u_int32)last_timecode;
- tstamp.l_uf = 0;
-
- refclock_process_offset(pp, tstamp, pp->lastrec, pp->fudgetime1);
-
- /*
- * The clock will blurt a timecode every second
- * but we only want one when polled. If we
- * havn't been polled, bail out.
- */
- if (!instance->polled)
- break;
- instance->polled = 0;
-
- /*
- * It's a live one! Remember this time.
- */
-
- pp->lastref = pp->lastrec;
- refclock_receive(peer);
-
- /*
- * If we get here - what we got from the clock is
- * OK, so say so
- */
- refclock_report(peer, CEVNT_NOMINAL);
-
- /*
- * We have succeeded in answering the poll.
- * Turn off the flag and return
- */
- instance->polled = 0;
break;
case JUPITER_O_GPOS:
@@ -655,7 +600,7 @@
break;
}
- if ((cp = jupiter_parse_gpos(instance, sp)) != NULL) {
+ if ((cp = jupiter_parse_gpos(up, sp)) != NULL) {
jupiter_debug(peer, __func__,
"gpos: %s", cp);
break;
@@ -681,16 +626,16 @@
msyslog(LOG_DEBUG,
"jupiter_receive: %s chan ver %s, %s (%s)",
ip->chans, ip->vers, ip->date, ip->opts);
- if (instance->wantid)
- instance->wantid = 0;
+ if (up->wantid)
+ up->wantid = 0;
else {
jupiter_debug(peer, __func__, "reset receiver");
- jupiter_config(instance);
+ jupiter_config(up);
/*
* Restore since jupiter_config() just
* zeroed it
*/
- instance->ssize = cc;
+ up->ssize = cc;
}
break;
@@ -699,144 +644,94 @@
getshort(hp->id));
break;
}
- instance->ssize -= cc;
- if (instance->ssize < 0) {
+ up->ssize -= cc;
+ if (up->ssize < 0) {
fprintf(stderr, "jupiter_recv: negative ssize!\n");
abort();
- } else if (instance->ssize > 0)
- memcpy(instance->sbuf, (u_char *)instance->sbuf + cc, instance->ssize);
+ } else if (up->ssize > 0)
+ memcpy(up->sbuf, (u_char *)up->sbuf + cc, up->ssize);
}
}
static const char *
-jupiter_parse_t(struct instance *instance, u_short *sp)
+jupiter_parse_t(
+ struct instance * const up,
+ u_short * sp,
+ l_fp rcvtime
+ )
{
- struct tm *tm;
- char *cp;
struct jpulse *jp;
u_int32 sweek;
- time_t last_timecode;
u_short flags;
-
+ l_fp fofs;
+
jp = (struct jpulse *)sp;
+ flags = getshort(jp->flags);
+ /* Toss if not designated "valid" by the gps.
+ * !!NOTE!! do *not* kill data received so far!
+ */
+ if ((flags & JUPITER_O_PULSE_VALID) == 0) {
+ refclock_report(up->peer, CEVNT_BADTIME);
+ return ("time mark not valid");
+ }
+
+ up->rcv_next = rcvtime; /* remember when this happened */
+
/* The timecode is presented as seconds into the current GPS week */
sweek = DS2UI(jp->sweek) % WEEKSECS;
-
+ /* check if we have to apply the UTC offset ourselves */
+ if ((flags & JUPITER_O_PULSE_UTC) == 0) {
+ struct timespec tofs;
+ tofs.tv_sec = getshort(jp->offs);
+ tofs.tv_nsec = DS2I(jp->offns);
+ fofs = tspec_intv_to_lfp(tofs);
+ L_NEG(&fofs);
+ } else {
+ ZERO(fofs);
+ }
+
/*
* If we don't know the current GPS week, calculate it from the
* current time. (It's too bad they didn't include this
- * important value in the pulse message). We'd like to pick it
- * up from one of the other messages like gpos or chan but they
- * don't appear to be synchronous with time keeping and changes
- * too soon (something like 10 seconds before the new GPS
- * week).
+ * important value in the pulse message).
+ *
+ * So we pick the pivot value from the other messages like gpos
+ * or chan if we can. Of course, the PULSE message can be in UTC
+ * or GPS time scale, and the other messages are simply always
+ * GPS time.
*
- * If we already know the current GPS week, increment it when
- * we wrap into a new week.
+ * But as long as the difference between the time stamps is less
+ * than a half week, the unfolding of a week time is unambigeous
+ * and well suited for the problem we have here. And we won't
+ * see *that* many leap seconds, ever.
*/
- if (instance->gweek == 0) {
- if (!instance->gpos_gweek) {
- return ("jupiter_parse_t: Unknown gweek");
- }
-
- instance->gweek = instance->gpos_gweek;
-
- /*
- * Fix warps. GPOS has GPS time and PULSE has UTC.
- * Plus, GPOS need not be completely in synch with
- * the PPS signal.
- */
- if (instance->gpos_sweek >= sweek) {
- if ((instance->gpos_sweek - sweek) > WEEKSECS / 2)
- ++instance->gweek;
- }
- else {
- if ((sweek - instance->gpos_sweek) > WEEKSECS / 2)
- --instance->gweek;
- }
+ if (up->piv_next.weeks) {
+ up->ref_next = gpscal_from_weektime2(
+ sweek, fofs, &up->piv_next);
+ up->piv_next = up->ref_next;
+ } else {
+ up->ref_next = gpscal_from_weektime1(
+ sweek, fofs, rcvtime);
}
- else if (sweek == 0 && instance->lastsweek == WEEKSECS - 1) {
- ++instance->gweek;
- jupiter_debug(instance->peer, __func__,
- "NEW gps week %u", instance->gweek);
- }
+
- /*
- * See if the sweek stayed the same (this happens when there is
- * no pps pulse).
- *
- * Otherwise, look for time warps:
- *
- * - we have stored at least one lastsweek and
- * - the sweek didn't increase by one and
- * - we didn't wrap to a new GPS week
- *
- * Then we warped.
- */
- if (instance->lastsweek == sweek)
- jupiter_debug(instance->peer, __func__,
- "gps sweek not incrementing (%d)",
- sweek);
- else if (instance->lastsweek != 2 * WEEKSECS &&
- instance->lastsweek + 1 != sweek &&
- !(sweek == 0 && instance->lastsweek == WEEKSECS - 1))
- jupiter_debug(instance->peer, __func__,
- "gps sweek jumped (was %d, now %d)",
- instance->lastsweek, sweek);
- instance->lastsweek = sweek;
- /* This timecode describes next pulse */
- last_timecode = instance->timecode;
- instance->timecode =
- GPS_EPOCH + (instance->gweek * WEEKSECS) + sweek;
-
- if (last_timecode == 0)
- /* XXX debugging */
- jupiter_debug(instance->peer, __func__,
- "UTC <none> (gweek/sweek %u/%u)",
- instance->gweek, sweek);
- else {
- /* XXX debugging */
- tm = gmtime(&last_timecode);
- cp = asctime(tm);
-
- jupiter_debug(instance->peer, __func__,
- "UTC %.24s (gweek/sweek %u/%u)",
- cp, instance->gweek, sweek);
-
- /* Billboard last_timecode (which is now the current time) */
- instance->peer->procptr->year = tm->tm_year + 1900;
- instance->peer->procptr->day = tm->tm_yday + 1;
- instance->peer->procptr->hour = tm->tm_hour;
- instance->peer->procptr->minute = tm->tm_min;
- instance->peer->procptr->second = tm->tm_sec;
- }
-
- flags = getshort(jp->flags);
-
- /* Toss if not designated "valid" by the gps */
- if ((flags & JUPITER_O_PULSE_VALID) == 0) {
- refclock_report(instance->peer, CEVNT_BADTIME);
- return ("time mark not valid");
- }
-
- /* We better be sync'ed to UTC... */
- if ((flags & JUPITER_O_PULSE_UTC) == 0) {
- refclock_report(instance->peer, CEVNT_BADTIME);
- return ("time mark not sync'ed to UTC");
- }
-
return (NULL);
}
static const char *
-jupiter_parse_gpos(struct instance *instance, u_short *sp)
+jupiter_parse_gpos(
+ struct instance * const up,
+ u_short * sp
+ )
{
struct jgpos *jg;
- time_t t;
- struct tm *tm;
+ struct calendar tref;
char *cp;
+ struct timespec tofs;
+ uint16_t raw_week;
+ uint32_t raw_secs;
jg = (struct jgpos *)sp;
@@ -845,31 +740,22 @@
* Solution not valid. Use caution and refuse
* to determine GPS week from this message.
*/
- instance->gpos_gweek = 0;
- instance->gpos_sweek = 0;
return ("Navigation solution not valid");
}
- instance->gpos_sweek = DS2UI(jg->sweek);
- instance->gpos_gweek = basedate_expand_gpsweek(getshort(jg->gweek));
+ raw_week = getshort(jg->gweek);
+ raw_secs = DS2UI(jg->sweek);
+ tofs.tv_sec = 0;
+ tofs.tv_nsec = DS2UI(jg->nsweek);
+ up->piv_next = gpscal_from_gpsweek(raw_week, raw_secs,
+ tspec_intv_to_lfp(tofs));
+ up->piv_hold = 60;
- /* according to the protocol spec, the seconds-in-week cannot
- * exceed the nominal value: Is it really necessary to normalise
- * the seconds???
- */
- while(instance->gpos_sweek >= WEEKSECS) {
- instance->gpos_sweek -= WEEKSECS;
- ++instance->gpos_gweek;
- }
- instance->gweek = 0;
-
- t = GPS_EPOCH + (instance->gpos_gweek * WEEKSECS) + instance->gpos_sweek;
- tm = gmtime(&t);
- cp = asctime(tm);
-
- jupiter_debug(instance->peer, __func__,
- "GPS %.24s (gweek/sweek %u/%u)",
- cp, instance->gpos_gweek, instance->gpos_sweek);
+ gpscal_to_calendar(&tref, &up->piv_next);
+ cp = ntpcal_iso8601std(NULL, 0, &tref);
+ jupiter_debug(up->peer, __func__,
+ "GPS %s (gweek/sweek %hu/%u)",
+ cp, (unsigned short)raw_week, (unsigned int)raw_secs);
return (NULL);
}
@@ -906,7 +792,10 @@
/* Checksum and transmit a message to the Jupiter */
static char *
-jupiter_send(struct instance *instance, struct jheader *hp)
+jupiter_send(
+ struct instance * const up,
+ struct jheader * hp
+ )
{
u_int len, size;
ssize_t cc;
@@ -923,7 +812,7 @@
size += (len + 1) * sizeof(u_short);
}
- if ((cc = write(instance->peer->procptr->io.fd, (char *)hp, size)) < 0) {
+ if ((cc = write(up->peer->procptr->io.fd, (char *)hp, size)) < 0) {
msnprintf(errstr, sizeof(errstr), "write: %m");
return (errstr);
} else if (cc != (int)size) {
@@ -947,8 +836,11 @@
/* An interval of zero means to output on trigger */
static void
-jupiter_reqmsg(struct instance *instance, u_int id,
- u_int interval)
+jupiter_reqmsg(
+ struct instance * const up,
+ u_int id,
+ u_int interval
+ )
{
struct jheader *hp;
struct jrequest *rp;
@@ -959,8 +851,8 @@
rp = &reqmsg.jrequest;
rp->trigger = putshort(interval == 0);
rp->interval = putshort(interval);
- if ((cp = jupiter_send(instance, hp)) != NULL)
- jupiter_debug(instance->peer, __func__, "%u: %s", id, cp);
+ if ((cp = jupiter_send(up, hp)) != NULL)
+ jupiter_debug(up->peer, __func__, "%u: %s", id, cp);
}
/* Cancel periodic message output */
@@ -971,7 +863,10 @@
};
static void
-jupiter_canmsg(struct instance *instance, u_int id)
+jupiter_canmsg(
+ struct instance * const up,
+ u_int id
+ )
{
struct jheader *hp;
char *cp;
@@ -978,8 +873,8 @@
hp = &canmsg;
hp->id = putshort(id);
- if ((cp = jupiter_send(instance, hp)) != NULL)
- jupiter_debug(instance->peer, __func__, "%u: %s", id, cp);
+ if ((cp = jupiter_send(up, hp)) != NULL)
+ jupiter_debug(up->peer, __func__, "%u: %s", id, cp);
}
/* Request a single message output */
@@ -990,7 +885,10 @@
};
static void
-jupiter_reqonemsg(struct instance *instance, u_int id)
+jupiter_reqonemsg(
+ struct instance * const up,
+ u_int id
+ )
{
struct jheader *hp;
char *cp;
@@ -997,8 +895,8 @@
hp = &reqonemsg;
hp->id = putshort(id);
- if ((cp = jupiter_send(instance, hp)) != NULL)
- jupiter_debug(instance->peer, __func__, "%u: %s", id, cp);
+ if ((cp = jupiter_send(up, hp)) != NULL)
+ jupiter_debug(up->peer, __func__, "%u: %s", id, cp);
}
/* Set the platform dynamics */
@@ -1013,7 +911,10 @@
};
static void
-jupiter_platform(struct instance *instance, u_int platform)
+jupiter_platform(
+ struct instance * const up,
+ u_int platform
+ )
{
struct jheader *hp;
struct jplat *pp;
@@ -1022,8 +923,8 @@
hp = &platmsg.jheader;
pp = &platmsg.jplat;
pp->platform = putshort(platform);
- if ((cp = jupiter_send(instance, hp)) != NULL)
- jupiter_debug(instance->peer, __func__, "%u: %s", platform, cp);
+ if ((cp = jupiter_send(up, hp)) != NULL)
+ jupiter_debug(up->peer, __func__, "%u: %s", platform, cp);
}
/* Checksum "len" shorts */
@@ -1042,7 +943,9 @@
/* Return the size of the next message (or zero if we don't have it all yet) */
static int
-jupiter_recv(struct instance *instance)
+jupiter_recv(
+ struct instance * const up
+ )
{
int n, len, size, cc;
struct jheader *hp;
@@ -1051,22 +954,22 @@
/* Must have at least a header's worth */
cc = sizeof(*hp);
- size = instance->ssize;
+ size = up->ssize;
if (size < cc)
return (0);
/* Search for the sync short if missing */
- sp = instance->sbuf;
+ sp = up->sbuf;
hp = (struct jheader *)sp;
if (getshort(hp->sync) != JUPITER_SYNC) {
/* Wasn't at the front, sync up */
- jupiter_debug(instance->peer, __func__, "syncing");
+ jupiter_debug(up->peer, __func__, "syncing");
bp = (u_char *)sp;
n = size;
while (n >= 2) {
if (bp[0] != (JUPITER_SYNC & 0xff)) {
/*
- jupiter_debug(instance->peer, __func__,
+ jupiter_debug(up->peer, __func__,
"{0x%x}", bp[0]);
*/
++bp;
@@ -1076,7 +979,7 @@
if (bp[1] == ((JUPITER_SYNC >> 8) & 0xff))
break;
/*
- jupiter_debug(instance->peer, __func__,
+ jupiter_debug(up->peer, __func__,
"{0x%x 0x%x}", bp[0], bp[1]);
*/
bp += 2;
@@ -1083,13 +986,13 @@
n -= 2;
}
/*
- jupiter_debug(instance->peer, __func__, "\n");
+ jupiter_debug(up->peer, __func__, "\n");
*/
/* Shuffle data to front of input buffer */
if (n > 0)
memcpy(sp, bp, n);
size = n;
- instance->ssize = size;
+ up->ssize = size;
if (size < cc || hp->sync != JUPITER_SYNC)
return (0);
}
@@ -1096,9 +999,9 @@
if (jupiter_cksum(sp, (cc / sizeof(u_short) - 1)) !=
getshort(hp->hsum)) {
- jupiter_debug(instance->peer, __func__, "bad header checksum!");
+ jupiter_debug(up->peer, __func__, "bad header checksum!");
/* This is drastic but checksum errors should be rare */
- instance->ssize = 0;
+ up->ssize = 0;
return (0);
}
@@ -1113,10 +1016,10 @@
/* Check payload checksum */
sp = (u_short *)(hp + 1);
if (jupiter_cksum(sp, len) != getshort(sp[len])) {
- jupiter_debug(instance->peer,
+ jupiter_debug(up->peer,
__func__, "bad payload checksum!");
/* This is drastic but checksum errors should be rare */
- instance->ssize = 0;
+ up->ssize = 0;
return (0);
}
cc += n;
--- contrib/ntp/ntpd/refclock_nmea.c.orig
+++ contrib/ntp/ntpd/refclock_nmea.c
@@ -38,7 +38,7 @@
#include "ntp_unixtime.h"
#include "ntp_refclock.h"
#include "ntp_stdlib.h"
-#include "ntp_calendar.h"
+#include "ntp_calgps.h"
#include "timespecops.h"
#ifdef HAVE_PPSAPI
@@ -67,33 +67,34 @@
* GPS sentences other than RMC (the default) may be enabled by setting
* the relevent bits of 'mode' in the server configuration line
* server 127.127.20.x mode X
- *
+ *
* bit 0 - enables RMC (1)
* bit 1 - enables GGA (2)
* bit 2 - enables GLL (4)
* bit 3 - enables ZDA (8) - Standard Time & Date
- * bit 3 - enables ZDG (8) - Accord GPS Clock's custom sentence with GPS time
+ * bit 3 - enables ZDG (8) - Accord GPS Clock's custom sentence with GPS time
* very close to standard ZDA
- *
+ *
* Multiple sentences may be selected except when ZDG/ZDA is selected.
*
* bit 4/5/6 - selects the baudrate for serial port :
- * 0 for 4800 (default)
- * 1 for 9600
- * 2 for 19200
- * 3 for 38400
- * 4 for 57600
- * 5 for 115200
+ * 0 for 4800 (default)
+ * 1 for 9600
+ * 2 for 19200
+ * 3 for 38400
+ * 4 for 57600
+ * 5 for 115200
*/
#define NMEA_MESSAGE_MASK 0x0000FF0FU
#define NMEA_BAUDRATE_MASK 0x00000070U
#define NMEA_BAUDRATE_SHIFT 4
-#define NMEA_DELAYMEAS_MASK 0x80
+#define NMEA_DELAYMEAS_MASK 0x00000080U
#define NMEA_EXTLOG_MASK 0x00010000U
-#define NMEA_DATETRUST_MASK 0x02000000U
+#define NMEA_QUIETPPS_MASK 0x00020000U
+#define NMEA_DATETRUST_MASK 0x00040000U
-#define NMEA_PROTO_IDLEN 5 /* tag name must be at least 5 chars */
+#define NMEA_PROTO_IDLEN 4 /* tag name must be at least 4 chars */
#define NMEA_PROTO_MINLEN 6 /* min chars in sentence, excluding CS */
#define NMEA_PROTO_MAXLEN 80 /* max chars in sentence, excluding CS */
#define NMEA_PROTO_FIELDS 32 /* not official; limit on fields per record */
@@ -110,24 +111,24 @@
* $GPRMC,232418.19,A,3513.8386,S,14900.7853,E,00.0,000.0,121199,12.,E*77
*
* Defining GPZDA to support Standard Time & Date
- * sentence. The sentence has the following format
- *
+ * sentence. The sentence has the following format
+ *
* $--ZDA,HHMMSS.SS,DD,MM,YYYY,TH,TM,*CS<CR><LF>
*
- * Apart from the familiar fields,
+ * Apart from the familiar fields,
* 'TH' Time zone Hours
* 'TM' Time zone Minutes
*
- * Defining GPZDG to support Accord GPS Clock's custom NMEA
- * sentence. The sentence has the following format
- *
+ * Defining GPZDG to support Accord GPS Clock's custom NMEA
+ * sentence. The sentence has the following format
+ *
* $GPZDG,HHMMSS.S,DD,MM,YYYY,AA.BB,V*CS<CR><LF>
*
* It contains the GPS timestamp valid for next PPS pulse.
- * Apart from the familiar fields,
- * 'AA.BB' denotes the signal strength( should be < 05.00 )
- * 'V' denotes the GPS sync status :
- * '0' indicates INVALID time,
+ * Apart from the familiar fields,
+ * 'AA.BB' denotes the signal strength( should be < 05.00 )
+ * 'V' denotes the GPS sync status :
+ * '0' indicates INVALID time,
* '1' indicates accuracy of +/-20 ms
* '2' indicates accuracy of +/-100 ns
*
@@ -151,6 +152,8 @@
#define SPEED232 B4800 /* uart speed (4800 bps) */
#define PRECISION (-9) /* precision assumed (about 2 ms) */
#define PPS_PRECISION (-20) /* precision assumed (about 1 us) */
+#define DATE_HOLD 16 /* seconds to hold on provided GPS date */
+#define DATE_HLIM 4 /* when do we take ANY date format */
#define REFID "GPS\0" /* reference id */
#define DESCRIPTION "NMEA GPS Clock" /* who we are */
#ifndef O_NOCTTY
@@ -181,7 +184,8 @@
*/
#define NMEA_GPZDG 4
#define NMEA_PGRMF 5
-#define NMEA_ARRAY_SIZE (NMEA_PGRMF + 1)
+#define NMEA_PUBX04 6
+#define NMEA_ARRAY_SIZE (NMEA_PUBX04 + 1)
/*
* Sentence selection mode bits
@@ -191,6 +195,7 @@
#define USE_GPGLL 0x00000004u
#define USE_GPZDA 0x00000008u
#define USE_PGRMF 0x00000100u
+#define USE_PUBX04 0x00000200u
/* mapping from sentence index to controlling mode bit */
static const u_int32 sentence_mode[NMEA_ARRAY_SIZE] =
@@ -200,7 +205,8 @@
USE_GPGLL,
USE_GPZDA,
USE_GPZDA,
- USE_PGRMF
+ USE_PGRMF,
+ USE_PUBX04
};
/* date formats we support */
@@ -209,6 +215,15 @@
DATE_3_DDMMYYYY /* use 3 fields with 4-digit year */
};
+/* date type */
+enum date_type {
+ DTYP_NONE,
+ DTYP_Y2D, /* 2-digit year */
+ DTYP_W10B, /* 10-bit week in GPS epoch */
+ DTYP_Y4D, /* 4-digit (full) year */
+ DTYP_WEXT /* extended week in GPS epoch */
+};
+
/* results for 'field_init()'
*
* Note: If a checksum is present, the checksum test must pass OK or the
@@ -222,18 +237,22 @@
/*
* Unit control structure
*/
+struct refclock_atom;
+typedef struct refclock_atom TAtomUnit;
typedef struct {
-#ifdef HAVE_PPSAPI
- struct refclock_atom atom; /* PPSAPI structure */
- int ppsapi_fd; /* fd used with PPSAPI */
- u_char ppsapi_tried; /* attempt PPSAPI once */
- u_char ppsapi_lit; /* time_pps_create() worked */
- u_char ppsapi_gate; /* system is on PPS */
-#endif /* HAVE_PPSAPI */
- u_char gps_time; /* use GPS time, not UTC */
- u_short century_cache; /* cached current century */
- l_fp last_reftime; /* last processed reference stamp */
- short epoch_warp; /* last epoch warp, for logging */
+# ifdef HAVE_PPSAPI
+ TAtomUnit atom; /* PPSAPI structure */
+ int ppsapi_fd; /* fd used with PPSAPI */
+ u_char ppsapi_tried; /* attempt PPSAPI once */
+ u_char ppsapi_lit; /* time_pps_create() worked */
+# endif /* HAVE_PPSAPI */
+ uint16_t rcvtout; /* one-shot for sample expiration */
+ u_char ppsapi_gate; /* system is on PPS */
+ u_char gps_time; /* use GPS time, not UTC */
+ l_fp last_reftime; /* last processed reference stamp */
+ TNtpDatum last_gpsdate; /* last processed split date/time */
+ u_short hold_gpsdate; /* validity ticker for above */
+ u_short type_gpsdate; /* date info type for above */
/* tally stats, reset each poll cycle */
struct
{
@@ -243,10 +262,14 @@
u_int malformed; /* Bad checksum, invalid date or time */
u_int filtered; /* mode bits, not GPZDG, same second */
u_int pps_used;
- }
+ }
tally;
/* per sentence checksum seen flag */
- u_char cksum_type[NMEA_ARRAY_SIZE];
+ u_char cksum_type[NMEA_ARRAY_SIZE];
+
+ /* line assembly buffer (NMEAD support) */
+ u_short lb_len;
+ char lb_buf[BMAX]; /* assembly buffer */
} nmea_unit;
/*
@@ -260,34 +283,15 @@
} nmea_data;
/*
- * NMEA gps week/time information
- * This record contains the number of weeks since 1980-01-06 modulo
- * 1024, the seconds elapsed since start of the week, and the number of
- * leap seconds that are the difference between GPS and UTC time scale.
- */
-typedef struct {
- u_int32 wt_time; /* seconds since weekstart */
- u_short wt_week; /* week number */
- short wt_leap; /* leap seconds */
-} gps_weektm;
-
-/*
- * The GPS week time scale starts on Sunday, 1980-01-06. We need the
- * rata die number of this day.
- */
-#ifndef DAY_GPS_STARTS
-#define DAY_GPS_STARTS 722820
-#endif
-
-/*
* Function prototypes
*/
-static void nmea_init (void);
static int nmea_start (int, struct peer *);
static void nmea_shutdown (int, struct peer *);
static void nmea_receive (struct recvbuf *);
static void nmea_poll (int, struct peer *);
+static void nmea_procrec (struct peer *, l_fp);
#ifdef HAVE_PPSAPI
+static double tabsdiffd (l_fp, l_fp);
static void nmea_control (int, const struct refclockstat *,
struct refclockstat *, struct peer *);
#define NMEA_CONTROL nmea_control
@@ -302,26 +306,17 @@
static void field_wipe (nmea_data * data, ...);
static u_char parse_qual (nmea_data * data, int idx,
char tag, int inv);
-static int parse_time (struct calendar * jd, long * nsec,
+static int parse_time (TCivilDate * jd, l_fp * fofs,
nmea_data *, int idx);
-static int parse_date (struct calendar *jd, nmea_data*,
+static int parse_date (TCivilDate * jd, nmea_data *,
int idx, enum date_fmt fmt);
-static int parse_weekdata (gps_weektm *, nmea_data *,
+static int parse_gpsw (TGpsDatum *, nmea_data *,
int weekidx, int timeidx, int leapidx);
-/* calendar / date helpers */
-static int unfold_day (struct calendar * jd, u_int32 rec_ui);
-static int unfold_century (struct calendar * jd, u_int32 rec_ui);
-static int gpsfix_century (struct calendar * jd, const gps_weektm * wd,
- u_short * ccentury);
-static l_fp eval_gps_time (struct peer * peer, const struct calendar * gpst,
- const struct timespec * gpso, const l_fp * xrecv);
static int nmead_open (const char * device);
-static void save_ltc (struct refclockproc * const, const char * const,
- size_t);
/*
- * If we want the driver to ouput sentences, too: re-enable the send
+ * If we want the driver to output sentences, too: re-enable the send
* support functions by defining NMEA_WRITE_SUPPORT to non-zero...
*/
#if NMEA_WRITE_SUPPORT
@@ -335,9 +330,6 @@
#endif /* NMEA_WRITE_SUPPORT */
-static int32_t g_gpsMinBase;
-static int32_t g_gpsMinYear;
-
/*
* -------------------------------------------------------------------
* Transfer vector
@@ -348,46 +340,12 @@
nmea_shutdown, /* shut down driver */
nmea_poll, /* transmit poll message */
NMEA_CONTROL, /* fudge control */
- nmea_init, /* initialize driver */
+ noentry, /* initialize driver */
noentry, /* buginfo */
nmea_timer /* called once per second */
};
-/*
- * -------------------------------------------------------------------
- * nmea_init - initialise data
- *
- * calculates a few runtime constants that cannot be made compile time
- * constants.
- * -------------------------------------------------------------------
- */
-static void
-nmea_init(void)
-{
- struct calendar date;
- /* - calculate min. base value for GPS epoch & century unfolding
- * This assumes that the build system was roughly in sync with
- * the world, and that really synchronising to a time before the
- * program was created would be unsafe or insane. If the build
- * date cannot be stablished, at least use the start of GPS
- * (1980-01-06) as minimum, because GPS can surely NOT
- * synchronise beyond it's own big bang. We add a little safety
- * margin for the fuzziness of the build date, which is in an
- * undefined time zone. */
- if (ntpcal_get_build_date(&date))
- g_gpsMinBase = ntpcal_date_to_rd(&date) - 2;
- else
- g_gpsMinBase = 0;
-
- if (g_gpsMinBase < DAY_GPS_STARTS)
- g_gpsMinBase = DAY_GPS_STARTS;
-
- ntpcal_rd_to_date(&date, g_gpsMinBase);
- g_gpsMinYear = date.year;
- g_gpsMinBase -= DAY_NTP_STARTS;
-}
-
/*
* -------------------------------------------------------------------
* nmea_start - open the GPS devices and initialize data for processing
@@ -432,18 +390,18 @@
baudrate = B38400;
baudtext = "38400";
break;
-#ifdef B57600
+# ifdef B57600
case 4:
baudrate = B57600;
baudtext = "57600";
break;
-#endif
-#ifdef B115200
+# endif
+# ifdef B115200
case 5:
baudrate = B115200;
baudtext = "115200";
break;
-#endif
+# endif
default:
baudrate = SPEED232;
baudtext = "4800 (fallback)";
@@ -458,11 +416,12 @@
pp->io.datalen = 0;
/* force change detection on first valid message */
memset(&up->last_reftime, 0xFF, sizeof(up->last_reftime));
+ memset(&up->last_gpsdate, 0x00, sizeof(up->last_gpsdate));
/* force checksum on GPRMC, see below */
up->cksum_type[NMEA_GPRMC] = CHECK_CSVALID;
-#ifdef HAVE_PPSAPI
+# ifdef HAVE_PPSAPI
up->ppsapi_fd = -1;
-#endif
+# endif /* HAVE_PPSAPI */
ZERO(up->tally);
/* Initialize miscellaneous variables */
@@ -490,11 +449,10 @@
return io_addclock(&pp->io) != 0;
}
-
/*
* -------------------------------------------------------------------
* nmea_shutdown - shut down a GPS clock
- *
+ *
* NOTE this routine is called after nmea_start() returns failure,
* as well as during a normal shutdown due to ntpq :config unpeer.
* -------------------------------------------------------------------
@@ -511,12 +469,12 @@
UNUSED_ARG(unit);
if (up != NULL) {
-#ifdef HAVE_PPSAPI
+# ifdef HAVE_PPSAPI
if (up->ppsapi_lit)
time_pps_destroy(up->atom.handle);
if (up->ppsapi_tried && up->ppsapi_fd != pp->io.fd)
close(up->ppsapi_fd);
-#endif
+# endif
free(up);
}
pp->unitptr = (caddr_t)NULL;
@@ -544,7 +502,7 @@
char device[32];
size_t devlen;
-
+
UNUSED_ARG(in_st);
UNUSED_ARG(out_st);
@@ -570,7 +528,7 @@
refnumtoa(&peer->srcadr));
}
if (-1 == up->ppsapi_fd)
- up->ppsapi_fd = pp->io.fd;
+ up->ppsapi_fd = pp->io.fd;
if (refclock_ppsapi(up->ppsapi_fd, &up->atom)) {
/* use the PPS API for our own purposes now. */
up->ppsapi_lit = refclock_params(
@@ -580,10 +538,10 @@
time_pps_destroy(up->atom.handle);
msyslog(LOG_WARNING,
"%s set PPSAPI params fails",
- refnumtoa(&peer->srcadr));
+ refnumtoa(&peer->srcadr));
}
/* note: the PPS I/O handle remains valid until
- * flag1 is cleared or the clock is shut down.
+ * flag1 is cleared or the clock is shut down.
*/
} else {
msyslog(LOG_WARNING,
@@ -593,7 +551,7 @@
}
/* shut down PPS API if activated */
- if (!(CLK_FLAG1 & pp->sloppyclockflag) && up->ppsapi_tried) {
+ if ( !(CLK_FLAG1 & pp->sloppyclockflag) && up->ppsapi_tried) {
/* shutdown PPS API */
if (up->ppsapi_lit)
time_pps_destroy(up->atom.handle);
@@ -612,12 +570,11 @@
peer->precision = PRECISION;
}
}
-#endif /* HAVE_PPSAPI */
+#endif /* HAVE_PPSAPI */
/*
* -------------------------------------------------------------------
* nmea_timer - called once per second
- * this only polls (older?) Oncore devices now
*
* Usually 'nmea_receive()' can get a timestamp every second, but at
* least one Motorola unit needs prompting each time. Doing so in
@@ -624,6 +581,9 @@
* 'nmea_poll()' gives only one sample per poll cycle, which actually
* defeats the purpose of the median filter. Polling once per second
* seems a much better idea.
+ *
+ * Also takes care of sample expiration if the receiver fails to
+ * provide new input data.
* -------------------------------------------------------------------
*/
static void
@@ -632,138 +592,36 @@
struct peer * peer
)
{
-#if NMEA_WRITE_SUPPORT
-
struct refclockproc * const pp = peer->procptr;
+ nmea_unit * const up = (nmea_unit *)pp->unitptr;
UNUSED_ARG(unit);
+# if NMEA_WRITE_SUPPORT
+
if (-1 != pp->io.fd) /* any mode bits to evaluate here? */
gps_send(pp->io.fd, "$PMOTG,RMC,0000*1D\r\n", peer);
-#else
-
- UNUSED_ARG(unit);
- UNUSED_ARG(peer);
-
-#endif /* NMEA_WRITE_SUPPORT */
-}
-#ifdef HAVE_PPSAPI
-/*
- * -------------------------------------------------------------------
- * refclock_ppsrelate(...) -- correlate with PPS edge
- *
- * This function is used to correlate a receive time stamp and a
- * reference time with a PPS edge time stamp. It applies the necessary
- * fudges (fudge1 for PPS, fudge2 for receive time) and then tries to
- * move the receive time stamp to the corresponding edge. This can warp
- * into future, if a transmission delay of more than 500ms is not
- * compensated with a corresponding fudge time2 value, because then the
- * next PPS edge is nearer than the last. (Similiar to what the PPS ATOM
- * driver does, but we deal with full time stamps here, not just phase
- * shift information.) Likewise, a negative fudge time2 value must be
- * used if the reference time stamp correlates with the *following* PPS
- * pulse.
- *
- * Note that the receive time fudge value only needs to move the receive
- * stamp near a PPS edge but that close proximity is not required;
- * +/-100ms precision should be enough. But since the fudge value will
- * probably also be used to compensate the transmission delay when no
- * PPS edge can be related to the time stamp, it's best to get it as
- * close as possible.
- *
- * It should also be noted that the typical use case is matching to the
- * preceeding edge, as most units relate their sentences to the current
- * second.
- *
- * The function returns PPS_RELATE_NONE (0) if no PPS edge correlation
- * can be fixed; PPS_RELATE_EDGE (1) when a PPS edge could be fixed, but
- * the distance to the reference time stamp is too big (exceeds
- * +/-400ms) and the ATOM driver PLL cannot be used to fix the phase;
- * and PPS_RELATE_PHASE (2) when the ATOM driver PLL code can be used.
- *
- * On output, the receive time stamp is replaced with the corresponding
- * PPS edge time if a fix could be made; the PPS fudge is updated to
- * reflect the proper fudge time to apply. (This implies that
- * 'refclock_process_offset()' must be used!)
- * -------------------------------------------------------------------
- */
-#define PPS_RELATE_NONE 0 /* no pps correlation possible */
-#define PPS_RELATE_EDGE 1 /* recv time fixed, no phase lock */
-#define PPS_RELATE_PHASE 2 /* recv time fixed, phase lock ok */
+# endif /* NMEA_WRITE_SUPPORT */
-static int
-refclock_ppsrelate(
- const struct refclockproc * pp , /* for sanity */
- const struct refclock_atom * ap , /* for PPS io */
- const l_fp * reftime ,
- l_fp * rd_stamp, /* i/o read stamp */
- double pp_fudge, /* pps fudge */
- double * rd_fudge /* i/o read fudge */
- )
-{
- pps_info_t pps_info;
- struct timespec timeout;
- l_fp pp_stamp, pp_delta;
- double delta, idelta;
+ /* receive timeout occurred? */
+ if (up->rcvtout) {
+ --up->rcvtout;
+ } else if (pp->codeproc != pp->coderecv) {
+ /* expire one (the oldest) sample, if any */
+ refclock_samples_expire(pp, 1);
+ /* reset message assembly buffer */
+ up->lb_buf[0] = '\0';
+ up->lb_len = 0;
+ }
- if (pp->leap == LEAP_NOTINSYNC)
- return PPS_RELATE_NONE; /* clock is insane, no chance */
-
- ZERO(timeout);
- ZERO(pps_info);
- if (time_pps_fetch(ap->handle, PPS_TSFMT_TSPEC,
- &pps_info, &timeout) < 0)
- return PPS_RELATE_NONE; /* can't get time stamps */
-
- /* get last active PPS edge before receive */
- if (ap->pps_params.mode & PPS_CAPTUREASSERT)
- timeout = pps_info.assert_timestamp;
- else if (ap->pps_params.mode & PPS_CAPTURECLEAR)
- timeout = pps_info.clear_timestamp;
- else
- return PPS_RELATE_NONE; /* WHICH edge, please?!? */
-
- /* get delta between receive time and PPS time */
- pp_stamp = tspec_stamp_to_lfp(timeout);
- pp_delta = *rd_stamp;
- L_SUB(&pp_delta, &pp_stamp);
- LFPTOD(&pp_delta, delta);
- delta += pp_fudge - *rd_fudge;
- if (fabs(delta) > 1.5)
- return PPS_RELATE_NONE; /* PPS timeout control */
-
- /* eventually warp edges, check phase */
- idelta = floor(delta + 0.5);
- pp_fudge -= idelta;
- delta -= idelta;
- if (fabs(delta) > 0.45)
- return PPS_RELATE_NONE; /* dead band control */
-
- /* we actually have a PPS edge to relate with! */
- *rd_stamp = pp_stamp;
- *rd_fudge = pp_fudge;
-
- /* if whole system out-of-sync, do not try to PLL */
- if (sys_leap == LEAP_NOTINSYNC)
- return PPS_RELATE_EDGE; /* cannot PLL with atom code */
-
- /* check against reftime if ATOM PLL can be used */
- pp_delta = *reftime;
- L_SUB(&pp_delta, &pp_stamp);
- LFPTOD(&pp_delta, delta);
- delta += pp_fudge;
- if (fabs(delta) > 0.45)
- return PPS_RELATE_EDGE; /* cannot PLL with atom code */
-
- /* all checks passed, gets an AAA rating here! */
- return PPS_RELATE_PHASE; /* can PLL with atom code */
+ if (up->hold_gpsdate && (--up->hold_gpsdate < DATE_HLIM))
+ up->type_gpsdate = DTYP_NONE;
}
-#endif /* HAVE_PPSAPI */
/*
* -------------------------------------------------------------------
- * nmea_receive - receive data from the serial interface
+ * nmea_procrec - receive data from the serial interface
*
* This is the workhorse for NMEA data evaluation:
*
@@ -771,61 +629,64 @@
* NMEA sentences
* + it checks whether a sentence is known and to be used
* + it parses the time and date data from the NMEA data string and
- * augments the missing bits. (century in dat, whole date, ...)
+ * augments the missing bits. (century in date, whole date, ...)
* + it rejects data that is not from the first accepted sentence in a
* burst
* + it eventually replaces the receive time with the PPS edge time.
* + it feeds the data to the internal processing stages.
+ *
+ * This function assumes a non-empty line in the unit line buffer.
* -------------------------------------------------------------------
*/
static void
-nmea_receive(
- struct recvbuf * rbufp
+nmea_procrec(
+ struct peer * const peer,
+ l_fp rd_timestamp
)
{
- /* declare & init control structure ptrs */
- struct peer * const peer = rbufp->recv_peer;
+ /* declare & init control structure pointers */
struct refclockproc * const pp = peer->procptr;
nmea_unit * const up = (nmea_unit*)pp->unitptr;
/* Use these variables to hold data until we decide its worth keeping */
nmea_data rdata;
- char rd_lastcode[BMAX];
- l_fp rd_timestamp, rd_reftime;
- int rd_lencode;
- double rd_fudge;
+ l_fp rd_reftime;
/* working stuff */
- struct calendar date; /* to keep & convert the time stamp */
- struct timespec tofs; /* offset to full-second reftime */
- gps_weektm gpsw; /* week time storage */
+ TCivilDate date; /* to keep & convert the time stamp */
+ TGpsDatum wgps; /* week time storage */
+ TNtpDatum dntp;
+ l_fp tofs; /* offset to full-second reftime */
/* results of sentence/date/time parsing */
u_char sentence; /* sentence tag */
int checkres;
+ int warp; /* warp to GPS base date */
char * cp;
- int rc_date;
- int rc_time;
+ int rc_date, rc_time;
+ u_short rc_dtyp;
+# ifdef HAVE_PPSAPI
+ int withpps = 0;
+# endif /* HAVE_PPSAPI */
/* make sure data has defined pristine state */
ZERO(tofs);
ZERO(date);
- ZERO(gpsw);
+ ZERO(wgps);
+ ZERO(dntp);
- /*
- * Read the timecode and timestamp, then initialise field
+ /*
+ * Read the timecode and timestamp, then initialize field
* processing. The <CR><LF> at the NMEA line end is translated
* to <LF><LF> by the terminal input routines on most systems,
* and this gives us one spurious empty read per record which we
* better ignore silently.
*/
- rd_lencode = refclock_gtlin(rbufp, rd_lastcode,
- sizeof(rd_lastcode), &rd_timestamp);
- checkres = field_init(&rdata, rd_lastcode, rd_lencode);
+ checkres = field_init(&rdata, up->lb_buf, up->lb_len);
switch (checkres) {
case CHECK_INVALID:
DPRINTF(1, ("%s invalid data: '%s'\n",
- refnumtoa(&peer->srcadr), rd_lastcode));
+ refnumtoa(&peer->srcadr), up->lb_buf));
refclock_report(peer, CEVNT_BADREPLY);
return;
@@ -834,13 +695,13 @@
default:
DPRINTF(1, ("%s gpsread: %d '%s'\n",
- refnumtoa(&peer->srcadr), rd_lencode,
- rd_lastcode));
+ refnumtoa(&peer->srcadr), up->lb_len,
+ up->lb_buf));
break;
}
up->tally.total++;
- /*
+ /*
* --> below this point we have a valid NMEA sentence <--
*
* Check sentence name. Skip first 2 chars (talker ID) in most
@@ -859,8 +720,10 @@
sentence = NMEA_GPZDA;
else if (strncmp(cp + 2, "ZDG,", 4) == 0)
sentence = NMEA_GPZDG;
- else if (strncmp(cp, "PGRMF,", 6) == 0)
+ else if (strncmp(cp, "PGRMF,", 6) == 0)
sentence = NMEA_PGRMF;
+ else if (strncmp(cp, "PUBX,04,", 8) == 0)
+ sentence = NMEA_PUBX04;
else
return; /* not something we know about */
@@ -868,10 +731,10 @@
if (peer->ttl & NMEA_DELAYMEAS_MASK) {
mprintf_clock_stats(&peer->srcadr, "delay %0.6f %.*s",
ldexp(rd_timestamp.l_uf, -32),
- (int)(strchr(rd_lastcode, ',') - rd_lastcode),
- rd_lastcode);
+ (int)(strchr(up->lb_buf, ',') - up->lb_buf),
+ up->lb_buf);
}
-
+
/* See if I want to process this message type */
if ((peer->ttl & NMEA_MESSAGE_MASK) &&
!(peer->ttl & sentence_mode[sentence])) {
@@ -879,7 +742,7 @@
return;
}
- /*
+ /*
* make sure it came in clean
*
* Apparently, older NMEA specifications (which are expensive)
@@ -900,7 +763,7 @@
up->cksum_type[sentence] = (u_char)checkres;
} else {
DPRINTF(1, ("%s checksum missing: '%s'\n",
- refnumtoa(&peer->srcadr), rd_lastcode));
+ refnumtoa(&peer->srcadr), up->lb_buf));
refclock_report(peer, CEVNT_BADREPLY);
up->tally.malformed++;
return;
@@ -910,36 +773,48 @@
* $GPZDG provides GPS time not UTC, and the two mix poorly.
* Once have processed a $GPZDG, do not process any further UTC
* sentences (all but $GPZDG currently).
- */
- if (up->gps_time && NMEA_GPZDG != sentence) {
- up->tally.filtered++;
- return;
+ */
+ if (sentence == NMEA_GPZDG) {
+ if (!up->gps_time) {
+ msyslog(LOG_INFO,
+ "%s using GPS time as if it were UTC",
+ refnumtoa(&peer->srcadr));
+ up->gps_time = 1;
+ }
+ } else {
+ if (up->gps_time) {
+ up->tally.filtered++;
+ return;
+ }
}
DPRINTF(1, ("%s processing %d bytes, timecode '%s'\n",
- refnumtoa(&peer->srcadr), rd_lencode, rd_lastcode));
+ refnumtoa(&peer->srcadr), up->lb_len, up->lb_buf));
/*
* Grab fields depending on clock string type and possibly wipe
* sensitive data from the last timecode.
*/
- switch (sentence) {
+ rc_date = -1; /* assume we have to do day-time mapping */
+ rc_dtyp = DTYP_NONE;
+ switch (sentence) {
case NMEA_GPRMC:
/* Check quality byte, fetch data & time */
- rc_time = parse_time(&date, &tofs.tv_nsec, &rdata, 1);
+ rc_time = parse_time(&date, &tofs, &rdata, 1);
pp->leap = parse_qual(&rdata, 2, 'A', 0);
- rc_date = parse_date(&date, &rdata, 9, DATE_1_DDMMYY)
- && unfold_century(&date, rd_timestamp.l_ui);
- if (CLK_FLAG4 & pp->sloppyclockflag)
+ if (up->type_gpsdate <= DTYP_Y2D) {
+ rc_date = parse_date(&date, &rdata, 9, DATE_1_DDMMYY);
+ rc_dtyp = DTYP_Y2D;
+ }
+ if (CLK_FLAG4 & pp->sloppyclockflag)
field_wipe(&rdata, 3, 4, 5, 6, -1);
break;
case NMEA_GPGGA:
/* Check quality byte, fetch time only */
- rc_time = parse_time(&date, &tofs.tv_nsec, &rdata, 1);
+ rc_time = parse_time(&date, &tofs, &rdata, 1);
pp->leap = parse_qual(&rdata, 6, '0', 1);
- rc_date = unfold_day(&date, rd_timestamp.l_ui);
if (CLK_FLAG4 & pp->sloppyclockflag)
field_wipe(&rdata, 2, 4, -1);
break;
@@ -946,91 +821,150 @@
case NMEA_GPGLL:
/* Check quality byte, fetch time only */
- rc_time = parse_time(&date, &tofs.tv_nsec, &rdata, 5);
+ rc_time = parse_time(&date, &tofs, &rdata, 5);
pp->leap = parse_qual(&rdata, 6, 'A', 0);
- rc_date = unfold_day(&date, rd_timestamp.l_ui);
if (CLK_FLAG4 & pp->sloppyclockflag)
field_wipe(&rdata, 1, 3, -1);
break;
-
+
case NMEA_GPZDA:
/* No quality. Assume best, fetch time & full date */
- pp->leap = LEAP_NOWARNING;
- rc_time = parse_time(&date, &tofs.tv_nsec, &rdata, 1);
- rc_date = parse_date(&date, &rdata, 2, DATE_3_DDMMYYYY);
+ rc_time = parse_time(&date, &tofs, &rdata, 1);
+ if (up->type_gpsdate <= DTYP_Y4D) {
+ rc_date = parse_date(&date, &rdata, 2, DATE_3_DDMMYYYY);
+ rc_dtyp = DTYP_Y4D;
+ }
break;
case NMEA_GPZDG:
/* Check quality byte, fetch time & full date */
- rc_time = parse_time(&date, &tofs.tv_nsec, &rdata, 1);
- rc_date = parse_date(&date, &rdata, 2, DATE_3_DDMMYYYY);
+ rc_time = parse_time(&date, &tofs, &rdata, 1);
pp->leap = parse_qual(&rdata, 4, '0', 1);
- tofs.tv_sec = -1; /* GPZDG is following second */
+ --tofs.l_ui; /* GPZDG gives *following* second */
+ if (up->type_gpsdate <= DTYP_Y4D) {
+ rc_date = parse_date(&date, &rdata, 2, DATE_3_DDMMYYYY);
+ rc_dtyp = DTYP_Y4D;
+ }
break;
case NMEA_PGRMF:
- /* get date, time, qualifier and GPS weektime. We need
- * date and time-of-day for the century fix, so we read
- * them first.
- */
- rc_date = parse_weekdata(&gpsw, &rdata, 1, 2, 5)
- && parse_date(&date, &rdata, 3, DATE_1_DDMMYY);
- rc_time = parse_time(&date, &tofs.tv_nsec, &rdata, 4);
- pp->leap = parse_qual(&rdata, 11, '0', 1);
- rc_date = rc_date
- && gpsfix_century(&date, &gpsw, &up->century_cache);
+ /* get time, qualifier and GPS weektime. */
+ rc_time = parse_time(&date, &tofs, &rdata, 4);
+ if (up->type_gpsdate <= DTYP_W10B) {
+ rc_date = parse_gpsw(&wgps, &rdata, 1, 2, 5);
+ rc_dtyp = DTYP_W10B;
+ }
+ pp->leap = parse_qual(&rdata, 11, '0', 1);
if (CLK_FLAG4 & pp->sloppyclockflag)
field_wipe(&rdata, 6, 8, -1);
break;
-
+
+ case NMEA_PUBX04:
+ /* PUBX,04 is peculiar. The UTC time-of-week is the *internal*
+ * time base, which is not exactly on par with the fix time.
+ */
+ rc_time = parse_time(&date, &tofs, &rdata, 2);
+ if (up->type_gpsdate <= DTYP_WEXT) {
+ rc_date = parse_gpsw(&wgps, &rdata, 5, 4, -1);
+ rc_dtyp = DTYP_WEXT;
+ }
+ break;
+
default:
INVARIANT(0); /* Coverity 97123 */
return;
}
+ /* check clock sanity; [bug 2143] */
+ if (pp->leap == LEAP_NOTINSYNC) { /* no good status? */
+ checkres = CEVNT_PROP;
+ up->tally.rejected++;
+ }
/* Check sanity of time-of-day. */
- if (rc_time == 0) { /* no time or conversion error? */
+ else if (rc_time == 0) { /* no time or conversion error? */
checkres = CEVNT_BADTIME;
up->tally.malformed++;
}
/* Check sanity of date. */
- else if (rc_date == 0) {/* no date or conversion error? */
+ else if (rc_date == 0) { /* no date or conversion error? */
checkres = CEVNT_BADDATE;
up->tally.malformed++;
}
- /* check clock sanity; [bug 2143] */
- else if (pp->leap == LEAP_NOTINSYNC) { /* no good status? */
- checkres = CEVNT_BADREPLY;
- up->tally.rejected++;
+ else {
+ checkres = -1;
}
- else
- checkres = -1;
if (checkres != -1) {
- save_ltc(pp, rd_lastcode, rd_lencode);
+ refclock_save_lcode(pp, up->lb_buf, up->lb_len);
refclock_report(peer, checkres);
return;
}
- DPRINTF(1, ("%s effective timecode: %04u-%02u-%02u %02d:%02d:%02d\n",
- refnumtoa(&peer->srcadr),
- date.year, date.month, date.monthday,
- date.hour, date.minute, date.second));
+ /* See if we can augment the receive time stamp. If not, apply
+ * fudge time 2 to the receive time stamp directly.
+ */
+# ifdef HAVE_PPSAPI
+ if (up->ppsapi_lit && pp->leap != LEAP_NOTINSYNC)
+ withpps = refclock_ppsaugment(
+ &up->atom, &rd_timestamp,
+ pp->fudgetime2, pp->fudgetime1);
+ else
+# endif /* HAVE_PPSAPI */
+ rd_timestamp = ntpfp_with_fudge(
+ rd_timestamp, pp->fudgetime2);
- /* Check if we must enter GPS time mode; log so if we do */
- if (!up->gps_time && (sentence == NMEA_GPZDG)) {
- msyslog(LOG_INFO, "%s using GPS time as if it were UTC",
- refnumtoa(&peer->srcadr));
- up->gps_time = 1;
+ /* set the GPS base date, if possible */
+ warp = !(peer->ttl & NMEA_DATETRUST_MASK);
+ if (rc_dtyp != DTYP_NONE) {
+ DPRINTF(1, ("%s saving date, type=%hu\n",
+ refnumtoa(&peer->srcadr), rc_dtyp));
+ switch (rc_dtyp) {
+ case DTYP_W10B:
+ up->last_gpsdate = gpsntp_from_gpscal_ex(
+ &wgps, (warp = TRUE));
+ break;
+ case DTYP_WEXT:
+ up->last_gpsdate = gpsntp_from_gpscal_ex(
+ &wgps, warp);
+ break;
+ default:
+ up->last_gpsdate = gpsntp_from_calendar_ex(
+ &date, tofs, warp);
+ break;
+ }
+ up->type_gpsdate = rc_dtyp;
+ up->hold_gpsdate = DATE_HOLD;
}
-
- /*
- * Get the reference time stamp from the calendar buffer.
+ /* now convert and possibly extend/expand the time stamp. */
+ if (up->hold_gpsdate) { /* time of day, based */
+ dntp = gpsntp_from_daytime2_ex(
+ &date, tofs, &up->last_gpsdate, warp);
+ } else { /* time of day, floating */
+ dntp = gpsntp_from_daytime1_ex(
+ &date, tofs, rd_timestamp, warp);
+ }
+
+ if (debug) {
+ /* debug print time stamp */
+ gpsntp_to_calendar(&date, &dntp);
+# ifdef HAVE_PPSAPI
+ DPRINTF(1, ("%s effective timecode: %s (%s PPS)\n",
+ refnumtoa(&peer->srcadr),
+ ntpcal_iso8601std(NULL, 0, &date),
+ (withpps ? "with" : "without")));
+# else /* ?HAVE_PPSAPI */
+ DPRINTF(1, ("%s effective timecode: %s\n",
+ refnumtoa(&peer->srcadr),
+ ntpcal_iso8601std(NULL, 0, &date)));
+# endif /* !HAVE_PPSAPI */
+ }
+
+ /* Get the reference time stamp from the calendar buffer.
* Process the new sample in the median filter and determine the
* timecode timestamp, but only if the PPS is not in control.
* Discard sentence if reference time did not change.
*/
- rd_reftime = eval_gps_time(peer, &date, &tofs, &rd_timestamp);
+ rd_reftime = ntpfp_from_ntpdatum(&dntp);
if (L_ISEQU(&up->last_reftime, &rd_reftime)) {
/* Do not touch pp->a_lastcode on purpose! */
up->tally.filtered++;
@@ -1037,59 +971,120 @@
return;
}
up->last_reftime = rd_reftime;
- rd_fudge = pp->fudgetime2;
DPRINTF(1, ("%s using '%s'\n",
- refnumtoa(&peer->srcadr), rd_lastcode));
+ refnumtoa(&peer->srcadr), up->lb_buf));
/* Data will be accepted. Update stats & log data. */
up->tally.accepted++;
- save_ltc(pp, rd_lastcode, rd_lencode);
+ refclock_save_lcode(pp, up->lb_buf, up->lb_len);
pp->lastrec = rd_timestamp;
-#ifdef HAVE_PPSAPI
- /*
- * If we have PPS running, we try to associate the sentence
- * with the last active edge of the PPS signal.
+ /* If we have PPS augmented receive time, we *must* have a
+ * working PPS source and we must set the flags accordingly.
*/
- if (up->ppsapi_lit)
- switch (refclock_ppsrelate(
- pp, &up->atom, &rd_reftime, &rd_timestamp,
- pp->fudgetime1, &rd_fudge))
- {
- case PPS_RELATE_PHASE:
- up->ppsapi_gate = TRUE;
- peer->precision = PPS_PRECISION;
- peer->flags |= FLAG_PPS;
+# ifdef HAVE_PPSAPI
+ if (withpps) {
+ up->ppsapi_gate = TRUE;
+ peer->precision = PPS_PRECISION;
+ if (tabsdiffd(rd_reftime, rd_timestamp) < 0.5) {
+ if ( ! (peer->ttl & NMEA_QUIETPPS_MASK))
+ peer->flags |= FLAG_PPS;
DPRINTF(2, ("%s PPS_RELATE_PHASE\n",
refnumtoa(&peer->srcadr)));
up->tally.pps_used++;
- break;
-
- case PPS_RELATE_EDGE:
- up->ppsapi_gate = TRUE;
- peer->precision = PPS_PRECISION;
+ } else {
DPRINTF(2, ("%s PPS_RELATE_EDGE\n",
refnumtoa(&peer->srcadr)));
- break;
-
- case PPS_RELATE_NONE:
- default:
- /*
- * Resetting precision and PPS flag is done in
- * 'nmea_poll', since it might be a glitch. But
- * at the end of the poll cycle we know...
- */
- DPRINTF(2, ("%s PPS_RELATE_NONE\n",
- refnumtoa(&peer->srcadr)));
- break;
}
-#endif /* HAVE_PPSAPI */
+ /* !Note! 'FLAG_PPS' is reset in 'nmea_poll()' */
+ }
+# endif /* HAVE_PPSAPI */
+ /* Whether the receive time stamp is PPS-augmented or not,
+ * the proper fudge offset is already applied. There's no
+ * residual fudge to process.
+ */
+ refclock_process_offset(pp, rd_reftime, rd_timestamp, 0.0);
+ up->rcvtout = 2;
+}
- refclock_process_offset(pp, rd_reftime, rd_timestamp, rd_fudge);
+/*
+ * -------------------------------------------------------------------
+ * nmea_receive - receive data from the serial interface
+ *
+ * With serial IO only, a single call to 'refclock_gtlin()' to get the
+ * string would suffice to get the NMEA data. When using NMEAD, this
+ * does unfortunately no longer hold, since TCP is stream oriented and
+ * not line oriented, and there's no one to do the line-splitting work
+ * of the TTY driver in line/cooked mode.
+ *
+ * So we have to do this manually here, and we have to live with the
+ * fact that there could be more than one sentence in a receive buffer.
+ * Likewise, there can be partial messages on either end. (Strictly
+ * speaking, a receive buffer could also contain just a single fragment,
+ * though that's unlikely.)
+ *
+ * We deal with that by scanning the input buffer, copying bytes from
+ * the receive buffer to the assembly buffer as we go and calling the
+ * record processor every time we hit a CR/LF, provided the resulting
+ * line is not empty. Any leftovers are kept for the next round.
+ *
+ * Note: When used with a serial data stream, there's no change to the
+ * previous line-oriented input: One line is copied to the buffer and
+ * processed per call. Only with NMEAD the behavior changes, and the
+ * timing is badly affected unless a PPS channel is also associated with
+ * the clock instance. TCP leaves us nothing to improve on here.
+ * -------------------------------------------------------------------
+ */
+static void
+nmea_receive(
+ struct recvbuf * rbufp
+ )
+{
+ /* declare & init control structure pointers */
+ struct peer * const peer = rbufp->recv_peer;
+ struct refclockproc * const pp = peer->procptr;
+ nmea_unit * const up = (nmea_unit*)pp->unitptr;
+
+ const char *sp, *se;
+ char *dp, *de;
+
+ /* paranoia check: */
+ if (up->lb_len >= sizeof(up->lb_buf))
+ up->lb_len = 0;
+
+ /* pick up last assembly position; leave room for NUL */
+ dp = up->lb_buf + up->lb_len;
+ de = up->lb_buf + sizeof(up->lb_buf) - 1;
+ /* set up input range */
+ sp = (const char *)rbufp->recv_buffer;
+ se = sp + rbufp->recv_length;
+
+ /* walk over the input data, dropping parity bits and control
+ * chars as we go, and calling the record processor for each
+ * complete non-empty line.
+ */
+ while (sp != se) {
+ char ch = (*sp++ & 0x7f);
+ if (dp == up->lb_buf) {
+ if (ch == '$')
+ *dp++ = ch;
+ } else if (dp > de) {
+ dp = up->lb_buf;
+ } else if (ch == '\n' || ch == '\r') {
+ *dp = '\0';
+ up->lb_len = (int)(dp - up->lb_buf);
+ dp = up->lb_buf;
+ nmea_procrec(peer, rbufp->recv_time);
+ } else if (ch >= 0x20 && ch < 0x7f) {
+ *dp++ = ch;
+ }
+ }
+ /* update state to keep for next round */
+ *dp = '\0';
+ up->lb_len = (int)(dp - up->lb_buf);
}
-
/*
* -------------------------------------------------------------------
* nmea_poll - called by the transmit procedure
@@ -1109,12 +1104,12 @@
{
struct refclockproc * const pp = peer->procptr;
nmea_unit * const up = (nmea_unit *)pp->unitptr;
-
+
/*
* Process median filter samples. If none received, declare a
* timeout and keep going.
*/
-#ifdef HAVE_PPSAPI
+# ifdef HAVE_PPSAPI
/*
* If we don't have PPS pulses and time stamps, turn PPS down
* for now.
@@ -1125,7 +1120,7 @@
} else {
up->ppsapi_gate = FALSE;
}
-#endif /* HAVE_PPSAPI */
+# endif /* HAVE_PPSAPI */
/*
* If the median filter is empty, claim a timeout. Else process
@@ -1132,13 +1127,18 @@
* the input data and keep the stats going.
*/
if (pp->coderecv == pp->codeproc) {
- refclock_report(peer, CEVNT_TIMEOUT);
+ peer->flags &= ~FLAG_PPS;
+ if (pp->currentstatus < CEVNT_TIMEOUT)
+ refclock_report(peer, CEVNT_TIMEOUT);
+ memset(&up->last_gpsdate, 0, sizeof(up->last_gpsdate));
} else {
pp->polls++;
pp->lastref = pp->lastrec;
refclock_receive(peer);
+ if (pp->currentstatus > CEVNT_NOMINAL)
+ refclock_report(peer, CEVNT_NOMINAL);
}
-
+
/*
* If extended logging is required, write the tally stats to the
* clockstats file; otherwise just do a normal clock stats
@@ -1160,26 +1160,6 @@
ZERO(up->tally);
}
-/*
- * -------------------------------------------------------------------
- * Save the last timecode string, making sure it's properly truncated
- * if necessary and NUL terminated in any case.
- */
-static void
-save_ltc(
- struct refclockproc * const pp,
- const char * const tc,
- size_t len
- )
-{
- if (len >= sizeof(pp->a_lastcode))
- len = sizeof(pp->a_lastcode) - 1;
- pp->lencode = (u_short)len;
- memcpy(pp->a_lastcode, tc, len);
- pp->a_lastcode[len] = '\0';
-}
-
-
#if NMEA_WRITE_SUPPORT
/*
* -------------------------------------------------------------------
@@ -1257,8 +1237,8 @@
* $GPVTG,089.0,T,,,15.2,N,,*7F
*
* Some other constraints:
- * + The field name must at least 5 upcase characters or digits and must
- * start with a character.
+ * + The field name must be at least 5 upcase characters or digits and
+ * must start with a character.
* + The checksum (if present) must be uppercase hex digits.
* + The length of a sentence is limited to 80 characters (not including
* the final CR/LF nor the checksum, but including the leading '$')
@@ -1284,7 +1264,7 @@
u_char cs_r; /* checksum remote given */
char * eptr; /* buffer end end pointer */
char tmp; /* char buffer */
-
+
cs_l = 0;
cs_r = 0;
/* some basic input constraints */
@@ -1292,8 +1272,8 @@
dlen = 0;
eptr = cptr + dlen;
*eptr = '\0';
-
- /* load data context */
+
+ /* load data context */
data->base = cptr;
data->cptr = cptr;
data->cidx = 0;
@@ -1315,7 +1295,7 @@
data->base++;
data->cptr++;
data->blen--;
-
+
/* -*- field name: '[A-Z][A-Z0-9]{4,},' */
if (*cptr < 'A' || *cptr > 'Z')
return CHECK_INVALID;
@@ -1330,7 +1310,7 @@
/* -*- data: '[^*]*' */
while (*cptr && *cptr != '*')
cs_l ^= *cptr++;
-
+
/* -*- checksum field: (\*[0-9A-F]{2})?$ */
if (*cptr == '\0')
return CHECK_VALID;
@@ -1386,7 +1366,7 @@
* -------------------------------------------------------------------
* Wipe (that is, overwrite with '_') data fields and the checksum in
* the last timecode. The list of field indices is given as integers
- * in a varargs list, preferrably in ascending order, in any case
+ * in a varargs list, preferably in ascending order, in any case
* terminated by a negative field index.
*
* A maximum number of 8 fields can be overwritten at once to guard
@@ -1412,7 +1392,7 @@
int fcnt; /* safeguard against runaway arglist */
int fidx; /* field to nuke, or -1 for checksum */
char * cp; /* overwrite destination */
-
+
fcnt = 8;
cp = NULL;
va_start(va, data);
@@ -1429,7 +1409,7 @@
if ('.' != *cp)
*cp = '_';
} while (fcnt-- && fidx >= 0);
- va_end(va);
+ va_end(va);
}
/*
@@ -1436,7 +1416,198 @@
* -------------------------------------------------------------------
* PARSING HELPERS
* -------------------------------------------------------------------
+ */
+typedef unsigned char const UCC;
+
+static char const * const s_eof_chars = ",*\r\n";
+
+static int field_length(UCC *cp, unsigned int nfields)
+{
+ char const * ep = (char const*)cp;
+ ep = strpbrk(ep, s_eof_chars);
+ if (ep && nfields)
+ while (--nfields && ep && *ep == ',')
+ ep = strpbrk(ep + 1, s_eof_chars);
+ return (ep)
+ ? (int)((UCC*)ep - cp)
+ : (int)strlen((char const*)cp);
+}
+
+/* /[,*\r\n]/ --> skip */
+static int _parse_eof(UCC *cp, UCC ** ep)
+{
+ int rc = (strchr(s_eof_chars, *(char const*)cp) != NULL);
+ *ep = cp + rc;
+ return rc;
+}
+
+/* /,/ --> skip */
+static int _parse_sep(UCC *cp, UCC ** ep)
+{
+ int rc = (*cp == ',');
+ *ep = cp + rc;
+ return rc;
+}
+
+/* /[[:digit:]]{2}/ --> uint16_t */
+static int _parse_num2d(UCC *cp, UCC ** ep, uint16_t *into)
+{
+ int rc = FALSE;
+
+ if (isdigit(cp[0]) && isdigit(cp[1])) {
+ *into = (cp[0] - '0') * 10 + (cp[1] - '0');
+ cp += 2;
+ rc = TRUE;
+ }
+ *ep = cp;
+ return rc;
+}
+
+/* /[[:digit:]]+/ --> uint16_t */
+static int _parse_u16(UCC *cp, UCC **ep, uint16_t *into, unsigned int ndig)
+{
+ uint16_t num = 0;
+ int rc = FALSE;
+ if (isdigit(*cp) && ndig) {
+ rc = TRUE;
+ do
+ num = (num * 10) + (*cp - '0');
+ while (isdigit(*++cp) && --ndig);
+ *into = num;
+ }
+ *ep = cp;
+ return rc;
+}
+
+/* /[[:digit:]]+/ --> uint32_t */
+static int _parse_u32(UCC *cp, UCC **ep, uint32_t *into, unsigned int ndig)
+{
+ uint32_t num = 0;
+ int rc = FALSE;
+ if (isdigit(*cp) && ndig) {
+ rc = TRUE;
+ do
+ num = (num * 10) + (*cp - '0');
+ while (isdigit(*++cp) && --ndig);
+ *into = num;
+ }
+ *ep = cp;
+ return rc;
+}
+
+/* /(\.[[:digit:]]*)?/ --> l_fp{0, f}
+ * read fractional seconds, convert to l_fp
*
+ * Only the first 9 decimal digits are evaluated; any excess is parsed
+ * away but silently ignored. (--> truncation to 1 nanosecond)
+ */
+static int _parse_frac(UCC *cp, UCC **ep, l_fp *into)
+{
+ static const uint32_t powtab[10] = {
+ 0,
+ 100000000, 10000000, 1000000,
+ 100000, 10000, 1000,
+ 100, 10, 1
+ };
+
+ struct timespec ts;
+ ZERO(ts);
+ if (*cp == '.') {
+ uint32_t fval = 0;
+ UCC * sp = cp + 1;
+ if (_parse_u32(sp, &cp, &fval, 9))
+ ts.tv_nsec = fval * powtab[(size_t)(cp - sp)];
+ while (isdigit(*cp))
+ ++cp;
+ }
+
+ *ep = cp;
+ *into = tspec_intv_to_lfp(ts);
+ return TRUE;
+}
+
+/* /[[:digit:]]{6}/ --> time-of-day
+ * parses a number string representing 'HHMMSS'
+ */
+static int _parse_time(UCC *cp, UCC ** ep, TCivilDate *into)
+{
+ uint16_t s, m, h;
+ int rc;
+ UCC * xp = cp;
+
+ rc = _parse_num2d(cp, &cp, &h) && (h < 24)
+ && _parse_num2d(cp, &cp, &m) && (m < 60)
+ && _parse_num2d(cp, &cp, &s) && (s < 61); /* leap seconds! */
+
+ if (rc) {
+ into->hour = (uint8_t)h;
+ into->minute = (uint8_t)m;
+ into->second = (uint8_t)s;
+ *ep = cp;
+ } else {
+ *ep = xp;
+ DPRINTF(1, ("nmea: invalid time code: '%.*s'\n",
+ field_length(xp, 1), xp));
+ }
+ return rc;
+}
+
+/* /[[:digit:]]{6}/ --> civil date
+ * parses a number string representing 'ddmmyy'
+ */
+static int _parse_date1(UCC *cp, UCC **ep, TCivilDate *into)
+{
+ unsigned short d, m, y;
+ int rc;
+ UCC * xp = cp;
+
+ rc = _parse_num2d(cp, &cp, &d) && (d - 1 < 31)
+ && _parse_num2d(cp, &cp, &m) && (m - 1 < 12)
+ && _parse_num2d(cp, &cp, &y)
+ && _parse_eof(cp, ep);
+ if (rc) {
+ into->monthday = (uint8_t )d;
+ into->month = (uint8_t )m;
+ into->year = (uint16_t)y;
+ *ep = cp;
+ } else {
+ *ep = xp;
+ DPRINTF(1, ("nmea: invalid date code: '%.*s'\n",
+ field_length(xp, 1), xp));
+ }
+ return rc;
+}
+
+/* /[[:digit:]]+,[[:digit:]]+,[[:digit:]]+/ --> civil date
+ * parses three successive numeric fields as date: day,month,year
+ */
+static int _parse_date3(UCC *cp, UCC **ep, TCivilDate *into)
+{
+ uint16_t d, m, y;
+ int rc;
+ UCC * xp = cp;
+
+ rc = _parse_u16(cp, &cp, &d, 2) && (d - 1 < 31)
+ && _parse_sep(cp, &cp)
+ && _parse_u16(cp, &cp, &m, 2) && (m - 1 < 12)
+ && _parse_sep(cp, &cp)
+ && _parse_u16(cp, &cp, &y, 4) && (y > 1980)
+ && _parse_eof(cp, ep);
+ if (rc) {
+ into->monthday = (uint8_t )d;
+ into->month = (uint8_t )m;
+ into->year = (uint16_t)y;
+ *ep = cp;
+ } else {
+ *ep = xp;
+ DPRINTF(1, ("nmea: invalid date code: '%.*s'\n",
+ field_length(xp, 3), xp));
+ }
+ return rc;
+}
+
+/*
+ * -------------------------------------------------------------------
* Check sync status
*
* If the character at the data field start matches the tag value,
@@ -1453,12 +1624,11 @@
int inv
)
{
- static const u_char table[2] =
- { LEAP_NOTINSYNC, LEAP_NOWARNING };
- char * dp;
+ static const u_char table[2] = {
+ LEAP_NOTINSYNC, LEAP_NOWARNING };
- dp = field_parse(rd, idx);
-
+ char * dp = field_parse(rd, idx);
+
return table[ *dp && ((*dp == tag) == !inv) ];
}
@@ -1472,48 +1642,16 @@
static int
parse_time(
struct calendar * jd, /* result calendar pointer */
- long * ns, /* storage for nsec fraction */
+ l_fp * fofs, /* storage for nsec fraction */
nmea_data * rd,
int idx
)
{
- static const unsigned long weight[4] = {
- 0, 100000000, 10000000, 1000000
- };
+ UCC * dp = (UCC*)field_parse(rd, idx);
- int rc;
- u_int h;
- u_int m;
- u_int s;
- int p1;
- int p2;
- u_long f;
- char * dp;
-
- dp = field_parse(rd, idx);
- rc = sscanf(dp, "%2u%2u%2u%n.%3lu%n", &h, &m, &s, &p1, &f, &p2);
- if (rc < 3 || p1 != 6) {
- DPRINTF(1, ("nmea: invalid time code: '%.6s'\n", dp));
- return FALSE;
- }
-
- /* value sanity check */
- if (h > 23 || m > 59 || s > 60) {
- DPRINTF(1, ("nmea: invalid time spec %02u:%02u:%02u\n",
- h, m, s));
- return FALSE;
- }
-
- jd->hour = (u_char)h;
- jd->minute = (u_char)m;
- jd->second = (u_char)s;
- /* if we have a fraction, scale it up to nanoseconds. */
- if (rc == 4)
- *ns = f * weight[p2 - p1 - 1];
- else
- *ns = 0;
-
- return TRUE;
+ return _parse_time(dp, &dp, jd)
+ && _parse_frac(dp, &dp, fofs)
+ && _parse_eof (dp, &dp);
}
/*
@@ -1534,52 +1672,18 @@
enum date_fmt fmt
)
{
- int rc;
- u_int y;
- u_int m;
- u_int d;
- int p;
- char * dp;
-
- dp = field_parse(rd, idx);
+ UCC * dp = (UCC*)field_parse(rd, idx);
+
switch (fmt) {
-
case DATE_1_DDMMYY:
- rc = sscanf(dp, "%2u%2u%2u%n", &d, &m, &y, &p);
- if (rc != 3 || p != 6) {
- DPRINTF(1, ("nmea: invalid date code: '%.6s'\n",
- dp));
- return FALSE;
- }
- break;
-
+ return _parse_date1(dp, &dp, jd);
case DATE_3_DDMMYYYY:
- rc = sscanf(dp, "%2u,%2u,%4u%n", &d, &m, &y, &p);
- if (rc != 3 || p != 10) {
- DPRINTF(1, ("nmea: invalid date code: '%.10s'\n",
- dp));
- return FALSE;
- }
- break;
-
+ return _parse_date3(dp, &dp, jd);
default:
DPRINTF(1, ("nmea: invalid parse format: %d\n", fmt));
- return FALSE;
+ break;
}
-
- /* value sanity check */
- if (d < 1 || d > 31 || m < 1 || m > 12) {
- DPRINTF(1, ("nmea: invalid date spec (YMD) %04u:%02u:%02u\n",
- y, m, d));
- return FALSE;
- }
-
- /* store results */
- jd->monthday = (u_char)d;
- jd->month = (u_char)m;
- jd->year = (u_short)y;
-
- return TRUE;
+ return FALSE;
}
/*
@@ -1592,285 +1696,58 @@
* -------------------------------------------------------------------
*/
static int
-parse_weekdata(
- gps_weektm * wd,
- nmea_data * rd,
+parse_gpsw(
+ TGpsDatum * wd,
+ nmea_data * rd,
int weekidx,
int timeidx,
int leapidx
)
{
- u_long secs;
- int fcnt;
+ uint32_t secs;
+ uint16_t week, leap = 0;
+ l_fp fofs;
+ int rc;
- /* parse fields and count success */
- fcnt = sscanf(field_parse(rd, weekidx), "%hu", &wd->wt_week);
- fcnt += sscanf(field_parse(rd, timeidx), "%lu", &secs);
- fcnt += sscanf(field_parse(rd, leapidx), "%hd", &wd->wt_leap);
- if (fcnt != 3 || wd->wt_week >= 1024 || secs >= 7*SECSPERDAY) {
- DPRINTF(1, ("nmea: parse_weekdata: invalid weektime spec\n"));
- return FALSE;
+ UCC * dpw = (UCC*)field_parse(rd, weekidx);
+ UCC * dps = (UCC*)field_parse(rd, timeidx);
+
+ rc = _parse_u16 (dpw, &dpw, &week, 5)
+ && _parse_eof (dpw, &dpw)
+ && _parse_u32 (dps, &dps, &secs, 9)
+ && _parse_frac(dps, &dps, &fofs)
+ && _parse_eof (dps, &dps)
+ && (secs < 7*SECSPERDAY);
+ if (rc && leapidx > 0) {
+ UCC * dpl = (UCC*)field_parse(rd, leapidx);
+ rc = _parse_u16 (dpl, &dpl, &leap, 5)
+ && _parse_eof (dpl, &dpl);
}
- wd->wt_time = (u_int32)secs;
-
- return TRUE;
+ if (rc) {
+ fofs.l_ui -= leap;
+ *wd = gpscal_from_gpsweek(week, secs, fofs);
+ } else {
+ DPRINTF(1, ("nmea: parse_gpsw: invalid weektime spec\n"));
+ }
+ return rc;
}
-/*
- * -------------------------------------------------------------------
- * funny calendar-oriented stuff -- perhaps a bit hard to grok.
- * -------------------------------------------------------------------
- *
- * Unfold a time-of-day (seconds since midnight) around the current
- * system time in a manner that guarantees an absolute difference of
- * less than 12hrs.
- *
- * This function is used for NMEA sentences that contain no date
- * information. This requires the system clock to be in +/-12hrs
- * around the true time, or the clock will synchronize the system 1day
- * off if not augmented with a time sources that also provide the
- * necessary date information.
- *
- * The function updates the calendar structure it also uses as
- * input to fetch the time from.
- *
- * returns 1 on success, 0 on failure
- * -------------------------------------------------------------------
- */
-static int
-unfold_day(
- struct calendar * jd,
- u_int32 rec_ui
- )
-{
- vint64 rec_qw;
- ntpcal_split rec_ds;
- /*
- * basically this is the peridiodic extension of the receive
- * time - 12hrs to the time-of-day with a period of 1 day.
- * But we would have to execute this in 64bit arithmetic, and we
- * cannot assume we can do this; therefore this is done
- * in split representation.
- */
- rec_qw = ntpcal_ntp_to_ntp(rec_ui - SECSPERDAY/2, NULL);
- rec_ds = ntpcal_daysplit(&rec_qw);
- rec_ds.lo = ntpcal_periodic_extend(rec_ds.lo,
- ntpcal_date_to_daysec(jd),
- SECSPERDAY);
- rec_ds.hi += ntpcal_daysec_to_date(jd, rec_ds.lo);
- return (ntpcal_rd_to_date(jd, rec_ds.hi + DAY_NTP_STARTS) >= 0);
-}
-
-/*
- * -------------------------------------------------------------------
- * A 2-digit year is expanded into full year spec around the year found
- * in 'jd->year'. This should be in +79/-19 years around the system time,
- * or the result will be off by 100 years. The assymetric behaviour was
- * chosen to enable inital sync for systems that do not have a
- * battery-backup clock and start with a date that is typically years in
- * the past.
- *
- * Since the GPS epoch starts at 1980-01-06, the resulting year will be
- * not be before 1980 in any case.
- *
- * returns 1 on success, 0 on failure
- * -------------------------------------------------------------------
- */
-static int
-unfold_century(
- struct calendar * jd,
- u_int32 rec_ui
+#ifdef HAVE_PPSAPI
+static double
+tabsdiffd(
+ l_fp t1,
+ l_fp t2
)
{
- struct calendar rec;
- int32 baseyear;
-
- ntpcal_ntp_to_date(&rec, rec_ui, NULL);
- baseyear = rec.year - 20;
- if (baseyear < g_gpsMinYear)
- baseyear = g_gpsMinYear;
- jd->year = (u_short)ntpcal_periodic_extend(baseyear, jd->year,
- 100);
-
- return ((baseyear <= jd->year) && (baseyear + 100 > jd->year));
+ double dd;
+ L_SUB(&t1, &t2);
+ LFPTOD(&t1, dd);
+ return fabs(dd);
}
+#endif /* HAVE_PPSAPI */
/*
- * -------------------------------------------------------------------
- * A 2-digit year is expanded into a full year spec by correlation with
- * a GPS week number and the current leap second count.
- *
- * The GPS week time scale counts weeks since Sunday, 1980-01-06, modulo
- * 1024 and seconds since start of the week. The GPS time scale is based
- * on international atomic time (TAI), so the leap second difference to
- * UTC is also needed for a proper conversion.
- *
- * A brute-force analysis (that is, test for every date) shows that a
- * wrong assignment of the century can not happen between the years 1900
- * to 2399 when comparing the week signatures for different
- * centuries. (I *think* that will not happen for 400*1024 years, but I
- * have no valid proof. -*-perlinger@ntp.org-*-)
- *
- * This function is bound to to work between years 1980 and 2399
- * (inclusive), which should suffice for now ;-)
- *
- * Note: This function needs a full date&time spec on input due to the
- * necessary leap second corrections!
- *
- * returns 1 on success, 0 on failure
- * -------------------------------------------------------------------
- */
-static int
-gpsfix_century(
- struct calendar * jd,
- const gps_weektm * wd,
- u_short * century
- )
-{
- int32 days;
- int32 doff;
- u_short week;
- u_short year;
- int loop;
-
- /* Get day offset. Assumes that the input time is in range and
- * that the leap seconds do not shift more than +/-1 day.
- */
- doff = ntpcal_date_to_daysec(jd) + wd->wt_leap;
- doff = (doff >= SECSPERDAY) - (doff < 0);
-
- /*
- * Loop over centuries to get a match, starting with the last
- * successful one. (Or with the 19th century if the cached value
- * is out of range...)
- */
- year = jd->year % 100;
- for (loop = 5; loop > 0; loop--,(*century)++) {
- if (*century < 19 || *century >= 24)
- *century = 19;
- /* Get days and week in GPS epoch */
- jd->year = year + *century * 100;
- days = ntpcal_date_to_rd(jd) - DAY_GPS_STARTS + doff;
- week = (days / 7) % 1024;
- if (days >= 0 && wd->wt_week == week)
- return TRUE; /* matched... */
- }
-
- jd->year = year;
- return FALSE; /* match failed... */
-}
-
-/*
- * -------------------------------------------------------------------
- * And now the final execise: Considering the fact that many (most?)
- * GPS receivers cannot handle a GPS epoch wrap well, we try to
- * compensate for that problem by unwrapping a GPS epoch around the
- * receive stamp. Another execise in periodic unfolding, of course,
- * but with enough points to take care of.
- *
- * Note: The integral part of 'tofs' is intended to handle small(!)
- * systematic offsets, as -1 for handling $GPZDG, which gives the
- * following second. (sigh...) The absolute value shall be less than a
- * day (86400 seconds).
- * -------------------------------------------------------------------
- */
-static l_fp
-eval_gps_time(
- struct peer * peer, /* for logging etc */
- const struct calendar * gpst, /* GPS time stamp */
- const struct timespec * tofs, /* GPS frac second & offset */
- const l_fp * xrecv /* receive time stamp */
- )
-{
- struct refclockproc * const pp = peer->procptr;
- nmea_unit * const up = (nmea_unit *)pp->unitptr;
-
- l_fp retv;
-
- /* components of calculation */
- int32_t rcv_sec, rcv_day; /* receive ToD and day */
- int32_t gps_sec, gps_day; /* GPS ToD and day in NTP epoch */
- int32_t adj_day, weeks; /* adjusted GPS day and week shift */
-
- /* some temporaries to shuffle data */
- vint64 vi64;
- ntpcal_split rs64;
-
- /* evaluate time stamp from receiver. */
- gps_sec = ntpcal_date_to_daysec(gpst);
- gps_day = ntpcal_date_to_rd(gpst) - DAY_NTP_STARTS;
-
- /* merge in fractional offset */
- retv = tspec_intv_to_lfp(*tofs);
- gps_sec += retv.l_i;
-
- /* If we fully trust the GPS receiver, just combine days and
- * seconds and be done. */
- if (peer->ttl & NMEA_DATETRUST_MASK) {
- retv.l_ui = ntpcal_dayjoin(gps_day, gps_sec).D_s.lo;
- return retv;
- }
-
- /* So we do not trust the GPS receiver to deliver a correct date
- * due to the GPS epoch changes. We map the date from the
- * receiver into the +/-512 week interval around the receive
- * time in that case. This would be a tad easier with 64bit
- * calculations, but again, we restrict the code to 32bit ops
- * when possible. */
-
- /* - make sure the GPS fractional day is normalised
- * Applying the offset value might have put us slightly over the
- * edge of the allowed range for seconds-of-day. Doing a full
- * division with floor correction is overkill here; a simple
- * addition or subtraction step is sufficient. Using WHILE loops
- * gives the right result even if the offset exceeds one day,
- * which is NOT what it's intented for! */
- while (gps_sec >= SECSPERDAY) {
- gps_sec -= SECSPERDAY;
- gps_day += 1;
- }
- while (gps_sec < 0) {
- gps_sec += SECSPERDAY;
- gps_day -= 1;
- }
-
- /* - get unfold base: day of full recv time - 512 weeks */
- vi64 = ntpcal_ntp_to_ntp(xrecv->l_ui, NULL);
- rs64 = ntpcal_daysplit(&vi64);
- rcv_sec = rs64.lo;
- rcv_day = rs64.hi - 512 * 7;
-
- /* - take the fractional days into account
- * If the fractional day of the GPS time is smaller than the
- * fractional day of the receive time, we shift the base day for
- * the unfold by 1. */
- if ( gps_sec < rcv_sec
- || (gps_sec == rcv_sec && retv.l_uf < xrecv->l_uf))
- rcv_day += 1;
-
- /* - don't warp ahead of GPS invention! */
- if (rcv_day < g_gpsMinBase)
- rcv_day = g_gpsMinBase;
-
- /* - let the magic happen: */
- adj_day = ntpcal_periodic_extend(rcv_day, gps_day, 1024*7);
-
- /* - check if we should log a GPS epoch warp */
- weeks = (adj_day - gps_day) / 7;
- if (weeks != up->epoch_warp) {
- up->epoch_warp = weeks;
- LOGIF(CLOCKINFO, (LOG_INFO,
- "%s Changed GPS epoch warp to %d weeks",
- refnumtoa(&peer->srcadr), weeks));
- }
-
- /* - build result and be done */
- retv.l_ui = ntpcal_dayjoin(adj_day, gps_sec).D_s.lo;
- return retv;
-}
-
-/*
* ===================================================================
*
* NMEAD support
@@ -1896,8 +1773,8 @@
)
{
int fd = -1; /* result file descriptor */
-
-#ifdef HAVE_READLINK
+
+# ifdef HAVE_READLINK
char host[80]; /* link target buffer */
char * port; /* port name or number */
int rc; /* result code (several)*/
@@ -1907,7 +1784,7 @@
struct addrinfo *ai; /* result scan ptr */
fd = -1;
-
+
/* try to read as link, make sure no overflow occurs */
rc = readlink(device, host, sizeof(host));
if ((size_t)rc >= sizeof(host))
@@ -1919,7 +1796,7 @@
if (!port)
return fd; /* not 'host:port' syntax ? */
*port++ = '\0'; /* put in separator */
-
+
/* get address infos and try to open socket
*
* This getaddrinfo() is naughty in ntpd's nonblocking main
@@ -1933,7 +1810,7 @@
ai_hint.ai_socktype = SOCK_STREAM;
if (getaddrinfo(host, port, &ai_hint, &ai_list))
return fd;
-
+
for (ai = ai_list; ai && (fd == -1); ai = ai->ai_next) {
sh = socket(ai->ai_family, ai->ai_socktype,
ai->ai_protocol);
@@ -1946,9 +1823,11 @@
close(sh);
}
freeaddrinfo(ai_list);
-#else
+ if (fd != -1)
+ make_socket_nonblocking(fd);
+# else
fd = -1;
-#endif
+# endif
return fd;
}
--- contrib/ntp/ntpd/refclock_oncore.c.orig
+++ contrib/ntp/ntpd/refclock_oncore.c
@@ -162,6 +162,7 @@
#include "ntp_unixtime.h"
#include "ntp_refclock.h"
#include "ntp_calendar.h"
+#include "ntp_calgps.h"
#include "ntp_stdlib.h"
#include <stdio.h>
@@ -388,6 +389,7 @@
static void oncore_shmem_get_3D (struct instance *);
static void oncore_ss (struct instance *);
static int oncore_wait_almanac (struct instance *);
+static void oncore_feed_clockproc (struct instance *);
static void oncore_msg_any (struct instance *, u_char *, size_t, int);
static void oncore_msg_Adef (struct instance *, u_char *, size_t);
@@ -1872,12 +1874,16 @@
/* and some things I dont understand (magic ntp things) */
+#if 1
+ oncore_feed_clockproc(instance);
+#else
if (!refclock_process(instance->pp)) {
- refclock_report(instance->peer, CEVNT_BADTIME);
+ refclock_report(peer, CEVNT_BADTIME);
peer->flags &= ~FLAG_PPS; /* problem - clear PPS FLAG */
return;
}
-
+#endif
+
oncore_log(instance, LOG_INFO, Msg); /* this is long message above */
instance->pollcnt = 2;
@@ -4036,7 +4042,53 @@
}
+static void
+oncore_feed_clockproc(
+ struct instance * instance
+ )
+{
+ struct peer * const peer = instance->peer;
+ struct refclockproc * const pp = instance->pp;
+
+ TCivilDate cd; /* calendar date + time */
+ TGpsDatum gd; /* GPS datum, remapped into NTP epoch */
+ l_fp fp; /* the reference time in NTP format */
+ if (pp->year >= 1980) {
+ /* There are oncore receivers that run in a fixed
+ * (possibly shifted) GPS era and fold back into that
+ * era on every GPS week rollover.
+ *
+ * We do not trust the date we get and remap to a GPS
+ * era defined by the GPS base date (derived from the
+ * build time stamp or a 'tos basedate' config option.
+ */
+ ZERO(fp); /* has a zero to begin with */
+ ZERO(cd); /* month == monthday == 0 -> use year+yearday */
+ cd.year = pp->year;
+ cd.yearday = pp->day;
+ cd.hour = pp->hour;
+ cd.minute = pp->minute;
+ cd.second = pp->second;
+
+ /* the magic happens in the next line: */
+ gd = gpscal_from_calendar(&cd, fp); /* fp should be zero here */
+
+ /* To avoid the trouble the day-of-year calculations in
+ * 'refclock_process()' can cause we feed the time
+ * stamps we have now directly. This also saves us two
+ * full calendar calendar conversion cycles.
+ */
+ fp = ntpfp_from_gpsdatum(&gd);
+ refclock_process_offset(pp, fp, pp->lastrec, pp->fudgetime1);
+ } else {
+ /* This is obviously a bad date/time... */
+ refclock_report(peer, CEVNT_BADDATE);
+ peer->flags &= ~FLAG_PPS; /* problem - clear PPS FLAG */
+ return;
+ }
+}
+
static void
oncore_log (
struct instance *instance,
--- contrib/ntp/ntpd/refclock_palisade.c.orig
+++ contrib/ntp/ntpd/refclock_palisade.c
@@ -65,6 +65,10 @@
*
* 30/08/09: Added support for Trimble Acutime Gold Receiver.
* Fernando P. Hauscarriaga (fernandoph@iar.unlp.edu.ar)
+ *
+ * 21/04/18: Added support for Resolution devices.
+ *
+ * 03/09/19: Added support for ACE III & Copernicus II.
*/
#ifdef HAVE_CONFIG_H
@@ -114,6 +118,9 @@
#define CLK_THUNDERBOLT 2 /* Trimble Thunderbolt GPS Receiver */
#define CLK_ACUTIME 3 /* Trimble Acutime Gold */
#define CLK_ACUTIMEB 4 /* Trimble Actutime Gold Port B */
+#define CLK_RESOLUTION 5 /* Trimble Resolution Receivers */
+#define CLK_ACE 6 /* Trimble ACE III */
+#define CLK_COPERNICUS 7 /* Trimble Copernicus II */
int praecis_msg;
static void praecis_parse(struct recvbuf *rbufp, struct peer *peer);
@@ -122,7 +129,6 @@
* They are taken from Markus Prosch
*/
-#ifdef PALISADE_SENDCMD_RESURRECTED
/*
* sendcmd - Build data packet for sending
*/
@@ -136,7 +142,6 @@
*(buffer->data + 1) = (unsigned char)c;
buffer->size = 2;
}
-#endif /* PALISADE_SENDCMD_RESURRECTED */
/*
* sendsupercmd - Build super data packet for sending
@@ -255,6 +260,37 @@
}
/*
+ * init_resolution - Prepares Resolution receiver to be used with NTP
+ */
+static void
+init_resolution (
+ int fd
+ )
+{
+ struct packettx tx;
+
+ tx.size = 0;
+ tx.data = (u_char *) emalloc(100);
+
+ /* set UTC time */
+ sendsupercmd (&tx, 0x8E, 0xA2);
+ sendbyte (&tx, 0x3);
+ sendetx (&tx, fd);
+
+ /* squelch PPS output unless locked to at least one satellite */
+ sendsupercmd (&tx, 0x8E, 0x4E);
+ sendbyte (&tx, 0x3);
+ sendetx (&tx, fd);
+
+ /* activate packets 0x8F-AB and 0x8F-AC */
+ sendsupercmd (&tx, 0x8E, 0xA5);
+ sendint (&tx, 0x5);
+ sendetx (&tx, fd);
+
+ free(tx.data);
+}
+
+/*
* palisade_start - open the devices and initialize data for processing
*/
static int
@@ -274,7 +310,9 @@
/*
* Open serial port.
*/
- fd = refclock_open(gpsdev, SPEED232, LDISC_RAW);
+ u_int speed;
+ speed = (CLK_TYPE(peer) == CLK_COPERNICUS) ? SPEED232COP : SPEED232;
+ fd = refclock_open(gpsdev, speed, LDISC_RAW);
if (fd <= 0) {
#ifdef DEBUG
printf("Palisade(%d) start: open %s failed\n", unit, gpsdev);
@@ -321,6 +359,25 @@
msyslog(LOG_NOTICE, "Palisade(%d) Acutime Gold mode enabled"
,unit);
break;
+ case CLK_RESOLUTION:
+ msyslog(LOG_NOTICE, "Palisade(%d) Resolution mode enabled"
+ ,unit);
+ tio.c_cflag = (CS8|CLOCAL|CREAD|PARENB|PARODD);
+ break;
+ case CLK_ACE:
+ msyslog(LOG_NOTICE, "Palisade(%d) ACE III mode enabled"
+ ,unit);
+ tio.c_cflag = (CS8|CLOCAL|CREAD|PARENB|PARODD);
+ break;
+ case CLK_COPERNICUS:
+ msyslog(LOG_NOTICE, "Palisade(%d) Copernicus II mode enabled"
+ ,unit);
+ /* Must use ORing/ANDing to set/clear c_cflag bits otherwise
+ CBAUD gets set back to 0. This ought to be an issue for
+ the other modes above but it seems that the baud rate
+ defaults to 9600 if CBAUD gets set to 0. */
+ tio.c_cflag &= ~(PARENB|PARODD);
+ break;
default:
msyslog(LOG_NOTICE, "Palisade(%d) mode unknown",unit);
break;
@@ -371,6 +428,8 @@
init_thunderbolt(fd);
if (up->type == CLK_ACUTIME)
init_acutime(fd);
+ if (up->type == CLK_RESOLUTION)
+ init_resolution(fd);
return 1;
}
@@ -483,6 +542,9 @@
double secfrac;
unsigned short event = 0;
int mmday;
+ long tow;
+ uint16_t wn;
+ int GPS_UTC_Offset;
struct palisade_unit *up;
struct refclockproc *pp;
@@ -496,7 +558,12 @@
* proper format, declare bad format and exit.
*/
- if ((up->type != CLK_THUNDERBOLT) & (up->type != CLK_ACUTIME)){
+ if ((up->type != CLK_THUNDERBOLT) &&
+ (up->type != CLK_ACUTIME ) &&
+ (up->type != CLK_RESOLUTION ) &&
+ (up->type != CLK_ACE ) &&
+ (up->type != CLK_COPERNICUS ) )
+ {
if ((up->rpt_buf[0] == (char) 0x41) ||
(up->rpt_buf[0] == (char) 0x46) ||
(up->rpt_buf[0] == (char) 0x54) ||
@@ -513,7 +580,7 @@
}
/*
- * We cast both to u_char to as 0x8f uses the sign bit on a char
+ * We cast both to u_char as 0x8f uses the sign bit on a char
*/
if ((u_char) up->rpt_buf[0] == (u_char) 0x8f) {
/*
@@ -525,8 +592,6 @@
return 0;
switch (mb(0) & 0xff) {
- int GPS_UTC_Offset;
- long tow;
case PACKET_8F0B:
@@ -839,11 +904,70 @@
#ifdef DEBUG
printf("GPS TOW: %ld\n", (long)getlong((u_char *) &mb(0)));
printf("GPS WN: %d\n", getint((u_char *) &mb(4)));
- printf("GPS UTC-GPS Offser: %ld\n", (long)getlong((u_char *) &mb(6)));
+ printf("GPS UTC-GPS Offset: %ld\n", (long)getlong((u_char *) &mb(6)));
#endif
return 0;
}
+ /* GPS time packet for ACE III or Copernicus II receiver */
+ else if ((up->rpt_buf[0] == PACKET_41) &&
+ ((up->type == CLK_ACE) || (up->type == CLK_COPERNICUS))) {
+#ifdef DEBUG
+ if ((debug > 1) && (up->type == CLK_ACE))
+ printf("TSIP_decode: Packet 0x41 seen in ACE III mode\n");
+ if ((debug > 1) && (up->type == CLK_COPERNICUS))
+ printf("TSIP_decode: Packet 0x41 seen in Copernicus II mode\n");
+#endif
+ if (up->rpt_cnt != LENCODE_41) { /* check length */
+ refclock_report(peer, CEVNT_BADREPLY);
+ up->polled = -1;
+#ifdef DEBUG
+ printf("TSIP_decode: unit %d: bad packet %02x len %d\n",
+ up->unit, up->rpt_buf[0] & 0xff, up->rpt_cnt);
+#endif
+ return 0;
+ }
+ if (up->polled <= 0)
+ return 0;
+ tow = (long)getsingle((u_char *) &mb(0));
+ wn = (uint16_t)getint((u_char *) &mb(4));
+ GPS_UTC_Offset = (int)getsingle((u_char *) &mb(6));
+ if (GPS_UTC_Offset == 0){ /* Check UTC Offset */
+#ifdef DEBUG
+ printf("TSIP_decode: UTC Offset Unknown\n");
+#endif
+ refclock_report(peer, CEVNT_BADREPLY);
+ up->polled = -1;
+ return 0;
+ }
+ /* Get date & time from WN & ToW minus offset */
+ TCivilDate cd;
+ TGpsDatum wd;
+ l_fp ugo; /* UTC-GPS offset, negative number */
+ ugo.Ul_i.Xl_i = (int32_t)-GPS_UTC_Offset;
+ ugo.l_uf = 0;
+ wd = gpscal_from_gpsweek((wn % 1024), (int32_t)tow, ugo);
+ gpscal_to_calendar(&cd, &wd);
+ pp->year = cd.year;
+ pp->day = cd.yearday;
+ pp->hour = cd.hour;
+ pp->minute = cd.minute;
+ pp->second = cd.second;
+ pp->nsec = 0;
+ pp->leap = LEAP_NOWARNING;
+#ifdef DEBUG
+ if (debug > 1) {
+ printf("GPS TOW: %ld\n", tow);
+ printf("GPS WN: %d\n", wn);
+ printf("GPS UTC-GPS Offset: %d\n", GPS_UTC_Offset);
+ printf("TSIP_decode: unit %d: %02X #%d %02d:%02d:%02d.%09ld %02d/%02d/%04d ",
+ up->unit, mb(0) & 0xff, event, pp->hour, pp->minute, pp->second,
+ pp->nsec, cd.month, cd.monthday, pp->year);
+ }
+#endif
+ return 1;
+ }
+
/* Health Status for Acutime Receiver */
else if ((up->rpt_buf[0] == PACKET_46) & (up->type == CLK_ACUTIME)) {
#ifdef DEBUG
@@ -854,7 +978,7 @@
printf ("Doing Position Fixes\n");
break;
case 0x01:
- printf ("Do no have GPS time yet\n");
+ printf ("Do not have GPS time yet\n");
break;
case 0x03:
printf ("PDOP is too high\n");
@@ -899,6 +1023,73 @@
return 0;
}
}
+
+ /* Health Status for Copernicus II Receiver */
+ else if ((up->rpt_buf[0] == PACKET_46) && (up->type == CLK_COPERNICUS)) {
+#ifdef DEBUG
+ if (debug > 1)
+ /* Status Codes */
+ switch (mb(0)) {
+ case 0x00:
+ printf ("Doing Position Fixes\n");
+ break;
+ case 0x01:
+ printf ("Do not have GPS time yet\n");
+ break;
+ case 0x03:
+ printf ("PDOP is too high\n");
+ break;
+ case 0x04:
+ printf("The Chosen satellite is unusable\n");
+ break;
+ case 0x08:
+ printf ("No usable satellites\n");
+ break;
+ case 0x09:
+ printf ("Only 1 usable satellite\n");
+ break;
+ case 0x0A:
+ printf ("Only 2 usable satellites\n");
+ break;
+ case 0x0B:
+ printf ("Only 3 usable satellites\n");
+ break;
+ }
+#endif
+ /* Error Codes */
+ if ((mb(1) & 0x3E) != 0) { /* Don't regard bits 0 and 6 as errors */
+ refclock_report(peer, CEVNT_BADTIME);
+ up->polled = -1;
+#ifdef DEBUG
+ if (debug > 1) {
+ if ((mb(1) & 0x18) == 0x08)
+ printf ("Antenna feed line fault (open)\n");
+ if ((mb(1) & 0x18) == 0x18)
+ printf ("Antenna feed line fault (short)\n");
+ }
+#endif
+ }
+ return 0;
+ }
+
+ /* Other packets output by ACE III & Copernicus II Receivers, dropped silently */
+ else if (((up->rpt_buf[0] == (char) 0x4A) ||
+ (up->rpt_buf[0] == (char) 0x4B) ||
+ (up->rpt_buf[0] == (char) 0x56) ||
+ (up->rpt_buf[0] == (char) 0x5F) ||
+ (up->rpt_buf[0] == (char) 0x6D) ||
+ (up->rpt_buf[0] == (char) 0x82) ||
+ (up->rpt_buf[0] == (char) 0x84)) &&
+ ((up->type == CLK_ACE) || (up->type == CLK_COPERNICUS))) {
+#ifdef DEBUG
+ if ((debug > 1) && (up->type == CLK_ACE))
+ printf("TSIP_decode: Packet 0x%2x seen in ACE III mode\n", (up->rpt_buf[0] & 0XFF));
+ if ((debug > 1) && (up->type == CLK_COPERNICUS))
+ printf("TSIP_decode: Packet 0x%2x seen in Copernicus II mode\n", (up->rpt_buf[0] & 0XFF));
+#endif
+ return 0;
+ }
+
else if (up->rpt_buf[0] == 0x54)
return 0;
@@ -1188,9 +1379,19 @@
{
int x; /* state before & after RTS set */
struct palisade_unit *up;
+ struct packettx tx;
up = pp->unitptr;
+ if (up->type == CLK_ACE) {
+ /* Poll by sending a 0x21 command */
+ tx.size = 0;
+ tx.data = (u_char *) emalloc(100);
+ sendcmd (&tx, 0x21);
+ sendetx (&tx, pp->io.fd);
+ free(tx.data);
+ } else {
+
/* read the current status, so we put things back right */
if (ioctl(pp->io.fd, TIOCMGET, &x) < 0) {
DPRINTF(1, ("Palisade HW_poll: unit %d: GET %m\n",
@@ -1219,9 +1420,12 @@
x &= ~TIOCM_RTS; /* turn off RTS */
+ } /* (up->type != CLK_ACE) */
+
/* poll timestamp */
get_systime(&pp->lastrec);
+ if (up->type != CLK_ACE) {
if (ioctl(pp->io.fd, TIOCMSET, &x) == -1) {
#ifdef DEBUG
if (debug)
@@ -1232,6 +1436,7 @@
up->unit);
return -1;
}
+ }
return 0;
}
@@ -1298,6 +1503,31 @@
return (int32)(u_int32)ntohl(u32);
}
+/*
+ * copy/swap a big-endian 32-bit single-precision floating point into a host 32-bit int
+ */
+static int32
+getsingle(
+ u_char *bp
+ )
+{
+ u_int32 mantissa;
+ int8_t exponent;
+ uint8_t sign, exp_field;
+ int32 res;
+
+ memcpy(&mantissa, bp, sizeof(mantissa));
+ mantissa = ((u_int32)ntohl(mantissa) & 0x7FFFFF) | 0x800000;
+ exp_field = ((uint8_t)bp[0] << 1) + ((uint8_t)bp[1] >> 7);
+ exponent = (int8_t)exp_field - 127;
+ sign = ((uint8_t)bp[0] >> 7);
+ if (exponent > 23)
+ res = (int32)(mantissa << (exponent - 23));
+ else
+ res = (int32)(mantissa >> (23 - exponent));
+ return sign ? -res : res;
+}
+
#else /* REFCLOCK && CLOCK_PALISADE*/
int refclock_palisade_c_notempty;
#endif
--- contrib/ntp/ntpd/refclock_palisade.h.orig
+++ contrib/ntp/ntpd/refclock_palisade.h
@@ -82,6 +82,7 @@
#include "ntp_control.h"
#include "ntp_refclock.h"
#include "ntp_unixtime.h"
+#include "ntp_calgps.h"
#include "ntp_stdlib.h"
/*
@@ -98,6 +99,7 @@
*/
#define DEVICE "/dev/palisade%d" /* device name and unit */
#define SPEED232 B9600 /* uart speed (9600 baud) */
+#define SPEED232COP B38400 /* uart speed for Copernicus II (38400 baud) */
/*
* TSIP Report Definitions
@@ -108,6 +110,8 @@
#define LENCODE_8FAC 68 /* Length of Thunderbolt 8F-AC Position Packet*/
#define LENCODE_8FAB 17 /* Length of Thunderbolt Primary Timing Packet*/
+#define LENCODE_41 10 /* Length of Copernicus II GPS Time Packet*/
+
/* Allowed Sub-Packet ID's */
#define PACKET_8F0B 0x0B
#define PACKET_NTP 0xAD
@@ -187,11 +191,10 @@
static double getdbl (u_char *);
static short getint (u_char *);
static int32 getlong (u_char *);
+static int32 getsingle (u_char *);
-#ifdef PALISADE_SENDCMD_RESURRECTED
static void sendcmd (struct packettx *buffer, int c);
-#endif
static void sendsupercmd (struct packettx *buffer, int c1, int c2);
static void sendbyte (struct packettx *buffer, int b);
static void sendint (struct packettx *buffer, int a);
--- contrib/ntp/ntpd/refclock_parse.c.orig
+++ contrib/ntp/ntpd/refclock_parse.c
@@ -3069,6 +3069,7 @@
parse->generic->fudgetime2 = 0.0;
parse->ppsphaseadjust = parse->generic->fudgetime2;
+ parse->generic->fudgeminjitter = 0.0;
parse->generic->clockdesc = parse->parse_type->cl_description;
@@ -3424,6 +3425,8 @@
#endif
}
}
+
+ parse->generic->fudgeminjitter = in->fudgeminjitter;
}
}
--- contrib/ntp/ntpd/refclock_zyfer.c.orig
+++ contrib/ntp/ntpd/refclock_zyfer.c
@@ -15,6 +15,7 @@
#include "ntp_refclock.h"
#include "ntp_stdlib.h"
#include "ntp_unixtime.h"
+#include "ntp_calgps.h"
#include <stdio.h>
#include <ctype.h>
@@ -211,6 +212,10 @@
int omode; /* Operation mode */
u_char *p;
+ TCivilDate tsdoy;
+ TNtpDatum tsntp;
+ l_fp tfrac;
+
peer = rbufp->recv_peer;
pp = peer->procptr;
up = pp->unitptr;
@@ -283,11 +288,23 @@
return;
}
- if (!refclock_process(pp)) {
- refclock_report(peer, CEVNT_BADTIME);
- return;
- }
+ /* treat GPS input as subject to era warps */
+ ZERO(tsdoy);
+ ZERO(tfrac);
+ tsdoy.year = pp->year;
+ tsdoy.yearday = pp->day;
+ tsdoy.hour = pp->hour;
+ tsdoy.minute = pp->minute;
+ tsdoy.second = pp->second;
+
+ /* note: We kept 'month' and 'monthday' zero above. That forces
+ * day-of-year based calculation now:
+ */
+ tsntp = gpsntp_from_calendar(&tsdoy, tfrac);
+ tfrac = ntpfp_from_ntpdatum(&tsntp);
+ refclock_process_offset(pp, tfrac, pp->lastrec, pp->fudgetime1);
+
/*
* Good place for record_clock_stats()
*/
--- contrib/ntp/ntpdate/ntpdate.c.orig
+++ contrib/ntp/ntpdate/ntpdate.c
@@ -339,7 +339,11 @@
if (!ipv6_works)
ai_fam_templ = AF_INET;
- errflg = 0;
+#ifdef HAVE_NETINFO
+ errflg = 0; /* servers can come from netinfo */
+#else
+ errflg = (argc < 2); /* need at least server on cmdline */
+#endif
progname = argv[0];
syslogit = 0;
@@ -1367,6 +1371,10 @@
#endif
error = getaddrinfo(serv, service, &hints, &addrResult);
+ if (error == EAI_SERVICE) {
+ strlcpy(service, "123", sizeof(service));
+ error = getaddrinfo(serv, service, &hints, &addrResult);
+ }
if (error != 0) {
/* Conduct more refined error analysis */
if (error == EAI_FAIL || error == EAI_AGAIN){
@@ -1703,7 +1711,12 @@
hints.ai_flags = AI_PASSIVE;
hints.ai_socktype = SOCK_DGRAM;
- if (getaddrinfo(NULL, service, &hints, &res) != 0) {
+ rc = getaddrinfo(NULL, service, &hints, &res);
+ if (rc == EAI_SERVICE) {
+ strlcpy(service, "123", sizeof(service));
+ rc = getaddrinfo(NULL, service, &hints, &res);
+ }
+ if (rc != 0) {
msyslog(LOG_ERR, "getaddrinfo() failed: %m");
exit(1);
/*NOTREACHED*/
@@ -1749,9 +1762,7 @@
/* Restricts AF_INET6 socket to IPv6 communications (see RFC 2553bis-03) */
if (res->ai_family == AF_INET6)
if (setsockopt(fd[nbsock], IPPROTO_IPV6, IPV6_V6ONLY, (void*) &optval, sizeof(optval)) < 0) {
- msyslog(LOG_ERR, "setsockopt() IPV6_V6ONLY failed: %m");
- exit(1);
- /*NOTREACHED*/
+ msyslog(LOG_ERR, "setsockopt() IPV6_V6ONLY failed: %m");
}
#endif
--- contrib/ntp/ntpdc/invoke-ntpdc.texi.orig
+++ contrib/ntp/ntpdc/invoke-ntpdc.texi
@@ -6,7 +6,7 @@
#
# EDIT THIS FILE WITH CAUTION (invoke-ntpdc.texi)
#
-# It has been AutoGen-ed February 20, 2019 at 09:56:51 AM by AutoGen 5.18.5
+# It has been AutoGen-ed March 3, 2020 at 05:41:11 PM by AutoGen 5.18.5
# From the definitions ntpdc-opts.def
# and the template file agtexi-cmd.tpl
@end ignore
@@ -76,7 +76,7 @@
@exampleindent 0
@example
-ntpdc - vendor-specific NTPD control program - Ver. 4.2.8p13
+ntpdc - vendor-specific NTPD control program - Ver. 4.2.8p14
Usage: ntpdc [ -<flag> [<val>] | --<name>[@{=| @}<val>] ]... [ host ...]
Flg Arg Option-Name Description
-4 no ipv4 Force IPv4 DNS name resolution
--- contrib/ntp/ntpdc/layout.std.orig
+++ contrib/ntp/ntpdc/layout.std
@@ -269,15 +269,17 @@
offsetof(addr6) = 24
offsetof(mask6) = 40
-sizeof(struct conf_restrict) = 52
+sizeof(struct conf_restrict) = 60
offsetof(addr) = 0
offsetof(mask) = 4
offsetof(ippeerlimit) = 8
-offsetof(flags) = 10
-offsetof(mflags) = 12
-offsetof(v6_flag) = 16
-offsetof(addr6) = 20
-offsetof(mask6) = 36
+offsetof(srvfuzrft) = 12
+offsetof(flags) = 16
+offsetof(mflags) = 18
+offsetof(unused1) = 20
+offsetof(v6_flag) = 24
+offsetof(addr6) = 28
+offsetof(mask6) = 44
sizeof(struct info_monitor_1) = 72
offsetof(avg_int) = 0
--- contrib/ntp/ntpdc/ntpdc-opts.c.orig
+++ contrib/ntp/ntpdc/ntpdc-opts.c
@@ -1,7 +1,7 @@
/*
* EDIT THIS FILE WITH CAUTION (ntpdc-opts.c)
*
- * It has been AutoGen-ed February 20, 2019 at 09:56:48 AM by AutoGen 5.18.5
+ * It has been AutoGen-ed March 3, 2020 at 05:41:07 PM by AutoGen 5.18.5
* From the definitions ntpdc-opts.def
* and the template file options
*
@@ -18,7 +18,7 @@
* The ntpdc program is copyrighted and licensed
* under the following terms:
*
- * Copyright (C) 1992-2017 The University of Delaware and Network Time Foundation, all rights reserved.
+ * Copyright (C) 1992-2020 The University of Delaware and Network Time Foundation, all rights reserved.
* This is free software. It is licensed for use, modification and
* redistribution under the terms of the NTP License, copies of which
* can be seen at:
@@ -69,8 +69,8 @@
* static const strings for ntpdc options
*/
static char const ntpdc_opt_strs[1914] =
-/* 0 */ "ntpdc 4.2.8p13\n"
- "Copyright (C) 1992-2017 The University of Delaware and Network Time Foundation, all rights reserved.\n"
+/* 0 */ "ntpdc 4.2.8p14\n"
+ "Copyright (C) 1992-2020 The University of Delaware and Network Time Foundation, all rights reserved.\n"
"This is free software. It is licensed for use, modification and\n"
"redistribution under the terms of the NTP License, copies of which\n"
"can be seen at:\n"
@@ -128,7 +128,7 @@
/* 1695 */ "no-load-opts\0"
/* 1708 */ "no\0"
/* 1711 */ "NTPDC\0"
-/* 1717 */ "ntpdc - vendor-specific NTPD control program - Ver. 4.2.8p13\n"
+/* 1717 */ "ntpdc - vendor-specific NTPD control program - Ver. 4.2.8p14\n"
"Usage: %s [ -<flag> [<val>] | --<name>[{=| }<val>] ]... [ host ...]\n\0"
/* 1848 */ "$HOME\0"
/* 1854 */ ".\0"
@@ -135,7 +135,7 @@
/* 1856 */ ".ntprc\0"
/* 1863 */ "http://bugs.ntp.org, bugs@ntp.org\0"
/* 1897 */ "\n\0"
-/* 1899 */ "ntpdc 4.2.8p13";
+/* 1899 */ "ntpdc 4.2.8p14";
/**
* ipv4 option description with
@@ -796,8 +796,8 @@
translate option names.
*/
/* referenced via ntpdcOptions.pzCopyright */
- puts(_("ntpdc 4.2.8p13\n\
-Copyright (C) 1992-2017 The University of Delaware and Network Time Foundation, all rights reserved.\n\
+ puts(_("ntpdc 4.2.8p14\n\
+Copyright (C) 1992-2020 The University of Delaware and Network Time Foundation, all rights reserved.\n\
This is free software. It is licensed for use, modification and\n\
redistribution under the terms of the NTP License, copies of which\n\
can be seen at:\n"));
@@ -862,7 +862,7 @@
puts(_("load options from a config file"));
/* referenced via ntpdcOptions.pzUsageTitle */
- puts(_("ntpdc - vendor-specific NTPD control program - Ver. 4.2.8p13\n\
+ puts(_("ntpdc - vendor-specific NTPD control program - Ver. 4.2.8p14\n\
Usage: %s [ -<flag> [<val>] | --<name>[{=| }<val>] ]... [ host ...]\n"));
/* referenced via ntpdcOptions.pzExplain */
@@ -869,7 +869,7 @@
puts(_("\n"));
/* referenced via ntpdcOptions.pzFullVersion */
- puts(_("ntpdc 4.2.8p13"));
+ puts(_("ntpdc 4.2.8p14"));
/* referenced via ntpdcOptions.pzFullUsage */
puts(_("<<<NOT-FOUND>>>"));
--- contrib/ntp/ntpdc/ntpdc-opts.h.orig
+++ contrib/ntp/ntpdc/ntpdc-opts.h
@@ -1,7 +1,7 @@
/*
* EDIT THIS FILE WITH CAUTION (ntpdc-opts.h)
*
- * It has been AutoGen-ed February 20, 2019 at 09:56:48 AM by AutoGen 5.18.5
+ * It has been AutoGen-ed March 3, 2020 at 05:41:07 PM by AutoGen 5.18.5
* From the definitions ntpdc-opts.def
* and the template file options
*
@@ -18,7 +18,7 @@
* The ntpdc program is copyrighted and licensed
* under the following terms:
*
- * Copyright (C) 1992-2017 The University of Delaware and Network Time Foundation, all rights reserved.
+ * Copyright (C) 1992-2020 The University of Delaware and Network Time Foundation, all rights reserved.
* This is free software. It is licensed for use, modification and
* redistribution under the terms of the NTP License, copies of which
* can be seen at:
@@ -83,9 +83,9 @@
/** count of all options for ntpdc */
#define OPTION_CT 15
/** ntpdc version */
-#define NTPDC_VERSION "4.2.8p13"
+#define NTPDC_VERSION "4.2.8p14"
/** Full ntpdc version text */
-#define NTPDC_FULL_VERSION "ntpdc 4.2.8p13"
+#define NTPDC_FULL_VERSION "ntpdc 4.2.8p14"
/**
* Interface defines for all options. Replace "n" with the UPPER_CASED
--- contrib/ntp/ntpdc/ntpdc.1ntpdcman.orig
+++ contrib/ntp/ntpdc/ntpdc.1ntpdcman
@@ -10,11 +10,11 @@
.ds B-Font B
.ds I-Font I
.ds R-Font R
-.TH ntpdc 1ntpdcman "20 Feb 2019" "4.2.8p13" "User Commands"
+.TH ntpdc 1ntpdcman "03 Mar 2020" "4.2.8p14" "User Commands"
.\"
.\" EDIT THIS FILE WITH CAUTION (in-mem file)
.\"
-.\" It has been AutoGen-ed February 20, 2019 at 09:56:53 AM by AutoGen 5.18.5
+.\" It has been AutoGen-ed March 3, 2020 at 05:41:12 PM by AutoGen 5.18.5
.\" From the definitions ntpdc-opts.def
.\" and the template file agman-cmd.tpl
.SH NAME
@@ -848,7 +848,7 @@
.SH AUTHORS
The formatting directives in this document came from FreeBSD.
.SH "COPYRIGHT"
-Copyright (C) 1992-2017 The University of Delaware and Network Time Foundation all rights reserved.
+Copyright (C) 1992-2020 The University of Delaware and Network Time Foundation all rights reserved.
This program is released under the terms of the NTP license, <http://ntp.org/license>.
.SH BUGS
The
--- contrib/ntp/ntpdc/ntpdc.1ntpdcmdoc.orig
+++ contrib/ntp/ntpdc/ntpdc.1ntpdcmdoc
@@ -1,9 +1,9 @@
-.Dd February 20 2019
+.Dd March 3 2020
.Dt NTPDC 1ntpdcmdoc User Commands
.Os
.\" EDIT THIS FILE WITH CAUTION (ntpdc-opts.mdoc)
.\"
-.\" It has been AutoGen-ed February 20, 2019 at 09:56:50 AM by AutoGen 5.18.5
+.\" It has been AutoGen-ed March 3, 2020 at 05:41:10 PM by AutoGen 5.18.5
.\" From the definitions ntpdc-opts.def
.\" and the template file agmdoc-cmd.tpl
.Sh NAME
@@ -787,7 +787,7 @@
.Sh AUTHORS
The formatting directives in this document came from FreeBSD.
.Sh "COPYRIGHT"
-Copyright (C) 1992\-2017 The University of Delaware and Network Time Foundation all rights reserved.
+Copyright (C) 1992\-2020 The University of Delaware and Network Time Foundation all rights reserved.
This program is released under the terms of the NTP license, <http://ntp.org/license>.
.Sh BUGS
The
--- contrib/ntp/ntpdc/ntpdc.c.orig
+++ contrib/ntp/ntpdc/ntpdc.c
@@ -176,8 +176,8 @@
static char currenthost[LENHOSTNAME]; /* current host name */
int showhostnames = 1; /* show host names by default */
-static int ai_fam_templ; /* address family */
-static int ai_fam_default; /* default address family */
+static int ai_fam_templ = AF_UNSPEC; /* address family */
+static int ai_fam_default = AF_UNSPEC; /* default address family */
static SOCKET sockfd; /* fd socket is opened on */
static int havehost = 0; /* set to 1 when host open */
int s_port = 0;
@@ -312,12 +312,12 @@
}
if (HAVE_OPT(IPV4))
- ai_fam_templ = AF_INET;
+ ai_fam_default = AF_INET;
else if (HAVE_OPT(IPV6))
- ai_fam_templ = AF_INET6;
- else
- ai_fam_templ = ai_fam_default;
+ ai_fam_default = AF_INET6;
+ ai_fam_templ = ai_fam_default;
+
if (HAVE_OPT(COMMAND)) {
int cmdct = STACKCT_OPT( COMMAND );
const char** cmds = STACKLST_OPT( COMMAND );
@@ -1382,18 +1382,14 @@
arg_v *argp
)
{
- int isneg;
- char *cp, *np;
- static const char *digits = "0123456789";
-
ZERO(*argp);
argp->string = str;
argp->type = code & ~OPT;
switch (argp->type) {
- case NTP_STR:
+ case NTP_STR:
break;
- case NTP_ADD:
+ case NTP_ADD:
if (!strcmp("-6", str)) {
ai_fam_templ = AF_INET6;
return -1;
@@ -1401,41 +1397,25 @@
ai_fam_templ = AF_INET;
return -1;
}
- if (!getnetnum(str, &(argp->netnum), (char *)0, 0)) {
+ if (!getnetnum(str, &(argp->netnum), (char *)0, ai_fam_templ)) {
return 0;
}
break;
- case NTP_INT:
- case NTP_UINT:
- isneg = 0;
- np = str;
- if (*np == '-') {
- np++;
- isneg = 1;
+ case NTP_UINT:
+ if (!atouint(str, &argp->uval)) {
+ fprintf(stderr, "***Illegal unsigned value %s\n",
+ str);
+ return 0;
}
-
- argp->uval = 0;
- do {
- cp = strchr(digits, *np);
- if (cp == NULL) {
- (void) fprintf(stderr,
- "***Illegal integer value %s\n", str);
- return 0;
- }
- argp->uval *= 10;
- argp->uval += (u_long)(cp - digits);
- } while (*(++np) != '\0');
-
- if (isneg) {
- if ((code & ~OPT) == NTP_UINT) {
- (void) fprintf(stderr,
- "***Value %s should be unsigned\n", str);
- return 0;
- }
- argp->ival = -argp->ival;
+ break;
+ case NTP_INT:
+ if (!atoint(str, &argp->ival)) {
+ fprintf(stderr, "***Illegal integer value %s\n",
+ str);
+ return 0;
}
break;
- case IP_VERSION:
+ case IP_VERSION:
if (!strcmp("-6", str))
argp->ival = 6 ;
else if (!strcmp("-4", str))
@@ -1467,6 +1447,7 @@
struct addrinfo hints, *ai = NULL;
ZERO(hints);
+ hints.ai_family = af;
hints.ai_flags = AI_CANONNAME;
#ifdef AI_ADDRCONFIG
hints.ai_flags |= AI_ADDRCONFIG;
@@ -1668,7 +1649,7 @@
} else {
if (pcmd->argval[0].ival < 0) {
isneg = 1;
- val = (u_long)(-pcmd->argval[0].ival);
+ val = ~(u_long)(pcmd->argval[0].ival) + 1UL;
} else {
isneg = 0;
val = (u_long)pcmd->argval[0].ival;
--- contrib/ntp/ntpdc/ntpdc.html.orig
+++ contrib/ntp/ntpdc/ntpdc.html
@@ -64,7 +64,7 @@
clock. Run as root, it can correct the system clock to this offset as
well. It can be run as an interactive command or from a cron job.
</p>
-<p>This document applies to version 4.2.8p13 of <code>ntpdc</code>.
+<p>This document applies to version 4.2.8p14 of <code>ntpdc</code>.
</p>
<p>The program implements the SNTP protocol as defined by RFC 5905, the NTPv4
IETF specification.
@@ -214,7 +214,7 @@
with a status code of 0.
</p>
<div class="example">
-<pre class="example">ntpdc - vendor-specific NTPD control program - Ver. 4.2.8p13
+<pre class="example">ntpdc - vendor-specific NTPD control program - Ver. 4.2.8p14
Usage: ntpdc [ -<flag> [<val>] | --<name>[{=| }<val>] ]... [ host ...]
Flg Arg Option-Name Description
-4 no ipv4 Force IPv4 DNS name resolution
--- contrib/ntp/ntpdc/ntpdc.man.in.orig
+++ contrib/ntp/ntpdc/ntpdc.man.in
@@ -10,11 +10,11 @@
.ds B-Font B
.ds I-Font I
.ds R-Font R
-.TH ntpdc @NTPDC_MS@ "20 Feb 2019" "4.2.8p13" "User Commands"
+.TH ntpdc @NTPDC_MS@ "03 Mar 2020" "4.2.8p14" "User Commands"
.\"
.\" EDIT THIS FILE WITH CAUTION (in-mem file)
.\"
-.\" It has been AutoGen-ed February 20, 2019 at 09:56:53 AM by AutoGen 5.18.5
+.\" It has been AutoGen-ed March 3, 2020 at 05:41:12 PM by AutoGen 5.18.5
.\" From the definitions ntpdc-opts.def
.\" and the template file agman-cmd.tpl
.SH NAME
@@ -848,7 +848,7 @@
.SH AUTHORS
The formatting directives in this document came from FreeBSD.
.SH "COPYRIGHT"
-Copyright (C) 1992-2017 The University of Delaware and Network Time Foundation all rights reserved.
+Copyright (C) 1992-2020 The University of Delaware and Network Time Foundation all rights reserved.
This program is released under the terms of the NTP license, <http://ntp.org/license>.
.SH BUGS
The
--- contrib/ntp/ntpdc/ntpdc.mdoc.in.orig
+++ contrib/ntp/ntpdc/ntpdc.mdoc.in
@@ -1,9 +1,9 @@
-.Dd February 20 2019
+.Dd March 3 2020
.Dt NTPDC @NTPDC_MS@ User Commands
.Os
.\" EDIT THIS FILE WITH CAUTION (ntpdc-opts.mdoc)
.\"
-.\" It has been AutoGen-ed February 20, 2019 at 09:56:50 AM by AutoGen 5.18.5
+.\" It has been AutoGen-ed March 3, 2020 at 05:41:10 PM by AutoGen 5.18.5
.\" From the definitions ntpdc-opts.def
.\" and the template file agmdoc-cmd.tpl
.Sh NAME
@@ -787,7 +787,7 @@
.Sh AUTHORS
The formatting directives in this document came from FreeBSD.
.Sh "COPYRIGHT"
-Copyright (C) 1992\-2017 The University of Delaware and Network Time Foundation all rights reserved.
+Copyright (C) 1992\-2020 The University of Delaware and Network Time Foundation all rights reserved.
This program is released under the terms of the NTP license, <http://ntp.org/license>.
.Sh BUGS
The
--- contrib/ntp/ntpdc/ntpdc_ops.c.orig
+++ contrib/ntp/ntpdc/ntpdc_ops.c
@@ -40,7 +40,7 @@
*/
static void peerlist (struct parse *, FILE *);
static void peers (struct parse *, FILE *);
-static void doconfig (struct parse *pcmd, FILE *fp, int mode, int refc);
+static void doconfig (struct parse *pcmd, FILE *fp, int mode, int refc);
static void dmpeers (struct parse *, FILE *);
static void dopeers (struct parse *, FILE *, int);
static void printpeer (struct info_peer *, FILE *);
@@ -260,7 +260,7 @@
/*
- * SET_ADDRS - setup source and destination addresses for
+ * SET_ADDRS - setup source and destination addresses for
* v4/v6 as needed
*/
#define SET_ADDRS(a1, a2, info, a1prefix, a2prefix) \
@@ -359,9 +359,9 @@
again:
res = doquery(impl_ver, REQ_PEER_LIST, 0, 0, 0, (char *)NULL, &items,
- &itemsize, (void *)&plist, 0,
+ &itemsize, (void *)&plist, 0,
sizeof(struct info_peer_list));
-
+
if (res == INFO_ERR_IMPL && impl_ver == IMPL_XNTPD) {
impl_ver = IMPL_XNTPD_OLD;
goto again;
@@ -382,9 +382,16 @@
if ((pcmd->nargs == 0) ||
((pcmd->argval->ival == 6) && (plist->v6_flag != 0)) ||
((pcmd->argval->ival == 4) && (plist->v6_flag == 0)))
- (void) fprintf(fp, "%-9s %s\n",
- modetoa(plist->hmode),
- nntohost(&paddr));
+ {
+ const char *strhost = nntohost(&paddr);
+ const char *straddr = stoa(&paddr);
+ (void) fprintf(fp, "%-12s %s",
+ modetoa(plist->hmode), strhost);
+ if (strcmp(strhost,straddr))
+ (void) fprintf(fp, " (%s)\n", straddr);
+ else
+ (void) fprintf(fp, "\n");
+ }
plist++;
items--;
}
@@ -439,9 +446,9 @@
again:
res = doquery(impl_ver, REQ_PEER_LIST_SUM, 0, 0, 0, (char *)NULL,
- &items, &itemsize, (void *)&plist, 0,
+ &items, &itemsize, (void *)&plist, 0,
sizeof(struct info_peer_summary));
-
+
if (res == INFO_ERR_IMPL && impl_ver == IMPL_XNTPD) {
impl_ver = IMPL_XNTPD_OLD;
goto again;
@@ -588,22 +595,24 @@
register int i;
l_fp tempts;
sockaddr_u srcadr, dstadr;
-
+
SET_ADDRS(dstadr, srcadr, pp, dstadr, srcadr);
-
+
(void) fprintf(fp, "remote %s, local %s\n",
stoa(&srcadr), stoa(&dstadr));
(void) fprintf(fp, "hmode %s, pmode %s, stratum %d, precision %d\n",
modetoa(pp->hmode), modetoa(pp->pmode),
pp->stratum, pp->precision);
-
+
(void) fprintf(fp,
"leap %c%c, refid [%s], rootdistance %s, rootdispersion %s\n",
pp->leap & 0x2 ? '1' : '0',
pp->leap & 0x1 ? '1' : '0',
- refid_string(pp->refid, pp->stratum), fptoa(NTOHS_FP(pp->rootdelay), 5),
+ refid_string(pp->refid,
+ (pp->flags & INFO_FLAG_REFCLOCK ? 0 : pp->stratum)),
+ fptoa(NTOHS_FP(pp->rootdelay), 5),
ufptoa(NTOHS_FP(pp->rootdispersion), 5));
-
+
(void) fprintf(fp,
"ppoll %d, hpoll %d, keyid %lu, version %d, association %u\n",
pp->ppoll, pp->hpoll, (u_long)pp->keyid, pp->version, ntohs(pp->associd));
@@ -614,9 +623,9 @@
(void) fprintf(fp, "boffset %s, ttl/mode %d\n",
fptoa(NTOHS_FP(pp->estbdelay), 5), pp->ttl);
-
+
(void) fprintf(fp, "timer %lds, flags", (long)ntohl(pp->timer));
- print_pflag(fp, pp->flags);
+ print_pflag(fp, pp->flags);
NTOHL_FP(&pp->reftime, &tempts);
(void) fprintf(fp, "reference time: %s\n",
@@ -630,7 +639,7 @@
NTOHL_FP(&pp->xmt, &tempts);
(void) fprintf(fp, "transmit timestamp: %s\n",
prettydate(&tempts));
-
+
(void) fprintf(fp, "filter delay: ");
for (i = 0; i < NTP_SHIFT; i++) {
(void) fprintf(fp, " %-8.8s",
@@ -656,8 +665,8 @@
(void) fprintf(fp, "\n ");
}
(void) fprintf(fp, "\n");
-
+
NTOHL_FP(&pp->offset, &tempts);
(void) fprintf(fp,
"offset %s, delay %s, error bound %s, filter error %s\n",
@@ -715,7 +724,7 @@
res = doquery(impl_ver, REQ_PEER_INFO, 0, qitems,
sendsize, (char *)plist, &items,
&itemsize, (void *)&pp, 0, sizeof(struct info_peer));
-
+
if (res == INFO_ERR_IMPL && impl_ver == IMPL_XNTPD) {
impl_ver = IMPL_XNTPD_OLD;
goto again;
@@ -790,9 +799,9 @@
res = doquery(impl_ver, REQ_PEER_STATS, 0, qitems,
sendsize, (char *)plist, &items,
- &itemsize, (void *)&pp, 0,
+ &itemsize, (void *)&pp, 0,
sizeof(struct info_peer_stats));
-
+
if (res == INFO_ERR_IMPL && impl_ver == IMPL_XNTPD) {
impl_ver = IMPL_XNTPD_OLD;
goto again;
@@ -890,9 +899,9 @@
again:
res = doquery(impl_ver, REQ_LOOP_INFO, 0, 0, 0, (char *)NULL,
- &items, &itemsize, (void *)&il, 0,
+ &items, &itemsize, (void *)&il, 0,
sizeof(struct info_loop));
-
+
if (res == INFO_ERR_IMPL && impl_ver == IMPL_XNTPD) {
impl_ver = IMPL_XNTPD_OLD;
goto again;
@@ -955,7 +964,7 @@
res = doquery(impl_ver, REQ_SYS_INFO, 0, 0, 0, (char *)NULL,
&items, &itemsize, (void *)&is, 0,
sizeof(struct info_sys));
-
+
if (res == INFO_ERR_IMPL && impl_ver == IMPL_XNTPD) {
impl_ver = IMPL_XNTPD_OLD;
goto again;
@@ -1041,9 +1050,9 @@
again:
res = doquery(impl_ver, REQ_SYS_STATS, 0, 0, 0, (char *)NULL,
- &items, &itemsize, (void *)&ss, 0,
+ &items, &itemsize, (void *)&ss, 0,
sizeof(struct info_sys_stats));
-
+
if (res == INFO_ERR_IMPL && impl_ver == IMPL_XNTPD) {
impl_ver = IMPL_XNTPD_OLD;
goto again;
@@ -1083,7 +1092,7 @@
(u_long)ntohl(ss->badauth));
if (itemsize != sizeof(struct info_sys_stats))
return;
-
+
fprintf(fp, "rate exceeded: %lu\n",
(u_long)ntohl(ss->limitrejected));
}
@@ -1108,7 +1117,7 @@
again:
res = doquery(impl_ver, REQ_IO_STATS, 0, 0, 0, NULL, &items,
&itemsize, (void *)&io, 0, sizeof(*io));
-
+
if (res == INFO_ERR_IMPL && impl_ver == IMPL_XNTPD) {
impl_ver = IMPL_XNTPD_OLD;
goto again;
@@ -1169,7 +1178,7 @@
again:
res = doquery(impl_ver, REQ_MEM_STATS, 0, 0, 0, NULL, &items,
&itemsize, (void *)&mem, 0, sizeof(*mem));
-
+
if (res == INFO_ERR_IMPL && impl_ver == IMPL_XNTPD) {
impl_ver = IMPL_XNTPD_OLD;
goto again;
@@ -1226,7 +1235,7 @@
again:
res = doquery(impl_ver, REQ_TIMER_STATS, 0, 0, 0, NULL, &items,
&itemsize, (void *)&tim, 0, sizeof(*tim));
-
+
if (res == INFO_ERR_IMPL && impl_ver == IMPL_XNTPD) {
impl_ver = IMPL_XNTPD_OLD;
goto again;
@@ -1412,13 +1421,13 @@
version);
res = TRUE;
}
- if (minpoll < NTP_MINPOLL || minpoll > NTP_MAXPOLL ||
- maxpoll < NTP_MINPOLL || maxpoll > NTP_MAXPOLL ||
+ if (minpoll < NTP_MINPOLL || minpoll > NTP_MAXPOLL ||
+ maxpoll < NTP_MINPOLL || maxpoll > NTP_MAXPOLL ||
minpoll > maxpoll) {
fprintf(fp, "***min/max-poll must be within %d..%d\n",
NTP_MINPOLL, NTP_MAXPOLL);
res = TRUE;
- }
+ }
if (res)
return;
@@ -1449,7 +1458,7 @@
res = doquery(impl_ver, REQ_CONFIG, 1, 1,
sendsize, (char *)&cpeer, &items,
&itemsize, &dummy, 0, sizeof(struct conf_peer));
-
+
if (res == INFO_ERR_IMPL && impl_ver == IMPL_XNTPD) {
impl_ver = IMPL_XNTPD_OLD;
goto again;
@@ -1516,7 +1525,7 @@
res = doquery(impl_ver, REQ_UNCONFIG, 1, qitems,
sendsize, (char *)plist, &items,
&itemsize, &dummy, 0, sizeof(struct conf_unpeer));
-
+
if (res == INFO_ERR_IMPL && impl_ver == IMPL_XNTPD) {
impl_ver = IMPL_XNTPD_OLD;
goto again;
@@ -1603,7 +1612,7 @@
res = doquery(impl_ver, req, 1, 1,
sizeof(struct conf_sys_flags), (char *)&sys, &items,
&itemsize, &dummy, 0, sizeof(struct conf_sys_flags));
-
+
if (res == INFO_ERR_IMPL && impl_ver == IMPL_XNTPD) {
impl_ver = IMPL_XNTPD_OLD;
goto again;
@@ -1690,9 +1699,9 @@
again:
res = doquery(impl_ver, REQ_GET_RESTRICT, 0, 0, 0, (char *)NULL,
- &items, &itemsize, (void *)&rl, 0,
+ &items, &itemsize, (void *)&rl, 0,
sizeof(struct info_restrict));
-
+
if (res == INFO_ERR_IMPL && impl_ver == IMPL_XNTPD) {
impl_ver = IMPL_XNTPD_OLD;
goto again;
@@ -1924,7 +1933,7 @@
res = doquery(impl_ver, req_code, 1, 1, sendsize, (char *)&cres,
&items, &itemsize, &dummy, 0, sizeof(cres));
-
+
if (res == INFO_ERR_IMPL && impl_ver == IMPL_XNTPD) {
impl_ver = IMPL_XNTPD_OLD;
goto again;
@@ -1965,7 +1974,7 @@
(version == 1 || version == -1) ? REQ_MON_GETLIST_1 :
REQ_MON_GETLIST, 0, 0, 0, NULL,
&items, &itemsize, &struct_star,
- (version < 0) ? (1 << INFO_ERR_REQ) : 0,
+ (version < 0) ? (1 << INFO_ERR_REQ) : 0,
sizeof(struct info_monitor_1));
if (res == INFO_ERR_IMPL && impl_ver == IMPL_XNTPD) {
@@ -1973,11 +1982,11 @@
goto again;
}
- if (res == INFO_ERR_REQ && version < 0)
+ if (res == INFO_ERR_REQ && version < 0)
res = doquery(impl_ver, REQ_MON_GETLIST, 0, 0, 0, NULL,
&items, &itemsize, &struct_star, 0,
sizeof(struct info_monitor));
-
+
if (res != 0)
return;
@@ -1997,9 +2006,9 @@
if ((pcmd->nargs == 0) ||
((pcmd->argval->ival == 6) && (m1->v6_flag != 0)) ||
((pcmd->argval->ival == 4) && (m1->v6_flag == 0)))
- fprintf(fp,
+ fprintf(fp,
"%-22.22s %5d %-15s %8lu %1u %1u %6lx %6lu %7lu\n",
- nntohost(&addr),
+ nntohost(&addr),
ntohs(m1->port),
stoa(&dstadr),
(u_long)ntohl(m1->count),
@@ -2124,7 +2133,7 @@
res = doquery(impl_ver, REQ_RESET_STATS, 1, 1,
sizeof(struct reset_flags), (char *)&rflags, &items,
&itemsize, &dummy, 0, sizeof(struct reset_flags));
-
+
if (res == INFO_ERR_IMPL && impl_ver == IMPL_XNTPD) {
impl_ver = IMPL_XNTPD_OLD;
goto again;
@@ -2184,7 +2193,7 @@
res = doquery(impl_ver, REQ_RESET_PEER, 1, qitems,
sendsize, (char *)plist, &items,
&itemsize, &dummy, 0, sizeof(struct conf_unpeer));
-
+
if (res == INFO_ERR_IMPL && impl_ver == IMPL_XNTPD) {
impl_ver = IMPL_XNTPD_OLD;
goto again;
@@ -2213,7 +2222,7 @@
again:
res = doquery(impl_ver, REQ_REREAD_KEYS, 1, 0, 0, (char *)0,
&items, &itemsize, &dummy, 0, sizeof(dummy));
-
+
if (res == INFO_ERR_IMPL && impl_ver == IMPL_XNTPD) {
impl_ver = IMPL_XNTPD_OLD;
goto again;
@@ -2276,9 +2285,9 @@
again:
res = doquery(impl_ver, req, 1, ritems, sizeof(u_long),
- (char *)keyids, &items, &itemsize, &dummy, 0,
+ (char *)keyids, &items, &itemsize, &dummy, 0,
sizeof(dummy));
-
+
if (res == INFO_ERR_IMPL && impl_ver == IMPL_XNTPD) {
impl_ver = IMPL_XNTPD_OLD;
goto again;
@@ -2309,7 +2318,7 @@
again:
res = doquery(impl_ver, REQ_AUTHINFO, 0, 0, 0, NULL, &items,
&itemsize, (void *)&ia, 0, sizeof(*ia));
-
+
if (res == INFO_ERR_IMPL && impl_ver == IMPL_XNTPD) {
impl_ver = IMPL_XNTPD_OLD;
goto again;
@@ -2366,7 +2375,7 @@
again:
res = doquery(impl_ver, REQ_TRAPS, 0, 0, 0, NULL, &items,
&itemsize, (void *)&it, 0, sizeof(*it));
-
+
if (res == INFO_ERR_IMPL && impl_ver == IMPL_XNTPD) {
impl_ver = IMPL_XNTPD_OLD;
goto again;
@@ -2399,7 +2408,7 @@
fprintf(fp, "low priority\n");
else
fprintf(fp, "normal priority\n");
-
+
fprintf(fp, "set for %ld secs, last set %ld secs ago\n",
(long)ntohl(it->origtime),
(long)ntohl(it->settime));
@@ -2492,9 +2501,9 @@
}
res = doquery(impl_ver, req, 1, 1, sendsize,
- (char *)&ctrap, &items, &itemsize, &dummy, 0,
+ (char *)&ctrap, &items, &itemsize, &dummy, 0,
sizeof(struct conf_trap));
-
+
if (res == INFO_ERR_IMPL && impl_ver == IMPL_XNTPD) {
impl_ver = IMPL_XNTPD_OLD;
goto again;
@@ -2555,9 +2564,9 @@
again:
res = doquery(impl_ver, req, 1, 1, sizeof(u_int32),
- (char *)&key, &items, &itemsize, &dummy, 0,
+ (char *)&key, &items, &itemsize, &dummy, 0,
sizeof(dummy));
-
+
if (res == INFO_ERR_IMPL && impl_ver == IMPL_XNTPD) {
impl_ver = IMPL_XNTPD_OLD;
goto again;
@@ -2588,7 +2597,7 @@
again:
res = doquery(impl_ver, REQ_GET_CTLSTATS, 0, 0, 0, NULL, &items,
&itemsize, (void *)&ic, 0, sizeof(*ic));
-
+
if (res == INFO_ERR_IMPL && impl_ver == IMPL_XNTPD) {
impl_ver = IMPL_XNTPD_OLD;
goto again;
@@ -2664,7 +2673,7 @@
res = doquery(impl_ver, REQ_GET_CLOCKINFO, 0, qitems,
sizeof(u_int32), (char *)clist, &items,
&itemsize, (void *)&cl, 0, sizeof(struct info_clock));
-
+
if (res == INFO_ERR_IMPL && impl_ver == IMPL_XNTPD) {
impl_ver = IMPL_XNTPD_OLD;
goto again;
@@ -2847,7 +2856,7 @@
res = doquery(impl_ver, REQ_GET_CLKBUGINFO, 0, qitems,
sizeof(u_int32), (char *)clist, &items,
&itemsize, (void *)&cl, 0, sizeof(struct info_clkbug));
-
+
if (res == INFO_ERR_IMPL && impl_ver == IMPL_XNTPD) {
impl_ver = IMPL_XNTPD_OLD;
goto again;
@@ -2933,7 +2942,7 @@
again:
res = doquery(impl_ver, REQ_GET_KERNEL, 0, 0, 0, (char *)NULL,
- &items, &itemsize, (void *)&ik, 0,
+ &items, &itemsize, (void *)&ik, 0,
sizeof(struct info_kernel));
if (res == INFO_ERR_IMPL && impl_ver == IMPL_XNTPD) {
@@ -3078,9 +3087,9 @@
fprintf(fp, IF_LIST_FMT_STR, IF_LIST_LABELS);
fprintf(fp, IF_LIST_LINE);
-
+
while (items > 0) {
- SET_ADDR(saddr, ntohl(ifs->v6_flag),
+ SET_ADDR(saddr, ntohl(ifs->v6_flag),
ifs->unaddr.addr.s_addr, ifs->unaddr.addr6);
fprintf(fp, IF_LIST_FMT,
ntohl(ifs->ifnum),
@@ -3098,12 +3107,12 @@
(u_long)ntohl(ifs->peercnt),
(u_long)ntohl(ifs->uptime));
- SET_ADDR(saddr, ntohl(ifs->v6_flag),
+ SET_ADDR(saddr, ntohl(ifs->v6_flag),
ifs->unmask.addr.s_addr, ifs->unmask.addr6);
fprintf(fp, IF_LIST_AFMT_STR, stoa(&saddr), 'M');
if (!ntohl(ifs->v6_flag) && ntohl(ifs->flags) & (INT_BCASTOPEN)) {
- SET_ADDR(saddr, ntohl(ifs->v6_flag),
+ SET_ADDR(saddr, ntohl(ifs->v6_flag),
ifs->unbcast.addr.s_addr, ifs->unbcast.addr6);
fprintf(fp, IF_LIST_AFMT_STR, stoa(&saddr), 'B');
@@ -3127,7 +3136,7 @@
int res;
res = doquery(impl_ver, REQ_IF_STATS, 1, 0, 0, (char *)NULL, &items,
- &itemsize, (void *)&ifs, 0,
+ &itemsize, (void *)&ifs, 0,
sizeof(struct info_if_stats));
iflist(fp, ifs, items, itemsize, res);
}
@@ -3145,7 +3154,7 @@
int res;
res = doquery(impl_ver, REQ_IF_RELOAD, 1, 0, 0, (char *)NULL, &items,
- &itemsize, (void *)&ifs, 0,
+ &itemsize, (void *)&ifs, 0,
sizeof(struct info_if_stats));
iflist(fp, ifs, items, itemsize, res);
}
--- contrib/ntp/ntpq/Makefile.am.orig
+++ contrib/ntp/ntpq/Makefile.am
@@ -22,16 +22,18 @@
ntpq_LDADD += $(PTHREAD_LIBS) $(EDITLINE_LIBS)
ntpq_LDADD += $(LDADD_NTP)
ntpq_LDADD += $(NTP_HARD_LDFLAGS)
-noinst_HEADERS= ntpq.h
-noinst_LIBRARIES= libntpq.a
-libntpq_a_CFLAGS= $(AM_CFLAGS)
-libntpq_a_CFLAGS+= -DNO_MAIN_ALLOWED -DBUILD_AS_LIB
-libntpq_a_CPPFLAGS= $(AM_CPPFLAGS)
-libntpq_a_LDFLAGS= $(AM_LDFLAGS)
-CLEANFILES=
-DISTCLEANFILES= .version version.c config.log $(man_MANS)
-ETAGS_ARGS= Makefile.am
-EXTRA_DIST= \
+
+noinst_HEADERS = ntpq.h
+
+noinst_LIBRARIES = libntpq.a
+libntpq_a_CFLAGS = $(AM_CFLAGS)
+libntpq_a_CFLAGS += -DNO_MAIN_ALLOWED -DBUILD_AS_LIB
+libntpq_a_CPPFLAGS = $(AM_CPPFLAGS)
+
+CLEANFILES =
+DISTCLEANFILES = .version version.c config.log $(man_MANS)
+ETAGS_ARGS = Makefile.am
+EXTRA_DIST = \
invoke-ntpq.menu \
invoke-ntpq.texi \
ntpq-opts.def \
@@ -78,7 +80,7 @@
$(srcdir)/ntpq-opts.h: $(srcdir)/ntpq-opts.c
@: do-nothing action to avoid default SCCS get, .h built with .c
-
+
$(srcdir)/ntpq-opts.c: $(srcdir)/ntpq-opts.def $(std_def_list)
$(run_ag) ntpq-opts.def
@@ -110,7 +112,7 @@
$(srcdir)/invoke-ntpq.menu: $(srcdir)/invoke-ntpq.texi
@: do-nothing action to avoid default SCCS get, .menu built with .texi
-
+
$(srcdir)/invoke-ntpq.texi: $(srcdir)/ntpq-opts.def $(std_def_list)
$(run_ag) -Tagtexi-cmd.tpl -DLEVEL=section ntpq-opts.def
$(top_srcdir)/scripts/build/check--help $@
@@ -127,7 +129,7 @@
version.c: $(ntpq_OBJECTS) ../libntp/libntp.a Makefile $(top_srcdir)/sntp/scm-rev
env CSET=`cat $(top_srcdir)/sntp/scm-rev` $(top_builddir)/scripts/build/mkver ntpq
-
+
version.o: version.c
env CCACHE_DISABLE=1 $(COMPILE) -c version.c -o version.o
--- contrib/ntp/ntpq/Makefile.in.orig
+++ contrib/ntp/ntpq/Makefile.in
@@ -553,7 +553,6 @@
noinst_LIBRARIES = libntpq.a
libntpq_a_CFLAGS = $(AM_CFLAGS) -DNO_MAIN_ALLOWED -DBUILD_AS_LIB
libntpq_a_CPPFLAGS = $(AM_CPPFLAGS)
-libntpq_a_LDFLAGS = $(AM_LDFLAGS)
CLEANFILES = check-libopts check-libntp .deps-ver
DISTCLEANFILES = .version version.c config.log $(man_MANS)
ETAGS_ARGS = Makefile.am
--- contrib/ntp/ntpq/invoke-ntpq.texi.orig
+++ contrib/ntp/ntpq/invoke-ntpq.texi
@@ -6,7 +6,7 @@
#
# EDIT THIS FILE WITH CAUTION (invoke-ntpq.texi)
#
-# It has been AutoGen-ed February 20, 2019 at 09:57:01 AM by AutoGen 5.18.5
+# It has been AutoGen-ed March 3, 2020 at 05:41:21 PM by AutoGen 5.18.5
# From the definitions ntpq-opts.def
# and the template file agtexi-cmd.tpl
@end ignore
@@ -944,7 +944,7 @@
@exampleindent 0
@example
-ntpq - standard NTP query program - Ver. 4.2.8p13
+ntpq - standard NTP query program - Ver. 4.2.8p14
Usage: ntpq [ -<flag> [<val>] | --<name>[@{=| @}<val>] ]... [ host ...]
Flg Arg Option-Name Description
-4 no ipv4 Force IPv4 name resolution
--- contrib/ntp/ntpq/ntpq-opts.c.orig
+++ contrib/ntp/ntpq/ntpq-opts.c
@@ -1,7 +1,7 @@
/*
* EDIT THIS FILE WITH CAUTION (ntpq-opts.c)
*
- * It has been AutoGen-ed February 20, 2019 at 09:56:54 AM by AutoGen 5.18.5
+ * It has been AutoGen-ed March 3, 2020 at 05:41:14 PM by AutoGen 5.18.5
* From the definitions ntpq-opts.def
* and the template file options
*
@@ -18,7 +18,7 @@
* The ntpq program is copyrighted and licensed
* under the following terms:
*
- * Copyright (C) 1992-2017 The University of Delaware and Network Time Foundation, all rights reserved.
+ * Copyright (C) 1992-2020 The University of Delaware and Network Time Foundation, all rights reserved.
* This is free software. It is licensed for use, modification and
* redistribution under the terms of the NTP License, copies of which
* can be seen at:
@@ -69,8 +69,8 @@
* static const strings for ntpq options
*/
static char const ntpq_opt_strs[1977] =
-/* 0 */ "ntpq 4.2.8p13\n"
- "Copyright (C) 1992-2017 The University of Delaware and Network Time Foundation, all rights reserved.\n"
+/* 0 */ "ntpq 4.2.8p14\n"
+ "Copyright (C) 1992-2020 The University of Delaware and Network Time Foundation, all rights reserved.\n"
"This is free software. It is licensed for use, modification and\n"
"redistribution under the terms of the NTP License, copies of which\n"
"can be seen at:\n"
@@ -132,13 +132,13 @@
/* 1768 */ "no-load-opts\0"
/* 1781 */ "no\0"
/* 1784 */ "NTPQ\0"
-/* 1789 */ "ntpq - standard NTP query program - Ver. 4.2.8p13\n"
+/* 1789 */ "ntpq - standard NTP query program - Ver. 4.2.8p14\n"
"Usage: %s [ -<flag> [<val>] | --<name>[{=| }<val>] ]... [ host ...]\n\0"
/* 1909 */ "$HOME\0"
/* 1915 */ ".\0"
/* 1917 */ ".ntprc\0"
/* 1924 */ "http://bugs.ntp.org, bugs@ntp.org\0"
-/* 1958 */ "ntpq 4.2.8p13\0"
+/* 1958 */ "ntpq 4.2.8p14\0"
/* 1972 */ "hash";
/**
@@ -841,8 +841,8 @@
translate option names.
*/
/* referenced via ntpqOptions.pzCopyright */
- puts(_("ntpq 4.2.8p13\n\
-Copyright (C) 1992-2017 The University of Delaware and Network Time Foundation, all rights reserved.\n\
+ puts(_("ntpq 4.2.8p14\n\
+Copyright (C) 1992-2020 The University of Delaware and Network Time Foundation, all rights reserved.\n\
This is free software. It is licensed for use, modification and\n\
redistribution under the terms of the NTP License, copies of which\n\
can be seen at:\n"));
@@ -910,11 +910,11 @@
puts(_("load options from a config file"));
/* referenced via ntpqOptions.pzUsageTitle */
- puts(_("ntpq - standard NTP query program - Ver. 4.2.8p13\n\
+ puts(_("ntpq - standard NTP query program - Ver. 4.2.8p14\n\
Usage: %s [ -<flag> [<val>] | --<name>[{=| }<val>] ]... [ host ...]\n"));
/* referenced via ntpqOptions.pzFullVersion */
- puts(_("ntpq 4.2.8p13"));
+ puts(_("ntpq 4.2.8p14"));
/* referenced via ntpqOptions.pzFullUsage */
puts(_("<<<NOT-FOUND>>>"));
--- contrib/ntp/ntpq/ntpq-opts.h.orig
+++ contrib/ntp/ntpq/ntpq-opts.h
@@ -1,7 +1,7 @@
/*
* EDIT THIS FILE WITH CAUTION (ntpq-opts.h)
*
- * It has been AutoGen-ed February 20, 2019 at 09:56:54 AM by AutoGen 5.18.5
+ * It has been AutoGen-ed March 3, 2020 at 05:41:14 PM by AutoGen 5.18.5
* From the definitions ntpq-opts.def
* and the template file options
*
@@ -18,7 +18,7 @@
* The ntpq program is copyrighted and licensed
* under the following terms:
*
- * Copyright (C) 1992-2017 The University of Delaware and Network Time Foundation, all rights reserved.
+ * Copyright (C) 1992-2020 The University of Delaware and Network Time Foundation, all rights reserved.
* This is free software. It is licensed for use, modification and
* redistribution under the terms of the NTP License, copies of which
* can be seen at:
@@ -84,9 +84,9 @@
/** count of all options for ntpq */
#define OPTION_CT 16
/** ntpq version */
-#define NTPQ_VERSION "4.2.8p13"
+#define NTPQ_VERSION "4.2.8p14"
/** Full ntpq version text */
-#define NTPQ_FULL_VERSION "ntpq 4.2.8p13"
+#define NTPQ_FULL_VERSION "ntpq 4.2.8p14"
/**
* Interface defines for all options. Replace "n" with the UPPER_CASED
--- contrib/ntp/ntpq/ntpq-subs.c.orig
+++ contrib/ntp/ntpq/ntpq-subs.c
@@ -84,7 +84,7 @@
*/
struct xcmd opcmds[] = {
{ "saveconfig", saveconfig, { NTP_STR, NO, NO, NO },
- { "filename", "", "", ""},
+ { "filename", "", "", ""},
"save ntpd configuration to file, . for current config file"},
{ "associations", associations, { NO, NO, NO, NO },
{ "", "", "", "" },
@@ -358,6 +358,10 @@
static void collect_display_vdc(associd_t as, vdc *table,
int decodestatus, FILE *fp);
+static int xprintf(FILE *, char const *, ...) NTP_PRINTF(2, 3);
+static int xputs(char const *, FILE *);
+static int xputc(int, FILE *);
+
/*
* static globals
*/
@@ -383,6 +387,43 @@
};
/*
+ * NULL-pointer safe FILE I/O: use stderr if no file supplied.
+ */
+static int
+xprintf(
+ FILE * ofp,
+ char const * fmt,
+ ...
+ )
+{
+ va_list va;
+ int rc;
+
+ va_start(va, fmt);
+ rc = vfprintf((ofp ? ofp : stderr), fmt, va);
+ va_end(va);
+ return rc;
+}
+
+static int
+xputs(
+ char const * str,
+ FILE * ofp
+ )
+{
+ return fputs(str, (ofp ? ofp : stderr));
+}
+
+static int
+xputc(
+ int ch,
+ FILE * ofp
+ )
+{
+ return fputc(ch, (ofp ? ofp : stderr));
+}
+
+/*
* checkassocid - return the association ID, checking to see if it is valid
*/
static associd_t
@@ -396,7 +437,7 @@
associd = (associd_t)value;
if (0 == associd || value != associd) {
ulvalue = value;
- fprintf(stderr,
+ xprintf(stderr,
"***Invalid association ID %lu specified\n",
ulvalue);
return 0;
@@ -449,7 +490,7 @@
INSIST(name && value);
vl = findlistvar(vlist, name);
if (NULL == vl) {
- fprintf(stderr, "Variable list full\n");
+ xprintf(stderr, "Variable list full\n");
return;
}
@@ -485,7 +526,7 @@
INSIST(name && value);
vl = findlistvar(vlist, name);
if (vl == 0 || vl->name == 0) {
- (void) fprintf(stderr, "Variable `%s' not found\n",
+ (void) xprintf(stderr, "Variable `%s' not found\n",
name);
} else {
free((void *)(intptr_t)vl->name);
@@ -549,7 +590,7 @@
valuelen = strlen(vl->value);
totallen = namelen + valuelen + (valuelen != 0) + (cp != data);
if (cp + totallen > cpend) {
- fprintf(stderr,
+ xprintf(stderr,
"***Ignoring variables starting with `%s'\n",
vl->name);
break;
@@ -606,14 +647,14 @@
size_t n;
if (NULL == vlist->name) {
- fprintf(fp, "No variables on list\n");
+ xprintf(fp, "No variables on list\n");
return;
}
for (n = 0; n < MAXLIST && vlist[n].name != NULL; n++) {
if (NULL == vlist[n].value)
- fprintf(fp, "%s\n", vlist[n].name);
+ xprintf(fp, "%s\n", vlist[n].name);
else
- fprintf(fp, "%s=%s\n", vlist[n].name,
+ xprintf(fp, "%s=%s\n", vlist[n].name,
vlist[n].value);
}
}
@@ -707,13 +748,13 @@
return 0;
if (numhosts > 1)
- fprintf(fp, "server=%s ", currenthost);
+ xprintf(fp, "server=%s ", currenthost);
if (dsize == 0) {
if (associd == 0)
- fprintf(fp, "No system%s variables returned\n",
+ xprintf(fp, "No system%s variables returned\n",
(type == TYPE_CLOCK) ? " clock" : "");
else
- fprintf(fp,
+ xprintf(fp,
"No information returned for%s association %u\n",
(type == TYPE_CLOCK) ? " clock" : "",
associd);
@@ -721,7 +762,7 @@
}
if (!quiet)
- fprintf(fp, "associd=%u ", associd);
+ xprintf(fp, "associd=%u ", associd);
printvars(dsize, datap, (int)rstatus, type, quiet, fp);
return 1;
}
@@ -788,11 +829,11 @@
return;
if (numhosts > 1)
- (void) fprintf(fp, "server=%s ", currenthost);
+ (void) xprintf(fp, "server=%s ", currenthost);
if (dsize == 0)
- (void) fprintf(fp, "done! (no data returned)\n");
+ (void) xprintf(fp, "done! (no data returned)\n");
else {
- (void) fprintf(fp,"associd=%u ", associd);
+ (void) xprintf(fp,"associd=%u ", associd);
printvars(dsize, datap, (int)rstatus,
(associd != 0) ? TYPE_PEER : TYPE_SYS, 0, fp);
}
@@ -873,11 +914,11 @@
return;
if (numhosts > 1)
- fprintf(fp, "server=%s ", currenthost);
+ xprintf(fp, "server=%s ", currenthost);
if (dsize == 0)
- fprintf(fp, "done! (no data returned)\n");
+ xprintf(fp, "done! (no data returned)\n");
else {
- fprintf(fp,"associd=%u ", associd);
+ xprintf(fp,"associd=%u ", associd);
type = (0 == associd)
? TYPE_SYS
: TYPE_PEER;
@@ -976,7 +1017,7 @@
}
for (a = 0; a < COUNTOF(assids); a++)
if (-1 == ind[a]) {
- fprintf(stderr,
+ xprintf(stderr,
"***Association ID %u not found in list\n",
assids[a]);
return 0;
@@ -1013,7 +1054,7 @@
for (i = from; i <= to; i++) {
if (i != from)
- fprintf(fp, "\n");
+ xprintf(fp, "\n");
if (!dolist(g_varlist, assoc_cache[i].assid,
CTL_OP_READVAR, TYPE_PEER, fp))
return;
@@ -1084,15 +1125,15 @@
if (dsize == 0) {
if (numhosts > 1)
- fprintf(fp, "server=%s ", currenthost);
- fprintf(fp, "No association ID's returned\n");
+ xprintf(fp, "server=%s ", currenthost);
+ xprintf(fp, "No association ID's returned\n");
return 0;
}
if (dsize & 0x3) {
if (numhosts > 1)
- fprintf(stderr, "server=%s ", currenthost);
- fprintf(stderr,
+ xprintf(stderr, "server=%s ", currenthost);
+ xprintf(stderr,
"***Server returned %zu octets, should be multiple of 4\n",
dsize);
return 0;
@@ -1112,13 +1153,13 @@
datap += sizeof(*pus);
dsize -= 2 * sizeof(*pus);
if (debug) {
- fprintf(stderr, "[%u] ",
+ xprintf(stderr, "[%u] ",
assoc_cache[numassoc].assid);
}
numassoc++;
}
if (debug) {
- fprintf(stderr, "\n%d associations total\n", numassoc);
+ xprintf(stderr, "\n%d associations total\n", numassoc);
}
sortassoc();
return 1;
@@ -1147,7 +1188,7 @@
char buf[128];
if (numassoc == 0) {
- (void) fprintf(fp, "No association ID's in list\n");
+ (void) xprintf(fp, "No association ID's in list\n");
return;
}
@@ -1154,9 +1195,9 @@
/*
* Output a header
*/
- (void) fprintf(fp,
+ (void) xprintf(fp,
"ind assid status conf reach auth condition last_event cnt\n");
- (void) fprintf(fp,
+ (void) xprintf(fp,
"===========================================================\n");
for (i = 0; i < numassoc; i++) {
statval = (u_char) CTL_PEER_STATVAL(assoc_cache[i].status);
@@ -1307,7 +1348,7 @@
while (bp > buf && ' ' == bp[-1])
--bp;
bp[0] = '\0';
- fprintf(fp, "%s\n", buf);
+ xprintf(fp, "%s\n", buf);
}
}
@@ -1386,7 +1427,7 @@
if (0 == pcmd->nargs)
return;
-
+
res = doquery(CTL_OP_SAVECONFIG, 0, 1,
strlen(pcmd->argval[0].string),
pcmd->argval[0].string, &rstatus, &dsize,
@@ -1396,9 +1437,9 @@
return;
if (0 == dsize)
- fprintf(fp, "(no response message, curiously)");
+ xprintf(fp, "(no response message, curiously)");
else
- fprintf(fp, "%.*s", (int)dsize, datap); /* cast is wobbly */
+ xprintf(fp, "%.*s", (int)dsize, datap); /* cast is wobbly */
}
@@ -1425,9 +1466,9 @@
return;
if (numhosts > 1)
- (void) fprintf(fp, "server=%s ", currenthost);
+ (void) xprintf(fp, "server=%s ", currenthost);
if (dsize == 0) {
- (void) fprintf(fp, "No radio status string returned\n");
+ (void) xprintf(fp, "No radio status string returned\n");
return;
}
@@ -1654,7 +1695,7 @@
* data for it...
*/
get_systime(&ts);
-
+
have_srchost = FALSE;
have_dstadr = FALSE;
have_da_rid = FALSE;
@@ -1672,7 +1713,7 @@
if (!strcmp("srcadr", name) ||
!strcmp("peeradr", name)) {
if (!decodenetnum(value, &srcadr))
- fprintf(stderr, "malformed %s=%s\n",
+ xprintf(stderr, "malformed %s=%s\n",
name, value);
} else if (!strcmp("srchost", name)) {
if (pvl == peervarlist || pvl == apeervarlist) {
@@ -1733,7 +1774,7 @@
ZERO(u32);
memcpy(&u32, value, drlen);
dstadr_refid = refid_str(u32, 1);
- //fprintf(stderr, "apeervarlist S1 refid: value=<%s>\n", value);
+ //xprintf(stderr, "apeervarlist S1 refid: value=<%s>\n", value);
} else if (decodenetnum(value, &refidadr)) {
if (SOCK_UNSPEC(&refidadr))
dstadr_refid = "0.0.0.0";
@@ -1747,9 +1788,9 @@
snprintf(buf, 10,
"%0x", i);
dstadr_refid = buf;
- //fprintf(stderr, "apeervarlist refid: value=<%x>\n", i);
+ //xprintf(stderr, "apeervarlist refid: value=<%x>\n", i);
}
- //fprintf(stderr, "apeervarlist refid: value=<%s>\n", value);
+ //xprintf(stderr, "apeervarlist refid: value=<%s>\n", value);
} else {
have_da_rid = FALSE;
}
@@ -1786,7 +1827,7 @@
} else if (!strcmp("flash", name)) {
decodeuint(value, &flash);
} else {
- // fprintf(stderr, "UNRECOGNIZED name=%s ", name);
+ // xprintf(stderr, "UNRECOGNIZED name=%s ", name);
}
}
@@ -1850,7 +1891,7 @@
else
serverlocal = currenthost;
}
- fprintf(fp, "%-*s ", (int)maxhostlen, serverlocal);
+ xprintf(fp, "%-*s ", (int)maxhostlen, serverlocal);
}
if (AF_UNSPEC == af || AF(&srcadr) == af) {
if (!have_srchost)
@@ -1859,13 +1900,13 @@
/* wide and long source - space over on next line */
/* allow for host + sp if > 1 and regular tally + source + sp */
if (wideremote && 15 < strlen(clock_name))
- fprintf(fp, "%c%s\n%*s", c, clock_name,
+ xprintf(fp, "%c%s\n%*s", c, clock_name,
((numhosts > 1) ? (int)maxhostlen + 1 : 0)
+ 1 + 15 + 1, "");
else
- fprintf(fp, "%c%-15.15s ", c, clock_name);
+ xprintf(fp, "%c%-15.15s ", c, clock_name);
if ((flash & TEST12) && (pvl != opeervarlist)) {
- drlen = fprintf(fp, "(loop)");
+ drlen = xprintf(fp, "(loop)");
} else if (!have_da_rid) {
drlen = 0;
} else {
@@ -1874,24 +1915,24 @@
}
if (pvl == apeervarlist) {
while (drlen++ < 9)
- fputc(' ', fp);
- fprintf(fp, "%-6d", associd);
+ xputc(' ', fp);
+ xprintf(fp, "%-6d", associd);
} else {
while (drlen++ < 15)
- fputc(' ', fp);
+ xputc(' ', fp);
}
- fprintf(fp,
+ xprintf(fp,
" %2ld %c %4.4s %4.4s %3lo %7.7s %8.7s %7.7s\n",
stratum, type,
prettyinterval(whenbuf, sizeof(whenbuf),
when(&ts, &rec, &reftime)),
- prettyinterval(pollbuf, sizeof(pollbuf),
+ prettyinterval(pollbuf, sizeof(pollbuf),
(int)poll_sec),
- reach, lfptoms(&estdelay, 3),
+ reach, ulfptoms(&estdelay, 3),
lfptoms(&estoffset, 3),
(have_jitter)
- ? lfptoms(&estjitter, 3)
- : lfptoms(&estdisp, 3));
+ ? ulfptoms(&estjitter, 3)
+ : ulfptoms(&estdisp, 3));
return (1);
}
else
@@ -1932,8 +1973,8 @@
if (dsize == 0) {
if (numhosts > 1)
- fprintf(stderr, "server=%s ", currenthost);
- fprintf(stderr,
+ xprintf(stderr, "server=%s ", currenthost);
+ xprintf(stderr,
"***No information returned for association %u\n",
associd);
return 0;
@@ -1971,14 +2012,14 @@
}
}
if (numhosts > 1)
- fprintf(fp, "%-*.*s ", (int)maxhostlen, (int)maxhostlen,
+ xprintf(fp, "%-*.*s ", (int)maxhostlen, (int)maxhostlen,
"server (local)");
- fprintf(fp,
+ xprintf(fp,
" remote refid st t when poll reach delay offset jitter\n");
if (numhosts > 1)
for (u = 0; u <= maxhostlen; u++)
- fprintf(fp, "=");
- fprintf(fp,
+ xprintf(fp, "=");
+ xprintf(fp,
"==============================================================================\n");
for (u = 0; u < numassoc; u++) {
@@ -1986,7 +2027,7 @@
!(CTL_PEER_STATVAL(assoc_cache[u].status)
& (CTL_PST_CONFIG|CTL_PST_REACH))) {
if (debug)
- fprintf(stderr, "eliding [%d]\n",
+ xprintf(stderr, "eliding [%d]\n",
(int)assoc_cache[u].assid);
continue;
}
@@ -2025,14 +2066,14 @@
}
}
if (numhosts > 1)
- fprintf(fp, "%-*.*s ", (int)maxhostlen, (int)maxhostlen,
+ xprintf(fp, "%-*.*s ", (int)maxhostlen, (int)maxhostlen,
"server (local)");
- fprintf(fp,
+ xprintf(fp,
" remote refid assid st t when poll reach delay offset jitter\n");
if (numhosts > 1)
for (u = 0; u <= maxhostlen; u++)
- fprintf(fp, "=");
- fprintf(fp,
+ xprintf(fp, "=");
+ xprintf(fp,
"==============================================================================\n");
for (u = 0; u < numassoc; u++) {
@@ -2040,7 +2081,7 @@
!(CTL_PEER_STATVAL(assoc_cache[u].status)
& (CTL_PST_CONFIG|CTL_PST_REACH))) {
if (debug)
- fprintf(stderr, "eliding [%d]\n",
+ xprintf(stderr, "eliding [%d]\n",
(int)assoc_cache[u].assid);
continue;
}
@@ -2145,14 +2186,14 @@
maxhostlen = strlen(fullname);
}
if (numhosts > 1)
- fprintf(fp, "%-*.*s ", (int)maxhostlen, (int)maxhostlen,
+ xprintf(fp, "%-*.*s ", (int)maxhostlen, (int)maxhostlen,
"server");
- fprintf(fp,
+ xprintf(fp,
" remote local st t when poll reach delay offset disp\n");
if (numhosts > 1)
for (i = 0; i <= maxhostlen; ++i)
- fprintf(fp, "=");
- fprintf(fp,
+ xprintf(fp, "=");
+ xprintf(fp,
"==============================================================================\n");
for (i = 0; i < numassoc; i++) {
@@ -2211,10 +2252,10 @@
}
-/*
+/*
* config - send a configuration command to a remote host
*/
-static void
+static void
config (
struct parse *pcmd,
FILE *fp
@@ -2232,7 +2273,7 @@
cfgcmd = pcmd->argval[0].string;
if (debug > 2)
- fprintf(stderr,
+ xprintf(stderr,
"In Config\n"
"Keyword = %s\n"
"Command = %s\n", pcmd->keyword, cfgcmd);
@@ -2255,12 +2296,12 @@
if (1 == sscanf(resp, "column %d syntax error", &col)
&& col >= 0 && (size_t)col <= strlen(cfgcmd) + 1) {
if (interactive)
- fputs(" *", stdout); /* "ntpq> :config " */
+ xputs(" *", stdout); /* "ntpq> :config " */
else
printf("%s\n", cfgcmd);
for (i = 0; i < col; i++)
- fputc('_', stdout);
- fputs("^\n", stdout);
+ xputc('_', stdout);
+ xputs("^\n", stdout);
}
printf("%s\n", resp);
free(resp);
@@ -2267,15 +2308,15 @@
}
-/*
+/*
* config_from_file - remotely configure an ntpd daemon using the
* specified configuration file
* SK: This function is a kludge at best and is full of bad design
* bugs:
* 1. ntpq uses UDP, which means that there is no guarantee of in-order,
- * error-free delivery.
+ * error-free delivery.
* 2. The maximum length of a packet is constrained, and as a result, the
- * maximum length of a line in a configuration file is constrained.
+ * maximum length of a line in a configuration file is constrained.
* Longer lines will lead to unpredictable results.
* 3. Since this function is sending a line at a time, we can't update
* the control key through the configuration file (YUCK!!)
@@ -2284,7 +2325,7 @@
* on the assumption that 'int' can hold the size of the involved
* buffers without overflow.
*/
-static void
+static void
config_from_file (
struct parse *pcmd,
FILE *fp
@@ -2302,7 +2343,7 @@
int retry_limit;
if (debug > 2)
- fprintf(stderr,
+ xprintf(stderr,
"In Config\n"
"Keyword = %s\n"
"Filename = %s\n", pcmd->keyword,
@@ -2323,7 +2364,7 @@
config_len = (NULL != cp)
? (size_t)(cp - config_cmd)
: strlen(config_cmd);
-
+
/* [Bug 3015] make sure there's no trailing whitespace;
* the fix for [Bug 2853] on the server side forbids
* those. And don't transmit empty lines, as this would
@@ -2339,7 +2380,7 @@
continue;
retry_limit = 2;
- do
+ do
res = doquery(CTL_OP_CONFIGURE, 0, 1,
config_len, config_cmd,
&rstatus, &rsize, &rdata);
@@ -2386,13 +2427,13 @@
qres = doquery(CTL_OP_REQ_NONCE, 0, 0, 0, NULL, &rstatus,
&rsize, &rdata);
if (qres) {
- fprintf(stderr, "nonce request failed\n");
+ xprintf(stderr, "nonce request failed\n");
return FALSE;
}
if ((size_t)rsize <= sizeof(nonce_eq) - 1 ||
strncmp(rdata, nonce_eq, sizeof(nonce_eq) - 1)) {
- fprintf(stderr, "unexpected nonce response format: %.*s\n",
+ xprintf(stderr, "unexpected nonce response format: %.*s\n",
(int)rsize, rdata); /* cast is wobbly */
return FALSE;
}
@@ -2406,7 +2447,7 @@
chars--;
nonce[chars] = '\0';
}
-
+
return TRUE;
}
@@ -2433,7 +2474,7 @@
break;
if (mon != NULL) {
if (!L_ISGEQ(&add->first, &mon->first)) {
- fprintf(stderr,
+ xprintf(stderr,
"add_mru duplicate %s new first ts %08x.%08x precedes prior %08x.%08x\n",
sptoa(&add->addr), add->last.l_ui,
add->last.l_uf, mon->last.l_ui,
@@ -2523,7 +2564,7 @@
l_fp last_older;
sockaddr_u addr_older;
int have_now;
- int have_addr_older;
+ int have_addr_older;
int have_last_older;
u_int restarted_count;
u_int nonce_uses;
@@ -2561,7 +2602,7 @@
while (TRUE) {
if (debug)
- fprintf(stderr, "READ_MRU parms: %s\n", req_buf);
+ xprintf(stderr, "READ_MRU parms: %s\n", req_buf);
qres = doqueryex(CTL_OP_READ_MRU, 0, 0,
strlen(req_buf), req_buf,
@@ -2573,7 +2614,7 @@
* toss them from our list and try again.
*/
if (debug)
- fprintf(stderr,
+ xprintf(stderr,
"no overlap between %d prior entries and server MRU list\n",
ri);
while (ri--) {
@@ -2580,7 +2621,7 @@
recent = HEAD_DLIST(mru_list, mlink);
INSIST(recent != NULL);
if (debug)
- fprintf(stderr,
+ xprintf(stderr,
"tossing prior entry %s to resync\n",
sptoa(&recent->addr));
UNLINK_DLIST(recent, mlink);
@@ -2594,7 +2635,7 @@
if (NULL == HEAD_DLIST(mru_list, mlink)) {
restarted_count++;
if (restarted_count > 8) {
- fprintf(stderr,
+ xprintf(stderr,
"Giving up after 8 restarts from the beginning.\n"
"With high-traffic NTP servers, this can occur if the\n"
"MRU list is limited to less than about 16 seconds' of\n"
@@ -2602,12 +2643,12 @@
goto cleanup_return;
}
if (debug)
- fprintf(stderr,
- "---> Restarting from the beginning, retry #%u\n",
+ xprintf(stderr,
+ "---> Restarting from the beginning, retry #%u\n",
restarted_count);
}
} else if (CERR_UNKNOWNVAR == qres) {
- fprintf(stderr,
+ xprintf(stderr,
"CERR_UNKNOWNVAR from ntpd but no priors given.\n");
goto cleanup_return;
} else if (CERR_BADVALUE == qres) {
@@ -2614,7 +2655,7 @@
if (cap_frags) {
cap_frags = FALSE;
if (debug)
- fprintf(stderr,
+ xprintf(stderr,
"Reverted to row limit from fragments limit.\n");
} else {
/* ntpd has lower cap on row limit */
@@ -2621,7 +2662,7 @@
ntpd_row_limit--;
limit = min(limit, ntpd_row_limit);
if (debug)
- fprintf(stderr,
+ xprintf(stderr,
"Row limit reduced to %d following CERR_BADVALUE.\n",
limit);
}
@@ -2634,13 +2675,13 @@
if (cap_frags) {
frags = max(2, frags / 2);
if (debug)
- fprintf(stderr,
+ xprintf(stderr,
"Frag limit reduced to %d following incomplete response.\n",
frags);
} else {
limit = max(2, limit / 2);
if (debug)
- fprintf(stderr,
+ xprintf(stderr,
"Row limit reduced to %d following incomplete response.\n",
limit);
}
@@ -2654,7 +2695,7 @@
* dump similar output after the list is collected by
* ntpq with a continuous sequence of indexes. This
* cheap approach has indexes resetting to zero for
- * each query/response, and duplicates are not
+ * each query/response, and duplicates are not
* coalesced.
*/
if (!qres && rawmode)
@@ -2665,7 +2706,7 @@
while (!qres && nextvar(&rsize, &rdata, &tag, &val)) {
INSIST(tag && val);
if (debug > 1)
- fprintf(stderr, "nextvar gave: %s = %s\n",
+ xprintf(stderr, "nextvar gave: %s = %s\n",
tag, val);
switch(tag[0]) {
@@ -2672,13 +2713,13 @@
case 'a':
if (!strcmp(tag, "addr.older")) {
if (!have_last_older) {
- fprintf(stderr,
+ xprintf(stderr,
"addr.older %s before last.older\n",
val);
goto cleanup_return;
}
if (!decodenetnum(val, &addr_older)) {
- fprintf(stderr,
+ xprintf(stderr,
"addr.older %s garbled\n",
val);
goto cleanup_return;
@@ -2692,7 +2733,7 @@
&recent->addr))
break;
if (NULL == recent) {
- fprintf(stderr,
+ xprintf(stderr,
"addr.older %s not in hash table\n",
val);
goto cleanup_return;
@@ -2699,7 +2740,7 @@
}
if (!L_ISEQU(&last_older,
&recent->last)) {
- fprintf(stderr,
+ xprintf(stderr,
"last.older %08x.%08x mismatches %08x.%08x expected.\n",
last_older.l_ui,
last_older.l_uf,
@@ -2720,7 +2761,7 @@
if ('0' != val[0] ||
'x' != val[1] ||
!hextolfp(val + 2, &last_older)) {
- fprintf(stderr,
+ xprintf(stderr,
"last.older %s garbled\n",
val);
goto cleanup_return;
@@ -2728,13 +2769,13 @@
have_last_older = TRUE;
} else if (!strcmp(tag, "last.newest")) {
if (0 != got) {
- fprintf(stderr,
+ xprintf(stderr,
"last.newest %s before complete row, got = 0x%x\n",
val, (u_int)got);
goto cleanup_return;
}
if (!have_now) {
- fprintf(stderr,
+ xprintf(stderr,
"last.newest %s before now=\n",
val);
goto cleanup_return;
@@ -2746,7 +2787,7 @@
!hextolfp(val + 2, &newest) ||
!L_ISEQU(&newest,
&head->last)) {
- fprintf(stderr,
+ xprintf(stderr,
"last.newest %s mismatches %08x.%08x",
val,
head->last.l_ui,
@@ -2822,7 +2863,7 @@
break;
default:
- nomatch:
+ nomatch:
/* empty stmt */ ;
/* ignore unknown tags */
}
@@ -2838,7 +2879,7 @@
fflush(stdout);
}
if (list_complete || mrulist_interrupted) {
- fprintf(stderr,
+ xprintf(stderr,
"\rRetrieved %u unique MRU entries and %u updates.\n",
mru_count, mru_dupes);
fflush(stderr);
@@ -2846,7 +2887,7 @@
}
if (time(NULL) >= next_report) {
next_report += MRU_REPORT_SECS;
- fprintf(stderr, "\r%u (%u updates) ", mru_count,
+ xprintf(stderr, "\r%u (%u updates) ", mru_count,
mru_dupes);
fflush(stderr);
}
@@ -2870,7 +2911,7 @@
* If there were no errors, increase the number of rows
* to a maximum of 3 * MAXFRAGS (the most packets ntpq
* can handle in one response), on the assumption that
- * no less than 3 rows fit in each packet, capped at
+ * no less than 3 rows fit in each packet, capped at
* our best guess at the server's row limit.
*/
if (!qres) {
@@ -3007,7 +3048,7 @@
pm1 = *ppm1;
pm2 = *ppm2;
-
+
return (pm1->count < pm2->count)
? -1
: ((pm1->count == pm2->count)
@@ -3102,7 +3143,7 @@
* timestamps. mrulist shows 0 avgint, monlist shows a value identical
* to lstint.
*/
-static void
+static void
mrulist(
struct parse * pcmd,
FILE * fp
@@ -3134,7 +3175,7 @@
mrulist_interrupted = FALSE;
push_ctrl_c_handler(&mrulist_ctrl_c_hook);
- fprintf(stderr,
+ xprintf(stderr,
"Ctrl-C will stop MRU retrieval and display partial results.\n");
fflush(stderr);
@@ -3148,7 +3189,7 @@
if ((!strncmp(resall_eq, arg, sizeof(resall_eq)
- 1) || !strncmp(resany_eq, arg,
sizeof(resany_eq) - 1) || !strncmp(
- mincount_eq, arg, sizeof(mincount_eq) - 1)
+ mincount_eq, arg, sizeof(mincount_eq) - 1)
|| !strncmp(laddr_eq, arg, sizeof(laddr_eq)
- 1) || !strncmp(maxlstint_eq, arg,
sizeof(laddr_eq) - 1)) && parms + cb + 2 <=
@@ -3184,7 +3225,7 @@
parms += cb - 1;
}
} else
- fprintf(stderr,
+ xprintf(stderr,
"ignoring unrecognized mrulist parameter: %s\n",
arg);
}
@@ -3216,7 +3257,7 @@
}
if (ppentry - sorted != (int)mru_count) {
- fprintf(stderr,
+ xprintf(stderr,
"mru_count %u should match MRU list depth %ld.\n",
mru_count, (long)(ppentry - sorted));
free(sorted);
@@ -3243,7 +3284,7 @@
LFPTOD(&interval, favgint);
favgint /= recent->count;
avgint = (int)(favgint + 0.5);
- fprintf(fp, "%6d %6d %4hx %c %d %d %6d %5u %s\n",
+ xprintf(fp, "%6d %6d %4hx %c %d %d %6d %5u %s\n",
lstint, avgint, recent->rs,
(RES_KOD & recent->rs)
? 'K'
@@ -3256,7 +3297,7 @@
if (showhostnames)
fflush(fp);
if (mrulist_interrupted) {
- fputs("\n --interrupted--\n", fp);
+ xputs("\n --interrupted--\n", fp);
fflush(fp);
break;
}
@@ -3263,7 +3304,7 @@
}
fflush(fp);
if (debug) {
- fprintf(stderr,
+ xprintf(stderr,
"--- completed, freeing sorted[] pointers\n");
fflush(stderr);
}
@@ -3271,7 +3312,7 @@
cleanup_return:
if (debug) {
- fprintf(stderr, "... freeing MRU entries\n");
+ xprintf(stderr, "... freeing MRU entries\n");
fflush(stderr);
}
ITER_DLIST_BEGIN(mru_list, recent, mlink, mru)
@@ -3278,7 +3319,7 @@
free(recent);
ITER_DLIST_END()
if (debug) {
- fprintf(stderr, "... freeing hash_table[]\n");
+ xprintf(stderr, "... freeing hash_table[]\n");
fflush(stderr);
}
free(hash_table);
@@ -3306,13 +3347,13 @@
return;
if (prow->ifnum + 1 <= ifnum) {
if (*pfields < IFSTATS_FIELDS)
- fprintf(fp, "Warning: incomplete row with %d (of %d) fields\n",
+ xprintf(fp, "Warning: incomplete row with %d (of %d) fields\n",
*pfields, IFSTATS_FIELDS);
*pfields = 0;
prow->ifnum = ifnum;
return;
}
- fprintf(stderr,
+ xprintf(stderr,
"received if index %u, have %d of %d fields for index %u, aborting.\n",
ifnum, *pfields, IFSTATS_FIELDS, prow->ifnum);
exit(1);
@@ -3335,7 +3376,7 @@
(*pfields)++;
/* we understand 12 tags */
- if (IFSTATS_FIELDS > *pfields)
+ if (IFSTATS_FIELDS > *pfields)
return;
/*
" interface name send\n"
@@ -3342,7 +3383,7 @@
" # address/broadcast drop flag ttl mc received sent failed peers uptime\n"
"==============================================================================\n");
*/
- fprintf(fp,
+ xprintf(fp,
"%3u %-24.24s %c %4x %3u %2u %6u %6u %6u %5u %8d\n"
" %s\n",
prow->ifnum, prow->name,
@@ -3353,7 +3394,7 @@
prow->received, prow->sent, prow->send_errors,
prow->peer_count, prow->uptime, sptoa(&prow->addr));
if (!SOCK_UNSPEC(&prow->bcast))
- fprintf(fp, " %s\n", sptoa(&prow->bcast));
+ xprintf(fp, " %s\n", sptoa(&prow->bcast));
ifnum = prow->ifnum;
ZERO(*prow);
prow->ifnum = ifnum;
@@ -3363,7 +3404,7 @@
/*
* ifstats - ntpq -c ifstats modeled on ntpdc -c ifstats.
*/
-static void
+static void
ifstats(
struct parse * pcmd,
FILE * fp
@@ -3398,7 +3439,7 @@
if (qres) /* message already displayed */
return;
- fprintf(fp,
+ xprintf(fp,
" interface name send\n"
" # address/broadcast drop flag ttl mc received sent failed peers uptime\n"
"==============================================================================\n");
@@ -3410,7 +3451,7 @@
while (nextvar(&dsize, &datap, &tag, &val)) {
INSIST(tag && val);
if (debug > 1)
- fprintf(stderr, "nextvar gave: %s = %s\n", tag, val);
+ xprintf(stderr, "nextvar gave: %s = %s\n", tag, val);
comprende = FALSE;
switch(tag[0]) {
@@ -3498,7 +3539,7 @@
}
}
if (fields != IFSTATS_FIELDS)
- fprintf(fp, "Warning: incomplete row with %d (of %d) fields\n",
+ xprintf(fp, "Warning: incomplete row with %d (of %d) fields\n",
fields, IFSTATS_FIELDS);
fflush(fp);
@@ -3522,13 +3563,13 @@
return;
if (prow->idx + 1 == idx) {
if (*pfields < RESLIST_FIELDS)
- fprintf(fp, "Warning: incomplete row with %d (of %d) fields",
+ xprintf(fp, "Warning: incomplete row with %d (of %d) fields",
*pfields, RESLIST_FIELDS);
*pfields = 0;
prow->idx = idx;
return;
}
- fprintf(stderr,
+ xprintf(stderr,
"received reslist index %u, have %d of %d fields for index %u, aborting.\n",
idx, *pfields, RESLIST_FIELDS, prow->idx);
exit(1);
@@ -3569,7 +3610,7 @@
" restrictions\n"
"==============================================================================\n");
*/
- fprintf(fp,
+ xprintf(fp,
"%10lu %s\n"
" %s\n",
prow->hits, addrmaskstr, prow->flagstr);
@@ -3582,7 +3623,7 @@
/*
* reslist - ntpq -c reslist modeled on ntpdc -c reslist.
*/
-static void
+static void
reslist(
struct parse * pcmd,
FILE * fp
@@ -3611,7 +3652,7 @@
if (qres) /* message already displayed */
return;
- fprintf(fp,
+ xprintf(fp,
" hits addr/prefix or addr mask\n"
" restrictions\n"
"==============================================================================\n");
@@ -3623,7 +3664,7 @@
while (nextvar(&dsize, &datap, &tag, &val)) {
INSIST(tag && val);
if (debug > 1)
- fprintf(stderr, "nextvar gave: %s = %s\n", tag, val);
+ xprintf(stderr, "nextvar gave: %s = %s\n", tag, val);
comprende = FALSE;
switch(tag[0]) {
@@ -3670,7 +3711,7 @@
}
}
if (fields != RESLIST_FIELDS)
- fprintf(fp, "Warning: incomplete row with %d (of %d) fields",
+ xprintf(fp, "Warning: incomplete row with %d (of %d) fields",
fields, RESLIST_FIELDS);
fflush(fp);
@@ -3680,7 +3721,7 @@
/*
* collect_display_vdc
*/
-static void
+static void
collect_display_vdc(
associd_t as,
vdc * table,
@@ -3705,6 +3746,7 @@
int match;
u_long ul;
int vtype;
+ sockaddr_u sau;
ZERO(vl);
for (pvdc = table; pvdc->tag != NULL; pvdc++) {
@@ -3765,6 +3807,7 @@
}
}
/* fallthru */
+ case NTP_REFID: /* fallthru */
case NTP_MODE: /* fallthru */
case NTP_2BIT:
pvdc->v.str = estrdup(val);
@@ -3776,7 +3819,7 @@
case NTP_ADP:
if (!decodenetnum(val, &pvdc->v.sau))
- fprintf(stderr, "malformed %s=%s\n",
+ xprintf(stderr, "malformed %s=%s\n",
pvdc->tag, val);
break;
@@ -3783,12 +3826,12 @@
case NTP_ADD:
if (0 == n) { /* adr */
if (!decodenetnum(val, &pvdc->v.sau))
- fprintf(stderr,
+ xprintf(stderr,
"malformed %s=%s\n",
pvdc->tag, val);
} else { /* port */
if (atouint(val, &ul))
- SET_PORT(&pvdc->v.sau,
+ SET_PORT(&pvdc->v.sau,
(u_short)ul);
}
break;
@@ -3800,7 +3843,7 @@
vtype = (0 == as)
? TYPE_SYS
: TYPE_PEER;
- fprintf(fp, "associd=%u status=%04x %s,\n", as, rstatus,
+ xprintf(fp, "associd=%u status=%04x %s,\n", as, rstatus,
statustoa(vtype, rstatus));
}
@@ -3809,7 +3852,7 @@
case NTP_STR:
if (pvdc->v.str != NULL) {
- fprintf(fp, "%s %s\n", pvdc->display,
+ xprintf(fp, "%s %s\n", pvdc->display,
pvdc->v.str);
free(pvdc->v.str);
pvdc->v.str = NULL;
@@ -3818,29 +3861,48 @@
case NTP_ADD: /* fallthru */
case NTP_ADP:
- fprintf(fp, "%s %s\n", pvdc->display,
+ xprintf(fp, "%s %s\n", pvdc->display,
nntohostp(&pvdc->v.sau));
break;
case NTP_LFP:
- fprintf(fp, "%s %s\n", pvdc->display,
+ xprintf(fp, "%s %s\n", pvdc->display,
prettydate(&pvdc->v.lfp));
break;
case NTP_MODE:
atouint(pvdc->v.str, &ul);
- fprintf(fp, "%s %s\n", pvdc->display,
+ xprintf(fp, "%s %s\n", pvdc->display,
modetoa((int)ul));
+ free(pvdc->v.str);
+ pvdc->v.str = NULL;
break;
case NTP_2BIT:
atouint(pvdc->v.str, &ul);
- fprintf(fp, "%s %s\n", pvdc->display,
+ xprintf(fp, "%s %s\n", pvdc->display,
leapbits[ul & 0x3]);
+ free(pvdc->v.str);
+ pvdc->v.str = NULL;
break;
+ case NTP_REFID:
+ if (!decodenetnum(pvdc->v.str, &sau)) {
+ fprintf(fp, "%s %s\n", pvdc->display, /* Text fmt */
+ pvdc->v.str);
+ } else if (drefid == REFID_IPV4) {
+ fprintf(fp, "%s %s\n", pvdc->display, /* IPv4 fmt */
+ stoa(&sau));
+ } else {
+ fprintf (fp, "%s 0x%08x\n", pvdc->display, /* Hex / hash */
+ ntohl(addr2refid(&sau)));
+ }
+ free(pvdc->v.str);
+ pvdc->v.str = NULL;
+ break;
+
default:
- fprintf(stderr, "unexpected vdc type %d for %s\n",
+ xprintf(stderr, "unexpected vdc type %d for %s\n",
pvdc->type, pvdc->tag);
break;
}
@@ -3898,7 +3960,7 @@
VDC_INIT("precision", "log2 precision: ", NTP_STR),
VDC_INIT("rootdelay", "root delay: ", NTP_STR),
VDC_INIT("rootdisp", "root dispersion: ", NTP_STR),
- VDC_INIT("refid", "reference ID: ", NTP_STR),
+ VDC_INIT("refid", "reference ID: ", NTP_REFID),
VDC_INIT("reftime", "reference time: ", NTP_LFP),
VDC_INIT("sys_jitter", "system jitter: ", NTP_STR),
VDC_INIT("clk_jitter", "clock jitter: ", NTP_STR),
--- contrib/ntp/ntpq/ntpq.1ntpqman.orig
+++ contrib/ntp/ntpq/ntpq.1ntpqman
@@ -10,11 +10,11 @@
.ds B-Font B
.ds I-Font I
.ds R-Font R
-.TH ntpq 1ntpqman "20 Feb 2019" "4.2.8p13" "User Commands"
+.TH ntpq 1ntpqman "03 Mar 2020" "4.2.8p14" "User Commands"
.\"
.\" EDIT THIS FILE WITH CAUTION (in-mem file)
.\"
-.\" It has been AutoGen-ed February 20, 2019 at 09:57:02 AM by AutoGen 5.18.5
+.\" It has been AutoGen-ed March 3, 2020 at 05:41:22 PM by AutoGen 5.18.5
.\" From the definitions ntpq-opts.def
.\" and the template file agman-cmd.tpl
.SH NAME
@@ -1579,7 +1579,7 @@
.SH "AUTHORS"
The University of Delaware and Network Time Foundation
.SH "COPYRIGHT"
-Copyright (C) 1992-2017 The University of Delaware and Network Time Foundation all rights reserved.
+Copyright (C) 1992-2020 The University of Delaware and Network Time Foundation all rights reserved.
This program is released under the terms of the NTP license, <http://ntp.org/license>.
.SH "BUGS"
Please send bug reports to: http://bugs.ntp.org, bugs@ntp.org
--- contrib/ntp/ntpq/ntpq.1ntpqmdoc.orig
+++ contrib/ntp/ntpq/ntpq.1ntpqmdoc
@@ -1,9 +1,9 @@
-.Dd February 20 2019
+.Dd March 3 2020
.Dt NTPQ 1ntpqmdoc User Commands
.Os
.\" EDIT THIS FILE WITH CAUTION (ntpq-opts.mdoc)
.\"
-.\" It has been AutoGen-ed February 20, 2019 at 09:56:59 AM by AutoGen 5.18.5
+.\" It has been AutoGen-ed March 3, 2020 at 05:41:19 PM by AutoGen 5.18.5
.\" From the definitions ntpq-opts.def
.\" and the template file agmdoc-cmd.tpl
.Sh NAME
@@ -1046,7 +1046,7 @@
.Sh "AUTHORS"
The University of Delaware and Network Time Foundation
.Sh "COPYRIGHT"
-Copyright (C) 1992\-2017 The University of Delaware and Network Time Foundation all rights reserved.
+Copyright (C) 1992\-2020 The University of Delaware and Network Time Foundation all rights reserved.
This program is released under the terms of the NTP license, <http://ntp.org/license>.
.Sh "BUGS"
Please send bug reports to: http://bugs.ntp.org, bugs@ntp.org
--- contrib/ntp/ntpq/ntpq.c.orig
+++ contrib/ntp/ntpq/ntpq.c
@@ -122,10 +122,12 @@
#define NA 2 /* network address */
#define LP 3 /* leap (print in binary) */
#define RF 4 /* refid (sometimes string, sometimes not) */
-#define AR 5 /* array of times */
+#define AU 5 /* array of unsigned times */
#define FX 6 /* test flags */
#define TS 7 /* l_fp timestamp in hex */
#define OC 8 /* integer, print in octal */
+#define AS 9 /* array of signed times */
+#define SN 10 /* signed number: must display +/- sign */
#define EOV 255 /* end of table */
/*
@@ -146,10 +148,12 @@
{ "srcadr", HA },
{ "peeradr", HA }, /* compat with others */
{ "dstadr", NA },
- { "filtdelay", AR },
- { "filtoffset", AR },
- { "filtdisp", AR },
- { "filterror", AR }, /* compat with others */
+ { "filtdelay", AU },
+ { "filtoffset", AS },
+ { "filtdisp", AU },
+ { "filterror", AU }, /* compat with others */
+ { "offset", SN },
+ { "frequency", SN }
};
@@ -225,7 +229,7 @@
static void startoutput (void);
static void output (FILE *, const char *, const char *);
static void endoutput (FILE *);
-static void outputarr (FILE *, char *, int, l_fp *);
+static void outputarr (FILE *, char *, int, l_fp *, int);
static int assoccmp (const void *, const void *);
u_short varfmt (const char *);
void ntpq_custom_opt_handler(tOptions *, tOptDesc *);
@@ -3493,7 +3497,8 @@
FILE *fp,
char *name,
int narr,
- l_fp *lfp
+ l_fp *lfp,
+ int issigned
)
{
char *bp;
@@ -3512,7 +3517,7 @@
for (i = narr; i > 0; i--) {
if (i != (size_t)narr)
*bp++ = ' ';
- cp = lfptoms(lfp, 2);
+ cp = (issigned ? lfptoms(lfp, 2) : ulfptoms(lfp, 2));
len = strlen(cp);
if (len > 7) {
cp[7] = '\0';
@@ -3657,11 +3662,31 @@
if (!value) {
output_raw = '?';
} else if (decodenetnum(value, &hval)) {
- if (ISREFCLOCKADR(&hval))
- output(fp, name,
- refnumtoa(&hval));
- else
- output(fp, name, stoa(&hval));
+ if (datatype == TYPE_CLOCK && IS_IPV4(&hval)) {
+ /*
+ * Workaround to override numeric refid formats
+ * for refclocks received from faulty nptd servers
+ * and output them as text.
+ */
+ int i;
+ unsigned char *str = (unsigned char *)&(hval.sa4).sin_addr;
+ char refid_buf[5];
+ for (i=0; i<4 && str[i]; i++)
+ refid_buf[i] = (isprint(str[i]) ? str[i] : '?');
+ refid_buf[i] = 0; /* Null terminator */
+ output(fp, name, refid_buf);
+ } else if (ISREFCLOCKADR(&hval)) {
+ output(fp, name, refnumtoa(&hval));
+ } else {
+ if (drefid == REFID_IPV4) {
+ output(fp, name, stoa(&hval));
+ } else {
+ char refid_buf[12];
+ snprintf (refid_buf, sizeof(refid_buf),
+ "0x%08x", ntohl(addr2refid(&hval)));
+ output(fp, name, refid_buf);
+ }
+ }
} else if (strlen(value) <= 4) {
output(fp, name, value);
} else {
@@ -3693,11 +3718,12 @@
}
break;
- case AR:
+ case AU:
+ case AS:
if (!value || !decodearr(value, &narr, lfparr, 8))
output_raw = '?';
else
- outputarr(fp, name, narr, lfparr);
+ outputarr(fp, name, narr, lfparr, (fmt==AS));
break;
case FX:
@@ -3707,6 +3733,17 @@
output(fp, name, tstflags(uval));
break;
+ case SN:
+ if (!value)
+ output_raw = '?';
+ else if (isdigit(*value)) { /* number without sign */
+ bv[0] = '+';
+ atoascii (value, MAXVALLEN, bv+1, sizeof(bv)-1);
+ output(fp, name, bv);
+ } else
+ output_raw = '*'; /* output as-is */
+ break;
+
default:
fprintf(stderr, "Internal error in cookedprint, %s=%s, fmt %d\n",
name, value, fmt);
--- contrib/ntp/ntpq/ntpq.h.orig
+++ contrib/ntp/ntpq/ntpq.h
@@ -64,6 +64,7 @@
#define NTP_LFP 0x7 /* NTP timestamp */
#define NTP_MODE 0x8 /* peer mode */
#define NTP_2BIT 0x9 /* leap bits */
+#define NTP_REFID 0xA /* RefID */
/*
* Arguments are returned in a union
--- contrib/ntp/ntpq/ntpq.html.orig
+++ contrib/ntp/ntpq/ntpq.html
@@ -73,7 +73,7 @@
and determine the performance of
<code>ntpd</code>, the NTP daemon.
</p>
-<p>This document applies to version 4.2.8p13 of <code>ntpq</code>.
+<p>This document applies to version 4.2.8p14 of <code>ntpq</code>.
</p>
<table class="menu" border="0" cellspacing="0">
<tr><td align="left" valign="top">• <a href="#ntpq-Description" accesskey="1">ntpq Description</a>:</td><td> </td><td align="left" valign="top">
@@ -1293,7 +1293,7 @@
with a status code of 0.
</p>
<div class="example">
-<pre class="example">ntpq - standard NTP query program - Ver. 4.2.8p12
+<pre class="example">ntpq - standard NTP query program - Ver. 4.2.8p13
Usage: ntpq [ -<flag> [<val>] | --<name>[{=| }<val>] ]... [ host ...]
Flg Arg Option-Name Description
-4 no ipv4 Force IPv4 name resolution
--- contrib/ntp/ntpq/ntpq.man.in.orig
+++ contrib/ntp/ntpq/ntpq.man.in
@@ -10,11 +10,11 @@
.ds B-Font B
.ds I-Font I
.ds R-Font R
-.TH ntpq @NTPQ_MS@ "20 Feb 2019" "4.2.8p13" "User Commands"
+.TH ntpq @NTPQ_MS@ "03 Mar 2020" "4.2.8p14" "User Commands"
.\"
.\" EDIT THIS FILE WITH CAUTION (in-mem file)
.\"
-.\" It has been AutoGen-ed February 20, 2019 at 09:57:02 AM by AutoGen 5.18.5
+.\" It has been AutoGen-ed March 3, 2020 at 05:41:22 PM by AutoGen 5.18.5
.\" From the definitions ntpq-opts.def
.\" and the template file agman-cmd.tpl
.SH NAME
@@ -1579,7 +1579,7 @@
.SH "AUTHORS"
The University of Delaware and Network Time Foundation
.SH "COPYRIGHT"
-Copyright (C) 1992-2017 The University of Delaware and Network Time Foundation all rights reserved.
+Copyright (C) 1992-2020 The University of Delaware and Network Time Foundation all rights reserved.
This program is released under the terms of the NTP license, <http://ntp.org/license>.
.SH "BUGS"
Please send bug reports to: http://bugs.ntp.org, bugs@ntp.org
--- contrib/ntp/ntpq/ntpq.mdoc.in.orig
+++ contrib/ntp/ntpq/ntpq.mdoc.in
@@ -1,9 +1,9 @@
-.Dd February 20 2019
+.Dd March 3 2020
.Dt NTPQ @NTPQ_MS@ User Commands
.Os
.\" EDIT THIS FILE WITH CAUTION (ntpq-opts.mdoc)
.\"
-.\" It has been AutoGen-ed February 20, 2019 at 09:56:59 AM by AutoGen 5.18.5
+.\" It has been AutoGen-ed March 3, 2020 at 05:41:19 PM by AutoGen 5.18.5
.\" From the definitions ntpq-opts.def
.\" and the template file agmdoc-cmd.tpl
.Sh NAME
@@ -1046,7 +1046,7 @@
.Sh "AUTHORS"
The University of Delaware and Network Time Foundation
.Sh "COPYRIGHT"
-Copyright (C) 1992\-2017 The University of Delaware and Network Time Foundation all rights reserved.
+Copyright (C) 1992\-2020 The University of Delaware and Network Time Foundation all rights reserved.
This program is released under the terms of the NTP license, <http://ntp.org/license>.
.Sh "BUGS"
Please send bug reports to: http://bugs.ntp.org, bugs@ntp.org
--- contrib/ntp/ntpsnmpd/invoke-ntpsnmpd.texi.orig
+++ contrib/ntp/ntpsnmpd/invoke-ntpsnmpd.texi
@@ -6,7 +6,7 @@
#
# EDIT THIS FILE WITH CAUTION (invoke-ntpsnmpd.texi)
#
-# It has been AutoGen-ed February 20, 2019 at 09:57:07 AM by AutoGen 5.18.5
+# It has been AutoGen-ed March 3, 2020 at 05:41:26 PM by AutoGen 5.18.5
# From the definitions ntpsnmpd-opts.def
# and the template file agtexi-cmd.tpl
@end ignore
--- contrib/ntp/ntpsnmpd/ntpsnmpd-opts.c.orig
+++ contrib/ntp/ntpsnmpd/ntpsnmpd-opts.c
@@ -1,7 +1,7 @@
/*
* EDIT THIS FILE WITH CAUTION (ntpsnmpd-opts.c)
*
- * It has been AutoGen-ed February 20, 2019 at 09:57:03 AM by AutoGen 5.18.5
+ * It has been AutoGen-ed March 3, 2020 at 05:41:23 PM by AutoGen 5.18.5
* From the definitions ntpsnmpd-opts.def
* and the template file options
*
@@ -18,7 +18,7 @@
* The ntpsnmpd program is copyrighted and licensed
* under the following terms:
*
- * Copyright (C) 1992-2017 The University of Delaware and Network Time Foundation, all rights reserved.
+ * Copyright (C) 1992-2020 The University of Delaware and Network Time Foundation, all rights reserved.
* This is free software. It is licensed for use, modification and
* redistribution under the terms of the NTP License, copies of which
* can be seen at:
@@ -61,8 +61,8 @@
* static const strings for ntpsnmpd options
*/
static char const ntpsnmpd_opt_strs[1613] =
-/* 0 */ "ntpsnmpd 4.2.8p13\n"
- "Copyright (C) 1992-2017 The University of Delaware and Network Time Foundation, all rights reserved.\n"
+/* 0 */ "ntpsnmpd 4.2.8p14\n"
+ "Copyright (C) 1992-2020 The University of Delaware and Network Time Foundation, all rights reserved.\n"
"This is free software. It is licensed for use, modification and\n"
"redistribution under the terms of the NTP License, copies of which\n"
"can be seen at:\n"
@@ -101,7 +101,7 @@
/* 1415 */ "no-load-opts\0"
/* 1428 */ "no\0"
/* 1431 */ "NTPSNMPD\0"
-/* 1440 */ "ntpsnmpd - NTP SNMP MIB agent - Ver. 4.2.8p13\n"
+/* 1440 */ "ntpsnmpd - NTP SNMP MIB agent - Ver. 4.2.8p14\n"
"Usage: %s [ -<flag> [<val>] | --<name>[{=| }<val>] ]...\n\0"
/* 1544 */ "$HOME\0"
/* 1550 */ ".\0"
@@ -108,7 +108,7 @@
/* 1552 */ ".ntprc\0"
/* 1559 */ "http://bugs.ntp.org, bugs@ntp.org\0"
/* 1593 */ "\n\0"
-/* 1595 */ "ntpsnmpd 4.2.8p13";
+/* 1595 */ "ntpsnmpd 4.2.8p14";
/**
* nofork option description:
@@ -554,8 +554,8 @@
translate option names.
*/
/* referenced via ntpsnmpdOptions.pzCopyright */
- puts(_("ntpsnmpd 4.2.8p13\n\
-Copyright (C) 1992-2017 The University of Delaware and Network Time Foundation, all rights reserved.\n\
+ puts(_("ntpsnmpd 4.2.8p14\n\
+Copyright (C) 1992-2020 The University of Delaware and Network Time Foundation, all rights reserved.\n\
This is free software. It is licensed for use, modification and\n\
redistribution under the terms of the NTP License, copies of which\n\
can be seen at:\n"));
@@ -599,7 +599,7 @@
puts(_("load options from a config file"));
/* referenced via ntpsnmpdOptions.pzUsageTitle */
- puts(_("ntpsnmpd - NTP SNMP MIB agent - Ver. 4.2.8p13\n\
+ puts(_("ntpsnmpd - NTP SNMP MIB agent - Ver. 4.2.8p14\n\
Usage: %s [ -<flag> [<val>] | --<name>[{=| }<val>] ]...\n"));
/* referenced via ntpsnmpdOptions.pzExplain */
@@ -606,7 +606,7 @@
puts(_("\n"));
/* referenced via ntpsnmpdOptions.pzFullVersion */
- puts(_("ntpsnmpd 4.2.8p13"));
+ puts(_("ntpsnmpd 4.2.8p14"));
/* referenced via ntpsnmpdOptions.pzFullUsage */
puts(_("<<<NOT-FOUND>>>"));
--- contrib/ntp/ntpsnmpd/ntpsnmpd-opts.h.orig
+++ contrib/ntp/ntpsnmpd/ntpsnmpd-opts.h
@@ -1,7 +1,7 @@
/*
* EDIT THIS FILE WITH CAUTION (ntpsnmpd-opts.h)
*
- * It has been AutoGen-ed February 20, 2019 at 09:57:03 AM by AutoGen 5.18.5
+ * It has been AutoGen-ed March 3, 2020 at 05:41:23 PM by AutoGen 5.18.5
* From the definitions ntpsnmpd-opts.def
* and the template file options
*
@@ -18,7 +18,7 @@
* The ntpsnmpd program is copyrighted and licensed
* under the following terms:
*
- * Copyright (C) 1992-2017 The University of Delaware and Network Time Foundation, all rights reserved.
+ * Copyright (C) 1992-2020 The University of Delaware and Network Time Foundation, all rights reserved.
* This is free software. It is licensed for use, modification and
* redistribution under the terms of the NTP License, copies of which
* can be seen at:
@@ -76,9 +76,9 @@
/** count of all options for ntpsnmpd */
#define OPTION_CT 8
/** ntpsnmpd version */
-#define NTPSNMPD_VERSION "4.2.8p13"
+#define NTPSNMPD_VERSION "4.2.8p14"
/** Full ntpsnmpd version text */
-#define NTPSNMPD_FULL_VERSION "ntpsnmpd 4.2.8p13"
+#define NTPSNMPD_FULL_VERSION "ntpsnmpd 4.2.8p14"
/**
* Interface defines for all options. Replace "n" with the UPPER_CASED
--- contrib/ntp/ntpsnmpd/ntpsnmpd.1ntpsnmpdman.orig
+++ contrib/ntp/ntpsnmpd/ntpsnmpd.1ntpsnmpdman
@@ -10,11 +10,11 @@
.ds B-Font B
.ds I-Font I
.ds R-Font R
-.TH ntpsnmpd 1ntpsnmpdman "20 Feb 2019" "4.2.8p13" "User Commands"
+.TH ntpsnmpd 1ntpsnmpdman "03 Mar 2020" "4.2.8p14" "User Commands"
.\"
.\" EDIT THIS FILE WITH CAUTION (in-mem file)
.\"
-.\" It has been AutoGen-ed February 20, 2019 at 09:57:08 AM by AutoGen 5.18.5
+.\" It has been AutoGen-ed March 3, 2020 at 05:41:27 PM by AutoGen 5.18.5
.\" From the definitions ntpsnmpd-opts.def
.\" and the template file agman-cmd.tpl
.SH NAME
@@ -138,7 +138,7 @@
.NOP "Heiko Gerstung"
.br
.SH "COPYRIGHT"
-Copyright (C) 1992-2017 The University of Delaware and Network Time Foundation all rights reserved.
+Copyright (C) 1992-2020 The University of Delaware and Network Time Foundation all rights reserved.
This program is released under the terms of the NTP license, <http://ntp.org/license>.
.SH "BUGS"
Please send bug reports to: http://bugs.ntp.org, bugs@ntp.org
--- contrib/ntp/ntpsnmpd/ntpsnmpd.1ntpsnmpdmdoc.orig
+++ contrib/ntp/ntpsnmpd/ntpsnmpd.1ntpsnmpdmdoc
@@ -1,9 +1,9 @@
-.Dd February 20 2019
+.Dd March 3 2020
.Dt NTPSNMPD 1ntpsnmpdmdoc User Commands
.Os
.\" EDIT THIS FILE WITH CAUTION (ntpsnmpd-opts.mdoc)
.\"
-.\" It has been AutoGen-ed February 20, 2019 at 09:57:05 AM by AutoGen 5.18.5
+.\" It has been AutoGen-ed March 3, 2020 at 05:41:24 PM by AutoGen 5.18.5
.\" From the definitions ntpsnmpd-opts.def
.\" and the template file agmdoc-cmd.tpl
.Sh NAME
@@ -110,7 +110,7 @@
.Sh AUTHORS
.An "Heiko Gerstung"
.Sh "COPYRIGHT"
-Copyright (C) 1992\-2017 The University of Delaware and Network Time Foundation all rights reserved.
+Copyright (C) 1992\-2020 The University of Delaware and Network Time Foundation all rights reserved.
This program is released under the terms of the NTP license, <http://ntp.org/license>.
.Sh "BUGS"
Please send bug reports to: http://bugs.ntp.org, bugs@ntp.org
--- contrib/ntp/ntpsnmpd/ntpsnmpd.html.orig
+++ contrib/ntp/ntpsnmpd/ntpsnmpd.html
@@ -71,7 +71,7 @@
<p>The <code>ntpsnmpd</code> utility program is used to monitor NTP daemon <code>ntpd</code>
operations and determine performance. It uses the standard NTP mode 6 control
</p>
-<p>This document applies to version 4.2.8p13 of <code>ntpsnmpd</code>.
+<p>This document applies to version 4.2.8p14 of <code>ntpsnmpd</code>.
</p>
<table class="menu" border="0" cellspacing="0">
<tr><td align="left" valign="top">• <a href="#ntpsnmpd-Description" accesskey="1">ntpsnmpd Description</a>:</td><td> </td><td align="left" valign="top">Description
--- contrib/ntp/ntpsnmpd/ntpsnmpd.man.in.orig
+++ contrib/ntp/ntpsnmpd/ntpsnmpd.man.in
@@ -10,11 +10,11 @@
.ds B-Font B
.ds I-Font I
.ds R-Font R
-.TH ntpsnmpd @NTPSNMPD_MS@ "20 Feb 2019" "4.2.8p13" "User Commands"
+.TH ntpsnmpd @NTPSNMPD_MS@ "03 Mar 2020" "4.2.8p14" "User Commands"
.\"
.\" EDIT THIS FILE WITH CAUTION (in-mem file)
.\"
-.\" It has been AutoGen-ed February 20, 2019 at 09:57:08 AM by AutoGen 5.18.5
+.\" It has been AutoGen-ed March 3, 2020 at 05:41:27 PM by AutoGen 5.18.5
.\" From the definitions ntpsnmpd-opts.def
.\" and the template file agman-cmd.tpl
.SH NAME
@@ -138,7 +138,7 @@
.NOP "Heiko Gerstung"
.br
.SH "COPYRIGHT"
-Copyright (C) 1992-2017 The University of Delaware and Network Time Foundation all rights reserved.
+Copyright (C) 1992-2020 The University of Delaware and Network Time Foundation all rights reserved.
This program is released under the terms of the NTP license, <http://ntp.org/license>.
.SH "BUGS"
Please send bug reports to: http://bugs.ntp.org, bugs@ntp.org
--- contrib/ntp/ntpsnmpd/ntpsnmpd.mdoc.in.orig
+++ contrib/ntp/ntpsnmpd/ntpsnmpd.mdoc.in
@@ -1,9 +1,9 @@
-.Dd February 20 2019
+.Dd March 3 2020
.Dt NTPSNMPD @NTPSNMPD_MS@ User Commands
.Os
.\" EDIT THIS FILE WITH CAUTION (ntpsnmpd-opts.mdoc)
.\"
-.\" It has been AutoGen-ed February 20, 2019 at 09:57:05 AM by AutoGen 5.18.5
+.\" It has been AutoGen-ed March 3, 2020 at 05:41:24 PM by AutoGen 5.18.5
.\" From the definitions ntpsnmpd-opts.def
.\" and the template file agmdoc-cmd.tpl
.Sh NAME
@@ -110,7 +110,7 @@
.Sh AUTHORS
.An "Heiko Gerstung"
.Sh "COPYRIGHT"
-Copyright (C) 1992\-2017 The University of Delaware and Network Time Foundation all rights reserved.
+Copyright (C) 1992\-2020 The University of Delaware and Network Time Foundation all rights reserved.
This program is released under the terms of the NTP license, <http://ntp.org/license>.
.Sh "BUGS"
Please send bug reports to: http://bugs.ntp.org, bugs@ntp.org
--- contrib/ntp/packageinfo.sh.orig
+++ contrib/ntp/packageinfo.sh
@@ -83,7 +83,7 @@
# - Numeric values increment
# - empty 'increments' to 1
# - NEW 'increments' to empty
-point=13
+point=14
### betapoint is normally modified by script.
# ntp-stable Beta number (betapoint)
--- contrib/ntp/parseutil/dcfd.c.orig
+++ contrib/ntp/parseutil/dcfd.c
@@ -121,9 +121,9 @@
#define LPRINTF if (interactive && loop_filter_debug) printf
#ifdef DEBUG
-#define dprintf(_x_) LPRINTF _x_
+#define DPRINTF(_x_) LPRINTF _x_
#else
-#define dprintf(_x_)
+#define DPRINTF(_x_)
#endif
#ifdef DECL_ERRNO
@@ -595,7 +595,7 @@
/*
* invalid character (no consecutive bit sequence)
*/
- dprintf(("parse: cvt_rawdcf: character check for 0x%x@%ld FAILED\n",
+ DPRINTF(("parse: cvt_rawdcf: character check for 0x%x@%ld FAILED\n",
(u_int)*s, (long)(s - buffer)));
*s = (unsigned char)~0;
rtc = CVT_FAIL|CVT_BADFMT;
@@ -616,7 +616,7 @@
cutoff = 4; /* doesn't really matter - it'll fail anyway, but gives error output */
}
- dprintf(("parse: cvt_rawdcf: average bit count: %d\n", cutoff));
+ DPRINTF(("parse: cvt_rawdcf: average bit count: %d\n", cutoff));
lowmax = 0; /* weighted sum */
highmax = 0; /* bitcount */
@@ -624,14 +624,14 @@
/*
* collect weighted sum of lower bits (left of initial guess)
*/
- dprintf(("parse: cvt_rawdcf: histogram:"));
+ DPRINTF(("parse: cvt_rawdcf: histogram:"));
for (i = 0; i <= cutoff; i++)
{
lowmax += histbuf[i] * i;
highmax += histbuf[i];
- dprintf((" %d", histbuf[i]));
+ DPRINTF((" %d", histbuf[i]));
}
- dprintf((" <M>"));
+ DPRINTF((" <M>"));
/*
* round up
@@ -662,9 +662,9 @@
{
highmax+=histbuf[i] * i;
cutoff +=histbuf[i];
- dprintf((" %d", histbuf[i]));
+ DPRINTF((" %d", histbuf[i]));
}
- dprintf(("\n"));
+ DPRINTF(("\n"));
/*
* determine upper maximum (weighted sum / bit count)
@@ -716,7 +716,7 @@
*/
cutoff = (cutoff + span) / 2;
- dprintf(("parse: cvt_rawdcf: lower maximum %d, higher maximum %d, cutoff %d\n", lowmax, highmax, cutoff));
+ DPRINTF(("parse: cvt_rawdcf: lower maximum %d, higher maximum %d, cutoff %d\n", lowmax, highmax, cutoff));
/*
* convert the bit counts to symbolic 1/0 information for data conversion
--- contrib/ntp/scripts/build/mkver.in.orig
+++ contrib/ntp/scripts/build/mkver.in
@@ -15,7 +15,12 @@
*) ConfStr="${ConfStr}-@VER_SUFFIX@" ;;
esac
-ConfStr="$ConfStr `LC_TIME=C TZ=UTC date`"
+if [ -n "$SOURCE_DATE_EPOCH" ]; then
+ ConfStr="$ConfStr `LC_TIME=C TZ=UTC date -d@$SOURCE_DATE_EPOCH 2>/dev/null`" ||
+ ConfStr="$ConfStr `LC_TIME=C TZ=UTC date -r $SOURCE_DATE_EPOCH`"
+else
+ ConfStr="$ConfStr `LC_TIME=C TZ=UTC date`"
+fi
if [ ! -f .version ]; then
echo 0 > .version
--- contrib/ntp/scripts/calc_tickadj/calc_tickadj-opts.orig
+++ contrib/ntp/scripts/calc_tickadj/calc_tickadj-opts
@@ -1,6 +1,6 @@
# EDIT THIS FILE WITH CAUTION (calc_tickadj-opts)
#
-# It has been AutoGen-ed August 31, 2014 at 04:52:46 AM by AutoGen 5.18.4
+# It has been AutoGen-ed April 5, 2019 at 01:12:39 AM by AutoGen 5.18.5
# From the definitions calc_tickadj-opts.def
# and the template file perlopt
@@ -39,7 +39,7 @@
'help|?', 'more-help'));
$usage = <<'USAGE';
-calc_tickadj - Calculates "optimal" value for tick given ntp drift file. - Ver. 4.2.7p467
+calc_tickadj - Calculates "optimal" value for tick given ntp drift file. - Ver. 4.2.8p13
USAGE: calc_tickadj [ -<flag> [<val>] | --<name>[{=| }<val>] ]...
-d, --drift-file=str Ntp drift file to use
--- contrib/ntp/scripts/calc_tickadj/calc_tickadj.1calc_tickadjman.orig
+++ contrib/ntp/scripts/calc_tickadj/calc_tickadj.1calc_tickadjman
@@ -10,11 +10,11 @@
.ds B-Font B
.ds I-Font I
.ds R-Font R
-.TH calc_tickadj 1calc_tickadjman "20 Feb 2019" "ntp (4.2.8p13)" "User Commands"
+.TH calc_tickadj 1calc_tickadjman "03 Mar 2020" "ntp (4.2.8p14)" "User Commands"
.\"
.\" EDIT THIS FILE WITH CAUTION (in-mem file)
.\"
-.\" It has been AutoGen-ed February 20, 2019 at 09:57:23 AM by AutoGen 5.18.5
+.\" It has been AutoGen-ed March 3, 2020 at 05:41:52 PM by AutoGen 5.18.5
.\" From the definitions calc_tickadj-opts.def
.\" and the template file agman-cmd.tpl
.SH NAME
--- contrib/ntp/scripts/calc_tickadj/calc_tickadj.1calc_tickadjmdoc.orig
+++ contrib/ntp/scripts/calc_tickadj/calc_tickadj.1calc_tickadjmdoc
@@ -1,9 +1,9 @@
-.Dd February 20 2019
+.Dd March 3 2020
.Dt CALC_TICKADJ 1calc_tickadjmdoc User Commands
.Os
.\" EDIT THIS FILE WITH CAUTION (calc_tickadj-opts.mdoc)
.\"
-.\" It has been AutoGen-ed February 20, 2019 at 09:57:24 AM by AutoGen 5.18.5
+.\" It has been AutoGen-ed March 3, 2020 at 05:41:53 PM by AutoGen 5.18.5
.\" From the definitions calc_tickadj-opts.def
.\" and the template file agmdoc-cmd.tpl
.Sh NAME
--- contrib/ntp/scripts/calc_tickadj/calc_tickadj.html.orig
+++ contrib/ntp/scripts/calc_tickadj/calc_tickadj.html
@@ -58,7 +58,7 @@
<h1 class="top">calc_tickadj User’s Manual</h1>
<p>This document describes the use of the NTP Project’s <code>calc_tickadj</code> program.
-This document applies to version 4.2.8p13 of <code>calc_tickadj</code>.
+This document applies to version 4.2.8p14 of <code>calc_tickadj</code>.
</p>
<a name="SEC_Overview"></a>
<h2 class="shortcontents-heading">Short Table of Contents</h2>
@@ -149,7 +149,7 @@
with a status code of 0.
</p>
<div class="example">
-<pre class="example">calc_tickadj - Calculates "optimal" value for tick given ntp drift file. - Ver. 4.2.7p467
+<pre class="example">calc_tickadj - Calculates "optimal" value for tick given ntp drift file. - Ver. 4.2.8p13
USAGE: calc_tickadj [ -<flag> [<val>] | --<name>[{=| }<val>] ]...
-d, --drift-file=str Ntp drift file to use
--- contrib/ntp/scripts/calc_tickadj/calc_tickadj.man.in.orig
+++ contrib/ntp/scripts/calc_tickadj/calc_tickadj.man.in
@@ -10,11 +10,11 @@
.ds B-Font B
.ds I-Font I
.ds R-Font R
-.TH calc_tickadj 1calc_tickadjman "20 Feb 2019" "ntp (4.2.8p13)" "User Commands"
+.TH calc_tickadj 1calc_tickadjman "03 Mar 2020" "ntp (4.2.8p14)" "User Commands"
.\"
.\" EDIT THIS FILE WITH CAUTION (in-mem file)
.\"
-.\" It has been AutoGen-ed February 20, 2019 at 09:57:23 AM by AutoGen 5.18.5
+.\" It has been AutoGen-ed March 3, 2020 at 05:41:52 PM by AutoGen 5.18.5
.\" From the definitions calc_tickadj-opts.def
.\" and the template file agman-cmd.tpl
.SH NAME
--- contrib/ntp/scripts/calc_tickadj/calc_tickadj.mdoc.in.orig
+++ contrib/ntp/scripts/calc_tickadj/calc_tickadj.mdoc.in
@@ -1,9 +1,9 @@
-.Dd February 20 2019
+.Dd March 3 2020
.Dt CALC_TICKADJ 1calc_tickadjmdoc User Commands
.Os
.\" EDIT THIS FILE WITH CAUTION (calc_tickadj-opts.mdoc)
.\"
-.\" It has been AutoGen-ed February 20, 2019 at 09:57:24 AM by AutoGen 5.18.5
+.\" It has been AutoGen-ed March 3, 2020 at 05:41:53 PM by AutoGen 5.18.5
.\" From the definitions calc_tickadj-opts.def
.\" and the template file agmdoc-cmd.tpl
.Sh NAME
--- contrib/ntp/scripts/calc_tickadj/invoke-calc_tickadj.texi.orig
+++ contrib/ntp/scripts/calc_tickadj/invoke-calc_tickadj.texi
@@ -6,7 +6,7 @@
#
# EDIT THIS FILE WITH CAUTION (invoke-calc_tickadj.texi)
#
-# It has been AutoGen-ed February 20, 2019 at 09:57:25 AM by AutoGen 5.18.5
+# It has been AutoGen-ed March 3, 2020 at 05:41:54 PM by AutoGen 5.18.5
# From the definitions calc_tickadj-opts.def
# and the template file agtexi-cmd.tpl
@end ignore
@@ -63,7 +63,7 @@
@exampleindent 0
@example
-calc_tickadj - Calculates "optimal" value for tick given ntp drift file. - Ver. 4.2.7p467
+calc_tickadj - Calculates "optimal" value for tick given ntp drift file. - Ver. 4.2.8p13
USAGE: calc_tickadj [ -<flag> [<val>] | --<name>[@{=| @}<val>] ]...
-d, --drift-file=str Ntp drift file to use
--- contrib/ntp/scripts/invoke-plot_summary.texi.orig
+++ contrib/ntp/scripts/invoke-plot_summary.texi
@@ -6,7 +6,7 @@
#
# EDIT THIS FILE WITH CAUTION (invoke-plot_summary.texi)
#
-# It has been AutoGen-ed February 20, 2019 at 05:04:25 PM by AutoGen 5.18.5
+# It has been AutoGen-ed March 3, 2020 at 05:42:11 PM by AutoGen 5.18.5
# From the definitions plot_summary-opts.def
# and the template file agtexi-cmd.tpl
@end ignore
@@ -41,7 +41,7 @@
@exampleindent 0
@example
-plot_summary - plot statistics generated by summary script - Ver. 4.2.8p13
+plot_summary - plot statistics generated by summary script - Ver. 4.2.8p14
USAGE: plot_summary [ -<flag> [<val>] | --<name>[@{=| @}<val>] ]...
--directory=str Where the summary files are
--- contrib/ntp/scripts/invoke-summary.texi.orig
+++ contrib/ntp/scripts/invoke-summary.texi
@@ -6,7 +6,7 @@
#
# EDIT THIS FILE WITH CAUTION (invoke-summary.texi)
#
-# It has been AutoGen-ed February 20, 2019 at 05:04:29 PM by AutoGen 5.18.5
+# It has been AutoGen-ed March 3, 2020 at 05:42:15 PM by AutoGen 5.18.5
# From the definitions summary-opts.def
# and the template file agtexi-cmd.tpl
@end ignore
@@ -42,7 +42,7 @@
@exampleindent 0
@example
-summary - compute various stastics from NTP stat files - Ver. 4.2.8p13
+summary - compute various stastics from NTP stat files - Ver. 4.2.8p14
USAGE: summary [ -<flag> [<val>] | --<name>[@{=| @}<val>] ]...
--directory=str Directory containing stat files
--- contrib/ntp/scripts/ntp-wait/invoke-ntp-wait.texi.orig
+++ contrib/ntp/scripts/ntp-wait/invoke-ntp-wait.texi
@@ -6,7 +6,7 @@
#
# EDIT THIS FILE WITH CAUTION (invoke-ntp-wait.texi)
#
-# It has been AutoGen-ed February 20, 2019 at 09:57:28 AM by AutoGen 5.18.5
+# It has been AutoGen-ed March 3, 2020 at 05:41:57 PM by AutoGen 5.18.5
# From the definitions ntp-wait-opts.def
# and the template file agtexi-cmd.tpl
@end ignore
@@ -61,7 +61,7 @@
@exampleindent 0
@example
-ntp-wait - Wait for ntpd to stabilize the system clock - Ver. 4.2.8p13
+ntp-wait - Wait for ntpd to stabilize the system clock - Ver. 4.2.8p14
USAGE: ntp-wait [ -<flag> [<val>] | --<name>[@{=| @}<val>] ]...
-n, --tries=num Number of times to check ntpd
--- contrib/ntp/scripts/ntp-wait/ntp-wait-opts.orig
+++ contrib/ntp/scripts/ntp-wait/ntp-wait-opts
@@ -1,6 +1,6 @@
# EDIT THIS FILE WITH CAUTION (ntp-wait-opts)
#
-# It has been AutoGen-ed February 20, 2019 at 09:57:27 AM by AutoGen 5.18.5
+# It has been AutoGen-ed March 3, 2020 at 05:41:56 PM by AutoGen 5.18.5
# From the definitions ntp-wait-opts.def
# and the template file perlopt
@@ -40,7 +40,7 @@
'help|?', 'more-help'));
$usage = <<'USAGE';
-ntp-wait - Wait for ntpd to stabilize the system clock - Ver. 4.2.8p13
+ntp-wait - Wait for ntpd to stabilize the system clock - Ver. 4.2.8p14
USAGE: ntp-wait [ -<flag> [<val>] | --<name>[{=| }<val>] ]...
-n, --tries=num Number of times to check ntpd
--- contrib/ntp/scripts/ntp-wait/ntp-wait.1ntp-waitman.orig
+++ contrib/ntp/scripts/ntp-wait/ntp-wait.1ntp-waitman
@@ -10,11 +10,11 @@
.ds B-Font B
.ds I-Font I
.ds R-Font R
-.TH ntp-wait 1ntp-waitman "20 Feb 2019" "ntp (4.2.8p13)" "User Commands"
+.TH ntp-wait 1ntp-waitman "03 Mar 2020" "ntp (4.2.8p14)" "User Commands"
.\"
.\" EDIT THIS FILE WITH CAUTION (in-mem file)
.\"
-.\" It has been AutoGen-ed February 20, 2019 at 09:57:30 AM by AutoGen 5.18.5
+.\" It has been AutoGen-ed March 3, 2020 at 05:41:58 PM by AutoGen 5.18.5
.\" From the definitions ntp-wait-opts.def
.\" and the template file agman-cmd.tpl
.SH NAME
--- contrib/ntp/scripts/ntp-wait/ntp-wait.1ntp-waitmdoc.orig
+++ contrib/ntp/scripts/ntp-wait/ntp-wait.1ntp-waitmdoc
@@ -1,9 +1,9 @@
-.Dd February 20 2019
+.Dd March 3 2020
.Dt NTP_WAIT 1ntp-waitmdoc User Commands
.Os
.\" EDIT THIS FILE WITH CAUTION (ntp-wait-opts.mdoc)
.\"
-.\" It has been AutoGen-ed February 20, 2019 at 09:57:27 AM by AutoGen 5.18.5
+.\" It has been AutoGen-ed March 3, 2020 at 05:41:56 PM by AutoGen 5.18.5
.\" From the definitions ntp-wait-opts.def
.\" and the template file agmdoc-cmd.tpl
.Sh NAME
--- contrib/ntp/scripts/ntp-wait/ntp-wait.html.orig
+++ contrib/ntp/scripts/ntp-wait/ntp-wait.html
@@ -68,7 +68,7 @@
and only then start any applicaitons (like database servers) that require
accurate and stable time.
</p>
-<p>This document applies to version 4.2.8p13 of <code>ntp-wait</code>.
+<p>This document applies to version 4.2.8p14 of <code>ntp-wait</code>.
</p>
<a name="SEC_Overview"></a>
<h2 class="shortcontents-heading">Short Table of Contents</h2>
@@ -159,7 +159,7 @@
with a status code of 0.
</p>
<div class="example">
-<pre class="example">ntp-wait - Wait for ntpd to stabilize the system clock - Ver. 4.2.8p13
+<pre class="example">ntp-wait - Wait for ntpd to stabilize the system clock - Ver. 4.2.8p14
USAGE: ntp-wait [ -<flag> [<val>] | --<name>[{=| }<val>] ]...
-n, --tries=num Number of times to check ntpd
--- contrib/ntp/scripts/ntp-wait/ntp-wait.man.in.orig
+++ contrib/ntp/scripts/ntp-wait/ntp-wait.man.in
@@ -10,11 +10,11 @@
.ds B-Font B
.ds I-Font I
.ds R-Font R
-.TH ntp-wait @NTP_WAIT_MS@ "20 Feb 2019" "ntp (4.2.8p13)" "User Commands"
+.TH ntp-wait @NTP_WAIT_MS@ "03 Mar 2020" "ntp (4.2.8p14)" "User Commands"
.\"
.\" EDIT THIS FILE WITH CAUTION (in-mem file)
.\"
-.\" It has been AutoGen-ed February 20, 2019 at 09:57:30 AM by AutoGen 5.18.5
+.\" It has been AutoGen-ed March 3, 2020 at 05:41:58 PM by AutoGen 5.18.5
.\" From the definitions ntp-wait-opts.def
.\" and the template file agman-cmd.tpl
.SH NAME
--- contrib/ntp/scripts/ntp-wait/ntp-wait.mdoc.in.orig
+++ contrib/ntp/scripts/ntp-wait/ntp-wait.mdoc.in
@@ -1,9 +1,9 @@
-.Dd February 20 2019
+.Dd March 3 2020
.Dt NTP_WAIT @NTP_WAIT_MS@ User Commands
.Os
.\" EDIT THIS FILE WITH CAUTION (ntp-wait-opts.mdoc)
.\"
-.\" It has been AutoGen-ed February 20, 2019 at 09:57:27 AM by AutoGen 5.18.5
+.\" It has been AutoGen-ed March 3, 2020 at 05:41:56 PM by AutoGen 5.18.5
.\" From the definitions ntp-wait-opts.def
.\" and the template file agmdoc-cmd.tpl
.Sh NAME
--- contrib/ntp/scripts/ntpsweep/invoke-ntpsweep.texi.orig
+++ contrib/ntp/scripts/ntpsweep/invoke-ntpsweep.texi
@@ -6,7 +6,7 @@
#
# EDIT THIS FILE WITH CAUTION (invoke-ntpsweep.texi)
#
-# It has been AutoGen-ed February 20, 2019 at 09:57:31 AM by AutoGen 5.18.5
+# It has been AutoGen-ed March 3, 2020 at 05:42:00 PM by AutoGen 5.18.5
# From the definitions ntpsweep-opts.def
# and the template file agtexi-cmd.tpl
@end ignore
@@ -45,7 +45,7 @@
@exampleindent 0
@example
-ntpsweep - Print various informations about given ntp servers - Ver. 4.2.8p13
+ntpsweep - Print various informations about given ntp servers - Ver. 4.2.8p14
USAGE: ntpsweep [ -<flag> [<val>] | --<name>[@{=| @}<val>] ]... [hostfile]
-l, --host-list=str Host to execute actions on
--- contrib/ntp/scripts/ntpsweep/ntpsweep-opts.orig
+++ contrib/ntp/scripts/ntpsweep/ntpsweep-opts
@@ -1,6 +1,6 @@
# EDIT THIS FILE WITH CAUTION (ntpsweep-opts)
#
-# It has been AutoGen-ed February 20, 2019 at 09:57:31 AM by AutoGen 5.18.5
+# It has been AutoGen-ed March 3, 2020 at 05:41:59 PM by AutoGen 5.18.5
# From the definitions ntpsweep-opts.def
# and the template file perlopt
@@ -43,7 +43,7 @@
'help|?', 'more-help'));
$usage = <<'USAGE';
-ntpsweep - Print various informations about given ntp servers - Ver. 4.2.8p13
+ntpsweep - Print various informations about given ntp servers - Ver. 4.2.8p14
USAGE: ntpsweep [ -<flag> [<val>] | --<name>[{=| }<val>] ]... [hostfile]
-l, --host-list=str Host to execute actions on
--- contrib/ntp/scripts/ntpsweep/ntpsweep.1ntpsweepman.orig
+++ contrib/ntp/scripts/ntpsweep/ntpsweep.1ntpsweepman
@@ -10,11 +10,11 @@
.ds B-Font B
.ds I-Font I
.ds R-Font R
-.TH ntpsweep 1ntpsweepman "20 Feb 2019" "ntp (4.2.8p13)" "User Commands"
+.TH ntpsweep 1ntpsweepman "03 Mar 2020" "ntp (4.2.8p14)" "User Commands"
.\"
.\" EDIT THIS FILE WITH CAUTION (in-mem file)
.\"
-.\" It has been AutoGen-ed February 20, 2019 at 09:57:33 AM by AutoGen 5.18.5
+.\" It has been AutoGen-ed March 3, 2020 at 05:42:02 PM by AutoGen 5.18.5
.\" From the definitions ntpsweep-opts.def
.\" and the template file agman-cmd.tpl
.SH NAME
--- contrib/ntp/scripts/ntpsweep/ntpsweep.1ntpsweepmdoc.orig
+++ contrib/ntp/scripts/ntpsweep/ntpsweep.1ntpsweepmdoc
@@ -1,9 +1,9 @@
-.Dd February 20 2019
+.Dd March 3 2020
.Dt NTPSWEEP 1ntpsweepmdoc User Commands
.Os
.\" EDIT THIS FILE WITH CAUTION (ntpsweep-opts.mdoc)
.\"
-.\" It has been AutoGen-ed February 20, 2019 at 09:57:32 AM by AutoGen 5.18.5
+.\" It has been AutoGen-ed March 3, 2020 at 05:42:01 PM by AutoGen 5.18.5
.\" From the definitions ntpsweep-opts.def
.\" and the template file agmdoc-cmd.tpl
.Sh NAME
--- contrib/ntp/scripts/ntpsweep/ntpsweep.html.orig
+++ contrib/ntp/scripts/ntpsweep/ntpsweep.html
@@ -59,7 +59,7 @@
<p>This document describes the use of the NTP Project’s <code>ntpsweep</code> program.
</p>
-<p>This document applies to version 4.2.8p13 of <code>ntpsweep</code>.
+<p>This document applies to version 4.2.8p14 of <code>ntpsweep</code>.
</p>
<a name="SEC_Overview"></a>
<h2 class="shortcontents-heading">Short Table of Contents</h2>
@@ -134,7 +134,7 @@
with a status code of 0.
</p>
<div class="example">
-<pre class="example">ntpsweep - Print various informations about given ntp servers - Ver. 4.2.8p13
+<pre class="example">ntpsweep - Print various informations about given ntp servers - Ver. 4.2.8p14
USAGE: ntpsweep [ -<flag> [<val>] | --<name>[{=| }<val>] ]... [hostfile]
-l, --host-list=str Host to execute actions on
--- contrib/ntp/scripts/ntpsweep/ntpsweep.man.in.orig
+++ contrib/ntp/scripts/ntpsweep/ntpsweep.man.in
@@ -10,11 +10,11 @@
.ds B-Font B
.ds I-Font I
.ds R-Font R
-.TH ntpsweep 1ntpsweepman "20 Feb 2019" "ntp (4.2.8p13)" "User Commands"
+.TH ntpsweep 1ntpsweepman "03 Mar 2020" "ntp (4.2.8p14)" "User Commands"
.\"
.\" EDIT THIS FILE WITH CAUTION (in-mem file)
.\"
-.\" It has been AutoGen-ed February 20, 2019 at 09:57:33 AM by AutoGen 5.18.5
+.\" It has been AutoGen-ed March 3, 2020 at 05:42:02 PM by AutoGen 5.18.5
.\" From the definitions ntpsweep-opts.def
.\" and the template file agman-cmd.tpl
.SH NAME
--- contrib/ntp/scripts/ntpsweep/ntpsweep.mdoc.in.orig
+++ contrib/ntp/scripts/ntpsweep/ntpsweep.mdoc.in
@@ -1,9 +1,9 @@
-.Dd February 20 2019
+.Dd March 3 2020
.Dt NTPSWEEP 1ntpsweepmdoc User Commands
.Os
.\" EDIT THIS FILE WITH CAUTION (ntpsweep-opts.mdoc)
.\"
-.\" It has been AutoGen-ed February 20, 2019 at 09:57:32 AM by AutoGen 5.18.5
+.\" It has been AutoGen-ed March 3, 2020 at 05:42:01 PM by AutoGen 5.18.5
.\" From the definitions ntpsweep-opts.def
.\" and the template file agmdoc-cmd.tpl
.Sh NAME
--- contrib/ntp/scripts/ntptrace/invoke-ntptrace.texi.orig
+++ contrib/ntp/scripts/ntptrace/invoke-ntptrace.texi
@@ -6,7 +6,7 @@
#
# EDIT THIS FILE WITH CAUTION (invoke-ntptrace.texi)
#
-# It has been AutoGen-ed February 20, 2019 at 09:57:36 AM by AutoGen 5.18.5
+# It has been AutoGen-ed March 3, 2020 at 05:42:05 PM by AutoGen 5.18.5
# From the definitions ntptrace-opts.def
# and the template file agtexi-cmd.tpl
@end ignore
@@ -62,7 +62,7 @@
@exampleindent 0
@example
-ntptrace - Trace peers of an NTP server - Ver. 4.2.8p13
+ntptrace - Trace peers of an NTP server - Ver. 4.2.8p14
USAGE: ntptrace [ -<flag> [<val>] | --<name>[@{=| @}<val>] ]... [host]
-n, --numeric Print IP addresses instead of hostnames
--- contrib/ntp/scripts/ntptrace/ntptrace-opts.orig
+++ contrib/ntp/scripts/ntptrace/ntptrace-opts
@@ -1,6 +1,6 @@
# EDIT THIS FILE WITH CAUTION (ntptrace-opts)
#
-# It has been AutoGen-ed February 20, 2019 at 09:57:35 AM by AutoGen 5.18.5
+# It has been AutoGen-ed March 3, 2020 at 05:42:03 PM by AutoGen 5.18.5
# From the definitions ntptrace-opts.def
# and the template file perlopt
@@ -40,7 +40,7 @@
'help|?', 'more-help'));
$usage = <<'USAGE';
-ntptrace - Trace peers of an NTP server - Ver. 4.2.8p13
+ntptrace - Trace peers of an NTP server - Ver. 4.2.8p14
USAGE: ntptrace [ -<flag> [<val>] | --<name>[{=| }<val>] ]... [host]
-n, --numeric Print IP addresses instead of hostnames
--- contrib/ntp/scripts/ntptrace/ntptrace.1ntptraceman.orig
+++ contrib/ntp/scripts/ntptrace/ntptrace.1ntptraceman
@@ -10,11 +10,11 @@
.ds B-Font B
.ds I-Font I
.ds R-Font R
-.TH ntptrace 1ntptraceman "20 Feb 2019" "ntp (4.2.8p13)" "User Commands"
+.TH ntptrace 1ntptraceman "03 Mar 2020" "ntp (4.2.8p14)" "User Commands"
.\"
.\" EDIT THIS FILE WITH CAUTION (in-mem file)
.\"
-.\" It has been AutoGen-ed February 20, 2019 at 09:57:37 AM by AutoGen 5.18.5
+.\" It has been AutoGen-ed March 3, 2020 at 05:42:06 PM by AutoGen 5.18.5
.\" From the definitions ntptrace-opts.def
.\" and the template file agman-cmd.tpl
.SH NAME
--- contrib/ntp/scripts/ntptrace/ntptrace.1ntptracemdoc.orig
+++ contrib/ntp/scripts/ntptrace/ntptrace.1ntptracemdoc
@@ -1,9 +1,9 @@
-.Dd February 20 2019
+.Dd March 3 2020
.Dt NTPTRACE 1ntptracemdoc User Commands
.Os
.\" EDIT THIS FILE WITH CAUTION (ntptrace-opts.mdoc)
.\"
-.\" It has been AutoGen-ed February 20, 2019 at 09:57:35 AM by AutoGen 5.18.5
+.\" It has been AutoGen-ed March 3, 2020 at 05:42:03 PM by AutoGen 5.18.5
.\" From the definitions ntptrace-opts.def
.\" and the template file agmdoc-cmd.tpl
.Sh NAME
--- contrib/ntp/scripts/ntptrace/ntptrace.html.orig
+++ contrib/ntp/scripts/ntptrace/ntptrace.html
@@ -59,7 +59,7 @@
<h1 class="top">Simple Network Time Protocol User Manual</h1>
<p>This document describes the use of the NTP Project’s <code>ntptrace</code> program.
-This document applies to version 4.2.8p13 of <code>ntptrace</code>.
+This document applies to version 4.2.8p14 of <code>ntptrace</code>.
</p>
<a name="SEC_Overview"></a>
<h2 class="shortcontents-heading">Short Table of Contents</h2>
@@ -150,7 +150,7 @@
with a status code of 0.
</p>
<div class="example">
-<pre class="example">ntptrace - Trace peers of an NTP server - Ver. 4.2.8p13
+<pre class="example">ntptrace - Trace peers of an NTP server - Ver. 4.2.8p14
USAGE: ntptrace [ -<flag> [<val>] | --<name>[{=| }<val>] ]... [host]
-n, --numeric Print IP addresses instead of hostnames
--- contrib/ntp/scripts/ntptrace/ntptrace.man.in.orig
+++ contrib/ntp/scripts/ntptrace/ntptrace.man.in
@@ -10,11 +10,11 @@
.ds B-Font B
.ds I-Font I
.ds R-Font R
-.TH ntptrace @NTPTRACE_MS@ "20 Feb 2019" "ntp (4.2.8p13)" "User Commands"
+.TH ntptrace @NTPTRACE_MS@ "03 Mar 2020" "ntp (4.2.8p14)" "User Commands"
.\"
.\" EDIT THIS FILE WITH CAUTION (in-mem file)
.\"
-.\" It has been AutoGen-ed February 20, 2019 at 09:57:37 AM by AutoGen 5.18.5
+.\" It has been AutoGen-ed March 3, 2020 at 05:42:06 PM by AutoGen 5.18.5
.\" From the definitions ntptrace-opts.def
.\" and the template file agman-cmd.tpl
.SH NAME
--- contrib/ntp/scripts/ntptrace/ntptrace.mdoc.in.orig
+++ contrib/ntp/scripts/ntptrace/ntptrace.mdoc.in
@@ -1,9 +1,9 @@
-.Dd February 20 2019
+.Dd March 3 2020
.Dt NTPTRACE @NTPTRACE_MS@ User Commands
.Os
.\" EDIT THIS FILE WITH CAUTION (ntptrace-opts.mdoc)
.\"
-.\" It has been AutoGen-ed February 20, 2019 at 09:57:35 AM by AutoGen 5.18.5
+.\" It has been AutoGen-ed March 3, 2020 at 05:42:03 PM by AutoGen 5.18.5
.\" From the definitions ntptrace-opts.def
.\" and the template file agmdoc-cmd.tpl
.Sh NAME
--- contrib/ntp/scripts/plot_summary-opts.orig
+++ contrib/ntp/scripts/plot_summary-opts
@@ -1,6 +1,6 @@
# EDIT THIS FILE WITH CAUTION (plot_summary-opts)
#
-# It has been AutoGen-ed February 20, 2019 at 05:04:25 PM by AutoGen 5.18.5
+# It has been AutoGen-ed March 3, 2020 at 05:42:11 PM by AutoGen 5.18.5
# From the definitions plot_summary-opts.def
# and the template file perlopt
@@ -46,7 +46,7 @@
'help|?', 'more-help'));
$usage = <<'USAGE';
-plot_summary - plot statistics generated by summary script - Ver. 4.2.8p13
+plot_summary - plot statistics generated by summary script - Ver. 4.2.8p14
USAGE: plot_summary [ -<flag> [<val>] | --<name>[{=| }<val>] ]...
--directory=str Where the summary files are
--- contrib/ntp/scripts/plot_summary.1plot_summaryman.orig
+++ contrib/ntp/scripts/plot_summary.1plot_summaryman
@@ -10,11 +10,11 @@
.ds B-Font B
.ds I-Font I
.ds R-Font R
-.TH plot_summary 1plot_summaryman "20 Feb 2019" "ntp (4.2.8p13)" "User Commands"
+.TH plot_summary 1plot_summaryman "03 Mar 2020" "ntp (4.2.8p14)" "User Commands"
.\"
.\" EDIT THIS FILE WITH CAUTION (in-mem file)
.\"
-.\" It has been AutoGen-ed February 20, 2019 at 05:04:26 PM by AutoGen 5.18.5
+.\" It has been AutoGen-ed March 3, 2020 at 05:42:13 PM by AutoGen 5.18.5
.\" From the definitions plot_summary-opts.def
.\" and the template file agman-cmd.tpl
.SH NAME
--- contrib/ntp/scripts/plot_summary.1plot_summarymdoc.orig
+++ contrib/ntp/scripts/plot_summary.1plot_summarymdoc
@@ -1,9 +1,9 @@
-.Dd February 20 2019
+.Dd March 3 2020
.Dt PLOT_SUMMARY 1plot_summarymdoc User Commands
.Os
.\" EDIT THIS FILE WITH CAUTION (plot_summary-opts.mdoc)
.\"
-.\" It has been AutoGen-ed February 20, 2019 at 05:04:27 PM by AutoGen 5.18.5
+.\" It has been AutoGen-ed March 3, 2020 at 05:42:14 PM by AutoGen 5.18.5
.\" From the definitions plot_summary-opts.def
.\" and the template file agmdoc-cmd.tpl
.Sh NAME
--- contrib/ntp/scripts/plot_summary.html.orig
+++ contrib/ntp/scripts/plot_summary.html
@@ -59,7 +59,7 @@
<h1 class="top">Plot_summary User Manual</h1>
<p>This document describes the use of the NTP Project’s <code>plot_summary</code> program.
-This document applies to version 4.2.8p13 of <code>plot_summary</code>.
+This document applies to version 4.2.8p14 of <code>plot_summary</code>.
</p>
<a name="SEC_Overview"></a>
<h2 class="shortcontents-heading">Short Table of Contents</h2>
@@ -131,7 +131,7 @@
with a status code of 0.
</p>
<div class="example">
-<pre class="example">plot_summary - plot statistics generated by summary script - Ver. 4.2.8p13
+<pre class="example">plot_summary - plot statistics generated by summary script - Ver. 4.2.8p14
USAGE: plot_summary [ -<flag> [<val>] | --<name>[{=| }<val>] ]...
--directory=str Where the summary files are
--- contrib/ntp/scripts/plot_summary.man.in.orig
+++ contrib/ntp/scripts/plot_summary.man.in
@@ -10,11 +10,11 @@
.ds B-Font B
.ds I-Font I
.ds R-Font R
-.TH plot_summary 1plot_summaryman "20 Feb 2019" "ntp (4.2.8p13)" "User Commands"
+.TH plot_summary 1plot_summaryman "03 Mar 2020" "ntp (4.2.8p14)" "User Commands"
.\"
.\" EDIT THIS FILE WITH CAUTION (in-mem file)
.\"
-.\" It has been AutoGen-ed February 20, 2019 at 05:04:26 PM by AutoGen 5.18.5
+.\" It has been AutoGen-ed March 3, 2020 at 05:42:13 PM by AutoGen 5.18.5
.\" From the definitions plot_summary-opts.def
.\" and the template file agman-cmd.tpl
.SH NAME
--- contrib/ntp/scripts/plot_summary.mdoc.in.orig
+++ contrib/ntp/scripts/plot_summary.mdoc.in
@@ -1,9 +1,9 @@
-.Dd February 20 2019
+.Dd March 3 2020
.Dt PLOT_SUMMARY 1plot_summarymdoc User Commands
.Os
.\" EDIT THIS FILE WITH CAUTION (plot_summary-opts.mdoc)
.\"
-.\" It has been AutoGen-ed February 20, 2019 at 05:04:27 PM by AutoGen 5.18.5
+.\" It has been AutoGen-ed March 3, 2020 at 05:42:14 PM by AutoGen 5.18.5
.\" From the definitions plot_summary-opts.def
.\" and the template file agmdoc-cmd.tpl
.Sh NAME
--- contrib/ntp/scripts/summary-opts.orig
+++ contrib/ntp/scripts/summary-opts
@@ -1,6 +1,6 @@
# EDIT THIS FILE WITH CAUTION (summary-opts)
#
-# It has been AutoGen-ed February 20, 2019 at 05:04:25 PM by AutoGen 5.18.5
+# It has been AutoGen-ed March 3, 2020 at 05:42:11 PM by AutoGen 5.18.5
# From the definitions summary-opts.def
# and the template file perlopt
@@ -44,7 +44,7 @@
'help|?', 'more-help'));
$usage = <<'USAGE';
-summary - compute various stastics from NTP stat files - Ver. 4.2.8p13
+summary - compute various stastics from NTP stat files - Ver. 4.2.8p14
USAGE: summary [ -<flag> [<val>] | --<name>[{=| }<val>] ]...
--directory=str Directory containing stat files
--- contrib/ntp/scripts/summary.1summaryman.orig
+++ contrib/ntp/scripts/summary.1summaryman
@@ -10,11 +10,11 @@
.ds B-Font B
.ds I-Font I
.ds R-Font R
-.TH summary 1summaryman "20 Feb 2019" "ntp (4.2.8p13)" "User Commands"
+.TH summary 1summaryman "03 Mar 2020" "ntp (4.2.8p14)" "User Commands"
.\"
.\" EDIT THIS FILE WITH CAUTION (in-mem file)
.\"
-.\" It has been AutoGen-ed February 20, 2019 at 05:04:30 PM by AutoGen 5.18.5
+.\" It has been AutoGen-ed March 3, 2020 at 05:42:16 PM by AutoGen 5.18.5
.\" From the definitions summary-opts.def
.\" and the template file agman-cmd.tpl
.SH NAME
--- contrib/ntp/scripts/summary.1summarymdoc.orig
+++ contrib/ntp/scripts/summary.1summarymdoc
@@ -1,9 +1,9 @@
-.Dd February 20 2019
+.Dd March 3 2020
.Dt SUMMARY 1summarymdoc User Commands
.Os
.\" EDIT THIS FILE WITH CAUTION (summary-opts.mdoc)
.\"
-.\" It has been AutoGen-ed February 20, 2019 at 05:04:31 PM by AutoGen 5.18.5
+.\" It has been AutoGen-ed March 3, 2020 at 05:42:17 PM by AutoGen 5.18.5
.\" From the definitions summary-opts.def
.\" and the template file agmdoc-cmd.tpl
.Sh NAME
--- contrib/ntp/scripts/summary.html.orig
+++ contrib/ntp/scripts/summary.html
@@ -59,7 +59,7 @@
<h1 class="top">Summary User Manual</h1>
<p>This document describes the use of the NTP Project’s <code>summary</code> program.
-This document applies to version 4.2.8p13 of <code>summary</code>.
+This document applies to version 4.2.8p14 of <code>summary</code>.
</p>
<a name="SEC_Overview"></a>
<h2 class="shortcontents-heading">Short Table of Contents</h2>
@@ -131,7 +131,7 @@
with a status code of 0.
</p>
<div class="example">
-<pre class="example">summary - compute various stastics from NTP stat files - Ver. 4.2.8p13
+<pre class="example">summary - compute various stastics from NTP stat files - Ver. 4.2.8p14
USAGE: summary [ -<flag> [<val>] | --<name>[{=| }<val>] ]...
--directory=str Directory containing stat files
--- contrib/ntp/scripts/summary.man.in.orig
+++ contrib/ntp/scripts/summary.man.in
@@ -10,11 +10,11 @@
.ds B-Font B
.ds I-Font I
.ds R-Font R
-.TH summary 1summaryman "20 Feb 2019" "ntp (4.2.8p13)" "User Commands"
+.TH summary 1summaryman "03 Mar 2020" "ntp (4.2.8p14)" "User Commands"
.\"
.\" EDIT THIS FILE WITH CAUTION (in-mem file)
.\"
-.\" It has been AutoGen-ed February 20, 2019 at 05:04:30 PM by AutoGen 5.18.5
+.\" It has been AutoGen-ed March 3, 2020 at 05:42:16 PM by AutoGen 5.18.5
.\" From the definitions summary-opts.def
.\" and the template file agman-cmd.tpl
.SH NAME
--- contrib/ntp/scripts/summary.mdoc.in.orig
+++ contrib/ntp/scripts/summary.mdoc.in
@@ -1,9 +1,9 @@
-.Dd February 20 2019
+.Dd March 3 2020
.Dt SUMMARY 1summarymdoc User Commands
.Os
.\" EDIT THIS FILE WITH CAUTION (summary-opts.mdoc)
.\"
-.\" It has been AutoGen-ed February 20, 2019 at 05:04:31 PM by AutoGen 5.18.5
+.\" It has been AutoGen-ed March 3, 2020 at 05:42:17 PM by AutoGen 5.18.5
.\" From the definitions summary-opts.def
.\" and the template file agmdoc-cmd.tpl
.Sh NAME
--- contrib/ntp/scripts/update-leap/invoke-update-leap.texi.orig
+++ contrib/ntp/scripts/update-leap/invoke-update-leap.texi
@@ -6,7 +6,7 @@
#
# EDIT THIS FILE WITH CAUTION (invoke-update-leap.texi)
#
-# It has been AutoGen-ed February 20, 2019 at 05:04:22 PM by AutoGen 5.18.5
+# It has been AutoGen-ed March 3, 2020 at 05:42:09 PM by AutoGen 5.18.5
# From the definitions update-leap-opts.def
# and the template file agtexi-cmd.tpl
@end ignore
--- contrib/ntp/scripts/update-leap/update-leap-opts.orig
+++ contrib/ntp/scripts/update-leap/update-leap-opts
@@ -1,6 +1,6 @@
# EDIT THIS FILE WITH CAUTION (update-leap-opts)
#
-# It has been AutoGen-ed February 20, 2019 at 05:04:25 PM by AutoGen 5.18.5
+# It has been AutoGen-ed March 3, 2020 at 05:42:11 PM by AutoGen 5.18.5
# From the definitions update-leap-opts.def
# and the template file perlopt
@@ -46,7 +46,7 @@
'help|?', 'more-help'));
$usage = <<'USAGE';
-update-leap - leap-seconds file manager/updater - Ver. 4.2.8p13
+update-leap - leap-seconds file manager/updater - Ver. 4.2.8p14
USAGE: update-leap [ -<flag> [<val>] | --<name>[{=| }<val>] ]...
-s, --source-url=str The URL of the master copy of the leapseconds file
--- contrib/ntp/scripts/update-leap/update-leap.1update-leapman.orig
+++ contrib/ntp/scripts/update-leap/update-leap.1update-leapman
@@ -10,11 +10,11 @@
.ds B-Font B
.ds I-Font I
.ds R-Font R
-.TH update-leap 1update-leapman "20 Feb 2019" "ntp (4.2.8p13)" "User Commands"
+.TH update-leap 1update-leapman "03 Mar 2020" "ntp (4.2.8p14)" "User Commands"
.\"
.\" EDIT THIS FILE WITH CAUTION (in-mem file)
.\"
-.\" It has been AutoGen-ed February 20, 2019 at 05:04:24 PM by AutoGen 5.18.5
+.\" It has been AutoGen-ed March 3, 2020 at 05:42:10 PM by AutoGen 5.18.5
.\" From the definitions update-leap-opts.def
.\" and the template file agman-cmd.tpl
.SH NAME
--- contrib/ntp/scripts/update-leap/update-leap.1update-leapmdoc.orig
+++ contrib/ntp/scripts/update-leap/update-leap.1update-leapmdoc
@@ -1,9 +1,9 @@
-.Dd February 20 2019
+.Dd March 3 2020
.Dt UPDATE_LEAP 1update-leapmdoc User Commands
.Os
.\" EDIT THIS FILE WITH CAUTION (update-leap-opts.mdoc)
.\"
-.\" It has been AutoGen-ed February 20, 2019 at 09:57:38 AM by AutoGen 5.18.5
+.\" It has been AutoGen-ed March 3, 2020 at 05:42:07 PM by AutoGen 5.18.5
.\" From the definitions update-leap-opts.def
.\" and the template file agmdoc-cmd.tpl
.Sh NAME
--- contrib/ntp/scripts/update-leap/update-leap.html.orig
+++ contrib/ntp/scripts/update-leap/update-leap.html
@@ -59,7 +59,7 @@
<p>This document describes the use of the NTP Project’s <code>update-leap</code> program.
</p>
-<p>This document applies to version 4.2.8p13 of <code>update-leap</code>.
+<p>This document applies to version 4.2.8p14 of <code>update-leap</code>.
</p>
<a name="SEC_Overview"></a>
<h2 class="shortcontents-heading">Short Table of Contents</h2>
--- contrib/ntp/scripts/update-leap/update-leap.man.in.orig
+++ contrib/ntp/scripts/update-leap/update-leap.man.in
@@ -10,11 +10,11 @@
.ds B-Font B
.ds I-Font I
.ds R-Font R
-.TH update-leap 1update-leapman "20 Feb 2019" "ntp (4.2.8p13)" "User Commands"
+.TH update-leap 1update-leapman "03 Mar 2020" "ntp (4.2.8p14)" "User Commands"
.\"
.\" EDIT THIS FILE WITH CAUTION (in-mem file)
.\"
-.\" It has been AutoGen-ed February 20, 2019 at 05:04:24 PM by AutoGen 5.18.5
+.\" It has been AutoGen-ed March 3, 2020 at 05:42:10 PM by AutoGen 5.18.5
.\" From the definitions update-leap-opts.def
.\" and the template file agman-cmd.tpl
.SH NAME
--- contrib/ntp/scripts/update-leap/update-leap.mdoc.in.orig
+++ contrib/ntp/scripts/update-leap/update-leap.mdoc.in
@@ -1,9 +1,9 @@
-.Dd February 20 2019
+.Dd March 3 2020
.Dt UPDATE_LEAP 1update-leapmdoc User Commands
.Os
.\" EDIT THIS FILE WITH CAUTION (update-leap-opts.mdoc)
.\"
-.\" It has been AutoGen-ed February 20, 2019 at 09:57:38 AM by AutoGen 5.18.5
+.\" It has been AutoGen-ed March 3, 2020 at 05:42:07 PM by AutoGen 5.18.5
.\" From the definitions update-leap-opts.def
.\" and the template file agmdoc-cmd.tpl
.Sh NAME
--- contrib/ntp/sntp/COPYRIGHT.orig
+++ contrib/ntp/sntp/COPYRIGHT
@@ -3,7 +3,7 @@
jpg "Clone me," says Dolly sheepishly.
- Last update: 2-Jan-2017 11:58 UTC
+ Last update: 4-Feb-2020 23:47 UTC
__________________________________________________________________
The following copyright notice applies to all files collectively called
@@ -32,7 +32,7 @@
Burnicki is:
***********************************************************************
* *
-* Copyright (c) Network Time Foundation 2011-2017 *
+* Copyright (c) Network Time Foundation 2011-2020 *
* *
* All Rights Reserved *
* *
--- contrib/ntp/sntp/configure.orig
+++ contrib/ntp/sntp/configure
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.69 for sntp 4.2.8p13.
+# Generated by GNU Autoconf 2.69 for sntp 4.2.8p14.
#
# Report bugs to <http://bugs.ntp.org./>.
#
@@ -590,8 +590,8 @@
# Identity of this package.
PACKAGE_NAME='sntp'
PACKAGE_TARNAME='sntp'
-PACKAGE_VERSION='4.2.8p13'
-PACKAGE_STRING='sntp 4.2.8p13'
+PACKAGE_VERSION='4.2.8p14'
+PACKAGE_STRING='sntp 4.2.8p14'
PACKAGE_BUGREPORT='http://bugs.ntp.org./'
PACKAGE_URL='http://www.ntp.org./'
@@ -1486,7 +1486,7 @@
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures sntp 4.2.8p13 to adapt to many kinds of systems.
+\`configure' configures sntp 4.2.8p14 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -1556,7 +1556,7 @@
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of sntp 4.2.8p13:";;
+ short | recursive ) echo "Configuration of sntp 4.2.8p14:";;
esac
cat <<\_ACEOF
@@ -1707,7 +1707,7 @@
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-sntp configure 4.2.8p13
+sntp configure 4.2.8p14
generated by GNU Autoconf 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
@@ -2416,7 +2416,7 @@
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by sntp $as_me 4.2.8p13, which was
+It was created by sntp $as_me 4.2.8p14, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ $0 $@
@@ -3413,7 +3413,7 @@
# Define the identity of the package.
PACKAGE='sntp'
- VERSION='4.2.8p13'
+ VERSION='4.2.8p14'
cat >>confdefs.h <<_ACEOF
@@ -3506,6 +3506,7 @@
fi
fi
+
# Check whether --enable-silent-rules was given.
if test "${enable_silent_rules+set}" = set; then :
enableval=$enable_silent_rules;
@@ -27146,7 +27147,7 @@
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
-This file was extended by sntp $as_me 4.2.8p13, which was
+This file was extended by sntp $as_me 4.2.8p14, which was
generated by GNU Autoconf 2.69. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -27213,7 +27214,7 @@
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
-sntp config.status 4.2.8p13
+sntp config.status 4.2.8p14
configured by $0, generated by GNU Autoconf 2.69,
with options \\"\$ac_cs_config\\"
--- contrib/ntp/sntp/configure.ac.orig
+++ contrib/ntp/sntp/configure.ac
@@ -1,7 +1,7 @@
dnl SNTP subpackage configure.ac -*- Autoconf -*-
dnl
m4_include([m4/version.m4])
-AC_PREREQ([2.61])
+AC_PREREQ([2.68])
AC_INIT(
[sntp],
[VERSION_NUMBER],
@@ -40,12 +40,10 @@
NTP_CACHEVERSION([sntp], [$sntp_configure_cache_version])
-AM_INIT_AUTOMAKE([1.10 foreign -Wall -Wno-gnu])
-dnl AM_SILENT_RULES req. automake 1.11. [yes] defaults V=0
-m4_ifdef(
- [AM_SILENT_RULES],
- [AM_SILENT_RULES([yes])]
-)
+AM_INIT_AUTOMAKE([1.15 foreign -Wall -Wno-gnu])
+
+AM_SILENT_RULES([yes])
+
AC_CANONICAL_BUILD
AC_CANONICAL_HOST
dnl the 'build' machine is where we run configure and compile
--- contrib/ntp/sntp/crypto.c.orig
+++ contrib/ntp/sntp/crypto.c
@@ -32,7 +32,9 @@
)
{
u_int len = 0;
+#if defined(OPENSSL) && defined(ENABLE_CMAC)
size_t slen = 0;
+#endif
int key_type;
INIT_SSL();
--- contrib/ntp/sntp/include/copyright.def.orig
+++ contrib/ntp/sntp/include/copyright.def
@@ -1,7 +1,7 @@
/* -*- Mode: Text -*- */
copyright = {
- date = "1992-2017";
+ date = "1992-2020";
owner = "The University of Delaware and Network Time Foundation";
eaddr = "http://bugs.ntp.org, bugs@ntp.org";
type = ntp;
--- contrib/ntp/sntp/include/version.def.orig
+++ contrib/ntp/sntp/include/version.def
@@ -1 +1 @@
-version = '4.2.8p13';
+version = '4.2.8p14';
--- contrib/ntp/sntp/include/version.texi.orig
+++ contrib/ntp/sntp/include/version.texi
@@ -1,3 +1,3 @@
-@set UPDATED 20 February 2019
-@set EDITION 4.2.8p13
-@set VERSION 4.2.8p13
+@set UPDATED 03 March 2020
+@set EDITION 4.2.8p14
+@set VERSION 4.2.8p14
--- contrib/ntp/sntp/invoke-sntp.texi.orig
+++ contrib/ntp/sntp/invoke-sntp.texi
@@ -6,7 +6,7 @@
#
# EDIT THIS FILE WITH CAUTION (invoke-sntp.texi)
#
-# It has been AutoGen-ed February 20, 2019 at 09:55:49 AM by AutoGen 5.18.5
+# It has been AutoGen-ed March 3, 2020 at 05:40:02 PM by AutoGen 5.18.5
# From the definitions sntp-opts.def
# and the template file agtexi-cmd.tpl
@end ignore
@@ -101,7 +101,7 @@
@exampleindent 0
@example
-sntp - standard Simple Network Time Protocol client program - Ver. 4.2.8p13
+sntp - standard Simple Network Time Protocol client program - Ver. 4.2.8p14
Usage: sntp [ -<flag> [<val>] | --<name>[@{=| @}<val>] ]... \
[ hostname-or-IP ...]
Flg Arg Option-Name Description
--- contrib/ntp/sntp/libevent/build-aux/ar-lib.orig
+++ contrib/ntp/sntp/libevent/build-aux/ar-lib
@@ -4,7 +4,7 @@
me=ar-lib
scriptversion=2012-03-01.08; # UTC
-# Copyright (C) 2010-2017 Free Software Foundation, Inc.
+# Copyright (C) 2010-2014 Free Software Foundation, Inc.
# Written by Peter Rosin <peda@lysator.liu.se>.
#
# This program is free software; you can redistribute it and/or modify
--- contrib/ntp/sntp/libevent/build-aux/compile.orig
+++ contrib/ntp/sntp/libevent/build-aux/compile
@@ -1,9 +1,9 @@
#! /bin/sh
# Wrapper for compilers which do not understand '-c -o'.
-scriptversion=2016-01-11.22; # UTC
+scriptversion=2012-10-14.11; # UTC
-# Copyright (C) 1999-2017 Free Software Foundation, Inc.
+# Copyright (C) 1999-2014 Free Software Foundation, Inc.
# Written by Tom Tromey <tromey@cygnus.com>.
#
# This program is free software; you can redistribute it and/or modify
@@ -255,8 +255,7 @@
echo "compile $scriptversion"
exit $?
;;
- cl | *[/\\]cl | cl.exe | *[/\\]cl.exe | \
- icl | *[/\\]icl | icl.exe | *[/\\]icl.exe )
+ cl | *[/\\]cl | cl.exe | *[/\\]cl.exe )
func_cl_wrapper "$@" # Doesn't return...
;;
esac
@@ -343,6 +342,6 @@
# eval: (add-hook 'write-file-hooks 'time-stamp)
# time-stamp-start: "scriptversion="
# time-stamp-format: "%:y-%02m-%02d.%02H"
-# time-stamp-time-zone: "UTC0"
+# time-stamp-time-zone: "UTC"
# time-stamp-end: "; # UTC"
# End:
--- contrib/ntp/sntp/libevent/build-aux/config.guess.orig
+++ contrib/ntp/sntp/libevent/build-aux/config.guess
@@ -1,8 +1,8 @@
#! /bin/sh
# Attempt to guess a canonical system name.
-# Copyright 1992-2015 Free Software Foundation, Inc.
+# Copyright 1992-2014 Free Software Foundation, Inc.
-timestamp='2015-03-04'
+timestamp='2014-11-04'
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
@@ -50,7 +50,7 @@
GNU config.guess ($timestamp)
Originally written by Per Bothner.
-Copyright 1992-2015 Free Software Foundation, Inc.
+Copyright 1992-2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
@@ -168,10 +168,8 @@
# Note: NetBSD doesn't particularly care about the vendor
# portion of the name. We always set it to "unknown".
sysctl="sysctl -n hw.machine_arch"
- UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \
- /sbin/$sysctl 2>/dev/null || \
- /usr/sbin/$sysctl 2>/dev/null || \
- echo unknown)`
+ UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
+ /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
case "${UNAME_MACHINE_ARCH}" in
armeb) machine=armeb-unknown ;;
arm*) machine=arm-unknown ;;
@@ -178,17 +176,12 @@
sh3el) machine=shl-unknown ;;
sh3eb) machine=sh-unknown ;;
sh5el) machine=sh5le-unknown ;;
- earmv*)
- arch=`echo ${UNAME_MACHINE_ARCH} | sed -e 's,^e\(armv[0-9]\).*$,\1,'`
- endian=`echo ${UNAME_MACHINE_ARCH} | sed -ne 's,^.*\(eb\)$,\1,p'`
- machine=${arch}${endian}-unknown
- ;;
*) machine=${UNAME_MACHINE_ARCH}-unknown ;;
esac
# The Operating System including object format, if it has switched
# to ELF recently, or will in the future.
case "${UNAME_MACHINE_ARCH}" in
- arm*|earm*|i386|m68k|ns32k|sh3*|sparc|vax)
+ arm*|i386|m68k|ns32k|sh3*|sparc|vax)
eval $set_cc_for_build
if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
| grep -q __ELF__
@@ -204,13 +197,6 @@
os=netbsd
;;
esac
- # Determine ABI tags.
- case "${UNAME_MACHINE_ARCH}" in
- earm*)
- expr='s/^earmv[0-9]/-eabi/;s/eb$//'
- abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"`
- ;;
- esac
# The OS release
# Debian GNU/NetBSD machines have a different userland, and
# thus, need a distinct triplet. However, they do not need
@@ -227,7 +213,7 @@
# Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
# contains redundant information, the shorter form:
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
- echo "${machine}-${os}${release}${abi}"
+ echo "${machine}-${os}${release}"
exit ;;
*:Bitrig:*:*)
UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
@@ -825,7 +811,12 @@
exit ;;
*:FreeBSD:*:*)
UNAME_PROCESSOR=`/usr/bin/uname -p`
- echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
+ case ${UNAME_PROCESSOR} in
+ amd64)
+ echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
+ *)
+ echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
+ esac
exit ;;
i*:CYGWIN*:*)
echo ${UNAME_MACHINE}-pc-cygwin
@@ -942,9 +933,6 @@
crisv32:Linux:*:*)
echo ${UNAME_MACHINE}-axis-linux-${LIBC}
exit ;;
- e2k:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
- exit ;;
frv:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
exit ;;
--- contrib/ntp/sntp/libevent/build-aux/config.sub.orig
+++ contrib/ntp/sntp/libevent/build-aux/config.sub
@@ -1,8 +1,8 @@
#! /bin/sh
# Configuration validation subroutine script.
-# Copyright 1992-2015 Free Software Foundation, Inc.
+# Copyright 1992-2014 Free Software Foundation, Inc.
-timestamp='2015-03-08'
+timestamp='2014-12-03'
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
@@ -68,7 +68,7 @@
version="\
GNU config.sub ($timestamp)
-Copyright 1992-2015 Free Software Foundation, Inc.
+Copyright 1992-2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
@@ -117,7 +117,7 @@
case $maybe_os in
nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
- knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \
+ knetbsd*-gnu* | netbsd*-gnu* | \
kopensolaris*-gnu* | \
storm-chaos* | os2-emx* | rtmk-nova*)
os=-$maybe_os
@@ -259,8 +259,8 @@
| bfin \
| c4x | c8051 | clipper \
| d10v | d30v | dlx | dsp16xx \
- | e2k | epiphany \
- | fido | fr30 | frv | ft32 \
+ | epiphany \
+ | fido | fr30 | frv \
| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
| hexagon \
| i370 | i860 | i960 | ia64 \
@@ -300,7 +300,7 @@
| ns16k | ns32k \
| open8 | or1k | or1knd | or32 \
| pdp10 | pdp11 | pj | pjl \
- | powerpc | powerpc64 | powerpc64le | powerpcle | powerpcspe \
+ | powerpc | powerpc64 | powerpc64le | powerpcle \
| pyramid \
| riscv32 | riscv64 \
| rl78 | rx \
@@ -373,7 +373,7 @@
| aarch64-* | aarch64_be-* \
| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
- | alphapca5[67]-* | alpha64pca5[67]-* | amd64-* | arc-* | arceb-* \
+ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
| arm-* | armbe-* | armle-* | armeb-* | armv*-* \
| avr-* | avr32-* \
| be32-* | be64-* \
@@ -381,7 +381,7 @@
| c[123]* | c30-* | [cjt]90-* | c4x-* \
| c8051-* | clipper-* | craynv-* | cydra-* \
| d10v-* | d30v-* | dlx-* \
- | e2k-* | elxsi-* \
+ | elxsi-* \
| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
| h8300-* | h8500-* \
| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
@@ -426,7 +426,7 @@
| or1k*-* \
| orion-* \
| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
- | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | powerpcspe-* \
+ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
| pyramid-* \
| rl78-* | romp-* | rs6000-* | rx-* \
| sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
@@ -485,6 +485,12 @@
basic_machine=a29k-none
os=-bsd
;;
+ amd64)
+ basic_machine=x86_64-pc
+ ;;
+ amd64-*)
+ basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
amdahl)
basic_machine=580-amdahl
os=-sysv
@@ -512,9 +518,6 @@
basic_machine=i386-pc
os=-aros
;;
- asmjs)
- basic_machine=asmjs-unknown
- ;;
aux)
basic_machine=m68k-apple
os=-aux
@@ -1370,7 +1373,7 @@
| -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
| -sym* | -kopensolaris* | -plan9* \
| -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
- | -aos* | -aros* | -cloudabi* \
+ | -aos* | -aros* \
| -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
| -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
| -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
--- contrib/ntp/sntp/libevent/build-aux/depcomp.orig
+++ contrib/ntp/sntp/libevent/build-aux/depcomp
@@ -1,9 +1,9 @@
#! /bin/sh
# depcomp - compile a program generating dependencies as side-effects
-scriptversion=2016-01-11.22; # UTC
+scriptversion=2013-05-30.07; # UTC
-# Copyright (C) 1999-2017 Free Software Foundation, Inc.
+# Copyright (C) 1999-2014 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -786,6 +786,6 @@
# eval: (add-hook 'write-file-hooks 'time-stamp)
# time-stamp-start: "scriptversion="
# time-stamp-format: "%:y-%02m-%02d.%02H"
-# time-stamp-time-zone: "UTC0"
+# time-stamp-time-zone: "UTC"
# time-stamp-end: "; # UTC"
# End:
--- contrib/ntp/sntp/libevent/build-aux/install-sh.orig
+++ contrib/ntp/sntp/libevent/build-aux/install-sh
@@ -1,7 +1,7 @@
#!/bin/sh
# install - install a program, script, or datafile
-scriptversion=2016-01-11.22; # UTC
+scriptversion=2013-12-25.23; # UTC
# This originates from X11R5 (mit/util/scripts/install.sh), which was
# later released in X11R6 (xc/config/util/install.sh) with the
@@ -496,6 +496,6 @@
# eval: (add-hook 'write-file-hooks 'time-stamp)
# time-stamp-start: "scriptversion="
# time-stamp-format: "%:y-%02m-%02d.%02H"
-# time-stamp-time-zone: "UTC0"
+# time-stamp-time-zone: "UTC"
# time-stamp-end: "; # UTC"
# End:
--- contrib/ntp/sntp/libevent/build-aux/missing.orig
+++ contrib/ntp/sntp/libevent/build-aux/missing
@@ -1,9 +1,9 @@
#! /bin/sh
# Common wrapper for a few potentially missing GNU programs.
-scriptversion=2016-01-11.22; # UTC
+scriptversion=2013-10-28.13; # UTC
-# Copyright (C) 1996-2017 Free Software Foundation, Inc.
+# Copyright (C) 1996-2014 Free Software Foundation, Inc.
# Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
# This program is free software; you can redistribute it and/or modify
@@ -210,6 +210,6 @@
# eval: (add-hook 'write-file-hooks 'time-stamp)
# time-stamp-start: "scriptversion="
# time-stamp-format: "%:y-%02m-%02d.%02H"
-# time-stamp-time-zone: "UTC0"
+# time-stamp-time-zone: "UTC"
# time-stamp-end: "; # UTC"
# End:
--- contrib/ntp/sntp/libevent/build-aux/test-driver.orig
+++ contrib/ntp/sntp/libevent/build-aux/test-driver
@@ -1,9 +1,9 @@
#! /bin/sh
# test-driver - basic testsuite driver script.
-scriptversion=2016-01-11.22; # UTC
+scriptversion=2013-07-13.22; # UTC
-# Copyright (C) 2011-2017 Free Software Foundation, Inc.
+# Copyright (C) 2011-2014 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -143,6 +143,6 @@
# eval: (add-hook 'write-file-hooks 'time-stamp)
# time-stamp-start: "scriptversion="
# time-stamp-format: "%:y-%02m-%02d.%02H"
-# time-stamp-time-zone: "UTC0"
+# time-stamp-time-zone: "UTC"
# time-stamp-end: "; # UTC"
# End:
--- contrib/ntp/sntp/libevent/build-aux/ylwrap.orig
+++ contrib/ntp/sntp/libevent/build-aux/ylwrap
@@ -1,9 +1,9 @@
#! /bin/sh
# ylwrap - wrapper for lex/yacc invocations.
-scriptversion=2016-01-11.22; # UTC
+scriptversion=2013-01-12.17; # UTC
-# Copyright (C) 1996-2017 Free Software Foundation, Inc.
+# Copyright (C) 1996-2014 Free Software Foundation, Inc.
#
# Written by Tom Tromey <tromey@cygnus.com>.
#
@@ -242,6 +242,6 @@
# eval: (add-hook 'write-file-hooks 'time-stamp)
# time-stamp-start: "scriptversion="
# time-stamp-format: "%:y-%02m-%02d.%02H"
-# time-stamp-time-zone: "UTC0"
+# time-stamp-time-zone: "UTC"
# time-stamp-end: "; # UTC"
# End:
--- contrib/ntp/sntp/libevent/test/regress.gen.c.orig
+++ contrib/ntp/sntp/libevent/test/regress.gen.c
@@ -1,5 +1,5 @@
/*
- * Automatically generated from ../../../sntp/libevent/test/regress.rpc
+ * Automatically generated from /ntpbuild/data/snaps/ntp-stable/sntp/libevent/test/regress.rpc
* by event_rpcgen.py/0.1. DO NOT EDIT THIS FILE.
*/
--- contrib/ntp/sntp/libevent/test/regress.gen.h.orig
+++ contrib/ntp/sntp/libevent/test/regress.gen.h
@@ -1,9 +1,9 @@
/*
- * Automatically generated from ../../../sntp/libevent/test/regress.rpc
+ * Automatically generated from /ntpbuild/data/snaps/ntp-stable/sntp/libevent/test/regress.rpc
*/
-#ifndef EVENT_RPCOUT__________SNTP_LIBEVENT_TEST_REGRESS_RPC_
-#define EVENT_RPCOUT__________SNTP_LIBEVENT_TEST_REGRESS_RPC_
+#ifndef EVENT_RPCOUT__NTPBUILD_DATA_SNAPS_NTP_STABLE_SNTP_LIBEVENT_TEST_REGRESS_RPC_
+#define EVENT_RPCOUT__NTPBUILD_DATA_SNAPS_NTP_STABLE_SNTP_LIBEVENT_TEST_REGRESS_RPC_
#include <event2/util.h> /* for ev_uint*_t */
#include <event2/rpc.h>
@@ -204,4 +204,4 @@
ev_uint32_t * run_other_numbers_add(struct run *msg, const ev_uint32_t value);
/* --- run done --- */
-#endif /* EVENT_RPCOUT__________SNTP_LIBEVENT_TEST_REGRESS_RPC_ */
+#endif /* EVENT_RPCOUT__NTPBUILD_DATA_SNAPS_NTP_STABLE_SNTP_LIBEVENT_TEST_REGRESS_RPC_ */
--- contrib/ntp/sntp/libopts/m4/libopts.m4.orig
+++ contrib/ntp/sntp/libopts/m4/libopts.m4
@@ -216,7 +216,7 @@
LIBREGEX_LIBS=""
AC_MSG_CHECKING([whether libregex functions properly])
AC_CACHE_VAL([libopts_cv_with_libregex],[
- AC_RUN_IFELSE([@%:@include <stdio.h>
+ AC_RUN_IFELSE([AC_LANG_SOURCE([@%:@include <stdio.h>
@%:@include <stdlib.h>
@%:@include <sys/types.h>
@%:@include REGEX_HEADER
@@ -235,7 +235,7 @@
fputs( "error: regex -->.<-- did not match\n", stderr );
return 1;
}
- return 0; }],
+ return 0; }])],
[libopts_cv_with_libregex=yes], [libopts_cv_with_libregex=no],
[libopts_cv_with_libregex=no]) # end of AC_RUN_IFELSE
]) # end of AC_CACHE_VAL for libopts_cv_with_libregex
@@ -260,12 +260,12 @@
AC_DEFUN([LIBOPTS_RUN_PATHFIND],[
AC_MSG_CHECKING([whether pathfind(3) works])
AC_CACHE_VAL([libopts_cv_run_pathfind],[
- AC_RUN_IFELSE([@%:@include <string.h>
+ AC_RUN_IFELSE([AC_LANG_SOURCE([@%:@include <string.h>
@%:@include <stdlib.h>
int main (int argc, char ** argv) {
char * pz = pathfind( getenv( "PATH" ), "sh", "x" );
return (pz == 0) ? 1 : 0;
-}],
+}])],
[libopts_cv_run_pathfind=yes],[libopts_cv_run_pathfind=no],[libopts_cv_run_pathfind=no]
) # end of RUN_IFELSE
]) # end of AC_CACHE_VAL for libopts_cv_run_pathfind
@@ -303,7 +303,7 @@
AC_DEFUN([LIBOPTS_RUN_REALPATH],[
AC_MSG_CHECKING([whether we have a functional realpath(3C)])
AC_CACHE_VAL([libopts_cv_run_realpath],[
- AC_RUN_IFELSE([@%:@include <limits.h>
+ AC_RUN_IFELSE([AC_LANG_SOURCE([@%:@include <limits.h>
@%:@include <stdlib.h>
int main (int argc, char ** argv) {
@%:@ifndef PATH_MAX
@@ -313,7 +313,7 @@
@%:@endif
char *pz = realpath(argv@<:@0@:>@, zPath);
return (pz == zPath) ? 0 : 1;
-}],
+}])],
[libopts_cv_run_realpath=yes],[libopts_cv_run_realpath=no],[libopts_cv_run_realpath=no]
) # end of RUN_IFELSE
]) # end of AC_CACHE_VAL for libopts_cv_run_realpath
@@ -330,7 +330,7 @@
AC_DEFUN([LIBOPTS_RUN_STRFTIME],[
AC_MSG_CHECKING([whether strftime() works])
AC_CACHE_VAL([libopts_cv_run_strftime],[
- AC_RUN_IFELSE([@%:@include <time.h>
+ AC_RUN_IFELSE([AC_LANG_SOURCE([@%:@include <time.h>
@%:@include <string.h>
char t_buf@<:@ 64 @:>@;
int main() {
@@ -346,7 +346,7 @@
tm.tm_yday = 239; /* days since January 1 @<:@0, 365@:>@ */
tm.tm_isdst = 1; /* flag for daylight savings time */
strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm );
- return (strcmp( t_buf, z ) != 0); }],
+ return (strcmp( t_buf, z ) != 0); }])],
[libopts_cv_run_strftime=yes],[libopts_cv_run_strftime=no],[libopts_cv_run_strftime=no]
) # end of RUN_IFELSE
]) # end of AC_CACHE_VAL for libopts_cv_run_strftime
@@ -363,10 +363,10 @@
AC_DEFUN([LIBOPTS_RUN_FOPEN_BINARY],[
AC_MSG_CHECKING([whether fopen accepts "b" mode])
AC_CACHE_VAL([libopts_cv_run_fopen_binary],[
- AC_RUN_IFELSE([@%:@include <stdio.h>
+ AC_RUN_IFELSE([AC_LANG_SOURCE([@%:@include <stdio.h>
int main (int argc, char ** argv) {
FILE * fp = fopen("conftest.@S|@ac_ext", "rb");
-return (fp == NULL) ? 1 : fclose(fp); }],
+return (fp == NULL) ? 1 : fclose(fp); }])],
[libopts_cv_run_fopen_binary=yes],[libopts_cv_run_fopen_binary=no],[libopts_cv_run_fopen_binary=no]
) # end of RUN_IFELSE
]) # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary
@@ -386,10 +386,10 @@
AC_DEFUN([LIBOPTS_RUN_FOPEN_TEXT],[
AC_MSG_CHECKING([whether fopen accepts "t" mode])
AC_CACHE_VAL([libopts_cv_run_fopen_text],[
- AC_RUN_IFELSE([@%:@include <stdio.h>
+ AC_RUN_IFELSE([AC_LANG_SOURCE([@%:@include <stdio.h>
int main (int argc, char ** argv) {
FILE * fp = fopen("conftest.@S|@ac_ext", "rt");
-return (fp == NULL) ? 1 : fclose(fp); }],
+return (fp == NULL) ? 1 : fclose(fp); }])],
[libopts_cv_run_fopen_text=yes],[libopts_cv_run_fopen_text=no],[libopts_cv_run_fopen_text=no]
) # end of RUN_IFELSE
]) # end of AC_CACHE_VAL for libopts_cv_run_fopen_text
--- contrib/ntp/sntp/m4/ntp_problemtests.m4.orig
+++ contrib/ntp/sntp/m4/ntp_problemtests.m4
@@ -33,6 +33,10 @@
no:0:*-*-solaris*) ;;
*) ntp_test_ntp_restrict="yes" ;;
esac
+case "$ntp_cv_gc_sections_runs" in
+ no) ntp_test_ntp_restrict="no" ;;
+ * ) ;;
+esac
AC_MSG_RESULT([$ntp_test_ntp_restrict])
AM_CONDITIONAL([BUILD_TEST_NTP_RESTRICT], [test x$ntp_test_ntp_restrict = xyes])
@@ -43,6 +47,10 @@
no:0:*-*-solaris*) ;;
*) ntp_test_ntp_scanner="yes" ;;
esac
+case "$ntp_cv_gc_sections_runs" in
+ no) ntp_test_ntp_scanner="no" ;;
+ * ) ;;
+esac
AC_MSG_RESULT([$ntp_test_ntp_scanner])
AM_CONDITIONAL([BUILD_TEST_NTP_SCANNER], [test x$ntp_test_ntp_scanner = xyes])
@@ -53,6 +61,10 @@
no:0:*-*-solaris*) ;;
*) ntp_test_ntp_signd="yes" ;;
esac
+case "$ntp_cv_gc_sections_runs" in
+ no) ntp_test_ntp_signd="no" ;;
+ * ) ;;
+esac
AC_MSG_RESULT([$ntp_test_ntp_signd])
AM_CONDITIONAL([BUILD_TEST_NTP_SIGND], [test x$ntp_test_ntp_signd = xyes])
--- contrib/ntp/sntp/m4/version.m4.orig
+++ contrib/ntp/sntp/m4/version.m4
@@ -1 +1 @@
-m4_define([VERSION_NUMBER],[4.2.8p13])
+m4_define([VERSION_NUMBER],[4.2.8p14])
--- contrib/ntp/sntp/main.c.orig
+++ contrib/ntp/sntp/main.c
@@ -8,6 +8,10 @@
# include <event2/thread.h>
#endif
+#ifdef HAVE_SYSEXITS_H
+# include <sysexits.h>
+#endif
+
#include "main.h"
#include "ntp_libopts.h"
#include "kod_management.h"
--- contrib/ntp/sntp/networking.c.orig
+++ contrib/ntp/sntp/networking.c
@@ -26,7 +26,7 @@
cc = sendto(rsock, (void *)pkt, len, 0, &dest->sa,
SOCKLEN(dest));
if (cc == SOCKET_ERROR) {
- msyslog(LOG_ERR, "Send to %s failed, %m",
+ msyslog(LOG_ERR, "sendpkt: sendto(%s) failed: %m",
sptoa(dest));
return FALSE;
}
--- contrib/ntp/sntp/scm-rev.orig
+++ contrib/ntp/sntp/scm-rev
@@ -1 +1 @@
-1.3847
+1.3728
--- contrib/ntp/sntp/sntp-opts.c.orig
+++ contrib/ntp/sntp/sntp-opts.c
@@ -1,7 +1,7 @@
/*
* EDIT THIS FILE WITH CAUTION (sntp-opts.c)
*
- * It has been AutoGen-ed February 20, 2019 at 09:55:45 AM by AutoGen 5.18.5
+ * It has been AutoGen-ed March 3, 2020 at 05:39:59 PM by AutoGen 5.18.5
* From the definitions sntp-opts.def
* and the template file options
*
@@ -18,7 +18,7 @@
* The sntp program is copyrighted and licensed
* under the following terms:
*
- * Copyright (C) 1992-2017 The University of Delaware and Network Time Foundation, all rights reserved.
+ * Copyright (C) 1992-2020 The University of Delaware and Network Time Foundation, all rights reserved.
* This is free software. It is licensed for use, modification and
* redistribution under the terms of the NTP License, copies of which
* can be seen at:
@@ -70,8 +70,8 @@
* static const strings for sntp options
*/
static char const sntp_opt_strs[2566] =
-/* 0 */ "sntp 4.2.8p13\n"
- "Copyright (C) 1992-2017 The University of Delaware and Network Time Foundation, all rights reserved.\n"
+/* 0 */ "sntp 4.2.8p14\n"
+ "Copyright (C) 1992-2020 The University of Delaware and Network Time Foundation, all rights reserved.\n"
"This is free software. It is licensed for use, modification and\n"
"redistribution under the terms of the NTP License, copies of which\n"
"can be seen at:\n"
@@ -156,7 +156,7 @@
/* 2313 */ "LOAD_OPTS\0"
/* 2323 */ "no-load-opts\0"
/* 2336 */ "SNTP\0"
-/* 2341 */ "sntp - standard Simple Network Time Protocol client program - Ver. 4.2.8p13\n"
+/* 2341 */ "sntp - standard Simple Network Time Protocol client program - Ver. 4.2.8p14\n"
"Usage: %s [ -<flag> [<val>] | --<name>[{=| }<val>] ]... \\\n"
"\t\t[ hostname-or-IP ...]\n\0"
/* 2501 */ "$HOME\0"
@@ -164,7 +164,7 @@
/* 2509 */ ".ntprc\0"
/* 2516 */ "http://bugs.ntp.org, bugs@ntp.org\0"
/* 2550 */ "\n\0"
-/* 2552 */ "sntp 4.2.8p13";
+/* 2552 */ "sntp 4.2.8p14";
/**
* ipv4 option description with
@@ -1176,8 +1176,8 @@
translate option names.
*/
/* referenced via sntpOptions.pzCopyright */
- puts(_("sntp 4.2.8p13\n\
-Copyright (C) 1992-2017 The University of Delaware and Network Time Foundation, all rights reserved.\n\
+ puts(_("sntp 4.2.8p14\n\
+Copyright (C) 1992-2020 The University of Delaware and Network Time Foundation, all rights reserved.\n\
This is free software. It is licensed for use, modification and\n\
redistribution under the terms of the NTP License, copies of which\n\
can be seen at:\n"));
@@ -1266,7 +1266,7 @@
puts(_("load options from a config file"));
/* referenced via sntpOptions.pzUsageTitle */
- puts(_("sntp - standard Simple Network Time Protocol client program - Ver. 4.2.8p13\n\
+ puts(_("sntp - standard Simple Network Time Protocol client program - Ver. 4.2.8p14\n\
Usage: %s [ -<flag> [<val>] | --<name>[{=| }<val>] ]... \\\n\
\t\t[ hostname-or-IP ...]\n"));
@@ -1274,7 +1274,7 @@
puts(_("\n"));
/* referenced via sntpOptions.pzFullVersion */
- puts(_("sntp 4.2.8p13"));
+ puts(_("sntp 4.2.8p14"));
/* referenced via sntpOptions.pzFullUsage */
puts(_("<<<NOT-FOUND>>>"));
--- contrib/ntp/sntp/sntp-opts.h.orig
+++ contrib/ntp/sntp/sntp-opts.h
@@ -1,7 +1,7 @@
/*
* EDIT THIS FILE WITH CAUTION (sntp-opts.h)
*
- * It has been AutoGen-ed February 20, 2019 at 09:55:45 AM by AutoGen 5.18.5
+ * It has been AutoGen-ed March 3, 2020 at 05:39:58 PM by AutoGen 5.18.5
* From the definitions sntp-opts.def
* and the template file options
*
@@ -18,7 +18,7 @@
* The sntp program is copyrighted and licensed
* under the following terms:
*
- * Copyright (C) 1992-2017 The University of Delaware and Network Time Foundation, all rights reserved.
+ * Copyright (C) 1992-2020 The University of Delaware and Network Time Foundation, all rights reserved.
* This is free software. It is licensed for use, modification and
* redistribution under the terms of the NTP License, copies of which
* can be seen at:
@@ -91,9 +91,9 @@
/** count of all options for sntp */
#define OPTION_CT 23
/** sntp version */
-#define SNTP_VERSION "4.2.8p13"
+#define SNTP_VERSION "4.2.8p14"
/** Full sntp version text */
-#define SNTP_FULL_VERSION "sntp 4.2.8p13"
+#define SNTP_FULL_VERSION "sntp 4.2.8p14"
/**
* Interface defines for all options. Replace "n" with the UPPER_CASED
--- contrib/ntp/sntp/sntp.1sntpman.orig
+++ contrib/ntp/sntp/sntp.1sntpman
@@ -10,11 +10,11 @@
.ds B-Font B
.ds I-Font I
.ds R-Font R
-.TH sntp 1sntpman "20 Feb 2019" "4.2.8p13" "User Commands"
+.TH sntp 1sntpman "03 Mar 2020" "4.2.8p14" "User Commands"
.\"
.\" EDIT THIS FILE WITH CAUTION (in-mem file)
.\"
-.\" It has been AutoGen-ed February 20, 2019 at 09:55:51 AM by AutoGen 5.18.5
+.\" It has been AutoGen-ed March 3, 2020 at 05:40:04 PM by AutoGen 5.18.5
.\" From the definitions sntp-opts.def
.\" and the template file agman-cmd.tpl
.SH NAME
@@ -353,7 +353,7 @@
.NOP "Dave Hart"
.br
.SH "COPYRIGHT"
-Copyright (C) 1992-2017 The University of Delaware and Network Time Foundation all rights reserved.
+Copyright (C) 1992-2020 The University of Delaware and Network Time Foundation all rights reserved.
This program is released under the terms of the NTP license, <http://ntp.org/license>.
.SH "BUGS"
Please send bug reports to: http://bugs.ntp.org, bugs@ntp.org
--- contrib/ntp/sntp/sntp.1sntpmdoc.orig
+++ contrib/ntp/sntp/sntp.1sntpmdoc
@@ -1,9 +1,9 @@
-.Dd February 20 2019
+.Dd March 3 2020
.Dt SNTP 1sntpmdoc User Commands
.Os
.\" EDIT THIS FILE WITH CAUTION (sntp-opts.mdoc)
.\"
-.\" It has been AutoGen-ed February 20, 2019 at 09:55:48 AM by AutoGen 5.18.5
+.\" It has been AutoGen-ed March 3, 2020 at 05:40:01 PM by AutoGen 5.18.5
.\" From the definitions sntp-opts.def
.\" and the template file agmdoc-cmd.tpl
.Sh NAME
@@ -308,7 +308,7 @@
.An "Harlan Stenn"
.An "Dave Hart"
.Sh "COPYRIGHT"
-Copyright (C) 1992\-2017 The University of Delaware and Network Time Foundation all rights reserved.
+Copyright (C) 1992\-2020 The University of Delaware and Network Time Foundation all rights reserved.
This program is released under the terms of the NTP license, <http://ntp.org/license>.
.Sh "BUGS"
Please send bug reports to: http://bugs.ntp.org, bugs@ntp.org
--- contrib/ntp/sntp/sntp.html.orig
+++ contrib/ntp/sntp/sntp.html
@@ -64,7 +64,7 @@
clock. Run as root, it can correct the system clock to this offset as
well. It can be run as an interactive command or from a cron job.
</p>
-<p>This document applies to version 4.2.8p13 of <code>sntp</code>.
+<p>This document applies to version 4.2.8p14 of <code>sntp</code>.
</p>
<p>The program implements the SNTP protocol as defined by RFC 5905, the NTPv4
IETF specification.
@@ -243,7 +243,7 @@
with a status code of 0.
</p>
<div class="example">
-<pre class="example">sntp - standard Simple Network Time Protocol client program - Ver. 4.2.8p13
+<pre class="example">sntp - standard Simple Network Time Protocol client program - Ver. 4.2.8p14
Usage: sntp [ -<flag> [<val>] | --<name>[{=| }<val>] ]... \
[ hostname-or-IP ...]
Flg Arg Option-Name Description
--- contrib/ntp/sntp/sntp.man.in.orig
+++ contrib/ntp/sntp/sntp.man.in
@@ -10,11 +10,11 @@
.ds B-Font B
.ds I-Font I
.ds R-Font R
-.TH sntp @SNTP_MS@ "20 Feb 2019" "4.2.8p13" "User Commands"
+.TH sntp @SNTP_MS@ "03 Mar 2020" "4.2.8p14" "User Commands"
.\"
.\" EDIT THIS FILE WITH CAUTION (in-mem file)
.\"
-.\" It has been AutoGen-ed February 20, 2019 at 09:55:51 AM by AutoGen 5.18.5
+.\" It has been AutoGen-ed March 3, 2020 at 05:40:04 PM by AutoGen 5.18.5
.\" From the definitions sntp-opts.def
.\" and the template file agman-cmd.tpl
.SH NAME
@@ -353,7 +353,7 @@
.NOP "Dave Hart"
.br
.SH "COPYRIGHT"
-Copyright (C) 1992-2017 The University of Delaware and Network Time Foundation all rights reserved.
+Copyright (C) 1992-2020 The University of Delaware and Network Time Foundation all rights reserved.
This program is released under the terms of the NTP license, <http://ntp.org/license>.
.SH "BUGS"
Please send bug reports to: http://bugs.ntp.org, bugs@ntp.org
--- contrib/ntp/sntp/sntp.mdoc.in.orig
+++ contrib/ntp/sntp/sntp.mdoc.in
@@ -1,9 +1,9 @@
-.Dd February 20 2019
+.Dd March 3 2020
.Dt SNTP @SNTP_MS@ User Commands
.Os
.\" EDIT THIS FILE WITH CAUTION (sntp-opts.mdoc)
.\"
-.\" It has been AutoGen-ed February 20, 2019 at 09:55:48 AM by AutoGen 5.18.5
+.\" It has been AutoGen-ed March 3, 2020 at 05:40:01 PM by AutoGen 5.18.5
.\" From the definitions sntp-opts.def
.\" and the template file agmdoc-cmd.tpl
.Sh NAME
@@ -308,7 +308,7 @@
.An "Harlan Stenn"
.An "Dave Hart"
.Sh "COPYRIGHT"
-Copyright (C) 1992\-2017 The University of Delaware and Network Time Foundation all rights reserved.
+Copyright (C) 1992\-2020 The University of Delaware and Network Time Foundation all rights reserved.
This program is released under the terms of the NTP license, <http://ntp.org/license>.
.Sh "BUGS"
Please send bug reports to: http://bugs.ntp.org, bugs@ntp.org
--- contrib/ntp/sntp/tests/run-crypto.c.orig
+++ contrib/ntp/sntp/tests/run-crypto.c
@@ -43,7 +43,9 @@
//=======Suite Setup=====
static void suite_setup(void)
{
+extern int change_iobufs(int);
extern int change_logfile(const char*, int);
+change_iobufs(1);
change_logfile("stderr", 0);
}
--- contrib/ntp/sntp/tests/run-keyFile.c.orig
+++ contrib/ntp/sntp/tests/run-keyFile.c
@@ -41,7 +41,9 @@
//=======Suite Setup=====
static void suite_setup(void)
{
+extern int change_iobufs(int);
extern int change_logfile(const char*, int);
+change_iobufs(1);
change_logfile("stderr", 0);
}
--- contrib/ntp/sntp/tests/run-kodDatabase.c.orig
+++ contrib/ntp/sntp/tests/run-kodDatabase.c
@@ -44,7 +44,9 @@
//=======Suite Setup=====
static void suite_setup(void)
{
+extern int change_iobufs(int);
extern int change_logfile(const char*, int);
+change_iobufs(1);
change_logfile("stderr", 0);
}
--- contrib/ntp/sntp/tests/run-kodFile.c.orig
+++ contrib/ntp/sntp/tests/run-kodFile.c
@@ -42,7 +42,9 @@
//=======Suite Setup=====
static void suite_setup(void)
{
+extern int change_iobufs(int);
extern int change_logfile(const char*, int);
+change_iobufs(1);
change_logfile("stderr", 0);
}
--- contrib/ntp/sntp/tests/run-networking.c.orig
+++ contrib/ntp/sntp/tests/run-networking.c
@@ -34,7 +34,9 @@
//=======Suite Setup=====
static void suite_setup(void)
{
+extern int change_iobufs(int);
extern int change_logfile(const char*, int);
+change_iobufs(1);
change_logfile("stderr", 0);
}
--- contrib/ntp/sntp/tests/run-packetHandling.c.orig
+++ contrib/ntp/sntp/tests/run-packetHandling.c
@@ -50,7 +50,9 @@
//=======Suite Setup=====
static void suite_setup(void)
{
+extern int change_iobufs(int);
extern int change_logfile(const char*, int);
+change_iobufs(1);
change_logfile("stderr", 0);
}
--- contrib/ntp/sntp/tests/run-packetProcessing.c.orig
+++ contrib/ntp/sntp/tests/run-packetProcessing.c
@@ -54,7 +54,9 @@
//=======Suite Setup=====
static void suite_setup(void)
{
+extern int change_iobufs(int);
extern int change_logfile(const char*, int);
+change_iobufs(1);
change_logfile("stderr", 0);
}
--- contrib/ntp/sntp/tests/run-t-log.c.orig
+++ contrib/ntp/sntp/tests/run-t-log.c
@@ -36,7 +36,9 @@
//=======Suite Setup=====
static void suite_setup(void)
{
+extern int change_iobufs(int);
extern int change_logfile(const char*, int);
+change_iobufs(1);
change_logfile("stderr", 0);
}
--- contrib/ntp/sntp/tests/run-utilities.c.orig
+++ contrib/ntp/sntp/tests/run-utilities.c
@@ -44,7 +44,9 @@
//=======Suite Setup=====
static void suite_setup(void)
{
+extern int change_iobufs(int);
extern int change_logfile(const char*, int);
+change_iobufs(1);
change_logfile("stderr", 0);
}
--- contrib/ntp/sntp/tests/testconf.yml.orig
+++ contrib/ntp/sntp/tests/testconf.yml
@@ -4,6 +4,8 @@
---
:unity:
:suite_setup:
+ - extern int change_iobufs(int);
- extern int change_logfile(const char*, int);
+ - change_iobufs(1);
- change_logfile("stderr", 0);
--- contrib/ntp/sntp/version.c.orig
+++ contrib/ntp/sntp/version.c
@@ -2,4 +2,4 @@
* version file for sntp
*/
#include <config.h>
-const char * Version = "sntp 4.2.8p13@1.3847-o Thu Feb 21 01:04:54 UTC 2019 (1)";
+const char * Version = "sntp 4.2.8p14@1.3728-o Wed Mar 4 01:42:35 UTC 2020 (8)";
--- contrib/ntp/util/invoke-ntp-keygen.texi.orig
+++ contrib/ntp/util/invoke-ntp-keygen.texi
@@ -6,7 +6,7 @@
#
# EDIT THIS FILE WITH CAUTION (invoke-ntp-keygen.texi)
#
-# It has been AutoGen-ed February 20, 2019 at 09:57:13 AM by AutoGen 5.18.5
+# It has been AutoGen-ed March 3, 2020 at 05:41:32 PM by AutoGen 5.18.5
# From the definitions ntp-keygen-opts.def
# and the template file agtexi-cmd.tpl
@end ignore
@@ -1056,7 +1056,7 @@
@exampleindent 0
@example
-ntp-keygen (ntp) - Create a NTP host key - Ver. 4.2.8p13
+ntp-keygen (ntp) - Create a NTP host key - Ver. 4.2.8p14
Usage: ntp-keygen [ -<flag> [<val>] | --<name>[@{=| @}<val>] ]...
Flg Arg Option-Name Description
-b Num imbits identity modulus bits
--- contrib/ntp/util/ntp-keygen-opts.c.orig
+++ contrib/ntp/util/ntp-keygen-opts.c
@@ -1,7 +1,7 @@
/*
* EDIT THIS FILE WITH CAUTION (ntp-keygen-opts.c)
*
- * It has been AutoGen-ed February 20, 2019 at 09:57:09 AM by AutoGen 5.18.5
+ * It has been AutoGen-ed March 3, 2020 at 05:41:28 PM by AutoGen 5.18.5
* From the definitions ntp-keygen-opts.def
* and the template file options
*
@@ -18,7 +18,7 @@
* The ntp-keygen program is copyrighted and licensed
* under the following terms:
*
- * Copyright (C) 1992-2017 The University of Delaware and Network Time Foundation, all rights reserved.
+ * Copyright (C) 1992-2020 The University of Delaware and Network Time Foundation, all rights reserved.
* This is free software. It is licensed for use, modification and
* redistribution under the terms of the NTP License, copies of which
* can be seen at:
@@ -72,8 +72,8 @@
* static const strings for ntp-keygen options
*/
static char const ntp_keygen_opt_strs[2442] =
-/* 0 */ "ntp-keygen (ntp) 4.2.8p13\n"
- "Copyright (C) 1992-2017 The University of Delaware and Network Time Foundation, all rights reserved.\n"
+/* 0 */ "ntp-keygen (ntp) 4.2.8p14\n"
+ "Copyright (C) 1992-2020 The University of Delaware and Network Time Foundation, all rights reserved.\n"
"This is free software. It is licensed for use, modification and\n"
"redistribution under the terms of the NTP License, copies of which\n"
"can be seen at:\n"
@@ -165,7 +165,7 @@
/* 2223 */ "no-load-opts\0"
/* 2236 */ "no\0"
/* 2239 */ "NTP_KEYGEN\0"
-/* 2250 */ "ntp-keygen (ntp) - Create a NTP host key - Ver. 4.2.8p13\n"
+/* 2250 */ "ntp-keygen (ntp) - Create a NTP host key - Ver. 4.2.8p14\n"
"Usage: %s [ -<flag> [<val>] | --<name>[{=| }<val>] ]...\n\0"
/* 2365 */ "$HOME\0"
/* 2371 */ ".\0"
@@ -172,7 +172,7 @@
/* 2373 */ ".ntprc\0"
/* 2380 */ "http://bugs.ntp.org, bugs@ntp.org\0"
/* 2414 */ "\n\0"
-/* 2416 */ "ntp-keygen (ntp) 4.2.8p13";
+/* 2416 */ "ntp-keygen (ntp) 4.2.8p14";
/**
* imbits option description:
@@ -1310,8 +1310,8 @@
translate option names.
*/
/* referenced via ntp_keygenOptions.pzCopyright */
- puts(_("ntp-keygen (ntp) 4.2.8p13\n\
-Copyright (C) 1992-2017 The University of Delaware and Network Time Foundation, all rights reserved.\n\
+ puts(_("ntp-keygen (ntp) 4.2.8p14\n\
+Copyright (C) 1992-2020 The University of Delaware and Network Time Foundation, all rights reserved.\n\
This is free software. It is licensed for use, modification and\n\
redistribution under the terms of the NTP License, copies of which\n\
can be seen at:\n"));
@@ -1409,7 +1409,7 @@
puts(_("load options from a config file"));
/* referenced via ntp_keygenOptions.pzUsageTitle */
- puts(_("ntp-keygen (ntp) - Create a NTP host key - Ver. 4.2.8p13\n\
+ puts(_("ntp-keygen (ntp) - Create a NTP host key - Ver. 4.2.8p14\n\
Usage: %s [ -<flag> [<val>] | --<name>[{=| }<val>] ]...\n"));
/* referenced via ntp_keygenOptions.pzExplain */
@@ -1416,7 +1416,7 @@
puts(_("\n"));
/* referenced via ntp_keygenOptions.pzFullVersion */
- puts(_("ntp-keygen (ntp) 4.2.8p13"));
+ puts(_("ntp-keygen (ntp) 4.2.8p14"));
/* referenced via ntp_keygenOptions.pzFullUsage */
puts(_("<<<NOT-FOUND>>>"));
--- contrib/ntp/util/ntp-keygen-opts.h.orig
+++ contrib/ntp/util/ntp-keygen-opts.h
@@ -1,7 +1,7 @@
/*
* EDIT THIS FILE WITH CAUTION (ntp-keygen-opts.h)
*
- * It has been AutoGen-ed February 20, 2019 at 09:57:09 AM by AutoGen 5.18.5
+ * It has been AutoGen-ed March 3, 2020 at 05:41:28 PM by AutoGen 5.18.5
* From the definitions ntp-keygen-opts.def
* and the template file options
*
@@ -18,7 +18,7 @@
* The ntp-keygen program is copyrighted and licensed
* under the following terms:
*
- * Copyright (C) 1992-2017 The University of Delaware and Network Time Foundation, all rights reserved.
+ * Copyright (C) 1992-2020 The University of Delaware and Network Time Foundation, all rights reserved.
* This is free software. It is licensed for use, modification and
* redistribution under the terms of the NTP License, copies of which
* can be seen at:
@@ -94,9 +94,9 @@
/** count of all options for ntp-keygen */
#define OPTION_CT 26
/** ntp-keygen version */
-#define NTP_KEYGEN_VERSION "4.2.8p13"
+#define NTP_KEYGEN_VERSION "4.2.8p14"
/** Full ntp-keygen version text */
-#define NTP_KEYGEN_FULL_VERSION "ntp-keygen (ntp) 4.2.8p13"
+#define NTP_KEYGEN_FULL_VERSION "ntp-keygen (ntp) 4.2.8p14"
/**
* Interface defines for all options. Replace "n" with the UPPER_CASED
--- contrib/ntp/util/ntp-keygen.1ntp-keygenman.orig
+++ contrib/ntp/util/ntp-keygen.1ntp-keygenman
@@ -10,11 +10,11 @@
.ds B-Font B
.ds I-Font I
.ds R-Font R
-.TH ntp-keygen 1ntp-keygenman "20 Feb 2019" "ntp (4.2.8p13)" "User Commands"
+.TH ntp-keygen 1ntp-keygenman "03 Mar 2020" "ntp (4.2.8p14)" "User Commands"
.\"
.\" EDIT THIS FILE WITH CAUTION (in-mem file)
.\"
-.\" It has been AutoGen-ed February 20, 2019 at 09:57:14 AM by AutoGen 5.18.5
+.\" It has been AutoGen-ed March 3, 2020 at 05:41:34 PM by AutoGen 5.18.5
.\" From the definitions ntp-keygen-opts.def
.\" and the template file agman-cmd.tpl
.SH NAME
@@ -1351,7 +1351,7 @@
.SH "AUTHORS"
The University of Delaware and Network Time Foundation
.SH "COPYRIGHT"
-Copyright (C) 1992-2017 The University of Delaware and Network Time Foundation all rights reserved.
+Copyright (C) 1992-2020 The University of Delaware and Network Time Foundation all rights reserved.
This program is released under the terms of the NTP license, <http://ntp.org/license>.
.SH BUGS
It can take quite a while to generate some cryptographic values.
--- contrib/ntp/util/ntp-keygen.1ntp-keygenmdoc.orig
+++ contrib/ntp/util/ntp-keygen.1ntp-keygenmdoc
@@ -1,9 +1,9 @@
-.Dd February 20 2019
+.Dd March 3 2020
.Dt NTP_KEYGEN 1ntp-keygenmdoc User Commands
.Os
.\" EDIT THIS FILE WITH CAUTION (ntp-keygen-opts.mdoc)
.\"
-.\" It has been AutoGen-ed February 20, 2019 at 09:57:11 AM by AutoGen 5.18.5
+.\" It has been AutoGen-ed March 3, 2020 at 05:41:30 PM by AutoGen 5.18.5
.\" From the definitions ntp-keygen-opts.def
.\" and the template file agmdoc-cmd.tpl
.Sh NAME
@@ -1208,7 +1208,7 @@
.Sh "AUTHORS"
The University of Delaware and Network Time Foundation
.Sh "COPYRIGHT"
-Copyright (C) 1992\-2017 The University of Delaware and Network Time Foundation all rights reserved.
+Copyright (C) 1992\-2020 The University of Delaware and Network Time Foundation all rights reserved.
This program is released under the terms of the NTP license, <http://ntp.org/license>.
.Sh BUGS
It can take quite a while to generate some cryptographic values.
--- contrib/ntp/util/ntp-keygen.html.orig
+++ contrib/ntp/util/ntp-keygen.html
@@ -95,7 +95,7 @@
printable ASCII format so they can be embedded as MIME attachments in
mail to other sites.
</p>
-<p>This document applies to version 4.2.8p13 of <code>ntp-keygen</code>.
+<p>This document applies to version 4.2.8p14 of <code>ntp-keygen</code>.
</p>
<table class="menu" border="0" cellspacing="0">
<tr><td align="left" valign="top">• <a href="#Description" accesskey="1">Description</a>:</td><td> </td><td align="left" valign="top">
@@ -1405,7 +1405,7 @@
with a status code of 0.
</p>
<div class="example">
-<pre class="example">ntp-keygen (ntp) - Create a NTP host key - Ver. 4.2.8p12
+<pre class="example">ntp-keygen (ntp) - Create a NTP host key - Ver. 4.2.8p13
Usage: ntp-keygen [ -<flag> [<val>] | --<name>[{=| }<val>] ]...
Flg Arg Option-Name Description
-b Num imbits identity modulus bits
--- contrib/ntp/util/ntp-keygen.man.in.orig
+++ contrib/ntp/util/ntp-keygen.man.in
@@ -10,11 +10,11 @@
.ds B-Font B
.ds I-Font I
.ds R-Font R
-.TH ntp-keygen @NTP_KEYGEN_MS@ "20 Feb 2019" "ntp (4.2.8p13)" "User Commands"
+.TH ntp-keygen @NTP_KEYGEN_MS@ "03 Mar 2020" "ntp (4.2.8p14)" "User Commands"
.\"
.\" EDIT THIS FILE WITH CAUTION (in-mem file)
.\"
-.\" It has been AutoGen-ed February 20, 2019 at 09:57:14 AM by AutoGen 5.18.5
+.\" It has been AutoGen-ed March 3, 2020 at 05:41:34 PM by AutoGen 5.18.5
.\" From the definitions ntp-keygen-opts.def
.\" and the template file agman-cmd.tpl
.SH NAME
@@ -1351,7 +1351,7 @@
.SH "AUTHORS"
The University of Delaware and Network Time Foundation
.SH "COPYRIGHT"
-Copyright (C) 1992-2017 The University of Delaware and Network Time Foundation all rights reserved.
+Copyright (C) 1992-2020 The University of Delaware and Network Time Foundation all rights reserved.
This program is released under the terms of the NTP license, <http://ntp.org/license>.
.SH BUGS
It can take quite a while to generate some cryptographic values.
--- contrib/ntp/util/ntp-keygen.mdoc.in.orig
+++ contrib/ntp/util/ntp-keygen.mdoc.in
@@ -1,9 +1,9 @@
-.Dd February 20 2019
+.Dd March 3 2020
.Dt NTP_KEYGEN @NTP_KEYGEN_MS@ User Commands
.Os
.\" EDIT THIS FILE WITH CAUTION (ntp-keygen-opts.mdoc)
.\"
-.\" It has been AutoGen-ed February 20, 2019 at 09:57:11 AM by AutoGen 5.18.5
+.\" It has been AutoGen-ed March 3, 2020 at 05:41:30 PM by AutoGen 5.18.5
.\" From the definitions ntp-keygen-opts.def
.\" and the template file agmdoc-cmd.tpl
.Sh NAME
@@ -1208,7 +1208,7 @@
.Sh "AUTHORS"
The University of Delaware and Network Time Foundation
.Sh "COPYRIGHT"
-Copyright (C) 1992\-2017 The University of Delaware and Network Time Foundation all rights reserved.
+Copyright (C) 1992\-2020 The University of Delaware and Network Time Foundation all rights reserved.
This program is released under the terms of the NTP license, <http://ntp.org/license>.
.Sh BUGS
It can take quite a while to generate some cryptographic values.
--- contrib/ntp/util/ntptime.c.orig
+++ contrib/ntp/util/ntptime.c
@@ -53,9 +53,14 @@
* a struct timeval to the microsecond (more or less). This keeps
* things neat.
*/
-#define TS_MASK 0xfffff000 /* mask to usec, for time stamps */
-#define TS_ROUNDBIT 0x00000800 /* round at this bit */
+#define TS_MASK_US 0xfffff000 /* mask to usec, for time stamps */
+#define TS_ROUNDBIT_US 0x00000800 /* round at this bit */
+#define TS_DIGITS_US 6
+#define TS_MASK_NS 0xfffffffc /* 1/2^30, for nsec */
+#define TS_ROUNDBIT_NS 0x00000002
+#define TS_DIGITS_NS 9
+
/*
* Function prototypes
*/
@@ -93,11 +98,12 @@
struct timex ntx, _ntx;
int times[20] = { 0 };
double ftemp, gtemp, htemp;
+ double nscale = 1.0; /* assume usec scale for now */
long time_frac; /* ntv.time.tv_frac_sec (us/ns) */
l_fp ts;
- volatile unsigned ts_mask = TS_MASK; /* defaults to 20 bits (us) */
- volatile unsigned ts_roundbit = TS_ROUNDBIT; /* defaults to 20 bits (us) */
- volatile int fdigits = 6; /* fractional digits for us */
+ volatile unsigned ts_mask = TS_MASK_US; /* defaults to 20 bits (us) */
+ volatile unsigned ts_roundbit = TS_ROUNDBIT_US; /* defaults to 20 bits (us) */
+ volatile int fdigits = TS_DIGITS_US; /* fractional digits for us */
size_t c;
int ch;
int errflg = 0;
@@ -118,13 +124,11 @@
ntx.modes |= MOD_NANO;
break;
#endif
-#ifdef NTP_API
-# if NTP_API > 3
+#if defined(NTP_API) && NTP_API > 3
case 'T':
ntx.modes = MOD_TAI;
ntx.constant = atoi(ntp_optarg);
break;
-# endif
#endif
case 'c':
cost++;
@@ -226,14 +230,13 @@
*/
pll_control = 1;
#ifdef SIGSYS
- if (sigsetjmp(env, 1) == 0) {
+ if (sigsetjmp(env, 1) == 0)
#endif
+ {
status = syscall(BADCALL, &ntv); /* dummy parameter */
if ((status < 0) && (errno == ENOSYS))
--pll_control;
-#ifdef SIGSYS
}
-#endif
if (pll_control)
printf("sigaction() failed to catch an invalid syscall\n");
#endif /* BADCALL */
@@ -240,8 +243,9 @@
if (cost) {
#ifdef SIGSYS
- if (sigsetjmp(env, 1) == 0) {
+ if (sigsetjmp(env, 1) == 0)
#endif
+ {
for (c = 0; c < COUNTOF(times); c++) {
status = ntp_gettime(&ntv);
if ((status < 0) && (errno == ENOSYS))
@@ -250,9 +254,7 @@
break;
times[c] = ntv.time.tv_frac_sec;
}
-#ifdef SIGSYS
}
-#endif
if (pll_control >= 0) {
printf("[ us %06d:", times[0]);
for (c = 1; c < COUNTOF(times); c++)
@@ -261,25 +263,23 @@
}
}
#ifdef SIGSYS
- if (sigsetjmp(env, 1) == 0) {
+ if (sigsetjmp(env, 1) == 0)
#endif
+ {
status = ntp_gettime(&ntv);
if ((status < 0) && (errno == ENOSYS))
--pll_control;
-#ifdef SIGSYS
}
-#endif
_ntx.modes = 0; /* Ensure nothing is set */
#ifdef SIGSYS
- if (sigsetjmp(env, 1) == 0) {
+ if (sigsetjmp(env, 1) == 0)
#endif
+ {
status = ntp_adjtime(&_ntx);
if ((status < 0) && (errno == ENOSYS))
--pll_control;
flash = _ntx.status;
-#ifdef SIGSYS
}
-#endif
if (pll_control < 0) {
printf("NTP user interface routines are not configured in this kernel.\n");
goto lexit;
@@ -298,9 +298,9 @@
#ifdef STA_NANO
if (flash & STA_NANO) {
ntv.time.tv_frac_sec /= 1000;
- ts_mask = 0xfffffffc; /* 1/2^30 */
- ts_roundbit = 0x00000002;
- fdigits = 9;
+ ts_mask = TS_MASK_NS;
+ ts_roundbit = TS_ROUNDBIT_NS;
+ fdigits = TS_DIGITS_NS;
}
#endif
tv.tv_sec = ntv.time.tv_sec;
@@ -311,8 +311,8 @@
ts.l_uf &= ts_mask;
printf(" time %s, (.%0*d),\n",
prettydate(&ts), fdigits, (int)time_frac);
- printf(" maximum error %lu us, estimated error %lu us",
- (u_long)ntv.maxerror, (u_long)ntv.esterror);
+ printf(" maximum error %ld us, estimated error %ld us",
+ ntv.maxerror, ntv.esterror);
if (rawtime)
printf(" ntptime=%x.%x unixtime=%x.%0*d %s",
(u_int)ts.l_ui, (u_int)ts.l_uf,
@@ -319,7 +319,7 @@
(int)ntv.time.tv_sec, fdigits,
(int)time_frac,
ctime((time_t *)&ntv.time.tv_sec));
-#if NTP_API > 3
+#if defined(NTP_API) && NTP_API > 3
printf(", TAI offset %ld\n", (long)ntv.tai);
#else
printf("\n");
@@ -335,38 +335,33 @@
printf("ntp_adjtime() returns code %d (%s)\n",
status, timex_state(status));
printf(" modes %s,\n", sprintb(ntx.modes, TIMEX_MOD_BITS));
- ftemp = (double)ntx.offset;
#ifdef STA_NANO
if (flash & STA_NANO)
- ftemp /= 1000.0;
+ nscale = 1e-3;
#endif
+ ftemp = (double)ntx.offset * nscale;
printf(" offset %.3f", ftemp);
ftemp = (double)ntx.freq / SCALE_FREQ;
printf(" us, frequency %.3f ppm, interval %d s,\n",
- ftemp, 1 << ntx.shift);
- printf(" maximum error %lu us, estimated error %lu us,\n",
- (u_long)ntx.maxerror, (u_long)ntx.esterror);
+ ftemp, 1 << ntx.shift);
+ printf(" maximum error %ld us, estimated error %ld us,\n",
+ ntx.maxerror, ntx.esterror);
printf(" status %s,\n", sprintb((u_int)ntx.status, TIMEX_STA_BITS));
ftemp = (double)ntx.tolerance / SCALE_FREQ;
- gtemp = (double)ntx.precision;
+ gtemp = (double)ntx.precision * nscale;
printf(
- " time constant %lu, precision %.3f us, tolerance %.0f ppm,\n",
- (u_long)ntx.constant, gtemp, ftemp);
+ " time constant %lu, precision %.3f us, tolerance %.0f ppm,\n",
+ (u_long)ntx.constant, gtemp, ftemp);
if (ntx.shift == 0)
exit(0);
ftemp = (double)ntx.ppsfreq / SCALE_FREQ;
gtemp = (double)ntx.stabil / SCALE_FREQ;
- htemp = (double)ntx.jitter;
-#ifdef STA_NANO
- if (flash & STA_NANO)
- htemp /= 1000.0;
-#endif
- printf(
- " pps frequency %.3f ppm, stability %.3f ppm, jitter %.3f us,\n",
- ftemp, gtemp, htemp);
+ htemp = (double)ntx.jitter * nscale;
+ printf(" pps frequency %.3f ppm, stability %.3f ppm, jitter %.3f us,\n",
+ ftemp, gtemp, htemp);
printf(" intervals %lu, jitter exceeded %lu, stability exceeded %lu, errors %lu.\n",
- (u_long)ntx.calcnt, (u_long)ntx.jitcnt,
- (u_long)ntx.stbcnt, (u_long)ntx.errcnt);
+ (u_long)ntx.calcnt, (u_long)ntx.jitcnt,
+ (u_long)ntx.stbcnt, (u_long)ntx.errcnt);
return 0;
}
--- usr.sbin/ntp/config.h.orig
+++ usr.sbin/ntp/config.h
@@ -1474,7 +1474,7 @@
#define PACKAGE_URL "http://www.ntp.org./"
/* Define to the version of this package. */
-#define PACKAGE_VERSION "4.2.8p13"
+#define PACKAGE_VERSION "4.2.8p14"
/* data dir */
#define PERLLIBDIR "/usr/share/ntp/lib"
--- usr.sbin/ntp/libntp/Makefile.orig
+++ usr.sbin/ntp/libntp/Makefile
@@ -21,6 +21,7 @@
libssl_compat.c \
machines.c mktime.c modetoa.c \
mstolfp.c msyslog.c netof.c ntp_calendar.c \
+ ntp_calgps.c \
ntp_crypto_rnd.c ntp_intres.c ntp_libopts.c \
ntp_lineedit.c ntp_random.c ntp_rfc2553.c ntp_worker.c \
numtoa.c numtohost.c octtoint.c prettydate.c \
@@ -27,8 +28,10 @@
recvbuff.c refidsmear.c \
refnumtoa.c snprintf.c socket.c \
socktoa.c socktohost.c ssl_init.c statestr.c \
- strdup.c strl_obsd.c syssignal.c timetoa.c \
- timevalops.c uglydate.c vint64ops.c work_fork.c \
+ strdup.c strl_obsd.c syssignal.c timespecops.c \
+ timetoa.c \
+ timevalops.c timexsup.c \
+ uglydate.c vint64ops.c work_fork.c \
work_thread.c xsbprintf.c ymd2yd.c
ISC_PTHREADS_SRCS= condition.c \
|