vpp-plugin 0.2.2

A framework for writing high-performance, reliable VPP plugins in Rust.
Documentation
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
/* automatically generated by rust-bindgen 0.72.1 */

#[repr(C)]
#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub struct __BindgenBitfieldUnit<Storage> {
    storage: Storage,
}
impl<Storage> __BindgenBitfieldUnit<Storage> {
    #[inline]
    pub const fn new(storage: Storage) -> Self {
        Self { storage }
    }
}
impl<Storage> __BindgenBitfieldUnit<Storage>
where
    Storage: AsRef<[u8]> + AsMut<[u8]>,
{
    #[inline]
    fn extract_bit(byte: u8, index: usize) -> bool {
        let bit_index = if cfg!(target_endian = "big") {
            7 - (index % 8)
        } else {
            index % 8
        };
        let mask = 1 << bit_index;
        byte & mask == mask
    }
    #[inline]
    pub fn get_bit(&self, index: usize) -> bool {
        debug_assert!(index / 8 < self.storage.as_ref().len());
        let byte_index = index / 8;
        let byte = self.storage.as_ref()[byte_index];
        Self::extract_bit(byte, index)
    }
    #[inline]
    pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool {
        debug_assert!(index / 8 < core::mem::size_of::<Storage>());
        let byte_index = index / 8;
        let byte = unsafe {
            *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize)
        };
        Self::extract_bit(byte, index)
    }
    #[inline]
    fn change_bit(byte: u8, index: usize, val: bool) -> u8 {
        let bit_index = if cfg!(target_endian = "big") {
            7 - (index % 8)
        } else {
            index % 8
        };
        let mask = 1 << bit_index;
        if val { byte | mask } else { byte & !mask }
    }
    #[inline]
    pub fn set_bit(&mut self, index: usize, val: bool) {
        debug_assert!(index / 8 < self.storage.as_ref().len());
        let byte_index = index / 8;
        let byte = &mut self.storage.as_mut()[byte_index];
        *byte = Self::change_bit(*byte, index, val);
    }
    #[inline]
    pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) {
        debug_assert!(index / 8 < core::mem::size_of::<Storage>());
        let byte_index = index / 8;
        let byte = unsafe {
            (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize)
        };
        unsafe { *byte = Self::change_bit(*byte, index, val) };
    }
    #[inline]
    pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 {
        debug_assert!(bit_width <= 64);
        debug_assert!(bit_offset / 8 < self.storage.as_ref().len());
        debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len());
        let mut val = 0;
        for i in 0..(bit_width as usize) {
            if self.get_bit(i + bit_offset) {
                let index = if cfg!(target_endian = "big") {
                    bit_width as usize - 1 - i
                } else {
                    i
                };
                val |= 1 << index;
            }
        }
        val
    }
    #[inline]
    pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 {
        debug_assert!(bit_width <= 64);
        debug_assert!(bit_offset / 8 < core::mem::size_of::<Storage>());
        debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::<Storage>());
        let mut val = 0;
        for i in 0..(bit_width as usize) {
            if unsafe { Self::raw_get_bit(this, i + bit_offset) } {
                let index = if cfg!(target_endian = "big") {
                    bit_width as usize - 1 - i
                } else {
                    i
                };
                val |= 1 << index;
            }
        }
        val
    }
    #[inline]
    pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) {
        debug_assert!(bit_width <= 64);
        debug_assert!(bit_offset / 8 < self.storage.as_ref().len());
        debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len());
        for i in 0..(bit_width as usize) {
            let mask = 1 << i;
            let val_bit_is_set = val & mask == mask;
            let index = if cfg!(target_endian = "big") {
                bit_width as usize - 1 - i
            } else {
                i
            };
            self.set_bit(index + bit_offset, val_bit_is_set);
        }
    }
    #[inline]
    pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) {
        debug_assert!(bit_width <= 64);
        debug_assert!(bit_offset / 8 < core::mem::size_of::<Storage>());
        debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::<Storage>());
        for i in 0..(bit_width as usize) {
            let mask = 1 << i;
            let val_bit_is_set = val & mask == mask;
            let index = if cfg!(target_endian = "big") {
                bit_width as usize - 1 - i
            } else {
                i
            };
            unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) };
        }
    }
}
#[repr(C)]
#[derive(Default)]
pub struct __IncompleteArrayField<T>(::std::marker::PhantomData<T>, [T; 0]);
impl<T> __IncompleteArrayField<T> {
    #[inline]
    pub const fn new() -> Self {
        __IncompleteArrayField(::std::marker::PhantomData, [])
    }
    #[inline]
    pub fn as_ptr(&self) -> *const T {
        self as *const _ as *const T
    }
    #[inline]
    pub fn as_mut_ptr(&mut self) -> *mut T {
        self as *mut _ as *mut T
    }
    #[inline]
    pub unsafe fn as_slice(&self, len: usize) -> &[T] {
        ::std::slice::from_raw_parts(self.as_ptr(), len)
    }
    #[inline]
    pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] {
        ::std::slice::from_raw_parts_mut(self.as_mut_ptr(), len)
    }
}
impl<T> ::std::fmt::Debug for __IncompleteArrayField<T> {
    fn fmt(&self, fmt: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        fmt.write_str("__IncompleteArrayField")
    }
}
#[repr(C)]
pub struct __BindgenUnionField<T>(::std::marker::PhantomData<T>);
impl<T> __BindgenUnionField<T> {
    #[inline]
    pub const fn new() -> Self {
        __BindgenUnionField(::std::marker::PhantomData)
    }
    #[inline]
    pub unsafe fn as_ref(&self) -> &T {
        ::std::mem::transmute(self)
    }
    #[inline]
    pub unsafe fn as_mut(&mut self) -> &mut T {
        ::std::mem::transmute(self)
    }
}
impl<T> ::std::default::Default for __BindgenUnionField<T> {
    #[inline]
    fn default() -> Self {
        Self::new()
    }
}
impl<T> ::std::clone::Clone for __BindgenUnionField<T> {
    #[inline]
    fn clone(&self) -> Self {
        *self
    }
}
impl<T> ::std::marker::Copy for __BindgenUnionField<T> {}
impl<T> ::std::fmt::Debug for __BindgenUnionField<T> {
    fn fmt(&self, fmt: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        fmt.write_str("__BindgenUnionField")
    }
}
impl<T> ::std::hash::Hash for __BindgenUnionField<T> {
    fn hash<H: ::std::hash::Hasher>(&self, _state: &mut H) {}
}
impl<T> ::std::cmp::PartialEq for __BindgenUnionField<T> {
    fn eq(&self, _other: &__BindgenUnionField<T>) -> bool {
        true
    }
}
impl<T> ::std::cmp::Eq for __BindgenUnionField<T> {}
pub const CLIB_LOG2_CACHE_LINE_BYTES: u32 = 6;
pub const CLIB_N_PREFETCHES: u32 = 16;
pub const CLIB_LIB_DIR: &[u8; 21] = b"lib/x86_64-linux-gnu\0";
pub const CLIB_VECTOR_GROW_BY_ONE: u32 = 0;
pub const CLIB_MAX_NUMAS: u32 = 16;
pub const CLIB_MEM_ERROR: i32 = -1;
pub const CLIB_MEM_LOG2_MIN_ALIGN: u32 = 3;
pub const CLIB_MEM_MIN_ALIGN: u32 = 8;
pub const CLIB_VM_MAP_HDR_NAME_MAX_LEN: u32 = 64;
pub const VEC_NUMA_UNSPECIFIED: u32 = 255;
pub const VEC_MIN_ALIGN: u32 = 8;
pub const VLIB_BUFFER_PRE_DATA_SIZE: u32 = 128;
pub const VLIB_BUFFER_ALIGN: u32 = 64;
pub const VLIB_BUFFER_ALLOC_FAULT_INJECTOR: u32 = 0;
pub const VLIB_PROCESS_LOG2_STACK_SIZE: u32 = 15;
pub const VLIB_BUFFER_DEFAULT_DATA_SIZE: u32 = 2048;
pub const VLIB_BUFFER_MIN_CHAIN_SEG_SIZE: u32 = 128;
pub const VLIB_BUFFER_CLONE_HEAD_SIZE: u32 = 256;
pub const VLIB_BUFFER_FLAGS_ALL: u32 = 15;
pub const VLIB_BUFFER_TRACE_TRAJECTORY: u32 = 0;
pub const VLIB_BUFFER_TRACE_TRAJECTORY_SZ: u32 = 0;
pub const VLIB_BUFFER_INVALID_INDEX: u32 = 4294967295;
pub const VLIB_BUFFER_POOL_PER_THREAD_CACHE_SZ: u32 = 512;
pub const VLIB_BUFFER_MAX_NUMA_NODES: u32 = 32;
pub const CLIB_MARCH_VARIANT_STR: &[u8; 8] = b"default\0";
pub const VLIB_NODE_FLAG_FRAME_NO_FREE_AFTER_DISPATCH: u32 = 1;
pub const VLIB_NODE_FLAG_IS_OUTPUT: u32 = 2;
pub const VLIB_NODE_FLAG_IS_DROP: u32 = 4;
pub const VLIB_NODE_FLAG_IS_PUNT: u32 = 8;
pub const VLIB_NODE_FLAG_IS_HANDOFF: u32 = 16;
pub const VLIB_NODE_FLAG_TRACE: u32 = 32;
pub const VLIB_NODE_FLAG_SWITCH_FROM_INTERRUPT_TO_POLLING_MODE: u32 = 64;
pub const VLIB_NODE_FLAG_SWITCH_FROM_POLLING_TO_INTERRUPT_MODE: u32 = 128;
pub const VLIB_NODE_FLAG_TRACE_SUPPORTED: u32 = 256;
pub const VLIB_NODE_FLAG_ADAPTIVE_MODE: u32 = 512;
pub const VLIB_NODE_FLAG_ALLOW_LAZY_NEXT_NODES: u32 = 1024;
pub const VLIB_FRAME_SIZE: u32 = 256;
pub const VLIB_FRAME_SIZE_EXTRA: u32 = 4;
pub const VLIB_FRAME_DATA_ALIGN: u32 = 16;
pub const VLIB_FRAME_NO_FREE_AFTER_DISPATCH: u32 = 1;
pub const VLIB_FRAME_NO_APPEND: u32 = 16384;
pub const VLIB_FRAME_OWNER: u32 = 32768;
pub const VLIB_FRAME_IS_ALLOCATED: u32 = 2;
pub const VLIB_FRAME_PENDING: u32 = 4;
pub const VLIB_FRAME_FREE_AFTER_DISPATCH: u32 = 8;
pub const VLIB_FRAME_TRACE: u32 = 32;
pub const VLIB_PROCESS_RESUME_LONGJMP_SUSPEND: u32 = 0;
pub const VLIB_PROCESS_RESUME_LONGJMP_RESUME: u32 = 1;
pub const VLIB_PROCESS_STACK_MAGIC: u32 = 3735912109;
pub const VLIB_NODE_MAIN_RUNTIME_STARTED: u32 = 1;
pub const FRAME_QUEUE_MAX_NELTS: u32 = 64;
pub const VLIB_ELOG_MAIN_LOOP: u32 = 0;
pub const VLIB_LOG2_MAIN_LOOPS_PER_STATS_UPDATE: u32 = 7;
pub const VLIB_MAIN_LOOP_EXIT_NONE: u32 = 0;
pub const VLIB_MAIN_LOOP_EXIT_PANIC: u32 = 1;
pub const VLIB_MAIN_LOOP_EXIT_CLI: u32 = 2;
pub const VLIB_LOG2_THREAD_STACK_SIZE: u32 = 21;
pub const VLIB_THREAD_STACK_SIZE: u32 = 2097152;
pub const BARRIER_SYNC_DELAY: f64 = 0.03;
pub const BARRIER_SYNC_TIMEOUT: f64 = 1.0;
pub const VLIB_BUFFER_MAX_CLONE: u32 = 255;
pub const VLIB_BUFFER_LINEARIZE_MAX: u32 = 64;
pub const VNET_REWRITE_TOTAL_BYTES: u32 = 128;
pub const VL_API_LITTLE_ENDIAN: u32 = 0;
pub const VL_API_BIG_ENDIAN: u32 = 1;
pub const VL_SHM_VERSION: u32 = 2;
pub const VL_API_EPOCH_MASK: u32 = 255;
pub const VL_API_EPOCH_SHIFT: u32 = 8;
pub const VL_API_MAX_TIME_IN_HANDLER: f64 = 0.001;
pub type i8_ = ::std::os::raw::c_schar;
pub type i16_ = ::std::os::raw::c_short;
pub type u8_ = ::std::os::raw::c_uchar;
pub type u16_ = ::std::os::raw::c_ushort;
pub type i32_ = ::std::os::raw::c_int;
pub type i64_ = ::std::os::raw::c_long;
pub type u32_ = ::std::os::raw::c_uint;
pub type u64_ = ::std::os::raw::c_ulong;
pub type word = i64_;
pub type uword = u64_;
pub type any = word;
pub type f64_ = f64;
pub type clib_thread_index_t = u16_;
pub type __dev_t = ::std::os::raw::c_ulong;
pub type __uid_t = ::std::os::raw::c_uint;
pub type __gid_t = ::std::os::raw::c_uint;
pub type __ino_t = ::std::os::raw::c_ulong;
pub type __mode_t = ::std::os::raw::c_uint;
pub type __nlink_t = ::std::os::raw::c_ulong;
pub type __off_t = ::std::os::raw::c_long;
pub type __off64_t = ::std::os::raw::c_long;
pub type __time_t = ::std::os::raw::c_long;
pub type __blksize_t = ::std::os::raw::c_long;
pub type __blkcnt_t = ::std::os::raw::c_long;
pub type __syscall_slong_t = ::std::os::raw::c_long;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct timespec {
    pub tv_sec: __time_t,
    pub tv_nsec: __syscall_slong_t,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union __atomic_wide_counter {
    pub __value64: ::std::os::raw::c_ulonglong,
    pub __value32: __atomic_wide_counter__bindgen_ty_1,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct __atomic_wide_counter__bindgen_ty_1 {
    pub __low: ::std::os::raw::c_uint,
    pub __high: ::std::os::raw::c_uint,
}
impl Default for __atomic_wide_counter {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __pthread_internal_list {
    pub __prev: *mut __pthread_internal_list,
    pub __next: *mut __pthread_internal_list,
}
impl Default for __pthread_internal_list {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type __pthread_list_t = __pthread_internal_list;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __pthread_mutex_s {
    pub __lock: ::std::os::raw::c_int,
    pub __count: ::std::os::raw::c_uint,
    pub __owner: ::std::os::raw::c_int,
    pub __nusers: ::std::os::raw::c_uint,
    pub __kind: ::std::os::raw::c_int,
    pub __spins: ::std::os::raw::c_short,
    pub __elision: ::std::os::raw::c_short,
    pub __list: __pthread_list_t,
}
impl Default for __pthread_mutex_s {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct __pthread_cond_s {
    pub __wseq: __atomic_wide_counter,
    pub __g1_start: __atomic_wide_counter,
    pub __g_refs: [::std::os::raw::c_uint; 2usize],
    pub __g_size: [::std::os::raw::c_uint; 2usize],
    pub __g1_orig_size: ::std::os::raw::c_uint,
    pub __wrefs: ::std::os::raw::c_uint,
    pub __g_signals: [::std::os::raw::c_uint; 2usize],
}
impl Default for __pthread_cond_s {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type pthread_t = ::std::os::raw::c_ulong;
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_mutex_t {
    pub __data: __pthread_mutex_s,
    pub __size: [::std::os::raw::c_char; 40usize],
    pub __align: ::std::os::raw::c_long,
}
impl Default for pthread_mutex_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_cond_t {
    pub __data: __pthread_cond_s,
    pub __size: [::std::os::raw::c_char; 48usize],
    pub __align: ::std::os::raw::c_longlong,
}
impl Default for pthread_cond_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub const CLIB_ERROR_FATAL: _bindgen_ty_29 = 1;
pub const CLIB_ERROR_ABORT: _bindgen_ty_29 = 2;
pub const CLIB_ERROR_WARNING: _bindgen_ty_29 = 4;
pub const CLIB_ERROR_ERRNO_VALID: _bindgen_ty_29 = 65536;
pub const CLIB_ERROR_NO_RATE_LIMIT: _bindgen_ty_29 = 131072;
pub type _bindgen_ty_29 = ::std::os::raw::c_uint;
unsafe extern "C" {
    pub fn _clib_error(
        code: ::std::os::raw::c_int,
        function_name: *const ::std::os::raw::c_char,
        line_number: uword,
        format: *const ::std::os::raw::c_char,
        ...
    );
}
pub type va_list = __builtin_va_list;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct clib_error_t {
    pub what: *mut u8_,
    pub where_: *const u8_,
    pub flags: uword,
    pub code: any,
}
impl Default for clib_error_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type u64x2 = [u64_; 2usize];
pub const clib_mem_page_sz_t_CLIB_MEM_PAGE_SZ_UNKNOWN: clib_mem_page_sz_t = 0;
pub const clib_mem_page_sz_t_CLIB_MEM_PAGE_SZ_DEFAULT: clib_mem_page_sz_t = 1;
pub const clib_mem_page_sz_t_CLIB_MEM_PAGE_SZ_DEFAULT_HUGE: clib_mem_page_sz_t = 2;
pub const clib_mem_page_sz_t_CLIB_MEM_PAGE_SZ_4K: clib_mem_page_sz_t = 12;
pub const clib_mem_page_sz_t_CLIB_MEM_PAGE_SZ_16K: clib_mem_page_sz_t = 14;
pub const clib_mem_page_sz_t_CLIB_MEM_PAGE_SZ_64K: clib_mem_page_sz_t = 16;
pub const clib_mem_page_sz_t_CLIB_MEM_PAGE_SZ_1M: clib_mem_page_sz_t = 20;
pub const clib_mem_page_sz_t_CLIB_MEM_PAGE_SZ_2M: clib_mem_page_sz_t = 21;
pub const clib_mem_page_sz_t_CLIB_MEM_PAGE_SZ_16M: clib_mem_page_sz_t = 24;
pub const clib_mem_page_sz_t_CLIB_MEM_PAGE_SZ_32M: clib_mem_page_sz_t = 25;
pub const clib_mem_page_sz_t_CLIB_MEM_PAGE_SZ_512M: clib_mem_page_sz_t = 29;
pub const clib_mem_page_sz_t_CLIB_MEM_PAGE_SZ_1G: clib_mem_page_sz_t = 30;
pub const clib_mem_page_sz_t_CLIB_MEM_PAGE_SZ_16G: clib_mem_page_sz_t = 34;
pub type clib_mem_page_sz_t = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _clib_mem_vm_map_hdr {
    pub base_addr: uword,
    pub num_pages: uword,
    pub log2_page_sz: clib_mem_page_sz_t,
    pub fd: ::std::os::raw::c_int,
    pub name: [::std::os::raw::c_char; 64usize],
    pub prev: *mut _clib_mem_vm_map_hdr,
    pub next: *mut _clib_mem_vm_map_hdr,
}
impl Default for _clib_mem_vm_map_hdr {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type clib_mem_vm_map_hdr_t = _clib_mem_vm_map_hdr;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct clib_mem_heap_t {
    _unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct clib_mem_thread_main_t {
    pub active_heap: *mut clib_mem_heap_t,
    pub thread_index: clib_thread_index_t,
    pub next: *mut clib_mem_thread_main_t,
    pub trace_thread_disable: ::std::os::raw::c_int,
}
impl Default for clib_mem_thread_main_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct clib_mem_main_t {
    pub main_heap: *mut clib_mem_heap_t,
    pub heaps: *mut *mut clib_mem_heap_t,
    pub threads: *mut clib_mem_thread_main_t,
    pub log2_page_sz: clib_mem_page_sz_t,
    pub log2_default_hugepage_sz: clib_mem_page_sz_t,
    pub log2_sys_default_hugepage_sz: clib_mem_page_sz_t,
    pub _bitfield_align_1: [u8; 0],
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
    pub numa_node_bitmap: u32_,
    pub first_map: *mut clib_mem_vm_map_hdr_t,
    pub last_map: *mut clib_mem_vm_map_hdr_t,
    pub map_lock: u8_,
    pub error: *mut clib_error_t,
}
impl Default for clib_mem_main_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
impl clib_mem_main_t {
    #[inline]
    pub fn alloc_free_intercept(&self) -> u8_ {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u8) }
    }
    #[inline]
    pub fn set_alloc_free_intercept(&mut self, val: u8_) {
        unsafe {
            let val: u8 = ::std::mem::transmute(val);
            self._bitfield_1.set(0usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub unsafe fn alloc_free_intercept_raw(this: *const Self) -> u8_ {
        unsafe {
            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
                ::std::ptr::addr_of!((*this)._bitfield_1),
                0usize,
                1u8,
            ) as u8)
        }
    }
    #[inline]
    pub unsafe fn set_alloc_free_intercept_raw(this: *mut Self, val: u8_) {
        unsafe {
            let val: u8 = ::std::mem::transmute(val);
            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
                0usize,
                1u8,
                val as u64,
            )
        }
    }
    #[inline]
    pub fn new_bitfield_1(alloc_free_intercept: u8_) -> __BindgenBitfieldUnit<[u8; 1usize]> {
        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
        __bindgen_bitfield_unit.set(0usize, 1u8, {
            let alloc_free_intercept: u8 = unsafe { ::std::mem::transmute(alloc_free_intercept) };
            alloc_free_intercept as u64
        });
        __bindgen_bitfield_unit
    }
}
unsafe extern "C" {
    pub static mut clib_mem_main: clib_mem_main_t;
}
unsafe extern "C" {
    pub static mut clib_mem_thread_main: clib_mem_thread_main_t;
}
unsafe extern "C" {
    pub fn clib_mem_alloc(size: uword) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
    pub fn clib_mem_alloc_aligned(size: uword, align: uword) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
    pub fn clib_mem_alloc_or_null(size: uword) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
    pub fn clib_mem_alloc_aligned_or_null(size: uword, align: uword)
    -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
    pub fn clib_mem_realloc(
        p: *mut ::std::os::raw::c_void,
        new_size: uword,
    ) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
    pub fn clib_mem_realloc_aligned(
        p: *mut ::std::os::raw::c_void,
        new_size: uword,
        align: uword,
    ) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
    pub fn clib_mem_is_heap_object(p: *mut ::std::os::raw::c_void) -> uword;
}
unsafe extern "C" {
    pub fn clib_mem_free(p: *mut ::std::os::raw::c_void);
}
unsafe extern "C" {
    pub fn clib_mem_heap_alloc(
        heap: *mut ::std::os::raw::c_void,
        size: uword,
    ) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
    pub fn clib_mem_heap_alloc_aligned(
        heap: *mut ::std::os::raw::c_void,
        size: uword,
        align: uword,
    ) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
    pub fn clib_mem_heap_alloc_or_null(
        heap: *mut ::std::os::raw::c_void,
        size: uword,
    ) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
    pub fn clib_mem_heap_alloc_aligned_or_null(
        heap: *mut ::std::os::raw::c_void,
        size: uword,
        align: uword,
    ) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
    pub fn clib_mem_heap_realloc(
        heap: *mut ::std::os::raw::c_void,
        p: *mut ::std::os::raw::c_void,
        new_size: uword,
    ) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
    pub fn clib_mem_heap_realloc_aligned(
        heap: *mut ::std::os::raw::c_void,
        p: *mut ::std::os::raw::c_void,
        new_size: uword,
        align: uword,
    ) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
    pub fn clib_mem_heap_is_heap_object(
        heap: *mut ::std::os::raw::c_void,
        p: *mut ::std::os::raw::c_void,
    ) -> uword;
}
unsafe extern "C" {
    pub fn clib_mem_heap_free(heap: *mut ::std::os::raw::c_void, p: *mut ::std::os::raw::c_void);
}
unsafe extern "C" {
    pub fn clib_mem_size(p: *mut ::std::os::raw::c_void) -> uword;
}
unsafe extern "C" {
    pub fn clib_mem_free_s(p: *mut ::std::os::raw::c_void);
}
unsafe extern "C" {
    pub fn clib_mem_thread_init();
}
unsafe extern "C" {
    pub fn clib_mem_destroy_heap(heap: *mut clib_mem_heap_t);
}
unsafe extern "C" {
    pub fn clib_mem_create_heap(
        base: *mut ::std::os::raw::c_void,
        size: uword,
        is_locked: ::std::os::raw::c_int,
        fmt: *mut ::std::os::raw::c_char,
        ...
    ) -> *mut clib_mem_heap_t;
}
unsafe extern "C" {
    pub fn clib_mem_main_init();
}
unsafe extern "C" {
    pub fn clib_mem_init(
        base: *mut ::std::os::raw::c_void,
        size: uword,
    ) -> *mut ::std::os::raw::c_void;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct clib_mem_init_ex_args_t {
    pub base_addr: *mut ::std::os::raw::c_void,
    pub memory_size: uword,
    pub log2_page_sz: clib_mem_page_sz_t,
    pub _bitfield_align_1: [u8; 0],
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
    pub __bindgen_padding_0: [u8; 3usize],
}
impl Default for clib_mem_init_ex_args_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
impl clib_mem_init_ex_args_t {
    #[inline]
    pub fn alloc_free_intercept(&self) -> u8_ {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u8) }
    }
    #[inline]
    pub fn set_alloc_free_intercept(&mut self, val: u8_) {
        unsafe {
            let val: u8 = ::std::mem::transmute(val);
            self._bitfield_1.set(0usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub unsafe fn alloc_free_intercept_raw(this: *const Self) -> u8_ {
        unsafe {
            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
                ::std::ptr::addr_of!((*this)._bitfield_1),
                0usize,
                1u8,
            ) as u8)
        }
    }
    #[inline]
    pub unsafe fn set_alloc_free_intercept_raw(this: *mut Self, val: u8_) {
        unsafe {
            let val: u8 = ::std::mem::transmute(val);
            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
                0usize,
                1u8,
                val as u64,
            )
        }
    }
    #[inline]
    pub fn new_bitfield_1(alloc_free_intercept: u8_) -> __BindgenBitfieldUnit<[u8; 1usize]> {
        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
        __bindgen_bitfield_unit.set(0usize, 1u8, {
            let alloc_free_intercept: u8 = unsafe { ::std::mem::transmute(alloc_free_intercept) };
            alloc_free_intercept as u64
        });
        __bindgen_bitfield_unit
    }
}
unsafe extern "C" {
    pub fn clib_mem_init_ex(args: *mut clib_mem_init_ex_args_t) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
    pub fn clib_mem_exit();
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct clib_mem_trace_t {
    pub callers: [*mut ::std::os::raw::c_void; 12usize],
    pub n_allocations: u32_,
    pub n_bytes: u32_,
    pub offset: uword,
}
impl Default for clib_mem_trace_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
unsafe extern "C" {
    pub fn clib_mem_trace(enable: ::std::os::raw::c_int);
}
unsafe extern "C" {
    pub fn clib_mem_is_traced() -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn clib_mem_trace_dup(heap: *mut clib_mem_heap_t) -> *mut clib_mem_trace_t;
}
unsafe extern "C" {
    pub fn clib_mem_heap_set_trace(h: *mut clib_mem_heap_t, enabled: ::std::os::raw::c_int);
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct clib_mem_usage_t {
    pub object_count: uword,
    pub bytes_total: uword,
    pub bytes_used: uword,
    pub bytes_free: uword,
    pub bytes_overhead: uword,
    pub bytes_free_reclaimed: uword,
    pub bytes_used_sbrk: uword,
    pub bytes_used_mmap: uword,
    pub bytes_max: uword,
}
unsafe extern "C" {
    pub fn clib_mem_get_heap_usage(heap: *mut clib_mem_heap_t, usage: *mut clib_mem_usage_t);
}
unsafe extern "C" {
    pub fn clib_mem_get_heap_base(heap: *mut clib_mem_heap_t) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
    pub fn clib_mem_get_heap_size(heap: *mut clib_mem_heap_t) -> uword;
}
unsafe extern "C" {
    pub fn clib_mem_get_heap_free_space(heap: *mut clib_mem_heap_t) -> uword;
}
unsafe extern "C" {
    pub fn format_clib_mem_usage(s: *mut u8_, args: *mut va_list) -> *mut u8_;
}
unsafe extern "C" {
    pub fn format_clib_mem_heap(s: *mut u8_, va: *mut va_list) -> *mut u8_;
}
unsafe extern "C" {
    pub fn format_clib_mem_heap_name(s: *mut u8_, va: *mut va_list) -> *mut u8_;
}
unsafe extern "C" {
    pub fn format_clib_mem_page_stats(s: *mut u8_, va: *mut va_list) -> *mut u8_;
}
unsafe extern "C" {
    pub fn clib_mem_vm_map_internal(
        base: *mut ::std::os::raw::c_void,
        log2_page_sz: clib_mem_page_sz_t,
        size: uword,
        fd: ::std::os::raw::c_int,
        log2_align: u8_,
        offset: uword,
        name: *mut ::std::os::raw::c_char,
    ) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
    pub fn clib_mem_vm_map(
        start: *mut ::std::os::raw::c_void,
        size: uword,
        log2_page_size: clib_mem_page_sz_t,
        fmt: *mut ::std::os::raw::c_char,
        ...
    ) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
    pub fn clib_mem_vm_map_stack(
        size: uword,
        log2_page_size: clib_mem_page_sz_t,
        fmt: *mut ::std::os::raw::c_char,
        ...
    ) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
    pub fn clib_mem_vm_map_shared(
        start: *mut ::std::os::raw::c_void,
        size: uword,
        fd: ::std::os::raw::c_int,
        offset: uword,
        fmt: *mut ::std::os::raw::c_char,
        ...
    ) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
    pub fn clib_mem_vm_unmap(base: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn clib_mem_vm_get_next_map_hdr(
        hdr: *mut clib_mem_vm_map_hdr_t,
    ) -> *mut clib_mem_vm_map_hdr_t;
}
unsafe extern "C" {
    pub fn clib_mem_vm_create_fd(
        log2_page_size: clib_mem_page_sz_t,
        fmt: *mut ::std::os::raw::c_char,
        ...
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn clib_mem_get_fd_page_size(fd: ::std::os::raw::c_int) -> uword;
}
unsafe extern "C" {
    pub fn clib_mem_get_fd_log2_page_size(fd: ::std::os::raw::c_int) -> clib_mem_page_sz_t;
}
unsafe extern "C" {
    pub fn clib_mem_vm_reserve(start: uword, size: uword, log2_align: u8_) -> uword;
}
unsafe extern "C" {
    pub fn clib_mem_vm_get_paddr(
        mem: *mut ::std::os::raw::c_void,
        log2_page_size: clib_mem_page_sz_t,
        n_pages: ::std::os::raw::c_int,
    ) -> *mut u64_;
}
unsafe extern "C" {
    pub fn clib_mem_destroy();
}
unsafe extern "C" {
    pub fn clib_mem_set_numa_affinity(
        numa_node: u8_,
        force: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn clib_mem_set_default_numa_affinity() -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn clib_mem_vm_randomize_va(requested_va: *mut uword, log2_page_size: clib_mem_page_sz_t);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct clib_mem_trace_main_t {
    _unused: [u8; 0],
}
unsafe extern "C" {
    pub fn clib_mem_trace_heap(v: *mut clib_mem_heap_t, enable: ::std::os::raw::c_int);
}
unsafe extern "C" {
    pub fn clib_mem_trace_enable_disable(enable: uword) -> uword;
}
unsafe extern "C" {
    pub fn clib_mem_trace_get_current_heap() -> *mut clib_mem_heap_t;
}
unsafe extern "C" {
    pub fn clib_mem_trace_get(heap: *const clib_mem_heap_t, offset: uword, size: uword);
}
unsafe extern "C" {
    pub fn clib_mem_trace_put(heap: *const clib_mem_heap_t, offset: uword, size: uword);
}
unsafe extern "C" {
    pub fn clib_mem_trace_get_main() -> *mut clib_mem_trace_main_t;
}
unsafe extern "C" {
    pub fn format_clib_mem_trace(s: *mut u8_, args: *mut va_list) -> *mut u8_;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct clib_mem_page_stats_t {
    pub log2_page_sz: clib_mem_page_sz_t,
    pub total: uword,
    pub populated: uword,
    pub not_populated: uword,
    pub per_numa: [uword; 16usize],
    pub unknown: uword,
}
impl Default for clib_mem_page_stats_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
unsafe extern "C" {
    pub fn clib_mem_get_page_stats(
        start: *mut ::std::os::raw::c_void,
        log2_page_size: clib_mem_page_sz_t,
        n_pages: uword,
        stats: *mut clib_mem_page_stats_t,
    );
}
pub type clib_mem_bulk_handle_t = *mut ::std::os::raw::c_void;
unsafe extern "C" {
    pub fn clib_mem_bulk_init(
        elt_sz: u32_,
        align: u32_,
        min_elts_per_chunk: u32_,
    ) -> clib_mem_bulk_handle_t;
}
unsafe extern "C" {
    pub fn clib_mem_bulk_destroy(h: clib_mem_bulk_handle_t);
}
unsafe extern "C" {
    pub fn clib_mem_bulk_alloc(h: clib_mem_bulk_handle_t) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
    pub fn clib_mem_bulk_free(h: clib_mem_bulk_handle_t, p: *mut ::std::os::raw::c_void);
}
unsafe extern "C" {
    pub fn format_clib_mem_bulk(s: *mut u8_, args: *mut va_list) -> *mut u8_;
}
#[repr(C)]
#[derive(Debug, Default)]
pub struct vec_header_t<FAM: ?Sized = [u8_; 0]> {
    pub len: u32_,
    pub hdr_size: u8_,
    pub _bitfield_align_1: [u8; 0],
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
    pub grow_elts: u8_,
    pub vpad: [u8_; 1usize],
    pub vector_data: FAM,
}
impl vec_header_t<[u8_]> {}
impl vec_header_t<[u8_; 0]> {}
impl vec_header_t<[u8_; 0]> {
    #[inline]
    pub fn log2_align(&self) -> u8_ {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 7u8) as u8) }
    }
    #[inline]
    pub fn set_log2_align(&mut self, val: u8_) {
        unsafe {
            let val: u8 = ::std::mem::transmute(val);
            self._bitfield_1.set(0usize, 7u8, val as u64)
        }
    }
    #[inline]
    pub unsafe fn log2_align_raw(this: *const Self) -> u8_ {
        unsafe {
            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
                ::std::ptr::addr_of!((*this)._bitfield_1),
                0usize,
                7u8,
            ) as u8)
        }
    }
    #[inline]
    pub unsafe fn set_log2_align_raw(this: *mut Self, val: u8_) {
        unsafe {
            let val: u8 = ::std::mem::transmute(val);
            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
                0usize,
                7u8,
                val as u64,
            )
        }
    }
    #[inline]
    pub fn default_heap(&self) -> u8_ {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u8) }
    }
    #[inline]
    pub fn set_default_heap(&mut self, val: u8_) {
        unsafe {
            let val: u8 = ::std::mem::transmute(val);
            self._bitfield_1.set(7usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub unsafe fn default_heap_raw(this: *const Self) -> u8_ {
        unsafe {
            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
                ::std::ptr::addr_of!((*this)._bitfield_1),
                7usize,
                1u8,
            ) as u8)
        }
    }
    #[inline]
    pub unsafe fn set_default_heap_raw(this: *mut Self, val: u8_) {
        unsafe {
            let val: u8 = ::std::mem::transmute(val);
            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
                7usize,
                1u8,
                val as u64,
            )
        }
    }
    #[inline]
    pub fn new_bitfield_1(
        log2_align: u8_,
        default_heap: u8_,
    ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
        __bindgen_bitfield_unit.set(0usize, 7u8, {
            let log2_align: u8 = unsafe { ::std::mem::transmute(log2_align) };
            log2_align as u64
        });
        __bindgen_bitfield_unit.set(7usize, 1u8, {
            let default_heap: u8 = unsafe { ::std::mem::transmute(default_heap) };
            default_heap as u64
        });
        __bindgen_bitfield_unit
    }
}
unsafe extern "C" {
    pub fn vec_len_not_inline(v: *mut ::std::os::raw::c_void) -> u32_;
}
unsafe extern "C" {
    pub fn vec_mem_size(v: *mut ::std::os::raw::c_void) -> uword;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct vec_attr_t {
    pub heap: *mut ::std::os::raw::c_void,
    pub elt_sz: u32_,
    pub hdr_sz: u16_,
    pub align: u16_,
}
impl Default for vec_attr_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
unsafe extern "C" {
    pub fn _vec_alloc_internal(
        n_elts: uword,
        attr: *const vec_attr_t,
    ) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
    pub fn _vec_realloc_internal(
        v: *mut ::std::os::raw::c_void,
        n_elts: uword,
        attr: *const vec_attr_t,
    ) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
    pub fn _vec_resize_internal(
        v: *mut ::std::os::raw::c_void,
        n_elts: uword,
        attr: *const vec_attr_t,
    ) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
    pub fn vec_free_not_inline(v: *mut ::std::os::raw::c_void);
}
pub type clib_error_handler_func_t = ::std::option::Option<
    unsafe extern "C" fn(
        arg: *mut ::std::os::raw::c_void,
        msg: *mut u8_,
        msg_len: ::std::os::raw::c_int,
    ),
>;
unsafe extern "C" {
    pub fn clib_error_register_handler(
        func: clib_error_handler_func_t,
        arg: *mut ::std::os::raw::c_void,
    );
}
unsafe extern "C" {
    pub fn clib_error_free_vector(errors: *mut clib_error_t) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
    pub fn _clib_error_return(
        errors: *mut clib_error_t,
        code: any,
        flags: uword,
        where_: *const ::std::os::raw::c_char,
        fmt: *const ::std::os::raw::c_char,
        ...
    ) -> *mut clib_error_t;
}
unsafe extern "C" {
    pub fn _clib_error_report(errors: *mut clib_error_t) -> *mut clib_error_t;
}
unsafe extern "C" {
    pub fn format_clib_error(s: *mut u8_, va: *mut va_list) -> *mut u8_;
}
#[repr(C)]
#[repr(align(64))]
#[derive(Debug)]
pub struct clib_spinlock_s {
    pub cacheline0: __IncompleteArrayField<u8_>,
    pub lock: u32_,
}
impl Default for clib_spinlock_s {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type clib_spinlock_t = *mut clib_spinlock_s;
pub const pcap_packet_type_t_PCAP_PACKET_TYPE_null: pcap_packet_type_t = 0;
pub const pcap_packet_type_t_PCAP_PACKET_TYPE_ethernet: pcap_packet_type_t = 1;
pub const pcap_packet_type_t_PCAP_PACKET_TYPE_ppp: pcap_packet_type_t = 9;
pub const pcap_packet_type_t_PCAP_PACKET_TYPE_ip: pcap_packet_type_t = 12;
pub const pcap_packet_type_t_PCAP_PACKET_TYPE_hdlc: pcap_packet_type_t = 104;
pub const pcap_packet_type_t_PCAP_PACKET_TYPE_user0: pcap_packet_type_t = 147;
pub const pcap_packet_type_t_PCAP_PACKET_TYPE_user1: pcap_packet_type_t = 148;
pub const pcap_packet_type_t_PCAP_PACKET_TYPE_user2: pcap_packet_type_t = 149;
pub const pcap_packet_type_t_PCAP_PACKET_TYPE_user3: pcap_packet_type_t = 150;
pub const pcap_packet_type_t_PCAP_PACKET_TYPE_user4: pcap_packet_type_t = 151;
pub const pcap_packet_type_t_PCAP_PACKET_TYPE_user5: pcap_packet_type_t = 152;
pub const pcap_packet_type_t_PCAP_PACKET_TYPE_user6: pcap_packet_type_t = 153;
pub const pcap_packet_type_t_PCAP_PACKET_TYPE_user7: pcap_packet_type_t = 154;
pub const pcap_packet_type_t_PCAP_PACKET_TYPE_user8: pcap_packet_type_t = 155;
pub const pcap_packet_type_t_PCAP_PACKET_TYPE_user9: pcap_packet_type_t = 156;
pub const pcap_packet_type_t_PCAP_PACKET_TYPE_user10: pcap_packet_type_t = 157;
pub const pcap_packet_type_t_PCAP_PACKET_TYPE_user11: pcap_packet_type_t = 158;
pub const pcap_packet_type_t_PCAP_PACKET_TYPE_user12: pcap_packet_type_t = 159;
pub const pcap_packet_type_t_PCAP_PACKET_TYPE_user13: pcap_packet_type_t = 160;
pub const pcap_packet_type_t_PCAP_PACKET_TYPE_user14: pcap_packet_type_t = 161;
pub const pcap_packet_type_t_PCAP_PACKET_TYPE_user15: pcap_packet_type_t = 162;
pub const pcap_packet_type_t_PCAP_PACKET_TYPE_vpp: pcap_packet_type_t = 280;
pub type pcap_packet_type_t = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct pcap_main_t {
    pub lock: clib_spinlock_t,
    pub file_name: *mut ::std::os::raw::c_char,
    pub n_packets_to_capture: u32_,
    pub packet_type: pcap_packet_type_t,
    pub n_packets_captured: u32_,
    pub flags: u32_,
    pub file_descriptor: ::std::os::raw::c_int,
    pub n_pcap_data_written: u32_,
    pub pcap_data: *mut u8_,
    pub packets_read: *mut *mut u8_,
    pub timestamps: *mut u64_,
    pub min_packet_bytes: u32_,
    pub max_packet_bytes: u32_,
}
impl Default for pcap_main_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type format_function_t =
    ::std::option::Option<unsafe extern "C" fn(s: *mut u8_, args: *mut va_list) -> *mut u8_>;
unsafe extern "C" {
    pub fn va_format(
        s: *mut u8_,
        format: *const ::std::os::raw::c_char,
        args: *mut va_list,
    ) -> *mut u8_;
}
unsafe extern "C" {
    pub fn format(s: *mut u8_, format: *const ::std::os::raw::c_char, ...) -> *mut u8_;
}
pub type FILE = _IO_FILE;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _IO_marker {
    _unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _IO_codecvt {
    _unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _IO_wide_data {
    _unused: [u8; 0],
}
pub type _IO_lock_t = ::std::os::raw::c_void;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _IO_FILE {
    pub _flags: ::std::os::raw::c_int,
    pub _IO_read_ptr: *mut ::std::os::raw::c_char,
    pub _IO_read_end: *mut ::std::os::raw::c_char,
    pub _IO_read_base: *mut ::std::os::raw::c_char,
    pub _IO_write_base: *mut ::std::os::raw::c_char,
    pub _IO_write_ptr: *mut ::std::os::raw::c_char,
    pub _IO_write_end: *mut ::std::os::raw::c_char,
    pub _IO_buf_base: *mut ::std::os::raw::c_char,
    pub _IO_buf_end: *mut ::std::os::raw::c_char,
    pub _IO_save_base: *mut ::std::os::raw::c_char,
    pub _IO_backup_base: *mut ::std::os::raw::c_char,
    pub _IO_save_end: *mut ::std::os::raw::c_char,
    pub _markers: *mut _IO_marker,
    pub _chain: *mut _IO_FILE,
    pub _fileno: ::std::os::raw::c_int,
    pub _flags2: ::std::os::raw::c_int,
    pub _old_offset: __off_t,
    pub _cur_column: ::std::os::raw::c_ushort,
    pub _vtable_offset: ::std::os::raw::c_schar,
    pub _shortbuf: [::std::os::raw::c_char; 1usize],
    pub _lock: *mut _IO_lock_t,
    pub _offset: __off64_t,
    pub _codecvt: *mut _IO_codecvt,
    pub _wide_data: *mut _IO_wide_data,
    pub _freeres_list: *mut _IO_FILE,
    pub _freeres_buf: *mut ::std::os::raw::c_void,
    pub __pad5: usize,
    pub _mode: ::std::os::raw::c_int,
    pub _unused2: [::std::os::raw::c_char; 20usize],
}
impl Default for _IO_FILE {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
unsafe extern "C" {
    pub fn va_fformat(f: *mut FILE, fmt: *mut ::std::os::raw::c_char, va: *mut va_list) -> word;
}
unsafe extern "C" {
    pub fn fformat(f: *mut FILE, fmt: *mut ::std::os::raw::c_char, ...) -> word;
}
unsafe extern "C" {
    pub fn fdformat(fd: ::std::os::raw::c_int, fmt: *mut ::std::os::raw::c_char, ...) -> word;
}
unsafe extern "C" {
    pub fn format_vec32(s: *mut u8_, va: *mut va_list) -> *mut u8_;
}
unsafe extern "C" {
    pub fn format_vec_uword(s: *mut u8_, va: *mut va_list) -> *mut u8_;
}
unsafe extern "C" {
    pub fn format_ascii_bytes(s: *mut u8_, va: *mut va_list) -> *mut u8_;
}
unsafe extern "C" {
    pub fn format_hex_bytes(s: *mut u8_, va: *mut va_list) -> *mut u8_;
}
unsafe extern "C" {
    pub fn format_hex_bytes_no_wrap(s: *mut u8_, va: *mut va_list) -> *mut u8_;
}
unsafe extern "C" {
    pub fn format_white_space(s: *mut u8_, va: *mut va_list) -> *mut u8_;
}
unsafe extern "C" {
    pub fn format_f64(s: *mut u8_, va: *mut va_list) -> *mut u8_;
}
unsafe extern "C" {
    pub fn format_time_interval(s: *mut u8_, va: *mut va_list) -> *mut u8_;
}
unsafe extern "C" {
    pub fn format_duration(s: *mut u8_, va: *mut va_list) -> *mut u8_;
}
unsafe extern "C" {
    pub fn format_address_family(s: *mut u8_, va: *mut va_list) -> *mut u8_;
}
unsafe extern "C" {
    pub fn format_network_address(s: *mut u8_, va: *mut va_list) -> *mut u8_;
}
unsafe extern "C" {
    pub fn format_network_protocol(s: *mut u8_, va: *mut va_list) -> *mut u8_;
}
unsafe extern "C" {
    pub fn format_network_port(s: *mut u8_, va: *mut va_list) -> *mut u8_;
}
unsafe extern "C" {
    pub fn format_sockaddr(s: *mut u8_, va: *mut va_list) -> *mut u8_;
}
unsafe extern "C" {
    pub fn format_timeval(s: *mut u8_, va: *mut va_list) -> *mut u8_;
}
unsafe extern "C" {
    pub fn format_time_float(s: *mut u8_, va: *mut va_list) -> *mut u8_;
}
unsafe extern "C" {
    pub fn format_signal(s: *mut u8_, va: *mut va_list) -> *mut u8_;
}
unsafe extern "C" {
    pub fn format_ucontext_pc(s: *mut u8_, va: *mut va_list) -> *mut u8_;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _unformat_input_t {
    pub buffer: *mut u8_,
    pub index: uword,
    pub buffer_marks: *mut uword,
    pub fill_buffer:
        ::std::option::Option<unsafe extern "C" fn(i: *mut _unformat_input_t) -> uword>,
    pub free: ::std::option::Option<unsafe extern "C" fn(i: *mut _unformat_input_t)>,
    pub fill_buffer_arg: *mut ::std::os::raw::c_void,
}
impl Default for _unformat_input_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type unformat_input_t = _unformat_input_t;
unsafe extern "C" {
    pub fn unformat_skip_white_space(input: *mut unformat_input_t) -> uword;
}
pub type unformat_function_t = ::std::option::Option<
    unsafe extern "C" fn(input: *mut unformat_input_t, args: *mut va_list) -> uword,
>;
unsafe extern "C" {
    pub fn unformat(i: *mut unformat_input_t, fmt: *const ::std::os::raw::c_char, ...) -> uword;
}
unsafe extern "C" {
    pub fn unformat_user(input: *mut unformat_input_t, func: unformat_function_t, ...) -> uword;
}
unsafe extern "C" {
    pub fn va_unformat(
        i: *mut unformat_input_t,
        fmt: *const ::std::os::raw::c_char,
        args: *mut va_list,
    ) -> uword;
}
unsafe extern "C" {
    pub fn unformat_init_command_line(
        input: *mut unformat_input_t,
        argv: *mut *mut ::std::os::raw::c_char,
    );
}
unsafe extern "C" {
    pub fn unformat_init_string(
        input: *mut unformat_input_t,
        string: *const ::std::os::raw::c_char,
        string_len: ::std::os::raw::c_int,
    );
}
unsafe extern "C" {
    pub fn unformat_init_vector(input: *mut unformat_input_t, vector_string: *mut u8_);
}
unsafe extern "C" {
    pub fn unformat_u8(input: *mut unformat_input_t, args: *mut va_list) -> uword;
}
unsafe extern "C" {
    pub fn unformat_u16(input: *mut unformat_input_t, args: *mut va_list) -> uword;
}
unsafe extern "C" {
    pub fn format_unformat_error(s: *mut u8_, va: *mut va_list) -> *mut u8_;
}
unsafe extern "C" {
    pub fn format_unformat_input(s: *mut u8_, va: *mut va_list) -> *mut u8_;
}
unsafe extern "C" {
    pub fn unformat_input(input: *mut unformat_input_t, args: *mut va_list) -> uword;
}
unsafe extern "C" {
    pub fn unformat_line(input: *mut unformat_input_t, args: *mut va_list) -> uword;
}
unsafe extern "C" {
    pub fn unformat_line_input(input: *mut unformat_input_t, args: *mut va_list) -> uword;
}
unsafe extern "C" {
    pub fn unformat_token(input: *mut unformat_input_t, args: *mut va_list) -> uword;
}
unsafe extern "C" {
    pub fn unformat_hex_string(input: *mut unformat_input_t, args: *mut va_list) -> uword;
}
unsafe extern "C" {
    pub fn unformat_eof(input: *mut unformat_input_t, args: *mut va_list) -> uword;
}
unsafe extern "C" {
    pub fn unformat_memory_size(input: *mut unformat_input_t, args: *mut va_list) -> uword;
}
unsafe extern "C" {
    pub fn unformat_base10(input: *mut unformat_input_t, args: *mut va_list) -> uword;
}
unsafe extern "C" {
    pub fn unformat_c_string_array(input: *mut unformat_input_t, args: *mut va_list) -> uword;
}
unsafe extern "C" {
    pub fn unformat_single_quoted_string(input: *mut unformat_input_t, args: *mut va_list)
    -> uword;
}
unsafe extern "C" {
    pub fn unformat_double_quoted_string(input: *mut unformat_input_t, args: *mut va_list)
    -> uword;
}
unsafe extern "C" {
    pub fn format_base10(s: *mut u8_, va: *mut va_list) -> *mut u8_;
}
unsafe extern "C" {
    pub fn format_memory_size(s: *mut u8_, va: *mut va_list) -> *mut u8_;
}
unsafe extern "C" {
    pub fn unformat_log2_page_size(input: *mut unformat_input_t, args: *mut va_list) -> uword;
}
unsafe extern "C" {
    pub fn format_log2_page_size(s: *mut u8_, va: *mut va_list) -> *mut u8_;
}
unsafe extern "C" {
    pub fn format_c_identifier(s: *mut u8_, va: *mut va_list) -> *mut u8_;
}
unsafe extern "C" {
    pub fn format_hexdump(s: *mut u8_, va: *mut va_list) -> *mut u8_;
}
unsafe extern "C" {
    pub fn format_hexdump_u16(s: *mut u8_, va: *mut va_list) -> *mut u8_;
}
unsafe extern "C" {
    pub fn format_hexdump_u32(s: *mut u8_, va: *mut va_list) -> *mut u8_;
}
unsafe extern "C" {
    pub fn format_hexdump_u64(s: *mut u8_, va: *mut va_list) -> *mut u8_;
}
unsafe extern "C" {
    pub fn format_uword_bitmap(s: *mut u8_, va: *mut va_list) -> *mut u8_;
}
unsafe extern "C" {
    pub fn unformat_init_clib_file(
        input: *mut unformat_input_t,
        file_descriptor: ::std::os::raw::c_int,
    );
}
unsafe extern "C" {
    pub fn unformat_init_file(
        input: *mut unformat_input_t,
        fmt: *mut ::std::os::raw::c_char,
        ...
    ) -> uword;
}
unsafe extern "C" {
    pub fn unformat_init_unix_env(
        input: *mut unformat_input_t,
        var: *mut ::std::os::raw::c_char,
    ) -> uword;
}
unsafe extern "C" {
    pub fn unformat_unix_gid(input: *mut unformat_input_t, args: *mut va_list) -> uword;
}
unsafe extern "C" {
    pub fn unformat_data_size(input: *mut unformat_input_t, args: *mut va_list) -> uword;
}
unsafe extern "C" {
    pub fn test_format_main(input: *mut unformat_input_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn test_unformat_main(input: *mut unformat_input_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn test_vec_main(input: *mut unformat_input_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn format_c_string(
        s: *mut u8_,
        fmt: *const ::std::os::raw::c_char,
        ...
    ) -> *mut ::std::os::raw::c_char;
}
pub const vnet_error_t_VNET_ERR_UNSPECIFIED: vnet_error_t = -1;
pub const vnet_error_t_VNET_ERR_INVALID_SW_IF_INDEX: vnet_error_t = -2;
pub const vnet_error_t_VNET_ERR_NO_SUCH_FIB: vnet_error_t = -3;
pub const vnet_error_t_VNET_ERR_NO_SUCH_INNER_FIB: vnet_error_t = -4;
pub const vnet_error_t_VNET_ERR_NO_SUCH_LABEL: vnet_error_t = -5;
pub const vnet_error_t_VNET_ERR_NO_SUCH_ENTRY: vnet_error_t = -6;
pub const vnet_error_t_VNET_ERR_INVALID_VALUE: vnet_error_t = -7;
pub const vnet_error_t_VNET_ERR_INVALID_VALUE_2: vnet_error_t = -8;
pub const vnet_error_t_VNET_ERR_UNIMPLEMENTED: vnet_error_t = -9;
pub const vnet_error_t_VNET_ERR_INVALID_SW_IF_INDEX_2: vnet_error_t = -10;
pub const vnet_error_t_VNET_ERR_SYSCALL_ERROR_1: vnet_error_t = -11;
pub const vnet_error_t_VNET_ERR_SYSCALL_ERROR_2: vnet_error_t = -12;
pub const vnet_error_t_VNET_ERR_SYSCALL_ERROR_3: vnet_error_t = -13;
pub const vnet_error_t_VNET_ERR_SYSCALL_ERROR_4: vnet_error_t = -14;
pub const vnet_error_t_VNET_ERR_SYSCALL_ERROR_5: vnet_error_t = -15;
pub const vnet_error_t_VNET_ERR_SYSCALL_ERROR_6: vnet_error_t = -16;
pub const vnet_error_t_VNET_ERR_SYSCALL_ERROR_7: vnet_error_t = -17;
pub const vnet_error_t_VNET_ERR_SYSCALL_ERROR_8: vnet_error_t = -18;
pub const vnet_error_t_VNET_ERR_SYSCALL_ERROR_9: vnet_error_t = -19;
pub const vnet_error_t_VNET_ERR_SYSCALL_ERROR_10: vnet_error_t = -20;
pub const vnet_error_t_VNET_ERR_FEATURE_DISABLED: vnet_error_t = -30;
pub const vnet_error_t_VNET_ERR_INVALID_REGISTRATION: vnet_error_t = -31;
pub const vnet_error_t_VNET_ERR_NEXT_HOP_NOT_IN_FIB: vnet_error_t = -50;
pub const vnet_error_t_VNET_ERR_UNKNOWN_DESTINATION: vnet_error_t = -51;
pub const vnet_error_t_VNET_ERR_NO_PATHS_IN_ROUTE: vnet_error_t = -52;
pub const vnet_error_t_VNET_ERR_NEXT_HOP_NOT_FOUND_MP: vnet_error_t = -53;
pub const vnet_error_t_VNET_ERR_NO_MATCHING_INTERFACE: vnet_error_t = -54;
pub const vnet_error_t_VNET_ERR_INVALID_VLAN: vnet_error_t = -55;
pub const vnet_error_t_VNET_ERR_VLAN_ALREADY_EXISTS: vnet_error_t = -56;
pub const vnet_error_t_VNET_ERR_INVALID_SRC_ADDRESS: vnet_error_t = -57;
pub const vnet_error_t_VNET_ERR_INVALID_DST_ADDRESS: vnet_error_t = -58;
pub const vnet_error_t_VNET_ERR_ADDRESS_LENGTH_MISMATCH: vnet_error_t = -59;
pub const vnet_error_t_VNET_ERR_ADDRESS_NOT_FOUND_FOR_INTERFACE: vnet_error_t = -60;
pub const vnet_error_t_VNET_ERR_ADDRESS_NOT_DELETABLE: vnet_error_t = -61;
pub const vnet_error_t_VNET_ERR_IP6_NOT_ENABLED: vnet_error_t = -62;
pub const vnet_error_t_VNET_ERR_NO_SUCH_NODE: vnet_error_t = -63;
pub const vnet_error_t_VNET_ERR_NO_SUCH_NODE2: vnet_error_t = -64;
pub const vnet_error_t_VNET_ERR_NO_SUCH_TABLE: vnet_error_t = -65;
pub const vnet_error_t_VNET_ERR_NO_SUCH_TABLE2: vnet_error_t = -66;
pub const vnet_error_t_VNET_ERR_NO_SUCH_TABLE3: vnet_error_t = -67;
pub const vnet_error_t_VNET_ERR_SUBIF_ALREADY_EXISTS: vnet_error_t = -68;
pub const vnet_error_t_VNET_ERR_SUBIF_CREATE_FAILED: vnet_error_t = -69;
pub const vnet_error_t_VNET_ERR_INVALID_MEMORY_SIZE: vnet_error_t = -70;
pub const vnet_error_t_VNET_ERR_INVALID_INTERFACE: vnet_error_t = -71;
pub const vnet_error_t_VNET_ERR_INVALID_VLAN_TAG_COUNT: vnet_error_t = -72;
pub const vnet_error_t_VNET_ERR_INVALID_ARGUMENT: vnet_error_t = -73;
pub const vnet_error_t_VNET_ERR_UNEXPECTED_INTF_STATE: vnet_error_t = -74;
pub const vnet_error_t_VNET_ERR_TUNNEL_EXIST: vnet_error_t = -75;
pub const vnet_error_t_VNET_ERR_INVALID_DECAP_NEXT: vnet_error_t = -76;
pub const vnet_error_t_VNET_ERR_RESPONSE_NOT_READY: vnet_error_t = -77;
pub const vnet_error_t_VNET_ERR_NOT_CONNECTED: vnet_error_t = -78;
pub const vnet_error_t_VNET_ERR_IF_ALREADY_EXISTS: vnet_error_t = -79;
pub const vnet_error_t_VNET_ERR_BOND_SLAVE_NOT_ALLOWED: vnet_error_t = -80;
pub const vnet_error_t_VNET_ERR_VALUE_EXIST: vnet_error_t = -81;
pub const vnet_error_t_VNET_ERR_SAME_SRC_DST: vnet_error_t = -82;
pub const vnet_error_t_VNET_ERR_IP6_MULTICAST_ADDRESS_NOT_PRESENT: vnet_error_t = -83;
pub const vnet_error_t_VNET_ERR_SR_POLICY_NAME_NOT_PRESENT: vnet_error_t = -84;
pub const vnet_error_t_VNET_ERR_NOT_RUNNING_AS_ROOT: vnet_error_t = -85;
pub const vnet_error_t_VNET_ERR_ALREADY_CONNECTED: vnet_error_t = -86;
pub const vnet_error_t_VNET_ERR_UNSUPPORTED_JNI_VERSION: vnet_error_t = -87;
pub const vnet_error_t_VNET_ERR_IP_PREFIX_INVALID: vnet_error_t = -88;
pub const vnet_error_t_VNET_ERR_INVALID_WORKER: vnet_error_t = -89;
pub const vnet_error_t_VNET_ERR_LISP_DISABLED: vnet_error_t = -90;
pub const vnet_error_t_VNET_ERR_CLASSIFY_TABLE_NOT_FOUND: vnet_error_t = -91;
pub const vnet_error_t_VNET_ERR_INVALID_EID_TYPE: vnet_error_t = -92;
pub const vnet_error_t_VNET_ERR_CANNOT_CREATE_PCAP_FILE: vnet_error_t = -93;
pub const vnet_error_t_VNET_ERR_INCORRECT_ADJACENCY_TYPE: vnet_error_t = -94;
pub const vnet_error_t_VNET_ERR_EXCEEDED_NUMBER_OF_RANGES_CAPACITY: vnet_error_t = -95;
pub const vnet_error_t_VNET_ERR_EXCEEDED_NUMBER_OF_PORTS_CAPACITY: vnet_error_t = -96;
pub const vnet_error_t_VNET_ERR_INVALID_ADDRESS_FAMILY: vnet_error_t = -97;
pub const vnet_error_t_VNET_ERR_INVALID_SUB_SW_IF_INDEX: vnet_error_t = -98;
pub const vnet_error_t_VNET_ERR_TABLE_TOO_BIG: vnet_error_t = -99;
pub const vnet_error_t_VNET_ERR_CANNOT_ENABLE_DISABLE_FEATURE: vnet_error_t = -100;
pub const vnet_error_t_VNET_ERR_BFD_EEXIST: vnet_error_t = -101;
pub const vnet_error_t_VNET_ERR_BFD_ENOENT: vnet_error_t = -102;
pub const vnet_error_t_VNET_ERR_BFD_EINUSE: vnet_error_t = -103;
pub const vnet_error_t_VNET_ERR_BFD_NOTSUPP: vnet_error_t = -104;
pub const vnet_error_t_VNET_ERR_ADDRESS_IN_USE: vnet_error_t = -105;
pub const vnet_error_t_VNET_ERR_ADDRESS_NOT_IN_USE: vnet_error_t = -106;
pub const vnet_error_t_VNET_ERR_QUEUE_FULL: vnet_error_t = -107;
pub const vnet_error_t_VNET_ERR_APP_UNSUPPORTED_CFG: vnet_error_t = -108;
pub const vnet_error_t_VNET_ERR_URI_FIFO_CREATE_FAILED: vnet_error_t = -109;
pub const vnet_error_t_VNET_ERR_LISP_RLOC_LOCAL: vnet_error_t = -110;
pub const vnet_error_t_VNET_ERR_BFD_EAGAIN: vnet_error_t = -111;
pub const vnet_error_t_VNET_ERR_INVALID_GPE_MODE: vnet_error_t = -112;
pub const vnet_error_t_VNET_ERR_LISP_GPE_ENTRIES_PRESENT: vnet_error_t = -113;
pub const vnet_error_t_VNET_ERR_ADDRESS_FOUND_FOR_INTERFACE: vnet_error_t = -114;
pub const vnet_error_t_VNET_ERR_SESSION_CONNECT: vnet_error_t = -115;
pub const vnet_error_t_VNET_ERR_ENTRY_ALREADY_EXISTS: vnet_error_t = -116;
pub const vnet_error_t_VNET_ERR_SVM_SEGMENT_CREATE_FAIL: vnet_error_t = -117;
pub const vnet_error_t_VNET_ERR_APPLICATION_NOT_ATTACHED: vnet_error_t = -118;
pub const vnet_error_t_VNET_ERR_BD_ALREADY_EXISTS: vnet_error_t = -119;
pub const vnet_error_t_VNET_ERR_BD_IN_USE: vnet_error_t = -120;
pub const vnet_error_t_VNET_ERR_BD_NOT_MODIFIABLE: vnet_error_t = -121;
pub const vnet_error_t_VNET_ERR_BD_ID_EXCEED_MAX: vnet_error_t = -122;
pub const vnet_error_t_VNET_ERR_SUBIF_DOESNT_EXIST: vnet_error_t = -123;
pub const vnet_error_t_VNET_ERR_L2_MACS_EVENT_CLINET_PRESENT: vnet_error_t = -124;
pub const vnet_error_t_VNET_ERR_INVALID_QUEUE: vnet_error_t = -125;
pub const vnet_error_t_VNET_ERR_UNSUPPORTED: vnet_error_t = -126;
pub const vnet_error_t_VNET_ERR_DUPLICATE_IF_ADDRESS: vnet_error_t = -127;
pub const vnet_error_t_VNET_ERR_APP_INVALID_NS: vnet_error_t = -128;
pub const vnet_error_t_VNET_ERR_APP_WRONG_NS_SECRET: vnet_error_t = -129;
pub const vnet_error_t_VNET_ERR_APP_CONNECT_SCOPE: vnet_error_t = -130;
pub const vnet_error_t_VNET_ERR_APP_ALREADY_ATTACHED: vnet_error_t = -131;
pub const vnet_error_t_VNET_ERR_SESSION_REDIRECT: vnet_error_t = -132;
pub const vnet_error_t_VNET_ERR_ILLEGAL_NAME: vnet_error_t = -133;
pub const vnet_error_t_VNET_ERR_NO_NAME_SERVERS: vnet_error_t = -134;
pub const vnet_error_t_VNET_ERR_NAME_SERVER_NOT_FOUND: vnet_error_t = -135;
pub const vnet_error_t_VNET_ERR_NAME_RESOLUTION_NOT_ENABLED: vnet_error_t = -136;
pub const vnet_error_t_VNET_ERR_NAME_SERVER_FORMAT_ERROR: vnet_error_t = -137;
pub const vnet_error_t_VNET_ERR_NAME_SERVER_NO_SUCH_NAME: vnet_error_t = -138;
pub const vnet_error_t_VNET_ERR_NAME_SERVER_NO_ADDRESSES: vnet_error_t = -139;
pub const vnet_error_t_VNET_ERR_NAME_SERVER_NEXT_SERVER: vnet_error_t = -140;
pub const vnet_error_t_VNET_ERR_APP_CONNECT_FILTERED: vnet_error_t = -141;
pub const vnet_error_t_VNET_ERR_ACL_IN_USE_INBOUND: vnet_error_t = -142;
pub const vnet_error_t_VNET_ERR_ACL_IN_USE_OUTBOUND: vnet_error_t = -143;
pub const vnet_error_t_VNET_ERR_INIT_FAILED: vnet_error_t = -144;
pub const vnet_error_t_VNET_ERR_NETLINK_ERROR: vnet_error_t = -145;
pub const vnet_error_t_VNET_ERR_BIER_BSL_UNSUP: vnet_error_t = -146;
pub const vnet_error_t_VNET_ERR_INSTANCE_IN_USE: vnet_error_t = -147;
pub const vnet_error_t_VNET_ERR_INVALID_SESSION_ID: vnet_error_t = -148;
pub const vnet_error_t_VNET_ERR_ACL_IN_USE_BY_LOOKUP_CONTEXT: vnet_error_t = -149;
pub const vnet_error_t_VNET_ERR_INVALID_VALUE_3: vnet_error_t = -150;
pub const vnet_error_t_VNET_ERR_NON_ETHERNET: vnet_error_t = -151;
pub const vnet_error_t_VNET_ERR_BD_ALREADY_HAS_BVI: vnet_error_t = -152;
pub const vnet_error_t_VNET_ERR_INVALID_PROTOCOL: vnet_error_t = -153;
pub const vnet_error_t_VNET_ERR_INVALID_ALGORITHM: vnet_error_t = -154;
pub const vnet_error_t_VNET_ERR_RSRC_IN_USE: vnet_error_t = -155;
pub const vnet_error_t_VNET_ERR_KEY_LENGTH: vnet_error_t = -156;
pub const vnet_error_t_VNET_ERR_FIB_PATH_UNSUPPORTED_NH_PROTO: vnet_error_t = -157;
pub const vnet_error_t_VNET_ERR_API_ENDIAN_FAILED: vnet_error_t = -159;
pub const vnet_error_t_VNET_ERR_NO_CHANGE: vnet_error_t = -160;
pub const vnet_error_t_VNET_ERR_MISSING_CERT_KEY: vnet_error_t = -161;
pub const vnet_error_t_VNET_ERR_LIMIT_EXCEEDED: vnet_error_t = -162;
pub const vnet_error_t_VNET_ERR_IKE_NO_PORT: vnet_error_t = -163;
pub const vnet_error_t_VNET_ERR_UDP_PORT_TAKEN: vnet_error_t = -164;
pub const vnet_error_t_VNET_ERR_EAGAIN: vnet_error_t = -165;
pub const vnet_error_t_VNET_ERR_INVALID_VALUE_4: vnet_error_t = -166;
pub const vnet_error_t_VNET_ERR_BUSY: vnet_error_t = -167;
pub const vnet_error_t_VNET_ERR_BUG: vnet_error_t = -168;
pub const vnet_error_t_VNET_ERR_FEATURE_ALREADY_DISABLED: vnet_error_t = -169;
pub const vnet_error_t_VNET_ERR_FEATURE_ALREADY_ENABLED: vnet_error_t = -170;
pub const vnet_error_t_VNET_ERR_INVALID_PREFIX_LENGTH: vnet_error_t = -171;
pub const vnet_error_t_VNET_N_ERROR: vnet_error_t = -170;
pub type vnet_error_t = ::std::os::raw::c_int;
unsafe extern "C" {
    pub fn vnet_error(
        code: vnet_error_t,
        fmt: *mut ::std::os::raw::c_char,
        ...
    ) -> *mut clib_error_t;
}
unsafe extern "C" {
    pub fn format_vnet_api_errno(s: *mut u8_, args: *mut va_list) -> *mut u8_;
}
pub const vlib_rx_or_tx_t_VLIB_RX: vlib_rx_or_tx_t = 0;
pub const vlib_rx_or_tx_t_VLIB_TX: vlib_rx_or_tx_t = 1;
pub const vlib_rx_or_tx_t_VLIB_N_RX_TX: vlib_rx_or_tx_t = 2;
pub type vlib_rx_or_tx_t = ::std::os::raw::c_uint;
pub use self::vlib_rx_or_tx_t as vlib_dir_t;
pub const vlib_read_or_write_t_VLIB_READ: vlib_read_or_write_t = 0;
pub const vlib_read_or_write_t_VLIB_WRITE: vlib_read_or_write_t = 1;
pub type vlib_read_or_write_t = ::std::os::raw::c_uint;
pub const vlib_up_or_down_t_VLIB_DOWN: vlib_up_or_down_t = 0;
pub const vlib_up_or_down_t_VLIB_UP: vlib_up_or_down_t = 1;
pub type vlib_up_or_down_t = ::std::os::raw::c_uint;
pub const vlib_enable_or_disable_t_VLIB_DISABLE: vlib_enable_or_disable_t = 0;
pub const vlib_enable_or_disable_t_VLIB_ENABLE: vlib_enable_or_disable_t = 1;
pub type vlib_enable_or_disable_t = ::std::os::raw::c_uint;
pub type vlib_log_class_t = u32_;
pub type clib_bitmap_t = uword;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct clib_pmalloc_chunk_t {
    pub start: u32_,
    pub prev: u32_,
    pub next: u32_,
    pub _bitfield_align_1: [u32; 0],
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
}
impl clib_pmalloc_chunk_t {
    #[inline]
    pub fn size(&self) -> u32_ {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 31u8) as u32) }
    }
    #[inline]
    pub fn set_size(&mut self, val: u32_) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(0usize, 31u8, val as u64)
        }
    }
    #[inline]
    pub unsafe fn size_raw(this: *const Self) -> u32_ {
        unsafe {
            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
                ::std::ptr::addr_of!((*this)._bitfield_1),
                0usize,
                31u8,
            ) as u32)
        }
    }
    #[inline]
    pub unsafe fn set_size_raw(this: *mut Self, val: u32_) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
                0usize,
                31u8,
                val as u64,
            )
        }
    }
    #[inline]
    pub fn used(&self) -> u32_ {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(31usize, 1u8) as u32) }
    }
    #[inline]
    pub fn set_used(&mut self, val: u32_) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(31usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub unsafe fn used_raw(this: *const Self) -> u32_ {
        unsafe {
            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
                ::std::ptr::addr_of!((*this)._bitfield_1),
                31usize,
                1u8,
            ) as u32)
        }
    }
    #[inline]
    pub unsafe fn set_used_raw(this: *mut Self, val: u32_) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
                31usize,
                1u8,
                val as u64,
            )
        }
    }
    #[inline]
    pub fn new_bitfield_1(size: u32_, used: u32_) -> __BindgenBitfieldUnit<[u8; 4usize]> {
        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
        __bindgen_bitfield_unit.set(0usize, 31u8, {
            let size: u32 = unsafe { ::std::mem::transmute(size) };
            size as u64
        });
        __bindgen_bitfield_unit.set(31usize, 1u8, {
            let used: u32 = unsafe { ::std::mem::transmute(used) };
            used as u64
        });
        __bindgen_bitfield_unit
    }
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct clib_pmalloc_page_t {
    pub index: u32_,
    pub arena_index: u32_,
    pub chunks: *mut clib_pmalloc_chunk_t,
    pub first_chunk_index: u32_,
    pub n_free_chunks: u32_,
    pub n_free_blocks: u32_,
}
impl Default for clib_pmalloc_page_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct clib_pmalloc_arena_t {
    pub index: u32_,
    pub flags: u32_,
    pub fd: ::std::os::raw::c_int,
    pub numa_node: u32_,
    pub first_page_index: u32_,
    pub log2_subpage_sz: u32_,
    pub subpages_per_page: u32_,
    pub n_pages: u32_,
    pub name: *mut u8_,
    pub page_indices: *mut u32_,
}
impl Default for clib_pmalloc_arena_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct clib_pmalloc_main_t {
    pub flags: u32_,
    pub base: *mut u8_,
    pub def_log2_page_sz: clib_mem_page_sz_t,
    pub max_pages: u32_,
    pub pages: *mut clib_pmalloc_page_t,
    pub chunk_index_by_va: *mut uword,
    pub arenas: *mut clib_pmalloc_arena_t,
    pub default_arena_for_numa_node: *mut u32_,
    pub lookup_table: *mut uword,
    pub lookup_log2_page_sz: u32_,
    pub error: *mut clib_error_t,
}
impl Default for clib_pmalloc_main_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct vlib_physmem_map_t {
    pub index: ::std::os::raw::c_int,
    pub fd: ::std::os::raw::c_int,
    pub base: *mut ::std::os::raw::c_void,
    pub n_pages: u32_,
    pub page_table: *mut uword,
    pub log2_page_size: u32_,
    pub numa_node: u32_,
}
impl Default for vlib_physmem_map_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct vlib_physmem_main_t {
    pub flags: u32_,
    pub base_addr: uword,
    pub max_size: uword,
    pub maps: *mut vlib_physmem_map_t,
    pub pmalloc_main: *mut clib_pmalloc_main_t,
}
impl Default for vlib_physmem_main_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct clib_longjmp_t {
    pub regs: [uword; 8usize],
}
pub type vlib_error_t = u16_;
pub const vl_counter_severity_e_VL_COUNTER_SEVERITY_ERROR: vl_counter_severity_e = 0;
pub const vl_counter_severity_e_VL_COUNTER_SEVERITY_WARN: vl_counter_severity_e = 1;
pub const vl_counter_severity_e_VL_COUNTER_SEVERITY_INFO: vl_counter_severity_e = 2;
pub type vl_counter_severity_e = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct vlib_error_desc_t {
    pub name: *mut ::std::os::raw::c_char,
    pub desc: *mut ::std::os::raw::c_char,
    pub severity: vl_counter_severity_e,
    pub stats_entry_index: u32_,
}
impl Default for vlib_error_desc_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct vlib_error_main_t {
    pub counters: *mut u64_,
    pub counters_last_clear: *mut u64_,
    pub counters_heap: *mut vlib_error_desc_t,
    pub stats_err_entry_index: u32_,
}
impl Default for vlib_error_main_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub const VLIB_BUFFER_IS_TRACED: _bindgen_ty_30 = 1;
pub const VLIB_BUFFER_NEXT_PRESENT: _bindgen_ty_30 = 2;
pub const VLIB_BUFFER_TOTAL_LENGTH_VALID: _bindgen_ty_30 = 4;
pub const VLIB_BUFFER_EXT_HDR_VALID: _bindgen_ty_30 = 8;
pub type _bindgen_ty_30 = ::std::os::raw::c_uint;
pub const VLIB_BUFFER_LOG2_IS_TRACED: _bindgen_ty_31 = 0;
pub const VLIB_BUFFER_LOG2_NEXT_PRESENT: _bindgen_ty_31 = 1;
pub const VLIB_BUFFER_LOG2_TOTAL_LENGTH_VALID: _bindgen_ty_31 = 2;
pub const VLIB_BUFFER_LOG2_EXT_HDR_VALID: _bindgen_ty_31 = 3;
pub type _bindgen_ty_31 = ::std::os::raw::c_uint;
#[repr(C)]
#[repr(align(64))]
pub struct vlib_buffer_template_t {
    pub align_mark: __IncompleteArrayField<u8_>,
    pub current_data: i16_,
    pub current_length: u16_,
    pub flags: u32_,
    pub flow_id: u32_,
    pub ref_count: u8_,
    pub buffer_pool_index: u8_,
    pub error: vlib_error_t,
    pub next_buffer: u32_,
    pub __bindgen_anon_1: vlib_buffer_template_t__bindgen_ty_1,
    pub opaque: [u32_; 10usize],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union vlib_buffer_template_t__bindgen_ty_1 {
    pub current_config_index: u32_,
    pub punt_reason: u32_,
}
impl Default for vlib_buffer_template_t__bindgen_ty_1 {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
impl Default for vlib_buffer_template_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[repr(align(64))]
pub struct vlib_buffer_t__bindgen_ty_1<FAM: ?Sized = [u8_; 0]> {
    pub __bindgen_anon_1: vlib_buffer_t__bindgen_ty_1__bindgen_ty_1,
    pub second_half: __IncompleteArrayField<u8_>,
    pub trace_handle: u32_,
    pub total_length_not_including_first_buffer: u32_,
    pub opaque2: [u32_; 14usize],
    pub headroom: __IncompleteArrayField<u8_>,
    pub pre_data: [u8_; 128usize],
    pub data: FAM,
}
#[repr(C)]
#[repr(align(64))]
pub struct vlib_buffer_t__bindgen_ty_1__bindgen_ty_1 {
    pub __bindgen_anon_1:
        __BindgenUnionField<vlib_buffer_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1>,
    pub template: __BindgenUnionField<vlib_buffer_template_t>,
    pub bindgen_union_field: [u8; 64usize],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct vlib_buffer_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {
    pub current_data: i16_,
    pub current_length: u16_,
    pub flags: u32_,
    pub flow_id: u32_,
    pub ref_count: u8_,
    pub buffer_pool_index: u8_,
    pub error: vlib_error_t,
    pub next_buffer: u32_,
    pub __bindgen_anon_1: vlib_buffer_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1,
    pub opaque: [u32_; 10usize],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union vlib_buffer_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {
    pub current_config_index: u32_,
    pub punt_reason: u32_,
}
impl Default for vlib_buffer_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
impl Default for vlib_buffer_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
impl Default for vlib_buffer_t__bindgen_ty_1__bindgen_ty_1 {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
impl vlib_buffer_t__bindgen_ty_1<[u8_]> {}
impl vlib_buffer_t__bindgen_ty_1<[u8_; 0]> {}
impl Default for vlib_buffer_t__bindgen_ty_1<[u8_; 0]> {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[repr(align(64))]
#[derive(Debug)]
pub struct vlib_buffer_pool_thread_t {
    pub cacheline0: __IncompleteArrayField<u8_>,
    pub cached_buffers: [u32_; 512usize],
    pub n_cached: u32_,
}
impl Default for vlib_buffer_pool_thread_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[repr(align(64))]
pub struct vlib_buffer_pool_t {
    pub cacheline0: __IncompleteArrayField<u8_>,
    pub start: uword,
    pub size: uword,
    pub log2_page_size: u8_,
    pub index: u8_,
    pub numa_node: u8_,
    pub physmem_map_index: u32_,
    pub data_size: u32_,
    pub alloc_size: u32_,
    pub n_buffers: u32_,
    pub n_avail: u32_,
    pub buffers: *mut u32_,
    pub name: *mut u8_,
    pub lock: clib_spinlock_t,
    pub threads: *mut vlib_buffer_pool_thread_t,
    pub __bindgen_padding_0: [u64; 7usize],
    pub buffer_template: vlib_buffer_template_t,
}
impl Default for vlib_buffer_pool_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type vlib_buffer_alloc_free_callback_t = ::std::option::Option<
    unsafe extern "C" fn(
        vm: *mut vlib_main_t,
        buffer_pool_index: u8_,
        buffers: *mut u32_,
        n_buffers: u32_,
    ) -> u32_,
>;
#[repr(C)]
#[repr(align(64))]
#[derive(Debug)]
pub struct vlib_buffer_main_t {
    pub cacheline0: __IncompleteArrayField<u8_>,
    pub buffer_mem_start: uword,
    pub buffer_mem_size: uword,
    pub buffer_pools: *mut vlib_buffer_pool_t,
    pub alloc_callback_fn: vlib_buffer_alloc_free_callback_t,
    pub free_callback_fn: vlib_buffer_alloc_free_callback_t,
    pub default_buffer_pool_index_for_numa: [u8_; 32usize],
    pub default_buffers_per_numa: u32_,
    pub buffers_per_numa: [u32_; 32usize],
    pub ext_hdr_size: u16_,
    pub default_data_size: u32_,
    pub log2_page_size: clib_mem_page_sz_t,
    pub buffer_known_hash: *mut uword,
    pub buffer_known_hash_lockp: clib_spinlock_t,
    pub log_default: vlib_log_class_t,
}
impl Default for vlib_buffer_main_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
unsafe extern "C" {
    pub fn vlib_buffer_main_init(vm: *mut vlib_main_t) -> *mut clib_error_t;
}
unsafe extern "C" {
    pub fn format_vlib_buffer_pool_all(s: *mut u8_, args: *mut va_list) -> *mut u8_;
}
unsafe extern "C" {
    pub fn vlib_buffer_set_alloc_free_callback(
        vm: *mut vlib_main_t,
        alloc_callback_fn: vlib_buffer_alloc_free_callback_t,
        free_callback_fn: vlib_buffer_alloc_free_callback_t,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub static mut __vlib_buffer_external_hdr_size: u16_;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct vlib_cli_parse_position_t {
    pub min_char: u32_,
    pub bitmaps: *mut *mut uword,
}
impl Default for vlib_cli_parse_position_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct vlib_cli_sub_command_t {
    pub name: *mut u8_,
    pub index: u32_,
}
impl Default for vlib_cli_sub_command_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct vlib_cli_sub_rule_t {
    pub name: *mut u8_,
    pub rule_index: u32_,
    pub command_index: u32_,
}
impl Default for vlib_cli_sub_rule_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct vlib_cli_parse_rule_t {
    pub name: *mut ::std::os::raw::c_char,
    pub short_help: *mut ::std::os::raw::c_char,
    pub long_help: *mut ::std::os::raw::c_char,
    pub data_size: uword,
    pub unformat_function: unformat_function_t,
    pub unformat_function_arg: [uword; 2usize],
}
impl Default for vlib_cli_parse_rule_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type vlib_cli_command_function_t = ::std::option::Option<
    unsafe extern "C" fn(
        vm: *mut vlib_main_t,
        input: *mut unformat_input_t,
        cmd: *mut vlib_cli_command_t,
    ) -> *mut clib_error_t,
>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct vlib_cli_command_t {
    pub path: *mut ::std::os::raw::c_char,
    pub short_help: *mut ::std::os::raw::c_char,
    pub long_help: *mut ::std::os::raw::c_char,
    pub function: vlib_cli_command_function_t,
    pub function_arg: uword,
    pub is_mp_safe: uword,
    pub sub_commands: *mut vlib_cli_sub_command_t,
    pub sub_command_index_by_name: *mut uword,
    pub sub_command_positions: *mut vlib_cli_parse_position_t,
    pub sub_rule_index_by_name: *mut uword,
    pub sub_rules: *mut vlib_cli_sub_rule_t,
    pub next_cli_command: *mut vlib_cli_command_t,
    pub hit_counter: u32_,
}
impl Default for vlib_cli_command_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type vlib_cli_output_function_t =
    ::std::option::Option<unsafe extern "C" fn(arg: uword, buffer: *mut u8_, buffer_bytes: uword)>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct vlib_cli_main_t {
    pub commands: *mut vlib_cli_command_t,
    pub command_index_by_path: *mut uword,
    pub cli_command_registrations: *mut vlib_cli_command_t,
    pub sort_vector: *mut u32_,
    pub perf_counter_cbs: *mut ::std::option::Option<
        unsafe extern "C" fn(
            arg1: *mut vlib_cli_main_t,
            id: u32_,
            before_or_after: ::std::os::raw::c_int,
        ),
    >,
    pub perf_counter_cbs_tmp: *mut ::std::option::Option<
        unsafe extern "C" fn(
            arg1: *mut vlib_cli_main_t,
            id: u32_,
            before_or_after: ::std::os::raw::c_int,
        ),
    >,
    pub log: vlib_log_class_t,
}
impl Default for vlib_cli_main_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
unsafe extern "C" {
    pub fn vlib_cli_command_registration_helper(x: *mut vlib_cli_command_t);
}
unsafe extern "C" {
    pub fn vlib_cli_output(vm: *mut vlib_main_t, fmt: *mut ::std::os::raw::c_char, ...);
}
unsafe extern "C" {
    pub fn vlib_cli_input(
        vm: *mut vlib_main_t,
        input: *mut unformat_input_t,
        function: vlib_cli_output_function_t,
        function_arg: uword,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn vlib_cli_register(vm: *mut vlib_main_t, c: *mut vlib_cli_command_t)
    -> *mut clib_error_t;
}
unsafe extern "C" {
    pub fn vlib_cli_register_parse_rule(
        vm: *mut vlib_main_t,
        c: *mut vlib_cli_parse_rule_t,
    ) -> *mut clib_error_t;
}
unsafe extern "C" {
    pub fn unformat_vlib_cli_line(input: *mut unformat_input_t, args: *mut va_list) -> uword;
}
unsafe extern "C" {
    pub fn unformat_vlib_cli_sub_input(i: *mut unformat_input_t, args: *mut va_list) -> uword;
}
unsafe extern "C" {
    pub fn vlib_cli_get_possible_completions(input_str: *mut u8_) -> *mut *mut u8_;
}
pub type counter_t = u64;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct vlib_counter_t {
    pub packets: counter_t,
    pub bytes: counter_t,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct vlib_simple_counter_main_t {
    pub counters: *mut *mut counter_t,
    pub name: *mut ::std::os::raw::c_char,
    pub stat_segment_name: *mut ::std::os::raw::c_char,
    pub stats_entry_index: u32_,
}
impl Default for vlib_simple_counter_main_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
unsafe extern "C" {
    pub fn vlib_simple_counter_n_counters(cm: *const vlib_simple_counter_main_t) -> u32_;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct vlib_combined_counter_main_t {
    pub counters: *mut *mut vlib_counter_t,
    pub name: *mut ::std::os::raw::c_char,
    pub stat_segment_name: *mut ::std::os::raw::c_char,
    pub stats_entry_index: u32_,
}
impl Default for vlib_combined_counter_main_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
unsafe extern "C" {
    pub fn vlib_combined_counter_n_counters(cm: *const vlib_combined_counter_main_t) -> u32_;
}
unsafe extern "C" {
    pub fn vlib_clear_simple_counters(cm: *mut vlib_simple_counter_main_t);
}
unsafe extern "C" {
    pub fn vlib_clear_combined_counters(cm: *mut vlib_combined_counter_main_t);
}
unsafe extern "C" {
    pub fn vlib_validate_simple_counter(cm: *mut vlib_simple_counter_main_t, index: u32_);
}
unsafe extern "C" {
    pub fn vlib_free_simple_counter(cm: *mut vlib_simple_counter_main_t);
}
unsafe extern "C" {
    pub fn vlib_validate_combined_counter(cm: *mut vlib_combined_counter_main_t, index: u32_);
}
unsafe extern "C" {
    pub fn vlib_validate_combined_counter_will_expand(
        cm: *mut vlib_combined_counter_main_t,
        index: u32_,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn vlib_free_combined_counter(cm: *mut vlib_combined_counter_main_t);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct vlib_log2_histogram_main_t {
    pub bins: *mut *mut counter_t,
    pub min_exp: u32_,
    pub name: *mut ::std::os::raw::c_char,
    pub stat_segment_name: *mut ::std::os::raw::c_char,
    pub stats_entry_index: u32_,
}
impl Default for vlib_log2_histogram_main_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
unsafe extern "C" {
    pub fn vlib_validate_log2_histogram(hm: *mut vlib_log2_histogram_main_t, num_bins: u32_);
}
pub type vlib_init_function_t =
    ::std::option::Option<unsafe extern "C" fn(vm: *mut vlib_main_t) -> *mut clib_error_t>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _vlib_init_function_list_elt {
    pub next_init_function: *mut _vlib_init_function_list_elt,
    pub f: vlib_init_function_t,
    pub name: *mut ::std::os::raw::c_char,
    pub runs_before: *mut *mut ::std::os::raw::c_char,
    pub runs_after: *mut *mut ::std::os::raw::c_char,
    pub init_order: *mut *mut ::std::os::raw::c_char,
}
impl Default for _vlib_init_function_list_elt {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type _vlib_init_function_list_elt_t = _vlib_init_function_list_elt;
pub type vlib_config_function_t = ::std::option::Option<
    unsafe extern "C" fn(vm: *mut vlib_main_t, input: *mut unformat_input_t) -> *mut clib_error_t,
>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct vlib_config_function_runtime_t {
    pub function: vlib_config_function_t,
    pub input: unformat_input_t,
    pub next_registration: *mut vlib_config_function_runtime_t,
    pub is_early: u8_,
    pub name: [::std::os::raw::c_char; 32usize],
}
impl Default for vlib_config_function_runtime_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
unsafe extern "C" {
    pub fn vlib_call_all_init_functions(vm: *mut vlib_main_t) -> *mut clib_error_t;
}
unsafe extern "C" {
    pub fn vlib_call_all_config_functions(
        vm: *mut vlib_main_t,
        input: *mut unformat_input_t,
        is_early: ::std::os::raw::c_int,
    ) -> *mut clib_error_t;
}
unsafe extern "C" {
    pub fn vlib_call_all_main_loop_enter_functions(vm: *mut vlib_main_t) -> *mut clib_error_t;
}
unsafe extern "C" {
    pub fn vlib_call_all_main_loop_exit_functions(vm: *mut vlib_main_t) -> *mut clib_error_t;
}
unsafe extern "C" {
    pub fn vlib_call_init_exit_functions(
        vm: *mut vlib_main_t,
        headp: *mut *mut _vlib_init_function_list_elt_t,
        call_once: ::std::os::raw::c_int,
        is_global: ::std::os::raw::c_int,
    ) -> *mut clib_error_t;
}
unsafe extern "C" {
    pub fn vlib_call_init_exit_functions_no_sort(
        vm: *mut vlib_main_t,
        headp: *mut *mut _vlib_init_function_list_elt_t,
        call_once: ::std::os::raw::c_int,
        is_global: ::std::os::raw::c_int,
    ) -> *mut clib_error_t;
}
unsafe extern "C" {
    pub fn vlib_sort_init_exit_functions(
        arg1: *mut *mut _vlib_init_function_list_elt_t,
    ) -> *mut clib_error_t;
}
unsafe extern "C" {
    pub fn vlib_node_cli_reference();
}
unsafe extern "C" {
    pub fn vlib_trace_cli_reference();
}
pub const clib_march_variant_type_t_CLIB_MARCH_VARIANT_TYPE: clib_march_variant_type_t = 0;
pub const clib_march_variant_type_t_CLIB_MARCH_VARIANT_TYPE_scalar: clib_march_variant_type_t = 1;
pub const clib_march_variant_type_t_CLIB_MARCH_VARIANT_TYPE_hsw: clib_march_variant_type_t = 2;
pub const clib_march_variant_type_t_CLIB_MARCH_VARIANT_TYPE_trm: clib_march_variant_type_t = 3;
pub const clib_march_variant_type_t_CLIB_MARCH_VARIANT_TYPE_skx: clib_march_variant_type_t = 4;
pub const clib_march_variant_type_t_CLIB_MARCH_VARIANT_TYPE_icl: clib_march_variant_type_t = 5;
pub const clib_march_variant_type_t_CLIB_MARCH_VARIANT_TYPE_adl: clib_march_variant_type_t = 6;
pub const clib_march_variant_type_t_CLIB_MARCH_VARIANT_TYPE_spr: clib_march_variant_type_t = 7;
pub const clib_march_variant_type_t_CLIB_MARCH_VARIANT_TYPE_znver3: clib_march_variant_type_t = 8;
pub const clib_march_variant_type_t_CLIB_MARCH_VARIANT_TYPE_znver4: clib_march_variant_type_t = 9;
pub const clib_march_variant_type_t_CLIB_MARCH_VARIANT_TYPE_znver5: clib_march_variant_type_t = 10;
pub const clib_march_variant_type_t_CLIB_MARCH_TYPE_N_VARIANTS: clib_march_variant_type_t = 11;
pub type clib_march_variant_type_t = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Default)]
pub struct vlib_trace_header_t<FAM: ?Sized = [u8_; 0]> {
    pub time: u64_,
    pub node_index: u32_,
    pub n_data: u32_,
    pub data: FAM,
}
impl vlib_trace_header_t<[u8_]> {}
impl vlib_trace_header_t<[u8_; 0]> {}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct vlib_trace_node_t {
    pub count: u32_,
    pub limit: u32_,
}
pub type vlib_trace_buffer_callback_t = ::std::option::Option<
    unsafe extern "C" fn(arg1: *mut vlib_main_t, arg2: *mut vlib_trace_main_t),
>;
pub type vlib_add_trace_callback_t = ::std::option::Option<
    unsafe extern "C" fn(
        arg1: *mut vlib_main_t,
        r: *mut vlib_node_runtime_t,
        b: *mut vlib_buffer_t,
        n_data_bytes: u32_,
    ) -> *mut ::std::os::raw::c_void,
>;
pub type vlib_is_packet_traced_fn_t = ::std::option::Option<
    unsafe extern "C" fn(
        b: *mut vlib_buffer_t,
        classify_table_index: u32_,
        func: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int,
>;
pub type vlib_node_function_t = ::std::option::Option<
    unsafe extern "C" fn(
        vm: *mut vlib_main_t,
        node: *mut vlib_node_runtime_t,
        frame: *mut vlib_frame_t,
    ) -> uword,
>;
pub const vlib_node_proto_hint_t_VLIB_NODE_PROTO_HINT_NONE: vlib_node_proto_hint_t = 0;
pub const vlib_node_proto_hint_t_VLIB_NODE_PROTO_HINT_ETHERNET: vlib_node_proto_hint_t = 1;
pub const vlib_node_proto_hint_t_VLIB_NODE_PROTO_HINT_IP4: vlib_node_proto_hint_t = 2;
pub const vlib_node_proto_hint_t_VLIB_NODE_PROTO_HINT_IP6: vlib_node_proto_hint_t = 3;
pub const vlib_node_proto_hint_t_VLIB_NODE_PROTO_HINT_TCP: vlib_node_proto_hint_t = 4;
pub const vlib_node_proto_hint_t_VLIB_NODE_PROTO_HINT_UDP: vlib_node_proto_hint_t = 5;
pub const vlib_node_proto_hint_t_VLIB_NODE_N_PROTO_HINTS: vlib_node_proto_hint_t = 6;
pub type vlib_node_proto_hint_t = ::std::os::raw::c_uint;
pub const vlib_node_type_t_VLIB_NODE_TYPE_INTERNAL: vlib_node_type_t = 0;
pub const vlib_node_type_t_VLIB_NODE_TYPE_INPUT: vlib_node_type_t = 1;
pub const vlib_node_type_t_VLIB_NODE_TYPE_PRE_INPUT: vlib_node_type_t = 2;
pub const vlib_node_type_t_VLIB_NODE_TYPE_PROCESS: vlib_node_type_t = 3;
pub const vlib_node_type_t_VLIB_NODE_TYPE_SCHED: vlib_node_type_t = 4;
pub const vlib_node_type_t_VLIB_N_NODE_TYPE: vlib_node_type_t = 5;
pub type vlib_node_type_t = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct vlib_node_type_atts_t {
    pub _bitfield_align_1: [u8; 0],
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
}
impl vlib_node_type_atts_t {
    #[inline]
    pub fn can_be_disabled(&self) -> u8_ {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u8) }
    }
    #[inline]
    pub fn set_can_be_disabled(&mut self, val: u8_) {
        unsafe {
            let val: u8 = ::std::mem::transmute(val);
            self._bitfield_1.set(0usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub unsafe fn can_be_disabled_raw(this: *const Self) -> u8_ {
        unsafe {
            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
                ::std::ptr::addr_of!((*this)._bitfield_1),
                0usize,
                1u8,
            ) as u8)
        }
    }
    #[inline]
    pub unsafe fn set_can_be_disabled_raw(this: *mut Self, val: u8_) {
        unsafe {
            let val: u8 = ::std::mem::transmute(val);
            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
                0usize,
                1u8,
                val as u64,
            )
        }
    }
    #[inline]
    pub fn may_receive_interrupts(&self) -> u8_ {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u8) }
    }
    #[inline]
    pub fn set_may_receive_interrupts(&mut self, val: u8_) {
        unsafe {
            let val: u8 = ::std::mem::transmute(val);
            self._bitfield_1.set(1usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub unsafe fn may_receive_interrupts_raw(this: *const Self) -> u8_ {
        unsafe {
            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
                ::std::ptr::addr_of!((*this)._bitfield_1),
                1usize,
                1u8,
            ) as u8)
        }
    }
    #[inline]
    pub unsafe fn set_may_receive_interrupts_raw(this: *mut Self, val: u8_) {
        unsafe {
            let val: u8 = ::std::mem::transmute(val);
            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
                1usize,
                1u8,
                val as u64,
            )
        }
    }
    #[inline]
    pub fn decrement_main_loop_per_calls_if_polling(&self) -> u8_ {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u8) }
    }
    #[inline]
    pub fn set_decrement_main_loop_per_calls_if_polling(&mut self, val: u8_) {
        unsafe {
            let val: u8 = ::std::mem::transmute(val);
            self._bitfield_1.set(2usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub unsafe fn decrement_main_loop_per_calls_if_polling_raw(this: *const Self) -> u8_ {
        unsafe {
            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
                ::std::ptr::addr_of!((*this)._bitfield_1),
                2usize,
                1u8,
            ) as u8)
        }
    }
    #[inline]
    pub unsafe fn set_decrement_main_loop_per_calls_if_polling_raw(this: *mut Self, val: u8_) {
        unsafe {
            let val: u8 = ::std::mem::transmute(val);
            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
                2usize,
                1u8,
                val as u64,
            )
        }
    }
    #[inline]
    pub fn supports_adaptive_mode(&self) -> u8_ {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u8) }
    }
    #[inline]
    pub fn set_supports_adaptive_mode(&mut self, val: u8_) {
        unsafe {
            let val: u8 = ::std::mem::transmute(val);
            self._bitfield_1.set(3usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub unsafe fn supports_adaptive_mode_raw(this: *const Self) -> u8_ {
        unsafe {
            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
                ::std::ptr::addr_of!((*this)._bitfield_1),
                3usize,
                1u8,
            ) as u8)
        }
    }
    #[inline]
    pub unsafe fn set_supports_adaptive_mode_raw(this: *mut Self, val: u8_) {
        unsafe {
            let val: u8 = ::std::mem::transmute(val);
            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
                3usize,
                1u8,
                val as u64,
            )
        }
    }
    #[inline]
    pub fn can_be_polled(&self) -> u8_ {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u8) }
    }
    #[inline]
    pub fn set_can_be_polled(&mut self, val: u8_) {
        unsafe {
            let val: u8 = ::std::mem::transmute(val);
            self._bitfield_1.set(4usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub unsafe fn can_be_polled_raw(this: *const Self) -> u8_ {
        unsafe {
            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
                ::std::ptr::addr_of!((*this)._bitfield_1),
                4usize,
                1u8,
            ) as u8)
        }
    }
    #[inline]
    pub unsafe fn set_can_be_polled_raw(this: *mut Self, val: u8_) {
        unsafe {
            let val: u8 = ::std::mem::transmute(val);
            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
                4usize,
                1u8,
                val as u64,
            )
        }
    }
    #[inline]
    pub fn is_process(&self) -> u8_ {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u8) }
    }
    #[inline]
    pub fn set_is_process(&mut self, val: u8_) {
        unsafe {
            let val: u8 = ::std::mem::transmute(val);
            self._bitfield_1.set(5usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub unsafe fn is_process_raw(this: *const Self) -> u8_ {
        unsafe {
            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
                ::std::ptr::addr_of!((*this)._bitfield_1),
                5usize,
                1u8,
            ) as u8)
        }
    }
    #[inline]
    pub unsafe fn set_is_process_raw(this: *mut Self, val: u8_) {
        unsafe {
            let val: u8 = ::std::mem::transmute(val);
            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
                5usize,
                1u8,
                val as u64,
            )
        }
    }
    #[inline]
    pub fn new_bitfield_1(
        can_be_disabled: u8_,
        may_receive_interrupts: u8_,
        decrement_main_loop_per_calls_if_polling: u8_,
        supports_adaptive_mode: u8_,
        can_be_polled: u8_,
        is_process: u8_,
    ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
        __bindgen_bitfield_unit.set(0usize, 1u8, {
            let can_be_disabled: u8 = unsafe { ::std::mem::transmute(can_be_disabled) };
            can_be_disabled as u64
        });
        __bindgen_bitfield_unit.set(1usize, 1u8, {
            let may_receive_interrupts: u8 =
                unsafe { ::std::mem::transmute(may_receive_interrupts) };
            may_receive_interrupts as u64
        });
        __bindgen_bitfield_unit.set(2usize, 1u8, {
            let decrement_main_loop_per_calls_if_polling: u8 =
                unsafe { ::std::mem::transmute(decrement_main_loop_per_calls_if_polling) };
            decrement_main_loop_per_calls_if_polling as u64
        });
        __bindgen_bitfield_unit.set(3usize, 1u8, {
            let supports_adaptive_mode: u8 =
                unsafe { ::std::mem::transmute(supports_adaptive_mode) };
            supports_adaptive_mode as u64
        });
        __bindgen_bitfield_unit.set(4usize, 1u8, {
            let can_be_polled: u8 = unsafe { ::std::mem::transmute(can_be_polled) };
            can_be_polled as u64
        });
        __bindgen_bitfield_unit.set(5usize, 1u8, {
            let is_process: u8 = unsafe { ::std::mem::transmute(is_process) };
            is_process as u64
        });
        __bindgen_bitfield_unit
    }
}
unsafe extern "C" {
    pub static node_type_attrs: [vlib_node_type_atts_t; 5usize];
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _vlib_node_fn_registration {
    pub function: vlib_node_function_t,
    pub march_variant: clib_march_variant_type_t,
    pub next_registration: *mut _vlib_node_fn_registration,
}
impl Default for _vlib_node_fn_registration {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type vlib_node_fn_registration_t = _vlib_node_fn_registration;
#[repr(C)]
#[derive(Debug)]
pub struct _vlib_node_registration<FAM: ?Sized = [*mut ::std::os::raw::c_char; 0]> {
    pub function: vlib_node_function_t,
    pub node_fn_registrations: *mut vlib_node_fn_registration_t,
    pub name: *mut ::std::os::raw::c_char,
    pub sibling_of: *mut ::std::os::raw::c_char,
    pub index: u32_,
    pub type_: vlib_node_type_t,
    pub error_strings: *mut *mut ::std::os::raw::c_char,
    pub error_counters: *mut vlib_error_desc_t,
    pub format_buffer: format_function_t,
    pub unformat_buffer: unformat_function_t,
    pub format_trace: format_function_t,
    pub unformat_trace: unformat_function_t,
    pub validate_frame: ::std::option::Option<
        unsafe extern "C" fn(
            vm: *mut vlib_main_t,
            arg1: *mut vlib_node_runtime_t,
            f: *mut vlib_frame_t,
        ) -> *mut u8_,
    >,
    pub runtime_data: *mut ::std::os::raw::c_void,
    pub process_log2_n_stack_bytes: u16_,
    pub runtime_data_bytes: u8_,
    pub state: u8_,
    pub flags: u16_,
    pub protocol_hint: u8_,
    pub vector_size: u8_,
    pub aux_size: u8_,
    pub scalar_size: u16_,
    pub n_errors: u16_,
    pub n_next_nodes: u16_,
    pub next_registration: *mut _vlib_node_registration,
    pub next_nodes: FAM,
}
impl _vlib_node_registration<[*mut ::std::os::raw::c_char]> {}
impl _vlib_node_registration<[*mut ::std::os::raw::c_char; 0]> {}
impl Default for _vlib_node_registration<[*mut ::std::os::raw::c_char; 0]> {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type vlib_node_registration_t = _vlib_node_registration;
unsafe extern "C" {
    pub fn unformat_vlib_node_variant(input: *mut unformat_input_t, args: *mut va_list) -> uword;
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct vlib_node_stats_t {
    pub calls: u64_,
    pub vectors: u64_,
    pub clocks: u64_,
    pub suspends: u64_,
    pub max_clock: u64_,
    pub max_clock_n: u64_,
}
pub const vlib_node_state_t_VLIB_NODE_STATE_POLLING: vlib_node_state_t = 0;
pub const vlib_node_state_t_VLIB_NODE_STATE_INTERRUPT: vlib_node_state_t = 1;
pub const vlib_node_state_t_VLIB_NODE_STATE_DISABLED: vlib_node_state_t = 2;
pub const vlib_node_state_t_VLIB_N_NODE_STATE: vlib_node_state_t = 3;
pub type vlib_node_state_t = ::std::os::raw::c_uchar;
pub const vlib_node_dispatch_reason_t_VLIB_NODE_DISPATCH_REASON_UNKNOWN:
    vlib_node_dispatch_reason_t = 0;
pub const vlib_node_dispatch_reason_t_VLIB_NODE_DISPATCH_REASON_PENDING_FRAME:
    vlib_node_dispatch_reason_t = 1;
pub const vlib_node_dispatch_reason_t_VLIB_NODE_DISPATCH_REASON_POLL: vlib_node_dispatch_reason_t =
    2;
pub const vlib_node_dispatch_reason_t_VLIB_NODE_DISPATCH_REASON_INTERRUPT:
    vlib_node_dispatch_reason_t = 3;
pub const vlib_node_dispatch_reason_t_VLIB_NODE_DISPATCH_REASON_SCHED: vlib_node_dispatch_reason_t =
    4;
pub const vlib_node_dispatch_reason_t_VLIB_NODE_DISPATCH_N_REASON: vlib_node_dispatch_reason_t = 5;
pub type vlib_node_dispatch_reason_t = ::std::os::raw::c_uchar;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct vlib_node_t {
    pub function: vlib_node_function_t,
    pub name: *mut u8_,
    pub name_elog_string: u32_,
    pub stats_total: vlib_node_stats_t,
    pub stats_last_clear: vlib_node_stats_t,
    pub type_: vlib_node_type_t,
    pub index: u32_,
    pub runtime_index: u32_,
    pub runtime_data: *mut u8_,
    pub flags: u16_,
    pub state: u8_,
    pub runtime_data_bytes: u8_,
    pub protocol_hint: u8_,
    pub n_errors: u16_,
    pub frame_size: u16_,
    pub scalar_offset: u16_,
    pub vector_offset: u16_,
    pub magic_offset: u16_,
    pub aux_offset: u16_,
    pub frame_size_index: u16_,
    pub error_heap_handle: u32_,
    pub error_heap_index: u32_,
    pub error_counters: *mut vlib_error_desc_t,
    pub next_node_names: *mut *mut ::std::os::raw::c_char,
    pub next_nodes: *mut u32_,
    pub sibling_of: *mut ::std::os::raw::c_char,
    pub sibling_bitmap: *mut uword,
    pub n_vectors_by_next_node: *mut u64_,
    pub next_slot_by_node: *mut uword,
    pub prev_node_bitmap: *mut uword,
    pub owner_node_index: u32_,
    pub owner_next_index: u32_,
    pub format_buffer: format_function_t,
    pub unformat_buffer: unformat_function_t,
    pub format_trace: format_function_t,
    pub validate_frame: ::std::option::Option<
        unsafe extern "C" fn(
            vm: *mut vlib_main_t,
            arg1: *mut vlib_node_runtime_t,
            f: *mut vlib_frame_t,
        ) -> *mut u8_,
    >,
    pub state_string: *mut u8_,
    pub node_fn_registrations: *mut vlib_node_fn_registration_t,
}
impl Default for vlib_node_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Default)]
pub struct vlib_frame_t<FAM: ?Sized = [u8_; 0]> {
    pub frame_flags: u16_,
    pub flags: u16_,
    pub scalar_offset: u16_,
    pub vector_offset: u16_,
    pub aux_offset: u16_,
    pub n_vectors: u16_,
    pub frame_size_index: u16_,
    pub arguments: FAM,
}
impl vlib_frame_t<[u8_]> {}
impl vlib_frame_t<[u8_; 0]> {}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct vlib_next_frame_t {
    pub frame: *mut vlib_frame_t,
    pub node_runtime_index: u32_,
    pub flags: u32_,
    pub vectors_since_last_overflow: u32_,
}
impl Default for vlib_next_frame_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct vlib_pending_frame_t {
    pub frame: *mut vlib_frame_t,
    pub node_runtime_index: u32_,
    pub next_frame_index: u32_,
}
impl Default for vlib_pending_frame_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[repr(align(64))]
#[derive(Debug)]
pub struct vlib_node_runtime_t<FAM: ?Sized = [u8_; 0]> {
    pub cacheline0: __IncompleteArrayField<u8_>,
    pub function: vlib_node_function_t,
    pub errors: *mut vlib_error_t,
    pub clocks_since_last_overflow: u32_,
    pub max_clock: u32_,
    pub max_clock_n: u32_,
    pub calls_since_last_overflow: u32_,
    pub vectors_since_last_overflow: u32_,
    pub next_frame_index: u32_,
    pub node_index: u32_,
    pub input_main_loops_per_call: u32_,
    pub main_loop_count_last_dispatch: u32_,
    pub main_loop_vector_stats: [u32_; 2usize],
    pub flags: u16_,
    pub state: vlib_node_state_t,
    pub dispatch_reason: vlib_node_dispatch_reason_t,
    pub n_next_nodes: u16_,
    pub cached_next_index: u16_,
    pub stop_timer_handle_plus_1: u32_,
    pub runtime_data_pad: __IncompleteArrayField<u8_>,
    pub runtime_data: FAM,
}
impl vlib_node_runtime_t<[u8_]> {}
impl vlib_node_runtime_t<[u8_; 0]> {}
impl Default for vlib_node_runtime_t<[u8_; 0]> {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct vlib_frame_size_t {
    pub n_alloc_frames: u32_,
    pub frame_size: u16_,
    pub free_frames: *mut *mut vlib_frame_t,
}
impl Default for vlib_frame_size_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct vlib_process_event_type_t {
    pub opaque: uword,
}
pub const vlib_process_state_t_VLIB_PROCESS_STATE_NOT_STARTED: vlib_process_state_t = 0;
pub const vlib_process_state_t_VLIB_PROCESS_STATE_RUNNING: vlib_process_state_t = 1;
pub const vlib_process_state_t_VLIB_PROCESS_STATE_SUSPENDED: vlib_process_state_t = 2;
pub const vlib_process_state_t_VLIB_PROCESS_STATE_WAIT_FOR_EVENT: vlib_process_state_t = 3;
pub const vlib_process_state_t_VLIB_PROCESS_STATE_WAIT_FOR_CLOCK: vlib_process_state_t = 4;
pub const vlib_process_state_t_VLIB_PROCESS_STATE_WAIT_FOR_EVENT_OR_CLOCK: vlib_process_state_t = 5;
pub const vlib_process_state_t_VLIB_PROCESS_STATE_WAIT_FOR_ONE_TIME_EVENT: vlib_process_state_t = 6;
pub const vlib_process_state_t_VLIB_PROCESS_STATE_YIELD: vlib_process_state_t = 7;
pub const vlib_process_state_t_VLIB_PROCESS_N_STATES: vlib_process_state_t = 8;
pub type vlib_process_state_t = ::std::os::raw::c_uchar;
pub const vlib_process_restore_reason_t_VLIB_PROCESS_RESTORE_REASON_UNKNOWN:
    vlib_process_restore_reason_t = 0;
pub const vlib_process_restore_reason_t_VLIB_PROCESS_RESTORE_REASON_EVENT:
    vlib_process_restore_reason_t = 1;
pub const vlib_process_restore_reason_t_VLIB_PROCESS_RESTORE_REASON_CLOCK:
    vlib_process_restore_reason_t = 2;
pub const vlib_process_restore_reason_t_VLIB_PROCESS_RESTORE_REASON_TIMED_EVENT:
    vlib_process_restore_reason_t = 3;
pub const vlib_process_restore_reason_t_VLIB_PROCESS_RESTORE_REASON_YIELD:
    vlib_process_restore_reason_t = 4;
pub const vlib_process_restore_reason_t_VLIB_PROCRSS_N_RESTORE_REASON:
    vlib_process_restore_reason_t = 5;
pub type vlib_process_restore_reason_t = ::std::os::raw::c_uchar;
#[repr(C, packed)]
#[derive(Copy, Clone)]
pub struct vlib_process_restore_t {
    pub reason: vlib_process_restore_reason_t,
    pub __bindgen_anon_1: vlib_process_restore_t__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union vlib_process_restore_t__bindgen_ty_1 {
    pub runtime_index: u32_,
    pub timed_event_data_pool_index: u32_,
}
impl Default for vlib_process_restore_t__bindgen_ty_1 {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
impl Default for vlib_process_restore_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[repr(align(64))]
#[derive(Debug)]
pub struct vlib_process_t {
    pub cacheline0: __IncompleteArrayField<u8_>,
    pub node_runtime: vlib_node_runtime_t,
    pub return_longjmp: clib_longjmp_t,
    pub resume_longjmp: clib_longjmp_t,
    pub state: vlib_process_state_t,
    pub _bitfield_align_1: [u8; 0],
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
    pub log2_n_stack_bytes: u16_,
    pub suspended_process_frame_index: u32_,
    pub n_suspends: u32_,
    pub pending_event_data_by_type_index: *mut *mut u8_,
    pub non_empty_event_type_bitmap: *mut uword,
    pub one_time_event_type_bitmap: *mut uword,
    pub event_type_index_by_type_opaque: *mut uword,
    pub event_type_pool: *mut vlib_process_event_type_t,
    pub resume_clock_interval: u64_,
    pub stop_timer_handle: u32_,
    pub output_function: vlib_cli_output_function_t,
    pub output_function_arg: uword,
    pub stack: *mut u32_,
}
impl Default for vlib_process_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
impl vlib_process_t {
    #[inline]
    pub fn event_resume_pending(&self) -> u8_ {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u8) }
    }
    #[inline]
    pub fn set_event_resume_pending(&mut self, val: u8_) {
        unsafe {
            let val: u8 = ::std::mem::transmute(val);
            self._bitfield_1.set(0usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub unsafe fn event_resume_pending_raw(this: *const Self) -> u8_ {
        unsafe {
            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
                ::std::ptr::addr_of!((*this)._bitfield_1),
                0usize,
                1u8,
            ) as u8)
        }
    }
    #[inline]
    pub unsafe fn set_event_resume_pending_raw(this: *mut Self, val: u8_) {
        unsafe {
            let val: u8 = ::std::mem::transmute(val);
            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
                0usize,
                1u8,
                val as u64,
            )
        }
    }
    #[inline]
    pub fn new_bitfield_1(event_resume_pending: u8_) -> __BindgenBitfieldUnit<[u8; 1usize]> {
        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
        __bindgen_bitfield_unit.set(0usize, 1u8, {
            let event_resume_pending: u8 = unsafe { ::std::mem::transmute(event_resume_pending) };
            event_resume_pending as u64
        });
        __bindgen_bitfield_unit
    }
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct vlib_one_time_waiting_process_t {
    pub node_index: u32_,
    pub one_time_event: u32_,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct vlib_signal_timed_event_data_t {
    pub n_data_elts: u16_,
    pub n_data_elt_bytes: u16_,
    pub n_data_bytes: u32_,
    pub process_node_index: u32_,
    pub event_type_index: u32_,
    pub __bindgen_anon_1: vlib_signal_timed_event_data_t__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union vlib_signal_timed_event_data_t__bindgen_ty_1 {
    pub inline_event_data: [u8_; 48usize],
    pub event_data_as_vector: *mut u8_,
}
impl Default for vlib_signal_timed_event_data_t__bindgen_ty_1 {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
impl Default for vlib_signal_timed_event_data_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct vlib_node_fn_variant_t {
    pub index: clib_march_variant_type_t,
    pub priority: ::std::os::raw::c_int,
    pub suffix: *mut ::std::os::raw::c_char,
    pub desc: *mut ::std::os::raw::c_char,
}
impl Default for vlib_node_fn_variant_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct vlib_node_main_t {
    pub nodes: *mut *mut vlib_node_t,
    pub node_by_name: *mut uword,
    pub flags: u32_,
    pub nodes_by_type: [*mut vlib_node_runtime_t; 5usize],
    pub node_interrupts: [*mut ::std::os::raw::c_void; 5usize],
    pub polling_threshold_vector_length: u32_,
    pub interrupt_threshold_vector_length: u32_,
    pub next_frames: *mut vlib_next_frame_t,
    pub pending_frames: *mut vlib_pending_frame_t,
    pub signal_timed_event_data_pool: *mut vlib_signal_timed_event_data_t,
    pub process_restore_current: *mut vlib_process_restore_t,
    pub sched_node_pending: *mut u32_,
    pub process_restore_next: *mut vlib_process_restore_t,
    pub time_next_process_ready: f64_,
    pub processes: *mut *mut vlib_process_t,
    pub current_process_index: u32_,
    pub suspended_process_frames: *mut vlib_pending_frame_t,
    pub recycled_event_data_vectors: *mut *mut ::std::os::raw::c_void,
    pub input_node_counts_by_state: [u32_; 3usize],
    pub frame_sizes: *mut vlib_frame_size_t,
    pub time_last_runtime_stats_clear: f64_,
    pub node_by_error: *mut u32_,
    pub variants: *mut vlib_node_fn_variant_t,
    pub node_fn_default_march_variant: u32_,
    pub node_fn_march_variant_by_suffix: *mut uword,
}
impl Default for vlib_node_main_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[repr(align(64))]
#[derive(Debug)]
pub struct frame_queue_trace_t {
    pub cacheline0: __IncompleteArrayField<u8_>,
    pub head: u64_,
    pub tail: u64_,
    pub n_in_use: u32_,
    pub nelts: u32_,
    pub written: u32_,
    pub threshold: u32_,
    pub n_vectors: [i32_; 64usize],
}
impl Default for frame_queue_trace_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct frame_queue_nelt_counter_t {
    pub count: [u64_; 64usize],
}
impl Default for frame_queue_nelt_counter_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct clib_time_t {
    pub total_cpu_time: u64_,
    pub last_cpu_time: u64_,
    pub clocks_per_second: f64_,
    pub seconds_per_clock: f64_,
    pub init_cpu_time: u64_,
    pub init_reference_time: f64_,
    pub last_verify_cpu_time: u64_,
    pub last_verify_reference_time: f64_,
    pub log2_clocks_per_second: u32_,
    pub log2_clocks_per_frequency_verify: u32_,
    pub damping_constant: f64_,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct elog_event_t {
    pub __bindgen_anon_1: elog_event_t__bindgen_ty_1,
    pub event_type: u16_,
    pub track: u16_,
    pub data: [u8_; 20usize],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union elog_event_t__bindgen_ty_1 {
    pub time_cycles: u64_,
    pub time: f64_,
}
impl Default for elog_event_t__bindgen_ty_1 {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
impl Default for elog_event_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug)]
pub struct elog_event_type_t<FAM: ?Sized = [*mut ::std::os::raw::c_char; 0]> {
    pub type_index_plus_one: u32_,
    pub enum_strings_vector: *mut *mut ::std::os::raw::c_char,
    pub format: *mut ::std::os::raw::c_char,
    pub format_args: *mut ::std::os::raw::c_char,
    pub function: *mut ::std::os::raw::c_char,
    pub n_enum_strings: u32_,
    pub enum_strings: FAM,
}
impl elog_event_type_t<[*mut ::std::os::raw::c_char]> {}
impl elog_event_type_t<[*mut ::std::os::raw::c_char; 0]> {}
impl Default for elog_event_type_t<[*mut ::std::os::raw::c_char; 0]> {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct elog_track_t {
    pub name: *mut ::std::os::raw::c_char,
    pub track_index_plus_one: u32_,
}
impl Default for elog_track_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct elog_time_stamp_t {
    pub cpu: u64_,
    pub os_nsec: u64_,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct elog_main_t {
    pub n_total_events: u32_,
    pub n_total_events_disable_limit: u32_,
    pub placeholder_event: elog_event_t,
    pub event_ring_size: uword,
    pub event_ring: *mut elog_event_t,
    pub event_types: *mut elog_event_type_t,
    pub event_type_by_format: *mut uword,
    pub string_table: *mut ::std::os::raw::c_char,
    pub string_table_hash: *mut uword,
    pub string_table_tmp: *mut u8_,
    pub tracks: *mut elog_track_t,
    pub default_track: elog_track_t,
    pub cpu_timer: clib_time_t,
    pub init_time: elog_time_stamp_t,
    pub serialize_time: elog_time_stamp_t,
    pub lock: *mut uword,
    pub nsec_per_cpu_clock: f64_,
    pub events: *mut elog_event_t,
}
impl Default for elog_main_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct isaac_t {
    pub memory: [uword; 16usize],
    pub a: uword,
    pub b: uword,
    pub c: uword,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct clib_random_buffer_t {
    pub ctx: [isaac_t; 2usize],
    pub buffer: *mut uword,
    pub next_read_len: uword,
    pub n_cached_bytes: uword,
    pub __bindgen_anon_1: clib_random_buffer_t__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union clib_random_buffer_t__bindgen_ty_1 {
    pub cached_bytes: [u8_; 8usize],
    pub cached_word: uword,
}
impl Default for clib_random_buffer_t__bindgen_ty_1 {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
impl Default for clib_random_buffer_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct vlib_trace_filter_t {
    pub trace_filter_enable: u8_,
    pub classify_table_index: u32_,
}
pub const vlib_node_runtime_perf_call_type_t_VLIB_NODE_RUNTIME_PERF_BEFORE:
    vlib_node_runtime_perf_call_type_t = 0;
pub const vlib_node_runtime_perf_call_type_t_VLIB_NODE_RUNTIME_PERF_AFTER:
    vlib_node_runtime_perf_call_type_t = 1;
pub const vlib_node_runtime_perf_call_type_t_VLIB_NODE_RUNTIME_PERF_RESET:
    vlib_node_runtime_perf_call_type_t = 2;
pub type vlib_node_runtime_perf_call_type_t = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct vlib_node_runtime_perf_callback_args_t {
    pub vm: *mut vlib_main_t,
    pub node: *mut vlib_node_runtime_t,
    pub frame: *mut vlib_frame_t,
    pub packets: uword,
    pub cpu_time_now: u64_,
    pub call_type: vlib_node_runtime_perf_call_type_t,
}
impl Default for vlib_node_runtime_perf_callback_args_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type vlib_node_runtime_perf_callback_fp_t = ::std::option::Option<
    unsafe extern "C" fn(
        data: *mut vlib_node_runtime_perf_callback_data_t,
        args: *mut vlib_node_runtime_perf_callback_args_t,
    ),
>;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct vlib_node_runtime_perf_callback_data_t {
    pub fp: vlib_node_runtime_perf_callback_fp_t,
    pub u: [vlib_node_runtime_perf_callback_data_t__bindgen_ty_1; 3usize],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union vlib_node_runtime_perf_callback_data_t__bindgen_ty_1 {
    pub v: *mut ::std::os::raw::c_void,
    pub u: u64_,
}
impl Default for vlib_node_runtime_perf_callback_data_t__bindgen_ty_1 {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
impl Default for vlib_node_runtime_perf_callback_data_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct vlib_node_runtime_perf_callback_set_t {
    pub curr: *mut vlib_node_runtime_perf_callback_data_t,
    pub next: *mut vlib_node_runtime_perf_callback_data_t,
    pub spare: *mut vlib_node_runtime_perf_callback_data_t,
    pub lock: *mut clib_spinlock_t,
}
impl Default for vlib_node_runtime_perf_callback_set_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[repr(align(64))]
pub struct vlib_main_t {
    pub cacheline0: __IncompleteArrayField<u8_>,
    pub clib_time: clib_time_t,
    pub time_offset: f64_,
    pub time_last_barrier_release: f64_,
    pub cpu_time_last_node_dispatch: u64_,
    pub cpu_time_main_loop_start: u64_,
    pub main_loop_count: u32_,
    pub main_loop_vectors_processed: u32_,
    pub main_loop_nodes_processed: u32_,
    pub internal_node_vectors: u64_,
    pub internal_node_calls: u64_,
    pub internal_node_vectors_last_clear: u64_,
    pub internal_node_calls_last_clear: u64_,
    pub internal_node_last_vectors_per_main_loop: u32_,
    pub vlib_node_runtime_perf_callbacks: vlib_node_runtime_perf_callback_set_t,
    pub dispatch_wrapper_fn: vlib_node_function_t,
    pub main_loop_exit_set: u32_,
    pub main_loop_exit_now: u32_,
    pub main_loop_exit_status: ::std::os::raw::c_int,
    pub __bindgen_padding_0: [u64; 0usize],
    pub main_loop_exit: clib_longjmp_t,
    pub main_loop_error: *mut clib_error_t,
    pub buffer_main: *mut vlib_buffer_main_t,
    pub physmem_main: vlib_physmem_main_t,
    pub node_main: vlib_node_main_t,
    pub trace_main: vlib_trace_main_t,
    pub error_main: vlib_error_main_t,
    pub os_punt_frame: ::std::option::Option<
        unsafe extern "C" fn(
            vm: *mut vlib_main_t,
            node: *mut vlib_node_runtime_t,
            frame: *mut vlib_frame_t,
        ),
    >,
    pub mc_stream_index: u32_,
    pub worker_init_functions_called: *mut uword,
    pub procs_waiting_for_mc_stream_join: *mut vlib_one_time_waiting_process_t,
    pub elog_trace_api_messages: ::std::os::raw::c_int,
    pub elog_trace_cli_commands: ::std::os::raw::c_int,
    pub elog_trace_graph_dispatch: ::std::os::raw::c_int,
    pub elog_trace_graph_circuit: ::std::os::raw::c_int,
    pub elog_trace_graph_circuit_node_index: u32_,
    pub node_call_elog_event_types: *mut elog_event_type_t,
    pub node_return_elog_event_types: *mut elog_event_type_t,
    pub error_elog_event_types: *mut elog_event_type_t,
    pub random_seed: uword,
    pub random_buffer: clib_random_buffer_t,
    pub thread_index: clib_thread_index_t,
    pub numa_node: u32_,
    pub epoll_fd: ::std::os::raw::c_int,
    pub wakeup_fd: ::std::os::raw::c_int,
    pub n_epoll_fds: ::std::os::raw::c_int,
    pub file_poll_skip_loops: u32_,
    pub epoll_files_ready: u64_,
    pub epoll_waits: u64_,
    pub wakeup_pending: u8_,
    pub thread_sleeps: u8_,
    pub queue_signal_pending: u32_,
    pub api_queue_nonempty: u32_,
    pub queue_signal_callback: ::std::option::Option<unsafe extern "C" fn(arg1: *mut vlib_main_t)>,
    pub worker_thread_main_loop_callbacks:
        *mut ::std::option::Option<unsafe extern "C" fn(arg1: *mut vlib_main_t, t: u64_)>,
    pub worker_thread_main_loop_callback_tmp:
        *mut ::std::option::Option<unsafe extern "C" fn(arg1: *mut vlib_main_t, t: u64_)>,
    pub worker_thread_main_loop_callback_lock: clib_spinlock_t,
    pub parked_at_barrier: ::std::os::raw::c_int,
    pub loops_this_reporting_interval: u64_,
    pub loop_interval_end: f64_,
    pub loop_interval_start: f64_,
    pub loops_per_second: f64_,
    pub seconds_per_loop: f64_,
    pub damping_constant: f64_,
    pub barrier_epoch: f64_,
    pub barrier_no_close_before: f64_,
    pub barrier_perf_callbacks: *mut ::std::option::Option<
        unsafe extern "C" fn(arg1: *mut vlib_main_t, t: u64_, leave: ::std::os::raw::c_int),
    >,
    pub barrier_perf_callbacks_tmp: *mut ::std::option::Option<
        unsafe extern "C" fn(arg1: *mut vlib_main_t, t: u64_, leave: ::std::os::raw::c_int),
    >,
    pub check_frame_queues: uword,
    pub pending_rpc_requests: *mut uword,
    pub processing_rpc_requests: *mut uword,
    pub pending_rpc_lock: clib_spinlock_t,
    pub buffer_alloc_success_seed: u32_,
    pub buffer_alloc_success_rate: f64_,
    pub timing_wheel: *mut ::std::os::raw::c_void,
    pub n_tw_timers: u32_,
}
impl Default for vlib_main_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[repr(align(64))]
#[derive(Debug)]
pub struct vlib_global_main_t {
    pub cacheline0: __IncompleteArrayField<u8_>,
    pub vlib_mains: *mut *mut vlib_main_t,
    pub name: *mut ::std::os::raw::c_char,
    pub exec_path: *mut ::std::os::raw::c_char,
    pub argv: *mut *mut u8_,
    pub startup_config: *mut u8_,
    pub post_mortem_callbacks: *mut ::std::option::Option<unsafe extern "C" fn()>,
    pub need_vlib_worker_thread_node_runtime_update: ::std::os::raw::c_int,
    pub cli_main: vlib_cli_main_t,
    pub node_registrations: *mut vlib_node_registration_t,
    pub elog_main: *mut elog_main_t,
    pub configured_elog_ring_size: u32_,
    pub trace_filter: vlib_trace_filter_t,
    pub init_function_registrations: *mut _vlib_init_function_list_elt_t,
    pub main_loop_enter_function_registrations: *mut _vlib_init_function_list_elt_t,
    pub main_loop_exit_function_registrations: *mut _vlib_init_function_list_elt_t,
    pub worker_init_function_registrations: *mut _vlib_init_function_list_elt_t,
    pub num_workers_change_function_registrations: *mut _vlib_init_function_list_elt_t,
    pub api_init_function_registrations: *mut _vlib_init_function_list_elt_t,
    pub config_function_registrations: *mut vlib_config_function_runtime_t,
    pub init_functions_called: *mut uword,
}
impl Default for vlib_global_main_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
unsafe extern "C" {
    pub static mut vlib_global_main: vlib_global_main_t;
}
unsafe extern "C" {
    pub fn vlib_exit_with_status(vm: *mut vlib_main_t, status: ::std::os::raw::c_int);
}
unsafe extern "C" {
    pub fn vlib_main(vm: *mut vlib_main_t, input: *mut unformat_input_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub static mut vlib_thread_stacks: *mut *mut u8_;
}
unsafe extern "C" {
    pub fn vlib_app_num_thread_stacks_needed() -> u32_;
}
unsafe extern "C" {
    pub fn vlib_add_del_post_mortem_callback(
        cb: *mut ::std::os::raw::c_void,
        is_add: ::std::os::raw::c_int,
    );
}
unsafe extern "C" {
    pub fn vlib_get_main_not_inline() -> *mut vlib_main_t;
}
unsafe extern "C" {
    pub fn vlib_get_elog_main_not_inline() -> *mut elog_main_t;
}
unsafe extern "C" {
    pub fn vlib_update_elog_main(elog_main: *mut elog_main_t);
}
unsafe extern "C" {
    pub fn vlib_set_thread_name(name: *mut ::std::os::raw::c_char);
}
pub type vlib_thread_function_t =
    ::std::option::Option<unsafe extern "C" fn(arg: *mut ::std::os::raw::c_void)>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct vlib_thread_registration_ {
    pub next: *mut vlib_thread_registration_,
    pub name: *mut ::std::os::raw::c_char,
    pub short_name: *mut ::std::os::raw::c_char,
    pub function: vlib_thread_function_t,
    pub mheap_size: uword,
    pub fixed_count: ::std::os::raw::c_int,
    pub count: u32_,
    pub no_data_structure_clone: ::std::os::raw::c_int,
    pub frame_queue_nelts: u32_,
    pub use_pthreads: ::std::os::raw::c_int,
    pub first_index: u32_,
    pub coremask: *mut uword,
}
impl Default for vlib_thread_registration_ {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type vlib_thread_registration_t = vlib_thread_registration_;
#[repr(C)]
#[repr(align(64))]
#[derive(Debug)]
pub struct vlib_frame_queue_elt_t {
    pub cacheline0: __IncompleteArrayField<u8_>,
    pub valid: u32_,
    pub _bitfield_align_1: [u8; 0],
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
    pub n_vectors: u32_,
    pub offset: u32_,
    pub end_of_reset: __IncompleteArrayField<u8_>,
    pub __bindgen_padding_0: [u8; 48usize],
    pub cacheline1: __IncompleteArrayField<u8_>,
    pub buffer_index: [u32_; 256usize],
    pub aux_data: [u32_; 256usize],
}
impl Default for vlib_frame_queue_elt_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
impl vlib_frame_queue_elt_t {
    #[inline]
    pub fn maybe_trace(&self) -> u32_ {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
    }
    #[inline]
    pub fn set_maybe_trace(&mut self, val: u32_) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(0usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub unsafe fn maybe_trace_raw(this: *const Self) -> u32_ {
        unsafe {
            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
                ::std::ptr::addr_of!((*this)._bitfield_1),
                0usize,
                1u8,
            ) as u32)
        }
    }
    #[inline]
    pub unsafe fn set_maybe_trace_raw(this: *mut Self, val: u32_) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
                0usize,
                1u8,
                val as u64,
            )
        }
    }
    #[inline]
    pub fn new_bitfield_1(maybe_trace: u32_) -> __BindgenBitfieldUnit<[u8; 1usize]> {
        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
        __bindgen_bitfield_unit.set(0usize, 1u8, {
            let maybe_trace: u32 = unsafe { ::std::mem::transmute(maybe_trace) };
            maybe_trace as u64
        });
        __bindgen_bitfield_unit
    }
}
#[repr(C)]
#[repr(align(64))]
#[derive(Debug)]
pub struct vlib_worker_thread_t {
    pub cacheline0: __IncompleteArrayField<u8_>,
    pub wait_at_barrier: *mut u32_,
    pub workers_at_barrier: *mut u32_,
    pub __bindgen_padding_0: [u8; 48usize],
    pub cacheline1: __IncompleteArrayField<u8_>,
    pub thread_mheap: *mut ::std::os::raw::c_void,
    pub thread_stack: *mut u8_,
    pub thread_function:
        ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
    pub thread_function_arg: *mut ::std::os::raw::c_void,
    pub recursion_level: i64_,
    pub elog_track: elog_track_t,
    pub instance_id: u32_,
    pub registration: *mut vlib_thread_registration_t,
    pub name: *mut u8_,
    pub barrier_sync_count: u64_,
    pub barrier_elog_enabled: u8_,
    pub barrier_caller: *const ::std::os::raw::c_char,
    pub barrier_context: *const ::std::os::raw::c_char,
    pub node_reforks_required: *mut u32_,
    pub wait_before_barrier: u32_,
    pub workers_before_barrier: u32_,
    pub done_work_before_barrier: u32_,
    pub lwp: ::std::os::raw::c_long,
    pub cpu_id: ::std::os::raw::c_int,
    pub core_id: ::std::os::raw::c_int,
    pub numa_id: ::std::os::raw::c_int,
    pub thread_id: pthread_t,
}
impl Default for vlib_worker_thread_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
unsafe extern "C" {
    pub static mut vlib_worker_threads: *mut vlib_worker_thread_t;
}
#[repr(C)]
#[repr(align(64))]
#[derive(Debug)]
pub struct vlib_frame_queue_t {
    pub cacheline0: __IncompleteArrayField<u8_>,
    pub elts: *mut vlib_frame_queue_elt_t,
    pub vector_threshold: u64_,
    pub trace: u64_,
    pub nelts: u32_,
    pub __bindgen_padding_0: [u8; 36usize],
    pub cacheline1: __IncompleteArrayField<u8_>,
    pub tail: u64_,
    pub __bindgen_padding_1: [u8; 56usize],
    pub cacheline2: __IncompleteArrayField<u8_>,
    pub head: u64_,
}
impl Default for vlib_frame_queue_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type vlib_frame_queue_dequeue_fn_t = ::std::option::Option<
    unsafe extern "C" fn(vm: *mut vlib_main_t, fqm: *mut vlib_frame_queue_main_t_) -> u32_,
>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct vlib_frame_queue_main_t_ {
    pub node_index: u32_,
    pub frame_queue_nelts: u32_,
    pub vlib_frame_queues: *mut *mut vlib_frame_queue_t,
    pub frame_queue_traces: *mut frame_queue_trace_t,
    pub frame_queue_histogram: *mut frame_queue_nelt_counter_t,
    pub frame_queue_dequeue_fn: vlib_frame_queue_dequeue_fn_t,
}
impl Default for vlib_frame_queue_main_t_ {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type vlib_frame_queue_main_t = vlib_frame_queue_main_t_;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct vlib_process_signal_event_mt_args_t {
    pub node_index: uword,
    pub type_opaque: uword,
    pub data: uword,
}
unsafe extern "C" {
    pub fn vlib_thread_init(vm: *mut vlib_main_t) -> *mut clib_error_t;
}
unsafe extern "C" {
    pub fn vlib_worker_thread_node_runtime_update();
}
unsafe extern "C" {
    pub fn vlib_create_worker_threads(
        vm: *mut vlib_main_t,
        n: ::std::os::raw::c_int,
        thread_function: ::std::option::Option<
            unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void),
        >,
    );
}
unsafe extern "C" {
    pub fn vlib_worker_thread_init(w: *mut vlib_worker_thread_t);
}
unsafe extern "C" {
    pub fn vlib_frame_queue_main_init(node_index: u32_, frame_queue_nelts: u32_) -> u32_;
}
unsafe extern "C" {
    pub fn vlib_worker_thread_barrier_sync_int(
        vm: *mut vlib_main_t,
        func_name: *const ::std::os::raw::c_char,
    );
}
unsafe extern "C" {
    pub fn vlib_worker_thread_barrier_release(vm: *mut vlib_main_t);
}
unsafe extern "C" {
    pub fn vlib_worker_thread_barrier_held() -> u8_;
}
unsafe extern "C" {
    pub fn vlib_worker_thread_initial_barrier_sync_and_release(vm: *mut vlib_main_t);
}
unsafe extern "C" {
    pub fn vlib_worker_thread_node_refork();
}
unsafe extern "C" {
    pub fn vlib_worker_wait_one_loop();
}
unsafe extern "C" {
    pub fn vlib_worker_flush_pending_rpc_requests(vm: *mut vlib_main_t);
}
pub const sched_policy_t_SCHED_POLICY_OTHER: sched_policy_t = 0;
pub const sched_policy_t_SCHED_POLICY_FIFO: sched_policy_t = 1;
pub const sched_policy_t_SCHED_POLICY_RR: sched_policy_t = 2;
pub const sched_policy_t_SCHED_POLICY_BATCH: sched_policy_t = 3;
pub const sched_policy_t_SCHED_POLICY_IDLE: sched_policy_t = 5;
pub const sched_policy_t_SCHED_POLICY_N: sched_policy_t = 6;
pub type sched_policy_t = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct vlib_thread_main_t {
    pub next: *mut vlib_thread_registration_t,
    pub registrations: *mut *mut vlib_thread_registration_t,
    pub thread_registrations_by_name: *mut uword,
    pub worker_threads: *mut vlib_worker_thread_t,
    pub use_pthreads: ::std::os::raw::c_int,
    pub cpu_translate: ::std::os::raw::c_int,
    pub n_vlib_mains: u32_,
    pub n_thread_stacks: u32_,
    pub n_pthreads: u32_,
    pub n_threads: u32_,
    pub skip_cores: u32_,
    pub thread_prefix: *mut u8_,
    pub main_lcore: u32_,
    pub cpu_core_bitmap: *mut uword,
    pub cpu_socket_bitmap: *mut uword,
    pub frame_queue_mains: *mut vlib_frame_queue_main_t,
    pub worker_thread_release: u32_,
    pub sched_policy: u32_,
    pub sched_priority: u32_,
    pub numa_heap_size: uword,
}
impl Default for vlib_thread_main_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
unsafe extern "C" {
    pub static mut vlib_thread_main: vlib_thread_main_t;
}
unsafe extern "C" {
    pub fn vlib_thread_stack_init(thread_index: uword) -> *mut u8_;
}
unsafe extern "C" {
    pub static mut rpc_call_main_thread_cb_fn: *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
    pub fn vlib_process_signal_event_mt_helper(args: *mut vlib_process_signal_event_mt_args_t);
}
unsafe extern "C" {
    pub fn vlib_rpc_call_main_thread(
        function: *mut ::std::os::raw::c_void,
        args: *mut u8_,
        size: u32_,
    );
}
unsafe extern "C" {
    pub fn vlib_get_thread_core_numa(w: *mut vlib_worker_thread_t, cpu_id: ::std::os::raw::c_uint);
}
unsafe extern "C" {
    pub fn vlib_get_thread_main_not_inline() -> *mut vlib_thread_main_t;
}
unsafe extern "C" {
    pub fn vlib_workers_sync();
}
unsafe extern "C" {
    pub fn vlib_workers_continue();
}
pub type vlib_buffer_enqueue_to_next_fn_t = ::std::option::Option<
    unsafe extern "C" fn(
        vm: *mut vlib_main_t,
        node: *mut vlib_node_runtime_t,
        buffers: *mut u32_,
        nexts: *mut u16_,
        count: uword,
    ),
>;
pub type vlib_buffer_enqueue_to_next_with_aux_fn_t = ::std::option::Option<
    unsafe extern "C" fn(
        vm: *mut vlib_main_t,
        node: *mut vlib_node_runtime_t,
        buffers: *mut u32_,
        aux_data: *mut u32_,
        nexts: *mut u16_,
        count: uword,
    ),
>;
pub type vlib_buffer_enqueue_to_single_next_fn_t = ::std::option::Option<
    unsafe extern "C" fn(
        vm: *mut vlib_main_t,
        node: *mut vlib_node_runtime_t,
        ers: *mut u32_,
        next_index: u16_,
        count: u32_,
    ),
>;
pub type vlib_buffer_enqueue_to_single_next_with_aux_fn_t = ::std::option::Option<
    unsafe extern "C" fn(
        vm: *mut vlib_main_t,
        node: *mut vlib_node_runtime_t,
        ers: *mut u32_,
        aux_data: *mut u32_,
        next_index: u16_,
        count: u32_,
    ),
>;
pub type vlib_buffer_enqueue_to_thread_fn_t = ::std::option::Option<
    unsafe extern "C" fn(
        vm: *mut vlib_main_t,
        node: *mut vlib_node_runtime_t,
        frame_queue_index: u32_,
        buffer_indices: *mut u32_,
        thread_indices: *mut u16_,
        n_packets: u32_,
        drop_on_congestion: ::std::os::raw::c_int,
    ) -> u32_,
>;
pub type vlib_buffer_enqueue_to_thread_with_aux_fn_t = ::std::option::Option<
    unsafe extern "C" fn(
        vm: *mut vlib_main_t,
        node: *mut vlib_node_runtime_t,
        frame_queue_index: u32_,
        buffer_indices: *mut u32_,
        aux: *mut u32_,
        thread_indices: *mut u16_,
        n_packets: u32_,
        drop_on_congestion: ::std::os::raw::c_int,
    ) -> u32_,
>;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct vlib_buffer_func_main_t {
    pub buffer_enqueue_to_next_fn: vlib_buffer_enqueue_to_next_fn_t,
    pub buffer_enqueue_to_next_with_aux_fn: vlib_buffer_enqueue_to_next_with_aux_fn_t,
    pub buffer_enqueue_to_single_next_fn: vlib_buffer_enqueue_to_single_next_fn_t,
    pub buffer_enqueue_to_single_next_with_aux_fn: vlib_buffer_enqueue_to_single_next_with_aux_fn_t,
    pub buffer_enqueue_to_thread_fn: vlib_buffer_enqueue_to_thread_fn_t,
    pub buffer_enqueue_to_thread_with_aux_fn: vlib_buffer_enqueue_to_thread_with_aux_fn_t,
}
unsafe extern "C" {
    pub static mut vlib_buffer_func_main: vlib_buffer_func_main_t;
}
unsafe extern "C" {
    pub fn vlib_buffer_length_in_chain_slow_path(
        vm: *mut vlib_main_t,
        b_first: *mut vlib_buffer_t,
    ) -> uword;
}
pub const vlib_buffer_known_state_t_VLIB_BUFFER_UNKNOWN: vlib_buffer_known_state_t = 0;
pub const vlib_buffer_known_state_t_VLIB_BUFFER_KNOWN_FREE: vlib_buffer_known_state_t = 1;
pub const vlib_buffer_known_state_t_VLIB_BUFFER_KNOWN_ALLOCATED: vlib_buffer_known_state_t = 2;
pub type vlib_buffer_known_state_t = ::std::os::raw::c_uint;
unsafe extern "C" {
    pub fn vlib_buffer_validate_alloc_free(
        vm: *mut vlib_main_t,
        buffers: *mut u32_,
        n_buffers: uword,
        expected_state: vlib_buffer_known_state_t,
    );
}
unsafe extern "C" {
    pub fn vlib_validate_buffer(
        vm: *mut vlib_main_t,
        buffer_index: u32_,
        follow_chain: uword,
    ) -> *mut u8_;
}
unsafe extern "C" {
    pub fn vlib_validate_buffers(
        vm: *mut vlib_main_t,
        buffers: *mut u32_,
        next_buffer_stride: uword,
        n_buffers: uword,
        known_state: vlib_buffer_known_state_t,
        follow_buffer_next: uword,
    ) -> *mut u8_;
}
unsafe extern "C" {
    pub fn vlib_buffer_add_data(
        vm: *mut vlib_main_t,
        buffer_index: *mut u32_,
        data: *mut ::std::os::raw::c_void,
        n_data_bytes: u32_,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn vlib_buffer_chain_append_data_with_alloc(
        vm: *mut vlib_main_t,
        first: *mut vlib_buffer_t,
        last: *mut *mut vlib_buffer_t,
        data: *mut ::std::os::raw::c_void,
        data_len: u16_,
    ) -> u16_;
}
unsafe extern "C" {
    pub fn vlib_buffer_chain_validate(vm: *mut vlib_main_t, first: *mut vlib_buffer_t);
}
unsafe extern "C" {
    pub fn format_vlib_buffer(s: *mut u8_, args: *mut va_list) -> *mut u8_;
}
unsafe extern "C" {
    pub fn format_vlib_buffer_and_data(s: *mut u8_, args: *mut va_list) -> *mut u8_;
}
unsafe extern "C" {
    pub fn format_vlib_buffer_contents(s: *mut u8_, args: *mut va_list) -> *mut u8_;
}
unsafe extern "C" {
    pub fn format_vlib_buffer_no_chain(s: *mut u8_, args: *mut va_list) -> *mut u8_;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct vlib_packet_template_t {
    pub packet_data: *mut u8_,
    pub min_n_buffers_each_alloc: u32_,
    pub name: *mut u8_,
}
impl Default for vlib_packet_template_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
unsafe extern "C" {
    pub fn vlib_packet_template_init(
        vm: *mut vlib_main_t,
        t: *mut vlib_packet_template_t,
        packet_data: *mut ::std::os::raw::c_void,
        n_packet_data_bytes: uword,
        min_n_buffers_each_alloc: uword,
        fmt: *mut ::std::os::raw::c_char,
        ...
    );
}
unsafe extern "C" {
    pub fn vlib_packet_template_get_packet(
        vm: *mut vlib_main_t,
        t: *mut vlib_packet_template_t,
        bi_result: *mut u32_,
    ) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
    pub static mut vnet_trace_placeholder: *mut u8_;
}
unsafe extern "C" {
    pub fn vlib_add_handoff_trace(
        vm: *mut vlib_main_t,
        b: *mut vlib_buffer_t,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn vlib_add_trace(
        vm: *mut vlib_main_t,
        r: *mut vlib_node_runtime_t,
        b: *mut vlib_buffer_t,
        n_data_bytes: u32_,
    ) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
    pub fn trace_apply_filter(vm: *mut vlib_main_t);
}
unsafe extern "C" {
    pub fn vlib_trace_frame_buffers_only(
        vm: *mut vlib_main_t,
        node: *mut vlib_node_runtime_t,
        buffers: *mut u32_,
        n_buffers: uword,
        next_buffer_stride: uword,
        n_buffer_data_bytes_in_trace: uword,
    );
}
pub const VNET_BUFFER_F_L4_CHECKSUM_COMPUTED: _bindgen_ty_32 = -2147483648;
pub const VNET_BUFFER_F_L4_CHECKSUM_CORRECT: _bindgen_ty_32 = 1073741824;
pub const VNET_BUFFER_F_VLAN_2_DEEP: _bindgen_ty_32 = 536870912;
pub const VNET_BUFFER_F_VLAN_1_DEEP: _bindgen_ty_32 = 268435456;
pub const VNET_BUFFER_F_SPAN_CLONE: _bindgen_ty_32 = 134217728;
pub const VNET_BUFFER_F_LOOP_COUNTER_VALID: _bindgen_ty_32 = 67108864;
pub const VNET_BUFFER_F_LOCALLY_ORIGINATED: _bindgen_ty_32 = 33554432;
pub const VNET_BUFFER_F_IS_IP4: _bindgen_ty_32 = 16777216;
pub const VNET_BUFFER_F_IS_IP6: _bindgen_ty_32 = 8388608;
pub const VNET_BUFFER_F_OFFLOAD: _bindgen_ty_32 = 4194304;
pub const VNET_BUFFER_F_IS_NATED: _bindgen_ty_32 = 2097152;
pub const VNET_BUFFER_F_L2_HDR_OFFSET_VALID: _bindgen_ty_32 = 1048576;
pub const VNET_BUFFER_F_L3_HDR_OFFSET_VALID: _bindgen_ty_32 = 524288;
pub const VNET_BUFFER_F_L4_HDR_OFFSET_VALID: _bindgen_ty_32 = 262144;
pub const VNET_BUFFER_F_FLOW_REPORT: _bindgen_ty_32 = 131072;
pub const VNET_BUFFER_F_IS_DVR: _bindgen_ty_32 = 65536;
pub const VNET_BUFFER_F_QOS_DATA_VALID: _bindgen_ty_32 = 32768;
pub const VNET_BUFFER_F_GSO: _bindgen_ty_32 = 16384;
pub const VNET_BUFFER_F_AVAIL1: _bindgen_ty_32 = 8192;
pub const VNET_BUFFER_F_AVAIL2: _bindgen_ty_32 = 4096;
pub const VNET_BUFFER_F_AVAIL3: _bindgen_ty_32 = 2048;
pub const VNET_BUFFER_F_AVAIL4: _bindgen_ty_32 = 1024;
pub const VNET_BUFFER_F_AVAIL5: _bindgen_ty_32 = 512;
pub const VNET_BUFFER_F_AVAIL6: _bindgen_ty_32 = 256;
pub const VNET_BUFFER_F_AVAIL7: _bindgen_ty_32 = 128;
pub const VNET_BUFFER_F_AVAIL8: _bindgen_ty_32 = 64;
pub const VNET_BUFFER_F_AVAIL9: _bindgen_ty_32 = 32;
pub type _bindgen_ty_32 = ::std::os::raw::c_int;
pub const VNET_BUFFER_F_LOG2_L4_CHECKSUM_COMPUTED: _bindgen_ty_33 = 31;
pub const VNET_BUFFER_F_LOG2_L4_CHECKSUM_CORRECT: _bindgen_ty_33 = 30;
pub const VNET_BUFFER_F_LOG2_VLAN_2_DEEP: _bindgen_ty_33 = 29;
pub const VNET_BUFFER_F_LOG2_VLAN_1_DEEP: _bindgen_ty_33 = 28;
pub const VNET_BUFFER_F_LOG2_SPAN_CLONE: _bindgen_ty_33 = 27;
pub const VNET_BUFFER_F_LOG2_LOOP_COUNTER_VALID: _bindgen_ty_33 = 26;
pub const VNET_BUFFER_F_LOG2_LOCALLY_ORIGINATED: _bindgen_ty_33 = 25;
pub const VNET_BUFFER_F_LOG2_IS_IP4: _bindgen_ty_33 = 24;
pub const VNET_BUFFER_F_LOG2_IS_IP6: _bindgen_ty_33 = 23;
pub const VNET_BUFFER_F_LOG2_OFFLOAD: _bindgen_ty_33 = 22;
pub const VNET_BUFFER_F_LOG2_IS_NATED: _bindgen_ty_33 = 21;
pub const VNET_BUFFER_F_LOG2_L2_HDR_OFFSET_VALID: _bindgen_ty_33 = 20;
pub const VNET_BUFFER_F_LOG2_L3_HDR_OFFSET_VALID: _bindgen_ty_33 = 19;
pub const VNET_BUFFER_F_LOG2_L4_HDR_OFFSET_VALID: _bindgen_ty_33 = 18;
pub const VNET_BUFFER_F_LOG2_FLOW_REPORT: _bindgen_ty_33 = 17;
pub const VNET_BUFFER_F_LOG2_IS_DVR: _bindgen_ty_33 = 16;
pub const VNET_BUFFER_F_LOG2_QOS_DATA_VALID: _bindgen_ty_33 = 15;
pub const VNET_BUFFER_F_LOG2_GSO: _bindgen_ty_33 = 14;
pub const VNET_BUFFER_F_LOG2_AVAIL1: _bindgen_ty_33 = 13;
pub const VNET_BUFFER_F_LOG2_AVAIL2: _bindgen_ty_33 = 12;
pub const VNET_BUFFER_F_LOG2_AVAIL3: _bindgen_ty_33 = 11;
pub const VNET_BUFFER_F_LOG2_AVAIL4: _bindgen_ty_33 = 10;
pub const VNET_BUFFER_F_LOG2_AVAIL5: _bindgen_ty_33 = 9;
pub const VNET_BUFFER_F_LOG2_AVAIL6: _bindgen_ty_33 = 8;
pub const VNET_BUFFER_F_LOG2_AVAIL7: _bindgen_ty_33 = 7;
pub const VNET_BUFFER_F_LOG2_AVAIL8: _bindgen_ty_33 = 6;
pub const VNET_BUFFER_F_LOG2_AVAIL9: _bindgen_ty_33 = 5;
pub type _bindgen_ty_33 = ::std::os::raw::c_uint;
pub const vnet_buffer_oflags_t_VNET_BUFFER_OFFLOAD_F_IP_CKSUM: vnet_buffer_oflags_t = 1;
pub const vnet_buffer_oflags_t_VNET_BUFFER_OFFLOAD_F_TCP_CKSUM: vnet_buffer_oflags_t = 2;
pub const vnet_buffer_oflags_t_VNET_BUFFER_OFFLOAD_F_UDP_CKSUM: vnet_buffer_oflags_t = 4;
pub const vnet_buffer_oflags_t_VNET_BUFFER_OFFLOAD_F_OUTER_IP_CKSUM: vnet_buffer_oflags_t = 8;
pub const vnet_buffer_oflags_t_VNET_BUFFER_OFFLOAD_F_OUTER_UDP_CKSUM: vnet_buffer_oflags_t = 16;
pub const vnet_buffer_oflags_t_VNET_BUFFER_OFFLOAD_F_TNL_VXLAN: vnet_buffer_oflags_t = 32;
pub const vnet_buffer_oflags_t_VNET_BUFFER_OFFLOAD_F_TNL_IPIP: vnet_buffer_oflags_t = 64;
pub type vnet_buffer_oflags_t = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct vnet_buffer_opaque_t {
    pub sw_if_index: [u32_; 2usize],
    pub l2_hdr_offset: i16_,
    pub l3_hdr_offset: i16_,
    pub l4_hdr_offset: i16_,
    pub feature_arc_index: u8_,
    pub _bitfield_align_1: [u8; 0],
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
    pub __bindgen_anon_1: vnet_buffer_opaque_t__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union vnet_buffer_opaque_t__bindgen_ty_1 {
    pub ip: vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_1,
    pub mpls: vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_2,
    pub l2: vnet_buffer_opaque_t__bindgen_ty_1_opaque_l2,
    pub l2t: vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_3,
    pub l2_classify: vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_4,
    pub policer: vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_5,
    pub ipsec: vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_6,
    pub map: vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_7,
    pub map_t: vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_8,
    pub ip_frag: vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_9,
    pub cop: vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_10,
    pub lisp: vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_11,
    pub tcp: vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_12,
    pub udp: vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_13,
    pub snat: vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_14,
    pub unused: [u32_; 6usize],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_1 {
    pub adj_index: [u32_; 2usize],
    pub __bindgen_anon_1: vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {
    pub __bindgen_anon_1:
        vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1,
    pub icmp: vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_2,
    pub reass: vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_3,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {
    pub flow_hash: u32_,
    pub __bindgen_anon_1:
        vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1,
    pub save_rewrite_length: u8_,
    pub __bindgen_anon_2:
        vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_2,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1
{
    pub save_protocol: u32_,
    pub fib_index: u32_,
}
impl Default
    for vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1
{
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_2
{
    pub rx_sw_if_index: u32_,
    pub rpf_id: u32_,
}
impl Default
    for vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_2
{
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
impl Default for vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_2 {
    pub type_: u8_,
    pub code: u8_,
    pub data: u32_,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_3 {
    pub __bindgen_anon_1:
        vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_3__bindgen_ty_1,
    pub __bindgen_anon_2:
        vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_3__bindgen_ty_2,
    pub __bindgen_anon_3:
        vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_3__bindgen_ty_3,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_3__bindgen_ty_1
{
    pub next_index: u32_,
    pub error_next_index: u32_,
    pub _save_rewrite_length: u8_,
    pub owner_thread_index: u16_,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_3__bindgen_ty_2 { pub __bindgen_anon_1 : vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_3__bindgen_ty_2__bindgen_ty_1 , }
#[repr(C)]
#[derive(Copy, Clone)]
pub union vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_3__bindgen_ty_2__bindgen_ty_1 { pub __bindgen_anon_1 : vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_3__bindgen_ty_2__bindgen_ty_1__bindgen_ty_1 , pub __bindgen_anon_2 : vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_3__bindgen_ty_2__bindgen_ty_1__bindgen_ty_2 , }
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_3__bindgen_ty_2__bindgen_ty_1__bindgen_ty_1
{
    pub l4_src_port: u16_,
    pub l4_dst_port: u16_,
    pub tcp_ack_number: u32_,
    pub save_rewrite_length: u8_,
    pub ip_proto: u8_,
    pub icmp_type_or_tcp_flags: u8_,
    pub _bitfield_align_1: [u8; 0],
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
    pub tcp_seq_number: u32_,
}
impl vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_3__bindgen_ty_2__bindgen_ty_1__bindgen_ty_1 { # [inline] pub fn is_non_first_fragment (& self) -> u8_ { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_is_non_first_fragment (& mut self , val : u8_) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub unsafe fn is_non_first_fragment_raw (this : * const Self) -> u8_ { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 0usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_is_non_first_fragment_raw (this : * mut Self , val : u8_) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 0usize , 1u8 , val as u64 ,) } } # [inline] pub fn l4_hdr_truncated (& self) -> u8_ { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (1usize , 1u8) as u8) } } # [inline] pub fn set_l4_hdr_truncated (& mut self , val : u8_) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (1usize , 1u8 , val as u64) } } # [inline] pub unsafe fn l4_hdr_truncated_raw (this : * const Self) -> u8_ { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 1usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_l4_hdr_truncated_raw (this : * mut Self , val : u8_) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 1usize , 1u8 , val as u64 ,) } } # [inline] pub fn unused (& self) -> u8_ { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (2usize , 6u8) as u8) } } # [inline] pub fn set_unused (& mut self , val : u8_) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (2usize , 6u8 , val as u64) } } # [inline] pub unsafe fn unused_raw (this : * const Self) -> u8_ { unsafe { :: std :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: std :: ptr :: addr_of ! ((* this) . _bitfield_1) , 2usize , 6u8 ,) as u8) } } # [inline] pub unsafe fn set_unused_raw (this : * mut Self , val : u8_) { unsafe { let val : u8 = :: std :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: std :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 2usize , 6u8 , val as u64 ,) } } # [inline] pub fn new_bitfield_1 (is_non_first_fragment : u8_ , l4_hdr_truncated : u8_ , unused : u8_) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let is_non_first_fragment : u8 = unsafe { :: std :: mem :: transmute (is_non_first_fragment) } ; is_non_first_fragment as u64 }) ; __bindgen_bitfield_unit . set (1usize , 1u8 , { let l4_hdr_truncated : u8 = unsafe { :: std :: mem :: transmute (l4_hdr_truncated) } ; l4_hdr_truncated as u64 }) ; __bindgen_bitfield_unit . set (2usize , 6u8 , { let unused : u8 = unsafe { :: std :: mem :: transmute (unused) } ; unused as u64 }) ; __bindgen_bitfield_unit } }
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_3__bindgen_ty_2__bindgen_ty_1__bindgen_ty_2
{
    pub estimated_mtu: u16_,
}
impl Default for vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_3__bindgen_ty_2__bindgen_ty_1 { fn default () -> Self { let mut s = :: std :: mem :: MaybeUninit :: < Self > :: uninit () ; unsafe { :: std :: ptr :: write_bytes (s . as_mut_ptr () , 0 , 1) ; s . assume_init () } } }
impl Default
    for vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_3__bindgen_ty_2
{
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_3__bindgen_ty_3
{
    pub fragment_first: u16_,
    pub fragment_last: u16_,
    pub range_first: u16_,
    pub range_last: u16_,
    pub next_range_bi: u32_,
    pub ip6_frag_hdr_offset: u16_,
}
impl Default for vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_3 {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
impl Default for vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
impl Default for vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_1 {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_2 {
    pub pad: [u32_; 3usize],
    pub ttl: u8_,
    pub exp: u8_,
    pub first: u8_,
    pub _bitfield_align_1: [u8; 0],
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
    pub save_rewrite_length: u8_,
    pub mpls_hdr_length: u8_,
    pub bier: vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1 {
    pub n_bytes: u8_,
}
impl vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_2 {
    #[inline]
    pub fn pyld_proto(&self) -> u8_ {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 3u8) as u8) }
    }
    #[inline]
    pub fn set_pyld_proto(&mut self, val: u8_) {
        unsafe {
            let val: u8 = ::std::mem::transmute(val);
            self._bitfield_1.set(0usize, 3u8, val as u64)
        }
    }
    #[inline]
    pub unsafe fn pyld_proto_raw(this: *const Self) -> u8_ {
        unsafe {
            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
                ::std::ptr::addr_of!((*this)._bitfield_1),
                0usize,
                3u8,
            ) as u8)
        }
    }
    #[inline]
    pub unsafe fn set_pyld_proto_raw(this: *mut Self, val: u8_) {
        unsafe {
            let val: u8 = ::std::mem::transmute(val);
            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
                0usize,
                3u8,
                val as u64,
            )
        }
    }
    #[inline]
    pub fn rsvd(&self) -> u8_ {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 5u8) as u8) }
    }
    #[inline]
    pub fn set_rsvd(&mut self, val: u8_) {
        unsafe {
            let val: u8 = ::std::mem::transmute(val);
            self._bitfield_1.set(3usize, 5u8, val as u64)
        }
    }
    #[inline]
    pub unsafe fn rsvd_raw(this: *const Self) -> u8_ {
        unsafe {
            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
                ::std::ptr::addr_of!((*this)._bitfield_1),
                3usize,
                5u8,
            ) as u8)
        }
    }
    #[inline]
    pub unsafe fn set_rsvd_raw(this: *mut Self, val: u8_) {
        unsafe {
            let val: u8 = ::std::mem::transmute(val);
            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
                3usize,
                5u8,
                val as u64,
            )
        }
    }
    #[inline]
    pub fn new_bitfield_1(pyld_proto: u8_, rsvd: u8_) -> __BindgenBitfieldUnit<[u8; 1usize]> {
        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
        __bindgen_bitfield_unit.set(0usize, 3u8, {
            let pyld_proto: u8 = unsafe { ::std::mem::transmute(pyld_proto) };
            pyld_proto as u64
        });
        __bindgen_bitfield_unit.set(3usize, 5u8, {
            let rsvd: u8 = unsafe { ::std::mem::transmute(rsvd) };
            rsvd as u64
        });
        __bindgen_bitfield_unit
    }
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct vnet_buffer_opaque_t__bindgen_ty_1_opaque_l2 {
    pub feature_bitmap: u32_,
    pub bd_index: u16_,
    pub l2fib_sn: u16_,
    pub l2_len: u8_,
    pub shg: u8_,
    pub bd_age: u8_,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_3 {
    pub pad: [u32_; 4usize],
    pub next_index: u8_,
    pub session_index: u32_,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_4 {
    pub pad: [u32_; 4usize],
    pub __bindgen_anon_1: vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_4__bindgen_ty_1,
    pub hash: u32_,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_4__bindgen_ty_1 {
    pub table_index: u32_,
    pub opaque_index: u32_,
}
impl Default for vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_4__bindgen_ty_1 {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
impl Default for vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_4 {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_5 {
    pub pad: [u32_; 5usize],
    pub index: u32_,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_6 {
    pub __pad: [u32_; 3usize],
    pub sad_index: u32_,
    pub protect_index: u32_,
    pub thread_index: clib_thread_index_t,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_7 {
    pub mtu: u16_,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_8 {
    pub map_domain_index: u32_,
    pub v6: vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_8__bindgen_ty_1,
    pub checksum_offset: u16_,
    pub mtu: u16_,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_8__bindgen_ty_1 {
    pub saddr: u32_,
    pub daddr: u32_,
    pub frag_offset: u16_,
    pub l4_offset: u16_,
    pub l4_protocol: u8_,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_9 {
    pub pad: [u32_; 2usize],
    pub mtu: u16_,
    pub next_index: u8_,
    pub flags: u8_,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_10 {
    pub current_config_index: u32_,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_11 {
    pub overlay_afi: u16_,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_12 {
    pub connection_index: u32_,
    pub __bindgen_anon_1: vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_12__bindgen_ty_1,
    pub seq_end: u32_,
    pub ack_number: u32_,
    pub hdr_offset: u16_,
    pub data_offset: u16_,
    pub data_len: u16_,
    pub flags: u8_,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_12__bindgen_ty_1 {
    pub seq_number: u32_,
    pub next_node_opaque: u32_,
}
impl Default for vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_12__bindgen_ty_1 {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
impl Default for vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_12 {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_13 {
    pub __bindgen_anon_1: vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_13__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_13__bindgen_ty_1 {
    pub __bindgen_anon_1:
        vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_13__bindgen_ty_1__bindgen_ty_1,
    pub session_handle: u64_,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_13__bindgen_ty_1__bindgen_ty_1 {
    pub session_index: u32_,
    pub thread_index: clib_thread_index_t,
}
impl Default for vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_13__bindgen_ty_1 {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
impl Default for vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_13 {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct vnet_buffer_opaque_t__bindgen_ty_1__bindgen_ty_14 {
    pub flags: u32_,
    pub required_thread_index: u32_,
}
impl Default for vnet_buffer_opaque_t__bindgen_ty_1 {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
impl Default for vnet_buffer_opaque_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
impl vnet_buffer_opaque_t {
    #[inline]
    pub fn oflags(&self) -> vnet_buffer_oflags_t {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u32) }
    }
    #[inline]
    pub fn set_oflags(&mut self, val: vnet_buffer_oflags_t) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(0usize, 8u8, val as u64)
        }
    }
    #[inline]
    pub unsafe fn oflags_raw(this: *const Self) -> vnet_buffer_oflags_t {
        unsafe {
            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
                ::std::ptr::addr_of!((*this)._bitfield_1),
                0usize,
                8u8,
            ) as u32)
        }
    }
    #[inline]
    pub unsafe fn set_oflags_raw(this: *mut Self, val: vnet_buffer_oflags_t) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
                0usize,
                8u8,
                val as u64,
            )
        }
    }
    #[inline]
    pub fn new_bitfield_1(oflags: vnet_buffer_oflags_t) -> __BindgenBitfieldUnit<[u8; 1usize]> {
        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
        __bindgen_bitfield_unit.set(0usize, 8u8, {
            let oflags: u32 = unsafe { ::std::mem::transmute(oflags) };
            oflags as u64
        });
        __bindgen_bitfield_unit
    }
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct vnet_buffer_opaque2_t {
    pub qos: vnet_buffer_opaque2_t__bindgen_ty_1,
    pub loop_counter: u8_,
    pub pad: [u8_; 5usize],
    pub __bindgen_anon_1: vnet_buffer_opaque2_t__bindgen_ty_2,
    pub nat: vnet_buffer_opaque2_t__bindgen_ty_3,
    pub ip: vnet_buffer_opaque2_t__bindgen_ty_4,
    pub unused: [u32_; 5usize],
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct vnet_buffer_opaque2_t__bindgen_ty_1 {
    pub bits: u8_,
    pub source: u8_,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct vnet_buffer_opaque2_t__bindgen_ty_2 {
    pub gso_size: u16_,
    pub gso_l4_hdr_sz: u16_,
    pub outer_l3_hdr_offset: i16_,
    pub outer_l4_hdr_offset: i16_,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct vnet_buffer_opaque2_t__bindgen_ty_3 {
    pub arc_next: u32_,
    pub __bindgen_anon_1: vnet_buffer_opaque2_t__bindgen_ty_3__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union vnet_buffer_opaque2_t__bindgen_ty_3__bindgen_ty_1 {
    pub cached_session_index: u32_,
    pub cached_dst_nat_session_index: u32_,
}
impl Default for vnet_buffer_opaque2_t__bindgen_ty_3__bindgen_ty_1 {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
impl Default for vnet_buffer_opaque2_t__bindgen_ty_3 {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct vnet_buffer_opaque2_t__bindgen_ty_4 {
    pub reass: vnet_buffer_opaque2_t__bindgen_ty_4__bindgen_ty_1,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct vnet_buffer_opaque2_t__bindgen_ty_4__bindgen_ty_1 {
    pub thread_index: clib_thread_index_t,
    pub pool_index: u32_,
    pub id: u32_,
}
impl Default for vnet_buffer_opaque2_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
unsafe extern "C" {
    pub fn format_vnet_buffer_no_chain(s: *mut u8_, args: *mut va_list) -> *mut u8_;
}
unsafe extern "C" {
    pub fn format_vnet_buffer(s: *mut u8_, args: *mut va_list) -> *mut u8_;
}
unsafe extern "C" {
    pub fn format_vnet_buffer_offload(s: *mut u8_, args: *mut va_list) -> *mut u8_;
}
unsafe extern "C" {
    pub fn format_vnet_buffer_flags(s: *mut u8_, args: *mut va_list) -> *mut u8_;
}
unsafe extern "C" {
    pub fn format_vnet_buffer_opaque(s: *mut u8_, args: *mut va_list) -> *mut u8_;
}
unsafe extern "C" {
    pub fn format_vnet_buffer_opaque2(s: *mut u8_, args: *mut va_list) -> *mut u8_;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct vnet_config_feature_t {
    pub feature_index: u32_,
    pub node_index: u32_,
    pub next_index: u32_,
    pub feature_config: *mut u32_,
}
impl Default for vnet_config_feature_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct vnet_config_t {
    pub features: *mut vnet_config_feature_t,
    pub config_string_vector: *mut u32_,
    pub config_string_heap_index: u32_,
    pub config_string_heap_handle: u32_,
    pub index: u32_,
    pub reference_count: u32_,
}
impl Default for vnet_config_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct vnet_config_main_t {
    pub config_pool: *mut vnet_config_t,
    pub config_string_hash: *mut uword,
    pub config_string_heap: *mut u32_,
    pub start_node_indices: *mut u32_,
    pub end_node_indices_by_user_index: *mut u32_,
    pub default_end_node_index: u32_,
    pub node_index_by_feature_index: *mut u32_,
    pub config_pool_index_by_user_index: *mut u32_,
    pub config_string_temp: *mut u32_,
}
impl Default for vnet_config_main_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub const vnet_hash_fn_type_t_VNET_HASH_FN_TYPE_ETHERNET: vnet_hash_fn_type_t = 0;
pub const vnet_hash_fn_type_t_VNET_HASH_FN_TYPE_IP4: vnet_hash_fn_type_t = 1;
pub const vnet_hash_fn_type_t_VNET_HASH_FN_TYPE_IP6: vnet_hash_fn_type_t = 2;
pub const vnet_hash_fn_type_t_VNET_HASH_FN_TYPE_IP: vnet_hash_fn_type_t = 3;
pub const vnet_hash_fn_type_t_VNET_HASH_FN_TYPE_N: vnet_hash_fn_type_t = 4;
pub type vnet_hash_fn_type_t = ::std::os::raw::c_uint;
pub type vnet_hash_fn_t = ::std::option::Option<
    unsafe extern "C" fn(p: *mut *mut ::std::os::raw::c_void, h: *mut u32_, n_packets: u32_),
>;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct ip46_address_t_ {
    _unused: [u8; 0],
}
pub const vnet_hw_if_rx_mode_VNET_HW_IF_RX_MODE_UNKNOWN: vnet_hw_if_rx_mode = 0;
pub const vnet_hw_if_rx_mode_VNET_HW_IF_RX_MODE_POLLING: vnet_hw_if_rx_mode = 1;
pub const vnet_hw_if_rx_mode_VNET_HW_IF_RX_MODE_INTERRUPT: vnet_hw_if_rx_mode = 2;
pub const vnet_hw_if_rx_mode_VNET_HW_IF_RX_MODE_ADAPTIVE: vnet_hw_if_rx_mode = 3;
pub const vnet_hw_if_rx_mode_VNET_HW_IF_RX_MODE_DEFAULT: vnet_hw_if_rx_mode = 4;
pub const vnet_hw_if_rx_mode_VNET_HW_IF_NUM_RX_MODES: vnet_hw_if_rx_mode = 5;
pub type vnet_hw_if_rx_mode = ::std::os::raw::c_uint;
pub type vnet_interface_function_t = ::std::option::Option<
    unsafe extern "C" fn(vnm: *mut vnet_main_t, if_index: u32_, flags: u32_) -> *mut clib_error_t,
>;
pub type vnet_subif_add_del_function_t = ::std::option::Option<
    unsafe extern "C" fn(
        vnm: *mut vnet_main_t,
        if_index: u32_,
        template: *mut vnet_sw_interface_t,
        is_add: ::std::os::raw::c_int,
    ) -> *mut clib_error_t,
>;
pub type vnet_interface_set_max_frame_size_function_t = ::std::option::Option<
    unsafe extern "C" fn(
        vnm: *mut vnet_main_t,
        hi: *mut vnet_hw_interface_t,
        mtu: u32_,
    ) -> *mut clib_error_t,
>;
pub type vnet_interface_set_mac_address_function_t = ::std::option::Option<
    unsafe extern "C" fn(
        hi: *mut vnet_hw_interface_t,
        old_address: *const u8_,
        new_address: *const u8_,
    ) -> *mut clib_error_t,
>;
pub type vnet_interface_add_del_mac_address_function_t = ::std::option::Option<
    unsafe extern "C" fn(
        hi: *mut vnet_hw_interface_t,
        address: *const u8_,
        is_add: u8_,
    ) -> *mut clib_error_t,
>;
pub type vnet_interface_set_rx_mode_function_t = ::std::option::Option<
    unsafe extern "C" fn(
        vnm: *mut vnet_main_t,
        if_index: u32_,
        queue_id: u32_,
        mode: vnet_hw_if_rx_mode,
    ) -> *mut clib_error_t,
>;
pub type vnet_interface_set_l2_mode_function_t = ::std::option::Option<
    unsafe extern "C" fn(
        vnm: *mut vnet_main_t,
        hi: *mut vnet_hw_interface_t,
        l2_if_adjust: i32_,
    ) -> *mut clib_error_t,
>;
pub type vnet_interface_rss_queues_set_t = ::std::option::Option<
    unsafe extern "C" fn(
        vnm: *mut vnet_main_t,
        hi: *mut vnet_hw_interface_t,
        bitmap: *mut clib_bitmap_t,
    ) -> *mut clib_error_t,
>;
pub const vnet_interface_eeprom_type_t_VNET_INTERFACE_EEPROM_TYPE_UNKNOWN:
    vnet_interface_eeprom_type_t = 0;
pub const vnet_interface_eeprom_type_t_VNET_INTERFACE_EEPROM_TYPE_SFF8079:
    vnet_interface_eeprom_type_t = 1;
pub const vnet_interface_eeprom_type_t_VNET_INTERFACE_EEPROM_TYPE_SFF8472:
    vnet_interface_eeprom_type_t = 2;
pub const vnet_interface_eeprom_type_t_VNET_INTERFACE_EEPROM_TYPE_SFF8636:
    vnet_interface_eeprom_type_t = 3;
pub const vnet_interface_eeprom_type_t_VNET_INTERFACE_EEPROM_TYPE_SFF8436:
    vnet_interface_eeprom_type_t = 4;
pub type vnet_interface_eeprom_type_t = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct vnet_interface_eeprom_t {
    pub eeprom_type: vnet_interface_eeprom_type_t,
    pub eeprom_len: u32_,
    pub eeprom_raw: [u8_; 1024usize],
}
impl Default for vnet_interface_eeprom_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type vnet_interface_eeprom_read_t = ::std::option::Option<
    unsafe extern "C" fn(
        vnm: *mut vnet_main_t,
        hi: *mut vnet_hw_interface_t,
        eeprom: *mut *mut vnet_interface_eeprom_t,
    ) -> *mut clib_error_t,
>;
pub const vnet_flow_dev_op_t_VNET_FLOW_DEV_OP_ADD_FLOW: vnet_flow_dev_op_t = 0;
pub const vnet_flow_dev_op_t_VNET_FLOW_DEV_OP_DEL_FLOW: vnet_flow_dev_op_t = 1;
pub const vnet_flow_dev_op_t_VNET_FLOW_DEV_OP_GET_COUNTER: vnet_flow_dev_op_t = 2;
pub const vnet_flow_dev_op_t_VNET_FLOW_DEV_OP_RESET_COUNTER: vnet_flow_dev_op_t = 3;
pub type vnet_flow_dev_op_t = ::std::os::raw::c_uint;
pub type vnet_flow_dev_ops_function_t = ::std::option::Option<
    unsafe extern "C" fn(
        vnm: *mut vnet_main_t,
        op: vnet_flow_dev_op_t,
        hw_if_index: u32_,
        index: u32_,
        private_data: *mut uword,
    ) -> ::std::os::raw::c_int,
>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _vnet_interface_function_list_elt {
    pub next_interface_function: *mut _vnet_interface_function_list_elt,
    pub fp: ::std::option::Option<
        unsafe extern "C" fn(
            vnm: *mut vnet_main_t,
            if_index: u32_,
            flags: u32_,
        ) -> *mut clib_error_t,
    >,
}
impl Default for _vnet_interface_function_list_elt {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type _vnet_interface_function_list_elt_t = _vnet_interface_function_list_elt;
pub type vnet_dev_class_ip_tunnel_desc_t = ::std::option::Option<
    unsafe extern "C" fn(
        sw_if_index: u32_,
        src: *mut ip46_address_t_,
        dst: *mut ip46_address_t_,
        is_l2: *mut u8_,
    ) -> ::std::os::raw::c_int,
>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _vnet_device_class {
    pub index: u32_,
    pub name: *mut ::std::os::raw::c_char,
    pub interface_add_del_function: vnet_interface_function_t,
    pub admin_up_down_function: vnet_interface_function_t,
    pub subif_add_del_function: vnet_subif_add_del_function_t,
    pub rx_mode_change_function: vnet_interface_set_rx_mode_function_t,
    pub set_l2_mode_function: vnet_interface_set_l2_mode_function_t,
    pub redistribute: u32_,
    pub tx_function: vlib_node_function_t,
    pub tx_fn_registrations: *mut vlib_node_fn_registration_t,
    pub tx_function_error_strings: *mut *mut ::std::os::raw::c_char,
    pub tx_function_error_counters: *mut vlib_error_desc_t,
    pub tx_function_n_errors: u32_,
    pub name_renumber: ::std::option::Option<
        unsafe extern "C" fn(
            hi: *mut vnet_hw_interface_t,
            new_dev_instance: u32_,
        ) -> ::std::os::raw::c_int,
    >,
    pub flow_ops_function: vnet_flow_dev_ops_function_t,
    pub format_device_name: format_function_t,
    pub unformat_device_name: unformat_function_t,
    pub format_device: format_function_t,
    pub format_tx_trace: format_function_t,
    pub format_flow: format_function_t,
    pub ip_tun_desc: vnet_dev_class_ip_tunnel_desc_t,
    pub clear_counters: ::std::option::Option<unsafe extern "C" fn(dev_class_instance: u32_)>,
    pub is_valid_class_for_interface: ::std::option::Option<
        unsafe extern "C" fn(
            vnm: *mut vnet_main_t,
            hw_if_index: u32_,
            hw_class_index: u32_,
        ) -> uword,
    >,
    pub hw_class_change: ::std::option::Option<
        unsafe extern "C" fn(vnm: *mut vnet_main_t, hw_if_index: u32_, new_hw_class_index: u32_),
    >,
    pub rx_redirect_to_node: ::std::option::Option<
        unsafe extern "C" fn(vnm: *mut vnet_main_t, hw_if_index: u32_, node_index: u32_),
    >,
    pub next_class_registration: *mut _vnet_device_class,
    pub mac_addr_change_function: vnet_interface_set_mac_address_function_t,
    pub mac_addr_add_del_function: vnet_interface_add_del_mac_address_function_t,
    pub set_rss_queues_function: vnet_interface_rss_queues_set_t,
    pub eeprom_read_function: vnet_interface_eeprom_read_t,
}
impl Default for _vnet_device_class {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type vnet_device_class_t = _vnet_device_class;
pub const vnet_link_t__VNET_LINK_IP4: vnet_link_t_ = 0;
pub const vnet_link_t__VNET_LINK_IP6: vnet_link_t_ = 1;
pub const vnet_link_t__VNET_LINK_MPLS: vnet_link_t_ = 2;
pub const vnet_link_t__VNET_LINK_ETHERNET: vnet_link_t_ = 3;
pub const vnet_link_t__VNET_LINK_ARP: vnet_link_t_ = 4;
pub const vnet_link_t__VNET_LINK_NSH: vnet_link_t_ = 5;
pub type vnet_link_t_ = ::std::os::raw::c_uchar;
pub use self::vnet_link_t_ as vnet_link_t;
pub const vnet_hw_interface_class_flags_t__VNET_HW_INTERFACE_CLASS_FLAG_P2P:
    vnet_hw_interface_class_flags_t_ = 1;
pub const vnet_hw_interface_class_flags_t__VNET_HW_INTERFACE_CLASS_FLAG_NBMA:
    vnet_hw_interface_class_flags_t_ = 2;
pub type vnet_hw_interface_class_flags_t_ = ::std::os::raw::c_uint;
pub use self::vnet_hw_interface_class_flags_t_ as vnet_hw_interface_class_flags_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _vnet_hw_interface_class {
    pub index: u32_,
    pub name: *mut ::std::os::raw::c_char,
    pub flags: vnet_hw_interface_class_flags_t,
    pub tx_hash_fn_type: vnet_hash_fn_type_t,
    pub interface_add_del_function: vnet_interface_function_t,
    pub admin_up_down_function: vnet_interface_function_t,
    pub link_up_down_function: vnet_interface_function_t,
    pub mac_addr_change_function: vnet_interface_set_mac_address_function_t,
    pub mac_addr_add_del_function: vnet_interface_add_del_mac_address_function_t,
    pub set_max_frame_size: vnet_interface_set_max_frame_size_function_t,
    pub format_interface_name: format_function_t,
    pub format_address: format_function_t,
    pub format_header: format_function_t,
    pub format_device: format_function_t,
    pub unformat_hw_address: unformat_function_t,
    pub unformat_header: unformat_function_t,
    pub build_rewrite: ::std::option::Option<
        unsafe extern "C" fn(
            vnm: *mut vnet_main_t,
            sw_if_index: u32_,
            link_type: vnet_link_t,
            dst_hw_address: *const ::std::os::raw::c_void,
        ) -> *mut u8_,
    >,
    pub update_adjacency: ::std::option::Option<
        unsafe extern "C" fn(vnm: *mut vnet_main_t, sw_if_index: u32_, adj_index: u32_),
    >,
    pub is_valid_class_for_interface: ::std::option::Option<
        unsafe extern "C" fn(
            vnm: *mut vnet_main_t,
            hw_if_index: u32_,
            hw_class_index: u32_,
        ) -> uword,
    >,
    pub hw_class_change: ::std::option::Option<
        unsafe extern "C" fn(
            vnm: *mut vnet_main_t,
            hw_if_index: u32_,
            old_class_index: u32_,
            new_class_index: u32_,
        ),
    >,
    pub next_class_registration: *mut _vnet_hw_interface_class,
}
impl Default for _vnet_hw_interface_class {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type vnet_hw_interface_class_t = _vnet_hw_interface_class;
pub const vnet_hw_interface_flags_t__VNET_HW_INTERFACE_FLAG_NONE: vnet_hw_interface_flags_t_ = 0;
pub const vnet_hw_interface_flags_t__VNET_HW_INTERFACE_FLAG_LINK_UP: vnet_hw_interface_flags_t_ = 1;
pub const vnet_hw_interface_flags_t__VNET_HW_INTERFACE_FLAG_HALF_DUPLEX:
    vnet_hw_interface_flags_t_ = 2;
pub const vnet_hw_interface_flags_t__VNET_HW_INTERFACE_FLAG_FULL_DUPLEX:
    vnet_hw_interface_flags_t_ = 4;
pub const vnet_hw_interface_flags_t__VNET_HW_INTERFACE_FLAG_NBMA: vnet_hw_interface_flags_t_ =
    524288;
pub type vnet_hw_interface_flags_t_ = ::std::os::raw::c_uint;
pub use self::vnet_hw_interface_flags_t_ as vnet_hw_interface_flags_t;
pub const vnet_hw_if_caps_t__VNET_HW_IF_CAP_NONE: vnet_hw_if_caps_t_ = 0;
pub const vnet_hw_if_caps_t__VNET_HW_IF_CAP_TX_IP4_CKSUM: vnet_hw_if_caps_t_ = 1;
pub const vnet_hw_if_caps_t__VNET_HW_IF_CAP_TX_TCP_CKSUM: vnet_hw_if_caps_t_ = 2;
pub const vnet_hw_if_caps_t__VNET_HW_IF_CAP_TX_UDP_CKSUM: vnet_hw_if_caps_t_ = 4;
pub const vnet_hw_if_caps_t__VNET_HW_IF_CAP_TX_IP4_OUTER_CKSUM: vnet_hw_if_caps_t_ = 8;
pub const vnet_hw_if_caps_t__VNET_HW_IF_CAP_TX_UDP_OUTER_CKSUM: vnet_hw_if_caps_t_ = 16;
pub const vnet_hw_if_caps_t__VNET_HW_IF_CAP_RX_IP4_CKSUM: vnet_hw_if_caps_t_ = 32;
pub const vnet_hw_if_caps_t__VNET_HW_IF_CAP_RX_TCP_CKSUM: vnet_hw_if_caps_t_ = 64;
pub const vnet_hw_if_caps_t__VNET_HW_IF_CAP_RX_UDP_CKSUM: vnet_hw_if_caps_t_ = 128;
pub const vnet_hw_if_caps_t__VNET_HW_IF_CAP_RX_IP4_OUTER_CKSUM: vnet_hw_if_caps_t_ = 256;
pub const vnet_hw_if_caps_t__VNET_HW_IF_CAP_RX_UDP_OUTER_CKSUM: vnet_hw_if_caps_t_ = 512;
pub const vnet_hw_if_caps_t__VNET_HW_IF_CAP_TCP_GSO: vnet_hw_if_caps_t_ = 1024;
pub const vnet_hw_if_caps_t__VNET_HW_IF_CAP_UDP_GSO: vnet_hw_if_caps_t_ = 2048;
pub const vnet_hw_if_caps_t__VNET_HW_IF_CAP_VXLAN_TNL_GSO: vnet_hw_if_caps_t_ = 4096;
pub const vnet_hw_if_caps_t__VNET_HW_IF_CAP_IPIP_TNL_GSO: vnet_hw_if_caps_t_ = 8192;
pub const vnet_hw_if_caps_t__VNET_HW_IF_CAP_GENEVE_TNL_GSO: vnet_hw_if_caps_t_ = 16384;
pub const vnet_hw_if_caps_t__VNET_HW_IF_CAP_GRE_TNL_GSO: vnet_hw_if_caps_t_ = 32768;
pub const vnet_hw_if_caps_t__VNET_HW_IF_CAP_UDP_TNL_GSO: vnet_hw_if_caps_t_ = 65536;
pub const vnet_hw_if_caps_t__VNET_HW_IF_CAP_IP_TNL_GSO: vnet_hw_if_caps_t_ = 131072;
pub const vnet_hw_if_caps_t__VNET_HW_IF_CAP_TCP_LRO: vnet_hw_if_caps_t_ = 262144;
pub const vnet_hw_if_caps_t__VNET_HW_IF_CAP_TX_FIXED_OFFSET: vnet_hw_if_caps_t_ = 524288;
pub const vnet_hw_if_caps_t__VNET_HW_IF_CAP_INT_MODE: vnet_hw_if_caps_t_ = 1073741824;
pub const vnet_hw_if_caps_t__VNET_HW_IF_CAP_MAC_FILTER: vnet_hw_if_caps_t_ = -2147483648;
pub type vnet_hw_if_caps_t_ = ::std::os::raw::c_int;
pub use self::vnet_hw_if_caps_t_ as vnet_hw_if_caps_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct vnet_hw_if_rx_queue_t {
    pub hw_if_index: u32_,
    pub dev_instance: u32_,
    pub thread_index: clib_thread_index_t,
    pub file_index: u32_,
    pub queue_id: u32_,
    pub _bitfield_align_1: [u8; 0],
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
    pub __bindgen_padding_0: [u8; 3usize],
}
impl Default for vnet_hw_if_rx_queue_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
impl vnet_hw_if_rx_queue_t {
    #[inline]
    pub fn mode(&self) -> vnet_hw_if_rx_mode {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u32) }
    }
    #[inline]
    pub fn set_mode(&mut self, val: vnet_hw_if_rx_mode) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(0usize, 8u8, val as u64)
        }
    }
    #[inline]
    pub unsafe fn mode_raw(this: *const Self) -> vnet_hw_if_rx_mode {
        unsafe {
            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
                ::std::ptr::addr_of!((*this)._bitfield_1),
                0usize,
                8u8,
            ) as u32)
        }
    }
    #[inline]
    pub unsafe fn set_mode_raw(this: *mut Self, val: vnet_hw_if_rx_mode) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
                0usize,
                8u8,
                val as u64,
            )
        }
    }
    #[inline]
    pub fn new_bitfield_1(mode: vnet_hw_if_rx_mode) -> __BindgenBitfieldUnit<[u8; 1usize]> {
        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
        __bindgen_bitfield_unit.set(0usize, 8u8, {
            let mode: u32 = unsafe { ::std::mem::transmute(mode) };
            mode as u64
        });
        __bindgen_bitfield_unit
    }
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct vnet_hw_if_tx_queue_t {
    pub _bitfield_align_1: [u8; 0],
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
    pub hw_if_index: u32_,
    pub queue_id: u32_,
    pub threads: *mut clib_bitmap_t,
}
impl Default for vnet_hw_if_tx_queue_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
impl vnet_hw_if_tx_queue_t {
    #[inline]
    pub fn shared_queue(&self) -> u8_ {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u8) }
    }
    #[inline]
    pub fn set_shared_queue(&mut self, val: u8_) {
        unsafe {
            let val: u8 = ::std::mem::transmute(val);
            self._bitfield_1.set(0usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub unsafe fn shared_queue_raw(this: *const Self) -> u8_ {
        unsafe {
            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
                ::std::ptr::addr_of!((*this)._bitfield_1),
                0usize,
                1u8,
            ) as u8)
        }
    }
    #[inline]
    pub unsafe fn set_shared_queue_raw(this: *mut Self, val: u8_) {
        unsafe {
            let val: u8 = ::std::mem::transmute(val);
            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
                0usize,
                1u8,
                val as u64,
            )
        }
    }
    #[inline]
    pub fn new_bitfield_1(shared_queue: u8_) -> __BindgenBitfieldUnit<[u8; 1usize]> {
        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
        __bindgen_bitfield_unit.set(0usize, 1u8, {
            let shared_queue: u8 = unsafe { ::std::mem::transmute(shared_queue) };
            shared_queue as u64
        });
        __bindgen_bitfield_unit
    }
}
pub const vnet_hw_if_tx_frame_hint_t_VNET_HW_IF_TX_FRAME_HINT_NOT_CHAINED:
    vnet_hw_if_tx_frame_hint_t = 1;
pub const vnet_hw_if_tx_frame_hint_t_VNET_HW_IF_TX_FRAME_HINT_NO_GSO: vnet_hw_if_tx_frame_hint_t =
    2;
pub const vnet_hw_if_tx_frame_hint_t_VNET_HW_IF_TX_FRAME_HINT_NO_CKSUM_OFFLOAD:
    vnet_hw_if_tx_frame_hint_t = 4;
pub type vnet_hw_if_tx_frame_hint_t = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct vnet_hw_if_tx_frame_t {
    pub _bitfield_align_1: [u16; 0],
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 3usize]>,
    pub queue_id: u32_,
}
impl Default for vnet_hw_if_tx_frame_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
impl vnet_hw_if_tx_frame_t {
    #[inline]
    pub fn shared_queue(&self) -> u8_ {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u8) }
    }
    #[inline]
    pub fn set_shared_queue(&mut self, val: u8_) {
        unsafe {
            let val: u8 = ::std::mem::transmute(val);
            self._bitfield_1.set(0usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub unsafe fn shared_queue_raw(this: *const Self) -> u8_ {
        unsafe {
            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
                ::std::ptr::addr_of!((*this)._bitfield_1),
                0usize,
                1u8,
            ) as u8)
        }
    }
    #[inline]
    pub unsafe fn set_shared_queue_raw(this: *mut Self, val: u8_) {
        unsafe {
            let val: u8 = ::std::mem::transmute(val);
            <__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
                0usize,
                1u8,
                val as u64,
            )
        }
    }
    #[inline]
    pub fn hints(&self) -> vnet_hw_if_tx_frame_hint_t {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 16u8) as u32) }
    }
    #[inline]
    pub fn set_hints(&mut self, val: vnet_hw_if_tx_frame_hint_t) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(1usize, 16u8, val as u64)
        }
    }
    #[inline]
    pub unsafe fn hints_raw(this: *const Self) -> vnet_hw_if_tx_frame_hint_t {
        unsafe {
            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
                ::std::ptr::addr_of!((*this)._bitfield_1),
                1usize,
                16u8,
            ) as u32)
        }
    }
    #[inline]
    pub unsafe fn set_hints_raw(this: *mut Self, val: vnet_hw_if_tx_frame_hint_t) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            <__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
                1usize,
                16u8,
                val as u64,
            )
        }
    }
    #[inline]
    pub fn new_bitfield_1(
        shared_queue: u8_,
        hints: vnet_hw_if_tx_frame_hint_t,
    ) -> __BindgenBitfieldUnit<[u8; 3usize]> {
        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 3usize]> = Default::default();
        __bindgen_bitfield_unit.set(0usize, 1u8, {
            let shared_queue: u8 = unsafe { ::std::mem::transmute(shared_queue) };
            shared_queue as u64
        });
        __bindgen_bitfield_unit.set(1usize, 16u8, {
            let hints: u32 = unsafe { ::std::mem::transmute(hints) };
            hints as u64
        });
        __bindgen_bitfield_unit
    }
}
#[repr(C)]
#[repr(align(64))]
#[derive(Debug)]
pub struct vnet_hw_if_output_node_runtime_t {
    pub cacheline0: __IncompleteArrayField<u8_>,
    pub frame: *mut vnet_hw_if_tx_frame_t,
    pub lookup_table: *mut u32_,
    pub n_queues: u32_,
}
impl Default for vnet_hw_if_output_node_runtime_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[repr(align(64))]
#[derive(Debug)]
pub struct vnet_hw_interface_t {
    pub cacheline0: __IncompleteArrayField<u8_>,
    pub flags: vnet_hw_interface_flags_t,
    pub caps: vnet_hw_if_caps_t,
    pub hw_address: *mut u8_,
    pub output_node_index: u32_,
    pub tx_node_index: u32_,
    pub if_out_arc_end_node_next_index: u32_,
    pub dev_class_index: u32_,
    pub dev_instance: u32_,
    pub hw_class_index: u32_,
    pub hw_instance: u32_,
    pub hw_if_index: u32_,
    pub sw_if_index: u32_,
    pub output_node_thread_runtimes: *mut vnet_hw_if_output_node_runtime_t,
    pub cacheline1: __IncompleteArrayField<u8_>,
    pub name: *mut u8_,
    pub link_speed: u32_,
    pub output_node_next_index: u32_,
    pub hf: vnet_hash_fn_t,
    pub max_rate_bits_per_sec: f64_,
    pub min_frame_size: u32_,
    pub max_frame_size: u32_,
    pub frame_overhead: u16_,
    pub sub_interface_sw_if_index_by_id: *mut uword,
    pub l2_if_count: u32_,
    pub l3_if_count: u32_,
    pub bond_info: *mut uword,
    pub input_node_index: u32_,
    pub default_rx_mode: vnet_hw_if_rx_mode,
    pub rx_queue_indices: *mut u32_,
    pub tx_queue_indices: *mut u32_,
    pub numa_node: u8_,
    pub rss_queues: *mut clib_bitmap_t,
    pub n_trace: i32_,
    pub trace_classify_table_index: u32_,
}
impl Default for vnet_hw_interface_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub const vnet_sw_interface_type_t_VNET_SW_INTERFACE_TYPE_HARDWARE: vnet_sw_interface_type_t = 0;
pub const vnet_sw_interface_type_t_VNET_SW_INTERFACE_TYPE_SUB: vnet_sw_interface_type_t = 1;
pub const vnet_sw_interface_type_t_VNET_SW_INTERFACE_TYPE_P2P: vnet_sw_interface_type_t = 2;
pub const vnet_sw_interface_type_t_VNET_SW_INTERFACE_TYPE_PIPE: vnet_sw_interface_type_t = 3;
pub type vnet_sw_interface_type_t = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct vnet_sub_interface_t {
    pub id: u32_,
    pub eth: vnet_sub_interface_t__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct vnet_sub_interface_t__bindgen_ty_1 {
    pub outer_vlan_id: u16_,
    pub inner_vlan_id: u16_,
    pub __bindgen_anon_1: vnet_sub_interface_t__bindgen_ty_1__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union vnet_sub_interface_t__bindgen_ty_1__bindgen_ty_1 {
    pub raw_flags: u16_,
    pub flags: vnet_sub_interface_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1,
}
#[repr(C)]
#[repr(align(2))]
#[derive(Debug, Default, Copy, Clone)]
pub struct vnet_sub_interface_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {
    pub _bitfield_align_1: [u8; 0],
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
    pub __bindgen_padding_0: u8,
}
impl vnet_sub_interface_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {
    #[inline]
    pub fn no_tags(&self) -> u16_ {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) }
    }
    #[inline]
    pub fn set_no_tags(&mut self, val: u16_) {
        unsafe {
            let val: u16 = ::std::mem::transmute(val);
            self._bitfield_1.set(0usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub unsafe fn no_tags_raw(this: *const Self) -> u16_ {
        unsafe {
            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
                ::std::ptr::addr_of!((*this)._bitfield_1),
                0usize,
                1u8,
            ) as u16)
        }
    }
    #[inline]
    pub unsafe fn set_no_tags_raw(this: *mut Self, val: u16_) {
        unsafe {
            let val: u16 = ::std::mem::transmute(val);
            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
                0usize,
                1u8,
                val as u64,
            )
        }
    }
    #[inline]
    pub fn one_tag(&self) -> u16_ {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u16) }
    }
    #[inline]
    pub fn set_one_tag(&mut self, val: u16_) {
        unsafe {
            let val: u16 = ::std::mem::transmute(val);
            self._bitfield_1.set(1usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub unsafe fn one_tag_raw(this: *const Self) -> u16_ {
        unsafe {
            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
                ::std::ptr::addr_of!((*this)._bitfield_1),
                1usize,
                1u8,
            ) as u16)
        }
    }
    #[inline]
    pub unsafe fn set_one_tag_raw(this: *mut Self, val: u16_) {
        unsafe {
            let val: u16 = ::std::mem::transmute(val);
            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
                1usize,
                1u8,
                val as u64,
            )
        }
    }
    #[inline]
    pub fn two_tags(&self) -> u16_ {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u16) }
    }
    #[inline]
    pub fn set_two_tags(&mut self, val: u16_) {
        unsafe {
            let val: u16 = ::std::mem::transmute(val);
            self._bitfield_1.set(2usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub unsafe fn two_tags_raw(this: *const Self) -> u16_ {
        unsafe {
            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
                ::std::ptr::addr_of!((*this)._bitfield_1),
                2usize,
                1u8,
            ) as u16)
        }
    }
    #[inline]
    pub unsafe fn set_two_tags_raw(this: *mut Self, val: u16_) {
        unsafe {
            let val: u16 = ::std::mem::transmute(val);
            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
                2usize,
                1u8,
                val as u64,
            )
        }
    }
    #[inline]
    pub fn dot1ad(&self) -> u16_ {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u16) }
    }
    #[inline]
    pub fn set_dot1ad(&mut self, val: u16_) {
        unsafe {
            let val: u16 = ::std::mem::transmute(val);
            self._bitfield_1.set(3usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub unsafe fn dot1ad_raw(this: *const Self) -> u16_ {
        unsafe {
            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
                ::std::ptr::addr_of!((*this)._bitfield_1),
                3usize,
                1u8,
            ) as u16)
        }
    }
    #[inline]
    pub unsafe fn set_dot1ad_raw(this: *mut Self, val: u16_) {
        unsafe {
            let val: u16 = ::std::mem::transmute(val);
            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
                3usize,
                1u8,
                val as u64,
            )
        }
    }
    #[inline]
    pub fn exact_match(&self) -> u16_ {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u16) }
    }
    #[inline]
    pub fn set_exact_match(&mut self, val: u16_) {
        unsafe {
            let val: u16 = ::std::mem::transmute(val);
            self._bitfield_1.set(4usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub unsafe fn exact_match_raw(this: *const Self) -> u16_ {
        unsafe {
            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
                ::std::ptr::addr_of!((*this)._bitfield_1),
                4usize,
                1u8,
            ) as u16)
        }
    }
    #[inline]
    pub unsafe fn set_exact_match_raw(this: *mut Self, val: u16_) {
        unsafe {
            let val: u16 = ::std::mem::transmute(val);
            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
                4usize,
                1u8,
                val as u64,
            )
        }
    }
    #[inline]
    pub fn default_sub(&self) -> u16_ {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u16) }
    }
    #[inline]
    pub fn set_default_sub(&mut self, val: u16_) {
        unsafe {
            let val: u16 = ::std::mem::transmute(val);
            self._bitfield_1.set(5usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub unsafe fn default_sub_raw(this: *const Self) -> u16_ {
        unsafe {
            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
                ::std::ptr::addr_of!((*this)._bitfield_1),
                5usize,
                1u8,
            ) as u16)
        }
    }
    #[inline]
    pub unsafe fn set_default_sub_raw(this: *mut Self, val: u16_) {
        unsafe {
            let val: u16 = ::std::mem::transmute(val);
            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
                5usize,
                1u8,
                val as u64,
            )
        }
    }
    #[inline]
    pub fn outer_vlan_id_any(&self) -> u16_ {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u16) }
    }
    #[inline]
    pub fn set_outer_vlan_id_any(&mut self, val: u16_) {
        unsafe {
            let val: u16 = ::std::mem::transmute(val);
            self._bitfield_1.set(6usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub unsafe fn outer_vlan_id_any_raw(this: *const Self) -> u16_ {
        unsafe {
            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
                ::std::ptr::addr_of!((*this)._bitfield_1),
                6usize,
                1u8,
            ) as u16)
        }
    }
    #[inline]
    pub unsafe fn set_outer_vlan_id_any_raw(this: *mut Self, val: u16_) {
        unsafe {
            let val: u16 = ::std::mem::transmute(val);
            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
                6usize,
                1u8,
                val as u64,
            )
        }
    }
    #[inline]
    pub fn inner_vlan_id_any(&self) -> u16_ {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u16) }
    }
    #[inline]
    pub fn set_inner_vlan_id_any(&mut self, val: u16_) {
        unsafe {
            let val: u16 = ::std::mem::transmute(val);
            self._bitfield_1.set(7usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub unsafe fn inner_vlan_id_any_raw(this: *const Self) -> u16_ {
        unsafe {
            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
                ::std::ptr::addr_of!((*this)._bitfield_1),
                7usize,
                1u8,
            ) as u16)
        }
    }
    #[inline]
    pub unsafe fn set_inner_vlan_id_any_raw(this: *mut Self, val: u16_) {
        unsafe {
            let val: u16 = ::std::mem::transmute(val);
            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
                7usize,
                1u8,
                val as u64,
            )
        }
    }
    #[inline]
    pub fn new_bitfield_1(
        no_tags: u16_,
        one_tag: u16_,
        two_tags: u16_,
        dot1ad: u16_,
        exact_match: u16_,
        default_sub: u16_,
        outer_vlan_id_any: u16_,
        inner_vlan_id_any: u16_,
    ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
        __bindgen_bitfield_unit.set(0usize, 1u8, {
            let no_tags: u16 = unsafe { ::std::mem::transmute(no_tags) };
            no_tags as u64
        });
        __bindgen_bitfield_unit.set(1usize, 1u8, {
            let one_tag: u16 = unsafe { ::std::mem::transmute(one_tag) };
            one_tag as u64
        });
        __bindgen_bitfield_unit.set(2usize, 1u8, {
            let two_tags: u16 = unsafe { ::std::mem::transmute(two_tags) };
            two_tags as u64
        });
        __bindgen_bitfield_unit.set(3usize, 1u8, {
            let dot1ad: u16 = unsafe { ::std::mem::transmute(dot1ad) };
            dot1ad as u64
        });
        __bindgen_bitfield_unit.set(4usize, 1u8, {
            let exact_match: u16 = unsafe { ::std::mem::transmute(exact_match) };
            exact_match as u64
        });
        __bindgen_bitfield_unit.set(5usize, 1u8, {
            let default_sub: u16 = unsafe { ::std::mem::transmute(default_sub) };
            default_sub as u64
        });
        __bindgen_bitfield_unit.set(6usize, 1u8, {
            let outer_vlan_id_any: u16 = unsafe { ::std::mem::transmute(outer_vlan_id_any) };
            outer_vlan_id_any as u64
        });
        __bindgen_bitfield_unit.set(7usize, 1u8, {
            let inner_vlan_id_any: u16 = unsafe { ::std::mem::transmute(inner_vlan_id_any) };
            inner_vlan_id_any as u64
        });
        __bindgen_bitfield_unit
    }
}
impl Default for vnet_sub_interface_t__bindgen_ty_1__bindgen_ty_1 {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
impl Default for vnet_sub_interface_t__bindgen_ty_1 {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
impl Default for vnet_sub_interface_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct vnet_p2p_sub_interface_t {
    pub id: u32_,
    pub pool_index: u32_,
    pub client_mac: [u8_; 6usize],
}
pub const vnet_flood_class_t_VNET_FLOOD_CLASS_BVI: vnet_flood_class_t = 0;
pub const vnet_flood_class_t_VNET_FLOOD_CLASS_NORMAL: vnet_flood_class_t = 1;
pub const vnet_flood_class_t_VNET_FLOOD_CLASS_TUNNEL_MASTER: vnet_flood_class_t = 2;
pub const vnet_flood_class_t_VNET_FLOOD_CLASS_TUNNEL_NORMAL: vnet_flood_class_t = 3;
pub const vnet_flood_class_t_VNET_FLOOD_CLASS_NO_FLOOD: vnet_flood_class_t = 4;
pub type vnet_flood_class_t = ::std::os::raw::c_uint;
pub const vnet_sw_interface_flags_t__VNET_SW_INTERFACE_FLAG_NONE: vnet_sw_interface_flags_t_ = 0;
pub const vnet_sw_interface_flags_t__VNET_SW_INTERFACE_FLAG_ADMIN_UP: vnet_sw_interface_flags_t_ =
    1;
pub const vnet_sw_interface_flags_t__VNET_SW_INTERFACE_FLAG_PUNT: vnet_sw_interface_flags_t_ = 2;
pub const vnet_sw_interface_flags_t____VNET_SW_INTERFACE_FLAG_UNSUED: vnet_sw_interface_flags_t_ =
    4;
pub const vnet_sw_interface_flags_t__VNET_SW_INTERFACE_FLAG_UNNUMBERED: vnet_sw_interface_flags_t_ =
    8;
pub const vnet_sw_interface_flags_t____VNET_SW_INTERFACE_FLAG_UNUSED2: vnet_sw_interface_flags_t_ =
    16;
pub const vnet_sw_interface_flags_t__VNET_SW_INTERFACE_FLAG_HIDDEN: vnet_sw_interface_flags_t_ = 32;
pub const vnet_sw_interface_flags_t__VNET_SW_INTERFACE_FLAG_ERROR: vnet_sw_interface_flags_t_ = 64;
pub const vnet_sw_interface_flags_t__VNET_SW_INTERFACE_FLAG_DIRECTED_BCAST:
    vnet_sw_interface_flags_t_ = 128;
pub type vnet_sw_interface_flags_t_ = ::std::os::raw::c_uchar;
pub use self::vnet_sw_interface_flags_t_ as vnet_sw_interface_flags_t;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct vnet_hw_interface_nodes_t {
    pub output_node_index: u32_,
    pub tx_node_index: u32_,
}
#[repr(C)]
#[repr(align(64))]
#[derive(Debug)]
pub struct vnet_interface_per_thread_data_t {
    pub cacheline0: __IncompleteArrayField<u8_>,
    pub split_buffers: *mut u32_,
}
impl Default for vnet_interface_per_thread_data_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type vnet_buffer_opquae_formatter_t =
    ::std::option::Option<unsafe extern "C" fn(b: *const vlib_buffer_t, s: *mut u8_) -> *mut u8_>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct vnet_interface_main_t {
    pub hw_interfaces: *mut vnet_hw_interface_t,
    pub hw_if_rx_queues: *mut vnet_hw_if_rx_queue_t,
    pub rxq_index_by_hw_if_index_and_queue_id: *mut uword,
    pub hw_if_tx_queues: *mut vnet_hw_if_tx_queue_t,
    pub txq_index_by_hw_if_index_and_queue_id: *mut uword,
    pub hw_interface_by_name: *mut uword,
    pub hw_interface_classes: *mut vnet_hw_interface_class_t,
    pub device_classes: *mut vnet_device_class_t,
    pub hw_interface_class_by_name: *mut uword,
    pub device_class_by_name: *mut uword,
    pub sw_interfaces: *mut vnet_sw_interface_t,
    pub sw_if_index_by_sup_and_sub: *mut uword,
    pub sw_if_counter_lock: clib_spinlock_t,
    pub sw_if_counters: *mut vlib_simple_counter_main_t,
    pub combined_sw_if_counters: *mut vlib_combined_counter_main_t,
    pub deleted_hw_interface_nodes: *mut vnet_hw_interface_nodes_t,
    pub pcap_drop_filter_hash: *mut uword,
    pub buffer_opaque_format_helpers: *mut vnet_buffer_opquae_formatter_t,
    pub buffer_opaque2_format_helpers: *mut vnet_buffer_opquae_formatter_t,
    pub per_thread_data: *mut vnet_interface_per_thread_data_t,
    pub output_feature_arc_index: u8_,
    pub drop_feature_arc_index: u8_,
    pub hw_if_index_by_sw_if_index: *mut u32_,
    pub if_out_arc_end_next_index_by_sw_if_index: *mut u16_,
}
impl Default for vnet_interface_main_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub const vnet_api_error_t_VNET_API_ERROR_UNSPECIFIED: vnet_api_error_t = -1;
pub const vnet_api_error_t_VNET_API_ERROR_INVALID_SW_IF_INDEX: vnet_api_error_t = -2;
pub const vnet_api_error_t_VNET_API_ERROR_NO_SUCH_FIB: vnet_api_error_t = -3;
pub const vnet_api_error_t_VNET_API_ERROR_NO_SUCH_INNER_FIB: vnet_api_error_t = -4;
pub const vnet_api_error_t_VNET_API_ERROR_NO_SUCH_LABEL: vnet_api_error_t = -5;
pub const vnet_api_error_t_VNET_API_ERROR_NO_SUCH_ENTRY: vnet_api_error_t = -6;
pub const vnet_api_error_t_VNET_API_ERROR_INVALID_VALUE: vnet_api_error_t = -7;
pub const vnet_api_error_t_VNET_API_ERROR_INVALID_VALUE_2: vnet_api_error_t = -8;
pub const vnet_api_error_t_VNET_API_ERROR_UNIMPLEMENTED: vnet_api_error_t = -9;
pub const vnet_api_error_t_VNET_API_ERROR_INVALID_SW_IF_INDEX_2: vnet_api_error_t = -10;
pub const vnet_api_error_t_VNET_API_ERROR_SYSCALL_ERROR_1: vnet_api_error_t = -11;
pub const vnet_api_error_t_VNET_API_ERROR_SYSCALL_ERROR_2: vnet_api_error_t = -12;
pub const vnet_api_error_t_VNET_API_ERROR_SYSCALL_ERROR_3: vnet_api_error_t = -13;
pub const vnet_api_error_t_VNET_API_ERROR_SYSCALL_ERROR_4: vnet_api_error_t = -14;
pub const vnet_api_error_t_VNET_API_ERROR_SYSCALL_ERROR_5: vnet_api_error_t = -15;
pub const vnet_api_error_t_VNET_API_ERROR_SYSCALL_ERROR_6: vnet_api_error_t = -16;
pub const vnet_api_error_t_VNET_API_ERROR_SYSCALL_ERROR_7: vnet_api_error_t = -17;
pub const vnet_api_error_t_VNET_API_ERROR_SYSCALL_ERROR_8: vnet_api_error_t = -18;
pub const vnet_api_error_t_VNET_API_ERROR_SYSCALL_ERROR_9: vnet_api_error_t = -19;
pub const vnet_api_error_t_VNET_API_ERROR_SYSCALL_ERROR_10: vnet_api_error_t = -20;
pub const vnet_api_error_t_VNET_API_ERROR_FEATURE_DISABLED: vnet_api_error_t = -30;
pub const vnet_api_error_t_VNET_API_ERROR_INVALID_REGISTRATION: vnet_api_error_t = -31;
pub const vnet_api_error_t_VNET_API_ERROR_NEXT_HOP_NOT_IN_FIB: vnet_api_error_t = -50;
pub const vnet_api_error_t_VNET_API_ERROR_UNKNOWN_DESTINATION: vnet_api_error_t = -51;
pub const vnet_api_error_t_VNET_API_ERROR_NO_PATHS_IN_ROUTE: vnet_api_error_t = -52;
pub const vnet_api_error_t_VNET_API_ERROR_NEXT_HOP_NOT_FOUND_MP: vnet_api_error_t = -53;
pub const vnet_api_error_t_VNET_API_ERROR_NO_MATCHING_INTERFACE: vnet_api_error_t = -54;
pub const vnet_api_error_t_VNET_API_ERROR_INVALID_VLAN: vnet_api_error_t = -55;
pub const vnet_api_error_t_VNET_API_ERROR_VLAN_ALREADY_EXISTS: vnet_api_error_t = -56;
pub const vnet_api_error_t_VNET_API_ERROR_INVALID_SRC_ADDRESS: vnet_api_error_t = -57;
pub const vnet_api_error_t_VNET_API_ERROR_INVALID_DST_ADDRESS: vnet_api_error_t = -58;
pub const vnet_api_error_t_VNET_API_ERROR_ADDRESS_LENGTH_MISMATCH: vnet_api_error_t = -59;
pub const vnet_api_error_t_VNET_API_ERROR_ADDRESS_NOT_FOUND_FOR_INTERFACE: vnet_api_error_t = -60;
pub const vnet_api_error_t_VNET_API_ERROR_ADDRESS_NOT_DELETABLE: vnet_api_error_t = -61;
pub const vnet_api_error_t_VNET_API_ERROR_IP6_NOT_ENABLED: vnet_api_error_t = -62;
pub const vnet_api_error_t_VNET_API_ERROR_NO_SUCH_NODE: vnet_api_error_t = -63;
pub const vnet_api_error_t_VNET_API_ERROR_NO_SUCH_NODE2: vnet_api_error_t = -64;
pub const vnet_api_error_t_VNET_API_ERROR_NO_SUCH_TABLE: vnet_api_error_t = -65;
pub const vnet_api_error_t_VNET_API_ERROR_NO_SUCH_TABLE2: vnet_api_error_t = -66;
pub const vnet_api_error_t_VNET_API_ERROR_NO_SUCH_TABLE3: vnet_api_error_t = -67;
pub const vnet_api_error_t_VNET_API_ERROR_SUBIF_ALREADY_EXISTS: vnet_api_error_t = -68;
pub const vnet_api_error_t_VNET_API_ERROR_SUBIF_CREATE_FAILED: vnet_api_error_t = -69;
pub const vnet_api_error_t_VNET_API_ERROR_INVALID_MEMORY_SIZE: vnet_api_error_t = -70;
pub const vnet_api_error_t_VNET_API_ERROR_INVALID_INTERFACE: vnet_api_error_t = -71;
pub const vnet_api_error_t_VNET_API_ERROR_INVALID_VLAN_TAG_COUNT: vnet_api_error_t = -72;
pub const vnet_api_error_t_VNET_API_ERROR_INVALID_ARGUMENT: vnet_api_error_t = -73;
pub const vnet_api_error_t_VNET_API_ERROR_UNEXPECTED_INTF_STATE: vnet_api_error_t = -74;
pub const vnet_api_error_t_VNET_API_ERROR_TUNNEL_EXIST: vnet_api_error_t = -75;
pub const vnet_api_error_t_VNET_API_ERROR_INVALID_DECAP_NEXT: vnet_api_error_t = -76;
pub const vnet_api_error_t_VNET_API_ERROR_RESPONSE_NOT_READY: vnet_api_error_t = -77;
pub const vnet_api_error_t_VNET_API_ERROR_NOT_CONNECTED: vnet_api_error_t = -78;
pub const vnet_api_error_t_VNET_API_ERROR_IF_ALREADY_EXISTS: vnet_api_error_t = -79;
pub const vnet_api_error_t_VNET_API_ERROR_BOND_SLAVE_NOT_ALLOWED: vnet_api_error_t = -80;
pub const vnet_api_error_t_VNET_API_ERROR_VALUE_EXIST: vnet_api_error_t = -81;
pub const vnet_api_error_t_VNET_API_ERROR_SAME_SRC_DST: vnet_api_error_t = -82;
pub const vnet_api_error_t_VNET_API_ERROR_IP6_MULTICAST_ADDRESS_NOT_PRESENT: vnet_api_error_t = -83;
pub const vnet_api_error_t_VNET_API_ERROR_SR_POLICY_NAME_NOT_PRESENT: vnet_api_error_t = -84;
pub const vnet_api_error_t_VNET_API_ERROR_NOT_RUNNING_AS_ROOT: vnet_api_error_t = -85;
pub const vnet_api_error_t_VNET_API_ERROR_ALREADY_CONNECTED: vnet_api_error_t = -86;
pub const vnet_api_error_t_VNET_API_ERROR_UNSUPPORTED_JNI_VERSION: vnet_api_error_t = -87;
pub const vnet_api_error_t_VNET_API_ERROR_IP_PREFIX_INVALID: vnet_api_error_t = -88;
pub const vnet_api_error_t_VNET_API_ERROR_INVALID_WORKER: vnet_api_error_t = -89;
pub const vnet_api_error_t_VNET_API_ERROR_LISP_DISABLED: vnet_api_error_t = -90;
pub const vnet_api_error_t_VNET_API_ERROR_CLASSIFY_TABLE_NOT_FOUND: vnet_api_error_t = -91;
pub const vnet_api_error_t_VNET_API_ERROR_INVALID_EID_TYPE: vnet_api_error_t = -92;
pub const vnet_api_error_t_VNET_API_ERROR_CANNOT_CREATE_PCAP_FILE: vnet_api_error_t = -93;
pub const vnet_api_error_t_VNET_API_ERROR_INCORRECT_ADJACENCY_TYPE: vnet_api_error_t = -94;
pub const vnet_api_error_t_VNET_API_ERROR_EXCEEDED_NUMBER_OF_RANGES_CAPACITY: vnet_api_error_t =
    -95;
pub const vnet_api_error_t_VNET_API_ERROR_EXCEEDED_NUMBER_OF_PORTS_CAPACITY: vnet_api_error_t = -96;
pub const vnet_api_error_t_VNET_API_ERROR_INVALID_ADDRESS_FAMILY: vnet_api_error_t = -97;
pub const vnet_api_error_t_VNET_API_ERROR_INVALID_SUB_SW_IF_INDEX: vnet_api_error_t = -98;
pub const vnet_api_error_t_VNET_API_ERROR_TABLE_TOO_BIG: vnet_api_error_t = -99;
pub const vnet_api_error_t_VNET_API_ERROR_CANNOT_ENABLE_DISABLE_FEATURE: vnet_api_error_t = -100;
pub const vnet_api_error_t_VNET_API_ERROR_BFD_EEXIST: vnet_api_error_t = -101;
pub const vnet_api_error_t_VNET_API_ERROR_BFD_ENOENT: vnet_api_error_t = -102;
pub const vnet_api_error_t_VNET_API_ERROR_BFD_EINUSE: vnet_api_error_t = -103;
pub const vnet_api_error_t_VNET_API_ERROR_BFD_NOTSUPP: vnet_api_error_t = -104;
pub const vnet_api_error_t_VNET_API_ERROR_ADDRESS_IN_USE: vnet_api_error_t = -105;
pub const vnet_api_error_t_VNET_API_ERROR_ADDRESS_NOT_IN_USE: vnet_api_error_t = -106;
pub const vnet_api_error_t_VNET_API_ERROR_QUEUE_FULL: vnet_api_error_t = -107;
pub const vnet_api_error_t_VNET_API_ERROR_APP_UNSUPPORTED_CFG: vnet_api_error_t = -108;
pub const vnet_api_error_t_VNET_API_ERROR_URI_FIFO_CREATE_FAILED: vnet_api_error_t = -109;
pub const vnet_api_error_t_VNET_API_ERROR_LISP_RLOC_LOCAL: vnet_api_error_t = -110;
pub const vnet_api_error_t_VNET_API_ERROR_BFD_EAGAIN: vnet_api_error_t = -111;
pub const vnet_api_error_t_VNET_API_ERROR_INVALID_GPE_MODE: vnet_api_error_t = -112;
pub const vnet_api_error_t_VNET_API_ERROR_LISP_GPE_ENTRIES_PRESENT: vnet_api_error_t = -113;
pub const vnet_api_error_t_VNET_API_ERROR_ADDRESS_FOUND_FOR_INTERFACE: vnet_api_error_t = -114;
pub const vnet_api_error_t_VNET_API_ERROR_SESSION_CONNECT: vnet_api_error_t = -115;
pub const vnet_api_error_t_VNET_API_ERROR_ENTRY_ALREADY_EXISTS: vnet_api_error_t = -116;
pub const vnet_api_error_t_VNET_API_ERROR_SVM_SEGMENT_CREATE_FAIL: vnet_api_error_t = -117;
pub const vnet_api_error_t_VNET_API_ERROR_APPLICATION_NOT_ATTACHED: vnet_api_error_t = -118;
pub const vnet_api_error_t_VNET_API_ERROR_BD_ALREADY_EXISTS: vnet_api_error_t = -119;
pub const vnet_api_error_t_VNET_API_ERROR_BD_IN_USE: vnet_api_error_t = -120;
pub const vnet_api_error_t_VNET_API_ERROR_BD_NOT_MODIFIABLE: vnet_api_error_t = -121;
pub const vnet_api_error_t_VNET_API_ERROR_BD_ID_EXCEED_MAX: vnet_api_error_t = -122;
pub const vnet_api_error_t_VNET_API_ERROR_SUBIF_DOESNT_EXIST: vnet_api_error_t = -123;
pub const vnet_api_error_t_VNET_API_ERROR_L2_MACS_EVENT_CLINET_PRESENT: vnet_api_error_t = -124;
pub const vnet_api_error_t_VNET_API_ERROR_INVALID_QUEUE: vnet_api_error_t = -125;
pub const vnet_api_error_t_VNET_API_ERROR_UNSUPPORTED: vnet_api_error_t = -126;
pub const vnet_api_error_t_VNET_API_ERROR_DUPLICATE_IF_ADDRESS: vnet_api_error_t = -127;
pub const vnet_api_error_t_VNET_API_ERROR_APP_INVALID_NS: vnet_api_error_t = -128;
pub const vnet_api_error_t_VNET_API_ERROR_APP_WRONG_NS_SECRET: vnet_api_error_t = -129;
pub const vnet_api_error_t_VNET_API_ERROR_APP_CONNECT_SCOPE: vnet_api_error_t = -130;
pub const vnet_api_error_t_VNET_API_ERROR_APP_ALREADY_ATTACHED: vnet_api_error_t = -131;
pub const vnet_api_error_t_VNET_API_ERROR_SESSION_REDIRECT: vnet_api_error_t = -132;
pub const vnet_api_error_t_VNET_API_ERROR_ILLEGAL_NAME: vnet_api_error_t = -133;
pub const vnet_api_error_t_VNET_API_ERROR_NO_NAME_SERVERS: vnet_api_error_t = -134;
pub const vnet_api_error_t_VNET_API_ERROR_NAME_SERVER_NOT_FOUND: vnet_api_error_t = -135;
pub const vnet_api_error_t_VNET_API_ERROR_NAME_RESOLUTION_NOT_ENABLED: vnet_api_error_t = -136;
pub const vnet_api_error_t_VNET_API_ERROR_NAME_SERVER_FORMAT_ERROR: vnet_api_error_t = -137;
pub const vnet_api_error_t_VNET_API_ERROR_NAME_SERVER_NO_SUCH_NAME: vnet_api_error_t = -138;
pub const vnet_api_error_t_VNET_API_ERROR_NAME_SERVER_NO_ADDRESSES: vnet_api_error_t = -139;
pub const vnet_api_error_t_VNET_API_ERROR_NAME_SERVER_NEXT_SERVER: vnet_api_error_t = -140;
pub const vnet_api_error_t_VNET_API_ERROR_APP_CONNECT_FILTERED: vnet_api_error_t = -141;
pub const vnet_api_error_t_VNET_API_ERROR_ACL_IN_USE_INBOUND: vnet_api_error_t = -142;
pub const vnet_api_error_t_VNET_API_ERROR_ACL_IN_USE_OUTBOUND: vnet_api_error_t = -143;
pub const vnet_api_error_t_VNET_API_ERROR_INIT_FAILED: vnet_api_error_t = -144;
pub const vnet_api_error_t_VNET_API_ERROR_NETLINK_ERROR: vnet_api_error_t = -145;
pub const vnet_api_error_t_VNET_API_ERROR_BIER_BSL_UNSUP: vnet_api_error_t = -146;
pub const vnet_api_error_t_VNET_API_ERROR_INSTANCE_IN_USE: vnet_api_error_t = -147;
pub const vnet_api_error_t_VNET_API_ERROR_INVALID_SESSION_ID: vnet_api_error_t = -148;
pub const vnet_api_error_t_VNET_API_ERROR_ACL_IN_USE_BY_LOOKUP_CONTEXT: vnet_api_error_t = -149;
pub const vnet_api_error_t_VNET_API_ERROR_INVALID_VALUE_3: vnet_api_error_t = -150;
pub const vnet_api_error_t_VNET_API_ERROR_NON_ETHERNET: vnet_api_error_t = -151;
pub const vnet_api_error_t_VNET_API_ERROR_BD_ALREADY_HAS_BVI: vnet_api_error_t = -152;
pub const vnet_api_error_t_VNET_API_ERROR_INVALID_PROTOCOL: vnet_api_error_t = -153;
pub const vnet_api_error_t_VNET_API_ERROR_INVALID_ALGORITHM: vnet_api_error_t = -154;
pub const vnet_api_error_t_VNET_API_ERROR_RSRC_IN_USE: vnet_api_error_t = -155;
pub const vnet_api_error_t_VNET_API_ERROR_KEY_LENGTH: vnet_api_error_t = -156;
pub const vnet_api_error_t_VNET_API_ERROR_FIB_PATH_UNSUPPORTED_NH_PROTO: vnet_api_error_t = -157;
pub const vnet_api_error_t_VNET_API_ERROR_API_ENDIAN_FAILED: vnet_api_error_t = -159;
pub const vnet_api_error_t_VNET_API_ERROR_NO_CHANGE: vnet_api_error_t = -160;
pub const vnet_api_error_t_VNET_API_ERROR_MISSING_CERT_KEY: vnet_api_error_t = -161;
pub const vnet_api_error_t_VNET_API_ERROR_LIMIT_EXCEEDED: vnet_api_error_t = -162;
pub const vnet_api_error_t_VNET_API_ERROR_IKE_NO_PORT: vnet_api_error_t = -163;
pub const vnet_api_error_t_VNET_API_ERROR_UDP_PORT_TAKEN: vnet_api_error_t = -164;
pub const vnet_api_error_t_VNET_API_ERROR_EAGAIN: vnet_api_error_t = -165;
pub const vnet_api_error_t_VNET_API_ERROR_INVALID_VALUE_4: vnet_api_error_t = -166;
pub const vnet_api_error_t_VNET_API_ERROR_BUSY: vnet_api_error_t = -167;
pub const vnet_api_error_t_VNET_API_ERROR_BUG: vnet_api_error_t = -168;
pub const vnet_api_error_t_VNET_API_ERROR_FEATURE_ALREADY_DISABLED: vnet_api_error_t = -169;
pub const vnet_api_error_t_VNET_API_ERROR_FEATURE_ALREADY_ENABLED: vnet_api_error_t = -170;
pub const vnet_api_error_t_VNET_API_ERROR_INVALID_PREFIX_LENGTH: vnet_api_error_t = -171;
pub const vnet_api_error_t_VNET_API_N_ERROR: vnet_api_error_t = -170;
pub type vnet_api_error_t = ::std::os::raw::c_int;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _vnet_ip_table_function_list_elt {
    pub next_ip_table_function: *mut _vnet_ip_table_function_list_elt,
    pub fp: ::std::option::Option<
        unsafe extern "C" fn(
            vnm: *mut vnet_main_t,
            table_id: u32_,
            flags: u32_,
        ) -> *mut clib_error_t,
    >,
}
impl Default for _vnet_ip_table_function_list_elt {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type _vnet_ip_table_function_list_elt_t = _vnet_ip_table_function_list_elt;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct vnet_pcap_t {
    pub pcap_rx_enable: u8_,
    pub pcap_tx_enable: u8_,
    pub pcap_drop_enable: u8_,
    pub pcap_filter_enable: u8_,
    pub max_bytes_per_pkt: u32_,
    pub pcap_sw_if_index: u32_,
    pub pcap_main: pcap_main_t,
    pub filter_classify_table_index: u32_,
    pub current_filter_function: vlib_is_packet_traced_fn_t,
    pub pcap_error_index: vlib_error_t,
}
impl Default for vnet_pcap_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct vnet_main_t {
    pub local_interface_hw_if_index: u32_,
    pub local_interface_sw_if_index: u32_,
    pub interface_main: vnet_interface_main_t,
    pub device_class_registrations: *mut vnet_device_class_t,
    pub hw_interface_class_registrations: *mut vnet_hw_interface_class_t,
    pub hw_interface_add_del_functions: [*mut _vnet_interface_function_list_elt_t; 2usize],
    pub hw_interface_link_up_down_functions: [*mut _vnet_interface_function_list_elt_t; 2usize],
    pub sw_interface_add_del_functions: [*mut _vnet_interface_function_list_elt_t; 2usize],
    pub sw_interface_admin_up_down_functions: [*mut _vnet_interface_function_list_elt_t; 2usize],
    pub sw_interface_mtu_change_functions: [*mut _vnet_interface_function_list_elt_t; 2usize],
    pub interface_tag_by_sw_if_index: *mut uword,
    pub ip_table_add_del_functions: [*mut _vnet_ip_table_function_list_elt_t; 2usize],
    pub pcap: vnet_pcap_t,
    pub api_errno: vnet_api_error_t,
    pub vlib_main: *mut vlib_main_t,
}
impl Default for vnet_main_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
unsafe extern "C" {
    pub fn vnet_get_main() -> *mut vnet_main_t;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _vnet_feature_arc_registration {
    pub next: *mut _vnet_feature_arc_registration,
    pub arc_name: *mut ::std::os::raw::c_char,
    pub start_nodes: *mut *mut ::std::os::raw::c_char,
    pub n_start_nodes: ::std::os::raw::c_int,
    pub last_in_arc: *mut ::std::os::raw::c_char,
    pub feature_arc_index: u8_,
    pub arc_index_ptr: *mut u8_,
}
impl Default for _vnet_feature_arc_registration {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type vnet_feature_arc_registration_t = _vnet_feature_arc_registration;
pub type vnet_feature_enable_disable_function_t = ::std::option::Option<
    unsafe extern "C" fn(
        sw_if_index: u32_,
        enable_disable: ::std::os::raw::c_int,
    ) -> *mut clib_error_t,
>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _vnet_feature_registration {
    pub next: *mut _vnet_feature_registration,
    pub next_in_arc: *mut _vnet_feature_registration,
    pub arc_name: *mut ::std::os::raw::c_char,
    pub node_name: *mut ::std::os::raw::c_char,
    pub feature_index_ptr: *mut u32_,
    pub feature_index: u32_,
    pub runs_before: *mut *mut ::std::os::raw::c_char,
    pub runs_after: *mut *mut ::std::os::raw::c_char,
    pub enable_disable_cb: vnet_feature_enable_disable_function_t,
}
impl Default for _vnet_feature_registration {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type vnet_feature_registration_t = _vnet_feature_registration;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _vnet_feature_constraint_registration {
    pub next: *mut _vnet_feature_constraint_registration,
    pub next_in_arc: *mut _vnet_feature_constraint_registration,
    pub arc_name: *mut ::std::os::raw::c_char,
    pub feature_arc_index: u8_,
    pub node_names: *mut *mut ::std::os::raw::c_char,
}
impl Default for _vnet_feature_constraint_registration {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type vnet_feature_constraint_registration_t = _vnet_feature_constraint_registration;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct vnet_feature_config_main_t_ {
    pub config_main: vnet_config_main_t,
    pub config_index_by_sw_if_index: *mut u32_,
}
impl Default for vnet_feature_config_main_t_ {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type vnet_feature_config_main_t = vnet_feature_config_main_t_;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct vnet_feature_main_t {
    pub next_arc: *mut vnet_feature_arc_registration_t,
    pub arc_index_by_name: *mut *mut uword,
    pub next_feature: *mut vnet_feature_registration_t,
    pub next_feature_by_arc: *mut *mut vnet_feature_registration_t,
    pub next_constraint: *mut vnet_feature_constraint_registration_t,
    pub next_constraint_by_arc: *mut *mut vnet_feature_constraint_registration_t,
    pub next_feature_by_name: *mut *mut uword,
    pub feature_config_mains: *mut vnet_feature_config_main_t,
    pub feature_nodes: *mut *mut *mut ::std::os::raw::c_char,
    pub sw_if_index_has_features: *mut *mut uword,
    pub feature_count_by_sw_if_index: *mut *mut i16_,
    pub device_input_feature_arc_index: u8_,
    pub vlib_main: *mut vlib_main_t,
    pub vnet_main: *mut vnet_main_t,
}
impl Default for vnet_feature_main_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
unsafe extern "C" {
    pub static mut feature_main: vnet_feature_main_t;
}
unsafe extern "C" {
    pub fn vnet_config_update_feature_count(
        fm: *mut vnet_feature_main_t,
        arc: u8_,
        sw_if_index: u32_,
        is_add: ::std::os::raw::c_int,
    );
}
unsafe extern "C" {
    pub fn vnet_get_feature_index(arc: u8_, s: *const ::std::os::raw::c_char) -> u32_;
}
unsafe extern "C" {
    pub fn vnet_get_feature_arc_index(s: *const ::std::os::raw::c_char) -> u8_;
}
unsafe extern "C" {
    pub fn vnet_get_feature_reg(
        arc_name: *const ::std::os::raw::c_char,
        node_name: *const ::std::os::raw::c_char,
    ) -> *mut vnet_feature_registration_t;
}
unsafe extern "C" {
    pub fn vnet_feature_enable_disable_with_index(
        arc_index: u8_,
        feature_index: u32_,
        sw_if_index: u32_,
        enable_disable: ::std::os::raw::c_int,
        feature_config: *mut ::std::os::raw::c_void,
        n_feature_config_bytes: u32_,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn vnet_feature_enable_disable(
        arc_name: *const ::std::os::raw::c_char,
        node_name: *const ::std::os::raw::c_char,
        sw_if_index: u32_,
        enable_disable: ::std::os::raw::c_int,
        feature_config: *mut ::std::os::raw::c_void,
        n_feature_config_bytes: u32_,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn vnet_feature_modify_end_node(
        arc_index: u8_,
        sw_if_index: u32_,
        node_index: u32_,
    ) -> u32_;
}
unsafe extern "C" {
    pub fn vnet_feature_get_end_node(arc_index: u8_, sw_if_index: u32_) -> u32_;
}
unsafe extern "C" {
    pub fn vnet_feature_reset_end_node(arc_index: u8_, sw_if_index: u32_) -> u32_;
}
unsafe extern "C" {
    pub fn vnet_feature_arc_init(
        vm: *mut vlib_main_t,
        vcm: *mut vnet_config_main_t,
        feature_start_nodes: *mut *mut ::std::os::raw::c_char,
        num_feature_start_nodes: ::std::os::raw::c_int,
        last_in_arc: *mut ::std::os::raw::c_char,
        first_reg: *mut vnet_feature_registration_t,
        first_const_set: *mut vnet_feature_constraint_registration_t,
        in_feature_nodes: *mut *mut *mut ::std::os::raw::c_char,
    ) -> *mut clib_error_t;
}
unsafe extern "C" {
    pub fn vnet_interface_features_show(
        vm: *mut vlib_main_t,
        sw_if_index: u32_,
        verbose: ::std::os::raw::c_int,
    );
}
pub type vnet_feature_update_cb_t = ::std::option::Option<
    unsafe extern "C" fn(
        sw_if_index: u32_,
        arc_index: u8_,
        is_enable: u8_,
        cb: *mut ::std::os::raw::c_void,
    ),
>;
unsafe extern "C" {
    pub fn vnet_feature_register(cb: vnet_feature_update_cb_t, data: *mut ::std::os::raw::c_void);
}
unsafe extern "C" {
    pub fn vnet_feature_is_enabled(
        arc_name: *const ::std::os::raw::c_char,
        feature_node_name: *const ::std::os::raw::c_char,
        sw_if_index: u32_,
    ) -> ::std::os::raw::c_int;
}
pub type clib_file_function_t =
    ::std::option::Option<unsafe extern "C" fn(f: *mut clib_file) -> *mut clib_error_t>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct clib_file {
    pub file_descriptor: u32_,
    pub flags: u16_,
    pub _bitfield_align_1: [u8; 0],
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
    pub polling_thread_index: u32_,
    pub index: u32_,
    pub private_data: u64_,
    pub read_function: clib_file_function_t,
    pub write_function: clib_file_function_t,
    pub error_function: clib_file_function_t,
    pub description: *mut u8_,
    pub read_events: u64_,
    pub write_events: u64_,
    pub error_events: u64_,
}
impl Default for clib_file {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
impl clib_file {
    #[inline]
    pub fn active(&self) -> u16_ {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) }
    }
    #[inline]
    pub fn set_active(&mut self, val: u16_) {
        unsafe {
            let val: u16 = ::std::mem::transmute(val);
            self._bitfield_1.set(0usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub unsafe fn active_raw(this: *const Self) -> u16_ {
        unsafe {
            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
                ::std::ptr::addr_of!((*this)._bitfield_1),
                0usize,
                1u8,
            ) as u16)
        }
    }
    #[inline]
    pub unsafe fn set_active_raw(this: *mut Self, val: u16_) {
        unsafe {
            let val: u16 = ::std::mem::transmute(val);
            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
                0usize,
                1u8,
                val as u64,
            )
        }
    }
    #[inline]
    pub fn dont_close(&self) -> u16_ {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u16) }
    }
    #[inline]
    pub fn set_dont_close(&mut self, val: u16_) {
        unsafe {
            let val: u16 = ::std::mem::transmute(val);
            self._bitfield_1.set(1usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub unsafe fn dont_close_raw(this: *const Self) -> u16_ {
        unsafe {
            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
                ::std::ptr::addr_of!((*this)._bitfield_1),
                1usize,
                1u8,
            ) as u16)
        }
    }
    #[inline]
    pub unsafe fn set_dont_close_raw(this: *mut Self, val: u16_) {
        unsafe {
            let val: u16 = ::std::mem::transmute(val);
            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
                1usize,
                1u8,
                val as u64,
            )
        }
    }
    #[inline]
    pub fn new_bitfield_1(active: u16_, dont_close: u16_) -> __BindgenBitfieldUnit<[u8; 1usize]> {
        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
        __bindgen_bitfield_unit.set(0usize, 1u8, {
            let active: u16 = unsafe { ::std::mem::transmute(active) };
            active as u64
        });
        __bindgen_bitfield_unit.set(1usize, 1u8, {
            let dont_close: u16 = unsafe { ::std::mem::transmute(dont_close) };
            dont_close as u64
        });
        __bindgen_bitfield_unit
    }
}
pub type clib_file_t = clib_file;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct stat {
    pub st_dev: __dev_t,
    pub st_ino: __ino_t,
    pub st_nlink: __nlink_t,
    pub st_mode: __mode_t,
    pub st_uid: __uid_t,
    pub st_gid: __gid_t,
    pub __pad0: ::std::os::raw::c_int,
    pub st_rdev: __dev_t,
    pub st_size: __off_t,
    pub st_blksize: __blksize_t,
    pub st_blocks: __blkcnt_t,
    pub st_atim: timespec,
    pub st_mtim: timespec,
    pub st_ctim: timespec,
    pub __glibc_reserved: [__syscall_slong_t; 3usize],
}
#[repr(C)]
#[repr(align(64))]
#[derive(Debug)]
pub struct vlib_plugin_registration_t {
    pub cacheline0: __IncompleteArrayField<u8_>,
    pub _bitfield_align_1: [u8; 0],
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
    pub version: [::std::os::raw::c_char; 64usize],
    pub version_required: [::std::os::raw::c_char; 64usize],
    pub overrides: [::std::os::raw::c_char; 256usize],
    pub early_init: *const ::std::os::raw::c_char,
    pub description: *const ::std::os::raw::c_char,
    pub load_after: *mut ::std::os::raw::c_char,
}
impl Default for vlib_plugin_registration_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
impl vlib_plugin_registration_t {
    #[inline]
    pub fn default_disabled(&self) -> u8_ {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u8) }
    }
    #[inline]
    pub fn set_default_disabled(&mut self, val: u8_) {
        unsafe {
            let val: u8 = ::std::mem::transmute(val);
            self._bitfield_1.set(0usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub unsafe fn default_disabled_raw(this: *const Self) -> u8_ {
        unsafe {
            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
                ::std::ptr::addr_of!((*this)._bitfield_1),
                0usize,
                1u8,
            ) as u8)
        }
    }
    #[inline]
    pub unsafe fn set_default_disabled_raw(this: *mut Self, val: u8_) {
        unsafe {
            let val: u8 = ::std::mem::transmute(val);
            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
                0usize,
                1u8,
                val as u64,
            )
        }
    }
    #[inline]
    pub fn deep_bind(&self) -> u8_ {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u8) }
    }
    #[inline]
    pub fn set_deep_bind(&mut self, val: u8_) {
        unsafe {
            let val: u8 = ::std::mem::transmute(val);
            self._bitfield_1.set(1usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub unsafe fn deep_bind_raw(this: *const Self) -> u8_ {
        unsafe {
            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
                ::std::ptr::addr_of!((*this)._bitfield_1),
                1usize,
                1u8,
            ) as u8)
        }
    }
    #[inline]
    pub unsafe fn set_deep_bind_raw(this: *mut Self, val: u8_) {
        unsafe {
            let val: u8 = ::std::mem::transmute(val);
            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
                1usize,
                1u8,
                val as u64,
            )
        }
    }
    #[inline]
    pub fn new_bitfield_1(
        default_disabled: u8_,
        deep_bind: u8_,
    ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
        __bindgen_bitfield_unit.set(0usize, 1u8, {
            let default_disabled: u8 = unsafe { ::std::mem::transmute(default_disabled) };
            default_disabled as u64
        });
        __bindgen_bitfield_unit.set(1usize, 1u8, {
            let deep_bind: u8 = unsafe { ::std::mem::transmute(deep_bind) };
            deep_bind as u64
        });
        __bindgen_bitfield_unit
    }
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct vlib_r2_string_t {
    pub data_segment_offset: uword,
    pub length: uword,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct vlib_plugin_r2_t {
    pub default_disabled: ::std::os::raw::c_int,
    pub version: vlib_r2_string_t,
    pub version_required: vlib_r2_string_t,
    pub overrides: vlib_r2_string_t,
    pub early_init: vlib_r2_string_t,
    pub description: vlib_r2_string_t,
    pub load_after: vlib_r2_string_t,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct plugin_info_t {
    pub name: *mut u8_,
    pub filename: *mut u8_,
    pub file_info: stat,
    pub handle: *mut ::std::os::raw::c_void,
    pub reg: *mut vlib_plugin_registration_t,
    pub version: *mut ::std::os::raw::c_char,
}
impl Default for plugin_info_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct plugin_config_t {
    pub name: *mut ::std::os::raw::c_char,
    pub is_disabled: u8_,
    pub is_enabled: u8_,
    pub skip_version_check: u8_,
}
impl Default for plugin_config_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct plugin_main_t {
    pub plugin_info: *mut plugin_info_t,
    pub plugin_by_name_hash: *mut uword,
    pub plugin_overrides_by_name_hash: *mut uword,
    pub plugin_path: *mut u8_,
    pub plugin_path_add: *mut u8_,
    pub plugin_name_filter: *mut u8_,
    pub vat_plugin_path: *mut u8_,
    pub vat_plugin_name_filter: *mut u8_,
    pub plugins_default_disable: u8_,
    pub configs: *mut plugin_config_t,
    pub config_index_by_name: *mut uword,
    pub logger: vlib_log_class_t,
    pub vlib_main: *mut vlib_main_t,
}
impl Default for plugin_main_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
unsafe extern "C" {
    pub static mut vlib_plugin_main: plugin_main_t;
}
unsafe extern "C" {
    pub fn vlib_plugin_config(
        vm: *mut vlib_main_t,
        input: *mut unformat_input_t,
    ) -> *mut clib_error_t;
}
unsafe extern "C" {
    pub fn vlib_plugin_early_init(vm: *mut vlib_main_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn vlib_load_new_plugins(
        pm: *mut plugin_main_t,
        from_early_init: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn vlib_get_plugin_symbol(
        plugin_name: *const ::std::os::raw::c_char,
        symbol_name: *const ::std::os::raw::c_char,
    ) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
    pub fn vlib_get_vat_plugin_path() -> *mut u8_;
}
pub const ip_dscp_t__IP_DSCP_CS0: ip_dscp_t_ = 0;
pub const ip_dscp_t__IP_DSCP_CS1: ip_dscp_t_ = 8;
pub const ip_dscp_t__IP_DSCP_AF11: ip_dscp_t_ = 10;
pub const ip_dscp_t__IP_DSCP_AF12: ip_dscp_t_ = 12;
pub const ip_dscp_t__IP_DSCP_AF13: ip_dscp_t_ = 14;
pub const ip_dscp_t__IP_DSCP_CS2: ip_dscp_t_ = 16;
pub const ip_dscp_t__IP_DSCP_AF21: ip_dscp_t_ = 18;
pub const ip_dscp_t__IP_DSCP_AF22: ip_dscp_t_ = 20;
pub const ip_dscp_t__IP_DSCP_AF23: ip_dscp_t_ = 22;
pub const ip_dscp_t__IP_DSCP_CS3: ip_dscp_t_ = 24;
pub const ip_dscp_t__IP_DSCP_AF31: ip_dscp_t_ = 26;
pub const ip_dscp_t__IP_DSCP_AF32: ip_dscp_t_ = 28;
pub const ip_dscp_t__IP_DSCP_AF33: ip_dscp_t_ = 30;
pub const ip_dscp_t__IP_DSCP_CS4: ip_dscp_t_ = 32;
pub const ip_dscp_t__IP_DSCP_AF41: ip_dscp_t_ = 34;
pub const ip_dscp_t__IP_DSCP_AF42: ip_dscp_t_ = 36;
pub const ip_dscp_t__IP_DSCP_AF43: ip_dscp_t_ = 38;
pub const ip_dscp_t__IP_DSCP_CS5: ip_dscp_t_ = 40;
pub const ip_dscp_t__IP_DSCP_EF: ip_dscp_t_ = 46;
pub const ip_dscp_t__IP_DSCP_CS6: ip_dscp_t_ = 48;
pub const ip_dscp_t__IP_DSCP_CS7: ip_dscp_t_ = 50;
pub type ip_dscp_t_ = ::std::os::raw::c_uchar;
pub use self::ip_dscp_t_ as ip_dscp_t;
#[repr(C)]
#[derive(Copy, Clone)]
pub union ip4_address_t {
    pub data: [u8_; 4usize],
    pub data_u32: u32_,
    pub as_u8: [u8_; 4usize],
    pub as_u16: [u16_; 2usize],
    pub as_u32: u32_,
}
impl Default for ip4_address_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct ip4_address_pair_t {
    pub src: ip4_address_t,
    pub dst: ip4_address_t,
}
impl Default for ip4_address_pair_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union ip4_header_t {
    pub __bindgen_anon_1: ip4_header_t__bindgen_ty_1,
    pub __bindgen_anon_2: ip4_header_t__bindgen_ty_2,
    pub __bindgen_anon_3: ip4_header_t__bindgen_ty_3,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct ip4_header_t__bindgen_ty_1 {
    pub ip_version_and_header_length: u8_,
    pub tos: ip_dscp_t,
    pub length: u16_,
    pub fragment_id: u16_,
    pub flags_and_fragment_offset: u16_,
    pub ttl: u8_,
    pub protocol: u8_,
    pub checksum: u16_,
    pub __bindgen_anon_1: ip4_header_t__bindgen_ty_1__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union ip4_header_t__bindgen_ty_1__bindgen_ty_1 {
    pub __bindgen_anon_1: ip4_header_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1,
    pub address_pair: ip4_address_pair_t,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct ip4_header_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {
    pub src_address: ip4_address_t,
    pub dst_address: ip4_address_t,
}
impl Default for ip4_header_t__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
impl Default for ip4_header_t__bindgen_ty_1__bindgen_ty_1 {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
impl Default for ip4_header_t__bindgen_ty_1 {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C, packed)]
#[derive(Debug, Default, Copy, Clone)]
pub struct ip4_header_t__bindgen_ty_2 {
    pub checksum_data_64: [u64_; 2usize],
    pub checksum_data_64_32: [u32_; 1usize],
}
#[repr(C, packed)]
#[derive(Debug, Default, Copy, Clone)]
pub struct ip4_header_t__bindgen_ty_3 {
    pub checksum_data_32: [u32_; 5usize],
}
impl Default for ip4_header_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
pub struct ip6_header_t {
    pub ip_version_traffic_class_and_flow_label: u32_,
    pub payload_length: u16_,
    pub protocol: u8_,
    pub hop_limit: u8_,
    pub src_address: ip6_address_t,
    pub dst_address: ip6_address_t,
}
impl Default for ip6_header_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct svm_region_ {
    pub version: uword,
    pub mutex: pthread_mutex_t,
    pub condvar: pthread_cond_t,
    pub mutex_owner_pid: ::std::os::raw::c_int,
    pub mutex_owner_tag: ::std::os::raw::c_int,
    pub flags: uword,
    pub virtual_base: uword,
    pub virtual_size: uword,
    pub region_heap: *mut ::std::os::raw::c_void,
    pub data_base: *mut ::std::os::raw::c_void,
    pub data_heap: *mut ::std::os::raw::c_void,
    pub user_ctx: *mut ::std::os::raw::c_void,
    pub bitmap_size: uword,
    pub bitmap: *mut uword,
    pub region_name: *mut ::std::os::raw::c_char,
    pub backing_file: *mut ::std::os::raw::c_char,
    pub filenames: *mut *mut ::std::os::raw::c_char,
    pub client_pids: *mut uword,
}
impl Default for svm_region_ {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type svm_region_t = svm_region_;
#[repr(C)]
pub struct _svm_queue<FAM: ?Sized = [::std::os::raw::c_char; 0]> {
    pub mutex: pthread_mutex_t,
    pub condvar: pthread_cond_t,
    pub head: ::std::os::raw::c_int,
    pub tail: ::std::os::raw::c_int,
    pub cursize: ::std::os::raw::c_int,
    pub maxsize: ::std::os::raw::c_int,
    pub elsize: ::std::os::raw::c_int,
    pub consumer_pid: ::std::os::raw::c_int,
    pub producer_evtfd: ::std::os::raw::c_int,
    pub consumer_evtfd: ::std::os::raw::c_int,
    pub data: FAM,
}
impl _svm_queue<[::std::os::raw::c_char]> {}
impl _svm_queue<[::std::os::raw::c_char; 0]> {}
impl Default for _svm_queue<[::std::os::raw::c_char; 0]> {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type svm_queue_t = _svm_queue;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct cJSON {
    pub next: *mut cJSON,
    pub prev: *mut cJSON,
    pub child: *mut cJSON,
    pub type_: ::std::os::raw::c_int,
    pub valuestring: *mut ::std::os::raw::c_char,
    pub valueint: ::std::os::raw::c_int,
    pub valuedouble: f64,
    pub string: *mut ::std::os::raw::c_char,
}
impl Default for cJSON {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub const vl_registration_type_t_REGISTRATION_TYPE_FREE: vl_registration_type_t = 0;
pub const vl_registration_type_t_REGISTRATION_TYPE_SHMEM: vl_registration_type_t = 1;
pub const vl_registration_type_t_REGISTRATION_TYPE_SOCKET_LISTEN: vl_registration_type_t = 2;
pub const vl_registration_type_t_REGISTRATION_TYPE_SOCKET_SERVER: vl_registration_type_t = 3;
pub const vl_registration_type_t_REGISTRATION_TYPE_SOCKET_CLIENT: vl_registration_type_t = 4;
pub type vl_registration_type_t = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct vl_api_registration_ {
    pub registration_type: vl_registration_type_t,
    pub vl_api_registration_pool_index: u32_,
    pub name: *mut u8_,
    pub last_heard: f64_,
    pub last_queue_head: ::std::os::raw::c_int,
    pub unanswered_pings: ::std::os::raw::c_int,
    pub is_being_removed: ::std::os::raw::c_int,
    pub vl_input_queue: *mut svm_queue_t,
    pub vlib_rp: *mut svm_region_t,
    pub shmem_hdr: *mut ::std::os::raw::c_void,
    pub clib_file_index: u32_,
    pub unprocessed_input: *mut i8_,
    pub unprocessed_msg_length: u32_,
    pub output_vector: *mut u8_,
    pub additional_fds_to_close: *mut ::std::os::raw::c_int,
    pub server_handle: u32_,
    pub server_index: u32_,
    pub keepalive: bool,
}
impl Default for vl_api_registration_ {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type vl_api_registration_t = vl_api_registration_;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct vl_api_trace_t {
    pub endian: u8_,
    pub enabled: u8_,
    pub wrapped: u8_,
    pub pad: u8_,
    pub nitems: u32_,
    pub curindex: u32_,
    pub traces: *mut *mut u8_,
}
impl Default for vl_api_trace_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub const vl_api_trace_which_t_VL_API_TRACE_TX: vl_api_trace_which_t = 0;
pub const vl_api_trace_which_t_VL_API_TRACE_RX: vl_api_trace_which_t = 1;
pub type vl_api_trace_which_t = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct vl_api_msg_range_t {
    pub name: *mut u8_,
    pub first_msg_id: u16_,
    pub last_msg_id: u16_,
}
impl Default for vl_api_msg_range_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct vl_msg_api_msg_config_t {
    pub id: ::std::os::raw::c_int,
    pub name: *mut ::std::os::raw::c_char,
    pub crc: u32_,
    pub handler: *mut ::std::os::raw::c_void,
    pub cleanup: *mut ::std::os::raw::c_void,
    pub endian: *mut ::std::os::raw::c_void,
    pub format_fn: *mut ::std::os::raw::c_void,
    pub tojson: *mut ::std::os::raw::c_void,
    pub fromjson: *mut ::std::os::raw::c_void,
    pub calc_size: *mut ::std::os::raw::c_void,
    pub size: ::std::os::raw::c_int,
    pub _bitfield_align_1: [u8; 0],
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
    pub __bindgen_padding_0: [u8; 3usize],
}
impl Default for vl_msg_api_msg_config_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
impl vl_msg_api_msg_config_t {
    #[inline]
    pub fn traced(&self) -> u32_ {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
    }
    #[inline]
    pub fn set_traced(&mut self, val: u32_) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(0usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub unsafe fn traced_raw(this: *const Self) -> u32_ {
        unsafe {
            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
                ::std::ptr::addr_of!((*this)._bitfield_1),
                0usize,
                1u8,
            ) as u32)
        }
    }
    #[inline]
    pub unsafe fn set_traced_raw(this: *mut Self, val: u32_) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
                0usize,
                1u8,
                val as u64,
            )
        }
    }
    #[inline]
    pub fn replay(&self) -> u32_ {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
    }
    #[inline]
    pub fn set_replay(&mut self, val: u32_) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(1usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub unsafe fn replay_raw(this: *const Self) -> u32_ {
        unsafe {
            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
                ::std::ptr::addr_of!((*this)._bitfield_1),
                1usize,
                1u8,
            ) as u32)
        }
    }
    #[inline]
    pub unsafe fn set_replay_raw(this: *mut Self, val: u32_) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
                1usize,
                1u8,
                val as u64,
            )
        }
    }
    #[inline]
    pub fn message_bounce(&self) -> u32_ {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
    }
    #[inline]
    pub fn set_message_bounce(&mut self, val: u32_) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(2usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub unsafe fn message_bounce_raw(this: *const Self) -> u32_ {
        unsafe {
            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
                ::std::ptr::addr_of!((*this)._bitfield_1),
                2usize,
                1u8,
            ) as u32)
        }
    }
    #[inline]
    pub unsafe fn set_message_bounce_raw(this: *mut Self, val: u32_) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
                2usize,
                1u8,
                val as u64,
            )
        }
    }
    #[inline]
    pub fn is_mp_safe(&self) -> u32_ {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
    }
    #[inline]
    pub fn set_is_mp_safe(&mut self, val: u32_) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(3usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub unsafe fn is_mp_safe_raw(this: *const Self) -> u32_ {
        unsafe {
            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
                ::std::ptr::addr_of!((*this)._bitfield_1),
                3usize,
                1u8,
            ) as u32)
        }
    }
    #[inline]
    pub unsafe fn set_is_mp_safe_raw(this: *mut Self, val: u32_) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
                3usize,
                1u8,
                val as u64,
            )
        }
    }
    #[inline]
    pub fn is_autoendian(&self) -> u32_ {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) }
    }
    #[inline]
    pub fn set_is_autoendian(&mut self, val: u32_) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(4usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub unsafe fn is_autoendian_raw(this: *const Self) -> u32_ {
        unsafe {
            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
                ::std::ptr::addr_of!((*this)._bitfield_1),
                4usize,
                1u8,
            ) as u32)
        }
    }
    #[inline]
    pub unsafe fn set_is_autoendian_raw(this: *mut Self, val: u32_) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
                4usize,
                1u8,
                val as u64,
            )
        }
    }
    #[inline]
    pub fn new_bitfield_1(
        traced: u32_,
        replay: u32_,
        message_bounce: u32_,
        is_mp_safe: u32_,
        is_autoendian: u32_,
    ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
        __bindgen_bitfield_unit.set(0usize, 1u8, {
            let traced: u32 = unsafe { ::std::mem::transmute(traced) };
            traced as u64
        });
        __bindgen_bitfield_unit.set(1usize, 1u8, {
            let replay: u32 = unsafe { ::std::mem::transmute(replay) };
            replay as u64
        });
        __bindgen_bitfield_unit.set(2usize, 1u8, {
            let message_bounce: u32 = unsafe { ::std::mem::transmute(message_bounce) };
            message_bounce as u64
        });
        __bindgen_bitfield_unit.set(3usize, 1u8, {
            let is_mp_safe: u32 = unsafe { ::std::mem::transmute(is_mp_safe) };
            is_mp_safe as u64
        });
        __bindgen_bitfield_unit.set(4usize, 1u8, {
            let is_autoendian: u32 = unsafe { ::std::mem::transmute(is_autoendian) };
            is_autoendian as u64
        });
        __bindgen_bitfield_unit
    }
}
#[repr(C)]
#[derive(Debug)]
pub struct msgbuf_<FAM: ?Sized = [u8_; 0]> {
    pub q: *mut svm_queue_t,
    pub data_len: u32_,
    pub gc_mark_timestamp: u32_,
    pub data: FAM,
}
impl msgbuf_<[u8_]> {}
impl msgbuf_<[u8_; 0]> {}
impl Default for msgbuf_<[u8_; 0]> {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type msgbuf_t = msgbuf_;
unsafe extern "C" {
    pub fn vl_msg_api_handler(the_msg: *mut ::std::os::raw::c_void, msg_len: uword);
}
unsafe extern "C" {
    pub fn vl_msg_api_handler_no_free(the_msg: *mut ::std::os::raw::c_void, msg_len: uword);
}
unsafe extern "C" {
    pub fn vl_msg_api_handler_no_trace_no_free(
        the_msg: *mut ::std::os::raw::c_void,
        msg_len: uword,
    );
}
unsafe extern "C" {
    pub fn vl_msg_api_trace_only(the_msg: *mut ::std::os::raw::c_void, msg_len: uword);
}
unsafe extern "C" {
    pub fn vl_msg_api_cleanup_handler(the_msg: *mut ::std::os::raw::c_void);
}
unsafe extern "C" {
    pub fn vl_msg_api_replay_handler(the_msg: *mut ::std::os::raw::c_void);
}
unsafe extern "C" {
    pub fn vl_msg_api_socket_handler(the_msg: *mut ::std::os::raw::c_void, msg_len: uword);
}
unsafe extern "C" {
    pub fn vl_msg_api_clean_handlers(msg_id: ::std::os::raw::c_int);
}
unsafe extern "C" {
    pub fn vl_msg_api_config(arg1: *mut vl_msg_api_msg_config_t);
}
unsafe extern "C" {
    pub fn vl_msg_api_set_cleanup_handler(
        msg_id: ::std::os::raw::c_int,
        fp: *mut ::std::os::raw::c_void,
    );
}
unsafe extern "C" {
    pub fn vl_msg_api_queue_handler(q: *mut svm_queue_t);
}
unsafe extern "C" {
    pub fn vl_msg_api_barrier_sync();
}
unsafe extern "C" {
    pub fn vl_msg_api_barrier_release();
}
unsafe extern "C" {
    pub fn vl_msg_api_free(arg1: *mut ::std::os::raw::c_void);
}
unsafe extern "C" {
    pub fn vl_msg_api_increment_missing_client_counter();
}
unsafe extern "C" {
    pub fn vl_msg_api_post_mortem_dump();
}
unsafe extern "C" {
    pub fn vl_msg_api_post_mortem_dump_enable_disable(enable: ::std::os::raw::c_int);
}
unsafe extern "C" {
    pub fn vl_msg_api_register_pd_handler(
        handler: *mut ::std::os::raw::c_void,
        msg_id_host_byte_order: u16_,
    );
}
unsafe extern "C" {
    pub fn vl_msg_api_set_first_available_msg_id(first_avail: u16_);
}
unsafe extern "C" {
    pub fn vl_msg_api_get_msg_ids(
        name: *const ::std::os::raw::c_char,
        n: ::std::os::raw::c_int,
    ) -> u16_;
}
unsafe extern "C" {
    pub fn vl_msg_api_get_msg_index(name_and_crc: *mut u8_) -> u32_;
}
unsafe extern "C" {
    pub fn vl_msg_push_heap() -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
    pub fn vl_msg_push_heap_w_region(vlib_rp: *mut svm_region_t) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
    pub fn vl_msg_pop_heap(oldheap: *mut ::std::os::raw::c_void);
}
unsafe extern "C" {
    pub fn vl_msg_pop_heap_w_region(
        vlib_rp: *mut svm_region_t,
        oldheap: *mut ::std::os::raw::c_void,
    );
}
pub type vl_msg_api_init_function_t =
    ::std::option::Option<unsafe extern "C" fn(client_index: u32_) -> *mut clib_error_t>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _vl_msg_api_init_function_list_elt {
    pub next_init_function: *mut _vl_msg_api_init_function_list_elt,
    pub f: vl_msg_api_init_function_t,
}
impl Default for _vl_msg_api_init_function_list_elt {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type _vl_msg_api_function_list_elt_t = _vl_msg_api_init_function_list_elt;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct api_version_t {
    pub major: u32_,
    pub minor: u32_,
    pub patch: u32_,
    pub name: [::std::os::raw::c_char; 64usize],
}
impl Default for api_version_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct vl_api_msg_data_t {
    pub handler: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
    pub cleanup_handler:
        ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
    pub name: *const ::std::os::raw::c_char,
    pub format_fn: format_function_t,
    pub tojson_handler: ::std::option::Option<
        unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> *mut cJSON,
    >,
    pub fromjson_handler: ::std::option::Option<
        unsafe extern "C" fn(
            arg1: *mut cJSON,
            arg2: *mut ::std::os::raw::c_int,
        ) -> *mut ::std::os::raw::c_void,
    >,
    pub endian_handler: ::std::option::Option<
        unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void, to_net: bool),
    >,
    pub calc_size_func:
        ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> uword>,
    pub trace_size: ::std::os::raw::c_int,
    pub _bitfield_align_1: [u8; 0],
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
    pub __bindgen_padding_0: [u8; 3usize],
}
impl Default for vl_api_msg_data_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
impl vl_api_msg_data_t {
    #[inline]
    pub fn bounce(&self) -> u8_ {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u8) }
    }
    #[inline]
    pub fn set_bounce(&mut self, val: u8_) {
        unsafe {
            let val: u8 = ::std::mem::transmute(val);
            self._bitfield_1.set(0usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub unsafe fn bounce_raw(this: *const Self) -> u8_ {
        unsafe {
            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
                ::std::ptr::addr_of!((*this)._bitfield_1),
                0usize,
                1u8,
            ) as u8)
        }
    }
    #[inline]
    pub unsafe fn set_bounce_raw(this: *mut Self, val: u8_) {
        unsafe {
            let val: u8 = ::std::mem::transmute(val);
            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
                0usize,
                1u8,
                val as u64,
            )
        }
    }
    #[inline]
    pub fn is_mp_safe(&self) -> u8_ {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u8) }
    }
    #[inline]
    pub fn set_is_mp_safe(&mut self, val: u8_) {
        unsafe {
            let val: u8 = ::std::mem::transmute(val);
            self._bitfield_1.set(1usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub unsafe fn is_mp_safe_raw(this: *const Self) -> u8_ {
        unsafe {
            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
                ::std::ptr::addr_of!((*this)._bitfield_1),
                1usize,
                1u8,
            ) as u8)
        }
    }
    #[inline]
    pub unsafe fn set_is_mp_safe_raw(this: *mut Self, val: u8_) {
        unsafe {
            let val: u8 = ::std::mem::transmute(val);
            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
                1usize,
                1u8,
                val as u64,
            )
        }
    }
    #[inline]
    pub fn is_autoendian(&self) -> u8_ {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u8) }
    }
    #[inline]
    pub fn set_is_autoendian(&mut self, val: u8_) {
        unsafe {
            let val: u8 = ::std::mem::transmute(val);
            self._bitfield_1.set(2usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub unsafe fn is_autoendian_raw(this: *const Self) -> u8_ {
        unsafe {
            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
                ::std::ptr::addr_of!((*this)._bitfield_1),
                2usize,
                1u8,
            ) as u8)
        }
    }
    #[inline]
    pub unsafe fn set_is_autoendian_raw(this: *mut Self, val: u8_) {
        unsafe {
            let val: u8 = ::std::mem::transmute(val);
            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
                2usize,
                1u8,
                val as u64,
            )
        }
    }
    #[inline]
    pub fn trace_enable(&self) -> u8_ {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u8) }
    }
    #[inline]
    pub fn set_trace_enable(&mut self, val: u8_) {
        unsafe {
            let val: u8 = ::std::mem::transmute(val);
            self._bitfield_1.set(3usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub unsafe fn trace_enable_raw(this: *const Self) -> u8_ {
        unsafe {
            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
                ::std::ptr::addr_of!((*this)._bitfield_1),
                3usize,
                1u8,
            ) as u8)
        }
    }
    #[inline]
    pub unsafe fn set_trace_enable_raw(this: *mut Self, val: u8_) {
        unsafe {
            let val: u8 = ::std::mem::transmute(val);
            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
                3usize,
                1u8,
                val as u64,
            )
        }
    }
    #[inline]
    pub fn replay_allowed(&self) -> u8_ {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u8) }
    }
    #[inline]
    pub fn set_replay_allowed(&mut self, val: u8_) {
        unsafe {
            let val: u8 = ::std::mem::transmute(val);
            self._bitfield_1.set(4usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub unsafe fn replay_allowed_raw(this: *const Self) -> u8_ {
        unsafe {
            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
                ::std::ptr::addr_of!((*this)._bitfield_1),
                4usize,
                1u8,
            ) as u8)
        }
    }
    #[inline]
    pub unsafe fn set_replay_allowed_raw(this: *mut Self, val: u8_) {
        unsafe {
            let val: u8 = ::std::mem::transmute(val);
            <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
                4usize,
                1u8,
                val as u64,
            )
        }
    }
    #[inline]
    pub fn new_bitfield_1(
        bounce: u8_,
        is_mp_safe: u8_,
        is_autoendian: u8_,
        trace_enable: u8_,
        replay_allowed: u8_,
    ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
        __bindgen_bitfield_unit.set(0usize, 1u8, {
            let bounce: u8 = unsafe { ::std::mem::transmute(bounce) };
            bounce as u64
        });
        __bindgen_bitfield_unit.set(1usize, 1u8, {
            let is_mp_safe: u8 = unsafe { ::std::mem::transmute(is_mp_safe) };
            is_mp_safe as u64
        });
        __bindgen_bitfield_unit.set(2usize, 1u8, {
            let is_autoendian: u8 = unsafe { ::std::mem::transmute(is_autoendian) };
            is_autoendian as u64
        });
        __bindgen_bitfield_unit.set(3usize, 1u8, {
            let trace_enable: u8 = unsafe { ::std::mem::transmute(trace_enable) };
            trace_enable as u64
        });
        __bindgen_bitfield_unit.set(4usize, 1u8, {
            let replay_allowed: u8 = unsafe { ::std::mem::transmute(replay_allowed) };
            replay_allowed as u64
        });
        __bindgen_bitfield_unit
    }
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct api_main_t {
    pub msg_data: *mut vl_api_msg_data_t,
    pub msg_id_by_name: *mut uword,
    pub arings: *mut ring_alloc_,
    pub ring_misses: u32_,
    pub garbage_collects: u32_,
    pub missing_clients: u32_,
    pub rx_trace: *mut vl_api_trace_t,
    pub tx_trace: *mut vl_api_trace_t,
    pub msg_print_flag: ::std::os::raw::c_int,
    pub our_pid: ::std::os::raw::c_int,
    pub vlib_rp: *mut svm_region_t,
    pub vlib_primary_rp: *mut svm_region_t,
    pub vlib_private_rps: *mut *mut svm_region_t,
    pub mapped_shmem_regions: *mut *mut svm_region_t,
    pub shmem_hdr: *mut vl_shmem_hdr_,
    pub vl_clients: *mut *mut vl_api_registration_t,
    pub serialized_message_table_in_shmem: *mut u8_,
    pub first_available_msg_id: u16_,
    pub msg_range_by_name: *mut uword,
    pub msg_ranges: *mut vl_api_msg_range_t,
    pub api_uid: ::std::os::raw::c_int,
    pub api_gid: ::std::os::raw::c_int,
    pub global_baseva: u64_,
    pub global_size: u64_,
    pub api_size: u64_,
    pub global_pvt_heap_size: u64_,
    pub api_pvt_heap_size: u64_,
    pub vl_input_queue: *mut svm_queue_t,
    pub my_client_index: ::std::os::raw::c_int,
    pub my_registration: *mut vl_api_registration_t,
    pub vlib_input_queue_length: u32_,
    pub msg_index_by_name_and_crc: *mut uword,
    pub json_api_repr: *mut *mut u8_,
    pub api_version_list: *mut api_version_t,
    pub region_name: *const ::std::os::raw::c_char,
    pub root_path: *const ::std::os::raw::c_char,
    pub replay_in_progress: ::std::os::raw::c_int,
    pub save_msg_table_filename: *mut u8_,
    pub reaper_function_registrations: *mut _vl_msg_api_function_list_elt_t,
    pub rx_thread_handle: pthread_t,
    pub elog_main: *mut elog_main_t,
    pub elog_trace_api_messages: ::std::os::raw::c_int,
    pub perf_counter_cbs: *mut ::std::option::Option<
        unsafe extern "C" fn(
            arg1: *mut api_main_t,
            id: u32_,
            before_or_after: ::std::os::raw::c_int,
        ),
    >,
    pub perf_counter_cbs_tmp: *mut ::std::option::Option<
        unsafe extern "C" fn(
            arg1: *mut api_main_t,
            id: u32_,
            before_or_after: ::std::os::raw::c_int,
        ),
    >,
}
impl Default for api_main_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
unsafe extern "C" {
    pub static mut my_api_main: *mut api_main_t;
}
#[repr(C, packed)]
#[derive(Debug, Default, Copy, Clone)]
pub struct vl_api_trace_file_header_t {
    pub nitems: u32_,
    pub msgtbl_size: u32_,
    pub wrapped: u8_,
}
unsafe extern "C" {
    pub fn vl_msg_api_trace_save(
        am: *mut api_main_t,
        which: vl_api_trace_which_t,
        fp: *mut FILE,
        is_json: u8_,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn vl_msg_api_rx_trace_enabled(am: *mut api_main_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn vl_msg_api_tx_trace_enabled(am: *mut api_main_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn vl_msg_api_trace(
        am: *mut api_main_t,
        tp: *mut vl_api_trace_t,
        msg: *mut ::std::os::raw::c_void,
    );
}
unsafe extern "C" {
    pub fn vl_msg_api_trace_onoff(
        am: *mut api_main_t,
        which: vl_api_trace_which_t,
        onoff: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn vl_msg_api_trace_free(
        am: *mut api_main_t,
        which: vl_api_trace_which_t,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn vl_msg_api_trace_configure(
        am: *mut api_main_t,
        which: vl_api_trace_which_t,
        nitems: u32_,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn vl_msg_api_max_length(mp: *mut ::std::os::raw::c_void) -> u32_;
}
unsafe extern "C" {
    pub fn vl_msg_api_trace_get(
        am: *mut api_main_t,
        which: vl_api_trace_which_t,
    ) -> *mut vl_api_trace_t;
}
unsafe extern "C" {
    pub fn vl_msg_api_add_msg_name_crc(
        am: *mut api_main_t,
        string: *const ::std::os::raw::c_char,
        id: u32_,
    );
}
unsafe extern "C" {
    pub fn vl_msg_api_add_version(
        am: *mut api_main_t,
        string: *const ::std::os::raw::c_char,
        major: u32_,
        minor: u32_,
        patch: u32_,
    );
}
unsafe extern "C" {
    pub fn vlib_node_serialize(
        vm: *mut vlib_main_t,
        node_dups: *mut *mut *mut vlib_node_t,
        vector: *mut u8_,
        include_nexts: ::std::os::raw::c_int,
        include_stats: ::std::os::raw::c_int,
    ) -> *mut u8_;
}
unsafe extern "C" {
    pub fn vlib_node_unserialize(vector: *mut u8_) -> *mut *mut *mut vlib_node_t;
}
unsafe extern "C" {
    pub fn vl_msg_api_get_msg_length(msg_arg: *mut ::std::os::raw::c_void) -> u32_;
}
pub type vl_msg_traverse_trace_fn = ::std::option::Option<
    unsafe extern "C" fn(
        arg1: *mut u8_,
        arg2: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int,
>;
unsafe extern "C" {
    pub fn vl_msg_traverse_trace(
        tp: *mut vl_api_trace_t,
        fn_: vl_msg_traverse_trace_fn,
        ctx: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn format_vl_api_msg_text(s: *mut u8_, args: *mut va_list) -> *mut u8_;
}
unsafe extern "C" {
    pub fn format_vl_api_msg_json(s: *mut u8_, args: *mut va_list) -> *mut u8_;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ring_alloc_ {
    pub rp: *mut svm_queue_t,
    pub size: u16_,
    pub nitems: u16_,
    pub hits: u32_,
    pub misses: u32_,
}
impl Default for ring_alloc_ {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type ring_alloc_t = ring_alloc_;
pub const vl_api_shm_config_type_t_VL_API_VLIB_RING: vl_api_shm_config_type_t = 0;
pub const vl_api_shm_config_type_t_VL_API_CLIENT_RING: vl_api_shm_config_type_t = 1;
pub const vl_api_shm_config_type_t_VL_API_QUEUE: vl_api_shm_config_type_t = 2;
pub type vl_api_shm_config_type_t = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct vl_api_shm_elem_config_ {
    pub type_: u8_,
    pub _pad: u8_,
    pub count: u16_,
    pub size: u32_,
}
pub type vl_api_shm_elem_config_t = vl_api_shm_elem_config_;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct vl_shmem_hdr_ {
    pub version: ::std::os::raw::c_int,
    pub vl_pid: ::std::os::raw::c_int,
    pub vl_input_queue: *mut svm_queue_t,
    pub vl_rings: *mut ring_alloc_t,
    pub client_rings: *mut ring_alloc_t,
    pub application_restarts: u32_,
    pub restart_reclaims: u32_,
    pub garbage_collects: u32_,
    pub clib_file_index: u32_,
}
impl Default for vl_shmem_hdr_ {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type vl_shmem_hdr_t = vl_shmem_hdr_;
unsafe extern "C" {
    pub fn vl_msg_api_alloc(nbytes: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
    pub fn vl_msg_api_alloc_zero(nbytes: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
    pub fn vl_msg_api_alloc_or_null(nbytes: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
    pub fn vl_msg_api_alloc_as_if_client(
        nbytes: ::std::os::raw::c_int,
    ) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
    pub fn vl_msg_api_alloc_zero_as_if_client(
        nbytes: ::std::os::raw::c_int,
    ) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
    pub fn vl_msg_api_alloc_as_if_client_or_null(
        nbytes: ::std::os::raw::c_int,
    ) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
    pub fn vl_mem_api_alloc_as_if_client_w_reg(
        reg: *mut vl_api_registration_t,
        nbytes: ::std::os::raw::c_int,
    ) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
    pub fn vl_msg_api_free_w_region(vlib_rp: *mut svm_region_t, a: *mut ::std::os::raw::c_void);
}
unsafe extern "C" {
    pub fn vl_map_shmem(
        region_name: *const ::std::os::raw::c_char,
        is_vlib: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn vl_unmap_shmem();
}
unsafe extern "C" {
    pub fn vl_unmap_shmem_client();
}
unsafe extern "C" {
    pub fn vl_register_mapped_shmem_region(rp: *mut svm_region_t);
}
unsafe extern "C" {
    pub fn vl_msg_api_send_shmem(q: *mut svm_queue_t, elem: *mut u8_);
}
unsafe extern "C" {
    pub fn vl_mem_api_can_send(q: *mut svm_queue_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn vl_set_memory_region_name(name: *const ::std::os::raw::c_char);
}
unsafe extern "C" {
    pub fn vl_set_memory_root_path(root_path: *const ::std::os::raw::c_char);
}
unsafe extern "C" {
    pub fn vl_set_memory_uid(uid: ::std::os::raw::c_int);
}
unsafe extern "C" {
    pub fn vl_set_memory_gid(gid: ::std::os::raw::c_int);
}
unsafe extern "C" {
    pub fn vl_set_global_memory_baseva(baseva: u64_);
}
unsafe extern "C" {
    pub fn vl_set_global_memory_size(size: u64_);
}
unsafe extern "C" {
    pub fn vl_set_api_memory_size(size: u64_);
}
unsafe extern "C" {
    pub fn vl_set_global_pvt_heap_size(size: u64_);
}
unsafe extern "C" {
    pub fn vl_set_api_pvt_heap_size(size: u64_);
}
unsafe extern "C" {
    pub fn vl_init_shmem(
        vlib_rp: *mut svm_region_t,
        config: *mut vl_api_shm_elem_config_t,
        is_vlib: ::std::os::raw::c_int,
        is_private_region: ::std::os::raw::c_int,
    );
}
unsafe extern "C" {
    pub fn vl_api_rpc_call_main_thread(
        fp: *mut ::std::os::raw::c_void,
        data: *mut u8_,
        data_length: u32_,
    );
}
unsafe extern "C" {
    pub fn vl_api_force_rpc_call_main_thread(
        fp: *mut ::std::os::raw::c_void,
        data: *mut u8_,
        data_length: u32_,
    );
}
unsafe extern "C" {
    pub fn vl_client_get_first_plugin_msg_id(plugin_name: *const ::std::os::raw::c_char) -> u16_;
}
unsafe extern "C" {
    pub fn vl_api_serialize_message_table(am: *mut api_main_t, vector: *mut u8_) -> *mut u8_;
}
unsafe extern "C" {
    pub static mut vl_api_clnt_node: vlib_node_registration_t;
}
unsafe extern "C" {
    pub static mut vl_api_queue_cursizes: *mut *mut ::std::os::raw::c_int;
}
pub const vl_api_clnt_process_events_QUEUE_SIGNAL_EVENT: vl_api_clnt_process_events = 1;
pub const vl_api_clnt_process_events_SOCKET_READ_EVENT: vl_api_clnt_process_events = 2;
pub type vl_api_clnt_process_events = ::std::os::raw::c_uint;
pub use self::vl_api_clnt_process_events as vl_api_clnt_process_events_t;
pub const histogram_index_t_SLEEP_400_US: histogram_index_t = 0;
pub const histogram_index_t_SLEEP_200_US: histogram_index_t = 1;
pub const histogram_index_t_SLEEP_100_US: histogram_index_t = 2;
pub const histogram_index_t_SLEEP_10_US: histogram_index_t = 3;
pub const histogram_index_t_SLEEP_N_BUCKETS: histogram_index_t = 4;
pub type histogram_index_t = ::std::os::raw::c_uint;
unsafe extern "C" {
    pub static mut vector_rate_histogram: [u64_; 0usize];
}
unsafe extern "C" {
    pub fn sockclnt_get_registration(index: u32_) -> *mut vl_api_registration_t;
}
unsafe extern "C" {
    pub fn socksvr_add_pending_output(
        uf: *mut clib_file,
        cf: *mut vl_api_registration_,
        buffer: *mut u8_,
        buffer_bytes: uword,
    );
}
unsafe extern "C" {
    pub fn vl_socket_process_msg(
        uf: *mut clib_file,
        rp: *mut vl_api_registration_,
        input_v: *mut i8_,
    );
}
unsafe extern "C" {
    pub fn sockclnt_open_index(
        client_name: *mut ::std::os::raw::c_char,
        hostname: *mut ::std::os::raw::c_char,
        port: ::std::os::raw::c_int,
    ) -> u32_;
}
unsafe extern "C" {
    pub fn sockclnt_close_index(index: u32_);
}
unsafe extern "C" {
    pub fn vl_client_msg_api_send(cm: *mut vl_api_registration_t, elem: *mut u8_);
}
unsafe extern "C" {
    pub fn vlib_helper_get_global_main() -> *mut vlib_global_main_t;
}
unsafe extern "C" {
    pub fn vlib_helper_remove_node_from_registrations(
        vgm: *mut vlib_global_main_t,
        node: *mut vlib_node_registration_t,
    );
}
unsafe extern "C" {
    pub fn vlib_helper_remove_feature_from_registrations(
        fm: *mut vnet_feature_main_t,
        r: *mut vnet_feature_registration_t,
    );
}
unsafe extern "C" {
    pub fn vlib_helper_remove_cli_command(cm: *mut vlib_cli_main_t, x: *mut vlib_cli_command_t);
}
unsafe extern "C" {
    pub fn vlib_helper_buffer_alloc(
        vm: *mut vlib_main_t,
        buffers: *mut u32_,
        n_buffers: u32_,
    ) -> u32_;
}
unsafe extern "C" {
    pub fn vlib_helper_buffer_free(vm: *mut vlib_main_t, buffers: *mut u32_, n_buffers: u32_);
}
unsafe extern "C" {
    pub fn vlib_helper_format_vnet_sw_if_index_name(s: *mut u8_, ...) -> *mut u8_;
}
unsafe extern "C" {
    pub fn vlib_helper_unformat_vnet_sw_interface(input: *mut unformat_input_t, ...) -> uword;
}
unsafe extern "C" {
    pub fn vlib_helper_format_ip4_header(s: *mut u8_, ...) -> *mut u8_;
}
unsafe extern "C" {
    pub fn vlib_helper_format_ip6_header(s: *mut u8_, ...) -> *mut u8_;
}
unsafe extern "C" {
    pub fn vlib_helper_unformat_get_input(input: *mut unformat_input_t) -> uword;
}
unsafe extern "C" {
    pub fn vlib_helper_unformat_free(input: *mut unformat_input_t);
}
unsafe extern "C" {
    pub fn vl_api_helper_client_index_to_registration(index: u32_) -> *mut vl_api_registration_t;
}
unsafe extern "C" {
    pub fn vlibapi_helper_get_main() -> *mut api_main_t;
}
unsafe extern "C" {
    pub fn vl_api_helper_send_msg(rp: *mut vl_api_registration_t, elem: *mut u8_);
}
unsafe extern "C" {
    pub fn vlib_helper_zero_simple_counter(cm: *mut vlib_simple_counter_main_t, index: u32_);
}
unsafe extern "C" {
    pub fn vlib_helper_zero_combined_counter(cm: *mut vlib_combined_counter_main_t, index: u32_);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct async_context {
    _unused: [u8; 0],
}
unsafe extern "C" {
    pub fn vlib_helper_process_node_loop(vm: *mut vlib_main_t, context: *mut async_context) -> !;
}
unsafe extern "C" {
    pub fn vnet_helper_ip4_header_checksum(ip: *mut ip4_header_t) -> u16_;
}
pub type __builtin_va_list = [__va_list_tag; 1usize];
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __va_list_tag {
    pub gp_offset: ::std::os::raw::c_uint,
    pub fp_offset: ::std::os::raw::c_uint,
    pub overflow_arg_area: *mut ::std::os::raw::c_void,
    pub reg_save_area: *mut ::std::os::raw::c_void,
}
impl Default for __va_list_tag {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}