Debian Codegraph @

debian/rust-vendor/linux-raw-sys/src/s390x/net.rs

raw
1 /* automatically generated by rust-bindgen 0.72.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 addr_t = crate::ctypes::c_ulong;
12 pub type saddr_t = crate::ctypes::c_long;
13 pub type __kernel_key_t = crate::ctypes::c_int;
14 pub type __kernel_mqd_t = crate::ctypes::c_int;
15 pub type __kernel_size_t = crate::ctypes::c_ulong;
16 pub type __kernel_ssize_t = crate::ctypes::c_long;
17 pub type __kernel_old_dev_t = crate::ctypes::c_ushort;
18 pub type __kernel_ino_t = crate::ctypes::c_uint;
19 pub type __kernel_mode_t = crate::ctypes::c_uint;
20 pub type __kernel_ipc_pid_t = crate::ctypes::c_int;
21 pub type __kernel_uid_t = crate::ctypes::c_uint;
22 pub type __kernel_gid_t = crate::ctypes::c_uint;
23 pub type __kernel_ptrdiff_t = crate::ctypes::c_long;
24 pub type __kernel_sigset_t = crate::ctypes::c_ulong;
25 pub type __kernel_long_t = crate::ctypes::c_long;
26 pub type __kernel_ulong_t = crate::ctypes::c_ulong;
27 pub type __kernel_pid_t = crate::ctypes::c_int;
28 pub type __kernel_suseconds_t = __kernel_long_t;
29 pub type __kernel_daddr_t = crate::ctypes::c_int;
30 pub type __kernel_uid32_t = crate::ctypes::c_uint;
31 pub type __kernel_gid32_t = crate::ctypes::c_uint;
32 pub type __kernel_old_uid_t = __kernel_uid_t;
33 pub type __kernel_old_gid_t = __kernel_gid_t;
34 pub type __kernel_off_t = __kernel_long_t;
35 pub type __kernel_loff_t = crate::ctypes::c_longlong;
36 pub type __kernel_old_time_t = __kernel_long_t;
37 pub type __kernel_time_t = __kernel_long_t;
38 pub type __kernel_time64_t = crate::ctypes::c_longlong;
39 pub type __kernel_clock_t = __kernel_long_t;
40 pub type __kernel_timer_t = crate::ctypes::c_int;
41 pub type __kernel_clockid_t = crate::ctypes::c_int;
42 pub type __kernel_caddr_t = *mut crate::ctypes::c_char;
43 pub type __kernel_uid16_t = crate::ctypes::c_ushort;
44 pub type __kernel_gid16_t = crate::ctypes::c_ushort;
45 pub type __s128 = i128;
46 pub type __u128 = u128;
47 pub type __le16 = __u16;
48 pub type __be16 = __u16;
49 pub type __le32 = __u32;
50 pub type __be32 = __u32;
51 pub type __le64 = __u64;
52 pub type __be64 = __u64;
53 pub type __sum16 = __u16;
54 pub type __wsum = __u32;
55 pub type __poll_t = crate::ctypes::c_uint;
56 pub type __kernel_sa_family_t = crate::ctypes::c_ushort;
57 pub type socklen_t = crate::ctypes::c_uint;
58 #[repr(C)]
59 #[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
60 pub struct __BindgenBitfieldUnit<Storage> {
61 storage: Storage,
62 }
63 #[repr(C)]
64 #[derive(Default)]
65 pub struct __IncompleteArrayField<T>(::core::marker::PhantomData<T>, [T; 0]);
66 #[repr(C)]
67 pub struct __BindgenUnionField<T>(::core::marker::PhantomData<T>);
68 #[repr(C, packed(4))]
69 #[derive(Copy, Clone)]
70 pub struct __vector128 {
71 pub __bindgen_anon_1: __vector128__bindgen_ty_1,
72 }
73 #[repr(C)]
74 #[derive(Debug, Copy, Clone)]
75 pub struct __vector128__bindgen_ty_1__bindgen_ty_1 {
76 pub high: __u64,
77 pub low: __u64,
78 }
79 #[repr(C)]
80 #[derive(Copy, Clone)]
81 pub struct __kernel_sockaddr_storage {
82 pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1,
83 }
84 #[repr(C)]
85 #[derive(Debug, Copy, Clone)]
86 pub struct __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 {
87 pub ss_family: __kernel_sa_family_t,
88 pub __data: [crate::ctypes::c_char; 126usize],
89 }
90 #[repr(C)]
91 #[derive(Debug, Copy, Clone)]
92 pub struct in_addr {
93 pub s_addr: __be32,
94 }
95 #[repr(C)]
96 #[derive(Debug, Copy, Clone)]
97 pub struct ip_mreq {
98 pub imr_multiaddr: in_addr,
99 pub imr_interface: in_addr,
100 }
101 #[repr(C)]
102 #[derive(Debug, Copy, Clone)]
103 pub struct ip_mreqn {
104 pub imr_multiaddr: in_addr,
105 pub imr_address: in_addr,
106 pub imr_ifindex: crate::ctypes::c_int,
107 }
108 #[repr(C)]
109 #[derive(Debug, Copy, Clone)]
110 pub struct ip_mreq_source {
111 pub imr_multiaddr: __be32,
112 pub imr_interface: __be32,
113 pub imr_sourceaddr: __be32,
114 }
115 #[repr(C)]
116 pub struct ip_msfilter {
117 pub imsf_multiaddr: __be32,
118 pub imsf_interface: __be32,
119 pub imsf_fmode: __u32,
120 pub imsf_numsrc: __u32,
121 pub __bindgen_anon_1: ip_msfilter__bindgen_ty_1,
122 }
123 #[repr(C)]
124 pub struct ip_msfilter__bindgen_ty_1 {
125 pub imsf_slist: __BindgenUnionField<[__be32; 1usize]>,
126 pub __bindgen_anon_1: __BindgenUnionField<ip_msfilter__bindgen_ty_1__bindgen_ty_1>,
127 pub bindgen_union_field: u32,
128 }
129 #[repr(C)]
130 #[derive(Debug)]
131 pub struct ip_msfilter__bindgen_ty_1__bindgen_ty_1 {
132 pub __empty_imsf_slist_flex: ip_msfilter__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1,
133 pub imsf_slist_flex: __IncompleteArrayField<__be32>,
134 }
135 #[repr(C)]
136 #[derive(Debug, Copy, Clone)]
137 pub struct ip_msfilter__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {}
138 #[repr(C)]
139 #[derive(Copy, Clone)]
140 pub struct group_req {
141 pub gr_interface: __u32,
142 pub gr_group: __kernel_sockaddr_storage,
143 }
144 #[repr(C)]
145 #[derive(Copy, Clone)]
146 pub struct group_source_req {
147 pub gsr_interface: __u32,
148 pub gsr_group: __kernel_sockaddr_storage,
149 pub gsr_source: __kernel_sockaddr_storage,
150 }
151 #[repr(C)]
152 pub struct group_filter {
153 pub __bindgen_anon_1: group_filter__bindgen_ty_1,
154 }
155 #[repr(C)]
156 pub struct group_filter__bindgen_ty_1 {
157 pub __bindgen_anon_1: __BindgenUnionField<group_filter__bindgen_ty_1__bindgen_ty_1>,
158 pub __bindgen_anon_2: __BindgenUnionField<group_filter__bindgen_ty_1__bindgen_ty_2>,
159 pub bindgen_union_field: [u64; 34usize],
160 }
161 #[repr(C)]
162 #[derive(Copy, Clone)]
163 pub struct group_filter__bindgen_ty_1__bindgen_ty_1 {
164 pub gf_interface_aux: __u32,
165 pub gf_group_aux: __kernel_sockaddr_storage,
166 pub gf_fmode_aux: __u32,
167 pub gf_numsrc_aux: __u32,
168 pub gf_slist: [__kernel_sockaddr_storage; 1usize],
169 }
170 #[repr(C)]
171 pub struct group_filter__bindgen_ty_1__bindgen_ty_2 {
172 pub gf_interface: __u32,
173 pub gf_group: __kernel_sockaddr_storage,
174 pub gf_fmode: __u32,
175 pub gf_numsrc: __u32,
176 pub gf_slist_flex: __IncompleteArrayField<__kernel_sockaddr_storage>,
177 }
178 #[repr(C)]
179 #[derive(Debug, Copy, Clone)]
180 pub struct in_pktinfo {
181 pub ipi_ifindex: crate::ctypes::c_int,
182 pub ipi_spec_dst: in_addr,
183 pub ipi_addr: in_addr,
184 }
185 #[repr(C)]
186 #[derive(Debug, Copy, Clone)]
187 pub struct sockaddr_in {
188 pub sin_family: __kernel_sa_family_t,
189 pub sin_port: __be16,
190 pub sin_addr: in_addr,
191 pub __pad: [crate::ctypes::c_uchar; 8usize],
192 }
193 #[repr(C)]
194 #[derive(Copy, Clone)]
195 pub struct iphdr {
196 pub _bitfield_align_1: [u8; 0],
197 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
198 pub tos: __u8,
199 pub tot_len: __be16,
200 pub id: __be16,
201 pub frag_off: __be16,
202 pub ttl: __u8,
203 pub protocol: __u8,
204 pub check: __sum16,
205 pub __bindgen_anon_1: iphdr__bindgen_ty_1,
206 }
207 #[repr(C)]
208 #[derive(Debug, Copy, Clone)]
209 pub struct iphdr__bindgen_ty_1__bindgen_ty_1 {
210 pub saddr: __be32,
211 pub daddr: __be32,
212 }
213 #[repr(C)]
214 #[derive(Debug, Copy, Clone)]
215 pub struct iphdr__bindgen_ty_1__bindgen_ty_2 {
216 pub saddr: __be32,
217 pub daddr: __be32,
218 }
219 #[repr(C)]
220 #[derive(Debug)]
221 pub struct ip_auth_hdr {
222 pub nexthdr: __u8,
223 pub hdrlen: __u8,
224 pub reserved: __be16,
225 pub spi: __be32,
226 pub seq_no: __be32,
227 pub auth_data: __IncompleteArrayField<__u8>,
228 }
229 #[repr(C)]
230 #[derive(Debug)]
231 pub struct ip_esp_hdr {
232 pub spi: __be32,
233 pub seq_no: __be32,
234 pub enc_data: __IncompleteArrayField<__u8>,
235 }
236 #[repr(C)]
237 #[derive(Debug, Copy, Clone)]
238 pub struct ip_comp_hdr {
239 pub nexthdr: __u8,
240 pub flags: __u8,
241 pub cpi: __be16,
242 }
243 #[repr(C)]
244 #[derive(Debug, Copy, Clone)]
245 pub struct ip_beet_phdr {
246 pub nexthdr: __u8,
247 pub hdrlen: __u8,
248 pub padlen: __u8,
249 pub reserved: __u8,
250 }
251 #[repr(C)]
252 #[derive(Debug, Copy, Clone)]
253 pub struct ip_iptfs_hdr {
254 pub subtype: __u8,
255 pub flags: __u8,
256 pub block_offset: __be16,
257 }
258 #[repr(C)]
259 #[derive(Debug, Copy, Clone)]
260 pub struct ip_iptfs_cc_hdr {
261 pub subtype: __u8,
262 pub flags: __u8,
263 pub block_offset: __be16,
264 pub loss_rate: __be32,
265 pub rtt_adelay_xdelay: __be64,
266 pub tval: __be32,
267 pub techo: __be32,
268 }
269 #[repr(C)]
270 #[derive(Copy, Clone)]
271 pub struct in6_addr {
272 pub in6_u: in6_addr__bindgen_ty_1,
273 }
274 #[repr(C)]
275 #[derive(Copy, Clone)]
276 pub struct sockaddr_in6 {
277 pub sin6_family: crate::ctypes::c_ushort,
278 pub sin6_port: __be16,
279 pub sin6_flowinfo: __be32,
280 pub sin6_addr: in6_addr,
281 pub sin6_scope_id: __u32,
282 }
283 #[repr(C)]
284 #[derive(Copy, Clone)]
285 pub struct ipv6_mreq {
286 pub ipv6mr_multiaddr: in6_addr,
287 pub ipv6mr_ifindex: crate::ctypes::c_int,
288 }
289 #[repr(C)]
290 #[derive(Copy, Clone)]
291 pub struct in6_flowlabel_req {
292 pub flr_dst: in6_addr,
293 pub flr_label: __be32,
294 pub flr_action: __u8,
295 pub flr_share: __u8,
296 pub flr_flags: __u16,
297 pub flr_expires: __u16,
298 pub flr_linger: __u16,
299 pub __flr_pad: __u32,
300 }
301 #[repr(C)]
302 #[derive(Copy, Clone)]
303 pub struct in6_pktinfo {
304 pub ipi6_addr: in6_addr,
305 pub ipi6_ifindex: crate::ctypes::c_int,
306 }
307 #[repr(C)]
308 #[derive(Copy, Clone)]
309 pub struct ip6_mtuinfo {
310 pub ip6m_addr: sockaddr_in6,
311 pub ip6m_mtu: __u32,
312 }
313 #[repr(C)]
314 #[derive(Copy, Clone)]
315 pub struct in6_ifreq {
316 pub ifr6_addr: in6_addr,
317 pub ifr6_prefixlen: __u32,
318 pub ifr6_ifindex: crate::ctypes::c_int,
319 }
320 #[repr(C)]
321 #[derive(Debug, Copy, Clone)]
322 pub struct ipv6_rt_hdr {
323 pub nexthdr: __u8,
324 pub hdrlen: __u8,
325 pub type_: __u8,
326 pub segments_left: __u8,
327 }
328 #[repr(C, packed)]
329 #[derive(Debug, Copy, Clone)]
330 pub struct ipv6_opt_hdr {
331 pub nexthdr: __u8,
332 pub hdrlen: __u8,
333 }
334 #[repr(C)]
335 pub struct rt0_hdr {
336 pub rt_hdr: ipv6_rt_hdr,
337 pub reserved: __u32,
338 pub addr: __IncompleteArrayField<in6_addr>,
339 }
340 #[repr(C)]
341 #[derive(Copy, Clone)]
342 pub struct rt2_hdr {
343 pub rt_hdr: ipv6_rt_hdr,
344 pub reserved: __u32,
345 pub addr: in6_addr,
346 }
347 #[repr(C, packed)]
348 #[derive(Copy, Clone)]
349 pub struct ipv6_destopt_hao {
350 pub type_: __u8,
351 pub length: __u8,
352 pub addr: in6_addr,
353 }
354 #[repr(C)]
355 #[derive(Copy, Clone)]
356 pub struct ipv6hdr {
357 pub _bitfield_align_1: [u8; 0],
358 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
359 pub flow_lbl: [__u8; 3usize],
360 pub payload_len: __be16,
361 pub nexthdr: __u8,
362 pub hop_limit: __u8,
363 pub __bindgen_anon_1: ipv6hdr__bindgen_ty_1,
364 }
365 #[repr(C)]
366 #[derive(Copy, Clone)]
367 pub struct ipv6hdr__bindgen_ty_1__bindgen_ty_1 {
368 pub saddr: in6_addr,
369 pub daddr: in6_addr,
370 }
371 #[repr(C)]
372 #[derive(Copy, Clone)]
373 pub struct ipv6hdr__bindgen_ty_1__bindgen_ty_2 {
374 pub saddr: in6_addr,
375 pub daddr: in6_addr,
376 }
377 #[repr(C)]
378 #[derive(Debug, Copy, Clone)]
379 pub struct tcphdr {
380 pub source: __be16,
381 pub dest: __be16,
382 pub seq: __be32,
383 pub ack_seq: __be32,
384 pub _bitfield_align_1: [u8; 0],
385 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>,
386 pub window: __be16,
387 pub check: __sum16,
388 pub urg_ptr: __be16,
389 }
390 #[repr(C)]
391 #[derive(Debug, Copy, Clone)]
392 pub struct tcp_repair_opt {
393 pub opt_code: __u32,
394 pub opt_val: __u32,
395 }
396 #[repr(C)]
397 #[derive(Debug, Copy, Clone)]
398 pub struct tcp_repair_window {
399 pub snd_wl1: __u32,
400 pub snd_wnd: __u32,
401 pub max_window: __u32,
402 pub rcv_wnd: __u32,
403 pub rcv_wup: __u32,
404 }
405 #[repr(C)]
406 #[derive(Debug, Copy, Clone)]
407 pub struct tcp_info {
408 pub tcpi_state: __u8,
409 pub tcpi_ca_state: __u8,
410 pub tcpi_retransmits: __u8,
411 pub tcpi_probes: __u8,
412 pub tcpi_backoff: __u8,
413 pub tcpi_options: __u8,
414 pub _bitfield_align_1: [u8; 0],
415 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>,
416 pub tcpi_rto: __u32,
417 pub tcpi_ato: __u32,
418 pub tcpi_snd_mss: __u32,
419 pub tcpi_rcv_mss: __u32,
420 pub tcpi_unacked: __u32,
421 pub tcpi_sacked: __u32,
422 pub tcpi_lost: __u32,
423 pub tcpi_retrans: __u32,
424 pub tcpi_fackets: __u32,
425 pub tcpi_last_data_sent: __u32,
426 pub tcpi_last_ack_sent: __u32,
427 pub tcpi_last_data_recv: __u32,
428 pub tcpi_last_ack_recv: __u32,
429 pub tcpi_pmtu: __u32,
430 pub tcpi_rcv_ssthresh: __u32,
431 pub tcpi_rtt: __u32,
432 pub tcpi_rttvar: __u32,
433 pub tcpi_snd_ssthresh: __u32,
434 pub tcpi_snd_cwnd: __u32,
435 pub tcpi_advmss: __u32,
436 pub tcpi_reordering: __u32,
437 pub tcpi_rcv_rtt: __u32,
438 pub tcpi_rcv_space: __u32,
439 pub tcpi_total_retrans: __u32,
440 pub tcpi_pacing_rate: __u64,
441 pub tcpi_max_pacing_rate: __u64,
442 pub tcpi_bytes_acked: __u64,
443 pub tcpi_bytes_received: __u64,
444 pub tcpi_segs_out: __u32,
445 pub tcpi_segs_in: __u32,
446 pub tcpi_notsent_bytes: __u32,
447 pub tcpi_min_rtt: __u32,
448 pub tcpi_data_segs_in: __u32,
449 pub tcpi_data_segs_out: __u32,
450 pub tcpi_delivery_rate: __u64,
451 pub tcpi_busy_time: __u64,
452 pub tcpi_rwnd_limited: __u64,
453 pub tcpi_sndbuf_limited: __u64,
454 pub tcpi_delivered: __u32,
455 pub tcpi_delivered_ce: __u32,
456 pub tcpi_bytes_sent: __u64,
457 pub tcpi_bytes_retrans: __u64,
458 pub tcpi_dsack_dups: __u32,
459 pub tcpi_reord_seen: __u32,
460 pub tcpi_rcv_ooopack: __u32,
461 pub tcpi_snd_wnd: __u32,
462 pub tcpi_rcv_wnd: __u32,
463 pub tcpi_rehash: __u32,
464 pub tcpi_total_rto: __u16,
465 pub tcpi_total_rto_recoveries: __u16,
466 pub tcpi_total_rto_time: __u32,
467 }
468 #[repr(C)]
469 #[derive(Copy, Clone)]
470 pub struct tcp_md5sig {
471 pub tcpm_addr: __kernel_sockaddr_storage,
472 pub tcpm_flags: __u8,
473 pub tcpm_prefixlen: __u8,
474 pub tcpm_keylen: __u16,
475 pub tcpm_ifindex: crate::ctypes::c_int,
476 pub tcpm_key: [__u8; 80usize],
477 }
478 #[repr(C)]
479 #[derive(Debug, Copy, Clone)]
480 pub struct tcp_diag_md5sig {
481 pub tcpm_family: __u8,
482 pub tcpm_prefixlen: __u8,
483 pub tcpm_keylen: __u16,
484 pub tcpm_addr: [__be32; 4usize],
485 pub tcpm_key: [__u8; 80usize],
486 }
487 #[repr(C)]
488 #[derive(Copy, Clone)]
489 pub struct tcp_ao_add {
490 pub addr: __kernel_sockaddr_storage,
491 pub alg_name: [crate::ctypes::c_char; 64usize],
492 pub ifindex: __s32,
493 pub _bitfield_align_1: [u32; 0],
494 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
495 pub reserved2: __u16,
496 pub prefix: __u8,
497 pub sndid: __u8,
498 pub rcvid: __u8,
499 pub maclen: __u8,
500 pub keyflags: __u8,
501 pub keylen: __u8,
502 pub key: [__u8; 80usize],
503 }
504 #[repr(C)]
505 #[derive(Copy, Clone)]
506 pub struct tcp_ao_del {
507 pub addr: __kernel_sockaddr_storage,
508 pub ifindex: __s32,
509 pub _bitfield_align_1: [u32; 0],
510 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
511 pub reserved2: __u16,
512 pub prefix: __u8,
513 pub sndid: __u8,
514 pub rcvid: __u8,
515 pub current_key: __u8,
516 pub rnext: __u8,
517 pub keyflags: __u8,
518 }
519 #[repr(C)]
520 #[derive(Debug, Copy, Clone)]
521 pub struct tcp_ao_info_opt {
522 pub _bitfield_align_1: [u32; 0],
523 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
524 pub reserved2: __u16,
525 pub current_key: __u8,
526 pub rnext: __u8,
527 pub pkt_good: __u64,
528 pub pkt_bad: __u64,
529 pub pkt_key_not_found: __u64,
530 pub pkt_ao_required: __u64,
531 pub pkt_dropped_icmp: __u64,
532 }
533 #[repr(C)]
534 #[derive(Copy, Clone)]
535 pub struct tcp_ao_getsockopt {
536 pub addr: __kernel_sockaddr_storage,
537 pub alg_name: [crate::ctypes::c_char; 64usize],
538 pub key: [__u8; 80usize],
539 pub nkeys: __u32,
540 pub _bitfield_align_1: [u16; 0],
541 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>,
542 pub sndid: __u8,
543 pub rcvid: __u8,
544 pub prefix: __u8,
545 pub maclen: __u8,
546 pub keyflags: __u8,
547 pub keylen: __u8,
548 pub ifindex: __s32,
549 pub pkt_good: __u64,
550 pub pkt_bad: __u64,
551 }
552 #[repr(C)]
553 #[repr(align(8))]
554 #[derive(Debug, Copy, Clone)]
555 pub struct tcp_ao_repair {
556 pub snt_isn: __be32,
557 pub rcv_isn: __be32,
558 pub snd_sne: __u32,
559 pub rcv_sne: __u32,
560 }
561 #[repr(C)]
562 #[derive(Debug, Copy, Clone)]
563 pub struct tcp_zerocopy_receive {
564 pub address: __u64,
565 pub length: __u32,
566 pub recv_skip_hint: __u32,
567 pub inq: __u32,
568 pub err: __s32,
569 pub copybuf_address: __u64,
570 pub copybuf_len: __s32,
571 pub flags: __u32,
572 pub msg_control: __u64,
573 pub msg_controllen: __u64,
574 pub msg_flags: __u32,
575 pub reserved: __u32,
576 }
577 #[repr(C)]
578 #[derive(Debug, Copy, Clone)]
579 pub struct sockaddr_un {
580 pub sun_family: __kernel_sa_family_t,
581 pub sun_path: [crate::ctypes::c_char; 108usize],
582 }
583 #[repr(C)]
584 #[derive(Copy, Clone)]
585 pub struct sockaddr {
586 pub __storage: __kernel_sockaddr_storage,
587 }
588 #[repr(C)]
589 #[derive(Debug, Copy, Clone)]
590 pub struct sync_serial_settings {
591 pub clock_rate: crate::ctypes::c_uint,
592 pub clock_type: crate::ctypes::c_uint,
593 pub loopback: crate::ctypes::c_ushort,
594 }
595 #[repr(C)]
596 #[derive(Debug, Copy, Clone)]
597 pub struct te1_settings {
598 pub clock_rate: crate::ctypes::c_uint,
599 pub clock_type: crate::ctypes::c_uint,
600 pub loopback: crate::ctypes::c_ushort,
601 pub slot_map: crate::ctypes::c_uint,
602 }
603 #[repr(C)]
604 #[derive(Debug, Copy, Clone)]
605 pub struct raw_hdlc_proto {
606 pub encoding: crate::ctypes::c_ushort,
607 pub parity: crate::ctypes::c_ushort,
608 }
609 #[repr(C)]
610 #[derive(Debug, Copy, Clone)]
611 pub struct fr_proto {
612 pub t391: crate::ctypes::c_uint,
613 pub t392: crate::ctypes::c_uint,
614 pub n391: crate::ctypes::c_uint,
615 pub n392: crate::ctypes::c_uint,
616 pub n393: crate::ctypes::c_uint,
617 pub lmi: crate::ctypes::c_ushort,
618 pub dce: crate::ctypes::c_ushort,
619 }
620 #[repr(C)]
621 #[derive(Debug, Copy, Clone)]
622 pub struct fr_proto_pvc {
623 pub dlci: crate::ctypes::c_uint,
624 }
625 #[repr(C)]
626 #[derive(Debug, Copy, Clone)]
627 pub struct fr_proto_pvc_info {
628 pub dlci: crate::ctypes::c_uint,
629 pub master: [crate::ctypes::c_char; 16usize],
630 }
631 #[repr(C)]
632 #[derive(Debug, Copy, Clone)]
633 pub struct cisco_proto {
634 pub interval: crate::ctypes::c_uint,
635 pub timeout: crate::ctypes::c_uint,
636 }
637 #[repr(C)]
638 #[derive(Debug, Copy, Clone)]
639 pub struct x25_hdlc_proto {
640 pub dce: crate::ctypes::c_ushort,
641 pub modulo: crate::ctypes::c_uint,
642 pub window: crate::ctypes::c_uint,
643 pub t1: crate::ctypes::c_uint,
644 pub t2: crate::ctypes::c_uint,
645 pub n2: crate::ctypes::c_uint,
646 }
647 #[repr(C)]
648 #[derive(Debug, Copy, Clone)]
649 pub struct ifmap {
650 pub mem_start: crate::ctypes::c_ulong,
651 pub mem_end: crate::ctypes::c_ulong,
652 pub base_addr: crate::ctypes::c_ushort,
653 pub irq: crate::ctypes::c_uchar,
654 pub dma: crate::ctypes::c_uchar,
655 pub port: crate::ctypes::c_uchar,
656 }
657 #[repr(C)]
658 #[derive(Copy, Clone)]
659 pub struct if_settings {
660 pub type_: crate::ctypes::c_uint,
661 pub size: crate::ctypes::c_uint,
662 pub ifs_ifsu: if_settings__bindgen_ty_1,
663 }
664 #[repr(C)]
665 #[derive(Copy, Clone)]
666 pub struct ifreq {
667 pub ifr_ifrn: ifreq__bindgen_ty_1,
668 pub ifr_ifru: ifreq__bindgen_ty_2,
669 }
670 #[repr(C)]
671 #[derive(Copy, Clone)]
672 pub struct ifconf {
673 pub ifc_len: crate::ctypes::c_int,
674 pub ifc_ifcu: ifconf__bindgen_ty_1,
675 }
676 #[repr(C)]
677 pub struct xt_entry_match {
678 pub u: xt_entry_match__bindgen_ty_1,
679 pub data: __IncompleteArrayField<crate::ctypes::c_uchar>,
680 }
681 #[repr(C)]
682 #[derive(Debug, Copy, Clone)]
683 pub struct xt_entry_match__bindgen_ty_1__bindgen_ty_1 {
684 pub match_size: __u16,
685 pub name: [crate::ctypes::c_char; 29usize],
686 pub revision: __u8,
687 }
688 #[repr(C)]
689 #[derive(Debug, Copy, Clone)]
690 pub struct xt_entry_match__bindgen_ty_1__bindgen_ty_2 {
691 pub match_size: __u16,
692 pub match_: *mut xt_match,
693 }
694 #[repr(C)]
695 pub struct xt_entry_target {
696 pub u: xt_entry_target__bindgen_ty_1,
697 pub data: __IncompleteArrayField<crate::ctypes::c_uchar>,
698 }
699 #[repr(C)]
700 #[derive(Debug, Copy, Clone)]
701 pub struct xt_entry_target__bindgen_ty_1__bindgen_ty_1 {
702 pub target_size: __u16,
703 pub name: [crate::ctypes::c_char; 29usize],
704 pub revision: __u8,
705 }
706 #[repr(C)]
707 #[derive(Debug, Copy, Clone)]
708 pub struct xt_entry_target__bindgen_ty_1__bindgen_ty_2 {
709 pub target_size: __u16,
710 pub target: *mut xt_target,
711 }
712 #[repr(C)]
713 pub struct xt_standard_target {
714 pub target: xt_entry_target,
715 pub verdict: crate::ctypes::c_int,
716 }
717 #[repr(C)]
718 pub struct xt_error_target {
719 pub target: xt_entry_target,
720 pub errorname: [crate::ctypes::c_char; 30usize],
721 }
722 #[repr(C)]
723 #[derive(Debug, Copy, Clone)]
724 pub struct xt_get_revision {
725 pub name: [crate::ctypes::c_char; 29usize],
726 pub revision: __u8,
727 }
728 #[repr(C)]
729 #[derive(Debug, Copy, Clone)]
730 pub struct _xt_align {
731 pub u8_: __u8,
732 pub u16_: __u16,
733 pub u32_: __u32,
734 pub u64_: __u64,
735 }
736 #[repr(C)]
737 #[derive(Debug, Copy, Clone)]
738 pub struct xt_counters {
739 pub pcnt: __u64,
740 pub bcnt: __u64,
741 }
742 #[repr(C)]
743 #[derive(Debug)]
744 pub struct xt_counters_info {
745 pub name: [crate::ctypes::c_char; 32usize],
746 pub num_counters: crate::ctypes::c_uint,
747 pub counters: __IncompleteArrayField<xt_counters>,
748 }
749 #[repr(C)]
750 #[derive(Debug, Copy, Clone)]
751 pub struct xt_tcp {
752 pub spts: [__u16; 2usize],
753 pub dpts: [__u16; 2usize],
754 pub option: __u8,
755 pub flg_mask: __u8,
756 pub flg_cmp: __u8,
757 pub invflags: __u8,
758 }
759 #[repr(C)]
760 #[derive(Debug, Copy, Clone)]
761 pub struct xt_udp {
762 pub spts: [__u16; 2usize],
763 pub dpts: [__u16; 2usize],
764 pub invflags: __u8,
765 }
766 #[repr(C)]
767 #[derive(Copy, Clone)]
768 pub struct ip6t_ip6 {
769 pub src: in6_addr,
770 pub dst: in6_addr,
771 pub smsk: in6_addr,
772 pub dmsk: in6_addr,
773 pub iniface: [crate::ctypes::c_char; 16usize],
774 pub outiface: [crate::ctypes::c_char; 16usize],
775 pub iniface_mask: [crate::ctypes::c_uchar; 16usize],
776 pub outiface_mask: [crate::ctypes::c_uchar; 16usize],
777 pub proto: __u16,
778 pub tos: __u8,
779 pub flags: __u8,
780 pub invflags: __u8,
781 }
782 #[repr(C)]
783 pub struct ip6t_entry {
784 pub ipv6: ip6t_ip6,
785 pub nfcache: crate::ctypes::c_uint,
786 pub target_offset: __u16,
787 pub next_offset: __u16,
788 pub comefrom: crate::ctypes::c_uint,
789 pub counters: xt_counters,
790 pub elems: __IncompleteArrayField<crate::ctypes::c_uchar>,
791 }
792 #[repr(C)]
793 pub struct ip6t_standard {
794 pub entry: ip6t_entry,
795 pub target: xt_standard_target,
796 }
797 #[repr(C)]
798 pub struct ip6t_error {
799 pub entry: ip6t_entry,
800 pub target: xt_error_target,
801 }
802 #[repr(C)]
803 #[derive(Debug, Copy, Clone)]
804 pub struct ip6t_icmp {
805 pub type_: __u8,
806 pub code: [__u8; 2usize],
807 pub invflags: __u8,
808 }
809 #[repr(C)]
810 #[derive(Debug, Copy, Clone)]
811 pub struct ip6t_getinfo {
812 pub name: [crate::ctypes::c_char; 32usize],
813 pub valid_hooks: crate::ctypes::c_uint,
814 pub hook_entry: [crate::ctypes::c_uint; 5usize],
815 pub underflow: [crate::ctypes::c_uint; 5usize],
816 pub num_entries: crate::ctypes::c_uint,
817 pub size: crate::ctypes::c_uint,
818 }
819 #[repr(C)]
820 pub struct ip6t_replace {
821 pub name: [crate::ctypes::c_char; 32usize],
822 pub valid_hooks: crate::ctypes::c_uint,
823 pub num_entries: crate::ctypes::c_uint,
824 pub size: crate::ctypes::c_uint,
825 pub hook_entry: [crate::ctypes::c_uint; 5usize],
826 pub underflow: [crate::ctypes::c_uint; 5usize],
827 pub num_counters: crate::ctypes::c_uint,
828 pub counters: *mut xt_counters,
829 pub entries: __IncompleteArrayField<ip6t_entry>,
830 }
831 #[repr(C)]
832 pub struct ip6t_get_entries {
833 pub name: [crate::ctypes::c_char; 32usize],
834 pub size: crate::ctypes::c_uint,
835 pub entrytable: __IncompleteArrayField<ip6t_entry>,
836 }
837 #[repr(C)]
838 #[derive(Debug, Copy, Clone)]
839 pub struct so_timestamping {
840 pub flags: crate::ctypes::c_int,
841 pub bind_phc: crate::ctypes::c_int,
842 }
843 #[repr(C)]
844 #[derive(Debug, Copy, Clone)]
845 pub struct hwtstamp_config {
846 pub flags: crate::ctypes::c_int,
847 pub tx_type: crate::ctypes::c_int,
848 pub rx_filter: crate::ctypes::c_int,
849 }
850 #[repr(C)]
851 #[derive(Debug, Copy, Clone)]
852 pub struct scm_ts_pktinfo {
853 pub if_index: __u32,
854 pub pkt_length: __u32,
855 pub reserved: [__u32; 2usize],
856 }
857 #[repr(C)]
858 #[derive(Debug, Copy, Clone)]
859 pub struct sock_txtime {
860 pub clockid: __kernel_clockid_t,
861 pub flags: __u32,
862 }
863 #[repr(C)]
864 #[derive(Debug, Copy, Clone)]
865 pub struct linger {
866 pub l_onoff: crate::ctypes::c_int,
867 pub l_linger: crate::ctypes::c_int,
868 }
869 #[repr(C)]
870 #[derive(Debug, Copy, Clone)]
871 pub struct msghdr {
872 pub msg_name: *mut crate::ctypes::c_void,
873 pub msg_namelen: crate::ctypes::c_int,
874 pub msg_iov: *mut iovec,
875 pub msg_iovlen: usize,
876 pub msg_control: *mut crate::ctypes::c_void,
877 pub msg_controllen: usize,
878 pub msg_flags: crate::ctypes::c_uint,
879 }
880 #[repr(C)]
881 #[derive(Debug, Copy, Clone)]
882 pub struct cmsghdr {
883 pub cmsg_len: usize,
884 pub cmsg_level: crate::ctypes::c_int,
885 pub cmsg_type: crate::ctypes::c_int,
886 }
887 #[repr(C)]
888 #[derive(Debug, Copy, Clone)]
889 pub struct ucred {
890 pub pid: __u32,
891 pub uid: __u32,
892 pub gid: __u32,
893 }
894 #[repr(C)]
895 #[derive(Debug, Copy, Clone)]
896 pub struct mmsghdr {
897 pub msg_hdr: msghdr,
898 pub msg_len: crate::ctypes::c_uint,
899 }
900 #[repr(C)]
901 #[derive(Debug, Copy, Clone)]
902 pub struct xt_match {
903 pub _address: u8,
904 }
905 #[repr(C)]
906 #[derive(Debug, Copy, Clone)]
907 pub struct xt_target {
908 pub _address: u8,
909 }
910 #[repr(C)]
911 #[derive(Debug, Copy, Clone)]
912 pub struct iovec {
913 pub _address: u8,
914 }
915 pub const __BITS_PER_LONG_LONG: u32 = 64;
916 pub const _K_SS_MAXSIZE: u32 = 128;
917 pub const SOCK_SNDBUF_LOCK: u32 = 1;
918 pub const SOCK_RCVBUF_LOCK: u32 = 2;
919 pub const SOCK_BUF_LOCK_MASK: u32 = 3;
920 pub const SOCK_TXREHASH_DEFAULT: u32 = 255;
921 pub const SOCK_TXREHASH_DISABLED: u32 = 0;
922 pub const SOCK_TXREHASH_ENABLED: u32 = 1;
923 pub const IP_TOS: u32 = 1;
924 pub const IP_TTL: u32 = 2;
925 pub const IP_HDRINCL: u32 = 3;
926 pub const IP_OPTIONS: u32 = 4;
927 pub const IP_ROUTER_ALERT: u32 = 5;
928 pub const IP_RECVOPTS: u32 = 6;
929 pub const IP_RETOPTS: u32 = 7;
930 pub const IP_PKTINFO: u32 = 8;
931 pub const IP_PKTOPTIONS: u32 = 9;
932 pub const IP_MTU_DISCOVER: u32 = 10;
933 pub const IP_RECVERR: u32 = 11;
934 pub const IP_RECVTTL: u32 = 12;
935 pub const IP_RECVTOS: u32 = 13;
936 pub const IP_MTU: u32 = 14;
937 pub const IP_FREEBIND: u32 = 15;
938 pub const IP_IPSEC_POLICY: u32 = 16;
939 pub const IP_XFRM_POLICY: u32 = 17;
940 pub const IP_PASSSEC: u32 = 18;
941 pub const IP_TRANSPARENT: u32 = 19;
942 pub const IP_RECVRETOPTS: u32 = 7;
943 pub const IP_ORIGDSTADDR: u32 = 20;
944 pub const IP_RECVORIGDSTADDR: u32 = 20;
945 pub const IP_MINTTL: u32 = 21;
946 pub const IP_NODEFRAG: u32 = 22;
947 pub const IP_CHECKSUM: u32 = 23;
948 pub const IP_BIND_ADDRESS_NO_PORT: u32 = 24;
949 pub const IP_RECVFRAGSIZE: u32 = 25;
950 pub const IP_RECVERR_RFC4884: u32 = 26;
951 pub const IP_PMTUDISC_DONT: u32 = 0;
952 pub const IP_PMTUDISC_WANT: u32 = 1;
953 pub const IP_PMTUDISC_DO: u32 = 2;
954 pub const IP_PMTUDISC_PROBE: u32 = 3;
955 pub const IP_PMTUDISC_INTERFACE: u32 = 4;
956 pub const IP_PMTUDISC_OMIT: u32 = 5;
957 pub const IP_MULTICAST_IF: u32 = 32;
958 pub const IP_MULTICAST_TTL: u32 = 33;
959 pub const IP_MULTICAST_LOOP: u32 = 34;
960 pub const IP_ADD_MEMBERSHIP: u32 = 35;
961 pub const IP_DROP_MEMBERSHIP: u32 = 36;
962 pub const IP_UNBLOCK_SOURCE: u32 = 37;
963 pub const IP_BLOCK_SOURCE: u32 = 38;
964 pub const IP_ADD_SOURCE_MEMBERSHIP: u32 = 39;
965 pub const IP_DROP_SOURCE_MEMBERSHIP: u32 = 40;
966 pub const IP_MSFILTER: u32 = 41;
967 pub const MCAST_JOIN_GROUP: u32 = 42;
968 pub const MCAST_BLOCK_SOURCE: u32 = 43;
969 pub const MCAST_UNBLOCK_SOURCE: u32 = 44;
970 pub const MCAST_LEAVE_GROUP: u32 = 45;
971 pub const MCAST_JOIN_SOURCE_GROUP: u32 = 46;
972 pub const MCAST_LEAVE_SOURCE_GROUP: u32 = 47;
973 pub const MCAST_MSFILTER: u32 = 48;
974 pub const IP_MULTICAST_ALL: u32 = 49;
975 pub const IP_UNICAST_IF: u32 = 50;
976 pub const IP_LOCAL_PORT_RANGE: u32 = 51;
977 pub const IP_PROTOCOL: u32 = 52;
978 pub const MCAST_EXCLUDE: u32 = 0;
979 pub const MCAST_INCLUDE: u32 = 1;
980 pub const IP_DEFAULT_MULTICAST_TTL: u32 = 1;
981 pub const IP_DEFAULT_MULTICAST_LOOP: u32 = 1;
982 pub const __SOCK_SIZE__: u32 = 16;
983 pub const IN_CLASSA_NET: u32 = 4278190080;
984 pub const IN_CLASSA_NSHIFT: u32 = 24;
985 pub const IN_CLASSA_HOST: u32 = 16777215;
986 pub const IN_CLASSA_MAX: u32 = 128;
987 pub const IN_CLASSB_NET: u32 = 4294901760;
988 pub const IN_CLASSB_NSHIFT: u32 = 16;
989 pub const IN_CLASSB_HOST: u32 = 65535;
990 pub const IN_CLASSB_MAX: u32 = 65536;
991 pub const IN_CLASSC_NET: u32 = 4294967040;
992 pub const IN_CLASSC_NSHIFT: u32 = 8;
993 pub const IN_CLASSC_HOST: u32 = 255;
994 pub const IN_MULTICAST_NET: u32 = 3758096384;
995 pub const IN_CLASSE_NET: u32 = 4294967295;
996 pub const IN_CLASSE_NSHIFT: u32 = 0;
997 pub const IN_LOOPBACKNET: u32 = 127;
998 pub const INADDR_LOOPBACK: u32 = 2130706433;
999 pub const INADDR_UNSPEC_GROUP: u32 = 3758096384;
1000 pub const INADDR_ALLHOSTS_GROUP: u32 = 3758096385;
1001 pub const INADDR_ALLRTRS_GROUP: u32 = 3758096386;
1002 pub const INADDR_ALLSNOOPERS_GROUP: u32 = 3758096490;
1003 pub const INADDR_MAX_LOCAL_GROUP: u32 = 3758096639;
1004 pub const __BIG_ENDIAN: u32 = 4321;
1005 pub const IPTOS_TOS_MASK: u32 = 30;
1006 pub const IPTOS_LOWDELAY: u32 = 16;
1007 pub const IPTOS_THROUGHPUT: u32 = 8;
1008 pub const IPTOS_RELIABILITY: u32 = 4;
1009 pub const IPTOS_MINCOST: u32 = 2;
1010 pub const IPTOS_PREC_MASK: u32 = 224;
1011 pub const IPTOS_PREC_NETCONTROL: u32 = 224;
1012 pub const IPTOS_PREC_INTERNETCONTROL: u32 = 192;
1013 pub const IPTOS_PREC_CRITIC_ECP: u32 = 160;
1014 pub const IPTOS_PREC_FLASHOVERRIDE: u32 = 128;
1015 pub const IPTOS_PREC_FLASH: u32 = 96;
1016 pub const IPTOS_PREC_IMMEDIATE: u32 = 64;
1017 pub const IPTOS_PREC_PRIORITY: u32 = 32;
1018 pub const IPTOS_PREC_ROUTINE: u32 = 0;
1019 pub const IPOPT_COPY: u32 = 128;
1020 pub const IPOPT_CLASS_MASK: u32 = 96;
1021 pub const IPOPT_NUMBER_MASK: u32 = 31;
1022 pub const IPOPT_CONTROL: u32 = 0;
1023 pub const IPOPT_RESERVED1: u32 = 32;
1024 pub const IPOPT_MEASUREMENT: u32 = 64;
1025 pub const IPOPT_RESERVED2: u32 = 96;
1026 pub const IPOPT_END: u32 = 0;
1027 pub const IPOPT_NOOP: u32 = 1;
1028 pub const IPOPT_SEC: u32 = 130;
1029 pub const IPOPT_LSRR: u32 = 131;
1030 pub const IPOPT_TIMESTAMP: u32 = 68;
1031 pub const IPOPT_CIPSO: u32 = 134;
1032 pub const IPOPT_RR: u32 = 7;
1033 pub const IPOPT_SID: u32 = 136;
1034 pub const IPOPT_SSRR: u32 = 137;
1035 pub const IPOPT_RA: u32 = 148;
1036 pub const IPVERSION: u32 = 4;
1037 pub const MAXTTL: u32 = 255;
1038 pub const IPDEFTTL: u32 = 64;
1039 pub const IPOPT_OPTVAL: u32 = 0;
1040 pub const IPOPT_OLEN: u32 = 1;
1041 pub const IPOPT_OFFSET: u32 = 2;
1042 pub const IPOPT_MINOFF: u32 = 4;
1043 pub const MAX_IPOPTLEN: u32 = 40;
1044 pub const IPOPT_NOP: u32 = 1;
1045 pub const IPOPT_EOL: u32 = 0;
1046 pub const IPOPT_TS: u32 = 68;
1047 pub const IPOPT_TS_TSONLY: u32 = 0;
1048 pub const IPOPT_TS_TSANDADDR: u32 = 1;
1049 pub const IPOPT_TS_PRESPEC: u32 = 3;
1050 pub const IPV4_BEET_PHMAXLEN: u32 = 8;
1051 pub const IPV6_FL_A_GET: u32 = 0;
1052 pub const IPV6_FL_A_PUT: u32 = 1;
1053 pub const IPV6_FL_A_RENEW: u32 = 2;
1054 pub const IPV6_FL_F_CREATE: u32 = 1;
1055 pub const IPV6_FL_F_EXCL: u32 = 2;
1056 pub const IPV6_FL_F_REFLECT: u32 = 4;
1057 pub const IPV6_FL_F_REMOTE: u32 = 8;
1058 pub const IPV6_FL_S_NONE: u32 = 0;
1059 pub const IPV6_FL_S_EXCL: u32 = 1;
1060 pub const IPV6_FL_S_PROCESS: u32 = 2;
1061 pub const IPV6_FL_S_USER: u32 = 3;
1062 pub const IPV6_FL_S_ANY: u32 = 255;
1063 pub const IPV6_FLOWINFO_FLOWLABEL: u32 = 1048575;
1064 pub const IPV6_FLOWINFO_PRIORITY: u32 = 267386880;
1065 pub const IPV6_PRIORITY_UNCHARACTERIZED: u32 = 0;
1066 pub const IPV6_PRIORITY_FILLER: u32 = 256;
1067 pub const IPV6_PRIORITY_UNATTENDED: u32 = 512;
1068 pub const IPV6_PRIORITY_RESERVED1: u32 = 768;
1069 pub const IPV6_PRIORITY_BULK: u32 = 1024;
1070 pub const IPV6_PRIORITY_RESERVED2: u32 = 1280;
1071 pub const IPV6_PRIORITY_INTERACTIVE: u32 = 1536;
1072 pub const IPV6_PRIORITY_CONTROL: u32 = 1792;
1073 pub const IPV6_PRIORITY_8: u32 = 2048;
1074 pub const IPV6_PRIORITY_9: u32 = 2304;
1075 pub const IPV6_PRIORITY_10: u32 = 2560;
1076 pub const IPV6_PRIORITY_11: u32 = 2816;
1077 pub const IPV6_PRIORITY_12: u32 = 3072;
1078 pub const IPV6_PRIORITY_13: u32 = 3328;
1079 pub const IPV6_PRIORITY_14: u32 = 3584;
1080 pub const IPV6_PRIORITY_15: u32 = 3840;
1081 pub const IPPROTO_HOPOPTS: u32 = 0;
1082 pub const IPPROTO_ROUTING: u32 = 43;
1083 pub const IPPROTO_FRAGMENT: u32 = 44;
1084 pub const IPPROTO_ICMPV6: u32 = 58;
1085 pub const IPPROTO_NONE: u32 = 59;
1086 pub const IPPROTO_DSTOPTS: u32 = 60;
1087 pub const IPPROTO_MH: u32 = 135;
1088 pub const IPV6_TLV_PAD1: u32 = 0;
1089 pub const IPV6_TLV_PADN: u32 = 1;
1090 pub const IPV6_TLV_ROUTERALERT: u32 = 5;
1091 pub const IPV6_TLV_CALIPSO: u32 = 7;
1092 pub const IPV6_TLV_IOAM: u32 = 49;
1093 pub const IPV6_TLV_JUMBO: u32 = 194;
1094 pub const IPV6_TLV_HAO: u32 = 201;
1095 pub const IPV6_ADDRFORM: u32 = 1;
1096 pub const IPV6_2292PKTINFO: u32 = 2;
1097 pub const IPV6_2292HOPOPTS: u32 = 3;
1098 pub const IPV6_2292DSTOPTS: u32 = 4;
1099 pub const IPV6_2292RTHDR: u32 = 5;
1100 pub const IPV6_2292PKTOPTIONS: u32 = 6;
1101 pub const IPV6_CHECKSUM: u32 = 7;
1102 pub const IPV6_2292HOPLIMIT: u32 = 8;
1103 pub const IPV6_NEXTHOP: u32 = 9;
1104 pub const IPV6_AUTHHDR: u32 = 10;
1105 pub const IPV6_FLOWINFO: u32 = 11;
1106 pub const IPV6_UNICAST_HOPS: u32 = 16;
1107 pub const IPV6_MULTICAST_IF: u32 = 17;
1108 pub const IPV6_MULTICAST_HOPS: u32 = 18;
1109 pub const IPV6_MULTICAST_LOOP: u32 = 19;
1110 pub const IPV6_ADD_MEMBERSHIP: u32 = 20;
1111 pub const IPV6_DROP_MEMBERSHIP: u32 = 21;
1112 pub const IPV6_ROUTER_ALERT: u32 = 22;
1113 pub const IPV6_MTU_DISCOVER: u32 = 23;
1114 pub const IPV6_MTU: u32 = 24;
1115 pub const IPV6_RECVERR: u32 = 25;
1116 pub const IPV6_V6ONLY: u32 = 26;
1117 pub const IPV6_JOIN_ANYCAST: u32 = 27;
1118 pub const IPV6_LEAVE_ANYCAST: u32 = 28;
1119 pub const IPV6_MULTICAST_ALL: u32 = 29;
1120 pub const IPV6_ROUTER_ALERT_ISOLATE: u32 = 30;
1121 pub const IPV6_RECVERR_RFC4884: u32 = 31;
1122 pub const IPV6_PMTUDISC_DONT: u32 = 0;
1123 pub const IPV6_PMTUDISC_WANT: u32 = 1;
1124 pub const IPV6_PMTUDISC_DO: u32 = 2;
1125 pub const IPV6_PMTUDISC_PROBE: u32 = 3;
1126 pub const IPV6_PMTUDISC_INTERFACE: u32 = 4;
1127 pub const IPV6_PMTUDISC_OMIT: u32 = 5;
1128 pub const IPV6_FLOWLABEL_MGR: u32 = 32;
1129 pub const IPV6_FLOWINFO_SEND: u32 = 33;
1130 pub const IPV6_IPSEC_POLICY: u32 = 34;
1131 pub const IPV6_XFRM_POLICY: u32 = 35;
1132 pub const IPV6_HDRINCL: u32 = 36;
1133 pub const IPV6_RECVPKTINFO: u32 = 49;
1134 pub const IPV6_PKTINFO: u32 = 50;
1135 pub const IPV6_RECVHOPLIMIT: u32 = 51;
1136 pub const IPV6_HOPLIMIT: u32 = 52;
1137 pub const IPV6_RECVHOPOPTS: u32 = 53;
1138 pub const IPV6_HOPOPTS: u32 = 54;
1139 pub const IPV6_RTHDRDSTOPTS: u32 = 55;
1140 pub const IPV6_RECVRTHDR: u32 = 56;
1141 pub const IPV6_RTHDR: u32 = 57;
1142 pub const IPV6_RECVDSTOPTS: u32 = 58;
1143 pub const IPV6_DSTOPTS: u32 = 59;
1144 pub const IPV6_RECVPATHMTU: u32 = 60;
1145 pub const IPV6_PATHMTU: u32 = 61;
1146 pub const IPV6_DONTFRAG: u32 = 62;
1147 pub const IPV6_RECVTCLASS: u32 = 66;
1148 pub const IPV6_TCLASS: u32 = 67;
1149 pub const IPV6_AUTOFLOWLABEL: u32 = 70;
1150 pub const IPV6_ADDR_PREFERENCES: u32 = 72;
1151 pub const IPV6_PREFER_SRC_TMP: u32 = 1;
1152 pub const IPV6_PREFER_SRC_PUBLIC: u32 = 2;
1153 pub const IPV6_PREFER_SRC_PUBTMP_DEFAULT: u32 = 256;
1154 pub const IPV6_PREFER_SRC_COA: u32 = 4;
1155 pub const IPV6_PREFER_SRC_HOME: u32 = 1024;
1156 pub const IPV6_PREFER_SRC_CGA: u32 = 8;
1157 pub const IPV6_PREFER_SRC_NONCGA: u32 = 2048;
1158 pub const IPV6_MINHOPCOUNT: u32 = 73;
1159 pub const IPV6_ORIGDSTADDR: u32 = 74;
1160 pub const IPV6_RECVORIGDSTADDR: u32 = 74;
1161 pub const IPV6_TRANSPARENT: u32 = 75;
1162 pub const IPV6_UNICAST_IF: u32 = 76;
1163 pub const IPV6_RECVFRAGSIZE: u32 = 77;
1164 pub const IPV6_FREEBIND: u32 = 78;
1165 pub const IPV6_MIN_MTU: u32 = 1280;
1166 pub const IPV6_SRCRT_STRICT: u32 = 1;
1167 pub const IPV6_SRCRT_TYPE_0: u32 = 0;
1168 pub const IPV6_SRCRT_TYPE_2: u32 = 2;
1169 pub const IPV6_SRCRT_TYPE_3: u32 = 3;
1170 pub const IPV6_SRCRT_TYPE_4: u32 = 4;
1171 pub const IPV6_OPT_ROUTERALERT_MLD: u32 = 0;
1172 pub const SIOCGSTAMP_OLD: u32 = 35078;
1173 pub const SIOCGSTAMPNS_OLD: u32 = 35079;
1174 pub const SOL_SOCKET: u32 = 1;
1175 pub const SO_DEBUG: u32 = 1;
1176 pub const SO_REUSEADDR: u32 = 2;
1177 pub const SO_TYPE: u32 = 3;
1178 pub const SO_ERROR: u32 = 4;
1179 pub const SO_DONTROUTE: u32 = 5;
1180 pub const SO_BROADCAST: u32 = 6;
1181 pub const SO_SNDBUF: u32 = 7;
1182 pub const SO_RCVBUF: u32 = 8;
1183 pub const SO_SNDBUFFORCE: u32 = 32;
1184 pub const SO_RCVBUFFORCE: u32 = 33;
1185 pub const SO_KEEPALIVE: u32 = 9;
1186 pub const SO_OOBINLINE: u32 = 10;
1187 pub const SO_NO_CHECK: u32 = 11;
1188 pub const SO_PRIORITY: u32 = 12;
1189 pub const SO_LINGER: u32 = 13;
1190 pub const SO_BSDCOMPAT: u32 = 14;
1191 pub const SO_REUSEPORT: u32 = 15;
1192 pub const SO_PASSCRED: u32 = 16;
1193 pub const SO_PEERCRED: u32 = 17;
1194 pub const SO_RCVLOWAT: u32 = 18;
1195 pub const SO_SNDLOWAT: u32 = 19;
1196 pub const SO_RCVTIMEO_OLD: u32 = 20;
1197 pub const SO_SNDTIMEO_OLD: u32 = 21;
1198 pub const SO_SECURITY_AUTHENTICATION: u32 = 22;
1199 pub const SO_SECURITY_ENCRYPTION_TRANSPORT: u32 = 23;
1200 pub const SO_SECURITY_ENCRYPTION_NETWORK: u32 = 24;
1201 pub const SO_BINDTODEVICE: u32 = 25;
1202 pub const SO_ATTACH_FILTER: u32 = 26;
1203 pub const SO_DETACH_FILTER: u32 = 27;
1204 pub const SO_GET_FILTER: u32 = 26;
1205 pub const SO_PEERNAME: u32 = 28;
1206 pub const SO_ACCEPTCONN: u32 = 30;
1207 pub const SO_PEERSEC: u32 = 31;
1208 pub const SO_PASSSEC: u32 = 34;
1209 pub const SO_MARK: u32 = 36;
1210 pub const SO_PROTOCOL: u32 = 38;
1211 pub const SO_DOMAIN: u32 = 39;
1212 pub const SO_RXQ_OVFL: u32 = 40;
1213 pub const SO_WIFI_STATUS: u32 = 41;
1214 pub const SCM_WIFI_STATUS: u32 = 41;
1215 pub const SO_PEEK_OFF: u32 = 42;
1216 pub const SO_NOFCS: u32 = 43;
1217 pub const SO_LOCK_FILTER: u32 = 44;
1218 pub const SO_SELECT_ERR_QUEUE: u32 = 45;
1219 pub const SO_BUSY_POLL: u32 = 46;
1220 pub const SO_MAX_PACING_RATE: u32 = 47;
1221 pub const SO_BPF_EXTENSIONS: u32 = 48;
1222 pub const SO_INCOMING_CPU: u32 = 49;
1223 pub const SO_ATTACH_BPF: u32 = 50;
1224 pub const SO_DETACH_BPF: u32 = 27;
1225 pub const SO_ATTACH_REUSEPORT_CBPF: u32 = 51;
1226 pub const SO_ATTACH_REUSEPORT_EBPF: u32 = 52;
1227 pub const SO_CNX_ADVICE: u32 = 53;
1228 pub const SCM_TIMESTAMPING_OPT_STATS: u32 = 54;
1229 pub const SO_MEMINFO: u32 = 55;
1230 pub const SO_INCOMING_NAPI_ID: u32 = 56;
1231 pub const SO_COOKIE: u32 = 57;
1232 pub const SCM_TIMESTAMPING_PKTINFO: u32 = 58;
1233 pub const SO_PEERGROUPS: u32 = 59;
1234 pub const SO_ZEROCOPY: u32 = 60;
1235 pub const SO_TXTIME: u32 = 61;
1236 pub const SCM_TXTIME: u32 = 61;
1237 pub const SO_BINDTOIFINDEX: u32 = 62;
1238 pub const SO_TIMESTAMP_OLD: u32 = 29;
1239 pub const SO_TIMESTAMPNS_OLD: u32 = 35;
1240 pub const SO_TIMESTAMPING_OLD: u32 = 37;
1241 pub const SO_TIMESTAMP_NEW: u32 = 63;
1242 pub const SO_TIMESTAMPNS_NEW: u32 = 64;
1243 pub const SO_TIMESTAMPING_NEW: u32 = 65;
1244 pub const SO_RCVTIMEO_NEW: u32 = 66;
1245 pub const SO_SNDTIMEO_NEW: u32 = 67;
1246 pub const SO_DETACH_REUSEPORT_BPF: u32 = 68;
1247 pub const SO_PREFER_BUSY_POLL: u32 = 69;
1248 pub const SO_BUSY_POLL_BUDGET: u32 = 70;
1249 pub const SO_NETNS_COOKIE: u32 = 71;
1250 pub const SO_BUF_LOCK: u32 = 72;
1251 pub const SO_RESERVE_MEM: u32 = 73;
1252 pub const SO_TXREHASH: u32 = 74;
1253 pub const SO_RCVMARK: u32 = 75;
1254 pub const SO_PASSPIDFD: u32 = 76;
1255 pub const SO_PEERPIDFD: u32 = 77;
1256 pub const SO_DEVMEM_LINEAR: u32 = 78;
1257 pub const SCM_DEVMEM_LINEAR: u32 = 78;
1258 pub const SO_DEVMEM_DMABUF: u32 = 79;
1259 pub const SCM_DEVMEM_DMABUF: u32 = 79;
1260 pub const SO_DEVMEM_DONTNEED: u32 = 80;
1261 pub const SCM_TS_OPT_ID: u32 = 81;
1262 pub const SO_RCVPRIORITY: u32 = 82;
1263 pub const SO_PASSRIGHTS: u32 = 83;
1264 pub const SO_INQ: u32 = 84;
1265 pub const SCM_INQ: u32 = 84;
1266 pub const SO_TIMESTAMP: u32 = 29;
1267 pub const SO_TIMESTAMPNS: u32 = 35;
1268 pub const SO_TIMESTAMPING: u32 = 37;
1269 pub const SO_RCVTIMEO: u32 = 20;
1270 pub const SO_SNDTIMEO: u32 = 21;
1271 pub const SCM_TIMESTAMP: u32 = 29;
1272 pub const SCM_TIMESTAMPNS: u32 = 35;
1273 pub const SCM_TIMESTAMPING: u32 = 37;
1274 pub const SYS_SOCKET: u32 = 1;
1275 pub const SYS_BIND: u32 = 2;
1276 pub const SYS_CONNECT: u32 = 3;
1277 pub const SYS_LISTEN: u32 = 4;
1278 pub const SYS_ACCEPT: u32 = 5;
1279 pub const SYS_GETSOCKNAME: u32 = 6;
1280 pub const SYS_GETPEERNAME: u32 = 7;
1281 pub const SYS_SOCKETPAIR: u32 = 8;
1282 pub const SYS_SEND: u32 = 9;
1283 pub const SYS_RECV: u32 = 10;
1284 pub const SYS_SENDTO: u32 = 11;
1285 pub const SYS_RECVFROM: u32 = 12;
1286 pub const SYS_SHUTDOWN: u32 = 13;
1287 pub const SYS_SETSOCKOPT: u32 = 14;
1288 pub const SYS_GETSOCKOPT: u32 = 15;
1289 pub const SYS_SENDMSG: u32 = 16;
1290 pub const SYS_RECVMSG: u32 = 17;
1291 pub const SYS_ACCEPT4: u32 = 18;
1292 pub const SYS_RECVMMSG: u32 = 19;
1293 pub const SYS_SENDMMSG: u32 = 20;
1294 pub const __SO_ACCEPTCON: u32 = 65536;
1295 pub const TCP_MSS_DEFAULT: u32 = 536;
1296 pub const TCP_MSS_DESIRED: u32 = 1220;
1297 pub const TCP_NODELAY: u32 = 1;
1298 pub const TCP_MAXSEG: u32 = 2;
1299 pub const TCP_CORK: u32 = 3;
1300 pub const TCP_KEEPIDLE: u32 = 4;
1301 pub const TCP_KEEPINTVL: u32 = 5;
1302 pub const TCP_KEEPCNT: u32 = 6;
1303 pub const TCP_SYNCNT: u32 = 7;
1304 pub const TCP_LINGER2: u32 = 8;
1305 pub const TCP_DEFER_ACCEPT: u32 = 9;
1306 pub const TCP_WINDOW_CLAMP: u32 = 10;
1307 pub const TCP_INFO: u32 = 11;
1308 pub const TCP_QUICKACK: u32 = 12;
1309 pub const TCP_CONGESTION: u32 = 13;
1310 pub const TCP_MD5SIG: u32 = 14;
1311 pub const TCP_THIN_LINEAR_TIMEOUTS: u32 = 16;
1312 pub const TCP_THIN_DUPACK: u32 = 17;
1313 pub const TCP_USER_TIMEOUT: u32 = 18;
1314 pub const TCP_REPAIR: u32 = 19;
1315 pub const TCP_REPAIR_QUEUE: u32 = 20;
1316 pub const TCP_QUEUE_SEQ: u32 = 21;
1317 pub const TCP_REPAIR_OPTIONS: u32 = 22;
1318 pub const TCP_FASTOPEN: u32 = 23;
1319 pub const TCP_TIMESTAMP: u32 = 24;
1320 pub const TCP_NOTSENT_LOWAT: u32 = 25;
1321 pub const TCP_CC_INFO: u32 = 26;
1322 pub const TCP_SAVE_SYN: u32 = 27;
1323 pub const TCP_SAVED_SYN: u32 = 28;
1324 pub const TCP_REPAIR_WINDOW: u32 = 29;
1325 pub const TCP_FASTOPEN_CONNECT: u32 = 30;
1326 pub const TCP_ULP: u32 = 31;
1327 pub const TCP_MD5SIG_EXT: u32 = 32;
1328 pub const TCP_FASTOPEN_KEY: u32 = 33;
1329 pub const TCP_FASTOPEN_NO_COOKIE: u32 = 34;
1330 pub const TCP_ZEROCOPY_RECEIVE: u32 = 35;
1331 pub const TCP_INQ: u32 = 36;
1332 pub const TCP_CM_INQ: u32 = 36;
1333 pub const TCP_TX_DELAY: u32 = 37;
1334 pub const TCP_AO_ADD_KEY: u32 = 38;
1335 pub const TCP_AO_DEL_KEY: u32 = 39;
1336 pub const TCP_AO_INFO: u32 = 40;
1337 pub const TCP_AO_GET_KEYS: u32 = 41;
1338 pub const TCP_AO_REPAIR: u32 = 42;
1339 pub const TCP_IS_MPTCP: u32 = 43;
1340 pub const TCP_RTO_MAX_MS: u32 = 44;
1341 pub const TCP_RTO_MIN_US: u32 = 45;
1342 pub const TCP_DELACK_MAX_US: u32 = 46;
1343 pub const TCP_REPAIR_ON: u32 = 1;
1344 pub const TCP_REPAIR_OFF: u32 = 0;
1345 pub const TCP_REPAIR_OFF_NO_WP: i32 = -1;
1346 pub const TCPI_OPT_TIMESTAMPS: u32 = 1;
1347 pub const TCPI_OPT_SACK: u32 = 2;
1348 pub const TCPI_OPT_WSCALE: u32 = 4;
1349 pub const TCPI_OPT_ECN: u32 = 8;
1350 pub const TCPI_OPT_ECN_SEEN: u32 = 16;
1351 pub const TCPI_OPT_SYN_DATA: u32 = 32;
1352 pub const TCPI_OPT_USEC_TS: u32 = 64;
1353 pub const TCPI_OPT_TFO_CHILD: u32 = 128;
1354 pub const TCP_MD5SIG_MAXKEYLEN: u32 = 80;
1355 pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1;
1356 pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2;
1357 pub const TCP_AO_MAXKEYLEN: u32 = 80;
1358 pub const TCP_AO_KEYF_IFINDEX: u32 = 1;
1359 pub const TCP_AO_KEYF_EXCLUDE_OPT: u32 = 2;
1360 pub const TCP_RECEIVE_ZEROCOPY_FLAG_TLB_CLEAN_HINT: u32 = 1;
1361 pub const UNIX_PATH_MAX: u32 = 108;
1362 pub const IFNAMSIZ: u32 = 16;
1363 pub const IFALIASZ: u32 = 256;
1364 pub const ALTIFNAMSIZ: u32 = 128;
1365 pub const GENERIC_HDLC_VERSION: u32 = 4;
1366 pub const CLOCK_DEFAULT: u32 = 0;
1367 pub const CLOCK_EXT: u32 = 1;
1368 pub const CLOCK_INT: u32 = 2;
1369 pub const CLOCK_TXINT: u32 = 3;
1370 pub const CLOCK_TXFROMRX: u32 = 4;
1371 pub const ENCODING_DEFAULT: u32 = 0;
1372 pub const ENCODING_NRZ: u32 = 1;
1373 pub const ENCODING_NRZI: u32 = 2;
1374 pub const ENCODING_FM_MARK: u32 = 3;
1375 pub const ENCODING_FM_SPACE: u32 = 4;
1376 pub const ENCODING_MANCHESTER: u32 = 5;
1377 pub const PARITY_DEFAULT: u32 = 0;
1378 pub const PARITY_NONE: u32 = 1;
1379 pub const PARITY_CRC16_PR0: u32 = 2;
1380 pub const PARITY_CRC16_PR1: u32 = 3;
1381 pub const PARITY_CRC16_PR0_CCITT: u32 = 4;
1382 pub const PARITY_CRC16_PR1_CCITT: u32 = 5;
1383 pub const PARITY_CRC32_PR0_CCITT: u32 = 6;
1384 pub const PARITY_CRC32_PR1_CCITT: u32 = 7;
1385 pub const LMI_DEFAULT: u32 = 0;
1386 pub const LMI_NONE: u32 = 1;
1387 pub const LMI_ANSI: u32 = 2;
1388 pub const LMI_CCITT: u32 = 3;
1389 pub const LMI_CISCO: u32 = 4;
1390 pub const IF_GET_IFACE: u32 = 1;
1391 pub const IF_GET_PROTO: u32 = 2;
1392 pub const IF_IFACE_V35: u32 = 4096;
1393 pub const IF_IFACE_V24: u32 = 4097;
1394 pub const IF_IFACE_X21: u32 = 4098;
1395 pub const IF_IFACE_T1: u32 = 4099;
1396 pub const IF_IFACE_E1: u32 = 4100;
1397 pub const IF_IFACE_SYNC_SERIAL: u32 = 4101;
1398 pub const IF_IFACE_X21D: u32 = 4102;
1399 pub const IF_PROTO_HDLC: u32 = 8192;
1400 pub const IF_PROTO_PPP: u32 = 8193;
1401 pub const IF_PROTO_CISCO: u32 = 8194;
1402 pub const IF_PROTO_FR: u32 = 8195;
1403 pub const IF_PROTO_FR_ADD_PVC: u32 = 8196;
1404 pub const IF_PROTO_FR_DEL_PVC: u32 = 8197;
1405 pub const IF_PROTO_X25: u32 = 8198;
1406 pub const IF_PROTO_HDLC_ETH: u32 = 8199;
1407 pub const IF_PROTO_FR_ADD_ETH_PVC: u32 = 8200;
1408 pub const IF_PROTO_FR_DEL_ETH_PVC: u32 = 8201;
1409 pub const IF_PROTO_FR_PVC: u32 = 8202;
1410 pub const IF_PROTO_FR_ETH_PVC: u32 = 8203;
1411 pub const IF_PROTO_RAW: u32 = 8204;
1412 pub const IFHWADDRLEN: u32 = 6;
1413 pub const NF_DROP: u32 = 0;
1414 pub const NF_ACCEPT: u32 = 1;
1415 pub const NF_STOLEN: u32 = 2;
1416 pub const NF_QUEUE: u32 = 3;
1417 pub const NF_REPEAT: u32 = 4;
1418 pub const NF_STOP: u32 = 5;
1419 pub const NF_MAX_VERDICT: u32 = 5;
1420 pub const NF_VERDICT_MASK: u32 = 255;
1421 pub const NF_VERDICT_FLAG_QUEUE_BYPASS: u32 = 32768;
1422 pub const NF_VERDICT_QMASK: u32 = 4294901760;
1423 pub const NF_VERDICT_QBITS: u32 = 16;
1424 pub const NF_VERDICT_BITS: u32 = 16;
1425 pub const NF_IP6_PRE_ROUTING: u32 = 0;
1426 pub const NF_IP6_LOCAL_IN: u32 = 1;
1427 pub const NF_IP6_FORWARD: u32 = 2;
1428 pub const NF_IP6_LOCAL_OUT: u32 = 3;
1429 pub const NF_IP6_POST_ROUTING: u32 = 4;
1430 pub const NF_IP6_NUMHOOKS: u32 = 5;
1431 pub const XT_FUNCTION_MAXNAMELEN: u32 = 30;
1432 pub const XT_EXTENSION_MAXNAMELEN: u32 = 29;
1433 pub const XT_TABLE_MAXNAMELEN: u32 = 32;
1434 pub const XT_CONTINUE: u32 = 4294967295;
1435 pub const XT_RETURN: i32 = -5;
1436 pub const XT_STANDARD_TARGET: &[u8; 1] = b"\0";
1437 pub const XT_ERROR_TARGET: &[u8; 6] = b"ERROR\0";
1438 pub const XT_INV_PROTO: u32 = 64;
1439 pub const IP6T_FUNCTION_MAXNAMELEN: u32 = 30;
1440 pub const IP6T_TABLE_MAXNAMELEN: u32 = 32;
1441 pub const IP6T_CONTINUE: u32 = 4294967295;
1442 pub const IP6T_RETURN: i32 = -5;
1443 pub const XT_TCP_INV_SRCPT: u32 = 1;
1444 pub const XT_TCP_INV_DSTPT: u32 = 2;
1445 pub const XT_TCP_INV_FLAGS: u32 = 4;
1446 pub const XT_TCP_INV_OPTION: u32 = 8;
1447 pub const XT_TCP_INV_MASK: u32 = 15;
1448 pub const XT_UDP_INV_SRCPT: u32 = 1;
1449 pub const XT_UDP_INV_DSTPT: u32 = 2;
1450 pub const XT_UDP_INV_MASK: u32 = 3;
1451 pub const IP6T_TCP_INV_SRCPT: u32 = 1;
1452 pub const IP6T_TCP_INV_DSTPT: u32 = 2;
1453 pub const IP6T_TCP_INV_FLAGS: u32 = 4;
1454 pub const IP6T_TCP_INV_OPTION: u32 = 8;
1455 pub const IP6T_TCP_INV_MASK: u32 = 15;
1456 pub const IP6T_UDP_INV_SRCPT: u32 = 1;
1457 pub const IP6T_UDP_INV_DSTPT: u32 = 2;
1458 pub const IP6T_UDP_INV_MASK: u32 = 3;
1459 pub const IP6T_STANDARD_TARGET: &[u8; 1] = b"\0";
1460 pub const IP6T_ERROR_TARGET: &[u8; 6] = b"ERROR\0";
1461 pub const IP6T_F_PROTO: u32 = 1;
1462 pub const IP6T_F_TOS: u32 = 2;
1463 pub const IP6T_F_GOTO: u32 = 4;
1464 pub const IP6T_F_MASK: u32 = 7;
1465 pub const IP6T_INV_VIA_IN: u32 = 1;
1466 pub const IP6T_INV_VIA_OUT: u32 = 2;
1467 pub const IP6T_INV_TOS: u32 = 4;
1468 pub const IP6T_INV_SRCIP: u32 = 8;
1469 pub const IP6T_INV_DSTIP: u32 = 16;
1470 pub const IP6T_INV_FRAG: u32 = 32;
1471 pub const IP6T_INV_PROTO: u32 = 64;
1472 pub const IP6T_INV_MASK: u32 = 127;
1473 pub const IP6T_BASE_CTL: u32 = 64;
1474 pub const IP6T_SO_SET_REPLACE: u32 = 64;
1475 pub const IP6T_SO_SET_ADD_COUNTERS: u32 = 65;
1476 pub const IP6T_SO_SET_MAX: u32 = 65;
1477 pub const IP6T_SO_GET_INFO: u32 = 64;
1478 pub const IP6T_SO_GET_ENTRIES: u32 = 65;
1479 pub const IP6T_SO_GET_REVISION_MATCH: u32 = 68;
1480 pub const IP6T_SO_GET_REVISION_TARGET: u32 = 69;
1481 pub const IP6T_SO_GET_MAX: u32 = 69;
1482 pub const IP6T_SO_ORIGINAL_DST: u32 = 80;
1483 pub const IP6T_ICMP_INV: u32 = 1;
1484 pub const NF_IP_PRE_ROUTING: u32 = 0;
1485 pub const NF_IP_LOCAL_IN: u32 = 1;
1486 pub const NF_IP_FORWARD: u32 = 2;
1487 pub const NF_IP_LOCAL_OUT: u32 = 3;
1488 pub const NF_IP_POST_ROUTING: u32 = 4;
1489 pub const NF_IP_NUMHOOKS: u32 = 5;
1490 pub const SO_ORIGINAL_DST: u32 = 80;
1491 pub const SHUT_RD: u32 = 0;
1492 pub const SHUT_WR: u32 = 1;
1493 pub const SHUT_RDWR: u32 = 2;
1494 pub const SOCK_STREAM: u32 = 1;
1495 pub const SOCK_DGRAM: u32 = 2;
1496 pub const SOCK_RAW: u32 = 3;
1497 pub const SOCK_RDM: u32 = 4;
1498 pub const SOCK_SEQPACKET: u32 = 5;
1499 pub const MSG_DONTWAIT: u32 = 64;
1500 pub const AF_UNSPEC: u32 = 0;
1501 pub const AF_UNIX: u32 = 1;
1502 pub const AF_INET: u32 = 2;
1503 pub const AF_AX25: u32 = 3;
1504 pub const AF_IPX: u32 = 4;
1505 pub const AF_APPLETALK: u32 = 5;
1506 pub const AF_NETROM: u32 = 6;
1507 pub const AF_BRIDGE: u32 = 7;
1508 pub const AF_ATMPVC: u32 = 8;
1509 pub const AF_X25: u32 = 9;
1510 pub const AF_INET6: u32 = 10;
1511 pub const AF_ROSE: u32 = 11;
1512 pub const AF_DECnet: u32 = 12;
1513 pub const AF_NETBEUI: u32 = 13;
1514 pub const AF_SECURITY: u32 = 14;
1515 pub const AF_KEY: u32 = 15;
1516 pub const AF_NETLINK: u32 = 16;
1517 pub const AF_PACKET: u32 = 17;
1518 pub const AF_ASH: u32 = 18;
1519 pub const AF_ECONET: u32 = 19;
1520 pub const AF_ATMSVC: u32 = 20;
1521 pub const AF_RDS: u32 = 21;
1522 pub const AF_SNA: u32 = 22;
1523 pub const AF_IRDA: u32 = 23;
1524 pub const AF_PPPOX: u32 = 24;
1525 pub const AF_WANPIPE: u32 = 25;
1526 pub const AF_LLC: u32 = 26;
1527 pub const AF_CAN: u32 = 29;
1528 pub const AF_TIPC: u32 = 30;
1529 pub const AF_BLUETOOTH: u32 = 31;
1530 pub const AF_IUCV: u32 = 32;
1531 pub const AF_RXRPC: u32 = 33;
1532 pub const AF_ISDN: u32 = 34;
1533 pub const AF_PHONET: u32 = 35;
1534 pub const AF_IEEE802154: u32 = 36;
1535 pub const AF_CAIF: u32 = 37;
1536 pub const AF_ALG: u32 = 38;
1537 pub const AF_NFC: u32 = 39;
1538 pub const AF_VSOCK: u32 = 40;
1539 pub const AF_KCM: u32 = 41;
1540 pub const AF_QIPCRTR: u32 = 42;
1541 pub const AF_SMC: u32 = 43;
1542 pub const AF_XDP: u32 = 44;
1543 pub const AF_MCTP: u32 = 45;
1544 pub const AF_MAX: u32 = 46;
1545 pub const MSG_OOB: u32 = 1;
1546 pub const MSG_PEEK: u32 = 2;
1547 pub const MSG_DONTROUTE: u32 = 4;
1548 pub const MSG_CTRUNC: u32 = 8;
1549 pub const MSG_PROBE: u32 = 16;
1550 pub const MSG_TRUNC: u32 = 32;
1551 pub const MSG_EOR: u32 = 128;
1552 pub const MSG_WAITALL: u32 = 256;
1553 pub const MSG_FIN: u32 = 512;
1554 pub const MSG_SYN: u32 = 1024;
1555 pub const MSG_CONFIRM: u32 = 2048;
1556 pub const MSG_RST: u32 = 4096;
1557 pub const MSG_ERRQUEUE: u32 = 8192;
1558 pub const MSG_NOSIGNAL: u32 = 16384;
1559 pub const MSG_MORE: u32 = 32768;
1560 pub const MSG_CMSG_CLOEXEC: u32 = 1073741824;
1561 pub const SCM_RIGHTS: u32 = 1;
1562 pub const SCM_CREDENTIALS: u32 = 2;
1563 pub const SCM_SECURITY: u32 = 3;
1564 pub const SOL_IP: u32 = 0;
1565 pub const SOL_TCP: u32 = 6;
1566 pub const SOL_UDP: u32 = 17;
1567 pub const SOL_IPV6: u32 = 41;
1568 pub const SOL_ICMPV6: u32 = 58;
1569 pub const SOL_SCTP: u32 = 132;
1570 pub const SOL_UDPLITE: u32 = 136;
1571 pub const SOL_RAW: u32 = 255;
1572 pub const SOL_IPX: u32 = 256;
1573 pub const SOL_AX25: u32 = 257;
1574 pub const SOL_ATALK: u32 = 258;
1575 pub const SOL_NETROM: u32 = 259;
1576 pub const SOL_ROSE: u32 = 260;
1577 pub const SOL_DECNET: u32 = 261;
1578 pub const SOL_X25: u32 = 262;
1579 pub const SOL_PACKET: u32 = 263;
1580 pub const SOL_ATM: u32 = 264;
1581 pub const SOL_AAL: u32 = 265;
1582 pub const SOL_IRDA: u32 = 266;
1583 pub const SOL_NETBEUI: u32 = 267;
1584 pub const SOL_LLC: u32 = 268;
1585 pub const SOL_DCCP: u32 = 269;
1586 pub const SOL_NETLINK: u32 = 270;
1587 pub const SOL_TIPC: u32 = 271;
1588 pub const SOL_RXRPC: u32 = 272;
1589 pub const SOL_PPPOL2TP: u32 = 273;
1590 pub const SOL_BLUETOOTH: u32 = 274;
1591 pub const SOL_PNPIPE: u32 = 275;
1592 pub const SOL_RDS: u32 = 276;
1593 pub const SOL_IUCV: u32 = 277;
1594 pub const SOL_CAIF: u32 = 278;
1595 pub const SOL_ALG: u32 = 279;
1596 pub const SOL_NFC: u32 = 280;
1597 pub const SOL_KCM: u32 = 281;
1598 pub const SOL_TLS: u32 = 282;
1599 pub const SOL_XDP: u32 = 283;
1600 pub const SOL_MPTCP: u32 = 284;
1601 pub const SOL_MCTP: u32 = 285;
1602 pub const SOL_SMC: u32 = 286;
1603 pub const IPPROTO_IP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IP;
1604 pub const IPPROTO_ICMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ICMP;
1605 pub const IPPROTO_IGMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IGMP;
1606 pub const IPPROTO_IPIP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IPIP;
1607 pub const IPPROTO_TCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_TCP;
1608 pub const IPPROTO_EGP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_EGP;
1609 pub const IPPROTO_PUP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_PUP;
1610 pub const IPPROTO_UDP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_UDP;
1611 pub const IPPROTO_IDP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IDP;
1612 pub const IPPROTO_TP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_TP;
1613 pub const IPPROTO_DCCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_DCCP;
1614 pub const IPPROTO_IPV6: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IPV6;
1615 pub const IPPROTO_RSVP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_RSVP;
1616 pub const IPPROTO_GRE: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_GRE;
1617 pub const IPPROTO_ESP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ESP;
1618 pub const IPPROTO_AH: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_AH;
1619 pub const IPPROTO_MTP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MTP;
1620 pub const IPPROTO_BEETPH: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_BEETPH;
1621 pub const IPPROTO_ENCAP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ENCAP;
1622 pub const IPPROTO_PIM: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_PIM;
1623 pub const IPPROTO_COMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_COMP;
1624 pub const IPPROTO_L2TP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_L2TP;
1625 pub const IPPROTO_SCTP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_SCTP;
1626 pub const IPPROTO_UDPLITE: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_UDPLITE;
1627 pub const IPPROTO_MPLS: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MPLS;
1628 pub const IPPROTO_ETHERNET: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ETHERNET;
1629 pub const IPPROTO_AGGFRAG: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_AGGFRAG;
1630 pub const IPPROTO_RAW: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_RAW;
1631 pub const IPPROTO_SMC: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_SMC;
1632 pub const IPPROTO_MPTCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MPTCP;
1633 pub const IPPROTO_MAX: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MAX;
1634 pub const IPV4_DEVCONF_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_FORWARDING;
1635 pub const IPV4_DEVCONF_MC_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_MC_FORWARDING;
1636 pub const IPV4_DEVCONF_PROXY_ARP: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROXY_ARP;
1637 pub const IPV4_DEVCONF_ACCEPT_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_REDIRECTS;
1638 pub const IPV4_DEVCONF_SECURE_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SECURE_REDIRECTS;
1639 pub const IPV4_DEVCONF_SEND_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SEND_REDIRECTS;
1640 pub const IPV4_DEVCONF_SHARED_MEDIA: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SHARED_MEDIA;
1641 pub const IPV4_DEVCONF_RP_FILTER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_RP_FILTER;
1642 pub const IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE;
1643 pub const IPV4_DEVCONF_BOOTP_RELAY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_BOOTP_RELAY;
1644 pub const IPV4_DEVCONF_LOG_MARTIANS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_LOG_MARTIANS;
1645 pub const IPV4_DEVCONF_TAG: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_TAG;
1646 pub const IPV4_DEVCONF_ARPFILTER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARPFILTER;
1647 pub const IPV4_DEVCONF_MEDIUM_ID: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_MEDIUM_ID;
1648 pub const IPV4_DEVCONF_NOXFRM: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_NOXFRM;
1649 pub const IPV4_DEVCONF_NOPOLICY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_NOPOLICY;
1650 pub const IPV4_DEVCONF_FORCE_IGMP_VERSION: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_FORCE_IGMP_VERSION;
1651 pub const IPV4_DEVCONF_ARP_ANNOUNCE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_ANNOUNCE;
1652 pub const IPV4_DEVCONF_ARP_IGNORE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_IGNORE;
1653 pub const IPV4_DEVCONF_PROMOTE_SECONDARIES: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROMOTE_SECONDARIES;
1654 pub const IPV4_DEVCONF_ARP_ACCEPT: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_ACCEPT;
1655 pub const IPV4_DEVCONF_ARP_NOTIFY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_NOTIFY;
1656 pub const IPV4_DEVCONF_ACCEPT_LOCAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_LOCAL;
1657 pub const IPV4_DEVCONF_SRC_VMARK: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SRC_VMARK;
1658 pub const IPV4_DEVCONF_PROXY_ARP_PVLAN: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROXY_ARP_PVLAN;
1659 pub const IPV4_DEVCONF_ROUTE_LOCALNET: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ROUTE_LOCALNET;
1660 pub const IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL;
1661 pub const IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL;
1662 pub const IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN;
1663 pub const IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST;
1664 pub const IPV4_DEVCONF_DROP_GRATUITOUS_ARP: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_DROP_GRATUITOUS_ARP;
1665 pub const IPV4_DEVCONF_BC_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_BC_FORWARDING;
1666 pub const IPV4_DEVCONF_ARP_EVICT_NOCARRIER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_EVICT_NOCARRIER;
1667 pub const __IPV4_DEVCONF_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IPV4_DEVCONF_MAX;
1668 pub const DEVCONF_FORWARDING: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORWARDING;
1669 pub const DEVCONF_HOPLIMIT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_HOPLIMIT;
1670 pub const DEVCONF_MTU6: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MTU6;
1671 pub const DEVCONF_ACCEPT_RA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA;
1672 pub const DEVCONF_ACCEPT_REDIRECTS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_REDIRECTS;
1673 pub const DEVCONF_AUTOCONF: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_AUTOCONF;
1674 pub const DEVCONF_DAD_TRANSMITS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DAD_TRANSMITS;
1675 pub const DEVCONF_RTR_SOLICITS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICITS;
1676 pub const DEVCONF_RTR_SOLICIT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_INTERVAL;
1677 pub const DEVCONF_RTR_SOLICIT_DELAY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_DELAY;
1678 pub const DEVCONF_USE_TEMPADDR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_TEMPADDR;
1679 pub const DEVCONF_TEMP_VALID_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_TEMP_VALID_LFT;
1680 pub const DEVCONF_TEMP_PREFERED_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_TEMP_PREFERED_LFT;
1681 pub const DEVCONF_REGEN_MAX_RETRY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_REGEN_MAX_RETRY;
1682 pub const DEVCONF_MAX_DESYNC_FACTOR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX_DESYNC_FACTOR;
1683 pub const DEVCONF_MAX_ADDRESSES: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX_ADDRESSES;
1684 pub const DEVCONF_FORCE_MLD_VERSION: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORCE_MLD_VERSION;
1685 pub const DEVCONF_ACCEPT_RA_DEFRTR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_DEFRTR;
1686 pub const DEVCONF_ACCEPT_RA_PINFO: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_PINFO;
1687 pub const DEVCONF_ACCEPT_RA_RTR_PREF: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RTR_PREF;
1688 pub const DEVCONF_RTR_PROBE_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_PROBE_INTERVAL;
1689 pub const DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN;
1690 pub const DEVCONF_PROXY_NDP: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_PROXY_NDP;
1691 pub const DEVCONF_OPTIMISTIC_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_OPTIMISTIC_DAD;
1692 pub const DEVCONF_ACCEPT_SOURCE_ROUTE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_SOURCE_ROUTE;
1693 pub const DEVCONF_MC_FORWARDING: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MC_FORWARDING;
1694 pub const DEVCONF_DISABLE_IPV6: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DISABLE_IPV6;
1695 pub const DEVCONF_ACCEPT_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_DAD;
1696 pub const DEVCONF_FORCE_TLLAO: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORCE_TLLAO;
1697 pub const DEVCONF_NDISC_NOTIFY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_NOTIFY;
1698 pub const DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL;
1699 pub const DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL;
1700 pub const DEVCONF_SUPPRESS_FRAG_NDISC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SUPPRESS_FRAG_NDISC;
1701 pub const DEVCONF_ACCEPT_RA_FROM_LOCAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_FROM_LOCAL;
1702 pub const DEVCONF_USE_OPTIMISTIC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_OPTIMISTIC;
1703 pub const DEVCONF_ACCEPT_RA_MTU: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MTU;
1704 pub const DEVCONF_STABLE_SECRET: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_STABLE_SECRET;
1705 pub const DEVCONF_USE_OIF_ADDRS_ONLY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_OIF_ADDRS_ONLY;
1706 pub const DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT;
1707 pub const DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN;
1708 pub const DEVCONF_DROP_UNICAST_IN_L2_MULTICAST: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DROP_UNICAST_IN_L2_MULTICAST;
1709 pub const DEVCONF_DROP_UNSOLICITED_NA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DROP_UNSOLICITED_NA;
1710 pub const DEVCONF_KEEP_ADDR_ON_DOWN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_KEEP_ADDR_ON_DOWN;
1711 pub const DEVCONF_RTR_SOLICIT_MAX_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_MAX_INTERVAL;
1712 pub const DEVCONF_SEG6_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SEG6_ENABLED;
1713 pub const DEVCONF_SEG6_REQUIRE_HMAC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SEG6_REQUIRE_HMAC;
1714 pub const DEVCONF_ENHANCED_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ENHANCED_DAD;
1715 pub const DEVCONF_ADDR_GEN_MODE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ADDR_GEN_MODE;
1716 pub const DEVCONF_DISABLE_POLICY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DISABLE_POLICY;
1717 pub const DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN;
1718 pub const DEVCONF_NDISC_TCLASS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_TCLASS;
1719 pub const DEVCONF_RPL_SEG_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RPL_SEG_ENABLED;
1720 pub const DEVCONF_RA_DEFRTR_METRIC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RA_DEFRTR_METRIC;
1721 pub const DEVCONF_IOAM6_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ENABLED;
1722 pub const DEVCONF_IOAM6_ID: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ID;
1723 pub const DEVCONF_IOAM6_ID_WIDE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ID_WIDE;
1724 pub const DEVCONF_NDISC_EVICT_NOCARRIER: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_EVICT_NOCARRIER;
1725 pub const DEVCONF_ACCEPT_UNTRACKED_NA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_UNTRACKED_NA;
1726 pub const DEVCONF_ACCEPT_RA_MIN_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MIN_LFT;
1727 pub const DEVCONF_FORCE_FORWARDING: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORCE_FORWARDING;
1728 pub const DEVCONF_MAX: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX;
1729 pub const TCP_FLAG_AE: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_AE;
1730 pub const TCP_FLAG_CWR: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_CWR;
1731 pub const TCP_FLAG_ECE: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_ECE;
1732 pub const TCP_FLAG_URG: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_URG;
1733 pub const TCP_FLAG_ACK: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_ACK;
1734 pub const TCP_FLAG_PSH: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_PSH;
1735 pub const TCP_FLAG_RST: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_RST;
1736 pub const TCP_FLAG_SYN: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_SYN;
1737 pub const TCP_FLAG_FIN: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_FIN;
1738 pub const TCP_RESERVED_BITS: _bindgen_ty_4 = _bindgen_ty_4::TCP_RESERVED_BITS;
1739 pub const TCP_DATA_OFFSET: _bindgen_ty_4 = _bindgen_ty_4::TCP_DATA_OFFSET;
1740 pub const TCP_NO_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_NO_QUEUE;
1741 pub const TCP_RECV_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_RECV_QUEUE;
1742 pub const TCP_SEND_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_SEND_QUEUE;
1743 pub const TCP_QUEUES_NR: _bindgen_ty_5 = _bindgen_ty_5::TCP_QUEUES_NR;
1744 pub const TCP_NLA_PAD: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_PAD;
1745 pub const TCP_NLA_BUSY: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BUSY;
1746 pub const TCP_NLA_RWND_LIMITED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_RWND_LIMITED;
1747 pub const TCP_NLA_SNDBUF_LIMITED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SNDBUF_LIMITED;
1748 pub const TCP_NLA_DATA_SEGS_OUT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DATA_SEGS_OUT;
1749 pub const TCP_NLA_TOTAL_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TOTAL_RETRANS;
1750 pub const TCP_NLA_PACING_RATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_PACING_RATE;
1751 pub const TCP_NLA_DELIVERY_RATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERY_RATE;
1752 pub const TCP_NLA_SND_CWND: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SND_CWND;
1753 pub const TCP_NLA_REORDERING: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REORDERING;
1754 pub const TCP_NLA_MIN_RTT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_MIN_RTT;
1755 pub const TCP_NLA_RECUR_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_RECUR_RETRANS;
1756 pub const TCP_NLA_DELIVERY_RATE_APP_LMT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERY_RATE_APP_LMT;
1757 pub const TCP_NLA_SNDQ_SIZE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SNDQ_SIZE;
1758 pub const TCP_NLA_CA_STATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_CA_STATE;
1759 pub const TCP_NLA_SND_SSTHRESH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SND_SSTHRESH;
1760 pub const TCP_NLA_DELIVERED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERED;
1761 pub const TCP_NLA_DELIVERED_CE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERED_CE;
1762 pub const TCP_NLA_BYTES_SENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_SENT;
1763 pub const TCP_NLA_BYTES_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_RETRANS;
1764 pub const TCP_NLA_DSACK_DUPS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DSACK_DUPS;
1765 pub const TCP_NLA_REORD_SEEN: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REORD_SEEN;
1766 pub const TCP_NLA_SRTT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SRTT;
1767 pub const TCP_NLA_TIMEOUT_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TIMEOUT_REHASH;
1768 pub const TCP_NLA_BYTES_NOTSENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_NOTSENT;
1769 pub const TCP_NLA_EDT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_EDT;
1770 pub const TCP_NLA_TTL: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TTL;
1771 pub const TCP_NLA_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REHASH;
1772 pub const IF_OPER_UNKNOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_UNKNOWN;
1773 pub const IF_OPER_NOTPRESENT: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_NOTPRESENT;
1774 pub const IF_OPER_DOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_DOWN;
1775 pub const IF_OPER_LOWERLAYERDOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_LOWERLAYERDOWN;
1776 pub const IF_OPER_TESTING: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_TESTING;
1777 pub const IF_OPER_DORMANT: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_DORMANT;
1778 pub const IF_OPER_UP: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_UP;
1779 pub const IF_LINK_MODE_DEFAULT: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_DEFAULT;
1780 pub const IF_LINK_MODE_DORMANT: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_DORMANT;
1781 pub const IF_LINK_MODE_TESTING: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_TESTING;
1782 pub const NFPROTO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_UNSPEC;
1783 pub const NFPROTO_INET: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_INET;
1784 pub const NFPROTO_IPV4: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_IPV4;
1785 pub const NFPROTO_ARP: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_ARP;
1786 pub const NFPROTO_NETDEV: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_NETDEV;
1787 pub const NFPROTO_BRIDGE: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_BRIDGE;
1788 pub const NFPROTO_IPV6: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_IPV6;
1789 pub const NFPROTO_DECNET: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_DECNET;
1790 pub const NFPROTO_NUMPROTO: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_NUMPROTO;
1791 pub const SOF_TIMESTAMPING_TX_HARDWARE: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_TX_HARDWARE;
1792 pub const SOF_TIMESTAMPING_TX_SOFTWARE: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_TX_SOFTWARE;
1793 pub const SOF_TIMESTAMPING_RX_HARDWARE: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_RX_HARDWARE;
1794 pub const SOF_TIMESTAMPING_RX_SOFTWARE: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_RX_SOFTWARE;
1795 pub const SOF_TIMESTAMPING_SOFTWARE: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_SOFTWARE;
1796 pub const SOF_TIMESTAMPING_SYS_HARDWARE: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_SYS_HARDWARE;
1797 pub const SOF_TIMESTAMPING_RAW_HARDWARE: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_RAW_HARDWARE;
1798 pub const SOF_TIMESTAMPING_OPT_ID: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_OPT_ID;
1799 pub const SOF_TIMESTAMPING_TX_SCHED: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_TX_SCHED;
1800 pub const SOF_TIMESTAMPING_TX_ACK: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_TX_ACK;
1801 pub const SOF_TIMESTAMPING_OPT_CMSG: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_OPT_CMSG;
1802 pub const SOF_TIMESTAMPING_OPT_TSONLY: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_OPT_TSONLY;
1803 pub const SOF_TIMESTAMPING_OPT_STATS: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_OPT_STATS;
1804 pub const SOF_TIMESTAMPING_OPT_PKTINFO: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_OPT_PKTINFO;
1805 pub const SOF_TIMESTAMPING_OPT_TX_SWHW: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_OPT_TX_SWHW;
1806 pub const SOF_TIMESTAMPING_BIND_PHC: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_BIND_PHC;
1807 pub const SOF_TIMESTAMPING_OPT_ID_TCP: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_OPT_ID_TCP;
1808 pub const SOF_TIMESTAMPING_OPT_RX_FILTER: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_OPT_RX_FILTER;
1809 pub const SOF_TIMESTAMPING_TX_COMPLETION: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_TX_COMPLETION;
1810 pub const SOF_TIMESTAMPING_LAST: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_TX_COMPLETION;
1811 pub const SOF_TIMESTAMPING_MASK: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_MASK;
1812 #[repr(u32)]
1813 #[non_exhaustive]
1814 #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
1815 pub enum _bindgen_ty_1 {
1816 IPPROTO_IP = 0,
1817 IPPROTO_ICMP = 1,
1818 IPPROTO_IGMP = 2,
1819 IPPROTO_IPIP = 4,
1820 IPPROTO_TCP = 6,
1821 IPPROTO_EGP = 8,
1822 IPPROTO_PUP = 12,
1823 IPPROTO_UDP = 17,
1824 IPPROTO_IDP = 22,
1825 IPPROTO_TP = 29,
1826 IPPROTO_DCCP = 33,
1827 IPPROTO_IPV6 = 41,
1828 IPPROTO_RSVP = 46,
1829 IPPROTO_GRE = 47,
1830 IPPROTO_ESP = 50,
1831 IPPROTO_AH = 51,
1832 IPPROTO_MTP = 92,
1833 IPPROTO_BEETPH = 94,
1834 IPPROTO_ENCAP = 98,
1835 IPPROTO_PIM = 103,
1836 IPPROTO_COMP = 108,
1837 IPPROTO_L2TP = 115,
1838 IPPROTO_SCTP = 132,
1839 IPPROTO_UDPLITE = 136,
1840 IPPROTO_MPLS = 137,
1841 IPPROTO_ETHERNET = 143,
1842 IPPROTO_AGGFRAG = 144,
1843 IPPROTO_RAW = 255,
1844 IPPROTO_SMC = 256,
1845 IPPROTO_MPTCP = 262,
1846 IPPROTO_MAX = 263,
1847 }
1848 #[repr(u32)]
1849 #[non_exhaustive]
1850 #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
1851 pub enum _bindgen_ty_2 {
1852 IPV4_DEVCONF_FORWARDING = 1,
1853 IPV4_DEVCONF_MC_FORWARDING = 2,
1854 IPV4_DEVCONF_PROXY_ARP = 3,
1855 IPV4_DEVCONF_ACCEPT_REDIRECTS = 4,
1856 IPV4_DEVCONF_SECURE_REDIRECTS = 5,
1857 IPV4_DEVCONF_SEND_REDIRECTS = 6,
1858 IPV4_DEVCONF_SHARED_MEDIA = 7,
1859 IPV4_DEVCONF_RP_FILTER = 8,
1860 IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE = 9,
1861 IPV4_DEVCONF_BOOTP_RELAY = 10,
1862 IPV4_DEVCONF_LOG_MARTIANS = 11,
1863 IPV4_DEVCONF_TAG = 12,
1864 IPV4_DEVCONF_ARPFILTER = 13,
1865 IPV4_DEVCONF_MEDIUM_ID = 14,
1866 IPV4_DEVCONF_NOXFRM = 15,
1867 IPV4_DEVCONF_NOPOLICY = 16,
1868 IPV4_DEVCONF_FORCE_IGMP_VERSION = 17,
1869 IPV4_DEVCONF_ARP_ANNOUNCE = 18,
1870 IPV4_DEVCONF_ARP_IGNORE = 19,
1871 IPV4_DEVCONF_PROMOTE_SECONDARIES = 20,
1872 IPV4_DEVCONF_ARP_ACCEPT = 21,
1873 IPV4_DEVCONF_ARP_NOTIFY = 22,
1874 IPV4_DEVCONF_ACCEPT_LOCAL = 23,
1875 IPV4_DEVCONF_SRC_VMARK = 24,
1876 IPV4_DEVCONF_PROXY_ARP_PVLAN = 25,
1877 IPV4_DEVCONF_ROUTE_LOCALNET = 26,
1878 IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL = 27,
1879 IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL = 28,
1880 IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 29,
1881 IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 30,
1882 IPV4_DEVCONF_DROP_GRATUITOUS_ARP = 31,
1883 IPV4_DEVCONF_BC_FORWARDING = 32,
1884 IPV4_DEVCONF_ARP_EVICT_NOCARRIER = 33,
1885 __IPV4_DEVCONF_MAX = 34,
1886 }
1887 #[repr(u32)]
1888 #[non_exhaustive]
1889 #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
1890 pub enum _bindgen_ty_3 {
1891 DEVCONF_FORWARDING = 0,
1892 DEVCONF_HOPLIMIT = 1,
1893 DEVCONF_MTU6 = 2,
1894 DEVCONF_ACCEPT_RA = 3,
1895 DEVCONF_ACCEPT_REDIRECTS = 4,
1896 DEVCONF_AUTOCONF = 5,
1897 DEVCONF_DAD_TRANSMITS = 6,
1898 DEVCONF_RTR_SOLICITS = 7,
1899 DEVCONF_RTR_SOLICIT_INTERVAL = 8,
1900 DEVCONF_RTR_SOLICIT_DELAY = 9,
1901 DEVCONF_USE_TEMPADDR = 10,
1902 DEVCONF_TEMP_VALID_LFT = 11,
1903 DEVCONF_TEMP_PREFERED_LFT = 12,
1904 DEVCONF_REGEN_MAX_RETRY = 13,
1905 DEVCONF_MAX_DESYNC_FACTOR = 14,
1906 DEVCONF_MAX_ADDRESSES = 15,
1907 DEVCONF_FORCE_MLD_VERSION = 16,
1908 DEVCONF_ACCEPT_RA_DEFRTR = 17,
1909 DEVCONF_ACCEPT_RA_PINFO = 18,
1910 DEVCONF_ACCEPT_RA_RTR_PREF = 19,
1911 DEVCONF_RTR_PROBE_INTERVAL = 20,
1912 DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN = 21,
1913 DEVCONF_PROXY_NDP = 22,
1914 DEVCONF_OPTIMISTIC_DAD = 23,
1915 DEVCONF_ACCEPT_SOURCE_ROUTE = 24,
1916 DEVCONF_MC_FORWARDING = 25,
1917 DEVCONF_DISABLE_IPV6 = 26,
1918 DEVCONF_ACCEPT_DAD = 27,
1919 DEVCONF_FORCE_TLLAO = 28,
1920 DEVCONF_NDISC_NOTIFY = 29,
1921 DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL = 30,
1922 DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL = 31,
1923 DEVCONF_SUPPRESS_FRAG_NDISC = 32,
1924 DEVCONF_ACCEPT_RA_FROM_LOCAL = 33,
1925 DEVCONF_USE_OPTIMISTIC = 34,
1926 DEVCONF_ACCEPT_RA_MTU = 35,
1927 DEVCONF_STABLE_SECRET = 36,
1928 DEVCONF_USE_OIF_ADDRS_ONLY = 37,
1929 DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT = 38,
1930 DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 39,
1931 DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 40,
1932 DEVCONF_DROP_UNSOLICITED_NA = 41,
1933 DEVCONF_KEEP_ADDR_ON_DOWN = 42,
1934 DEVCONF_RTR_SOLICIT_MAX_INTERVAL = 43,
1935 DEVCONF_SEG6_ENABLED = 44,
1936 DEVCONF_SEG6_REQUIRE_HMAC = 45,
1937 DEVCONF_ENHANCED_DAD = 46,
1938 DEVCONF_ADDR_GEN_MODE = 47,
1939 DEVCONF_DISABLE_POLICY = 48,
1940 DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN = 49,
1941 DEVCONF_NDISC_TCLASS = 50,
1942 DEVCONF_RPL_SEG_ENABLED = 51,
1943 DEVCONF_RA_DEFRTR_METRIC = 52,
1944 DEVCONF_IOAM6_ENABLED = 53,
1945 DEVCONF_IOAM6_ID = 54,
1946 DEVCONF_IOAM6_ID_WIDE = 55,
1947 DEVCONF_NDISC_EVICT_NOCARRIER = 56,
1948 DEVCONF_ACCEPT_UNTRACKED_NA = 57,
1949 DEVCONF_ACCEPT_RA_MIN_LFT = 58,
1950 DEVCONF_FORCE_FORWARDING = 59,
1951 DEVCONF_MAX = 60,
1952 }
1953 #[repr(u32)]
1954 #[non_exhaustive]
1955 #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
1956 pub enum socket_state {
1957 SS_FREE = 0,
1958 SS_UNCONNECTED = 1,
1959 SS_CONNECTING = 2,
1960 SS_CONNECTED = 3,
1961 SS_DISCONNECTING = 4,
1962 }
1963 #[repr(u32)]
1964 #[non_exhaustive]
1965 #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
1966 pub enum _bindgen_ty_4 {
1967 TCP_FLAG_AE = 16777216,
1968 TCP_FLAG_CWR = 8388608,
1969 TCP_FLAG_ECE = 4194304,
1970 TCP_FLAG_URG = 2097152,
1971 TCP_FLAG_ACK = 1048576,
1972 TCP_FLAG_PSH = 524288,
1973 TCP_FLAG_RST = 262144,
1974 TCP_FLAG_SYN = 131072,
1975 TCP_FLAG_FIN = 65536,
1976 TCP_RESERVED_BITS = 234881024,
1977 TCP_DATA_OFFSET = 4026531840,
1978 }
1979 #[repr(u32)]
1980 #[non_exhaustive]
1981 #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
1982 pub enum _bindgen_ty_5 {
1983 TCP_NO_QUEUE = 0,
1984 TCP_RECV_QUEUE = 1,
1985 TCP_SEND_QUEUE = 2,
1986 TCP_QUEUES_NR = 3,
1987 }
1988 #[repr(u32)]
1989 #[non_exhaustive]
1990 #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
1991 pub enum tcp_fastopen_client_fail {
1992 TFO_STATUS_UNSPEC = 0,
1993 TFO_COOKIE_UNAVAILABLE = 1,
1994 TFO_DATA_NOT_ACKED = 2,
1995 TFO_SYN_RETRANSMITTED = 3,
1996 }
1997 #[repr(u32)]
1998 #[non_exhaustive]
1999 #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2000 pub enum tcp_ca_state {
2001 TCP_CA_Open = 0,
2002 TCP_CA_Disorder = 1,
2003 TCP_CA_CWR = 2,
2004 TCP_CA_Recovery = 3,
2005 TCP_CA_Loss = 4,
2006 }
2007 #[repr(u32)]
2008 #[non_exhaustive]
2009 #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2010 pub enum _bindgen_ty_6 {
2011 TCP_NLA_PAD = 0,
2012 TCP_NLA_BUSY = 1,
2013 TCP_NLA_RWND_LIMITED = 2,
2014 TCP_NLA_SNDBUF_LIMITED = 3,
2015 TCP_NLA_DATA_SEGS_OUT = 4,
2016 TCP_NLA_TOTAL_RETRANS = 5,
2017 TCP_NLA_PACING_RATE = 6,
2018 TCP_NLA_DELIVERY_RATE = 7,
2019 TCP_NLA_SND_CWND = 8,
2020 TCP_NLA_REORDERING = 9,
2021 TCP_NLA_MIN_RTT = 10,
2022 TCP_NLA_RECUR_RETRANS = 11,
2023 TCP_NLA_DELIVERY_RATE_APP_LMT = 12,
2024 TCP_NLA_SNDQ_SIZE = 13,
2025 TCP_NLA_CA_STATE = 14,
2026 TCP_NLA_SND_SSTHRESH = 15,
2027 TCP_NLA_DELIVERED = 16,
2028 TCP_NLA_DELIVERED_CE = 17,
2029 TCP_NLA_BYTES_SENT = 18,
2030 TCP_NLA_BYTES_RETRANS = 19,
2031 TCP_NLA_DSACK_DUPS = 20,
2032 TCP_NLA_REORD_SEEN = 21,
2033 TCP_NLA_SRTT = 22,
2034 TCP_NLA_TIMEOUT_REHASH = 23,
2035 TCP_NLA_BYTES_NOTSENT = 24,
2036 TCP_NLA_EDT = 25,
2037 TCP_NLA_TTL = 26,
2038 TCP_NLA_REHASH = 27,
2039 }
2040 #[repr(u32)]
2041 #[non_exhaustive]
2042 #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2043 pub enum net_device_flags {
2044 IFF_UP = 1,
2045 IFF_BROADCAST = 2,
2046 IFF_DEBUG = 4,
2047 IFF_LOOPBACK = 8,
2048 IFF_POINTOPOINT = 16,
2049 IFF_NOTRAILERS = 32,
2050 IFF_RUNNING = 64,
2051 IFF_NOARP = 128,
2052 IFF_PROMISC = 256,
2053 IFF_ALLMULTI = 512,
2054 IFF_MASTER = 1024,
2055 IFF_SLAVE = 2048,
2056 IFF_MULTICAST = 4096,
2057 IFF_PORTSEL = 8192,
2058 IFF_AUTOMEDIA = 16384,
2059 IFF_DYNAMIC = 32768,
2060 IFF_LOWER_UP = 65536,
2061 IFF_DORMANT = 131072,
2062 IFF_ECHO = 262144,
2063 }
2064 #[repr(u32)]
2065 #[non_exhaustive]
2066 #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2067 pub enum _bindgen_ty_7 {
2068 IF_OPER_UNKNOWN = 0,
2069 IF_OPER_NOTPRESENT = 1,
2070 IF_OPER_DOWN = 2,
2071 IF_OPER_LOWERLAYERDOWN = 3,
2072 IF_OPER_TESTING = 4,
2073 IF_OPER_DORMANT = 5,
2074 IF_OPER_UP = 6,
2075 }
2076 #[repr(u32)]
2077 #[non_exhaustive]
2078 #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2079 pub enum _bindgen_ty_8 {
2080 IF_LINK_MODE_DEFAULT = 0,
2081 IF_LINK_MODE_DORMANT = 1,
2082 IF_LINK_MODE_TESTING = 2,
2083 }
2084 #[repr(u32)]
2085 #[non_exhaustive]
2086 #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2087 pub enum nf_inet_hooks {
2088 NF_INET_PRE_ROUTING = 0,
2089 NF_INET_LOCAL_IN = 1,
2090 NF_INET_FORWARD = 2,
2091 NF_INET_LOCAL_OUT = 3,
2092 NF_INET_POST_ROUTING = 4,
2093 NF_INET_NUMHOOKS = 5,
2094 }
2095 #[repr(u32)]
2096 #[non_exhaustive]
2097 #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2098 pub enum nf_dev_hooks {
2099 NF_NETDEV_INGRESS = 0,
2100 NF_NETDEV_EGRESS = 1,
2101 NF_NETDEV_NUMHOOKS = 2,
2102 }
2103 #[repr(u32)]
2104 #[non_exhaustive]
2105 #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2106 pub enum _bindgen_ty_9 {
2107 NFPROTO_UNSPEC = 0,
2108 NFPROTO_INET = 1,
2109 NFPROTO_IPV4 = 2,
2110 NFPROTO_ARP = 3,
2111 NFPROTO_NETDEV = 5,
2112 NFPROTO_BRIDGE = 7,
2113 NFPROTO_IPV6 = 10,
2114 NFPROTO_DECNET = 12,
2115 NFPROTO_NUMPROTO = 13,
2116 }
2117 #[repr(i32)]
2118 #[non_exhaustive]
2119 #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2120 pub enum nf_ip6_hook_priorities {
2121 NF_IP6_PRI_FIRST = -2147483648,
2122 NF_IP6_PRI_RAW_BEFORE_DEFRAG = -450,
2123 NF_IP6_PRI_CONNTRACK_DEFRAG = -400,
2124 NF_IP6_PRI_RAW = -300,
2125 NF_IP6_PRI_SELINUX_FIRST = -225,
2126 NF_IP6_PRI_CONNTRACK = -200,
2127 NF_IP6_PRI_MANGLE = -150,
2128 NF_IP6_PRI_NAT_DST = -100,
2129 NF_IP6_PRI_FILTER = 0,
2130 NF_IP6_PRI_SECURITY = 50,
2131 NF_IP6_PRI_NAT_SRC = 100,
2132 NF_IP6_PRI_SELINUX_LAST = 225,
2133 NF_IP6_PRI_CONNTRACK_HELPER = 300,
2134 NF_IP6_PRI_LAST = 2147483647,
2135 }
2136 #[repr(i32)]
2137 #[non_exhaustive]
2138 #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2139 pub enum nf_ip_hook_priorities {
2140 NF_IP_PRI_FIRST = -2147483648,
2141 NF_IP_PRI_RAW_BEFORE_DEFRAG = -450,
2142 NF_IP_PRI_CONNTRACK_DEFRAG = -400,
2143 NF_IP_PRI_RAW = -300,
2144 NF_IP_PRI_SELINUX_FIRST = -225,
2145 NF_IP_PRI_CONNTRACK = -200,
2146 NF_IP_PRI_MANGLE = -150,
2147 NF_IP_PRI_NAT_DST = -100,
2148 NF_IP_PRI_FILTER = 0,
2149 NF_IP_PRI_SECURITY = 50,
2150 NF_IP_PRI_NAT_SRC = 100,
2151 NF_IP_PRI_SELINUX_LAST = 225,
2152 NF_IP_PRI_CONNTRACK_HELPER = 300,
2153 NF_IP_PRI_CONNTRACK_CONFIRM = 2147483647,
2154 }
2155 #[repr(u32)]
2156 #[non_exhaustive]
2157 #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2158 pub enum hwtstamp_provider_qualifier {
2159 HWTSTAMP_PROVIDER_QUALIFIER_PRECISE = 0,
2160 HWTSTAMP_PROVIDER_QUALIFIER_APPROX = 1,
2161 HWTSTAMP_PROVIDER_QUALIFIER_CNT = 2,
2162 }
2163 #[repr(u32)]
2164 #[non_exhaustive]
2165 #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2166 pub enum _bindgen_ty_10 {
2167 SOF_TIMESTAMPING_TX_HARDWARE = 1,
2168 SOF_TIMESTAMPING_TX_SOFTWARE = 2,
2169 SOF_TIMESTAMPING_RX_HARDWARE = 4,
2170 SOF_TIMESTAMPING_RX_SOFTWARE = 8,
2171 SOF_TIMESTAMPING_SOFTWARE = 16,
2172 SOF_TIMESTAMPING_SYS_HARDWARE = 32,
2173 SOF_TIMESTAMPING_RAW_HARDWARE = 64,
2174 SOF_TIMESTAMPING_OPT_ID = 128,
2175 SOF_TIMESTAMPING_TX_SCHED = 256,
2176 SOF_TIMESTAMPING_TX_ACK = 512,
2177 SOF_TIMESTAMPING_OPT_CMSG = 1024,
2178 SOF_TIMESTAMPING_OPT_TSONLY = 2048,
2179 SOF_TIMESTAMPING_OPT_STATS = 4096,
2180 SOF_TIMESTAMPING_OPT_PKTINFO = 8192,
2181 SOF_TIMESTAMPING_OPT_TX_SWHW = 16384,
2182 SOF_TIMESTAMPING_BIND_PHC = 32768,
2183 SOF_TIMESTAMPING_OPT_ID_TCP = 65536,
2184 SOF_TIMESTAMPING_OPT_RX_FILTER = 131072,
2185 SOF_TIMESTAMPING_TX_COMPLETION = 262144,
2186 SOF_TIMESTAMPING_MASK = 524287,
2187 }
2188 #[repr(u32)]
2189 #[non_exhaustive]
2190 #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2191 pub enum hwtstamp_flags {
2192 HWTSTAMP_FLAG_BONDED_PHC_INDEX = 1,
2193 }
2194 #[repr(u32)]
2195 #[non_exhaustive]
2196 #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2197 pub enum hwtstamp_tx_types {
2198 HWTSTAMP_TX_OFF = 0,
2199 HWTSTAMP_TX_ON = 1,
2200 HWTSTAMP_TX_ONESTEP_SYNC = 2,
2201 HWTSTAMP_TX_ONESTEP_P2P = 3,
2202 __HWTSTAMP_TX_CNT = 4,
2203 }
2204 #[repr(u32)]
2205 #[non_exhaustive]
2206 #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2207 pub enum hwtstamp_rx_filters {
2208 HWTSTAMP_FILTER_NONE = 0,
2209 HWTSTAMP_FILTER_ALL = 1,
2210 HWTSTAMP_FILTER_SOME = 2,
2211 HWTSTAMP_FILTER_PTP_V1_L4_EVENT = 3,
2212 HWTSTAMP_FILTER_PTP_V1_L4_SYNC = 4,
2213 HWTSTAMP_FILTER_PTP_V1_L4_DELAY_REQ = 5,
2214 HWTSTAMP_FILTER_PTP_V2_L4_EVENT = 6,
2215 HWTSTAMP_FILTER_PTP_V2_L4_SYNC = 7,
2216 HWTSTAMP_FILTER_PTP_V2_L4_DELAY_REQ = 8,
2217 HWTSTAMP_FILTER_PTP_V2_L2_EVENT = 9,
2218 HWTSTAMP_FILTER_PTP_V2_L2_SYNC = 10,
2219 HWTSTAMP_FILTER_PTP_V2_L2_DELAY_REQ = 11,
2220 HWTSTAMP_FILTER_PTP_V2_EVENT = 12,
2221 HWTSTAMP_FILTER_PTP_V2_SYNC = 13,
2222 HWTSTAMP_FILTER_PTP_V2_DELAY_REQ = 14,
2223 HWTSTAMP_FILTER_NTP_ALL = 15,
2224 __HWTSTAMP_FILTER_CNT = 16,
2225 }
2226 #[repr(u32)]
2227 #[non_exhaustive]
2228 #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2229 pub enum txtime_flags {
2230 SOF_TXTIME_DEADLINE_MODE = 1,
2231 SOF_TXTIME_REPORT_ERRORS = 2,
2232 SOF_TXTIME_FLAGS_MASK = 3,
2233 }
2234 #[repr(C)]
2235 #[derive(Copy, Clone)]
2236 pub union __vector128__bindgen_ty_1 {
2237 pub __bindgen_anon_1: __vector128__bindgen_ty_1__bindgen_ty_1,
2238 pub u: [__u32; 4usize],
2239 }
2240 #[repr(C)]
2241 #[derive(Copy, Clone)]
2242 pub union __kernel_sockaddr_storage__bindgen_ty_1 {
2243 pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1,
2244 pub __align: *mut crate::ctypes::c_void,
2245 }
2246 #[repr(C)]
2247 #[derive(Copy, Clone)]
2248 pub union iphdr__bindgen_ty_1 {
2249 pub __bindgen_anon_1: iphdr__bindgen_ty_1__bindgen_ty_1,
2250 pub addrs: iphdr__bindgen_ty_1__bindgen_ty_2,
2251 }
2252 #[repr(C)]
2253 #[derive(Copy, Clone)]
2254 pub union in6_addr__bindgen_ty_1 {
2255 pub u6_addr8: [__u8; 16usize],
2256 pub u6_addr16: [__be16; 8usize],
2257 pub u6_addr32: [__be32; 4usize],
2258 }
2259 #[repr(C)]
2260 #[derive(Copy, Clone)]
2261 pub union ipv6hdr__bindgen_ty_1 {
2262 pub __bindgen_anon_1: ipv6hdr__bindgen_ty_1__bindgen_ty_1,
2263 pub addrs: ipv6hdr__bindgen_ty_1__bindgen_ty_2,
2264 }
2265 #[repr(C)]
2266 #[derive(Copy, Clone)]
2267 pub union tcp_word_hdr {
2268 pub hdr: tcphdr,
2269 pub words: [__be32; 5usize],
2270 }
2271 #[repr(C)]
2272 #[derive(Copy, Clone)]
2273 pub union if_settings__bindgen_ty_1 {
2274 pub raw_hdlc: *mut raw_hdlc_proto,
2275 pub cisco: *mut cisco_proto,
2276 pub fr: *mut fr_proto,
2277 pub fr_pvc: *mut fr_proto_pvc,
2278 pub fr_pvc_info: *mut fr_proto_pvc_info,
2279 pub x25: *mut x25_hdlc_proto,
2280 pub sync: *mut sync_serial_settings,
2281 pub te1: *mut te1_settings,
2282 }
2283 #[repr(C)]
2284 #[derive(Copy, Clone)]
2285 pub union ifreq__bindgen_ty_1 {
2286 pub ifrn_name: [crate::ctypes::c_char; 16usize],
2287 }
2288 #[repr(C)]
2289 #[derive(Copy, Clone)]
2290 pub union ifreq__bindgen_ty_2 {
2291 pub ifru_addr: sockaddr,
2292 pub ifru_dstaddr: sockaddr,
2293 pub ifru_broadaddr: sockaddr,
2294 pub ifru_netmask: sockaddr,
2295 pub ifru_hwaddr: sockaddr,
2296 pub ifru_flags: crate::ctypes::c_short,
2297 pub ifru_ivalue: crate::ctypes::c_int,
2298 pub ifru_mtu: crate::ctypes::c_int,
2299 pub ifru_map: ifmap,
2300 pub ifru_slave: [crate::ctypes::c_char; 16usize],
2301 pub ifru_newname: [crate::ctypes::c_char; 16usize],
2302 pub ifru_data: *mut crate::ctypes::c_void,
2303 pub ifru_settings: if_settings,
2304 }
2305 #[repr(C)]
2306 #[derive(Copy, Clone)]
2307 pub union ifconf__bindgen_ty_1 {
2308 pub ifcu_buf: *mut crate::ctypes::c_char,
2309 pub ifcu_req: *mut ifreq,
2310 }
2311 #[repr(C)]
2312 #[derive(Copy, Clone)]
2313 pub union nf_inet_addr {
2314 pub all: [__u32; 4usize],
2315 pub ip: __be32,
2316 pub ip6: [__be32; 4usize],
2317 pub in_: in_addr,
2318 pub in6: in6_addr,
2319 }
2320 #[repr(C)]
2321 #[derive(Copy, Clone)]
2322 pub union xt_entry_match__bindgen_ty_1 {
2323 pub user: xt_entry_match__bindgen_ty_1__bindgen_ty_1,
2324 pub kernel: xt_entry_match__bindgen_ty_1__bindgen_ty_2,
2325 pub match_size: __u16,
2326 }
2327 #[repr(C)]
2328 #[derive(Copy, Clone)]
2329 pub union xt_entry_target__bindgen_ty_1 {
2330 pub user: xt_entry_target__bindgen_ty_1__bindgen_ty_1,
2331 pub kernel: xt_entry_target__bindgen_ty_1__bindgen_ty_2,
2332 pub target_size: __u16,
2333 }
2334 impl<Storage> __BindgenBitfieldUnit<Storage> {
2335 #[inline]
2336 pub const fn new(storage: Storage) -> Self {
2337 Self { storage }
2338 }
2339 }
2340 impl<Storage> __BindgenBitfieldUnit<Storage>
2341 where
2342 Storage: AsRef<[u8]> + AsMut<[u8]>,
2343 {
2344 #[inline]
2345 fn extract_bit(byte: u8, index: usize) -> bool {
2346 let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 };
2347 let mask = 1 << bit_index;
2348 byte & mask == mask
2349 }
2350 #[inline]
2351 pub fn get_bit(&self, index: usize) -> bool {
2352 debug_assert!(index / 8 < self.storage.as_ref().len());
2353 let byte_index = index / 8;
2354 let byte = self.storage.as_ref()[byte_index];
2355 Self::extract_bit(byte, index)
2356 }
2357 #[inline]
2358 pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool {
2359 debug_assert!(index / 8 < core::mem::size_of::<Storage>());
2360 let byte_index = index / 8;
2361 let byte = unsafe { *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize) };
2362 Self::extract_bit(byte, index)
2363 }
2364 #[inline]
2365 fn change_bit(byte: u8, index: usize, val: bool) -> u8 {
2366 let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 };
2367 let mask = 1 << bit_index;
2368 if val {
2369 byte | mask
2370 } else {
2371 byte & !mask
2372 }
2373 }
2374 #[inline]
2375 pub fn set_bit(&mut self, index: usize, val: bool) {
2376 debug_assert!(index / 8 < self.storage.as_ref().len());
2377 let byte_index = index / 8;
2378 let byte = &mut self.storage.as_mut()[byte_index];
2379 *byte = Self::change_bit(*byte, index, val);
2380 }
2381 #[inline]
2382 pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) {
2383 debug_assert!(index / 8 < core::mem::size_of::<Storage>());
2384 let byte_index = index / 8;
2385 let byte = unsafe { (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize) };
2386 unsafe { *byte = Self::change_bit(*byte, index, val) };
2387 }
2388 #[inline]
2389 pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 {
2390 debug_assert!(bit_width <= 64);
2391 debug_assert!(bit_offset / 8 < self.storage.as_ref().len());
2392 debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len());
2393 let mut val = 0;
2394 for i in 0..(bit_width as usize) {
2395 if self.get_bit(i + bit_offset) {
2396 let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i };
2397 val |= 1 << index;
2398 }
2399 }
2400 val
2401 }
2402 #[inline]
2403 pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 {
2404 debug_assert!(bit_width <= 64);
2405 debug_assert!(bit_offset / 8 < core::mem::size_of::<Storage>());
2406 debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::<Storage>());
2407 let mut val = 0;
2408 for i in 0..(bit_width as usize) {
2409 if unsafe { Self::raw_get_bit(this, i + bit_offset) } {
2410 let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i };
2411 val |= 1 << index;
2412 }
2413 }
2414 val
2415 }
2416 #[inline]
2417 pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) {
2418 debug_assert!(bit_width <= 64);
2419 debug_assert!(bit_offset / 8 < self.storage.as_ref().len());
2420 debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len());
2421 for i in 0..(bit_width as usize) {
2422 let mask = 1 << i;
2423 let val_bit_is_set = val & mask == mask;
2424 let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i };
2425 self.set_bit(index + bit_offset, val_bit_is_set);
2426 }
2427 }
2428 #[inline]
2429 pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) {
2430 debug_assert!(bit_width <= 64);
2431 debug_assert!(bit_offset / 8 < core::mem::size_of::<Storage>());
2432 debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::<Storage>());
2433 for i in 0..(bit_width as usize) {
2434 let mask = 1 << i;
2435 let val_bit_is_set = val & mask == mask;
2436 let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i };
2437 unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) };
2438 }
2439 }
2440 }
2441 impl<T> __IncompleteArrayField<T> {
2442 #[inline]
2443 pub const fn new() -> Self {
2444 __IncompleteArrayField(::core::marker::PhantomData, [])
2445 }
2446 #[inline]
2447 pub fn as_ptr(&self) -> *const T {
2448 self as *const _ as *const T
2449 }
2450 #[inline]
2451 pub fn as_mut_ptr(&mut self) -> *mut T {
2452 self as *mut _ as *mut T
2453 }
2454 #[inline]
2455 pub unsafe fn as_slice(&self, len: usize) -> &[T] {
2456 ::core::slice::from_raw_parts(self.as_ptr(), len)
2457 }
2458 #[inline]
2459 pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] {
2460 ::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len)
2461 }
2462 }
2463 impl<T> ::core::fmt::Debug for __IncompleteArrayField<T> {
2464 fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
2465 fmt.write_str("__IncompleteArrayField")
2466 }
2467 }
2468 impl<T> __BindgenUnionField<T> {
2469 #[inline]
2470 pub const fn new() -> Self {
2471 __BindgenUnionField(::core::marker::PhantomData)
2472 }
2473 #[inline]
2474 pub unsafe fn as_ref(&self) -> &T {
2475 ::core::mem::transmute(self)
2476 }
2477 #[inline]
2478 pub unsafe fn as_mut(&mut self) -> &mut T {
2479 ::core::mem::transmute(self)
2480 }
2481 }
2482 impl<T> ::core::default::Default for __BindgenUnionField<T> {
2483 #[inline]
2484 fn default() -> Self {
2485 Self::new()
2486 }
2487 }
2488 impl<T> ::core::clone::Clone for __BindgenUnionField<T> {
2489 #[inline]
2490 fn clone(&self) -> Self {
2491 *self
2492 }
2493 }
2494 impl<T> ::core::marker::Copy for __BindgenUnionField<T> {}
2495 impl<T> ::core::fmt::Debug for __BindgenUnionField<T> {
2496 fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
2497 fmt.write_str("__BindgenUnionField")
2498 }
2499 }
2500 impl<T> ::core::hash::Hash for __BindgenUnionField<T> {
2501 fn hash<H: ::core::hash::Hasher>(&self, _state: &mut H) {}
2502 }
2503 impl<T> ::core::cmp::PartialEq for __BindgenUnionField<T> {
2504 fn eq(&self, _other: &__BindgenUnionField<T>) -> bool {
2505 true
2506 }
2507 }
2508 impl<T> ::core::cmp::Eq for __BindgenUnionField<T> {}
2509 impl iphdr {
2510 #[inline]
2511 pub fn version(&self) -> __u8 {
2512 unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) }
2513 }
2514 #[inline]
2515 pub fn set_version(&mut self, val: __u8) {
2516 unsafe {
2517 let val: u8 = ::core::mem::transmute(val);
2518 self._bitfield_1.set(0usize, 4u8, val as u64)
2519 }
2520 }
2521 #[inline]
2522 pub unsafe fn version_raw(this: *const Self) -> __u8 {
2523 unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) }
2524 }
2525 #[inline]
2526 pub unsafe fn set_version_raw(this: *mut Self, val: __u8) {
2527 unsafe {
2528 let val: u8 = ::core::mem::transmute(val);
2529 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64)
2530 }
2531 }
2532 #[inline]
2533 pub fn ihl(&self) -> __u8 {
2534 unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) }
2535 }
2536 #[inline]
2537 pub fn set_ihl(&mut self, val: __u8) {
2538 unsafe {
2539 let val: u8 = ::core::mem::transmute(val);
2540 self._bitfield_1.set(4usize, 4u8, val as u64)
2541 }
2542 }
2543 #[inline]
2544 pub unsafe fn ihl_raw(this: *const Self) -> __u8 {
2545 unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) }
2546 }
2547 #[inline]
2548 pub unsafe fn set_ihl_raw(this: *mut Self, val: __u8) {
2549 unsafe {
2550 let val: u8 = ::core::mem::transmute(val);
2551 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64)
2552 }
2553 }
2554 #[inline]
2555 pub fn new_bitfield_1(version: __u8, ihl: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> {
2556 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
2557 __bindgen_bitfield_unit.set(0usize, 4u8, {
2558 let version: u8 = unsafe { ::core::mem::transmute(version) };
2559 version as u64
2560 });
2561 __bindgen_bitfield_unit.set(4usize, 4u8, {
2562 let ihl: u8 = unsafe { ::core::mem::transmute(ihl) };
2563 ihl as u64
2564 });
2565 __bindgen_bitfield_unit
2566 }
2567 }
2568 impl ipv6hdr {
2569 #[inline]
2570 pub fn version(&self) -> __u8 {
2571 unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) }
2572 }
2573 #[inline]
2574 pub fn set_version(&mut self, val: __u8) {
2575 unsafe {
2576 let val: u8 = ::core::mem::transmute(val);
2577 self._bitfield_1.set(0usize, 4u8, val as u64)
2578 }
2579 }
2580 #[inline]
2581 pub unsafe fn version_raw(this: *const Self) -> __u8 {
2582 unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) }
2583 }
2584 #[inline]
2585 pub unsafe fn set_version_raw(this: *mut Self, val: __u8) {
2586 unsafe {
2587 let val: u8 = ::core::mem::transmute(val);
2588 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64)
2589 }
2590 }
2591 #[inline]
2592 pub fn priority(&self) -> __u8 {
2593 unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) }
2594 }
2595 #[inline]
2596 pub fn set_priority(&mut self, val: __u8) {
2597 unsafe {
2598 let val: u8 = ::core::mem::transmute(val);
2599 self._bitfield_1.set(4usize, 4u8, val as u64)
2600 }
2601 }
2602 #[inline]
2603 pub unsafe fn priority_raw(this: *const Self) -> __u8 {
2604 unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) }
2605 }
2606 #[inline]
2607 pub unsafe fn set_priority_raw(this: *mut Self, val: __u8) {
2608 unsafe {
2609 let val: u8 = ::core::mem::transmute(val);
2610 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64)
2611 }
2612 }
2613 #[inline]
2614 pub fn new_bitfield_1(version: __u8, priority: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> {
2615 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
2616 __bindgen_bitfield_unit.set(0usize, 4u8, {
2617 let version: u8 = unsafe { ::core::mem::transmute(version) };
2618 version as u64
2619 });
2620 __bindgen_bitfield_unit.set(4usize, 4u8, {
2621 let priority: u8 = unsafe { ::core::mem::transmute(priority) };
2622 priority as u64
2623 });
2624 __bindgen_bitfield_unit
2625 }
2626 }
2627 impl tcphdr {
2628 #[inline]
2629 pub fn doff(&self) -> __u16 {
2630 unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u16) }
2631 }
2632 #[inline]
2633 pub fn set_doff(&mut self, val: __u16) {
2634 unsafe {
2635 let val: u16 = ::core::mem::transmute(val);
2636 self._bitfield_1.set(0usize, 4u8, val as u64)
2637 }
2638 }
2639 #[inline]
2640 pub unsafe fn doff_raw(this: *const Self) -> __u16 {
2641 unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u16) }
2642 }
2643 #[inline]
2644 pub unsafe fn set_doff_raw(this: *mut Self, val: __u16) {
2645 unsafe {
2646 let val: u16 = ::core::mem::transmute(val);
2647 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64)
2648 }
2649 }
2650 #[inline]
2651 pub fn res1(&self) -> __u16 {
2652 unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 3u8) as u16) }
2653 }
2654 #[inline]
2655 pub fn set_res1(&mut self, val: __u16) {
2656 unsafe {
2657 let val: u16 = ::core::mem::transmute(val);
2658 self._bitfield_1.set(4usize, 3u8, val as u64)
2659 }
2660 }
2661 #[inline]
2662 pub unsafe fn res1_raw(this: *const Self) -> __u16 {
2663 unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 3u8) as u16) }
2664 }
2665 #[inline]
2666 pub unsafe fn set_res1_raw(this: *mut Self, val: __u16) {
2667 unsafe {
2668 let val: u16 = ::core::mem::transmute(val);
2669 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 3u8, val as u64)
2670 }
2671 }
2672 #[inline]
2673 pub fn ae(&self) -> __u16 {
2674 unsafe { ::core::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u16) }
2675 }
2676 #[inline]
2677 pub fn set_ae(&mut self, val: __u16) {
2678 unsafe {
2679 let val: u16 = ::core::mem::transmute(val);
2680 self._bitfield_1.set(7usize, 1u8, val as u64)
2681 }
2682 }
2683 #[inline]
2684 pub unsafe fn ae_raw(this: *const Self) -> __u16 {
2685 unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 7usize, 1u8) as u16) }
2686 }
2687 #[inline]
2688 pub unsafe fn set_ae_raw(this: *mut Self, val: __u16) {
2689 unsafe {
2690 let val: u16 = ::core::mem::transmute(val);
2691 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 7usize, 1u8, val as u64)
2692 }
2693 }
2694 #[inline]
2695 pub fn cwr(&self) -> __u16 {
2696 unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u16) }
2697 }
2698 #[inline]
2699 pub fn set_cwr(&mut self, val: __u16) {
2700 unsafe {
2701 let val: u16 = ::core::mem::transmute(val);
2702 self._bitfield_1.set(8usize, 1u8, val as u64)
2703 }
2704 }
2705 #[inline]
2706 pub unsafe fn cwr_raw(this: *const Self) -> __u16 {
2707 unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 8usize, 1u8) as u16) }
2708 }
2709 #[inline]
2710 pub unsafe fn set_cwr_raw(this: *mut Self, val: __u16) {
2711 unsafe {
2712 let val: u16 = ::core::mem::transmute(val);
2713 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 8usize, 1u8, val as u64)
2714 }
2715 }
2716 #[inline]
2717 pub fn ece(&self) -> __u16 {
2718 unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u16) }
2719 }
2720 #[inline]
2721 pub fn set_ece(&mut self, val: __u16) {
2722 unsafe {
2723 let val: u16 = ::core::mem::transmute(val);
2724 self._bitfield_1.set(9usize, 1u8, val as u64)
2725 }
2726 }
2727 #[inline]
2728 pub unsafe fn ece_raw(this: *const Self) -> __u16 {
2729 unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 9usize, 1u8) as u16) }
2730 }
2731 #[inline]
2732 pub unsafe fn set_ece_raw(this: *mut Self, val: __u16) {
2733 unsafe {
2734 let val: u16 = ::core::mem::transmute(val);
2735 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 9usize, 1u8, val as u64)
2736 }
2737 }
2738 #[inline]
2739 pub fn urg(&self) -> __u16 {
2740 unsafe { ::core::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u16) }
2741 }
2742 #[inline]
2743 pub fn set_urg(&mut self, val: __u16) {
2744 unsafe {
2745 let val: u16 = ::core::mem::transmute(val);
2746 self._bitfield_1.set(10usize, 1u8, val as u64)
2747 }
2748 }
2749 #[inline]
2750 pub unsafe fn urg_raw(this: *const Self) -> __u16 {
2751 unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 10usize, 1u8) as u16) }
2752 }
2753 #[inline]
2754 pub unsafe fn set_urg_raw(this: *mut Self, val: __u16) {
2755 unsafe {
2756 let val: u16 = ::core::mem::transmute(val);
2757 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 10usize, 1u8, val as u64)
2758 }
2759 }
2760 #[inline]
2761 pub fn ack(&self) -> __u16 {
2762 unsafe { ::core::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u16) }
2763 }
2764 #[inline]
2765 pub fn set_ack(&mut self, val: __u16) {
2766 unsafe {
2767 let val: u16 = ::core::mem::transmute(val);
2768 self._bitfield_1.set(11usize, 1u8, val as u64)
2769 }
2770 }
2771 #[inline]
2772 pub unsafe fn ack_raw(this: *const Self) -> __u16 {
2773 unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 11usize, 1u8) as u16) }
2774 }
2775 #[inline]
2776 pub unsafe fn set_ack_raw(this: *mut Self, val: __u16) {
2777 unsafe {
2778 let val: u16 = ::core::mem::transmute(val);
2779 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 11usize, 1u8, val as u64)
2780 }
2781 }
2782 #[inline]
2783 pub fn psh(&self) -> __u16 {
2784 unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u16) }
2785 }
2786 #[inline]
2787 pub fn set_psh(&mut self, val: __u16) {
2788 unsafe {
2789 let val: u16 = ::core::mem::transmute(val);
2790 self._bitfield_1.set(12usize, 1u8, val as u64)
2791 }
2792 }
2793 #[inline]
2794 pub unsafe fn psh_raw(this: *const Self) -> __u16 {
2795 unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 12usize, 1u8) as u16) }
2796 }
2797 #[inline]
2798 pub unsafe fn set_psh_raw(this: *mut Self, val: __u16) {
2799 unsafe {
2800 let val: u16 = ::core::mem::transmute(val);
2801 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 12usize, 1u8, val as u64)
2802 }
2803 }
2804 #[inline]
2805 pub fn rst(&self) -> __u16 {
2806 unsafe { ::core::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u16) }
2807 }
2808 #[inline]
2809 pub fn set_rst(&mut self, val: __u16) {
2810 unsafe {
2811 let val: u16 = ::core::mem::transmute(val);
2812 self._bitfield_1.set(13usize, 1u8, val as u64)
2813 }
2814 }
2815 #[inline]
2816 pub unsafe fn rst_raw(this: *const Self) -> __u16 {
2817 unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 13usize, 1u8) as u16) }
2818 }
2819 #[inline]
2820 pub unsafe fn set_rst_raw(this: *mut Self, val: __u16) {
2821 unsafe {
2822 let val: u16 = ::core::mem::transmute(val);
2823 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 13usize, 1u8, val as u64)
2824 }
2825 }
2826 #[inline]
2827 pub fn syn(&self) -> __u16 {
2828 unsafe { ::core::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) }
2829 }
2830 #[inline]
2831 pub fn set_syn(&mut self, val: __u16) {
2832 unsafe {
2833 let val: u16 = ::core::mem::transmute(val);
2834 self._bitfield_1.set(14usize, 1u8, val as u64)
2835 }
2836 }
2837 #[inline]
2838 pub unsafe fn syn_raw(this: *const Self) -> __u16 {
2839 unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 14usize, 1u8) as u16) }
2840 }
2841 #[inline]
2842 pub unsafe fn set_syn_raw(this: *mut Self, val: __u16) {
2843 unsafe {
2844 let val: u16 = ::core::mem::transmute(val);
2845 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 14usize, 1u8, val as u64)
2846 }
2847 }
2848 #[inline]
2849 pub fn fin(&self) -> __u16 {
2850 unsafe { ::core::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) }
2851 }
2852 #[inline]
2853 pub fn set_fin(&mut self, val: __u16) {
2854 unsafe {
2855 let val: u16 = ::core::mem::transmute(val);
2856 self._bitfield_1.set(15usize, 1u8, val as u64)
2857 }
2858 }
2859 #[inline]
2860 pub unsafe fn fin_raw(this: *const Self) -> __u16 {
2861 unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 15usize, 1u8) as u16) }
2862 }
2863 #[inline]
2864 pub unsafe fn set_fin_raw(this: *mut Self, val: __u16) {
2865 unsafe {
2866 let val: u16 = ::core::mem::transmute(val);
2867 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 15usize, 1u8, val as u64)
2868 }
2869 }
2870 #[inline]
2871 pub fn new_bitfield_1(doff: __u16, res1: __u16, ae: __u16, cwr: __u16, ece: __u16, urg: __u16, ack: __u16, psh: __u16, rst: __u16, syn: __u16, fin: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> {
2872 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default();
2873 __bindgen_bitfield_unit.set(0usize, 4u8, {
2874 let doff: u16 = unsafe { ::core::mem::transmute(doff) };
2875 doff as u64
2876 });
2877 __bindgen_bitfield_unit.set(4usize, 3u8, {
2878 let res1: u16 = unsafe { ::core::mem::transmute(res1) };
2879 res1 as u64
2880 });
2881 __bindgen_bitfield_unit.set(7usize, 1u8, {
2882 let ae: u16 = unsafe { ::core::mem::transmute(ae) };
2883 ae as u64
2884 });
2885 __bindgen_bitfield_unit.set(8usize, 1u8, {
2886 let cwr: u16 = unsafe { ::core::mem::transmute(cwr) };
2887 cwr as u64
2888 });
2889 __bindgen_bitfield_unit.set(9usize, 1u8, {
2890 let ece: u16 = unsafe { ::core::mem::transmute(ece) };
2891 ece as u64
2892 });
2893 __bindgen_bitfield_unit.set(10usize, 1u8, {
2894 let urg: u16 = unsafe { ::core::mem::transmute(urg) };
2895 urg as u64
2896 });
2897 __bindgen_bitfield_unit.set(11usize, 1u8, {
2898 let ack: u16 = unsafe { ::core::mem::transmute(ack) };
2899 ack as u64
2900 });
2901 __bindgen_bitfield_unit.set(12usize, 1u8, {
2902 let psh: u16 = unsafe { ::core::mem::transmute(psh) };
2903 psh as u64
2904 });
2905 __bindgen_bitfield_unit.set(13usize, 1u8, {
2906 let rst: u16 = unsafe { ::core::mem::transmute(rst) };
2907 rst as u64
2908 });
2909 __bindgen_bitfield_unit.set(14usize, 1u8, {
2910 let syn: u16 = unsafe { ::core::mem::transmute(syn) };
2911 syn as u64
2912 });
2913 __bindgen_bitfield_unit.set(15usize, 1u8, {
2914 let fin: u16 = unsafe { ::core::mem::transmute(fin) };
2915 fin as u64
2916 });
2917 __bindgen_bitfield_unit
2918 }
2919 }
2920 impl tcp_info {
2921 #[inline]
2922 pub fn tcpi_snd_wscale(&self) -> __u8 {
2923 unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) }
2924 }
2925 #[inline]
2926 pub fn set_tcpi_snd_wscale(&mut self, val: __u8) {
2927 unsafe {
2928 let val: u8 = ::core::mem::transmute(val);
2929 self._bitfield_1.set(0usize, 4u8, val as u64)
2930 }
2931 }
2932 #[inline]
2933 pub unsafe fn tcpi_snd_wscale_raw(this: *const Self) -> __u8 {
2934 unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) }
2935 }
2936 #[inline]
2937 pub unsafe fn set_tcpi_snd_wscale_raw(this: *mut Self, val: __u8) {
2938 unsafe {
2939 let val: u8 = ::core::mem::transmute(val);
2940 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64)
2941 }
2942 }
2943 #[inline]
2944 pub fn tcpi_rcv_wscale(&self) -> __u8 {
2945 unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) }
2946 }
2947 #[inline]
2948 pub fn set_tcpi_rcv_wscale(&mut self, val: __u8) {
2949 unsafe {
2950 let val: u8 = ::core::mem::transmute(val);
2951 self._bitfield_1.set(4usize, 4u8, val as u64)
2952 }
2953 }
2954 #[inline]
2955 pub unsafe fn tcpi_rcv_wscale_raw(this: *const Self) -> __u8 {
2956 unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) }
2957 }
2958 #[inline]
2959 pub unsafe fn set_tcpi_rcv_wscale_raw(this: *mut Self, val: __u8) {
2960 unsafe {
2961 let val: u8 = ::core::mem::transmute(val);
2962 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64)
2963 }
2964 }
2965 #[inline]
2966 pub fn tcpi_delivery_rate_app_limited(&self) -> __u8 {
2967 unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u8) }
2968 }
2969 #[inline]
2970 pub fn set_tcpi_delivery_rate_app_limited(&mut self, val: __u8) {
2971 unsafe {
2972 let val: u8 = ::core::mem::transmute(val);
2973 self._bitfield_1.set(8usize, 1u8, val as u64)
2974 }
2975 }
2976 #[inline]
2977 pub unsafe fn tcpi_delivery_rate_app_limited_raw(this: *const Self) -> __u8 {
2978 unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 8usize, 1u8) as u8) }
2979 }
2980 #[inline]
2981 pub unsafe fn set_tcpi_delivery_rate_app_limited_raw(this: *mut Self, val: __u8) {
2982 unsafe {
2983 let val: u8 = ::core::mem::transmute(val);
2984 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 8usize, 1u8, val as u64)
2985 }
2986 }
2987 #[inline]
2988 pub fn tcpi_fastopen_client_fail(&self) -> __u8 {
2989 unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 2u8) as u8) }
2990 }
2991 #[inline]
2992 pub fn set_tcpi_fastopen_client_fail(&mut self, val: __u8) {
2993 unsafe {
2994 let val: u8 = ::core::mem::transmute(val);
2995 self._bitfield_1.set(9usize, 2u8, val as u64)
2996 }
2997 }
2998 #[inline]
2999 pub unsafe fn tcpi_fastopen_client_fail_raw(this: *const Self) -> __u8 {
3000 unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 9usize, 2u8) as u8) }
3001 }
3002 #[inline]
3003 pub unsafe fn set_tcpi_fastopen_client_fail_raw(this: *mut Self, val: __u8) {
3004 unsafe {
3005 let val: u8 = ::core::mem::transmute(val);
3006 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 9usize, 2u8, val as u64)
3007 }
3008 }
3009 #[inline]
3010 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]> {
3011 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default();
3012 __bindgen_bitfield_unit.set(0usize, 4u8, {
3013 let tcpi_snd_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_snd_wscale) };
3014 tcpi_snd_wscale as u64
3015 });
3016 __bindgen_bitfield_unit.set(4usize, 4u8, {
3017 let tcpi_rcv_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_rcv_wscale) };
3018 tcpi_rcv_wscale as u64
3019 });
3020 __bindgen_bitfield_unit.set(8usize, 1u8, {
3021 let tcpi_delivery_rate_app_limited: u8 = unsafe { ::core::mem::transmute(tcpi_delivery_rate_app_limited) };
3022 tcpi_delivery_rate_app_limited as u64
3023 });
3024 __bindgen_bitfield_unit.set(9usize, 2u8, {
3025 let tcpi_fastopen_client_fail: u8 = unsafe { ::core::mem::transmute(tcpi_fastopen_client_fail) };
3026 tcpi_fastopen_client_fail as u64
3027 });
3028 __bindgen_bitfield_unit
3029 }
3030 }
3031 impl tcp_ao_add {
3032 #[inline]
3033 pub fn set_current(&self) -> __u32 {
3034 unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
3035 }
3036 #[inline]
3037 pub fn set_set_current(&mut self, val: __u32) {
3038 unsafe {
3039 let val: u32 = ::core::mem::transmute(val);
3040 self._bitfield_1.set(0usize, 1u8, val as u64)
3041 }
3042 }
3043 #[inline]
3044 pub unsafe fn set_current_raw(this: *const Self) -> __u32 {
3045 unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) }
3046 }
3047 #[inline]
3048 pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) {
3049 unsafe {
3050 let val: u32 = ::core::mem::transmute(val);
3051 <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64)
3052 }
3053 }
3054 #[inline]
3055 pub fn set_rnext(&self) -> __u32 {
3056 unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
3057 }
3058 #[inline]
3059 pub fn set_set_rnext(&mut self, val: __u32) {
3060 unsafe {
3061 let val: u32 = ::core::mem::transmute(val);
3062 self._bitfield_1.set(1usize, 1u8, val as u64)
3063 }
3064 }
3065 #[inline]
3066 pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 {
3067 unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) }
3068 }
3069 #[inline]
3070 pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) {
3071 unsafe {
3072 let val: u32 = ::core::mem::transmute(val);
3073 <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64)
3074 }
3075 }
3076 #[inline]
3077 pub fn reserved(&self) -> __u32 {
3078 unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) }
3079 }
3080 #[inline]
3081 pub fn set_reserved(&mut self, val: __u32) {
3082 unsafe {
3083 let val: u32 = ::core::mem::transmute(val);
3084 self._bitfield_1.set(2usize, 30u8, val as u64)
3085 }
3086 }
3087 #[inline]
3088 pub unsafe fn reserved_raw(this: *const Self) -> __u32 {
3089 unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 30u8) as u32) }
3090 }
3091 #[inline]
3092 pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) {
3093 unsafe {
3094 let val: u32 = ::core::mem::transmute(val);
3095 <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 30u8, val as u64)
3096 }
3097 }
3098 #[inline]
3099 pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> {
3100 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
3101 __bindgen_bitfield_unit.set(0usize, 1u8, {
3102 let set_current: u32 = unsafe { ::core::mem::transmute(set_current) };
3103 set_current as u64
3104 });
3105 __bindgen_bitfield_unit.set(1usize, 1u8, {
3106 let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) };
3107 set_rnext as u64
3108 });
3109 __bindgen_bitfield_unit.set(2usize, 30u8, {
3110 let reserved: u32 = unsafe { ::core::mem::transmute(reserved) };
3111 reserved as u64
3112 });
3113 __bindgen_bitfield_unit
3114 }
3115 }
3116 impl tcp_ao_del {
3117 #[inline]
3118 pub fn set_current(&self) -> __u32 {
3119 unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
3120 }
3121 #[inline]
3122 pub fn set_set_current(&mut self, val: __u32) {
3123 unsafe {
3124 let val: u32 = ::core::mem::transmute(val);
3125 self._bitfield_1.set(0usize, 1u8, val as u64)
3126 }
3127 }
3128 #[inline]
3129 pub unsafe fn set_current_raw(this: *const Self) -> __u32 {
3130 unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) }
3131 }
3132 #[inline]
3133 pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) {
3134 unsafe {
3135 let val: u32 = ::core::mem::transmute(val);
3136 <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64)
3137 }
3138 }
3139 #[inline]
3140 pub fn set_rnext(&self) -> __u32 {
3141 unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
3142 }
3143 #[inline]
3144 pub fn set_set_rnext(&mut self, val: __u32) {
3145 unsafe {
3146 let val: u32 = ::core::mem::transmute(val);
3147 self._bitfield_1.set(1usize, 1u8, val as u64)
3148 }
3149 }
3150 #[inline]
3151 pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 {
3152 unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) }
3153 }
3154 #[inline]
3155 pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) {
3156 unsafe {
3157 let val: u32 = ::core::mem::transmute(val);
3158 <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64)
3159 }
3160 }
3161 #[inline]
3162 pub fn del_async(&self) -> __u32 {
3163 unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
3164 }
3165 #[inline]
3166 pub fn set_del_async(&mut self, val: __u32) {
3167 unsafe {
3168 let val: u32 = ::core::mem::transmute(val);
3169 self._bitfield_1.set(2usize, 1u8, val as u64)
3170 }
3171 }
3172 #[inline]
3173 pub unsafe fn del_async_raw(this: *const Self) -> __u32 {
3174 unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u32) }
3175 }
3176 #[inline]
3177 pub unsafe fn set_del_async_raw(this: *mut Self, val: __u32) {
3178 unsafe {
3179 let val: u32 = ::core::mem::transmute(val);
3180 <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64)
3181 }
3182 }
3183 #[inline]
3184 pub fn reserved(&self) -> __u32 {
3185 unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 29u8) as u32) }
3186 }
3187 #[inline]
3188 pub fn set_reserved(&mut self, val: __u32) {
3189 unsafe {
3190 let val: u32 = ::core::mem::transmute(val);
3191 self._bitfield_1.set(3usize, 29u8, val as u64)
3192 }
3193 }
3194 #[inline]
3195 pub unsafe fn reserved_raw(this: *const Self) -> __u32 {
3196 unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 29u8) as u32) }
3197 }
3198 #[inline]
3199 pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) {
3200 unsafe {
3201 let val: u32 = ::core::mem::transmute(val);
3202 <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 29u8, val as u64)
3203 }
3204 }
3205 #[inline]
3206 pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, del_async: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> {
3207 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
3208 __bindgen_bitfield_unit.set(0usize, 1u8, {
3209 let set_current: u32 = unsafe { ::core::mem::transmute(set_current) };
3210 set_current as u64
3211 });
3212 __bindgen_bitfield_unit.set(1usize, 1u8, {
3213 let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) };
3214 set_rnext as u64
3215 });
3216 __bindgen_bitfield_unit.set(2usize, 1u8, {
3217 let del_async: u32 = unsafe { ::core::mem::transmute(del_async) };
3218 del_async as u64
3219 });
3220 __bindgen_bitfield_unit.set(3usize, 29u8, {
3221 let reserved: u32 = unsafe { ::core::mem::transmute(reserved) };
3222 reserved as u64
3223 });
3224 __bindgen_bitfield_unit
3225 }
3226 }
3227 impl tcp_ao_info_opt {
3228 #[inline]
3229 pub fn set_current(&self) -> __u32 {
3230 unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
3231 }
3232 #[inline]
3233 pub fn set_set_current(&mut self, val: __u32) {
3234 unsafe {
3235 let val: u32 = ::core::mem::transmute(val);
3236 self._bitfield_1.set(0usize, 1u8, val as u64)
3237 }
3238 }
3239 #[inline]
3240 pub unsafe fn set_current_raw(this: *const Self) -> __u32 {
3241 unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) }
3242 }
3243 #[inline]
3244 pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) {
3245 unsafe {
3246 let val: u32 = ::core::mem::transmute(val);
3247 <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64)
3248 }
3249 }
3250 #[inline]
3251 pub fn set_rnext(&self) -> __u32 {
3252 unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
3253 }
3254 #[inline]
3255 pub fn set_set_rnext(&mut self, val: __u32) {
3256 unsafe {
3257 let val: u32 = ::core::mem::transmute(val);
3258 self._bitfield_1.set(1usize, 1u8, val as u64)
3259 }
3260 }
3261 #[inline]
3262 pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 {
3263 unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) }
3264 }
3265 #[inline]
3266 pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) {
3267 unsafe {
3268 let val: u32 = ::core::mem::transmute(val);
3269 <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64)
3270 }
3271 }
3272 #[inline]
3273 pub fn ao_required(&self) -> __u32 {
3274 unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
3275 }
3276 #[inline]
3277 pub fn set_ao_required(&mut self, val: __u32) {
3278 unsafe {
3279 let val: u32 = ::core::mem::transmute(val);
3280 self._bitfield_1.set(2usize, 1u8, val as u64)
3281 }
3282 }
3283 #[inline]
3284 pub unsafe fn ao_required_raw(this: *const Self) -> __u32 {
3285 unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u32) }
3286 }
3287 #[inline]
3288 pub unsafe fn set_ao_required_raw(this: *mut Self, val: __u32) {
3289 unsafe {
3290 let val: u32 = ::core::mem::transmute(val);
3291 <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64)
3292 }
3293 }
3294 #[inline]
3295 pub fn set_counters(&self) -> __u32 {
3296 unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
3297 }
3298 #[inline]
3299 pub fn set_set_counters(&mut self, val: __u32) {
3300 unsafe {
3301 let val: u32 = ::core::mem::transmute(val);
3302 self._bitfield_1.set(3usize, 1u8, val as u64)
3303 }
3304 }
3305 #[inline]
3306 pub unsafe fn set_counters_raw(this: *const Self) -> __u32 {
3307 unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 1u8) as u32) }
3308 }
3309 #[inline]
3310 pub unsafe fn set_set_counters_raw(this: *mut Self, val: __u32) {
3311 unsafe {
3312 let val: u32 = ::core::mem::transmute(val);
3313 <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 1u8, val as u64)
3314 }
3315 }
3316 #[inline]
3317 pub fn accept_icmps(&self) -> __u32 {
3318 unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) }
3319 }
3320 #[inline]
3321 pub fn set_accept_icmps(&mut self, val: __u32) {
3322 unsafe {
3323 let val: u32 = ::core::mem::transmute(val);
3324 self._bitfield_1.set(4usize, 1u8, val as u64)
3325 }
3326 }
3327 #[inline]
3328 pub unsafe fn accept_icmps_raw(this: *const Self) -> __u32 {
3329 unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 1u8) as u32) }
3330 }
3331 #[inline]
3332 pub unsafe fn set_accept_icmps_raw(this: *mut Self, val: __u32) {
3333 unsafe {
3334 let val: u32 = ::core::mem::transmute(val);
3335 <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 1u8, val as u64)
3336 }
3337 }
3338 #[inline]
3339 pub fn reserved(&self) -> __u32 {
3340 unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 27u8) as u32) }
3341 }
3342 #[inline]
3343 pub fn set_reserved(&mut self, val: __u32) {
3344 unsafe {
3345 let val: u32 = ::core::mem::transmute(val);
3346 self._bitfield_1.set(5usize, 27u8, val as u64)
3347 }
3348 }
3349 #[inline]
3350 pub unsafe fn reserved_raw(this: *const Self) -> __u32 {
3351 unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 5usize, 27u8) as u32) }
3352 }
3353 #[inline]
3354 pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) {
3355 unsafe {
3356 let val: u32 = ::core::mem::transmute(val);
3357 <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 5usize, 27u8, val as u64)
3358 }
3359 }
3360 #[inline]
3361 pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, ao_required: __u32, set_counters: __u32, accept_icmps: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> {
3362 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
3363 __bindgen_bitfield_unit.set(0usize, 1u8, {
3364 let set_current: u32 = unsafe { ::core::mem::transmute(set_current) };
3365 set_current as u64
3366 });
3367 __bindgen_bitfield_unit.set(1usize, 1u8, {
3368 let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) };
3369 set_rnext as u64
3370 });
3371 __bindgen_bitfield_unit.set(2usize, 1u8, {
3372 let ao_required: u32 = unsafe { ::core::mem::transmute(ao_required) };
3373 ao_required as u64
3374 });
3375 __bindgen_bitfield_unit.set(3usize, 1u8, {
3376 let set_counters: u32 = unsafe { ::core::mem::transmute(set_counters) };
3377 set_counters as u64
3378 });
3379 __bindgen_bitfield_unit.set(4usize, 1u8, {
3380 let accept_icmps: u32 = unsafe { ::core::mem::transmute(accept_icmps) };
3381 accept_icmps as u64
3382 });
3383 __bindgen_bitfield_unit.set(5usize, 27u8, {
3384 let reserved: u32 = unsafe { ::core::mem::transmute(reserved) };
3385 reserved as u64
3386 });
3387 __bindgen_bitfield_unit
3388 }
3389 }
3390 impl tcp_ao_getsockopt {
3391 #[inline]
3392 pub fn is_current(&self) -> __u16 {
3393 unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) }
3394 }
3395 #[inline]
3396 pub fn set_is_current(&mut self, val: __u16) {
3397 unsafe {
3398 let val: u16 = ::core::mem::transmute(val);
3399 self._bitfield_1.set(0usize, 1u8, val as u64)
3400 }
3401 }
3402 #[inline]
3403 pub unsafe fn is_current_raw(this: *const Self) -> __u16 {
3404 unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u16) }
3405 }
3406 #[inline]
3407 pub unsafe fn set_is_current_raw(this: *mut Self, val: __u16) {
3408 unsafe {
3409 let val: u16 = ::core::mem::transmute(val);
3410 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64)
3411 }
3412 }
3413 #[inline]
3414 pub fn is_rnext(&self) -> __u16 {
3415 unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u16) }
3416 }
3417 #[inline]
3418 pub fn set_is_rnext(&mut self, val: __u16) {
3419 unsafe {
3420 let val: u16 = ::core::mem::transmute(val);
3421 self._bitfield_1.set(1usize, 1u8, val as u64)
3422 }
3423 }
3424 #[inline]
3425 pub unsafe fn is_rnext_raw(this: *const Self) -> __u16 {
3426 unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u16) }
3427 }
3428 #[inline]
3429 pub unsafe fn set_is_rnext_raw(this: *mut Self, val: __u16) {
3430 unsafe {
3431 let val: u16 = ::core::mem::transmute(val);
3432 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64)
3433 }
3434 }
3435 #[inline]
3436 pub fn get_all(&self) -> __u16 {
3437 unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u16) }
3438 }
3439 #[inline]
3440 pub fn set_get_all(&mut self, val: __u16) {
3441 unsafe {
3442 let val: u16 = ::core::mem::transmute(val);
3443 self._bitfield_1.set(2usize, 1u8, val as u64)
3444 }
3445 }
3446 #[inline]
3447 pub unsafe fn get_all_raw(this: *const Self) -> __u16 {
3448 unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u16) }
3449 }
3450 #[inline]
3451 pub unsafe fn set_get_all_raw(this: *mut Self, val: __u16) {
3452 unsafe {
3453 let val: u16 = ::core::mem::transmute(val);
3454 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64)
3455 }
3456 }
3457 #[inline]
3458 pub fn reserved(&self) -> __u16 {
3459 unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 13u8) as u16) }
3460 }
3461 #[inline]
3462 pub fn set_reserved(&mut self, val: __u16) {
3463 unsafe {
3464 let val: u16 = ::core::mem::transmute(val);
3465 self._bitfield_1.set(3usize, 13u8, val as u64)
3466 }
3467 }
3468 #[inline]
3469 pub unsafe fn reserved_raw(this: *const Self) -> __u16 {
3470 unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 13u8) as u16) }
3471 }
3472 #[inline]
3473 pub unsafe fn set_reserved_raw(this: *mut Self, val: __u16) {
3474 unsafe {
3475 let val: u16 = ::core::mem::transmute(val);
3476 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 13u8, val as u64)
3477 }
3478 }
3479 #[inline]
3480 pub fn new_bitfield_1(is_current: __u16, is_rnext: __u16, get_all: __u16, reserved: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> {
3481 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default();
3482 __bindgen_bitfield_unit.set(0usize, 1u8, {
3483 let is_current: u16 = unsafe { ::core::mem::transmute(is_current) };
3484 is_current as u64
3485 });
3486 __bindgen_bitfield_unit.set(1usize, 1u8, {
3487 let is_rnext: u16 = unsafe { ::core::mem::transmute(is_rnext) };
3488 is_rnext as u64
3489 });
3490 __bindgen_bitfield_unit.set(2usize, 1u8, {
3491 let get_all: u16 = unsafe { ::core::mem::transmute(get_all) };
3492 get_all as u64
3493 });
3494 __bindgen_bitfield_unit.set(3usize, 13u8, {
3495 let reserved: u16 = unsafe { ::core::mem::transmute(reserved) };
3496 reserved as u64
3497 });
3498 __bindgen_bitfield_unit
3499 }
3500 }
3501 impl nf_inet_hooks {
3502 pub const NF_INET_INGRESS: nf_inet_hooks = nf_inet_hooks::NF_INET_NUMHOOKS;
3503 }
3504 impl nf_ip_hook_priorities {
3505 pub const NF_IP_PRI_LAST: nf_ip_hook_priorities = nf_ip_hook_priorities::NF_IP_PRI_CONNTRACK_CONFIRM;
3506 }
3507 impl hwtstamp_flags {
3508 pub const HWTSTAMP_FLAG_LAST: hwtstamp_flags = hwtstamp_flags::HWTSTAMP_FLAG_BONDED_PHC_INDEX;
3509 }
3510 impl hwtstamp_flags {
3511 pub const HWTSTAMP_FLAG_MASK: hwtstamp_flags = hwtstamp_flags::HWTSTAMP_FLAG_BONDED_PHC_INDEX;
3512 }
3513 impl txtime_flags {
3514 pub const SOF_TXTIME_FLAGS_LAST: txtime_flags = txtime_flags::SOF_TXTIME_REPORT_ERRORS;
3515 }