Debian Codegraph @

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