Debian Codegraph @

.cargo/vendor/linux-raw-sys/src/sparc/net.rs

raw
1 /* automatically generated by rust-bindgen 0.66.1 */
2
3 pub type __s8 = crate::ctypes::c_schar;
4 pub type __u8 = crate::ctypes::c_uchar;
5 pub type __s16 = crate::ctypes::c_short;
6 pub type __u16 = crate::ctypes::c_ushort;
7 pub type __s32 = crate::ctypes::c_int;
8 pub type __u32 = crate::ctypes::c_uint;
9 pub type __s64 = crate::ctypes::c_longlong;
10 pub type __u64 = crate::ctypes::c_ulonglong;
11 pub type __kernel_key_t = crate::ctypes::c_int;
12 pub type __kernel_mqd_t = crate::ctypes::c_int;
13 pub type __kernel_size_t = crate::ctypes::c_uint;
14 pub type __kernel_ssize_t = crate::ctypes::c_int;
15 pub type __kernel_ptrdiff_t = crate::ctypes::c_long;
16 pub type __kernel_ipc_pid_t = crate::ctypes::c_ushort;
17 pub type __kernel_uid_t = crate::ctypes::c_ushort;
18 pub type __kernel_gid_t = crate::ctypes::c_ushort;
19 pub type __kernel_mode_t = crate::ctypes::c_ushort;
20 pub type __kernel_daddr_t = crate::ctypes::c_long;
21 pub type __kernel_old_dev_t = crate::ctypes::c_ushort;
22 pub type __kernel_long_t = crate::ctypes::c_long;
23 pub type __kernel_ulong_t = crate::ctypes::c_ulong;
24 pub type __kernel_ino_t = __kernel_ulong_t;
25 pub type __kernel_pid_t = crate::ctypes::c_int;
26 pub type __kernel_suseconds_t = __kernel_long_t;
27 pub type __kernel_uid32_t = crate::ctypes::c_uint;
28 pub type __kernel_gid32_t = crate::ctypes::c_uint;
29 pub type __kernel_old_uid_t = __kernel_uid_t;
30 pub type __kernel_old_gid_t = __kernel_gid_t;
31 pub type __kernel_off_t = __kernel_long_t;
32 pub type __kernel_loff_t = crate::ctypes::c_longlong;
33 pub type __kernel_old_time_t = __kernel_long_t;
34 pub type __kernel_time_t = __kernel_long_t;
35 pub type __kernel_time64_t = crate::ctypes::c_longlong;
36 pub type __kernel_clock_t = __kernel_long_t;
37 pub type __kernel_timer_t = crate::ctypes::c_int;
38 pub type __kernel_clockid_t = crate::ctypes::c_int;
39 pub type __kernel_caddr_t = *mut crate::ctypes::c_char;
40 pub type __kernel_uid16_t = crate::ctypes::c_ushort;
41 pub type __kernel_gid16_t = crate::ctypes::c_ushort;
42 pub type __le16 = __u16;
43 pub type __be16 = __u16;
44 pub type __le32 = __u32;
45 pub type __be32 = __u32;
46 pub type __le64 = __u64;
47 pub type __be64 = __u64;
48 pub type __sum16 = __u16;
49 pub type __wsum = __u32;
50 pub type __poll_t = crate::ctypes::c_uint;
51 pub type __kernel_sa_family_t = crate::ctypes::c_ushort;
52 pub type socklen_t = crate::ctypes::c_uint;
53 #[repr(C)]
54 #[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
55 pub struct __BindgenBitfieldUnit<Storage> {
56 storage: Storage,
57 }
58 #[repr(C)]
59 #[derive(Default)]
60 pub struct __IncompleteArrayField<T>(::core::marker::PhantomData<T>, [T; 0]);
61 #[repr(C)]
62 pub struct __BindgenUnionField<T>(::core::marker::PhantomData<T>);
63 #[repr(C)]
64 #[derive(Copy, Clone)]
65 pub struct __kernel_sockaddr_storage {
66 pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1,
67 }
68 #[repr(C)]
69 #[derive(Debug, Copy, Clone)]
70 pub struct __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 {
71 pub ss_family: __kernel_sa_family_t,
72 pub __data: [crate::ctypes::c_char; 126usize],
73 }
74 #[repr(C)]
75 #[derive(Debug, Copy, Clone)]
76 pub struct in_addr {
77 pub s_addr: __be32,
78 }
79 #[repr(C)]
80 #[derive(Debug, Copy, Clone)]
81 pub struct ip_mreq {
82 pub imr_multiaddr: in_addr,
83 pub imr_interface: in_addr,
84 }
85 #[repr(C)]
86 #[derive(Debug, Copy, Clone)]
87 pub struct ip_mreqn {
88 pub imr_multiaddr: in_addr,
89 pub imr_address: in_addr,
90 pub imr_ifindex: crate::ctypes::c_int,
91 }
92 #[repr(C)]
93 #[derive(Debug, Copy, Clone)]
94 pub struct ip_mreq_source {
95 pub imr_multiaddr: __be32,
96 pub imr_interface: __be32,
97 pub imr_sourceaddr: __be32,
98 }
99 #[repr(C)]
100 pub struct ip_msfilter {
101 pub imsf_multiaddr: __be32,
102 pub imsf_interface: __be32,
103 pub imsf_fmode: __u32,
104 pub imsf_numsrc: __u32,
105 pub __bindgen_anon_1: ip_msfilter__bindgen_ty_1,
106 }
107 #[repr(C)]
108 pub struct ip_msfilter__bindgen_ty_1 {
109 pub imsf_slist: __BindgenUnionField<[__be32; 1usize]>,
110 pub __bindgen_anon_1: __BindgenUnionField<ip_msfilter__bindgen_ty_1__bindgen_ty_1>,
111 pub bindgen_union_field: u32,
112 }
113 #[repr(C)]
114 #[derive(Debug)]
115 pub struct ip_msfilter__bindgen_ty_1__bindgen_ty_1 {
116 pub __empty_imsf_slist_flex: ip_msfilter__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1,
117 pub imsf_slist_flex: __IncompleteArrayField<__be32>,
118 }
119 #[repr(C)]
120 #[derive(Debug, Copy, Clone)]
121 pub struct ip_msfilter__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {}
122 #[repr(C)]
123 #[derive(Copy, Clone)]
124 pub struct group_req {
125 pub gr_interface: __u32,
126 pub gr_group: __kernel_sockaddr_storage,
127 }
128 #[repr(C)]
129 #[derive(Copy, Clone)]
130 pub struct group_source_req {
131 pub gsr_interface: __u32,
132 pub gsr_group: __kernel_sockaddr_storage,
133 pub gsr_source: __kernel_sockaddr_storage,
134 }
135 #[repr(C)]
136 pub struct group_filter {
137 pub __bindgen_anon_1: group_filter__bindgen_ty_1,
138 }
139 #[repr(C)]
140 pub struct group_filter__bindgen_ty_1 {
141 pub __bindgen_anon_1: __BindgenUnionField<group_filter__bindgen_ty_1__bindgen_ty_1>,
142 pub __bindgen_anon_2: __BindgenUnionField<group_filter__bindgen_ty_1__bindgen_ty_2>,
143 pub bindgen_union_field: [u32; 67usize],
144 }
145 #[repr(C)]
146 #[derive(Copy, Clone)]
147 pub struct group_filter__bindgen_ty_1__bindgen_ty_1 {
148 pub gf_interface_aux: __u32,
149 pub gf_group_aux: __kernel_sockaddr_storage,
150 pub gf_fmode_aux: __u32,
151 pub gf_numsrc_aux: __u32,
152 pub gf_slist: [__kernel_sockaddr_storage; 1usize],
153 }
154 #[repr(C)]
155 pub struct group_filter__bindgen_ty_1__bindgen_ty_2 {
156 pub gf_interface: __u32,
157 pub gf_group: __kernel_sockaddr_storage,
158 pub gf_fmode: __u32,
159 pub gf_numsrc: __u32,
160 pub gf_slist_flex: __IncompleteArrayField<__kernel_sockaddr_storage>,
161 }
162 #[repr(C)]
163 #[derive(Debug, Copy, Clone)]
164 pub struct in_pktinfo {
165 pub ipi_ifindex: crate::ctypes::c_int,
166 pub ipi_spec_dst: in_addr,
167 pub ipi_addr: in_addr,
168 }
169 #[repr(C)]
170 #[derive(Debug, Copy, Clone)]
171 pub struct sockaddr_in {
172 pub sin_family: __kernel_sa_family_t,
173 pub sin_port: __be16,
174 pub sin_addr: in_addr,
175 pub __pad: [crate::ctypes::c_uchar; 8usize],
176 }
177 #[repr(C)]
178 #[derive(Copy, Clone)]
179 pub struct iphdr {
180 pub _bitfield_align_1: [u8; 0],
181 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
182 pub tos: __u8,
183 pub tot_len: __be16,
184 pub id: __be16,
185 pub frag_off: __be16,
186 pub ttl: __u8,
187 pub protocol: __u8,
188 pub check: __sum16,
189 pub __bindgen_anon_1: iphdr__bindgen_ty_1,
190 }
191 #[repr(C)]
192 #[derive(Debug, Copy, Clone)]
193 pub struct iphdr__bindgen_ty_1__bindgen_ty_1 {
194 pub saddr: __be32,
195 pub daddr: __be32,
196 }
197 #[repr(C)]
198 #[derive(Debug, Copy, Clone)]
199 pub struct iphdr__bindgen_ty_1__bindgen_ty_2 {
200 pub saddr: __be32,
201 pub daddr: __be32,
202 }
203 #[repr(C)]
204 #[derive(Debug)]
205 pub struct ip_auth_hdr {
206 pub nexthdr: __u8,
207 pub hdrlen: __u8,
208 pub reserved: __be16,
209 pub spi: __be32,
210 pub seq_no: __be32,
211 pub auth_data: __IncompleteArrayField<__u8>,
212 }
213 #[repr(C)]
214 #[derive(Debug)]
215 pub struct ip_esp_hdr {
216 pub spi: __be32,
217 pub seq_no: __be32,
218 pub enc_data: __IncompleteArrayField<__u8>,
219 }
220 #[repr(C)]
221 #[derive(Debug, Copy, Clone)]
222 pub struct ip_comp_hdr {
223 pub nexthdr: __u8,
224 pub flags: __u8,
225 pub cpi: __be16,
226 }
227 #[repr(C)]
228 #[derive(Debug, Copy, Clone)]
229 pub struct ip_beet_phdr {
230 pub nexthdr: __u8,
231 pub hdrlen: __u8,
232 pub padlen: __u8,
233 pub reserved: __u8,
234 }
235 #[repr(C)]
236 #[derive(Copy, Clone)]
237 pub struct in6_addr {
238 pub in6_u: in6_addr__bindgen_ty_1,
239 }
240 #[repr(C)]
241 #[derive(Copy, Clone)]
242 pub struct sockaddr_in6 {
243 pub sin6_family: crate::ctypes::c_ushort,
244 pub sin6_port: __be16,
245 pub sin6_flowinfo: __be32,
246 pub sin6_addr: in6_addr,
247 pub sin6_scope_id: __u32,
248 }
249 #[repr(C)]
250 #[derive(Copy, Clone)]
251 pub struct ipv6_mreq {
252 pub ipv6mr_multiaddr: in6_addr,
253 pub ipv6mr_ifindex: crate::ctypes::c_int,
254 }
255 #[repr(C)]
256 #[derive(Copy, Clone)]
257 pub struct in6_flowlabel_req {
258 pub flr_dst: in6_addr,
259 pub flr_label: __be32,
260 pub flr_action: __u8,
261 pub flr_share: __u8,
262 pub flr_flags: __u16,
263 pub flr_expires: __u16,
264 pub flr_linger: __u16,
265 pub __flr_pad: __u32,
266 }
267 #[repr(C)]
268 #[derive(Copy, Clone)]
269 pub struct in6_pktinfo {
270 pub ipi6_addr: in6_addr,
271 pub ipi6_ifindex: crate::ctypes::c_int,
272 }
273 #[repr(C)]
274 #[derive(Copy, Clone)]
275 pub struct ip6_mtuinfo {
276 pub ip6m_addr: sockaddr_in6,
277 pub ip6m_mtu: __u32,
278 }
279 #[repr(C)]
280 #[derive(Copy, Clone)]
281 pub struct in6_ifreq {
282 pub ifr6_addr: in6_addr,
283 pub ifr6_prefixlen: __u32,
284 pub ifr6_ifindex: crate::ctypes::c_int,
285 }
286 #[repr(C)]
287 #[derive(Debug, Copy, Clone)]
288 pub struct ipv6_rt_hdr {
289 pub nexthdr: __u8,
290 pub hdrlen: __u8,
291 pub type_: __u8,
292 pub segments_left: __u8,
293 }
294 #[repr(C, packed)]
295 #[derive(Debug, Copy, Clone)]
296 pub struct ipv6_opt_hdr {
297 pub nexthdr: __u8,
298 pub hdrlen: __u8,
299 }
300 #[repr(C)]
301 pub struct rt0_hdr {
302 pub rt_hdr: ipv6_rt_hdr,
303 pub reserved: __u32,
304 pub addr: __IncompleteArrayField<in6_addr>,
305 }
306 #[repr(C)]
307 #[derive(Copy, Clone)]
308 pub struct rt2_hdr {
309 pub rt_hdr: ipv6_rt_hdr,
310 pub reserved: __u32,
311 pub addr: in6_addr,
312 }
313 #[repr(C, packed)]
314 #[derive(Copy, Clone)]
315 pub struct ipv6_destopt_hao {
316 pub type_: __u8,
317 pub length: __u8,
318 pub addr: in6_addr,
319 }
320 #[repr(C)]
321 #[derive(Copy, Clone)]
322 pub struct ipv6hdr {
323 pub _bitfield_align_1: [u8; 0],
324 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
325 pub flow_lbl: [__u8; 3usize],
326 pub payload_len: __be16,
327 pub nexthdr: __u8,
328 pub hop_limit: __u8,
329 pub __bindgen_anon_1: ipv6hdr__bindgen_ty_1,
330 }
331 #[repr(C)]
332 #[derive(Copy, Clone)]
333 pub struct ipv6hdr__bindgen_ty_1__bindgen_ty_1 {
334 pub saddr: in6_addr,
335 pub daddr: in6_addr,
336 }
337 #[repr(C)]
338 #[derive(Copy, Clone)]
339 pub struct ipv6hdr__bindgen_ty_1__bindgen_ty_2 {
340 pub saddr: in6_addr,
341 pub daddr: in6_addr,
342 }
343 #[repr(C)]
344 #[derive(Debug, Copy, Clone)]
345 pub struct tcphdr {
346 pub source: __be16,
347 pub dest: __be16,
348 pub seq: __be32,
349 pub ack_seq: __be32,
350 pub _bitfield_align_1: [u8; 0],
351 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>,
352 pub window: __be16,
353 pub check: __sum16,
354 pub urg_ptr: __be16,
355 }
356 #[repr(C)]
357 #[derive(Debug, Copy, Clone)]
358 pub struct tcp_repair_opt {
359 pub opt_code: __u32,
360 pub opt_val: __u32,
361 }
362 #[repr(C)]
363 #[derive(Debug, Copy, Clone)]
364 pub struct tcp_repair_window {
365 pub snd_wl1: __u32,
366 pub snd_wnd: __u32,
367 pub max_window: __u32,
368 pub rcv_wnd: __u32,
369 pub rcv_wup: __u32,
370 }
371 #[repr(C)]
372 #[derive(Debug, Copy, Clone)]
373 pub struct tcp_info {
374 pub tcpi_state: __u8,
375 pub tcpi_ca_state: __u8,
376 pub tcpi_retransmits: __u8,
377 pub tcpi_probes: __u8,
378 pub tcpi_backoff: __u8,
379 pub tcpi_options: __u8,
380 pub _bitfield_align_1: [u8; 0],
381 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>,
382 pub tcpi_rto: __u32,
383 pub tcpi_ato: __u32,
384 pub tcpi_snd_mss: __u32,
385 pub tcpi_rcv_mss: __u32,
386 pub tcpi_unacked: __u32,
387 pub tcpi_sacked: __u32,
388 pub tcpi_lost: __u32,
389 pub tcpi_retrans: __u32,
390 pub tcpi_fackets: __u32,
391 pub tcpi_last_data_sent: __u32,
392 pub tcpi_last_ack_sent: __u32,
393 pub tcpi_last_data_recv: __u32,
394 pub tcpi_last_ack_recv: __u32,
395 pub tcpi_pmtu: __u32,
396 pub tcpi_rcv_ssthresh: __u32,
397 pub tcpi_rtt: __u32,
398 pub tcpi_rttvar: __u32,
399 pub tcpi_snd_ssthresh: __u32,
400 pub tcpi_snd_cwnd: __u32,
401 pub tcpi_advmss: __u32,
402 pub tcpi_reordering: __u32,
403 pub tcpi_rcv_rtt: __u32,
404 pub tcpi_rcv_space: __u32,
405 pub tcpi_total_retrans: __u32,
406 pub tcpi_pacing_rate: __u64,
407 pub tcpi_max_pacing_rate: __u64,
408 pub tcpi_bytes_acked: __u64,
409 pub tcpi_bytes_received: __u64,
410 pub tcpi_segs_out: __u32,
411 pub tcpi_segs_in: __u32,
412 pub tcpi_notsent_bytes: __u32,
413 pub tcpi_min_rtt: __u32,
414 pub tcpi_data_segs_in: __u32,
415 pub tcpi_data_segs_out: __u32,
416 pub tcpi_delivery_rate: __u64,
417 pub tcpi_busy_time: __u64,
418 pub tcpi_rwnd_limited: __u64,
419 pub tcpi_sndbuf_limited: __u64,
420 pub tcpi_delivered: __u32,
421 pub tcpi_delivered_ce: __u32,
422 pub tcpi_bytes_sent: __u64,
423 pub tcpi_bytes_retrans: __u64,
424 pub tcpi_dsack_dups: __u32,
425 pub tcpi_reord_seen: __u32,
426 pub tcpi_rcv_ooopack: __u32,
427 pub tcpi_snd_wnd: __u32,
428 pub tcpi_rcv_wnd: __u32,
429 pub tcpi_rehash: __u32,
430 }
431 #[repr(C)]
432 #[derive(Copy, Clone)]
433 pub struct tcp_md5sig {
434 pub tcpm_addr: __kernel_sockaddr_storage,
435 pub tcpm_flags: __u8,
436 pub tcpm_prefixlen: __u8,
437 pub tcpm_keylen: __u16,
438 pub tcpm_ifindex: crate::ctypes::c_int,
439 pub tcpm_key: [__u8; 80usize],
440 }
441 #[repr(C)]
442 #[derive(Debug, Copy, Clone)]
443 pub struct tcp_diag_md5sig {
444 pub tcpm_family: __u8,
445 pub tcpm_prefixlen: __u8,
446 pub tcpm_keylen: __u16,
447 pub tcpm_addr: [__be32; 4usize],
448 pub tcpm_key: [__u8; 80usize],
449 }
450 #[repr(C)]
451 #[derive(Debug, Copy, Clone)]
452 pub struct tcp_zerocopy_receive {
453 pub address: __u64,
454 pub length: __u32,
455 pub recv_skip_hint: __u32,
456 pub inq: __u32,
457 pub err: __s32,
458 pub copybuf_address: __u64,
459 pub copybuf_len: __s32,
460 pub flags: __u32,
461 pub msg_control: __u64,
462 pub msg_controllen: __u64,
463 pub msg_flags: __u32,
464 pub reserved: __u32,
465 }
466 #[repr(C)]
467 #[derive(Debug, Copy, Clone)]
468 pub struct sockaddr_un {
469 pub sun_family: __kernel_sa_family_t,
470 pub sun_path: [crate::ctypes::c_char; 108usize],
471 }
472 #[repr(C)]
473 #[derive(Copy, Clone)]
474 pub struct sockaddr {
475 pub __storage: __kernel_sockaddr_storage,
476 }
477 #[repr(C)]
478 #[derive(Debug, Copy, Clone)]
479 pub struct sync_serial_settings {
480 pub clock_rate: crate::ctypes::c_uint,
481 pub clock_type: crate::ctypes::c_uint,
482 pub loopback: crate::ctypes::c_ushort,
483 }
484 #[repr(C)]
485 #[derive(Debug, Copy, Clone)]
486 pub struct te1_settings {
487 pub clock_rate: crate::ctypes::c_uint,
488 pub clock_type: crate::ctypes::c_uint,
489 pub loopback: crate::ctypes::c_ushort,
490 pub slot_map: crate::ctypes::c_uint,
491 }
492 #[repr(C)]
493 #[derive(Debug, Copy, Clone)]
494 pub struct raw_hdlc_proto {
495 pub encoding: crate::ctypes::c_ushort,
496 pub parity: crate::ctypes::c_ushort,
497 }
498 #[repr(C)]
499 #[derive(Debug, Copy, Clone)]
500 pub struct fr_proto {
501 pub t391: crate::ctypes::c_uint,
502 pub t392: crate::ctypes::c_uint,
503 pub n391: crate::ctypes::c_uint,
504 pub n392: crate::ctypes::c_uint,
505 pub n393: crate::ctypes::c_uint,
506 pub lmi: crate::ctypes::c_ushort,
507 pub dce: crate::ctypes::c_ushort,
508 }
509 #[repr(C)]
510 #[derive(Debug, Copy, Clone)]
511 pub struct fr_proto_pvc {
512 pub dlci: crate::ctypes::c_uint,
513 }
514 #[repr(C)]
515 #[derive(Debug, Copy, Clone)]
516 pub struct fr_proto_pvc_info {
517 pub dlci: crate::ctypes::c_uint,
518 pub master: [crate::ctypes::c_char; 16usize],
519 }
520 #[repr(C)]
521 #[derive(Debug, Copy, Clone)]
522 pub struct cisco_proto {
523 pub interval: crate::ctypes::c_uint,
524 pub timeout: crate::ctypes::c_uint,
525 }
526 #[repr(C)]
527 #[derive(Debug, Copy, Clone)]
528 pub struct x25_hdlc_proto {
529 pub dce: crate::ctypes::c_ushort,
530 pub modulo: crate::ctypes::c_uint,
531 pub window: crate::ctypes::c_uint,
532 pub t1: crate::ctypes::c_uint,
533 pub t2: crate::ctypes::c_uint,
534 pub n2: crate::ctypes::c_uint,
535 }
536 #[repr(C)]
537 #[derive(Debug, Copy, Clone)]
538 pub struct ifmap {
539 pub mem_start: crate::ctypes::c_ulong,
540 pub mem_end: crate::ctypes::c_ulong,
541 pub base_addr: crate::ctypes::c_ushort,
542 pub irq: crate::ctypes::c_uchar,
543 pub dma: crate::ctypes::c_uchar,
544 pub port: crate::ctypes::c_uchar,
545 }
546 #[repr(C)]
547 #[derive(Copy, Clone)]
548 pub struct if_settings {
549 pub type_: crate::ctypes::c_uint,
550 pub size: crate::ctypes::c_uint,
551 pub ifs_ifsu: if_settings__bindgen_ty_1,
552 }
553 #[repr(C)]
554 #[derive(Copy, Clone)]
555 pub struct ifreq {
556 pub ifr_ifrn: ifreq__bindgen_ty_1,
557 pub ifr_ifru: ifreq__bindgen_ty_2,
558 }
559 #[repr(C)]
560 #[derive(Copy, Clone)]
561 pub struct ifconf {
562 pub ifc_len: crate::ctypes::c_int,
563 pub ifc_ifcu: ifconf__bindgen_ty_1,
564 }
565 #[repr(C)]
566 pub struct xt_entry_match {
567 pub u: xt_entry_match__bindgen_ty_1,
568 pub data: __IncompleteArrayField<crate::ctypes::c_uchar>,
569 }
570 #[repr(C)]
571 #[derive(Debug, Copy, Clone)]
572 pub struct xt_entry_match__bindgen_ty_1__bindgen_ty_1 {
573 pub match_size: __u16,
574 pub name: [crate::ctypes::c_char; 29usize],
575 pub revision: __u8,
576 }
577 #[repr(C)]
578 #[derive(Debug, Copy, Clone)]
579 pub struct xt_entry_match__bindgen_ty_1__bindgen_ty_2 {
580 pub match_size: __u16,
581 pub match_: *mut xt_match,
582 }
583 #[repr(C)]
584 pub struct xt_entry_target {
585 pub u: xt_entry_target__bindgen_ty_1,
586 pub data: __IncompleteArrayField<crate::ctypes::c_uchar>,
587 }
588 #[repr(C)]
589 #[derive(Debug, Copy, Clone)]
590 pub struct xt_entry_target__bindgen_ty_1__bindgen_ty_1 {
591 pub target_size: __u16,
592 pub name: [crate::ctypes::c_char; 29usize],
593 pub revision: __u8,
594 }
595 #[repr(C)]
596 #[derive(Debug, Copy, Clone)]
597 pub struct xt_entry_target__bindgen_ty_1__bindgen_ty_2 {
598 pub target_size: __u16,
599 pub target: *mut xt_target,
600 }
601 #[repr(C)]
602 pub struct xt_standard_target {
603 pub target: xt_entry_target,
604 pub verdict: crate::ctypes::c_int,
605 }
606 #[repr(C)]
607 pub struct xt_error_target {
608 pub target: xt_entry_target,
609 pub errorname: [crate::ctypes::c_char; 30usize],
610 }
611 #[repr(C)]
612 #[derive(Debug, Copy, Clone)]
613 pub struct xt_get_revision {
614 pub name: [crate::ctypes::c_char; 29usize],
615 pub revision: __u8,
616 }
617 #[repr(C)]
618 #[derive(Debug, Copy, Clone)]
619 pub struct _xt_align {
620 pub u8_: __u8,
621 pub u16_: __u16,
622 pub u32_: __u32,
623 pub u64_: __u64,
624 }
625 #[repr(C)]
626 #[derive(Debug, Copy, Clone)]
627 pub struct xt_counters {
628 pub pcnt: __u64,
629 pub bcnt: __u64,
630 }
631 #[repr(C)]
632 #[derive(Debug)]
633 pub struct xt_counters_info {
634 pub name: [crate::ctypes::c_char; 32usize],
635 pub num_counters: crate::ctypes::c_uint,
636 pub counters: __IncompleteArrayField<xt_counters>,
637 }
638 #[repr(C)]
639 #[derive(Debug, Copy, Clone)]
640 pub struct xt_tcp {
641 pub spts: [__u16; 2usize],
642 pub dpts: [__u16; 2usize],
643 pub option: __u8,
644 pub flg_mask: __u8,
645 pub flg_cmp: __u8,
646 pub invflags: __u8,
647 }
648 #[repr(C)]
649 #[derive(Debug, Copy, Clone)]
650 pub struct xt_udp {
651 pub spts: [__u16; 2usize],
652 pub dpts: [__u16; 2usize],
653 pub invflags: __u8,
654 }
655 #[repr(C)]
656 #[derive(Copy, Clone)]
657 pub struct ip6t_ip6 {
658 pub src: in6_addr,
659 pub dst: in6_addr,
660 pub smsk: in6_addr,
661 pub dmsk: in6_addr,
662 pub iniface: [crate::ctypes::c_char; 16usize],
663 pub outiface: [crate::ctypes::c_char; 16usize],
664 pub iniface_mask: [crate::ctypes::c_uchar; 16usize],
665 pub outiface_mask: [crate::ctypes::c_uchar; 16usize],
666 pub proto: __u16,
667 pub tos: __u8,
668 pub flags: __u8,
669 pub invflags: __u8,
670 }
671 #[repr(C)]
672 pub struct ip6t_entry {
673 pub ipv6: ip6t_ip6,
674 pub nfcache: crate::ctypes::c_uint,
675 pub target_offset: __u16,
676 pub next_offset: __u16,
677 pub comefrom: crate::ctypes::c_uint,
678 pub counters: xt_counters,
679 pub elems: __IncompleteArrayField<crate::ctypes::c_uchar>,
680 }
681 #[repr(C)]
682 pub struct ip6t_standard {
683 pub entry: ip6t_entry,
684 pub target: xt_standard_target,
685 }
686 #[repr(C)]
687 pub struct ip6t_error {
688 pub entry: ip6t_entry,
689 pub target: xt_error_target,
690 }
691 #[repr(C)]
692 #[derive(Debug, Copy, Clone)]
693 pub struct ip6t_icmp {
694 pub type_: __u8,
695 pub code: [__u8; 2usize],
696 pub invflags: __u8,
697 }
698 #[repr(C)]
699 #[derive(Debug, Copy, Clone)]
700 pub struct ip6t_getinfo {
701 pub name: [crate::ctypes::c_char; 32usize],
702 pub valid_hooks: crate::ctypes::c_uint,
703 pub hook_entry: [crate::ctypes::c_uint; 5usize],
704 pub underflow: [crate::ctypes::c_uint; 5usize],
705 pub num_entries: crate::ctypes::c_uint,
706 pub size: crate::ctypes::c_uint,
707 }
708 #[repr(C)]
709 pub struct ip6t_replace {
710 pub name: [crate::ctypes::c_char; 32usize],
711 pub valid_hooks: crate::ctypes::c_uint,
712 pub num_entries: crate::ctypes::c_uint,
713 pub size: crate::ctypes::c_uint,
714 pub hook_entry: [crate::ctypes::c_uint; 5usize],
715 pub underflow: [crate::ctypes::c_uint; 5usize],
716 pub num_counters: crate::ctypes::c_uint,
717 pub counters: *mut xt_counters,
718 pub entries: __IncompleteArrayField<ip6t_entry>,
719 }
720 #[repr(C)]
721 pub struct ip6t_get_entries {
722 pub name: [crate::ctypes::c_char; 32usize],
723 pub size: crate::ctypes::c_uint,
724 pub entrytable: __IncompleteArrayField<ip6t_entry>,
725 }
726 #[repr(C)]
727 #[derive(Debug, Copy, Clone)]
728 pub struct linger {
729 pub l_onoff: crate::ctypes::c_int,
730 pub l_linger: crate::ctypes::c_int,
731 }
732 #[repr(C)]
733 #[derive(Debug, Copy, Clone)]
734 pub struct msghdr {
735 pub msg_name: *mut crate::ctypes::c_void,
736 pub msg_namelen: crate::ctypes::c_int,
737 pub msg_iov: *mut iovec,
738 pub msg_iovlen: usize,
739 pub msg_control: *mut crate::ctypes::c_void,
740 pub msg_controllen: usize,
741 pub msg_flags: crate::ctypes::c_uint,
742 }
743 #[repr(C)]
744 #[derive(Debug, Copy, Clone)]
745 pub struct cmsghdr {
746 pub cmsg_len: usize,
747 pub cmsg_level: crate::ctypes::c_int,
748 pub cmsg_type: crate::ctypes::c_int,
749 }
750 #[repr(C)]
751 #[derive(Debug, Copy, Clone)]
752 pub struct ucred {
753 pub pid: __u32,
754 pub uid: __u32,
755 pub gid: __u32,
756 }
757 #[repr(C)]
758 #[derive(Debug, Copy, Clone)]
759 pub struct mmsghdr {
760 pub msg_hdr: msghdr,
761 pub msg_len: crate::ctypes::c_uint,
762 }
763 #[repr(C)]
764 #[derive(Debug, Copy, Clone)]
765 pub struct xt_match {
766 pub _address: u8,
767 }
768 #[repr(C)]
769 #[derive(Debug, Copy, Clone)]
770 pub struct xt_target {
771 pub _address: u8,
772 }
773 #[repr(C)]
774 #[derive(Debug, Copy, Clone)]
775 pub struct iovec {
776 pub _address: u8,
777 }
778 pub const _K_SS_MAXSIZE: u32 = 128;
779 pub const SOCK_SNDBUF_LOCK: u32 = 1;
780 pub const SOCK_RCVBUF_LOCK: u32 = 2;
781 pub const SOCK_BUF_LOCK_MASK: u32 = 3;
782 pub const SOCK_TXREHASH_DEFAULT: u32 = 255;
783 pub const SOCK_TXREHASH_DISABLED: u32 = 0;
784 pub const SOCK_TXREHASH_ENABLED: u32 = 1;
785 pub const IP_TOS: u32 = 1;
786 pub const IP_TTL: u32 = 2;
787 pub const IP_HDRINCL: u32 = 3;
788 pub const IP_OPTIONS: u32 = 4;
789 pub const IP_ROUTER_ALERT: u32 = 5;
790 pub const IP_RECVOPTS: u32 = 6;
791 pub const IP_RETOPTS: u32 = 7;
792 pub const IP_PKTINFO: u32 = 8;
793 pub const IP_PKTOPTIONS: u32 = 9;
794 pub const IP_MTU_DISCOVER: u32 = 10;
795 pub const IP_RECVERR: u32 = 11;
796 pub const IP_RECVTTL: u32 = 12;
797 pub const IP_RECVTOS: u32 = 13;
798 pub const IP_MTU: u32 = 14;
799 pub const IP_FREEBIND: u32 = 15;
800 pub const IP_IPSEC_POLICY: u32 = 16;
801 pub const IP_XFRM_POLICY: u32 = 17;
802 pub const IP_PASSSEC: u32 = 18;
803 pub const IP_TRANSPARENT: u32 = 19;
804 pub const IP_RECVRETOPTS: u32 = 7;
805 pub const IP_ORIGDSTADDR: u32 = 20;
806 pub const IP_RECVORIGDSTADDR: u32 = 20;
807 pub const IP_MINTTL: u32 = 21;
808 pub const IP_NODEFRAG: u32 = 22;
809 pub const IP_CHECKSUM: u32 = 23;
810 pub const IP_BIND_ADDRESS_NO_PORT: u32 = 24;
811 pub const IP_RECVFRAGSIZE: u32 = 25;
812 pub const IP_RECVERR_RFC4884: u32 = 26;
813 pub const IP_PMTUDISC_DONT: u32 = 0;
814 pub const IP_PMTUDISC_WANT: u32 = 1;
815 pub const IP_PMTUDISC_DO: u32 = 2;
816 pub const IP_PMTUDISC_PROBE: u32 = 3;
817 pub const IP_PMTUDISC_INTERFACE: u32 = 4;
818 pub const IP_PMTUDISC_OMIT: u32 = 5;
819 pub const IP_MULTICAST_IF: u32 = 32;
820 pub const IP_MULTICAST_TTL: u32 = 33;
821 pub const IP_MULTICAST_LOOP: u32 = 34;
822 pub const IP_ADD_MEMBERSHIP: u32 = 35;
823 pub const IP_DROP_MEMBERSHIP: u32 = 36;
824 pub const IP_UNBLOCK_SOURCE: u32 = 37;
825 pub const IP_BLOCK_SOURCE: u32 = 38;
826 pub const IP_ADD_SOURCE_MEMBERSHIP: u32 = 39;
827 pub const IP_DROP_SOURCE_MEMBERSHIP: u32 = 40;
828 pub const IP_MSFILTER: u32 = 41;
829 pub const MCAST_JOIN_GROUP: u32 = 42;
830 pub const MCAST_BLOCK_SOURCE: u32 = 43;
831 pub const MCAST_UNBLOCK_SOURCE: u32 = 44;
832 pub const MCAST_LEAVE_GROUP: u32 = 45;
833 pub const MCAST_JOIN_SOURCE_GROUP: u32 = 46;
834 pub const MCAST_LEAVE_SOURCE_GROUP: u32 = 47;
835 pub const MCAST_MSFILTER: u32 = 48;
836 pub const IP_MULTICAST_ALL: u32 = 49;
837 pub const IP_UNICAST_IF: u32 = 50;
838 pub const IP_LOCAL_PORT_RANGE: u32 = 51;
839 pub const MCAST_EXCLUDE: u32 = 0;
840 pub const MCAST_INCLUDE: u32 = 1;
841 pub const IP_DEFAULT_MULTICAST_TTL: u32 = 1;
842 pub const IP_DEFAULT_MULTICAST_LOOP: u32 = 1;
843 pub const __SOCK_SIZE__: u32 = 16;
844 pub const IN_CLASSA_NET: u32 = 4278190080;
845 pub const IN_CLASSA_NSHIFT: u32 = 24;
846 pub const IN_CLASSA_HOST: u32 = 16777215;
847 pub const IN_CLASSA_MAX: u32 = 128;
848 pub const IN_CLASSB_NET: u32 = 4294901760;
849 pub const IN_CLASSB_NSHIFT: u32 = 16;
850 pub const IN_CLASSB_HOST: u32 = 65535;
851 pub const IN_CLASSB_MAX: u32 = 65536;
852 pub const IN_CLASSC_NET: u32 = 4294967040;
853 pub const IN_CLASSC_NSHIFT: u32 = 8;
854 pub const IN_CLASSC_HOST: u32 = 255;
855 pub const IN_MULTICAST_NET: u32 = 3758096384;
856 pub const IN_CLASSE_NET: u32 = 4294967295;
857 pub const IN_CLASSE_NSHIFT: u32 = 0;
858 pub const IN_LOOPBACKNET: u32 = 127;
859 pub const INADDR_LOOPBACK: u32 = 2130706433;
860 pub const INADDR_UNSPEC_GROUP: u32 = 3758096384;
861 pub const INADDR_ALLHOSTS_GROUP: u32 = 3758096385;
862 pub const INADDR_ALLRTRS_GROUP: u32 = 3758096386;
863 pub const INADDR_ALLSNOOPERS_GROUP: u32 = 3758096490;
864 pub const INADDR_MAX_LOCAL_GROUP: u32 = 3758096639;
865 pub const __BIG_ENDIAN: u32 = 4321;
866 pub const ASI_NULL1: u32 = 0;
867 pub const ASI_NULL2: u32 = 1;
868 pub const ASI_CONTROL: u32 = 2;
869 pub const ASI_SEGMAP: u32 = 3;
870 pub const ASI_PTE: u32 = 4;
871 pub const ASI_HWFLUSHSEG: u32 = 5;
872 pub const ASI_HWFLUSHPAGE: u32 = 6;
873 pub const ASI_REGMAP: u32 = 6;
874 pub const ASI_HWFLUSHCONTEXT: u32 = 7;
875 pub const ASI_USERTXT: u32 = 8;
876 pub const ASI_KERNELTXT: u32 = 9;
877 pub const ASI_USERDATA: u32 = 10;
878 pub const ASI_KERNELDATA: u32 = 11;
879 pub const ASI_FLUSHSEG: u32 = 12;
880 pub const ASI_FLUSHPG: u32 = 13;
881 pub const ASI_FLUSHCTX: u32 = 14;
882 pub const ASI_M_RES00: u32 = 0;
883 pub const ASI_M_UNA01: u32 = 1;
884 pub const ASI_M_MXCC: u32 = 2;
885 pub const ASI_M_FLUSH_PROBE: u32 = 3;
886 pub const ASI_M_MMUREGS: u32 = 4;
887 pub const ASI_M_TLBDIAG: u32 = 5;
888 pub const ASI_M_DIAGS: u32 = 6;
889 pub const ASI_M_IODIAG: u32 = 7;
890 pub const ASI_M_USERTXT: u32 = 8;
891 pub const ASI_M_KERNELTXT: u32 = 9;
892 pub const ASI_M_USERDATA: u32 = 10;
893 pub const ASI_M_KERNELDATA: u32 = 11;
894 pub const ASI_M_TXTC_TAG: u32 = 12;
895 pub const ASI_M_TXTC_DATA: u32 = 13;
896 pub const ASI_M_DATAC_TAG: u32 = 14;
897 pub const ASI_M_DATAC_DATA: u32 = 15;
898 pub const ASI_M_FLUSH_PAGE: u32 = 16;
899 pub const ASI_M_FLUSH_SEG: u32 = 17;
900 pub const ASI_M_FLUSH_REGION: u32 = 18;
901 pub const ASI_M_FLUSH_CTX: u32 = 19;
902 pub const ASI_M_FLUSH_USER: u32 = 20;
903 pub const ASI_M_BCOPY: u32 = 23;
904 pub const ASI_M_IFLUSH_PAGE: u32 = 24;
905 pub const ASI_M_IFLUSH_SEG: u32 = 25;
906 pub const ASI_M_IFLUSH_REGION: u32 = 26;
907 pub const ASI_M_IFLUSH_CTX: u32 = 27;
908 pub const ASI_M_IFLUSH_USER: u32 = 28;
909 pub const ASI_M_BFILL: u32 = 31;
910 pub const ASI_M_BYPASS: u32 = 32;
911 pub const ASI_M_FBMEM: u32 = 41;
912 pub const ASI_M_VMEUS: u32 = 42;
913 pub const ASI_M_VMEPS: u32 = 43;
914 pub const ASI_M_VMEUT: u32 = 44;
915 pub const ASI_M_VMEPT: u32 = 45;
916 pub const ASI_M_SBUS: u32 = 46;
917 pub const ASI_M_CTL: u32 = 47;
918 pub const ASI_M_FLUSH_IWHOLE: u32 = 49;
919 pub const ASI_M_IC_FLCLEAR: u32 = 54;
920 pub const ASI_M_DC_FLCLEAR: u32 = 55;
921 pub const ASI_M_DCDR: u32 = 57;
922 pub const ASI_M_VIKING_TMP1: u32 = 64;
923 pub const ASI_M_ACTION: u32 = 76;
924 pub const ASI_LEON_NOCACHE: u32 = 1;
925 pub const ASI_LEON_DCACHE_MISS: u32 = 1;
926 pub const ASI_LEON_CACHEREGS: u32 = 2;
927 pub const ASI_LEON_IFLUSH: u32 = 16;
928 pub const ASI_LEON_DFLUSH: u32 = 17;
929 pub const ASI_LEON_MMUFLUSH: u32 = 24;
930 pub const ASI_LEON_MMUREGS: u32 = 25;
931 pub const ASI_LEON_BYPASS: u32 = 28;
932 pub const ASI_LEON_FLUSH_PAGE: u32 = 16;
933 pub const ASI_N: u32 = 4;
934 pub const ASI_NL: u32 = 12;
935 pub const ASI_AIUP: u32 = 16;
936 pub const ASI_AIUS: u32 = 17;
937 pub const ASI_AIUPL: u32 = 24;
938 pub const ASI_AIUSL: u32 = 25;
939 pub const ASI_P: u32 = 128;
940 pub const ASI_S: u32 = 129;
941 pub const ASI_PNF: u32 = 130;
942 pub const ASI_SNF: u32 = 131;
943 pub const ASI_PL: u32 = 136;
944 pub const ASI_SL: u32 = 137;
945 pub const ASI_PNFL: u32 = 138;
946 pub const ASI_SNFL: u32 = 139;
947 pub const ASI_MCD_PRIV_PRIMARY: u32 = 2;
948 pub const ASI_MCD_REAL: u32 = 5;
949 pub const ASI_PHYS_USE_EC: u32 = 20;
950 pub const ASI_PHYS_BYPASS_EC_E: u32 = 21;
951 pub const ASI_BLK_AIUP_4V: u32 = 22;
952 pub const ASI_BLK_AIUS_4V: u32 = 23;
953 pub const ASI_PHYS_USE_EC_L: u32 = 28;
954 pub const ASI_PHYS_BYPASS_EC_E_L: u32 = 29;
955 pub const ASI_BLK_AIUP_L_4V: u32 = 30;
956 pub const ASI_BLK_AIUS_L_4V: u32 = 31;
957 pub const ASI_SCRATCHPAD: u32 = 32;
958 pub const ASI_MMU: u32 = 33;
959 pub const ASI_BLK_INIT_QUAD_LDD_AIUS: u32 = 35;
960 pub const ASI_NUCLEUS_QUAD_LDD: u32 = 36;
961 pub const ASI_QUEUE: u32 = 37;
962 pub const ASI_QUAD_LDD_PHYS_4V: u32 = 38;
963 pub const ASI_NUCLEUS_QUAD_LDD_L: u32 = 44;
964 pub const ASI_QUAD_LDD_PHYS_L_4V: u32 = 46;
965 pub const ASI_PCACHE_DATA_STATUS: u32 = 48;
966 pub const ASI_PCACHE_DATA: u32 = 49;
967 pub const ASI_PCACHE_TAG: u32 = 50;
968 pub const ASI_PCACHE_SNOOP_TAG: u32 = 51;
969 pub const ASI_QUAD_LDD_PHYS: u32 = 52;
970 pub const ASI_WCACHE_VALID_BITS: u32 = 56;
971 pub const ASI_WCACHE_DATA: u32 = 57;
972 pub const ASI_WCACHE_TAG: u32 = 58;
973 pub const ASI_WCACHE_SNOOP_TAG: u32 = 59;
974 pub const ASI_QUAD_LDD_PHYS_L: u32 = 60;
975 pub const ASI_SRAM_FAST_INIT: u32 = 64;
976 pub const ASI_CORE_AVAILABLE: u32 = 65;
977 pub const ASI_CORE_ENABLE_STAT: u32 = 65;
978 pub const ASI_CORE_ENABLE: u32 = 65;
979 pub const ASI_XIR_STEERING: u32 = 65;
980 pub const ASI_CORE_RUNNING_RW: u32 = 65;
981 pub const ASI_CORE_RUNNING_W1S: u32 = 65;
982 pub const ASI_CORE_RUNNING_W1C: u32 = 65;
983 pub const ASI_CORE_RUNNING_STAT: u32 = 65;
984 pub const ASI_CMT_ERROR_STEERING: u32 = 65;
985 pub const ASI_DCACHE_INVALIDATE: u32 = 66;
986 pub const ASI_DCACHE_UTAG: u32 = 67;
987 pub const ASI_DCACHE_SNOOP_TAG: u32 = 68;
988 pub const ASI_LSU_CONTROL: u32 = 69;
989 pub const ASI_DCU_CONTROL_REG: u32 = 69;
990 pub const ASI_DCACHE_DATA: u32 = 70;
991 pub const ASI_DCACHE_TAG: u32 = 71;
992 pub const ASI_INTR_DISPATCH_STAT: u32 = 72;
993 pub const ASI_INTR_RECEIVE: u32 = 73;
994 pub const ASI_UPA_CONFIG: u32 = 74;
995 pub const ASI_JBUS_CONFIG: u32 = 74;
996 pub const ASI_SAFARI_CONFIG: u32 = 74;
997 pub const ASI_SAFARI_ADDRESS: u32 = 74;
998 pub const ASI_ESTATE_ERROR_EN: u32 = 75;
999 pub const ASI_AFSR: u32 = 76;
1000 pub const ASI_AFAR: u32 = 77;
1001 pub const ASI_EC_TAG_DATA: u32 = 78;
1002 pub const ASI_IMMU: u32 = 80;
1003 pub const ASI_IMMU_TSB_8KB_PTR: u32 = 81;
1004 pub const ASI_IMMU_TSB_64KB_PTR: u32 = 82;
1005 pub const ASI_ITLB_DATA_IN: u32 = 84;
1006 pub const ASI_ITLB_DATA_ACCESS: u32 = 85;
1007 pub const ASI_ITLB_TAG_READ: u32 = 86;
1008 pub const ASI_IMMU_DEMAP: u32 = 87;
1009 pub const ASI_DMMU: u32 = 88;
1010 pub const ASI_DMMU_TSB_8KB_PTR: u32 = 89;
1011 pub const ASI_DMMU_TSB_64KB_PTR: u32 = 90;
1012 pub const ASI_DMMU_TSB_DIRECT_PTR: u32 = 91;
1013 pub const ASI_DTLB_DATA_IN: u32 = 92;
1014 pub const ASI_DTLB_DATA_ACCESS: u32 = 93;
1015 pub const ASI_DTLB_TAG_READ: u32 = 94;
1016 pub const ASI_DMMU_DEMAP: u32 = 95;
1017 pub const ASI_IIU_INST_TRAP: u32 = 96;
1018 pub const ASI_INTR_ID: u32 = 99;
1019 pub const ASI_CORE_ID: u32 = 99;
1020 pub const ASI_CESR_ID: u32 = 99;
1021 pub const ASI_IC_INSTR: u32 = 102;
1022 pub const ASI_IC_TAG: u32 = 103;
1023 pub const ASI_IC_STAG: u32 = 104;
1024 pub const ASI_IC_PRE_DECODE: u32 = 110;
1025 pub const ASI_IC_NEXT_FIELD: u32 = 111;
1026 pub const ASI_BRPRED_ARRAY: u32 = 111;
1027 pub const ASI_BLK_AIUP: u32 = 112;
1028 pub const ASI_BLK_AIUS: u32 = 113;
1029 pub const ASI_MCU_CTRL_REG: u32 = 114;
1030 pub const ASI_EC_DATA: u32 = 116;
1031 pub const ASI_EC_CTRL: u32 = 117;
1032 pub const ASI_EC_W: u32 = 118;
1033 pub const ASI_UDB_ERROR_W: u32 = 119;
1034 pub const ASI_UDB_CONTROL_W: u32 = 119;
1035 pub const ASI_INTR_W: u32 = 119;
1036 pub const ASI_INTR_DATAN_W: u32 = 119;
1037 pub const ASI_INTR_DISPATCH_W: u32 = 119;
1038 pub const ASI_BLK_AIUPL: u32 = 120;
1039 pub const ASI_BLK_AIUSL: u32 = 121;
1040 pub const ASI_EC_R: u32 = 126;
1041 pub const ASI_UDBH_ERROR_R: u32 = 127;
1042 pub const ASI_UDBL_ERROR_R: u32 = 127;
1043 pub const ASI_UDBH_CONTROL_R: u32 = 127;
1044 pub const ASI_UDBL_CONTROL_R: u32 = 127;
1045 pub const ASI_INTR_R: u32 = 127;
1046 pub const ASI_INTR_DATAN_R: u32 = 127;
1047 pub const ASI_MCD_PRIMARY: u32 = 144;
1048 pub const ASI_MCD_ST_BLKINIT_PRIMARY: u32 = 146;
1049 pub const ASI_PIC: u32 = 176;
1050 pub const ASI_PST8_P: u32 = 192;
1051 pub const ASI_PST8_S: u32 = 193;
1052 pub const ASI_PST16_P: u32 = 194;
1053 pub const ASI_PST16_S: u32 = 195;
1054 pub const ASI_PST32_P: u32 = 196;
1055 pub const ASI_PST32_S: u32 = 197;
1056 pub const ASI_PST8_PL: u32 = 200;
1057 pub const ASI_PST8_SL: u32 = 201;
1058 pub const ASI_PST16_PL: u32 = 202;
1059 pub const ASI_PST16_SL: u32 = 203;
1060 pub const ASI_PST32_PL: u32 = 204;
1061 pub const ASI_PST32_SL: u32 = 205;
1062 pub const ASI_FL8_P: u32 = 208;
1063 pub const ASI_FL8_S: u32 = 209;
1064 pub const ASI_FL16_P: u32 = 210;
1065 pub const ASI_FL16_S: u32 = 211;
1066 pub const ASI_FL8_PL: u32 = 216;
1067 pub const ASI_FL8_SL: u32 = 217;
1068 pub const ASI_FL16_PL: u32 = 218;
1069 pub const ASI_FL16_SL: u32 = 219;
1070 pub const ASI_BLK_COMMIT_P: u32 = 224;
1071 pub const ASI_BLK_COMMIT_S: u32 = 225;
1072 pub const ASI_BLK_INIT_QUAD_LDD_P: u32 = 226;
1073 pub const ASI_BLK_INIT_QUAD_LDD_S: u32 = 227;
1074 pub const ASI_BLK_P: u32 = 240;
1075 pub const ASI_BLK_S: u32 = 241;
1076 pub const ASI_ST_BLKINIT_MRU_P: u32 = 242;
1077 pub const ASI_ST_BLKINIT_MRU_S: u32 = 243;
1078 pub const ASI_BLK_PL: u32 = 248;
1079 pub const ASI_BLK_SL: u32 = 249;
1080 pub const ASI_ST_BLKINIT_MRU_PL: u32 = 250;
1081 pub const ASI_ST_BLKINIT_MRU_SL: u32 = 251;
1082 pub const IPTOS_TOS_MASK: u32 = 30;
1083 pub const IPTOS_LOWDELAY: u32 = 16;
1084 pub const IPTOS_THROUGHPUT: u32 = 8;
1085 pub const IPTOS_RELIABILITY: u32 = 4;
1086 pub const IPTOS_MINCOST: u32 = 2;
1087 pub const IPTOS_PREC_MASK: u32 = 224;
1088 pub const IPTOS_PREC_NETCONTROL: u32 = 224;
1089 pub const IPTOS_PREC_INTERNETCONTROL: u32 = 192;
1090 pub const IPTOS_PREC_CRITIC_ECP: u32 = 160;
1091 pub const IPTOS_PREC_FLASHOVERRIDE: u32 = 128;
1092 pub const IPTOS_PREC_FLASH: u32 = 96;
1093 pub const IPTOS_PREC_IMMEDIATE: u32 = 64;
1094 pub const IPTOS_PREC_PRIORITY: u32 = 32;
1095 pub const IPTOS_PREC_ROUTINE: u32 = 0;
1096 pub const IPOPT_COPY: u32 = 128;
1097 pub const IPOPT_CLASS_MASK: u32 = 96;
1098 pub const IPOPT_NUMBER_MASK: u32 = 31;
1099 pub const IPOPT_CONTROL: u32 = 0;
1100 pub const IPOPT_RESERVED1: u32 = 32;
1101 pub const IPOPT_MEASUREMENT: u32 = 64;
1102 pub const IPOPT_RESERVED2: u32 = 96;
1103 pub const IPOPT_END: u32 = 0;
1104 pub const IPOPT_NOOP: u32 = 1;
1105 pub const IPOPT_SEC: u32 = 130;
1106 pub const IPOPT_LSRR: u32 = 131;
1107 pub const IPOPT_TIMESTAMP: u32 = 68;
1108 pub const IPOPT_CIPSO: u32 = 134;
1109 pub const IPOPT_RR: u32 = 7;
1110 pub const IPOPT_SID: u32 = 136;
1111 pub const IPOPT_SSRR: u32 = 137;
1112 pub const IPOPT_RA: u32 = 148;
1113 pub const IPVERSION: u32 = 4;
1114 pub const MAXTTL: u32 = 255;
1115 pub const IPDEFTTL: u32 = 64;
1116 pub const IPOPT_OPTVAL: u32 = 0;
1117 pub const IPOPT_OLEN: u32 = 1;
1118 pub const IPOPT_OFFSET: u32 = 2;
1119 pub const IPOPT_MINOFF: u32 = 4;
1120 pub const MAX_IPOPTLEN: u32 = 40;
1121 pub const IPOPT_NOP: u32 = 1;
1122 pub const IPOPT_EOL: u32 = 0;
1123 pub const IPOPT_TS: u32 = 68;
1124 pub const IPOPT_TS_TSONLY: u32 = 0;
1125 pub const IPOPT_TS_TSANDADDR: u32 = 1;
1126 pub const IPOPT_TS_PRESPEC: u32 = 3;
1127 pub const IPV4_BEET_PHMAXLEN: u32 = 8;
1128 pub const IPV6_FL_A_GET: u32 = 0;
1129 pub const IPV6_FL_A_PUT: u32 = 1;
1130 pub const IPV6_FL_A_RENEW: u32 = 2;
1131 pub const IPV6_FL_F_CREATE: u32 = 1;
1132 pub const IPV6_FL_F_EXCL: u32 = 2;
1133 pub const IPV6_FL_F_REFLECT: u32 = 4;
1134 pub const IPV6_FL_F_REMOTE: u32 = 8;
1135 pub const IPV6_FL_S_NONE: u32 = 0;
1136 pub const IPV6_FL_S_EXCL: u32 = 1;
1137 pub const IPV6_FL_S_PROCESS: u32 = 2;
1138 pub const IPV6_FL_S_USER: u32 = 3;
1139 pub const IPV6_FL_S_ANY: u32 = 255;
1140 pub const IPV6_FLOWINFO_FLOWLABEL: u32 = 1048575;
1141 pub const IPV6_FLOWINFO_PRIORITY: u32 = 267386880;
1142 pub const IPV6_PRIORITY_UNCHARACTERIZED: u32 = 0;
1143 pub const IPV6_PRIORITY_FILLER: u32 = 256;
1144 pub const IPV6_PRIORITY_UNATTENDED: u32 = 512;
1145 pub const IPV6_PRIORITY_RESERVED1: u32 = 768;
1146 pub const IPV6_PRIORITY_BULK: u32 = 1024;
1147 pub const IPV6_PRIORITY_RESERVED2: u32 = 1280;
1148 pub const IPV6_PRIORITY_INTERACTIVE: u32 = 1536;
1149 pub const IPV6_PRIORITY_CONTROL: u32 = 1792;
1150 pub const IPV6_PRIORITY_8: u32 = 2048;
1151 pub const IPV6_PRIORITY_9: u32 = 2304;
1152 pub const IPV6_PRIORITY_10: u32 = 2560;
1153 pub const IPV6_PRIORITY_11: u32 = 2816;
1154 pub const IPV6_PRIORITY_12: u32 = 3072;
1155 pub const IPV6_PRIORITY_13: u32 = 3328;
1156 pub const IPV6_PRIORITY_14: u32 = 3584;
1157 pub const IPV6_PRIORITY_15: u32 = 3840;
1158 pub const IPPROTO_HOPOPTS: u32 = 0;
1159 pub const IPPROTO_ROUTING: u32 = 43;
1160 pub const IPPROTO_FRAGMENT: u32 = 44;
1161 pub const IPPROTO_ICMPV6: u32 = 58;
1162 pub const IPPROTO_NONE: u32 = 59;
1163 pub const IPPROTO_DSTOPTS: u32 = 60;
1164 pub const IPPROTO_MH: u32 = 135;
1165 pub const IPV6_TLV_PAD1: u32 = 0;
1166 pub const IPV6_TLV_PADN: u32 = 1;
1167 pub const IPV6_TLV_ROUTERALERT: u32 = 5;
1168 pub const IPV6_TLV_CALIPSO: u32 = 7;
1169 pub const IPV6_TLV_IOAM: u32 = 49;
1170 pub const IPV6_TLV_JUMBO: u32 = 194;
1171 pub const IPV6_TLV_HAO: u32 = 201;
1172 pub const IPV6_ADDRFORM: u32 = 1;
1173 pub const IPV6_2292PKTINFO: u32 = 2;
1174 pub const IPV6_2292HOPOPTS: u32 = 3;
1175 pub const IPV6_2292DSTOPTS: u32 = 4;
1176 pub const IPV6_2292RTHDR: u32 = 5;
1177 pub const IPV6_2292PKTOPTIONS: u32 = 6;
1178 pub const IPV6_CHECKSUM: u32 = 7;
1179 pub const IPV6_2292HOPLIMIT: u32 = 8;
1180 pub const IPV6_NEXTHOP: u32 = 9;
1181 pub const IPV6_AUTHHDR: u32 = 10;
1182 pub const IPV6_FLOWINFO: u32 = 11;
1183 pub const IPV6_UNICAST_HOPS: u32 = 16;
1184 pub const IPV6_MULTICAST_IF: u32 = 17;
1185 pub const IPV6_MULTICAST_HOPS: u32 = 18;
1186 pub const IPV6_MULTICAST_LOOP: u32 = 19;
1187 pub const IPV6_ADD_MEMBERSHIP: u32 = 20;
1188 pub const IPV6_DROP_MEMBERSHIP: u32 = 21;
1189 pub const IPV6_ROUTER_ALERT: u32 = 22;
1190 pub const IPV6_MTU_DISCOVER: u32 = 23;
1191 pub const IPV6_MTU: u32 = 24;
1192 pub const IPV6_RECVERR: u32 = 25;
1193 pub const IPV6_V6ONLY: u32 = 26;
1194 pub const IPV6_JOIN_ANYCAST: u32 = 27;
1195 pub const IPV6_LEAVE_ANYCAST: u32 = 28;
1196 pub const IPV6_MULTICAST_ALL: u32 = 29;
1197 pub const IPV6_ROUTER_ALERT_ISOLATE: u32 = 30;
1198 pub const IPV6_RECVERR_RFC4884: u32 = 31;
1199 pub const IPV6_PMTUDISC_DONT: u32 = 0;
1200 pub const IPV6_PMTUDISC_WANT: u32 = 1;
1201 pub const IPV6_PMTUDISC_DO: u32 = 2;
1202 pub const IPV6_PMTUDISC_PROBE: u32 = 3;
1203 pub const IPV6_PMTUDISC_INTERFACE: u32 = 4;
1204 pub const IPV6_PMTUDISC_OMIT: u32 = 5;
1205 pub const IPV6_FLOWLABEL_MGR: u32 = 32;
1206 pub const IPV6_FLOWINFO_SEND: u32 = 33;
1207 pub const IPV6_IPSEC_POLICY: u32 = 34;
1208 pub const IPV6_XFRM_POLICY: u32 = 35;
1209 pub const IPV6_HDRINCL: u32 = 36;
1210 pub const IPV6_RECVPKTINFO: u32 = 49;
1211 pub const IPV6_PKTINFO: u32 = 50;
1212 pub const IPV6_RECVHOPLIMIT: u32 = 51;
1213 pub const IPV6_HOPLIMIT: u32 = 52;
1214 pub const IPV6_RECVHOPOPTS: u32 = 53;
1215 pub const IPV6_HOPOPTS: u32 = 54;
1216 pub const IPV6_RTHDRDSTOPTS: u32 = 55;
1217 pub const IPV6_RECVRTHDR: u32 = 56;
1218 pub const IPV6_RTHDR: u32 = 57;
1219 pub const IPV6_RECVDSTOPTS: u32 = 58;
1220 pub const IPV6_DSTOPTS: u32 = 59;
1221 pub const IPV6_RECVPATHMTU: u32 = 60;
1222 pub const IPV6_PATHMTU: u32 = 61;
1223 pub const IPV6_DONTFRAG: u32 = 62;
1224 pub const IPV6_RECVTCLASS: u32 = 66;
1225 pub const IPV6_TCLASS: u32 = 67;
1226 pub const IPV6_AUTOFLOWLABEL: u32 = 70;
1227 pub const IPV6_ADDR_PREFERENCES: u32 = 72;
1228 pub const IPV6_PREFER_SRC_TMP: u32 = 1;
1229 pub const IPV6_PREFER_SRC_PUBLIC: u32 = 2;
1230 pub const IPV6_PREFER_SRC_PUBTMP_DEFAULT: u32 = 256;
1231 pub const IPV6_PREFER_SRC_COA: u32 = 4;
1232 pub const IPV6_PREFER_SRC_HOME: u32 = 1024;
1233 pub const IPV6_PREFER_SRC_CGA: u32 = 8;
1234 pub const IPV6_PREFER_SRC_NONCGA: u32 = 2048;
1235 pub const IPV6_MINHOPCOUNT: u32 = 73;
1236 pub const IPV6_ORIGDSTADDR: u32 = 74;
1237 pub const IPV6_RECVORIGDSTADDR: u32 = 74;
1238 pub const IPV6_TRANSPARENT: u32 = 75;
1239 pub const IPV6_UNICAST_IF: u32 = 76;
1240 pub const IPV6_RECVFRAGSIZE: u32 = 77;
1241 pub const IPV6_FREEBIND: u32 = 78;
1242 pub const IPV6_MIN_MTU: u32 = 1280;
1243 pub const IPV6_SRCRT_STRICT: u32 = 1;
1244 pub const IPV6_SRCRT_TYPE_0: u32 = 0;
1245 pub const IPV6_SRCRT_TYPE_2: u32 = 2;
1246 pub const IPV6_SRCRT_TYPE_3: u32 = 3;
1247 pub const IPV6_SRCRT_TYPE_4: u32 = 4;
1248 pub const IPV6_OPT_ROUTERALERT_MLD: u32 = 0;
1249 pub const SIOCGSTAMP_OLD: u32 = 35078;
1250 pub const SIOCGSTAMPNS_OLD: u32 = 35079;
1251 pub const SOL_SOCKET: u32 = 65535;
1252 pub const SO_DEBUG: u32 = 1;
1253 pub const SO_PASSCRED: u32 = 2;
1254 pub const SO_REUSEADDR: u32 = 4;
1255 pub const SO_KEEPALIVE: u32 = 8;
1256 pub const SO_DONTROUTE: u32 = 16;
1257 pub const SO_BROADCAST: u32 = 32;
1258 pub const SO_PEERCRED: u32 = 64;
1259 pub const SO_LINGER: u32 = 128;
1260 pub const SO_OOBINLINE: u32 = 256;
1261 pub const SO_REUSEPORT: u32 = 512;
1262 pub const SO_BSDCOMPAT: u32 = 1024;
1263 pub const SO_RCVLOWAT: u32 = 2048;
1264 pub const SO_SNDLOWAT: u32 = 4096;
1265 pub const SO_RCVTIMEO_OLD: u32 = 8192;
1266 pub const SO_SNDTIMEO_OLD: u32 = 16384;
1267 pub const SO_ACCEPTCONN: u32 = 32768;
1268 pub const SO_SNDBUF: u32 = 4097;
1269 pub const SO_RCVBUF: u32 = 4098;
1270 pub const SO_SNDBUFFORCE: u32 = 4106;
1271 pub const SO_RCVBUFFORCE: u32 = 4107;
1272 pub const SO_ERROR: u32 = 4103;
1273 pub const SO_TYPE: u32 = 4104;
1274 pub const SO_PROTOCOL: u32 = 4136;
1275 pub const SO_DOMAIN: u32 = 4137;
1276 pub const SO_NO_CHECK: u32 = 11;
1277 pub const SO_PRIORITY: u32 = 12;
1278 pub const SO_BINDTODEVICE: u32 = 13;
1279 pub const SO_ATTACH_FILTER: u32 = 26;
1280 pub const SO_DETACH_FILTER: u32 = 27;
1281 pub const SO_GET_FILTER: u32 = 26;
1282 pub const SO_PEERNAME: u32 = 28;
1283 pub const SO_PEERSEC: u32 = 30;
1284 pub const SO_PASSSEC: u32 = 31;
1285 pub const SO_MARK: u32 = 34;
1286 pub const SO_RXQ_OVFL: u32 = 36;
1287 pub const SO_WIFI_STATUS: u32 = 37;
1288 pub const SCM_WIFI_STATUS: u32 = 37;
1289 pub const SO_PEEK_OFF: u32 = 38;
1290 pub const SO_NOFCS: u32 = 39;
1291 pub const SO_LOCK_FILTER: u32 = 40;
1292 pub const SO_SELECT_ERR_QUEUE: u32 = 41;
1293 pub const SO_BUSY_POLL: u32 = 48;
1294 pub const SO_MAX_PACING_RATE: u32 = 49;
1295 pub const SO_BPF_EXTENSIONS: u32 = 50;
1296 pub const SO_INCOMING_CPU: u32 = 51;
1297 pub const SO_ATTACH_BPF: u32 = 52;
1298 pub const SO_DETACH_BPF: u32 = 27;
1299 pub const SO_ATTACH_REUSEPORT_CBPF: u32 = 53;
1300 pub const SO_ATTACH_REUSEPORT_EBPF: u32 = 54;
1301 pub const SO_CNX_ADVICE: u32 = 55;
1302 pub const SCM_TIMESTAMPING_OPT_STATS: u32 = 56;
1303 pub const SO_MEMINFO: u32 = 57;
1304 pub const SO_INCOMING_NAPI_ID: u32 = 58;
1305 pub const SO_COOKIE: u32 = 59;
1306 pub const SCM_TIMESTAMPING_PKTINFO: u32 = 60;
1307 pub const SO_PEERGROUPS: u32 = 61;
1308 pub const SO_ZEROCOPY: u32 = 62;
1309 pub const SO_TXTIME: u32 = 63;
1310 pub const SCM_TXTIME: u32 = 63;
1311 pub const SO_BINDTOIFINDEX: u32 = 65;
1312 pub const SO_SECURITY_AUTHENTICATION: u32 = 20481;
1313 pub const SO_SECURITY_ENCRYPTION_TRANSPORT: u32 = 20482;
1314 pub const SO_SECURITY_ENCRYPTION_NETWORK: u32 = 20484;
1315 pub const SO_TIMESTAMP_OLD: u32 = 29;
1316 pub const SO_TIMESTAMPNS_OLD: u32 = 33;
1317 pub const SO_TIMESTAMPING_OLD: u32 = 35;
1318 pub const SO_TIMESTAMP_NEW: u32 = 70;
1319 pub const SO_TIMESTAMPNS_NEW: u32 = 66;
1320 pub const SO_TIMESTAMPING_NEW: u32 = 67;
1321 pub const SO_RCVTIMEO_NEW: u32 = 68;
1322 pub const SO_SNDTIMEO_NEW: u32 = 69;
1323 pub const SO_DETACH_REUSEPORT_BPF: u32 = 71;
1324 pub const SO_PREFER_BUSY_POLL: u32 = 72;
1325 pub const SO_BUSY_POLL_BUDGET: u32 = 73;
1326 pub const SO_NETNS_COOKIE: u32 = 80;
1327 pub const SO_BUF_LOCK: u32 = 81;
1328 pub const SO_RESERVE_MEM: u32 = 82;
1329 pub const SO_TXREHASH: u32 = 83;
1330 pub const SO_RCVMARK: u32 = 84;
1331 pub const SYS_SOCKET: u32 = 1;
1332 pub const SYS_BIND: u32 = 2;
1333 pub const SYS_CONNECT: u32 = 3;
1334 pub const SYS_LISTEN: u32 = 4;
1335 pub const SYS_ACCEPT: u32 = 5;
1336 pub const SYS_GETSOCKNAME: u32 = 6;
1337 pub const SYS_GETPEERNAME: u32 = 7;
1338 pub const SYS_SOCKETPAIR: u32 = 8;
1339 pub const SYS_SEND: u32 = 9;
1340 pub const SYS_RECV: u32 = 10;
1341 pub const SYS_SENDTO: u32 = 11;
1342 pub const SYS_RECVFROM: u32 = 12;
1343 pub const SYS_SHUTDOWN: u32 = 13;
1344 pub const SYS_SETSOCKOPT: u32 = 14;
1345 pub const SYS_GETSOCKOPT: u32 = 15;
1346 pub const SYS_SENDMSG: u32 = 16;
1347 pub const SYS_RECVMSG: u32 = 17;
1348 pub const SYS_ACCEPT4: u32 = 18;
1349 pub const SYS_RECVMMSG: u32 = 19;
1350 pub const SYS_SENDMMSG: u32 = 20;
1351 pub const __SO_ACCEPTCON: u32 = 65536;
1352 pub const TCP_MSS_DEFAULT: u32 = 536;
1353 pub const TCP_MSS_DESIRED: u32 = 1220;
1354 pub const TCP_NODELAY: u32 = 1;
1355 pub const TCP_MAXSEG: u32 = 2;
1356 pub const TCP_CORK: u32 = 3;
1357 pub const TCP_KEEPIDLE: u32 = 4;
1358 pub const TCP_KEEPINTVL: u32 = 5;
1359 pub const TCP_KEEPCNT: u32 = 6;
1360 pub const TCP_SYNCNT: u32 = 7;
1361 pub const TCP_LINGER2: u32 = 8;
1362 pub const TCP_DEFER_ACCEPT: u32 = 9;
1363 pub const TCP_WINDOW_CLAMP: u32 = 10;
1364 pub const TCP_INFO: u32 = 11;
1365 pub const TCP_QUICKACK: u32 = 12;
1366 pub const TCP_CONGESTION: u32 = 13;
1367 pub const TCP_MD5SIG: u32 = 14;
1368 pub const TCP_THIN_LINEAR_TIMEOUTS: u32 = 16;
1369 pub const TCP_THIN_DUPACK: u32 = 17;
1370 pub const TCP_USER_TIMEOUT: u32 = 18;
1371 pub const TCP_REPAIR: u32 = 19;
1372 pub const TCP_REPAIR_QUEUE: u32 = 20;
1373 pub const TCP_QUEUE_SEQ: u32 = 21;
1374 pub const TCP_REPAIR_OPTIONS: u32 = 22;
1375 pub const TCP_FASTOPEN: u32 = 23;
1376 pub const TCP_TIMESTAMP: u32 = 24;
1377 pub const TCP_NOTSENT_LOWAT: u32 = 25;
1378 pub const TCP_CC_INFO: u32 = 26;
1379 pub const TCP_SAVE_SYN: u32 = 27;
1380 pub const TCP_SAVED_SYN: u32 = 28;
1381 pub const TCP_REPAIR_WINDOW: u32 = 29;
1382 pub const TCP_FASTOPEN_CONNECT: u32 = 30;
1383 pub const TCP_ULP: u32 = 31;
1384 pub const TCP_MD5SIG_EXT: u32 = 32;
1385 pub const TCP_FASTOPEN_KEY: u32 = 33;
1386 pub const TCP_FASTOPEN_NO_COOKIE: u32 = 34;
1387 pub const TCP_ZEROCOPY_RECEIVE: u32 = 35;
1388 pub const TCP_INQ: u32 = 36;
1389 pub const TCP_CM_INQ: u32 = 36;
1390 pub const TCP_TX_DELAY: u32 = 37;
1391 pub const TCP_REPAIR_ON: u32 = 1;
1392 pub const TCP_REPAIR_OFF: u32 = 0;
1393 pub const TCP_REPAIR_OFF_NO_WP: i32 = -1;
1394 pub const TCPI_OPT_TIMESTAMPS: u32 = 1;
1395 pub const TCPI_OPT_SACK: u32 = 2;
1396 pub const TCPI_OPT_WSCALE: u32 = 4;
1397 pub const TCPI_OPT_ECN: u32 = 8;
1398 pub const TCPI_OPT_ECN_SEEN: u32 = 16;
1399 pub const TCPI_OPT_SYN_DATA: u32 = 32;
1400 pub const TCP_MD5SIG_MAXKEYLEN: u32 = 80;
1401 pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1;
1402 pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2;
1403 pub const TCP_RECEIVE_ZEROCOPY_FLAG_TLB_CLEAN_HINT: u32 = 1;
1404 pub const UNIX_PATH_MAX: u32 = 108;
1405 pub const IFNAMSIZ: u32 = 16;
1406 pub const IFALIASZ: u32 = 256;
1407 pub const ALTIFNAMSIZ: u32 = 128;
1408 pub const GENERIC_HDLC_VERSION: u32 = 4;
1409 pub const CLOCK_DEFAULT: u32 = 0;
1410 pub const CLOCK_EXT: u32 = 1;
1411 pub const CLOCK_INT: u32 = 2;
1412 pub const CLOCK_TXINT: u32 = 3;
1413 pub const CLOCK_TXFROMRX: u32 = 4;
1414 pub const ENCODING_DEFAULT: u32 = 0;
1415 pub const ENCODING_NRZ: u32 = 1;
1416 pub const ENCODING_NRZI: u32 = 2;
1417 pub const ENCODING_FM_MARK: u32 = 3;
1418 pub const ENCODING_FM_SPACE: u32 = 4;
1419 pub const ENCODING_MANCHESTER: u32 = 5;
1420 pub const PARITY_DEFAULT: u32 = 0;
1421 pub const PARITY_NONE: u32 = 1;
1422 pub const PARITY_CRC16_PR0: u32 = 2;
1423 pub const PARITY_CRC16_PR1: u32 = 3;
1424 pub const PARITY_CRC16_PR0_CCITT: u32 = 4;
1425 pub const PARITY_CRC16_PR1_CCITT: u32 = 5;
1426 pub const PARITY_CRC32_PR0_CCITT: u32 = 6;
1427 pub const PARITY_CRC32_PR1_CCITT: u32 = 7;
1428 pub const LMI_DEFAULT: u32 = 0;
1429 pub const LMI_NONE: u32 = 1;
1430 pub const LMI_ANSI: u32 = 2;
1431 pub const LMI_CCITT: u32 = 3;
1432 pub const LMI_CISCO: u32 = 4;
1433 pub const IF_GET_IFACE: u32 = 1;
1434 pub const IF_GET_PROTO: u32 = 2;
1435 pub const IF_IFACE_V35: u32 = 4096;
1436 pub const IF_IFACE_V24: u32 = 4097;
1437 pub const IF_IFACE_X21: u32 = 4098;
1438 pub const IF_IFACE_T1: u32 = 4099;
1439 pub const IF_IFACE_E1: u32 = 4100;
1440 pub const IF_IFACE_SYNC_SERIAL: u32 = 4101;
1441 pub const IF_IFACE_X21D: u32 = 4102;
1442 pub const IF_PROTO_HDLC: u32 = 8192;
1443 pub const IF_PROTO_PPP: u32 = 8193;
1444 pub const IF_PROTO_CISCO: u32 = 8194;
1445 pub const IF_PROTO_FR: u32 = 8195;
1446 pub const IF_PROTO_FR_ADD_PVC: u32 = 8196;
1447 pub const IF_PROTO_FR_DEL_PVC: u32 = 8197;
1448 pub const IF_PROTO_X25: u32 = 8198;
1449 pub const IF_PROTO_HDLC_ETH: u32 = 8199;
1450 pub const IF_PROTO_FR_ADD_ETH_PVC: u32 = 8200;
1451 pub const IF_PROTO_FR_DEL_ETH_PVC: u32 = 8201;
1452 pub const IF_PROTO_FR_PVC: u32 = 8202;
1453 pub const IF_PROTO_FR_ETH_PVC: u32 = 8203;
1454 pub const IF_PROTO_RAW: u32 = 8204;
1455 pub const IFHWADDRLEN: u32 = 6;
1456 pub const NF_DROP: u32 = 0;
1457 pub const NF_ACCEPT: u32 = 1;
1458 pub const NF_STOLEN: u32 = 2;
1459 pub const NF_QUEUE: u32 = 3;
1460 pub const NF_REPEAT: u32 = 4;
1461 pub const NF_STOP: u32 = 5;
1462 pub const NF_MAX_VERDICT: u32 = 5;
1463 pub const NF_VERDICT_MASK: u32 = 255;
1464 pub const NF_VERDICT_FLAG_QUEUE_BYPASS: u32 = 32768;
1465 pub const NF_VERDICT_QMASK: u32 = 4294901760;
1466 pub const NF_VERDICT_QBITS: u32 = 16;
1467 pub const NF_VERDICT_BITS: u32 = 16;
1468 pub const NF_IP6_PRE_ROUTING: u32 = 0;
1469 pub const NF_IP6_LOCAL_IN: u32 = 1;
1470 pub const NF_IP6_FORWARD: u32 = 2;
1471 pub const NF_IP6_LOCAL_OUT: u32 = 3;
1472 pub const NF_IP6_POST_ROUTING: u32 = 4;
1473 pub const NF_IP6_NUMHOOKS: u32 = 5;
1474 pub const XT_FUNCTION_MAXNAMELEN: u32 = 30;
1475 pub const XT_EXTENSION_MAXNAMELEN: u32 = 29;
1476 pub const XT_TABLE_MAXNAMELEN: u32 = 32;
1477 pub const XT_CONTINUE: u32 = 4294967295;
1478 pub const XT_RETURN: i32 = -5;
1479 pub const XT_STANDARD_TARGET: &[u8; 1] = b"\0";
1480 pub const XT_ERROR_TARGET: &[u8; 6] = b"ERROR\0";
1481 pub const XT_INV_PROTO: u32 = 64;
1482 pub const IP6T_FUNCTION_MAXNAMELEN: u32 = 30;
1483 pub const IP6T_TABLE_MAXNAMELEN: u32 = 32;
1484 pub const IP6T_CONTINUE: u32 = 4294967295;
1485 pub const IP6T_RETURN: i32 = -5;
1486 pub const XT_TCP_INV_SRCPT: u32 = 1;
1487 pub const XT_TCP_INV_DSTPT: u32 = 2;
1488 pub const XT_TCP_INV_FLAGS: u32 = 4;
1489 pub const XT_TCP_INV_OPTION: u32 = 8;
1490 pub const XT_TCP_INV_MASK: u32 = 15;
1491 pub const XT_UDP_INV_SRCPT: u32 = 1;
1492 pub const XT_UDP_INV_DSTPT: u32 = 2;
1493 pub const XT_UDP_INV_MASK: u32 = 3;
1494 pub const IP6T_TCP_INV_SRCPT: u32 = 1;
1495 pub const IP6T_TCP_INV_DSTPT: u32 = 2;
1496 pub const IP6T_TCP_INV_FLAGS: u32 = 4;
1497 pub const IP6T_TCP_INV_OPTION: u32 = 8;
1498 pub const IP6T_TCP_INV_MASK: u32 = 15;
1499 pub const IP6T_UDP_INV_SRCPT: u32 = 1;
1500 pub const IP6T_UDP_INV_DSTPT: u32 = 2;
1501 pub const IP6T_UDP_INV_MASK: u32 = 3;
1502 pub const IP6T_STANDARD_TARGET: &[u8; 1] = b"\0";
1503 pub const IP6T_ERROR_TARGET: &[u8; 6] = b"ERROR\0";
1504 pub const IP6T_F_PROTO: u32 = 1;
1505 pub const IP6T_F_TOS: u32 = 2;
1506 pub const IP6T_F_GOTO: u32 = 4;
1507 pub const IP6T_F_MASK: u32 = 7;
1508 pub const IP6T_INV_VIA_IN: u32 = 1;
1509 pub const IP6T_INV_VIA_OUT: u32 = 2;
1510 pub const IP6T_INV_TOS: u32 = 4;
1511 pub const IP6T_INV_SRCIP: u32 = 8;
1512 pub const IP6T_INV_DSTIP: u32 = 16;
1513 pub const IP6T_INV_FRAG: u32 = 32;
1514 pub const IP6T_INV_PROTO: u32 = 64;
1515 pub const IP6T_INV_MASK: u32 = 127;
1516 pub const IP6T_BASE_CTL: u32 = 64;
1517 pub const IP6T_SO_SET_REPLACE: u32 = 64;
1518 pub const IP6T_SO_SET_ADD_COUNTERS: u32 = 65;
1519 pub const IP6T_SO_SET_MAX: u32 = 65;
1520 pub const IP6T_SO_GET_INFO: u32 = 64;
1521 pub const IP6T_SO_GET_ENTRIES: u32 = 65;
1522 pub const IP6T_SO_GET_REVISION_MATCH: u32 = 68;
1523 pub const IP6T_SO_GET_REVISION_TARGET: u32 = 69;
1524 pub const IP6T_SO_GET_MAX: u32 = 69;
1525 pub const IP6T_SO_ORIGINAL_DST: u32 = 80;
1526 pub const IP6T_ICMP_INV: u32 = 1;
1527 pub const NF_IP_PRE_ROUTING: u32 = 0;
1528 pub const NF_IP_LOCAL_IN: u32 = 1;
1529 pub const NF_IP_FORWARD: u32 = 2;
1530 pub const NF_IP_LOCAL_OUT: u32 = 3;
1531 pub const NF_IP_POST_ROUTING: u32 = 4;
1532 pub const NF_IP_NUMHOOKS: u32 = 5;
1533 pub const SO_ORIGINAL_DST: u32 = 80;
1534 pub const SHUT_RD: u32 = 0;
1535 pub const SHUT_WR: u32 = 1;
1536 pub const SHUT_RDWR: u32 = 2;
1537 pub const SOCK_STREAM: u32 = 1;
1538 pub const SOCK_DGRAM: u32 = 2;
1539 pub const SOCK_RAW: u32 = 3;
1540 pub const SOCK_RDM: u32 = 4;
1541 pub const SOCK_SEQPACKET: u32 = 5;
1542 pub const MSG_DONTWAIT: u32 = 64;
1543 pub const AF_UNSPEC: u32 = 0;
1544 pub const AF_UNIX: u32 = 1;
1545 pub const AF_INET: u32 = 2;
1546 pub const AF_AX25: u32 = 3;
1547 pub const AF_IPX: u32 = 4;
1548 pub const AF_APPLETALK: u32 = 5;
1549 pub const AF_NETROM: u32 = 6;
1550 pub const AF_BRIDGE: u32 = 7;
1551 pub const AF_ATMPVC: u32 = 8;
1552 pub const AF_X25: u32 = 9;
1553 pub const AF_INET6: u32 = 10;
1554 pub const AF_ROSE: u32 = 11;
1555 pub const AF_DECnet: u32 = 12;
1556 pub const AF_NETBEUI: u32 = 13;
1557 pub const AF_SECURITY: u32 = 14;
1558 pub const AF_KEY: u32 = 15;
1559 pub const AF_NETLINK: u32 = 16;
1560 pub const AF_PACKET: u32 = 17;
1561 pub const AF_ASH: u32 = 18;
1562 pub const AF_ECONET: u32 = 19;
1563 pub const AF_ATMSVC: u32 = 20;
1564 pub const AF_RDS: u32 = 21;
1565 pub const AF_SNA: u32 = 22;
1566 pub const AF_IRDA: u32 = 23;
1567 pub const AF_PPPOX: u32 = 24;
1568 pub const AF_WANPIPE: u32 = 25;
1569 pub const AF_LLC: u32 = 26;
1570 pub const AF_CAN: u32 = 29;
1571 pub const AF_TIPC: u32 = 30;
1572 pub const AF_BLUETOOTH: u32 = 31;
1573 pub const AF_IUCV: u32 = 32;
1574 pub const AF_RXRPC: u32 = 33;
1575 pub const AF_ISDN: u32 = 34;
1576 pub const AF_PHONET: u32 = 35;
1577 pub const AF_IEEE802154: u32 = 36;
1578 pub const AF_CAIF: u32 = 37;
1579 pub const AF_ALG: u32 = 38;
1580 pub const AF_NFC: u32 = 39;
1581 pub const AF_VSOCK: u32 = 40;
1582 pub const AF_KCM: u32 = 41;
1583 pub const AF_QIPCRTR: u32 = 42;
1584 pub const AF_SMC: u32 = 43;
1585 pub const AF_XDP: u32 = 44;
1586 pub const AF_MCTP: u32 = 45;
1587 pub const AF_MAX: u32 = 46;
1588 pub const MSG_OOB: u32 = 1;
1589 pub const MSG_PEEK: u32 = 2;
1590 pub const MSG_DONTROUTE: u32 = 4;
1591 pub const MSG_CTRUNC: u32 = 8;
1592 pub const MSG_PROBE: u32 = 16;
1593 pub const MSG_TRUNC: u32 = 32;
1594 pub const MSG_EOR: u32 = 128;
1595 pub const MSG_WAITALL: u32 = 256;
1596 pub const MSG_FIN: u32 = 512;
1597 pub const MSG_SYN: u32 = 1024;
1598 pub const MSG_CONFIRM: u32 = 2048;
1599 pub const MSG_RST: u32 = 4096;
1600 pub const MSG_ERRQUEUE: u32 = 8192;
1601 pub const MSG_NOSIGNAL: u32 = 16384;
1602 pub const MSG_MORE: u32 = 32768;
1603 pub const MSG_CMSG_CLOEXEC: u32 = 1073741824;
1604 pub const SCM_RIGHTS: u32 = 1;
1605 pub const SCM_CREDENTIALS: u32 = 2;
1606 pub const SCM_SECURITY: u32 = 3;
1607 pub const SOL_IP: u32 = 0;
1608 pub const SOL_TCP: u32 = 6;
1609 pub const SOL_UDP: u32 = 17;
1610 pub const SOL_IPV6: u32 = 41;
1611 pub const SOL_ICMPV6: u32 = 58;
1612 pub const SOL_SCTP: u32 = 132;
1613 pub const SOL_UDPLITE: u32 = 136;
1614 pub const SOL_RAW: u32 = 255;
1615 pub const SOL_IPX: u32 = 256;
1616 pub const SOL_AX25: u32 = 257;
1617 pub const SOL_ATALK: u32 = 258;
1618 pub const SOL_NETROM: u32 = 259;
1619 pub const SOL_ROSE: u32 = 260;
1620 pub const SOL_DECNET: u32 = 261;
1621 pub const SOL_X25: u32 = 262;
1622 pub const SOL_PACKET: u32 = 263;
1623 pub const SOL_ATM: u32 = 264;
1624 pub const SOL_AAL: u32 = 265;
1625 pub const SOL_IRDA: u32 = 266;
1626 pub const SOL_NETBEUI: u32 = 267;
1627 pub const SOL_LLC: u32 = 268;
1628 pub const SOL_DCCP: u32 = 269;
1629 pub const SOL_NETLINK: u32 = 270;
1630 pub const SOL_TIPC: u32 = 271;
1631 pub const SOL_RXRPC: u32 = 272;
1632 pub const SOL_PPPOL2TP: u32 = 273;
1633 pub const SOL_BLUETOOTH: u32 = 274;
1634 pub const SOL_PNPIPE: u32 = 275;
1635 pub const SOL_RDS: u32 = 276;
1636 pub const SOL_IUCV: u32 = 277;
1637 pub const SOL_CAIF: u32 = 278;
1638 pub const SOL_ALG: u32 = 279;
1639 pub const SOL_NFC: u32 = 280;
1640 pub const SOL_KCM: u32 = 281;
1641 pub const SOL_TLS: u32 = 282;
1642 pub const SOL_XDP: u32 = 283;
1643 pub const SOL_MPTCP: u32 = 284;
1644 pub const SOL_MCTP: u32 = 285;
1645 pub const SOL_SMC: u32 = 286;
1646 pub const IPPROTO_IP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IP;
1647 pub const IPPROTO_ICMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ICMP;
1648 pub const IPPROTO_IGMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IGMP;
1649 pub const IPPROTO_IPIP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IPIP;
1650 pub const IPPROTO_TCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_TCP;
1651 pub const IPPROTO_EGP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_EGP;
1652 pub const IPPROTO_PUP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_PUP;
1653 pub const IPPROTO_UDP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_UDP;
1654 pub const IPPROTO_IDP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IDP;
1655 pub const IPPROTO_TP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_TP;
1656 pub const IPPROTO_DCCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_DCCP;
1657 pub const IPPROTO_IPV6: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IPV6;
1658 pub const IPPROTO_RSVP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_RSVP;
1659 pub const IPPROTO_GRE: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_GRE;
1660 pub const IPPROTO_ESP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ESP;
1661 pub const IPPROTO_AH: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_AH;
1662 pub const IPPROTO_MTP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MTP;
1663 pub const IPPROTO_BEETPH: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_BEETPH;
1664 pub const IPPROTO_ENCAP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ENCAP;
1665 pub const IPPROTO_PIM: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_PIM;
1666 pub const IPPROTO_COMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_COMP;
1667 pub const IPPROTO_L2TP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_L2TP;
1668 pub const IPPROTO_SCTP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_SCTP;
1669 pub const IPPROTO_UDPLITE: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_UDPLITE;
1670 pub const IPPROTO_MPLS: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MPLS;
1671 pub const IPPROTO_ETHERNET: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ETHERNET;
1672 pub const IPPROTO_RAW: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_RAW;
1673 pub const IPPROTO_MPTCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MPTCP;
1674 pub const IPPROTO_MAX: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MAX;
1675 pub const IPV4_DEVCONF_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_FORWARDING;
1676 pub const IPV4_DEVCONF_MC_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_MC_FORWARDING;
1677 pub const IPV4_DEVCONF_PROXY_ARP: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROXY_ARP;
1678 pub const IPV4_DEVCONF_ACCEPT_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_REDIRECTS;
1679 pub const IPV4_DEVCONF_SECURE_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SECURE_REDIRECTS;
1680 pub const IPV4_DEVCONF_SEND_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SEND_REDIRECTS;
1681 pub const IPV4_DEVCONF_SHARED_MEDIA: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SHARED_MEDIA;
1682 pub const IPV4_DEVCONF_RP_FILTER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_RP_FILTER;
1683 pub const IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE;
1684 pub const IPV4_DEVCONF_BOOTP_RELAY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_BOOTP_RELAY;
1685 pub const IPV4_DEVCONF_LOG_MARTIANS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_LOG_MARTIANS;
1686 pub const IPV4_DEVCONF_TAG: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_TAG;
1687 pub const IPV4_DEVCONF_ARPFILTER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARPFILTER;
1688 pub const IPV4_DEVCONF_MEDIUM_ID: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_MEDIUM_ID;
1689 pub const IPV4_DEVCONF_NOXFRM: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_NOXFRM;
1690 pub const IPV4_DEVCONF_NOPOLICY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_NOPOLICY;
1691 pub const IPV4_DEVCONF_FORCE_IGMP_VERSION: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_FORCE_IGMP_VERSION;
1692 pub const IPV4_DEVCONF_ARP_ANNOUNCE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_ANNOUNCE;
1693 pub const IPV4_DEVCONF_ARP_IGNORE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_IGNORE;
1694 pub const IPV4_DEVCONF_PROMOTE_SECONDARIES: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROMOTE_SECONDARIES;
1695 pub const IPV4_DEVCONF_ARP_ACCEPT: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_ACCEPT;
1696 pub const IPV4_DEVCONF_ARP_NOTIFY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_NOTIFY;
1697 pub const IPV4_DEVCONF_ACCEPT_LOCAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_LOCAL;
1698 pub const IPV4_DEVCONF_SRC_VMARK: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SRC_VMARK;
1699 pub const IPV4_DEVCONF_PROXY_ARP_PVLAN: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROXY_ARP_PVLAN;
1700 pub const IPV4_DEVCONF_ROUTE_LOCALNET: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ROUTE_LOCALNET;
1701 pub const IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL;
1702 pub const IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL;
1703 pub const IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN;
1704 pub const IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST;
1705 pub const IPV4_DEVCONF_DROP_GRATUITOUS_ARP: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_DROP_GRATUITOUS_ARP;
1706 pub const IPV4_DEVCONF_BC_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_BC_FORWARDING;
1707 pub const IPV4_DEVCONF_ARP_EVICT_NOCARRIER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_EVICT_NOCARRIER;
1708 pub const __IPV4_DEVCONF_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IPV4_DEVCONF_MAX;
1709 pub const DEVCONF_FORWARDING: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORWARDING;
1710 pub const DEVCONF_HOPLIMIT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_HOPLIMIT;
1711 pub const DEVCONF_MTU6: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MTU6;
1712 pub const DEVCONF_ACCEPT_RA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA;
1713 pub const DEVCONF_ACCEPT_REDIRECTS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_REDIRECTS;
1714 pub const DEVCONF_AUTOCONF: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_AUTOCONF;
1715 pub const DEVCONF_DAD_TRANSMITS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DAD_TRANSMITS;
1716 pub const DEVCONF_RTR_SOLICITS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICITS;
1717 pub const DEVCONF_RTR_SOLICIT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_INTERVAL;
1718 pub const DEVCONF_RTR_SOLICIT_DELAY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_DELAY;
1719 pub const DEVCONF_USE_TEMPADDR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_TEMPADDR;
1720 pub const DEVCONF_TEMP_VALID_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_TEMP_VALID_LFT;
1721 pub const DEVCONF_TEMP_PREFERED_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_TEMP_PREFERED_LFT;
1722 pub const DEVCONF_REGEN_MAX_RETRY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_REGEN_MAX_RETRY;
1723 pub const DEVCONF_MAX_DESYNC_FACTOR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX_DESYNC_FACTOR;
1724 pub const DEVCONF_MAX_ADDRESSES: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX_ADDRESSES;
1725 pub const DEVCONF_FORCE_MLD_VERSION: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORCE_MLD_VERSION;
1726 pub const DEVCONF_ACCEPT_RA_DEFRTR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_DEFRTR;
1727 pub const DEVCONF_ACCEPT_RA_PINFO: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_PINFO;
1728 pub const DEVCONF_ACCEPT_RA_RTR_PREF: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RTR_PREF;
1729 pub const DEVCONF_RTR_PROBE_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_PROBE_INTERVAL;
1730 pub const DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN;
1731 pub const DEVCONF_PROXY_NDP: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_PROXY_NDP;
1732 pub const DEVCONF_OPTIMISTIC_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_OPTIMISTIC_DAD;
1733 pub const DEVCONF_ACCEPT_SOURCE_ROUTE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_SOURCE_ROUTE;
1734 pub const DEVCONF_MC_FORWARDING: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MC_FORWARDING;
1735 pub const DEVCONF_DISABLE_IPV6: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DISABLE_IPV6;
1736 pub const DEVCONF_ACCEPT_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_DAD;
1737 pub const DEVCONF_FORCE_TLLAO: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORCE_TLLAO;
1738 pub const DEVCONF_NDISC_NOTIFY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_NOTIFY;
1739 pub const DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL;
1740 pub const DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL;
1741 pub const DEVCONF_SUPPRESS_FRAG_NDISC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SUPPRESS_FRAG_NDISC;
1742 pub const DEVCONF_ACCEPT_RA_FROM_LOCAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_FROM_LOCAL;
1743 pub const DEVCONF_USE_OPTIMISTIC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_OPTIMISTIC;
1744 pub const DEVCONF_ACCEPT_RA_MTU: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MTU;
1745 pub const DEVCONF_STABLE_SECRET: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_STABLE_SECRET;
1746 pub const DEVCONF_USE_OIF_ADDRS_ONLY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_OIF_ADDRS_ONLY;
1747 pub const DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT;
1748 pub const DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN;
1749 pub const DEVCONF_DROP_UNICAST_IN_L2_MULTICAST: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DROP_UNICAST_IN_L2_MULTICAST;
1750 pub const DEVCONF_DROP_UNSOLICITED_NA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DROP_UNSOLICITED_NA;
1751 pub const DEVCONF_KEEP_ADDR_ON_DOWN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_KEEP_ADDR_ON_DOWN;
1752 pub const DEVCONF_RTR_SOLICIT_MAX_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_MAX_INTERVAL;
1753 pub const DEVCONF_SEG6_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SEG6_ENABLED;
1754 pub const DEVCONF_SEG6_REQUIRE_HMAC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SEG6_REQUIRE_HMAC;
1755 pub const DEVCONF_ENHANCED_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ENHANCED_DAD;
1756 pub const DEVCONF_ADDR_GEN_MODE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ADDR_GEN_MODE;
1757 pub const DEVCONF_DISABLE_POLICY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DISABLE_POLICY;
1758 pub const DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN;
1759 pub const DEVCONF_NDISC_TCLASS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_TCLASS;
1760 pub const DEVCONF_RPL_SEG_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RPL_SEG_ENABLED;
1761 pub const DEVCONF_RA_DEFRTR_METRIC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RA_DEFRTR_METRIC;
1762 pub const DEVCONF_IOAM6_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ENABLED;
1763 pub const DEVCONF_IOAM6_ID: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ID;
1764 pub const DEVCONF_IOAM6_ID_WIDE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ID_WIDE;
1765 pub const DEVCONF_NDISC_EVICT_NOCARRIER: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_EVICT_NOCARRIER;
1766 pub const DEVCONF_ACCEPT_UNTRACKED_NA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_UNTRACKED_NA;
1767 pub const DEVCONF_MAX: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX;
1768 pub const TCP_FLAG_CWR: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_CWR;
1769 pub const TCP_FLAG_ECE: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_ECE;
1770 pub const TCP_FLAG_URG: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_URG;
1771 pub const TCP_FLAG_ACK: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_ACK;
1772 pub const TCP_FLAG_PSH: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_PSH;
1773 pub const TCP_FLAG_RST: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_RST;
1774 pub const TCP_FLAG_SYN: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_SYN;
1775 pub const TCP_FLAG_FIN: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_FIN;
1776 pub const TCP_RESERVED_BITS: _bindgen_ty_4 = _bindgen_ty_4::TCP_RESERVED_BITS;
1777 pub const TCP_DATA_OFFSET: _bindgen_ty_4 = _bindgen_ty_4::TCP_DATA_OFFSET;
1778 pub const TCP_NO_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_NO_QUEUE;
1779 pub const TCP_RECV_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_RECV_QUEUE;
1780 pub const TCP_SEND_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_SEND_QUEUE;
1781 pub const TCP_QUEUES_NR: _bindgen_ty_5 = _bindgen_ty_5::TCP_QUEUES_NR;
1782 pub const TCP_NLA_PAD: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_PAD;
1783 pub const TCP_NLA_BUSY: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BUSY;
1784 pub const TCP_NLA_RWND_LIMITED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_RWND_LIMITED;
1785 pub const TCP_NLA_SNDBUF_LIMITED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SNDBUF_LIMITED;
1786 pub const TCP_NLA_DATA_SEGS_OUT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DATA_SEGS_OUT;
1787 pub const TCP_NLA_TOTAL_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TOTAL_RETRANS;
1788 pub const TCP_NLA_PACING_RATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_PACING_RATE;
1789 pub const TCP_NLA_DELIVERY_RATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERY_RATE;
1790 pub const TCP_NLA_SND_CWND: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SND_CWND;
1791 pub const TCP_NLA_REORDERING: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REORDERING;
1792 pub const TCP_NLA_MIN_RTT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_MIN_RTT;
1793 pub const TCP_NLA_RECUR_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_RECUR_RETRANS;
1794 pub const TCP_NLA_DELIVERY_RATE_APP_LMT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERY_RATE_APP_LMT;
1795 pub const TCP_NLA_SNDQ_SIZE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SNDQ_SIZE;
1796 pub const TCP_NLA_CA_STATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_CA_STATE;
1797 pub const TCP_NLA_SND_SSTHRESH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SND_SSTHRESH;
1798 pub const TCP_NLA_DELIVERED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERED;
1799 pub const TCP_NLA_DELIVERED_CE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERED_CE;
1800 pub const TCP_NLA_BYTES_SENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_SENT;
1801 pub const TCP_NLA_BYTES_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_RETRANS;
1802 pub const TCP_NLA_DSACK_DUPS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DSACK_DUPS;
1803 pub const TCP_NLA_REORD_SEEN: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REORD_SEEN;
1804 pub const TCP_NLA_SRTT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SRTT;
1805 pub const TCP_NLA_TIMEOUT_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TIMEOUT_REHASH;
1806 pub const TCP_NLA_BYTES_NOTSENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_NOTSENT;
1807 pub const TCP_NLA_EDT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_EDT;
1808 pub const TCP_NLA_TTL: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TTL;
1809 pub const TCP_NLA_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REHASH;
1810 pub const IF_OPER_UNKNOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_UNKNOWN;
1811 pub const IF_OPER_NOTPRESENT: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_NOTPRESENT;
1812 pub const IF_OPER_DOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_DOWN;
1813 pub const IF_OPER_LOWERLAYERDOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_LOWERLAYERDOWN;
1814 pub const IF_OPER_TESTING: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_TESTING;
1815 pub const IF_OPER_DORMANT: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_DORMANT;
1816 pub const IF_OPER_UP: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_UP;
1817 pub const IF_LINK_MODE_DEFAULT: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_DEFAULT;
1818 pub const IF_LINK_MODE_DORMANT: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_DORMANT;
1819 pub const IF_LINK_MODE_TESTING: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_TESTING;
1820 pub const NFPROTO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_UNSPEC;
1821 pub const NFPROTO_INET: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_INET;
1822 pub const NFPROTO_IPV4: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_IPV4;
1823 pub const NFPROTO_ARP: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_ARP;
1824 pub const NFPROTO_NETDEV: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_NETDEV;
1825 pub const NFPROTO_BRIDGE: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_BRIDGE;
1826 pub const NFPROTO_IPV6: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_IPV6;
1827 pub const NFPROTO_DECNET: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_DECNET;
1828 pub const NFPROTO_NUMPROTO: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_NUMPROTO;
1829 #[repr(u32)]
1830 #[non_exhaustive]
1831 #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
1832 pub enum _bindgen_ty_1 {
1833 IPPROTO_IP = 0,
1834 IPPROTO_ICMP = 1,
1835 IPPROTO_IGMP = 2,
1836 IPPROTO_IPIP = 4,
1837 IPPROTO_TCP = 6,
1838 IPPROTO_EGP = 8,
1839 IPPROTO_PUP = 12,
1840 IPPROTO_UDP = 17,
1841 IPPROTO_IDP = 22,
1842 IPPROTO_TP = 29,
1843 IPPROTO_DCCP = 33,
1844 IPPROTO_IPV6 = 41,
1845 IPPROTO_RSVP = 46,
1846 IPPROTO_GRE = 47,
1847 IPPROTO_ESP = 50,
1848 IPPROTO_AH = 51,
1849 IPPROTO_MTP = 92,
1850 IPPROTO_BEETPH = 94,
1851 IPPROTO_ENCAP = 98,
1852 IPPROTO_PIM = 103,
1853 IPPROTO_COMP = 108,
1854 IPPROTO_L2TP = 115,
1855 IPPROTO_SCTP = 132,
1856 IPPROTO_UDPLITE = 136,
1857 IPPROTO_MPLS = 137,
1858 IPPROTO_ETHERNET = 143,
1859 IPPROTO_RAW = 255,
1860 IPPROTO_MPTCP = 262,
1861 IPPROTO_MAX = 263,
1862 }
1863 #[repr(u32)]
1864 #[non_exhaustive]
1865 #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
1866 pub enum _bindgen_ty_2 {
1867 IPV4_DEVCONF_FORWARDING = 1,
1868 IPV4_DEVCONF_MC_FORWARDING = 2,
1869 IPV4_DEVCONF_PROXY_ARP = 3,
1870 IPV4_DEVCONF_ACCEPT_REDIRECTS = 4,
1871 IPV4_DEVCONF_SECURE_REDIRECTS = 5,
1872 IPV4_DEVCONF_SEND_REDIRECTS = 6,
1873 IPV4_DEVCONF_SHARED_MEDIA = 7,
1874 IPV4_DEVCONF_RP_FILTER = 8,
1875 IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE = 9,
1876 IPV4_DEVCONF_BOOTP_RELAY = 10,
1877 IPV4_DEVCONF_LOG_MARTIANS = 11,
1878 IPV4_DEVCONF_TAG = 12,
1879 IPV4_DEVCONF_ARPFILTER = 13,
1880 IPV4_DEVCONF_MEDIUM_ID = 14,
1881 IPV4_DEVCONF_NOXFRM = 15,
1882 IPV4_DEVCONF_NOPOLICY = 16,
1883 IPV4_DEVCONF_FORCE_IGMP_VERSION = 17,
1884 IPV4_DEVCONF_ARP_ANNOUNCE = 18,
1885 IPV4_DEVCONF_ARP_IGNORE = 19,
1886 IPV4_DEVCONF_PROMOTE_SECONDARIES = 20,
1887 IPV4_DEVCONF_ARP_ACCEPT = 21,
1888 IPV4_DEVCONF_ARP_NOTIFY = 22,
1889 IPV4_DEVCONF_ACCEPT_LOCAL = 23,
1890 IPV4_DEVCONF_SRC_VMARK = 24,
1891 IPV4_DEVCONF_PROXY_ARP_PVLAN = 25,
1892 IPV4_DEVCONF_ROUTE_LOCALNET = 26,
1893 IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL = 27,
1894 IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL = 28,
1895 IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 29,
1896 IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 30,
1897 IPV4_DEVCONF_DROP_GRATUITOUS_ARP = 31,
1898 IPV4_DEVCONF_BC_FORWARDING = 32,
1899 IPV4_DEVCONF_ARP_EVICT_NOCARRIER = 33,
1900 __IPV4_DEVCONF_MAX = 34,
1901 }
1902 #[repr(u32)]
1903 #[non_exhaustive]
1904 #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
1905 pub enum _bindgen_ty_3 {
1906 DEVCONF_FORWARDING = 0,
1907 DEVCONF_HOPLIMIT = 1,
1908 DEVCONF_MTU6 = 2,
1909 DEVCONF_ACCEPT_RA = 3,
1910 DEVCONF_ACCEPT_REDIRECTS = 4,
1911 DEVCONF_AUTOCONF = 5,
1912 DEVCONF_DAD_TRANSMITS = 6,
1913 DEVCONF_RTR_SOLICITS = 7,
1914 DEVCONF_RTR_SOLICIT_INTERVAL = 8,
1915 DEVCONF_RTR_SOLICIT_DELAY = 9,
1916 DEVCONF_USE_TEMPADDR = 10,
1917 DEVCONF_TEMP_VALID_LFT = 11,
1918 DEVCONF_TEMP_PREFERED_LFT = 12,
1919 DEVCONF_REGEN_MAX_RETRY = 13,
1920 DEVCONF_MAX_DESYNC_FACTOR = 14,
1921 DEVCONF_MAX_ADDRESSES = 15,
1922 DEVCONF_FORCE_MLD_VERSION = 16,
1923 DEVCONF_ACCEPT_RA_DEFRTR = 17,
1924 DEVCONF_ACCEPT_RA_PINFO = 18,
1925 DEVCONF_ACCEPT_RA_RTR_PREF = 19,
1926 DEVCONF_RTR_PROBE_INTERVAL = 20,
1927 DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN = 21,
1928 DEVCONF_PROXY_NDP = 22,
1929 DEVCONF_OPTIMISTIC_DAD = 23,
1930 DEVCONF_ACCEPT_SOURCE_ROUTE = 24,
1931 DEVCONF_MC_FORWARDING = 25,
1932 DEVCONF_DISABLE_IPV6 = 26,
1933 DEVCONF_ACCEPT_DAD = 27,
1934 DEVCONF_FORCE_TLLAO = 28,
1935 DEVCONF_NDISC_NOTIFY = 29,
1936 DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL = 30,
1937 DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL = 31,
1938 DEVCONF_SUPPRESS_FRAG_NDISC = 32,
1939 DEVCONF_ACCEPT_RA_FROM_LOCAL = 33,
1940 DEVCONF_USE_OPTIMISTIC = 34,
1941 DEVCONF_ACCEPT_RA_MTU = 35,
1942 DEVCONF_STABLE_SECRET = 36,
1943 DEVCONF_USE_OIF_ADDRS_ONLY = 37,
1944 DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT = 38,
1945 DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 39,
1946 DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 40,
1947 DEVCONF_DROP_UNSOLICITED_NA = 41,
1948 DEVCONF_KEEP_ADDR_ON_DOWN = 42,
1949 DEVCONF_RTR_SOLICIT_MAX_INTERVAL = 43,
1950 DEVCONF_SEG6_ENABLED = 44,
1951 DEVCONF_SEG6_REQUIRE_HMAC = 45,
1952 DEVCONF_ENHANCED_DAD = 46,
1953 DEVCONF_ADDR_GEN_MODE = 47,
1954 DEVCONF_DISABLE_POLICY = 48,
1955 DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN = 49,
1956 DEVCONF_NDISC_TCLASS = 50,
1957 DEVCONF_RPL_SEG_ENABLED = 51,
1958 DEVCONF_RA_DEFRTR_METRIC = 52,
1959 DEVCONF_IOAM6_ENABLED = 53,
1960 DEVCONF_IOAM6_ID = 54,
1961 DEVCONF_IOAM6_ID_WIDE = 55,
1962 DEVCONF_NDISC_EVICT_NOCARRIER = 56,
1963 DEVCONF_ACCEPT_UNTRACKED_NA = 57,
1964 DEVCONF_MAX = 58,
1965 }
1966 #[repr(u32)]
1967 #[non_exhaustive]
1968 #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
1969 pub enum socket_state {
1970 SS_FREE = 0,
1971 SS_UNCONNECTED = 1,
1972 SS_CONNECTING = 2,
1973 SS_CONNECTED = 3,
1974 SS_DISCONNECTING = 4,
1975 }
1976 #[repr(u32)]
1977 #[non_exhaustive]
1978 #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
1979 pub enum _bindgen_ty_4 {
1980 TCP_FLAG_CWR = 8388608,
1981 TCP_FLAG_ECE = 4194304,
1982 TCP_FLAG_URG = 2097152,
1983 TCP_FLAG_ACK = 1048576,
1984 TCP_FLAG_PSH = 524288,
1985 TCP_FLAG_RST = 262144,
1986 TCP_FLAG_SYN = 131072,
1987 TCP_FLAG_FIN = 65536,
1988 TCP_RESERVED_BITS = 251658240,
1989 TCP_DATA_OFFSET = 4026531840,
1990 }
1991 #[repr(u32)]
1992 #[non_exhaustive]
1993 #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
1994 pub enum _bindgen_ty_5 {
1995 TCP_NO_QUEUE = 0,
1996 TCP_RECV_QUEUE = 1,
1997 TCP_SEND_QUEUE = 2,
1998 TCP_QUEUES_NR = 3,
1999 }
2000 #[repr(u32)]
2001 #[non_exhaustive]
2002 #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2003 pub enum tcp_fastopen_client_fail {
2004 TFO_STATUS_UNSPEC = 0,
2005 TFO_COOKIE_UNAVAILABLE = 1,
2006 TFO_DATA_NOT_ACKED = 2,
2007 TFO_SYN_RETRANSMITTED = 3,
2008 }
2009 #[repr(u32)]
2010 #[non_exhaustive]
2011 #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2012 pub enum tcp_ca_state {
2013 TCP_CA_Open = 0,
2014 TCP_CA_Disorder = 1,
2015 TCP_CA_CWR = 2,
2016 TCP_CA_Recovery = 3,
2017 TCP_CA_Loss = 4,
2018 }
2019 #[repr(u32)]
2020 #[non_exhaustive]
2021 #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2022 pub enum _bindgen_ty_6 {
2023 TCP_NLA_PAD = 0,
2024 TCP_NLA_BUSY = 1,
2025 TCP_NLA_RWND_LIMITED = 2,
2026 TCP_NLA_SNDBUF_LIMITED = 3,
2027 TCP_NLA_DATA_SEGS_OUT = 4,
2028 TCP_NLA_TOTAL_RETRANS = 5,
2029 TCP_NLA_PACING_RATE = 6,
2030 TCP_NLA_DELIVERY_RATE = 7,
2031 TCP_NLA_SND_CWND = 8,
2032 TCP_NLA_REORDERING = 9,
2033 TCP_NLA_MIN_RTT = 10,
2034 TCP_NLA_RECUR_RETRANS = 11,
2035 TCP_NLA_DELIVERY_RATE_APP_LMT = 12,
2036 TCP_NLA_SNDQ_SIZE = 13,
2037 TCP_NLA_CA_STATE = 14,
2038 TCP_NLA_SND_SSTHRESH = 15,
2039 TCP_NLA_DELIVERED = 16,
2040 TCP_NLA_DELIVERED_CE = 17,
2041 TCP_NLA_BYTES_SENT = 18,
2042 TCP_NLA_BYTES_RETRANS = 19,
2043 TCP_NLA_DSACK_DUPS = 20,
2044 TCP_NLA_REORD_SEEN = 21,
2045 TCP_NLA_SRTT = 22,
2046 TCP_NLA_TIMEOUT_REHASH = 23,
2047 TCP_NLA_BYTES_NOTSENT = 24,
2048 TCP_NLA_EDT = 25,
2049 TCP_NLA_TTL = 26,
2050 TCP_NLA_REHASH = 27,
2051 }
2052 #[repr(u32)]
2053 #[non_exhaustive]
2054 #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2055 pub enum net_device_flags {
2056 IFF_UP = 1,
2057 IFF_BROADCAST = 2,
2058 IFF_DEBUG = 4,
2059 IFF_LOOPBACK = 8,
2060 IFF_POINTOPOINT = 16,
2061 IFF_NOTRAILERS = 32,
2062 IFF_RUNNING = 64,
2063 IFF_NOARP = 128,
2064 IFF_PROMISC = 256,
2065 IFF_ALLMULTI = 512,
2066 IFF_MASTER = 1024,
2067 IFF_SLAVE = 2048,
2068 IFF_MULTICAST = 4096,
2069 IFF_PORTSEL = 8192,
2070 IFF_AUTOMEDIA = 16384,
2071 IFF_DYNAMIC = 32768,
2072 IFF_LOWER_UP = 65536,
2073 IFF_DORMANT = 131072,
2074 IFF_ECHO = 262144,
2075 }
2076 #[repr(u32)]
2077 #[non_exhaustive]
2078 #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2079 pub enum _bindgen_ty_7 {
2080 IF_OPER_UNKNOWN = 0,
2081 IF_OPER_NOTPRESENT = 1,
2082 IF_OPER_DOWN = 2,
2083 IF_OPER_LOWERLAYERDOWN = 3,
2084 IF_OPER_TESTING = 4,
2085 IF_OPER_DORMANT = 5,
2086 IF_OPER_UP = 6,
2087 }
2088 #[repr(u32)]
2089 #[non_exhaustive]
2090 #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2091 pub enum _bindgen_ty_8 {
2092 IF_LINK_MODE_DEFAULT = 0,
2093 IF_LINK_MODE_DORMANT = 1,
2094 IF_LINK_MODE_TESTING = 2,
2095 }
2096 #[repr(u32)]
2097 #[non_exhaustive]
2098 #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2099 pub enum nf_inet_hooks {
2100 NF_INET_PRE_ROUTING = 0,
2101 NF_INET_LOCAL_IN = 1,
2102 NF_INET_FORWARD = 2,
2103 NF_INET_LOCAL_OUT = 3,
2104 NF_INET_POST_ROUTING = 4,
2105 NF_INET_NUMHOOKS = 5,
2106 }
2107 #[repr(u32)]
2108 #[non_exhaustive]
2109 #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2110 pub enum nf_dev_hooks {
2111 NF_NETDEV_INGRESS = 0,
2112 NF_NETDEV_EGRESS = 1,
2113 NF_NETDEV_NUMHOOKS = 2,
2114 }
2115 #[repr(u32)]
2116 #[non_exhaustive]
2117 #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2118 pub enum _bindgen_ty_9 {
2119 NFPROTO_UNSPEC = 0,
2120 NFPROTO_INET = 1,
2121 NFPROTO_IPV4 = 2,
2122 NFPROTO_ARP = 3,
2123 NFPROTO_NETDEV = 5,
2124 NFPROTO_BRIDGE = 7,
2125 NFPROTO_IPV6 = 10,
2126 NFPROTO_DECNET = 12,
2127 NFPROTO_NUMPROTO = 13,
2128 }
2129 #[repr(i32)]
2130 #[non_exhaustive]
2131 #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2132 pub enum nf_ip6_hook_priorities {
2133 NF_IP6_PRI_FIRST = -2147483648,
2134 NF_IP6_PRI_RAW_BEFORE_DEFRAG = -450,
2135 NF_IP6_PRI_CONNTRACK_DEFRAG = -400,
2136 NF_IP6_PRI_RAW = -300,
2137 NF_IP6_PRI_SELINUX_FIRST = -225,
2138 NF_IP6_PRI_CONNTRACK = -200,
2139 NF_IP6_PRI_MANGLE = -150,
2140 NF_IP6_PRI_NAT_DST = -100,
2141 NF_IP6_PRI_FILTER = 0,
2142 NF_IP6_PRI_SECURITY = 50,
2143 NF_IP6_PRI_NAT_SRC = 100,
2144 NF_IP6_PRI_SELINUX_LAST = 225,
2145 NF_IP6_PRI_CONNTRACK_HELPER = 300,
2146 NF_IP6_PRI_LAST = 2147483647,
2147 }
2148 #[repr(i32)]
2149 #[non_exhaustive]
2150 #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2151 pub enum nf_ip_hook_priorities {
2152 NF_IP_PRI_FIRST = -2147483648,
2153 NF_IP_PRI_RAW_BEFORE_DEFRAG = -450,
2154 NF_IP_PRI_CONNTRACK_DEFRAG = -400,
2155 NF_IP_PRI_RAW = -300,
2156 NF_IP_PRI_SELINUX_FIRST = -225,
2157 NF_IP_PRI_CONNTRACK = -200,
2158 NF_IP_PRI_MANGLE = -150,
2159 NF_IP_PRI_NAT_DST = -100,
2160 NF_IP_PRI_FILTER = 0,
2161 NF_IP_PRI_SECURITY = 50,
2162 NF_IP_PRI_NAT_SRC = 100,
2163 NF_IP_PRI_SELINUX_LAST = 225,
2164 NF_IP_PRI_CONNTRACK_HELPER = 300,
2165 NF_IP_PRI_CONNTRACK_CONFIRM = 2147483647,
2166 }
2167 #[repr(C)]
2168 #[derive(Copy, Clone)]
2169 pub union __kernel_sockaddr_storage__bindgen_ty_1 {
2170 pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1,
2171 pub __align: *mut crate::ctypes::c_void,
2172 }
2173 #[repr(C)]
2174 #[derive(Copy, Clone)]
2175 pub union iphdr__bindgen_ty_1 {
2176 pub __bindgen_anon_1: iphdr__bindgen_ty_1__bindgen_ty_1,
2177 pub addrs: iphdr__bindgen_ty_1__bindgen_ty_2,
2178 }
2179 #[repr(C)]
2180 #[derive(Copy, Clone)]
2181 pub union in6_addr__bindgen_ty_1 {
2182 pub u6_addr8: [__u8; 16usize],
2183 pub u6_addr16: [__be16; 8usize],
2184 pub u6_addr32: [__be32; 4usize],
2185 }
2186 #[repr(C)]
2187 #[derive(Copy, Clone)]
2188 pub union ipv6hdr__bindgen_ty_1 {
2189 pub __bindgen_anon_1: ipv6hdr__bindgen_ty_1__bindgen_ty_1,
2190 pub addrs: ipv6hdr__bindgen_ty_1__bindgen_ty_2,
2191 }
2192 #[repr(C)]
2193 #[derive(Copy, Clone)]
2194 pub union tcp_word_hdr {
2195 pub hdr: tcphdr,
2196 pub words: [__be32; 5usize],
2197 }
2198 #[repr(C)]
2199 #[derive(Copy, Clone)]
2200 pub union if_settings__bindgen_ty_1 {
2201 pub raw_hdlc: *mut raw_hdlc_proto,
2202 pub cisco: *mut cisco_proto,
2203 pub fr: *mut fr_proto,
2204 pub fr_pvc: *mut fr_proto_pvc,
2205 pub fr_pvc_info: *mut fr_proto_pvc_info,
2206 pub x25: *mut x25_hdlc_proto,
2207 pub sync: *mut sync_serial_settings,
2208 pub te1: *mut te1_settings,
2209 }
2210 #[repr(C)]
2211 #[derive(Copy, Clone)]
2212 pub union ifreq__bindgen_ty_1 {
2213 pub ifrn_name: [crate::ctypes::c_char; 16usize],
2214 }
2215 #[repr(C)]
2216 #[derive(Copy, Clone)]
2217 pub union ifreq__bindgen_ty_2 {
2218 pub ifru_addr: sockaddr,
2219 pub ifru_dstaddr: sockaddr,
2220 pub ifru_broadaddr: sockaddr,
2221 pub ifru_netmask: sockaddr,
2222 pub ifru_hwaddr: sockaddr,
2223 pub ifru_flags: crate::ctypes::c_short,
2224 pub ifru_ivalue: crate::ctypes::c_int,
2225 pub ifru_mtu: crate::ctypes::c_int,
2226 pub ifru_map: ifmap,
2227 pub ifru_slave: [crate::ctypes::c_char; 16usize],
2228 pub ifru_newname: [crate::ctypes::c_char; 16usize],
2229 pub ifru_data: *mut crate::ctypes::c_void,
2230 pub ifru_settings: if_settings,
2231 }
2232 #[repr(C)]
2233 #[derive(Copy, Clone)]
2234 pub union ifconf__bindgen_ty_1 {
2235 pub ifcu_buf: *mut crate::ctypes::c_char,
2236 pub ifcu_req: *mut ifreq,
2237 }
2238 #[repr(C)]
2239 #[derive(Copy, Clone)]
2240 pub union nf_inet_addr {
2241 pub all: [__u32; 4usize],
2242 pub ip: __be32,
2243 pub ip6: [__be32; 4usize],
2244 pub in_: in_addr,
2245 pub in6: in6_addr,
2246 }
2247 #[repr(C)]
2248 #[derive(Copy, Clone)]
2249 pub union xt_entry_match__bindgen_ty_1 {
2250 pub user: xt_entry_match__bindgen_ty_1__bindgen_ty_1,
2251 pub kernel: xt_entry_match__bindgen_ty_1__bindgen_ty_2,
2252 pub match_size: __u16,
2253 }
2254 #[repr(C)]
2255 #[derive(Copy, Clone)]
2256 pub union xt_entry_target__bindgen_ty_1 {
2257 pub user: xt_entry_target__bindgen_ty_1__bindgen_ty_1,
2258 pub kernel: xt_entry_target__bindgen_ty_1__bindgen_ty_2,
2259 pub target_size: __u16,
2260 }
2261 impl<Storage> __BindgenBitfieldUnit<Storage> {
2262 #[inline]
2263 pub const fn new(storage: Storage) -> Self {
2264 Self { storage }
2265 }
2266 }
2267 impl<Storage> __BindgenBitfieldUnit<Storage>
2268 where
2269 Storage: AsRef<[u8]> + AsMut<[u8]>,
2270 {
2271 #[inline]
2272 pub fn get_bit(&self, index: usize) -> bool {
2273 debug_assert!(index / 8 < self.storage.as_ref().len());
2274 let byte_index = index / 8;
2275 let byte = self.storage.as_ref()[byte_index];
2276 let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 };
2277 let mask = 1 << bit_index;
2278 byte & mask == mask
2279 }
2280 #[inline]
2281 pub fn set_bit(&mut self, index: usize, val: bool) {
2282 debug_assert!(index / 8 < self.storage.as_ref().len());
2283 let byte_index = index / 8;
2284 let byte = &mut self.storage.as_mut()[byte_index];
2285 let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 };
2286 let mask = 1 << bit_index;
2287 if val {
2288 *byte |= mask;
2289 } else {
2290 *byte &= !mask;
2291 }
2292 }
2293 #[inline]
2294 pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 {
2295 debug_assert!(bit_width <= 64);
2296 debug_assert!(bit_offset / 8 < self.storage.as_ref().len());
2297 debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len());
2298 let mut val = 0;
2299 for i in 0..(bit_width as usize) {
2300 if self.get_bit(i + bit_offset) {
2301 let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i };
2302 val |= 1 << index;
2303 }
2304 }
2305 val
2306 }
2307 #[inline]
2308 pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) {
2309 debug_assert!(bit_width <= 64);
2310 debug_assert!(bit_offset / 8 < self.storage.as_ref().len());
2311 debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len());
2312 for i in 0..(bit_width as usize) {
2313 let mask = 1 << i;
2314 let val_bit_is_set = val & mask == mask;
2315 let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i };
2316 self.set_bit(index + bit_offset, val_bit_is_set);
2317 }
2318 }
2319 }
2320 impl<T> __IncompleteArrayField<T> {
2321 #[inline]
2322 pub const fn new() -> Self {
2323 __IncompleteArrayField(::core::marker::PhantomData, [])
2324 }
2325 #[inline]
2326 pub fn as_ptr(&self) -> *const T {
2327 self as *const _ as *const T
2328 }
2329 #[inline]
2330 pub fn as_mut_ptr(&mut self) -> *mut T {
2331 self as *mut _ as *mut T
2332 }
2333 #[inline]
2334 pub unsafe fn as_slice(&self, len: usize) -> &[T] {
2335 ::core::slice::from_raw_parts(self.as_ptr(), len)
2336 }
2337 #[inline]
2338 pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] {
2339 ::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len)
2340 }
2341 }
2342 impl<T> ::core::fmt::Debug for __IncompleteArrayField<T> {
2343 fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
2344 fmt.write_str("__IncompleteArrayField")
2345 }
2346 }
2347 impl<T> __BindgenUnionField<T> {
2348 #[inline]
2349 pub const fn new() -> Self {
2350 __BindgenUnionField(::core::marker::PhantomData)
2351 }
2352 #[inline]
2353 pub unsafe fn as_ref(&self) -> &T {
2354 ::core::mem::transmute(self)
2355 }
2356 #[inline]
2357 pub unsafe fn as_mut(&mut self) -> &mut T {
2358 ::core::mem::transmute(self)
2359 }
2360 }
2361 impl<T> ::core::default::Default for __BindgenUnionField<T> {
2362 #[inline]
2363 fn default() -> Self {
2364 Self::new()
2365 }
2366 }
2367 impl<T> ::core::clone::Clone for __BindgenUnionField<T> {
2368 #[inline]
2369 fn clone(&self) -> Self {
2370 Self::new()
2371 }
2372 }
2373 impl<T> ::core::marker::Copy for __BindgenUnionField<T> {}
2374 impl<T> ::core::fmt::Debug for __BindgenUnionField<T> {
2375 fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
2376 fmt.write_str("__BindgenUnionField")
2377 }
2378 }
2379 impl<T> ::core::hash::Hash for __BindgenUnionField<T> {
2380 fn hash<H: ::core::hash::Hasher>(&self, _state: &mut H) {}
2381 }
2382 impl<T> ::core::cmp::PartialEq for __BindgenUnionField<T> {
2383 fn eq(&self, _other: &__BindgenUnionField<T>) -> bool {
2384 true
2385 }
2386 }
2387 impl<T> ::core::cmp::Eq for __BindgenUnionField<T> {}
2388 impl iphdr {
2389 #[inline]
2390 pub fn version(&self) -> __u8 {
2391 unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) }
2392 }
2393 #[inline]
2394 pub fn set_version(&mut self, val: __u8) {
2395 unsafe {
2396 let val: u8 = ::core::mem::transmute(val);
2397 self._bitfield_1.set(0usize, 4u8, val as u64)
2398 }
2399 }
2400 #[inline]
2401 pub fn ihl(&self) -> __u8 {
2402 unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) }
2403 }
2404 #[inline]
2405 pub fn set_ihl(&mut self, val: __u8) {
2406 unsafe {
2407 let val: u8 = ::core::mem::transmute(val);
2408 self._bitfield_1.set(4usize, 4u8, val as u64)
2409 }
2410 }
2411 #[inline]
2412 pub fn new_bitfield_1(version: __u8, ihl: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> {
2413 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
2414 __bindgen_bitfield_unit.set(0usize, 4u8, {
2415 let version: u8 = unsafe { ::core::mem::transmute(version) };
2416 version as u64
2417 });
2418 __bindgen_bitfield_unit.set(4usize, 4u8, {
2419 let ihl: u8 = unsafe { ::core::mem::transmute(ihl) };
2420 ihl as u64
2421 });
2422 __bindgen_bitfield_unit
2423 }
2424 }
2425 impl ipv6hdr {
2426 #[inline]
2427 pub fn version(&self) -> __u8 {
2428 unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) }
2429 }
2430 #[inline]
2431 pub fn set_version(&mut self, val: __u8) {
2432 unsafe {
2433 let val: u8 = ::core::mem::transmute(val);
2434 self._bitfield_1.set(0usize, 4u8, val as u64)
2435 }
2436 }
2437 #[inline]
2438 pub fn priority(&self) -> __u8 {
2439 unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) }
2440 }
2441 #[inline]
2442 pub fn set_priority(&mut self, val: __u8) {
2443 unsafe {
2444 let val: u8 = ::core::mem::transmute(val);
2445 self._bitfield_1.set(4usize, 4u8, val as u64)
2446 }
2447 }
2448 #[inline]
2449 pub fn new_bitfield_1(version: __u8, priority: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> {
2450 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
2451 __bindgen_bitfield_unit.set(0usize, 4u8, {
2452 let version: u8 = unsafe { ::core::mem::transmute(version) };
2453 version as u64
2454 });
2455 __bindgen_bitfield_unit.set(4usize, 4u8, {
2456 let priority: u8 = unsafe { ::core::mem::transmute(priority) };
2457 priority as u64
2458 });
2459 __bindgen_bitfield_unit
2460 }
2461 }
2462 impl tcphdr {
2463 #[inline]
2464 pub fn doff(&self) -> __u16 {
2465 unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u16) }
2466 }
2467 #[inline]
2468 pub fn set_doff(&mut self, val: __u16) {
2469 unsafe {
2470 let val: u16 = ::core::mem::transmute(val);
2471 self._bitfield_1.set(0usize, 4u8, val as u64)
2472 }
2473 }
2474 #[inline]
2475 pub fn res1(&self) -> __u16 {
2476 unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u16) }
2477 }
2478 #[inline]
2479 pub fn set_res1(&mut self, val: __u16) {
2480 unsafe {
2481 let val: u16 = ::core::mem::transmute(val);
2482 self._bitfield_1.set(4usize, 4u8, val as u64)
2483 }
2484 }
2485 #[inline]
2486 pub fn cwr(&self) -> __u16 {
2487 unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u16) }
2488 }
2489 #[inline]
2490 pub fn set_cwr(&mut self, val: __u16) {
2491 unsafe {
2492 let val: u16 = ::core::mem::transmute(val);
2493 self._bitfield_1.set(8usize, 1u8, val as u64)
2494 }
2495 }
2496 #[inline]
2497 pub fn ece(&self) -> __u16 {
2498 unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u16) }
2499 }
2500 #[inline]
2501 pub fn set_ece(&mut self, val: __u16) {
2502 unsafe {
2503 let val: u16 = ::core::mem::transmute(val);
2504 self._bitfield_1.set(9usize, 1u8, val as u64)
2505 }
2506 }
2507 #[inline]
2508 pub fn urg(&self) -> __u16 {
2509 unsafe { ::core::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u16) }
2510 }
2511 #[inline]
2512 pub fn set_urg(&mut self, val: __u16) {
2513 unsafe {
2514 let val: u16 = ::core::mem::transmute(val);
2515 self._bitfield_1.set(10usize, 1u8, val as u64)
2516 }
2517 }
2518 #[inline]
2519 pub fn ack(&self) -> __u16 {
2520 unsafe { ::core::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u16) }
2521 }
2522 #[inline]
2523 pub fn set_ack(&mut self, val: __u16) {
2524 unsafe {
2525 let val: u16 = ::core::mem::transmute(val);
2526 self._bitfield_1.set(11usize, 1u8, val as u64)
2527 }
2528 }
2529 #[inline]
2530 pub fn psh(&self) -> __u16 {
2531 unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u16) }
2532 }
2533 #[inline]
2534 pub fn set_psh(&mut self, val: __u16) {
2535 unsafe {
2536 let val: u16 = ::core::mem::transmute(val);
2537 self._bitfield_1.set(12usize, 1u8, val as u64)
2538 }
2539 }
2540 #[inline]
2541 pub fn rst(&self) -> __u16 {
2542 unsafe { ::core::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u16) }
2543 }
2544 #[inline]
2545 pub fn set_rst(&mut self, val: __u16) {
2546 unsafe {
2547 let val: u16 = ::core::mem::transmute(val);
2548 self._bitfield_1.set(13usize, 1u8, val as u64)
2549 }
2550 }
2551 #[inline]
2552 pub fn syn(&self) -> __u16 {
2553 unsafe { ::core::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) }
2554 }
2555 #[inline]
2556 pub fn set_syn(&mut self, val: __u16) {
2557 unsafe {
2558 let val: u16 = ::core::mem::transmute(val);
2559 self._bitfield_1.set(14usize, 1u8, val as u64)
2560 }
2561 }
2562 #[inline]
2563 pub fn fin(&self) -> __u16 {
2564 unsafe { ::core::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) }
2565 }
2566 #[inline]
2567 pub fn set_fin(&mut self, val: __u16) {
2568 unsafe {
2569 let val: u16 = ::core::mem::transmute(val);
2570 self._bitfield_1.set(15usize, 1u8, val as u64)
2571 }
2572 }
2573 #[inline]
2574 pub fn new_bitfield_1(doff: __u16, res1: __u16, cwr: __u16, ece: __u16, urg: __u16, ack: __u16, psh: __u16, rst: __u16, syn: __u16, fin: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> {
2575 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default();
2576 __bindgen_bitfield_unit.set(0usize, 4u8, {
2577 let doff: u16 = unsafe { ::core::mem::transmute(doff) };
2578 doff as u64
2579 });
2580 __bindgen_bitfield_unit.set(4usize, 4u8, {
2581 let res1: u16 = unsafe { ::core::mem::transmute(res1) };
2582 res1 as u64
2583 });
2584 __bindgen_bitfield_unit.set(8usize, 1u8, {
2585 let cwr: u16 = unsafe { ::core::mem::transmute(cwr) };
2586 cwr as u64
2587 });
2588 __bindgen_bitfield_unit.set(9usize, 1u8, {
2589 let ece: u16 = unsafe { ::core::mem::transmute(ece) };
2590 ece as u64
2591 });
2592 __bindgen_bitfield_unit.set(10usize, 1u8, {
2593 let urg: u16 = unsafe { ::core::mem::transmute(urg) };
2594 urg as u64
2595 });
2596 __bindgen_bitfield_unit.set(11usize, 1u8, {
2597 let ack: u16 = unsafe { ::core::mem::transmute(ack) };
2598 ack as u64
2599 });
2600 __bindgen_bitfield_unit.set(12usize, 1u8, {
2601 let psh: u16 = unsafe { ::core::mem::transmute(psh) };
2602 psh as u64
2603 });
2604 __bindgen_bitfield_unit.set(13usize, 1u8, {
2605 let rst: u16 = unsafe { ::core::mem::transmute(rst) };
2606 rst as u64
2607 });
2608 __bindgen_bitfield_unit.set(14usize, 1u8, {
2609 let syn: u16 = unsafe { ::core::mem::transmute(syn) };
2610 syn as u64
2611 });
2612 __bindgen_bitfield_unit.set(15usize, 1u8, {
2613 let fin: u16 = unsafe { ::core::mem::transmute(fin) };
2614 fin as u64
2615 });
2616 __bindgen_bitfield_unit
2617 }
2618 }
2619 impl tcp_info {
2620 #[inline]
2621 pub fn tcpi_snd_wscale(&self) -> __u8 {
2622 unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) }
2623 }
2624 #[inline]
2625 pub fn set_tcpi_snd_wscale(&mut self, val: __u8) {
2626 unsafe {
2627 let val: u8 = ::core::mem::transmute(val);
2628 self._bitfield_1.set(0usize, 4u8, val as u64)
2629 }
2630 }
2631 #[inline]
2632 pub fn tcpi_rcv_wscale(&self) -> __u8 {
2633 unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) }
2634 }
2635 #[inline]
2636 pub fn set_tcpi_rcv_wscale(&mut self, val: __u8) {
2637 unsafe {
2638 let val: u8 = ::core::mem::transmute(val);
2639 self._bitfield_1.set(4usize, 4u8, val as u64)
2640 }
2641 }
2642 #[inline]
2643 pub fn tcpi_delivery_rate_app_limited(&self) -> __u8 {
2644 unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u8) }
2645 }
2646 #[inline]
2647 pub fn set_tcpi_delivery_rate_app_limited(&mut self, val: __u8) {
2648 unsafe {
2649 let val: u8 = ::core::mem::transmute(val);
2650 self._bitfield_1.set(8usize, 1u8, val as u64)
2651 }
2652 }
2653 #[inline]
2654 pub fn tcpi_fastopen_client_fail(&self) -> __u8 {
2655 unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 2u8) as u8) }
2656 }
2657 #[inline]
2658 pub fn set_tcpi_fastopen_client_fail(&mut self, val: __u8) {
2659 unsafe {
2660 let val: u8 = ::core::mem::transmute(val);
2661 self._bitfield_1.set(9usize, 2u8, val as u64)
2662 }
2663 }
2664 #[inline]
2665 pub fn new_bitfield_1(tcpi_snd_wscale: __u8, tcpi_rcv_wscale: __u8, tcpi_delivery_rate_app_limited: __u8, tcpi_fastopen_client_fail: __u8) -> __BindgenBitfieldUnit<[u8; 2usize]> {
2666 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default();
2667 __bindgen_bitfield_unit.set(0usize, 4u8, {
2668 let tcpi_snd_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_snd_wscale) };
2669 tcpi_snd_wscale as u64
2670 });
2671 __bindgen_bitfield_unit.set(4usize, 4u8, {
2672 let tcpi_rcv_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_rcv_wscale) };
2673 tcpi_rcv_wscale as u64
2674 });
2675 __bindgen_bitfield_unit.set(8usize, 1u8, {
2676 let tcpi_delivery_rate_app_limited: u8 = unsafe { ::core::mem::transmute(tcpi_delivery_rate_app_limited) };
2677 tcpi_delivery_rate_app_limited as u64
2678 });
2679 __bindgen_bitfield_unit.set(9usize, 2u8, {
2680 let tcpi_fastopen_client_fail: u8 = unsafe { ::core::mem::transmute(tcpi_fastopen_client_fail) };
2681 tcpi_fastopen_client_fail as u64
2682 });
2683 __bindgen_bitfield_unit
2684 }
2685 }
2686 impl nf_inet_hooks {
2687 pub const NF_INET_INGRESS: nf_inet_hooks = nf_inet_hooks::NF_INET_NUMHOOKS;
2688 }
2689 impl nf_ip_hook_priorities {
2690 pub const NF_IP_PRI_LAST: nf_ip_hook_priorities = nf_ip_hook_priorities::NF_IP_PRI_CONNTRACK_CONFIRM;
2691 }