Debian Codegraph @

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