linux_raw_sys/x86_64/
net.rs

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