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
#![allow(non_camel_case_types)]
#![allow(non_upper_case_globals)]
#![allow(non_snake_case)]
#![allow(dead_code)]
extern crate libc;
pub type __s8 = ::libc::c_char;
pub type __u8 = ::libc::c_uchar;
pub type __s16 = ::libc::c_short;
pub type __u16 = ::libc::c_ushort;
pub type __s32 = ::libc::c_int;
pub type __u32 = ::libc::c_uint;
pub type __s64 = ::libc::c_longlong;
pub type __u64 = ::libc::c_ulonglong;
#[repr(C)]
#[derive(Copy)]
pub struct Struct_Unnamed1 {
pub fds_bits: [::libc::c_ulong; 16usize],
}
impl ::std::clone::Clone for Struct_Unnamed1 {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_Unnamed1 {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
pub type __kernel_fd_set = Struct_Unnamed1;
pub type __kernel_sighandler_t =
::std::option::Option<extern "C" fn(arg1: ::libc::c_int) -> ()>;
pub type __kernel_key_t = ::libc::c_int;
pub type __kernel_mqd_t = ::libc::c_int;
pub type __kernel_old_uid_t = ::libc::c_ushort;
pub type __kernel_old_gid_t = ::libc::c_ushort;
pub type __kernel_old_dev_t = ::libc::c_ulong;
pub type __kernel_long_t = ::libc::c_long;
pub type __kernel_ulong_t = ::libc::c_ulong;
pub type __kernel_ino_t = __kernel_ulong_t;
pub type __kernel_mode_t = ::libc::c_uint;
pub type __kernel_pid_t = ::libc::c_int;
pub type __kernel_ipc_pid_t = ::libc::c_int;
pub type __kernel_uid_t = ::libc::c_uint;
pub type __kernel_gid_t = ::libc::c_uint;
pub type __kernel_suseconds_t = __kernel_long_t;
pub type __kernel_daddr_t = ::libc::c_int;
pub type __kernel_uid32_t = ::libc::c_uint;
pub type __kernel_gid32_t = ::libc::c_uint;
pub type __kernel_size_t = __kernel_ulong_t;
pub type __kernel_ssize_t = __kernel_long_t;
pub type __kernel_ptrdiff_t = __kernel_long_t;
#[repr(C)]
#[derive(Copy)]
pub struct Struct_Unnamed2 {
pub val: [::libc::c_int; 2usize],
}
impl ::std::clone::Clone for Struct_Unnamed2 {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_Unnamed2 {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
pub type __kernel_fsid_t = Struct_Unnamed2;
pub type __kernel_off_t = __kernel_long_t;
pub type __kernel_loff_t = ::libc::c_longlong;
pub type __kernel_time_t = __kernel_long_t;
pub type __kernel_clock_t = __kernel_long_t;
pub type __kernel_timer_t = ::libc::c_int;
pub type __kernel_clockid_t = ::libc::c_int;
pub type __kernel_caddr_t = *mut ::libc::c_char;
pub type __kernel_uid16_t = ::libc::c_ushort;
pub type __kernel_gid16_t = ::libc::c_ushort;
pub type __le16 = __u16;
pub type __be16 = __u16;
pub type __le32 = __u32;
pub type __be32 = __u32;
pub type __le64 = __u64;
pub type __be64 = __u64;
pub type __sum16 = __u16;
pub type __wsum = __u32;
#[repr(C)]
#[derive(Copy)]
pub struct Struct_sysinfo {
pub uptime: __kernel_long_t,
pub loads: [__kernel_ulong_t; 3usize],
pub totalram: __kernel_ulong_t,
pub freeram: __kernel_ulong_t,
pub sharedram: __kernel_ulong_t,
pub bufferram: __kernel_ulong_t,
pub totalswap: __kernel_ulong_t,
pub freeswap: __kernel_ulong_t,
pub procs: __u16,
pub pad: __u16,
pub totalhigh: __kernel_ulong_t,
pub freehigh: __kernel_ulong_t,
pub mem_unit: __u32,
pub _f: [::libc::c_char; 0usize],
}
impl ::std::clone::Clone for Struct_sysinfo {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_sysinfo {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
pub type __kernel_sa_family_t = ::libc::c_ushort;
pub enum Struct_sockaddr { }
#[repr(C)]
#[derive(Copy)]
pub struct Struct___kernel_sockaddr_storage {
pub ss_family: __kernel_sa_family_t,
pub __data: [::libc::c_char; 126usize],
}
impl ::std::clone::Clone for Struct___kernel_sockaddr_storage {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct___kernel_sockaddr_storage {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct_sockaddr_nl {
pub nl_family: __kernel_sa_family_t,
pub nl_pad: ::libc::c_ushort,
pub nl_pid: __u32,
pub nl_groups: __u32,
}
impl ::std::clone::Clone for Struct_sockaddr_nl {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_sockaddr_nl {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct_nlmsghdr {
pub nlmsg_len: __u32,
pub nlmsg_type: __u16,
pub nlmsg_flags: __u16,
pub nlmsg_seq: __u32,
pub nlmsg_pid: __u32,
}
impl ::std::clone::Clone for Struct_nlmsghdr {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_nlmsghdr {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct_nlmsgerr {
pub error: ::libc::c_int,
pub msg: Struct_nlmsghdr,
}
impl ::std::clone::Clone for Struct_nlmsgerr {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_nlmsgerr {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct_nl_pktinfo {
pub group: __u32,
}
impl ::std::clone::Clone for Struct_nl_pktinfo {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_nl_pktinfo {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct_nl_mmap_req {
pub nm_block_size: ::libc::c_uint,
pub nm_block_nr: ::libc::c_uint,
pub nm_frame_size: ::libc::c_uint,
pub nm_frame_nr: ::libc::c_uint,
}
impl ::std::clone::Clone for Struct_nl_mmap_req {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_nl_mmap_req {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct_nl_mmap_hdr {
pub nm_status: ::libc::c_uint,
pub nm_len: ::libc::c_uint,
pub nm_group: __u32,
pub nm_pid: __u32,
pub nm_uid: __u32,
pub nm_gid: __u32,
}
impl ::std::clone::Clone for Struct_nl_mmap_hdr {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_nl_mmap_hdr {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
pub type Enum_nl_mmap_status = ::libc::c_uint;
pub const NL_MMAP_STATUS_UNUSED: ::libc::c_uint = 0;
pub const NL_MMAP_STATUS_RESERVED: ::libc::c_uint = 1;
pub const NL_MMAP_STATUS_VALID: ::libc::c_uint = 2;
pub const NL_MMAP_STATUS_COPY: ::libc::c_uint = 3;
pub const NL_MMAP_STATUS_SKIP: ::libc::c_uint = 4;
pub type Enum_Unnamed3 = ::libc::c_uint;
pub const NETLINK_UNCONNECTED: ::libc::c_uint = 0;
pub const NETLINK_CONNECTED: ::libc::c_uint = 1;
#[repr(C)]
#[derive(Copy)]
pub struct Struct_nlattr {
pub nla_len: __u16,
pub nla_type: __u16,
}
impl ::std::clone::Clone for Struct_nlattr {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_nlattr {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct_rtnl_link_stats {
pub rx_packets: __u32,
pub tx_packets: __u32,
pub rx_bytes: __u32,
pub tx_bytes: __u32,
pub rx_errors: __u32,
pub tx_errors: __u32,
pub rx_dropped: __u32,
pub tx_dropped: __u32,
pub multicast: __u32,
pub collisions: __u32,
pub rx_length_errors: __u32,
pub rx_over_errors: __u32,
pub rx_crc_errors: __u32,
pub rx_frame_errors: __u32,
pub rx_fifo_errors: __u32,
pub rx_missed_errors: __u32,
pub tx_aborted_errors: __u32,
pub tx_carrier_errors: __u32,
pub tx_fifo_errors: __u32,
pub tx_heartbeat_errors: __u32,
pub tx_window_errors: __u32,
pub rx_compressed: __u32,
pub tx_compressed: __u32,
}
impl ::std::clone::Clone for Struct_rtnl_link_stats {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_rtnl_link_stats {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct_rtnl_link_stats64 {
pub rx_packets: __u64,
pub tx_packets: __u64,
pub rx_bytes: __u64,
pub tx_bytes: __u64,
pub rx_errors: __u64,
pub tx_errors: __u64,
pub rx_dropped: __u64,
pub tx_dropped: __u64,
pub multicast: __u64,
pub collisions: __u64,
pub rx_length_errors: __u64,
pub rx_over_errors: __u64,
pub rx_crc_errors: __u64,
pub rx_frame_errors: __u64,
pub rx_fifo_errors: __u64,
pub rx_missed_errors: __u64,
pub tx_aborted_errors: __u64,
pub tx_carrier_errors: __u64,
pub tx_fifo_errors: __u64,
pub tx_heartbeat_errors: __u64,
pub tx_window_errors: __u64,
pub rx_compressed: __u64,
pub tx_compressed: __u64,
}
impl ::std::clone::Clone for Struct_rtnl_link_stats64 {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_rtnl_link_stats64 {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct_rtnl_link_ifmap {
pub mem_start: __u64,
pub mem_end: __u64,
pub base_addr: __u64,
pub irq: __u16,
pub dma: __u8,
pub port: __u8,
}
impl ::std::clone::Clone for Struct_rtnl_link_ifmap {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_rtnl_link_ifmap {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
pub type Enum_Unnamed4 = ::libc::c_uint;
pub const IFLA_UNSPEC: ::libc::c_uint = 0;
pub const IFLA_ADDRESS: ::libc::c_uint = 1;
pub const IFLA_BROADCAST: ::libc::c_uint = 2;
pub const IFLA_IFNAME: ::libc::c_uint = 3;
pub const IFLA_MTU: ::libc::c_uint = 4;
pub const IFLA_LINK: ::libc::c_uint = 5;
pub const IFLA_QDISC: ::libc::c_uint = 6;
pub const IFLA_STATS: ::libc::c_uint = 7;
pub const IFLA_COST: ::libc::c_uint = 8;
pub const IFLA_PRIORITY: ::libc::c_uint = 9;
pub const IFLA_MASTER: ::libc::c_uint = 10;
pub const IFLA_WIRELESS: ::libc::c_uint = 11;
pub const IFLA_PROTINFO: ::libc::c_uint = 12;
pub const IFLA_TXQLEN: ::libc::c_uint = 13;
pub const IFLA_MAP: ::libc::c_uint = 14;
pub const IFLA_WEIGHT: ::libc::c_uint = 15;
pub const IFLA_OPERSTATE: ::libc::c_uint = 16;
pub const IFLA_LINKMODE: ::libc::c_uint = 17;
pub const IFLA_LINKINFO: ::libc::c_uint = 18;
pub const IFLA_NET_NS_PID: ::libc::c_uint = 19;
pub const IFLA_IFALIAS: ::libc::c_uint = 20;
pub const IFLA_NUM_VF: ::libc::c_uint = 21;
pub const IFLA_VFINFO_LIST: ::libc::c_uint = 22;
pub const IFLA_STATS64: ::libc::c_uint = 23;
pub const IFLA_VF_PORTS: ::libc::c_uint = 24;
pub const IFLA_PORT_SELF: ::libc::c_uint = 25;
pub const IFLA_AF_SPEC: ::libc::c_uint = 26;
pub const IFLA_GROUP: ::libc::c_uint = 27;
pub const IFLA_NET_NS_FD: ::libc::c_uint = 28;
pub const IFLA_EXT_MASK: ::libc::c_uint = 29;
pub const IFLA_PROMISCUITY: ::libc::c_uint = 30;
pub const IFLA_NUM_TX_QUEUES: ::libc::c_uint = 31;
pub const IFLA_NUM_RX_QUEUES: ::libc::c_uint = 32;
pub const IFLA_CARRIER: ::libc::c_uint = 33;
pub const IFLA_PHYS_PORT_ID: ::libc::c_uint = 34;
pub const __IFLA_MAX: ::libc::c_uint = 35;
pub type Enum_Unnamed5 = ::libc::c_uint;
pub const IFLA_INET_UNSPEC: ::libc::c_uint = 0;
pub const IFLA_INET_CONF: ::libc::c_uint = 1;
pub const __IFLA_INET_MAX: ::libc::c_uint = 2;
pub type Enum_Unnamed6 = ::libc::c_uint;
pub const IFLA_INET6_UNSPEC: ::libc::c_uint = 0;
pub const IFLA_INET6_FLAGS: ::libc::c_uint = 1;
pub const IFLA_INET6_CONF: ::libc::c_uint = 2;
pub const IFLA_INET6_STATS: ::libc::c_uint = 3;
pub const IFLA_INET6_MCAST: ::libc::c_uint = 4;
pub const IFLA_INET6_CACHEINFO: ::libc::c_uint = 5;
pub const IFLA_INET6_ICMP6STATS: ::libc::c_uint = 6;
pub const IFLA_INET6_TOKEN: ::libc::c_uint = 7;
pub const __IFLA_INET6_MAX: ::libc::c_uint = 8;
pub type Enum_Unnamed7 = ::libc::c_uint;
pub const BRIDGE_MODE_UNSPEC: ::libc::c_uint = 0;
pub const BRIDGE_MODE_HAIRPIN: ::libc::c_uint = 1;
pub type Enum_Unnamed8 = ::libc::c_uint;
pub const IFLA_BRPORT_UNSPEC: ::libc::c_uint = 0;
pub const IFLA_BRPORT_STATE: ::libc::c_uint = 1;
pub const IFLA_BRPORT_PRIORITY: ::libc::c_uint = 2;
pub const IFLA_BRPORT_COST: ::libc::c_uint = 3;
pub const IFLA_BRPORT_MODE: ::libc::c_uint = 4;
pub const IFLA_BRPORT_GUARD: ::libc::c_uint = 5;
pub const IFLA_BRPORT_PROTECT: ::libc::c_uint = 6;
pub const IFLA_BRPORT_FAST_LEAVE: ::libc::c_uint = 7;
pub const IFLA_BRPORT_LEARNING: ::libc::c_uint = 8;
pub const IFLA_BRPORT_UNICAST_FLOOD: ::libc::c_uint = 9;
pub const __IFLA_BRPORT_MAX: ::libc::c_uint = 10;
#[repr(C)]
#[derive(Copy)]
pub struct Struct_ifla_cacheinfo {
pub max_reasm_len: __u32,
pub tstamp: __u32,
pub reachable_time: __u32,
pub retrans_time: __u32,
}
impl ::std::clone::Clone for Struct_ifla_cacheinfo {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_ifla_cacheinfo {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
pub type Enum_Unnamed9 = ::libc::c_uint;
pub const IFLA_INFO_UNSPEC: ::libc::c_uint = 0;
pub const IFLA_INFO_KIND: ::libc::c_uint = 1;
pub const IFLA_INFO_DATA: ::libc::c_uint = 2;
pub const IFLA_INFO_XSTATS: ::libc::c_uint = 3;
pub const __IFLA_INFO_MAX: ::libc::c_uint = 4;
pub type Enum_Unnamed10 = ::libc::c_uint;
pub const IFLA_VLAN_UNSPEC: ::libc::c_uint = 0;
pub const IFLA_VLAN_ID: ::libc::c_uint = 1;
pub const IFLA_VLAN_FLAGS: ::libc::c_uint = 2;
pub const IFLA_VLAN_EGRESS_QOS: ::libc::c_uint = 3;
pub const IFLA_VLAN_INGRESS_QOS: ::libc::c_uint = 4;
pub const IFLA_VLAN_PROTOCOL: ::libc::c_uint = 5;
pub const __IFLA_VLAN_MAX: ::libc::c_uint = 6;
#[repr(C)]
#[derive(Copy)]
pub struct Struct_ifla_vlan_flags {
pub flags: __u32,
pub mask: __u32,
}
impl ::std::clone::Clone for Struct_ifla_vlan_flags {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_ifla_vlan_flags {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
pub type Enum_Unnamed11 = ::libc::c_uint;
pub const IFLA_VLAN_QOS_UNSPEC: ::libc::c_uint = 0;
pub const IFLA_VLAN_QOS_MAPPING: ::libc::c_uint = 1;
pub const __IFLA_VLAN_QOS_MAX: ::libc::c_uint = 2;
#[repr(C)]
#[derive(Copy)]
pub struct Struct_ifla_vlan_qos_mapping {
pub from: __u32,
pub to: __u32,
}
impl ::std::clone::Clone for Struct_ifla_vlan_qos_mapping {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_ifla_vlan_qos_mapping {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
pub type Enum_Unnamed12 = ::libc::c_uint;
pub const IFLA_MACVLAN_UNSPEC: ::libc::c_uint = 0;
pub const IFLA_MACVLAN_MODE: ::libc::c_uint = 1;
pub const IFLA_MACVLAN_FLAGS: ::libc::c_uint = 2;
pub const __IFLA_MACVLAN_MAX: ::libc::c_uint = 3;
pub type Enum_macvlan_mode = ::libc::c_uint;
pub const MACVLAN_MODE_PRIVATE: ::libc::c_uint = 1;
pub const MACVLAN_MODE_VEPA: ::libc::c_uint = 2;
pub const MACVLAN_MODE_BRIDGE: ::libc::c_uint = 4;
pub const MACVLAN_MODE_PASSTHRU: ::libc::c_uint = 8;
pub type Enum_Unnamed13 = ::libc::c_uint;
pub const IFLA_VXLAN_UNSPEC: ::libc::c_uint = 0;
pub const IFLA_VXLAN_ID: ::libc::c_uint = 1;
pub const IFLA_VXLAN_GROUP: ::libc::c_uint = 2;
pub const IFLA_VXLAN_LINK: ::libc::c_uint = 3;
pub const IFLA_VXLAN_LOCAL: ::libc::c_uint = 4;
pub const IFLA_VXLAN_TTL: ::libc::c_uint = 5;
pub const IFLA_VXLAN_TOS: ::libc::c_uint = 6;
pub const IFLA_VXLAN_LEARNING: ::libc::c_uint = 7;
pub const IFLA_VXLAN_AGEING: ::libc::c_uint = 8;
pub const IFLA_VXLAN_LIMIT: ::libc::c_uint = 9;
pub const IFLA_VXLAN_PORT_RANGE: ::libc::c_uint = 10;
pub const IFLA_VXLAN_PROXY: ::libc::c_uint = 11;
pub const IFLA_VXLAN_RSC: ::libc::c_uint = 12;
pub const IFLA_VXLAN_L2MISS: ::libc::c_uint = 13;
pub const IFLA_VXLAN_L3MISS: ::libc::c_uint = 14;
pub const IFLA_VXLAN_PORT: ::libc::c_uint = 15;
pub const IFLA_VXLAN_GROUP6: ::libc::c_uint = 16;
pub const IFLA_VXLAN_LOCAL6: ::libc::c_uint = 17;
pub const __IFLA_VXLAN_MAX: ::libc::c_uint = 18;
#[repr(C)]
#[derive(Copy)]
pub struct Struct_ifla_vxlan_port_range {
pub low: __be16,
pub high: __be16,
}
impl ::std::clone::Clone for Struct_ifla_vxlan_port_range {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_ifla_vxlan_port_range {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
pub type Enum_Unnamed14 = ::libc::c_uint;
pub const IFLA_BOND_UNSPEC: ::libc::c_uint = 0;
pub const IFLA_BOND_MODE: ::libc::c_uint = 1;
pub const IFLA_BOND_ACTIVE_SLAVE: ::libc::c_uint = 2;
pub const __IFLA_BOND_MAX: ::libc::c_uint = 3;
pub type Enum_Unnamed15 = ::libc::c_uint;
pub const IFLA_VF_INFO_UNSPEC: ::libc::c_uint = 0;
pub const IFLA_VF_INFO: ::libc::c_uint = 1;
pub const __IFLA_VF_INFO_MAX: ::libc::c_uint = 2;
pub type Enum_Unnamed16 = ::libc::c_uint;
pub const IFLA_VF_UNSPEC: ::libc::c_uint = 0;
pub const IFLA_VF_MAC: ::libc::c_uint = 1;
pub const IFLA_VF_VLAN: ::libc::c_uint = 2;
pub const IFLA_VF_TX_RATE: ::libc::c_uint = 3;
pub const IFLA_VF_SPOOFCHK: ::libc::c_uint = 4;
pub const IFLA_VF_LINK_STATE: ::libc::c_uint = 5;
pub const __IFLA_VF_MAX: ::libc::c_uint = 6;
#[repr(C)]
#[derive(Copy)]
pub struct Struct_ifla_vf_mac {
pub vf: __u32,
pub mac: [__u8; 32usize],
}
impl ::std::clone::Clone for Struct_ifla_vf_mac {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_ifla_vf_mac {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct_ifla_vf_vlan {
pub vf: __u32,
pub vlan: __u32,
pub qos: __u32,
}
impl ::std::clone::Clone for Struct_ifla_vf_vlan {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_ifla_vf_vlan {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct_ifla_vf_tx_rate {
pub vf: __u32,
pub rate: __u32,
}
impl ::std::clone::Clone for Struct_ifla_vf_tx_rate {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_ifla_vf_tx_rate {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct_ifla_vf_spoofchk {
pub vf: __u32,
pub setting: __u32,
}
impl ::std::clone::Clone for Struct_ifla_vf_spoofchk {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_ifla_vf_spoofchk {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
pub type Enum_Unnamed17 = ::libc::c_uint;
pub const IFLA_VF_LINK_STATE_AUTO: ::libc::c_uint = 0;
pub const IFLA_VF_LINK_STATE_ENABLE: ::libc::c_uint = 1;
pub const IFLA_VF_LINK_STATE_DISABLE: ::libc::c_uint = 2;
pub const __IFLA_VF_LINK_STATE_MAX: ::libc::c_uint = 3;
#[repr(C)]
#[derive(Copy)]
pub struct Struct_ifla_vf_link_state {
pub vf: __u32,
pub link_state: __u32,
}
impl ::std::clone::Clone for Struct_ifla_vf_link_state {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_ifla_vf_link_state {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
pub type Enum_Unnamed18 = ::libc::c_uint;
pub const IFLA_VF_PORT_UNSPEC: ::libc::c_uint = 0;
pub const IFLA_VF_PORT: ::libc::c_uint = 1;
pub const __IFLA_VF_PORT_MAX: ::libc::c_uint = 2;
pub type Enum_Unnamed19 = ::libc::c_uint;
pub const IFLA_PORT_UNSPEC: ::libc::c_uint = 0;
pub const IFLA_PORT_VF: ::libc::c_uint = 1;
pub const IFLA_PORT_PROFILE: ::libc::c_uint = 2;
pub const IFLA_PORT_VSI_TYPE: ::libc::c_uint = 3;
pub const IFLA_PORT_INSTANCE_UUID: ::libc::c_uint = 4;
pub const IFLA_PORT_HOST_UUID: ::libc::c_uint = 5;
pub const IFLA_PORT_REQUEST: ::libc::c_uint = 6;
pub const IFLA_PORT_RESPONSE: ::libc::c_uint = 7;
pub const __IFLA_PORT_MAX: ::libc::c_uint = 8;
pub type Enum_Unnamed20 = ::libc::c_uint;
pub const PORT_REQUEST_PREASSOCIATE: ::libc::c_uint = 0;
pub const PORT_REQUEST_PREASSOCIATE_RR: ::libc::c_uint = 1;
pub const PORT_REQUEST_ASSOCIATE: ::libc::c_uint = 2;
pub const PORT_REQUEST_DISASSOCIATE: ::libc::c_uint = 3;
pub type Enum_Unnamed21 = ::libc::c_uint;
pub const PORT_VDP_RESPONSE_SUCCESS: ::libc::c_uint = 0;
pub const PORT_VDP_RESPONSE_INVALID_FORMAT: ::libc::c_uint = 1;
pub const PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES: ::libc::c_uint = 2;
pub const PORT_VDP_RESPONSE_UNUSED_VTID: ::libc::c_uint = 3;
pub const PORT_VDP_RESPONSE_VTID_VIOLATION: ::libc::c_uint = 4;
pub const PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION: ::libc::c_uint = 5;
pub const PORT_VDP_RESPONSE_OUT_OF_SYNC: ::libc::c_uint = 6;
pub const PORT_PROFILE_RESPONSE_SUCCESS: ::libc::c_uint = 256;
pub const PORT_PROFILE_RESPONSE_INPROGRESS: ::libc::c_uint = 257;
pub const PORT_PROFILE_RESPONSE_INVALID: ::libc::c_uint = 258;
pub const PORT_PROFILE_RESPONSE_BADSTATE: ::libc::c_uint = 259;
pub const PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES: ::libc::c_uint = 260;
pub const PORT_PROFILE_RESPONSE_ERROR: ::libc::c_uint = 261;
#[repr(C)]
#[derive(Copy)]
pub struct Struct_ifla_port_vsi {
pub vsi_mgr_id: __u8,
pub vsi_type_id: [__u8; 3usize],
pub vsi_type_version: __u8,
pub pad: [__u8; 3usize],
}
impl ::std::clone::Clone for Struct_ifla_port_vsi {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_ifla_port_vsi {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
pub type Enum_Unnamed22 = ::libc::c_uint;
pub const IFLA_IPOIB_UNSPEC: ::libc::c_uint = 0;
pub const IFLA_IPOIB_PKEY: ::libc::c_uint = 1;
pub const IFLA_IPOIB_MODE: ::libc::c_uint = 2;
pub const IFLA_IPOIB_UMCAST: ::libc::c_uint = 3;
pub const __IFLA_IPOIB_MAX: ::libc::c_uint = 4;
pub type Enum_Unnamed23 = ::libc::c_uint;
pub const IPOIB_MODE_DATAGRAM: ::libc::c_uint = 0;
pub const IPOIB_MODE_CONNECTED: ::libc::c_uint = 1;
pub type Enum_Unnamed24 = ::libc::c_uint;
pub const IFLA_HSR_UNSPEC: ::libc::c_uint = 0;
pub const IFLA_HSR_SLAVE1: ::libc::c_uint = 1;
pub const IFLA_HSR_SLAVE2: ::libc::c_uint = 2;
pub const IFLA_HSR_MULTICAST_SPEC: ::libc::c_uint = 3;
pub const IFLA_HSR_SUPERVISION_ADDR: ::libc::c_uint = 4;
pub const IFLA_HSR_SEQ_NR: ::libc::c_uint = 5;
pub const __IFLA_HSR_MAX: ::libc::c_uint = 6;
#[repr(C)]
#[derive(Copy)]
pub struct Struct_ifaddrmsg {
pub ifa_family: __u8,
pub ifa_prefixlen: __u8,
pub ifa_flags: __u8,
pub ifa_scope: __u8,
pub ifa_index: __u32,
}
impl ::std::clone::Clone for Struct_ifaddrmsg {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_ifaddrmsg {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
pub type Enum_Unnamed25 = ::libc::c_uint;
pub const IFA_UNSPEC: ::libc::c_uint = 0;
pub const IFA_ADDRESS: ::libc::c_uint = 1;
pub const IFA_LOCAL: ::libc::c_uint = 2;
pub const IFA_LABEL: ::libc::c_uint = 3;
pub const IFA_BROADCAST: ::libc::c_uint = 4;
pub const IFA_ANYCAST: ::libc::c_uint = 5;
pub const IFA_CACHEINFO: ::libc::c_uint = 6;
pub const IFA_MULTICAST: ::libc::c_uint = 7;
pub const __IFA_MAX: ::libc::c_uint = 8;
#[repr(C)]
#[derive(Copy)]
pub struct Struct_ifa_cacheinfo {
pub ifa_prefered: __u32,
pub ifa_valid: __u32,
pub cstamp: __u32,
pub tstamp: __u32,
}
impl ::std::clone::Clone for Struct_ifa_cacheinfo {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_ifa_cacheinfo {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct_ndmsg {
pub ndm_family: __u8,
pub ndm_pad1: __u8,
pub ndm_pad2: __u16,
pub ndm_ifindex: __s32,
pub ndm_state: __u16,
pub ndm_flags: __u8,
pub ndm_type: __u8,
}
impl ::std::clone::Clone for Struct_ndmsg {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_ndmsg {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
pub type Enum_Unnamed26 = ::libc::c_uint;
pub const NDA_UNSPEC: ::libc::c_uint = 0;
pub const NDA_DST: ::libc::c_uint = 1;
pub const NDA_LLADDR: ::libc::c_uint = 2;
pub const NDA_CACHEINFO: ::libc::c_uint = 3;
pub const NDA_PROBES: ::libc::c_uint = 4;
pub const NDA_VLAN: ::libc::c_uint = 5;
pub const NDA_PORT: ::libc::c_uint = 6;
pub const NDA_VNI: ::libc::c_uint = 7;
pub const NDA_IFINDEX: ::libc::c_uint = 8;
pub const __NDA_MAX: ::libc::c_uint = 9;
#[repr(C)]
#[derive(Copy)]
pub struct Struct_nda_cacheinfo {
pub ndm_confirmed: __u32,
pub ndm_used: __u32,
pub ndm_updated: __u32,
pub ndm_refcnt: __u32,
}
impl ::std::clone::Clone for Struct_nda_cacheinfo {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_nda_cacheinfo {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct_ndt_stats {
pub ndts_allocs: __u64,
pub ndts_destroys: __u64,
pub ndts_hash_grows: __u64,
pub ndts_res_failed: __u64,
pub ndts_lookups: __u64,
pub ndts_hits: __u64,
pub ndts_rcv_probes_mcast: __u64,
pub ndts_rcv_probes_ucast: __u64,
pub ndts_periodic_gc_runs: __u64,
pub ndts_forced_gc_runs: __u64,
}
impl ::std::clone::Clone for Struct_ndt_stats {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_ndt_stats {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
pub type Enum_Unnamed27 = ::libc::c_uint;
pub const NDTPA_UNSPEC: ::libc::c_uint = 0;
pub const NDTPA_IFINDEX: ::libc::c_uint = 1;
pub const NDTPA_REFCNT: ::libc::c_uint = 2;
pub const NDTPA_REACHABLE_TIME: ::libc::c_uint = 3;
pub const NDTPA_BASE_REACHABLE_TIME: ::libc::c_uint = 4;
pub const NDTPA_RETRANS_TIME: ::libc::c_uint = 5;
pub const NDTPA_GC_STALETIME: ::libc::c_uint = 6;
pub const NDTPA_DELAY_PROBE_TIME: ::libc::c_uint = 7;
pub const NDTPA_QUEUE_LEN: ::libc::c_uint = 8;
pub const NDTPA_APP_PROBES: ::libc::c_uint = 9;
pub const NDTPA_UCAST_PROBES: ::libc::c_uint = 10;
pub const NDTPA_MCAST_PROBES: ::libc::c_uint = 11;
pub const NDTPA_ANYCAST_DELAY: ::libc::c_uint = 12;
pub const NDTPA_PROXY_DELAY: ::libc::c_uint = 13;
pub const NDTPA_PROXY_QLEN: ::libc::c_uint = 14;
pub const NDTPA_LOCKTIME: ::libc::c_uint = 15;
pub const NDTPA_QUEUE_LENBYTES: ::libc::c_uint = 16;
pub const __NDTPA_MAX: ::libc::c_uint = 17;
#[repr(C)]
#[derive(Copy)]
pub struct Struct_ndtmsg {
pub ndtm_family: __u8,
pub ndtm_pad1: __u8,
pub ndtm_pad2: __u16,
}
impl ::std::clone::Clone for Struct_ndtmsg {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_ndtmsg {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct_ndt_config {
pub ndtc_key_len: __u16,
pub ndtc_entry_size: __u16,
pub ndtc_entries: __u32,
pub ndtc_last_flush: __u32,
pub ndtc_last_rand: __u32,
pub ndtc_hash_rnd: __u32,
pub ndtc_hash_mask: __u32,
pub ndtc_hash_chain_gc: __u32,
pub ndtc_proxy_qlen: __u32,
}
impl ::std::clone::Clone for Struct_ndt_config {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_ndt_config {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
pub type Enum_Unnamed28 = ::libc::c_uint;
pub const NDTA_UNSPEC: ::libc::c_uint = 0;
pub const NDTA_NAME: ::libc::c_uint = 1;
pub const NDTA_THRESH1: ::libc::c_uint = 2;
pub const NDTA_THRESH2: ::libc::c_uint = 3;
pub const NDTA_THRESH3: ::libc::c_uint = 4;
pub const NDTA_CONFIG: ::libc::c_uint = 5;
pub const NDTA_PARMS: ::libc::c_uint = 6;
pub const NDTA_STATS: ::libc::c_uint = 7;
pub const NDTA_GC_INTERVAL: ::libc::c_uint = 8;
pub const __NDTA_MAX: ::libc::c_uint = 9;
pub type Enum_Unnamed29 = ::libc::c_uint;
pub const RTM_BASE: ::libc::c_uint = 16;
pub const RTM_NEWLINK: ::libc::c_uint = 16;
pub const RTM_DELLINK: ::libc::c_uint = 17;
pub const RTM_GETLINK: ::libc::c_uint = 18;
pub const RTM_SETLINK: ::libc::c_uint = 19;
pub const RTM_NEWADDR: ::libc::c_uint = 20;
pub const RTM_DELADDR: ::libc::c_uint = 21;
pub const RTM_GETADDR: ::libc::c_uint = 22;
pub const RTM_NEWROUTE: ::libc::c_uint = 24;
pub const RTM_DELROUTE: ::libc::c_uint = 25;
pub const RTM_GETROUTE: ::libc::c_uint = 26;
pub const RTM_NEWNEIGH: ::libc::c_uint = 28;
pub const RTM_DELNEIGH: ::libc::c_uint = 29;
pub const RTM_GETNEIGH: ::libc::c_uint = 30;
pub const RTM_NEWRULE: ::libc::c_uint = 32;
pub const RTM_DELRULE: ::libc::c_uint = 33;
pub const RTM_GETRULE: ::libc::c_uint = 34;
pub const RTM_NEWQDISC: ::libc::c_uint = 36;
pub const RTM_DELQDISC: ::libc::c_uint = 37;
pub const RTM_GETQDISC: ::libc::c_uint = 38;
pub const RTM_NEWTCLASS: ::libc::c_uint = 40;
pub const RTM_DELTCLASS: ::libc::c_uint = 41;
pub const RTM_GETTCLASS: ::libc::c_uint = 42;
pub const RTM_NEWTFILTER: ::libc::c_uint = 44;
pub const RTM_DELTFILTER: ::libc::c_uint = 45;
pub const RTM_GETTFILTER: ::libc::c_uint = 46;
pub const RTM_NEWACTION: ::libc::c_uint = 48;
pub const RTM_DELACTION: ::libc::c_uint = 49;
pub const RTM_GETACTION: ::libc::c_uint = 50;
pub const RTM_NEWPREFIX: ::libc::c_uint = 52;
pub const RTM_GETMULTICAST: ::libc::c_uint = 58;
pub const RTM_GETANYCAST: ::libc::c_uint = 62;
pub const RTM_NEWNEIGHTBL: ::libc::c_uint = 64;
pub const RTM_GETNEIGHTBL: ::libc::c_uint = 66;
pub const RTM_SETNEIGHTBL: ::libc::c_uint = 67;
pub const RTM_NEWNDUSEROPT: ::libc::c_uint = 68;
pub const RTM_NEWADDRLABEL: ::libc::c_uint = 72;
pub const RTM_DELADDRLABEL: ::libc::c_uint = 73;
pub const RTM_GETADDRLABEL: ::libc::c_uint = 74;
pub const RTM_GETDCB: ::libc::c_uint = 78;
pub const RTM_SETDCB: ::libc::c_uint = 79;
pub const RTM_NEWNETCONF: ::libc::c_uint = 80;
pub const RTM_GETNETCONF: ::libc::c_uint = 82;
pub const RTM_NEWMDB: ::libc::c_uint = 84;
pub const RTM_DELMDB: ::libc::c_uint = 85;
pub const RTM_GETMDB: ::libc::c_uint = 86;
pub const __RTM_MAX: ::libc::c_uint = 87;
#[repr(C)]
#[derive(Copy)]
pub struct Struct_rtattr {
pub rta_len: ::libc::c_ushort,
pub rta_type: ::libc::c_ushort,
}
impl ::std::clone::Clone for Struct_rtattr {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_rtattr {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct_rtmsg {
pub rtm_family: ::libc::c_uchar,
pub rtm_dst_len: ::libc::c_uchar,
pub rtm_src_len: ::libc::c_uchar,
pub rtm_tos: ::libc::c_uchar,
pub rtm_table: ::libc::c_uchar,
pub rtm_protocol: ::libc::c_uchar,
pub rtm_scope: ::libc::c_uchar,
pub rtm_type: ::libc::c_uchar,
pub rtm_flags: ::libc::c_uint,
}
impl ::std::clone::Clone for Struct_rtmsg {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_rtmsg {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
pub type Enum_Unnamed30 = ::libc::c_uint;
pub const RTN_UNSPEC: ::libc::c_uint = 0;
pub const RTN_UNICAST: ::libc::c_uint = 1;
pub const RTN_LOCAL: ::libc::c_uint = 2;
pub const RTN_BROADCAST: ::libc::c_uint = 3;
pub const RTN_ANYCAST: ::libc::c_uint = 4;
pub const RTN_MULTICAST: ::libc::c_uint = 5;
pub const RTN_BLACKHOLE: ::libc::c_uint = 6;
pub const RTN_UNREACHABLE: ::libc::c_uint = 7;
pub const RTN_PROHIBIT: ::libc::c_uint = 8;
pub const RTN_THROW: ::libc::c_uint = 9;
pub const RTN_NAT: ::libc::c_uint = 10;
pub const RTN_XRESOLVE: ::libc::c_uint = 11;
pub const __RTN_MAX: ::libc::c_uint = 12;
pub type Enum_rt_scope_t = ::libc::c_uint;
pub const RT_SCOPE_UNIVERSE: ::libc::c_uint = 0;
pub const RT_SCOPE_SITE: ::libc::c_uint = 200;
pub const RT_SCOPE_LINK: ::libc::c_uint = 253;
pub const RT_SCOPE_HOST: ::libc::c_uint = 254;
pub const RT_SCOPE_NOWHERE: ::libc::c_uint = 255;
pub type Enum_rt_class_t = ::libc::c_uint;
pub const RT_TABLE_UNSPEC: ::libc::c_uint = 0;
pub const RT_TABLE_COMPAT: ::libc::c_uint = 252;
pub const RT_TABLE_DEFAULT: ::libc::c_uint = 253;
pub const RT_TABLE_MAIN: ::libc::c_uint = 254;
pub const RT_TABLE_LOCAL: ::libc::c_uint = 255;
pub const RT_TABLE_MAX: ::libc::c_uint = 0xFFFFFFFF;
pub type Enum_rtattr_type_t = ::libc::c_uint;
pub const RTA_UNSPEC: ::libc::c_uint = 0;
pub const RTA_DST: ::libc::c_uint = 1;
pub const RTA_SRC: ::libc::c_uint = 2;
pub const RTA_IIF: ::libc::c_uint = 3;
pub const RTA_OIF: ::libc::c_uint = 4;
pub const RTA_GATEWAY: ::libc::c_uint = 5;
pub const RTA_PRIORITY: ::libc::c_uint = 6;
pub const RTA_PREFSRC: ::libc::c_uint = 7;
pub const RTA_METRICS: ::libc::c_uint = 8;
pub const RTA_MULTIPATH: ::libc::c_uint = 9;
pub const RTA_PROTOINFO: ::libc::c_uint = 10;
pub const RTA_FLOW: ::libc::c_uint = 11;
pub const RTA_CACHEINFO: ::libc::c_uint = 12;
pub const RTA_SESSION: ::libc::c_uint = 13;
pub const RTA_MP_ALGO: ::libc::c_uint = 14;
pub const RTA_TABLE: ::libc::c_uint = 15;
pub const RTA_MARK: ::libc::c_uint = 16;
pub const RTA_MFC_STATS: ::libc::c_uint = 17;
pub const __RTA_MAX: ::libc::c_uint = 18;
#[repr(C)]
#[derive(Copy)]
pub struct Struct_rtnexthop {
pub rtnh_len: ::libc::c_ushort,
pub rtnh_flags: ::libc::c_uchar,
pub rtnh_hops: ::libc::c_uchar,
pub rtnh_ifindex: ::libc::c_int,
}
impl ::std::clone::Clone for Struct_rtnexthop {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_rtnexthop {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct_rta_cacheinfo {
pub rta_clntref: __u32,
pub rta_lastuse: __u32,
pub rta_expires: __s32,
pub rta_error: __u32,
pub rta_used: __u32,
pub rta_id: __u32,
pub rta_ts: __u32,
pub rta_tsage: __u32,
}
impl ::std::clone::Clone for Struct_rta_cacheinfo {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_rta_cacheinfo {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
pub type Enum_Unnamed31 = ::libc::c_uint;
pub const RTAX_UNSPEC: ::libc::c_uint = 0;
pub const RTAX_LOCK: ::libc::c_uint = 1;
pub const RTAX_MTU: ::libc::c_uint = 2;
pub const RTAX_WINDOW: ::libc::c_uint = 3;
pub const RTAX_RTT: ::libc::c_uint = 4;
pub const RTAX_RTTVAR: ::libc::c_uint = 5;
pub const RTAX_SSTHRESH: ::libc::c_uint = 6;
pub const RTAX_CWND: ::libc::c_uint = 7;
pub const RTAX_ADVMSS: ::libc::c_uint = 8;
pub const RTAX_REORDERING: ::libc::c_uint = 9;
pub const RTAX_HOPLIMIT: ::libc::c_uint = 10;
pub const RTAX_INITCWND: ::libc::c_uint = 11;
pub const RTAX_FEATURES: ::libc::c_uint = 12;
pub const RTAX_RTO_MIN: ::libc::c_uint = 13;
pub const RTAX_INITRWND: ::libc::c_uint = 14;
pub const RTAX_QUICKACK: ::libc::c_uint = 15;
pub const __RTAX_MAX: ::libc::c_uint = 16;
#[repr(C)]
#[derive(Copy)]
pub struct Struct_rta_session {
pub proto: __u8,
pub pad1: __u8,
pub pad2: __u16,
pub u: Union_Unnamed32,
}
impl ::std::clone::Clone for Struct_rta_session {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_rta_session {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Union_Unnamed32 {
pub _bindgen_data_: [u32; 1usize],
}
impl Union_Unnamed32 {
pub unsafe fn ports(&mut self) -> *mut Struct_Unnamed33 {
let raw: *mut u8 = ::std::mem::transmute(&self._bindgen_data_);
::std::mem::transmute(raw.offset(0))
}
pub unsafe fn icmpt(&mut self) -> *mut Struct_Unnamed34 {
let raw: *mut u8 = ::std::mem::transmute(&self._bindgen_data_);
::std::mem::transmute(raw.offset(0))
}
pub unsafe fn spi(&mut self) -> *mut __u32 {
let raw: *mut u8 = ::std::mem::transmute(&self._bindgen_data_);
::std::mem::transmute(raw.offset(0))
}
}
impl ::std::clone::Clone for Union_Unnamed32 {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Union_Unnamed32 {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct_Unnamed33 {
pub sport: __u16,
pub dport: __u16,
}
impl ::std::clone::Clone for Struct_Unnamed33 {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_Unnamed33 {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct_Unnamed34 {
pub _type: __u8,
pub code: __u8,
pub ident: __u16,
}
impl ::std::clone::Clone for Struct_Unnamed34 {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_Unnamed34 {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct_rta_mfc_stats {
pub mfcs_packets: __u64,
pub mfcs_bytes: __u64,
pub mfcs_wrong_if: __u64,
}
impl ::std::clone::Clone for Struct_rta_mfc_stats {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_rta_mfc_stats {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct_rtgenmsg {
pub rtgen_family: ::libc::c_uchar,
}
impl ::std::clone::Clone for Struct_rtgenmsg {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_rtgenmsg {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct_ifinfomsg {
pub ifi_family: ::libc::c_uchar,
pub __ifi_pad: ::libc::c_uchar,
pub ifi_type: ::libc::c_ushort,
pub ifi_index: ::libc::c_int,
pub ifi_flags: ::libc::c_uint,
pub ifi_change: ::libc::c_uint,
}
impl ::std::clone::Clone for Struct_ifinfomsg {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_ifinfomsg {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct_prefixmsg {
pub prefix_family: ::libc::c_uchar,
pub prefix_pad1: ::libc::c_uchar,
pub prefix_pad2: ::libc::c_ushort,
pub prefix_ifindex: ::libc::c_int,
pub prefix_type: ::libc::c_uchar,
pub prefix_len: ::libc::c_uchar,
pub prefix_flags: ::libc::c_uchar,
pub prefix_pad3: ::libc::c_uchar,
}
impl ::std::clone::Clone for Struct_prefixmsg {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_prefixmsg {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
pub type Enum_Unnamed35 = ::libc::c_uint;
pub const PREFIX_UNSPEC: ::libc::c_uint = 0;
pub const PREFIX_ADDRESS: ::libc::c_uint = 1;
pub const PREFIX_CACHEINFO: ::libc::c_uint = 2;
pub const __PREFIX_MAX: ::libc::c_uint = 3;
#[repr(C)]
#[derive(Copy)]
pub struct Struct_prefix_cacheinfo {
pub preferred_time: __u32,
pub valid_time: __u32,
}
impl ::std::clone::Clone for Struct_prefix_cacheinfo {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_prefix_cacheinfo {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct_tcmsg {
pub tcm_family: ::libc::c_uchar,
pub tcm__pad1: ::libc::c_uchar,
pub tcm__pad2: ::libc::c_ushort,
pub tcm_ifindex: ::libc::c_int,
pub tcm_handle: __u32,
pub tcm_parent: __u32,
pub tcm_info: __u32,
}
impl ::std::clone::Clone for Struct_tcmsg {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_tcmsg {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
pub type Enum_Unnamed36 = ::libc::c_uint;
pub const TCA_UNSPEC: ::libc::c_uint = 0;
pub const TCA_KIND: ::libc::c_uint = 1;
pub const TCA_OPTIONS: ::libc::c_uint = 2;
pub const TCA_STATS: ::libc::c_uint = 3;
pub const TCA_XSTATS: ::libc::c_uint = 4;
pub const TCA_RATE: ::libc::c_uint = 5;
pub const TCA_FCNT: ::libc::c_uint = 6;
pub const TCA_STATS2: ::libc::c_uint = 7;
pub const TCA_STAB: ::libc::c_uint = 8;
pub const __TCA_MAX: ::libc::c_uint = 9;
#[repr(C)]
#[derive(Copy)]
pub struct Struct_nduseroptmsg {
pub nduseropt_family: ::libc::c_uchar,
pub nduseropt_pad1: ::libc::c_uchar,
pub nduseropt_opts_len: ::libc::c_ushort,
pub nduseropt_ifindex: ::libc::c_int,
pub nduseropt_icmp_type: __u8,
pub nduseropt_icmp_code: __u8,
pub nduseropt_pad2: ::libc::c_ushort,
pub nduseropt_pad3: ::libc::c_uint,
}
impl ::std::clone::Clone for Struct_nduseroptmsg {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_nduseroptmsg {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
pub type Enum_Unnamed37 = ::libc::c_uint;
pub const NDUSEROPT_UNSPEC: ::libc::c_uint = 0;
pub const NDUSEROPT_SRCADDR: ::libc::c_uint = 1;
pub const __NDUSEROPT_MAX: ::libc::c_uint = 2;
pub type Enum_rtnetlink_groups = ::libc::c_uint;
pub const RTNLGRP_NONE: ::libc::c_uint = 0;
pub const RTNLGRP_LINK: ::libc::c_uint = 1;
pub const RTNLGRP_NOTIFY: ::libc::c_uint = 2;
pub const RTNLGRP_NEIGH: ::libc::c_uint = 3;
pub const RTNLGRP_TC: ::libc::c_uint = 4;
pub const RTNLGRP_IPV4_IFADDR: ::libc::c_uint = 5;
pub const RTNLGRP_IPV4_MROUTE: ::libc::c_uint = 6;
pub const RTNLGRP_IPV4_ROUTE: ::libc::c_uint = 7;
pub const RTNLGRP_IPV4_RULE: ::libc::c_uint = 8;
pub const RTNLGRP_IPV6_IFADDR: ::libc::c_uint = 9;
pub const RTNLGRP_IPV6_MROUTE: ::libc::c_uint = 10;
pub const RTNLGRP_IPV6_ROUTE: ::libc::c_uint = 11;
pub const RTNLGRP_IPV6_IFINFO: ::libc::c_uint = 12;
pub const RTNLGRP_DECnet_IFADDR: ::libc::c_uint = 13;
pub const RTNLGRP_NOP2: ::libc::c_uint = 14;
pub const RTNLGRP_DECnet_ROUTE: ::libc::c_uint = 15;
pub const RTNLGRP_DECnet_RULE: ::libc::c_uint = 16;
pub const RTNLGRP_NOP4: ::libc::c_uint = 17;
pub const RTNLGRP_IPV6_PREFIX: ::libc::c_uint = 18;
pub const RTNLGRP_IPV6_RULE: ::libc::c_uint = 19;
pub const RTNLGRP_ND_USEROPT: ::libc::c_uint = 20;
pub const RTNLGRP_PHONET_IFADDR: ::libc::c_uint = 21;
pub const RTNLGRP_PHONET_ROUTE: ::libc::c_uint = 22;
pub const RTNLGRP_DCB: ::libc::c_uint = 23;
pub const RTNLGRP_IPV4_NETCONF: ::libc::c_uint = 24;
pub const RTNLGRP_IPV6_NETCONF: ::libc::c_uint = 25;
pub const RTNLGRP_MDB: ::libc::c_uint = 26;
pub const __RTNLGRP_MAX: ::libc::c_uint = 27;
#[repr(C)]
#[derive(Copy)]
pub struct Struct_tcamsg {
pub tca_family: ::libc::c_uchar,
pub tca__pad1: ::libc::c_uchar,
pub tca__pad2: ::libc::c_ushort,
}
impl ::std::clone::Clone for Struct_tcamsg {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_tcamsg {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}