Debian Codegraph @

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