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 linger {
808pub l_onoff: crate::ctypes::c_int,
809pub l_linger: crate::ctypes::c_int,
810}
811#[repr(C)]
812#[derive(Debug, Copy, Clone)]
813pub struct msghdr {
814pub msg_name: *mut crate::ctypes::c_void,
815pub msg_namelen: crate::ctypes::c_int,
816pub msg_iov: *mut iovec,
817pub msg_iovlen: usize,
818pub msg_control: *mut crate::ctypes::c_void,
819pub msg_controllen: usize,
820pub msg_flags: crate::ctypes::c_uint,
821}
822#[repr(C)]
823#[derive(Debug, Copy, Clone)]
824pub struct cmsghdr {
825pub cmsg_len: usize,
826pub cmsg_level: crate::ctypes::c_int,
827pub cmsg_type: crate::ctypes::c_int,
828}
829#[repr(C)]
830#[derive(Debug, Copy, Clone)]
831pub struct ucred {
832pub pid: __u32,
833pub uid: __u32,
834pub gid: __u32,
835}
836#[repr(C)]
837#[derive(Debug, Copy, Clone)]
838pub struct mmsghdr {
839pub msg_hdr: msghdr,
840pub msg_len: crate::ctypes::c_uint,
841}
842#[repr(C)]
843#[derive(Debug, Copy, Clone)]
844pub struct xt_match {
845pub _address: u8,
846}
847#[repr(C)]
848#[derive(Debug, Copy, Clone)]
849pub struct xt_target {
850pub _address: u8,
851}
852#[repr(C)]
853#[derive(Debug, Copy, Clone)]
854pub struct iovec {
855pub _address: u8,
856}
857pub const __BITS_PER_LONG_LONG: u32 = 64;
858pub const _K_SS_MAXSIZE: u32 = 128;
859pub const SOCK_SNDBUF_LOCK: u32 = 1;
860pub const SOCK_RCVBUF_LOCK: u32 = 2;
861pub const SOCK_BUF_LOCK_MASK: u32 = 3;
862pub const SOCK_TXREHASH_DEFAULT: u32 = 255;
863pub const SOCK_TXREHASH_DISABLED: u32 = 0;
864pub const SOCK_TXREHASH_ENABLED: u32 = 1;
865pub const IP_TOS: u32 = 1;
866pub const IP_TTL: u32 = 2;
867pub const IP_HDRINCL: u32 = 3;
868pub const IP_OPTIONS: u32 = 4;
869pub const IP_ROUTER_ALERT: u32 = 5;
870pub const IP_RECVOPTS: u32 = 6;
871pub const IP_RETOPTS: u32 = 7;
872pub const IP_PKTINFO: u32 = 8;
873pub const IP_PKTOPTIONS: u32 = 9;
874pub const IP_MTU_DISCOVER: u32 = 10;
875pub const IP_RECVERR: u32 = 11;
876pub const IP_RECVTTL: u32 = 12;
877pub const IP_RECVTOS: u32 = 13;
878pub const IP_MTU: u32 = 14;
879pub const IP_FREEBIND: u32 = 15;
880pub const IP_IPSEC_POLICY: u32 = 16;
881pub const IP_XFRM_POLICY: u32 = 17;
882pub const IP_PASSSEC: u32 = 18;
883pub const IP_TRANSPARENT: u32 = 19;
884pub const IP_RECVRETOPTS: u32 = 7;
885pub const IP_ORIGDSTADDR: u32 = 20;
886pub const IP_RECVORIGDSTADDR: u32 = 20;
887pub const IP_MINTTL: u32 = 21;
888pub const IP_NODEFRAG: u32 = 22;
889pub const IP_CHECKSUM: u32 = 23;
890pub const IP_BIND_ADDRESS_NO_PORT: u32 = 24;
891pub const IP_RECVFRAGSIZE: u32 = 25;
892pub const IP_RECVERR_RFC4884: u32 = 26;
893pub const IP_PMTUDISC_DONT: u32 = 0;
894pub const IP_PMTUDISC_WANT: u32 = 1;
895pub const IP_PMTUDISC_DO: u32 = 2;
896pub const IP_PMTUDISC_PROBE: u32 = 3;
897pub const IP_PMTUDISC_INTERFACE: u32 = 4;
898pub const IP_PMTUDISC_OMIT: u32 = 5;
899pub const IP_MULTICAST_IF: u32 = 32;
900pub const IP_MULTICAST_TTL: u32 = 33;
901pub const IP_MULTICAST_LOOP: u32 = 34;
902pub const IP_ADD_MEMBERSHIP: u32 = 35;
903pub const IP_DROP_MEMBERSHIP: u32 = 36;
904pub const IP_UNBLOCK_SOURCE: u32 = 37;
905pub const IP_BLOCK_SOURCE: u32 = 38;
906pub const IP_ADD_SOURCE_MEMBERSHIP: u32 = 39;
907pub const IP_DROP_SOURCE_MEMBERSHIP: u32 = 40;
908pub const IP_MSFILTER: u32 = 41;
909pub const MCAST_JOIN_GROUP: u32 = 42;
910pub const MCAST_BLOCK_SOURCE: u32 = 43;
911pub const MCAST_UNBLOCK_SOURCE: u32 = 44;
912pub const MCAST_LEAVE_GROUP: u32 = 45;
913pub const MCAST_JOIN_SOURCE_GROUP: u32 = 46;
914pub const MCAST_LEAVE_SOURCE_GROUP: u32 = 47;
915pub const MCAST_MSFILTER: u32 = 48;
916pub const IP_MULTICAST_ALL: u32 = 49;
917pub const IP_UNICAST_IF: u32 = 50;
918pub const IP_LOCAL_PORT_RANGE: u32 = 51;
919pub const IP_PROTOCOL: u32 = 52;
920pub const MCAST_EXCLUDE: u32 = 0;
921pub const MCAST_INCLUDE: u32 = 1;
922pub const IP_DEFAULT_MULTICAST_TTL: u32 = 1;
923pub const IP_DEFAULT_MULTICAST_LOOP: u32 = 1;
924pub const __SOCK_SIZE__: u32 = 16;
925pub const IN_CLASSA_NET: u32 = 4278190080;
926pub const IN_CLASSA_NSHIFT: u32 = 24;
927pub const IN_CLASSA_HOST: u32 = 16777215;
928pub const IN_CLASSA_MAX: u32 = 128;
929pub const IN_CLASSB_NET: u32 = 4294901760;
930pub const IN_CLASSB_NSHIFT: u32 = 16;
931pub const IN_CLASSB_HOST: u32 = 65535;
932pub const IN_CLASSB_MAX: u32 = 65536;
933pub const IN_CLASSC_NET: u32 = 4294967040;
934pub const IN_CLASSC_NSHIFT: u32 = 8;
935pub const IN_CLASSC_HOST: u32 = 255;
936pub const IN_MULTICAST_NET: u32 = 3758096384;
937pub const IN_CLASSE_NET: u32 = 4294967295;
938pub const IN_CLASSE_NSHIFT: u32 = 0;
939pub const IN_LOOPBACKNET: u32 = 127;
940pub const INADDR_LOOPBACK: u32 = 2130706433;
941pub const INADDR_UNSPEC_GROUP: u32 = 3758096384;
942pub const INADDR_ALLHOSTS_GROUP: u32 = 3758096385;
943pub const INADDR_ALLRTRS_GROUP: u32 = 3758096386;
944pub const INADDR_ALLSNOOPERS_GROUP: u32 = 3758096490;
945pub const INADDR_MAX_LOCAL_GROUP: u32 = 3758096639;
946pub const __LITTLE_ENDIAN: u32 = 1234;
947pub const IPTOS_TOS_MASK: u32 = 30;
948pub const IPTOS_LOWDELAY: u32 = 16;
949pub const IPTOS_THROUGHPUT: u32 = 8;
950pub const IPTOS_RELIABILITY: u32 = 4;
951pub const IPTOS_MINCOST: u32 = 2;
952pub const IPTOS_PREC_MASK: u32 = 224;
953pub const IPTOS_PREC_NETCONTROL: u32 = 224;
954pub const IPTOS_PREC_INTERNETCONTROL: u32 = 192;
955pub const IPTOS_PREC_CRITIC_ECP: u32 = 160;
956pub const IPTOS_PREC_FLASHOVERRIDE: u32 = 128;
957pub const IPTOS_PREC_FLASH: u32 = 96;
958pub const IPTOS_PREC_IMMEDIATE: u32 = 64;
959pub const IPTOS_PREC_PRIORITY: u32 = 32;
960pub const IPTOS_PREC_ROUTINE: u32 = 0;
961pub const IPOPT_COPY: u32 = 128;
962pub const IPOPT_CLASS_MASK: u32 = 96;
963pub const IPOPT_NUMBER_MASK: u32 = 31;
964pub const IPOPT_CONTROL: u32 = 0;
965pub const IPOPT_RESERVED1: u32 = 32;
966pub const IPOPT_MEASUREMENT: u32 = 64;
967pub const IPOPT_RESERVED2: u32 = 96;
968pub const IPOPT_END: u32 = 0;
969pub const IPOPT_NOOP: u32 = 1;
970pub const IPOPT_SEC: u32 = 130;
971pub const IPOPT_LSRR: u32 = 131;
972pub const IPOPT_TIMESTAMP: u32 = 68;
973pub const IPOPT_CIPSO: u32 = 134;
974pub const IPOPT_RR: u32 = 7;
975pub const IPOPT_SID: u32 = 136;
976pub const IPOPT_SSRR: u32 = 137;
977pub const IPOPT_RA: u32 = 148;
978pub const IPVERSION: u32 = 4;
979pub const MAXTTL: u32 = 255;
980pub const IPDEFTTL: u32 = 64;
981pub const IPOPT_OPTVAL: u32 = 0;
982pub const IPOPT_OLEN: u32 = 1;
983pub const IPOPT_OFFSET: u32 = 2;
984pub const IPOPT_MINOFF: u32 = 4;
985pub const MAX_IPOPTLEN: u32 = 40;
986pub const IPOPT_NOP: u32 = 1;
987pub const IPOPT_EOL: u32 = 0;
988pub const IPOPT_TS: u32 = 68;
989pub const IPOPT_TS_TSONLY: u32 = 0;
990pub const IPOPT_TS_TSANDADDR: u32 = 1;
991pub const IPOPT_TS_PRESPEC: u32 = 3;
992pub const IPV4_BEET_PHMAXLEN: u32 = 8;
993pub const IPV6_FL_A_GET: u32 = 0;
994pub const IPV6_FL_A_PUT: u32 = 1;
995pub const IPV6_FL_A_RENEW: u32 = 2;
996pub const IPV6_FL_F_CREATE: u32 = 1;
997pub const IPV6_FL_F_EXCL: u32 = 2;
998pub const IPV6_FL_F_REFLECT: u32 = 4;
999pub const IPV6_FL_F_REMOTE: u32 = 8;
1000pub const IPV6_FL_S_NONE: u32 = 0;
1001pub const IPV6_FL_S_EXCL: u32 = 1;
1002pub const IPV6_FL_S_PROCESS: u32 = 2;
1003pub const IPV6_FL_S_USER: u32 = 3;
1004pub const IPV6_FL_S_ANY: u32 = 255;
1005pub const IPV6_FLOWINFO_FLOWLABEL: u32 = 1048575;
1006pub const IPV6_FLOWINFO_PRIORITY: u32 = 267386880;
1007pub const IPV6_PRIORITY_UNCHARACTERIZED: u32 = 0;
1008pub const IPV6_PRIORITY_FILLER: u32 = 256;
1009pub const IPV6_PRIORITY_UNATTENDED: u32 = 512;
1010pub const IPV6_PRIORITY_RESERVED1: u32 = 768;
1011pub const IPV6_PRIORITY_BULK: u32 = 1024;
1012pub const IPV6_PRIORITY_RESERVED2: u32 = 1280;
1013pub const IPV6_PRIORITY_INTERACTIVE: u32 = 1536;
1014pub const IPV6_PRIORITY_CONTROL: u32 = 1792;
1015pub const IPV6_PRIORITY_8: u32 = 2048;
1016pub const IPV6_PRIORITY_9: u32 = 2304;
1017pub const IPV6_PRIORITY_10: u32 = 2560;
1018pub const IPV6_PRIORITY_11: u32 = 2816;
1019pub const IPV6_PRIORITY_12: u32 = 3072;
1020pub const IPV6_PRIORITY_13: u32 = 3328;
1021pub const IPV6_PRIORITY_14: u32 = 3584;
1022pub const IPV6_PRIORITY_15: u32 = 3840;
1023pub const IPPROTO_HOPOPTS: u32 = 0;
1024pub const IPPROTO_ROUTING: u32 = 43;
1025pub const IPPROTO_FRAGMENT: u32 = 44;
1026pub const IPPROTO_ICMPV6: u32 = 58;
1027pub const IPPROTO_NONE: u32 = 59;
1028pub const IPPROTO_DSTOPTS: u32 = 60;
1029pub const IPPROTO_MH: u32 = 135;
1030pub const IPV6_TLV_PAD1: u32 = 0;
1031pub const IPV6_TLV_PADN: u32 = 1;
1032pub const IPV6_TLV_ROUTERALERT: u32 = 5;
1033pub const IPV6_TLV_CALIPSO: u32 = 7;
1034pub const IPV6_TLV_IOAM: u32 = 49;
1035pub const IPV6_TLV_JUMBO: u32 = 194;
1036pub const IPV6_TLV_HAO: u32 = 201;
1037pub const IPV6_ADDRFORM: u32 = 1;
1038pub const IPV6_2292PKTINFO: u32 = 2;
1039pub const IPV6_2292HOPOPTS: u32 = 3;
1040pub const IPV6_2292DSTOPTS: u32 = 4;
1041pub const IPV6_2292RTHDR: u32 = 5;
1042pub const IPV6_2292PKTOPTIONS: u32 = 6;
1043pub const IPV6_CHECKSUM: u32 = 7;
1044pub const IPV6_2292HOPLIMIT: u32 = 8;
1045pub const IPV6_NEXTHOP: u32 = 9;
1046pub const IPV6_AUTHHDR: u32 = 10;
1047pub const IPV6_FLOWINFO: u32 = 11;
1048pub const IPV6_UNICAST_HOPS: u32 = 16;
1049pub const IPV6_MULTICAST_IF: u32 = 17;
1050pub const IPV6_MULTICAST_HOPS: u32 = 18;
1051pub const IPV6_MULTICAST_LOOP: u32 = 19;
1052pub const IPV6_ADD_MEMBERSHIP: u32 = 20;
1053pub const IPV6_DROP_MEMBERSHIP: u32 = 21;
1054pub const IPV6_ROUTER_ALERT: u32 = 22;
1055pub const IPV6_MTU_DISCOVER: u32 = 23;
1056pub const IPV6_MTU: u32 = 24;
1057pub const IPV6_RECVERR: u32 = 25;
1058pub const IPV6_V6ONLY: u32 = 26;
1059pub const IPV6_JOIN_ANYCAST: u32 = 27;
1060pub const IPV6_LEAVE_ANYCAST: u32 = 28;
1061pub const IPV6_MULTICAST_ALL: u32 = 29;
1062pub const IPV6_ROUTER_ALERT_ISOLATE: u32 = 30;
1063pub const IPV6_RECVERR_RFC4884: u32 = 31;
1064pub const IPV6_PMTUDISC_DONT: u32 = 0;
1065pub const IPV6_PMTUDISC_WANT: u32 = 1;
1066pub const IPV6_PMTUDISC_DO: u32 = 2;
1067pub const IPV6_PMTUDISC_PROBE: u32 = 3;
1068pub const IPV6_PMTUDISC_INTERFACE: u32 = 4;
1069pub const IPV6_PMTUDISC_OMIT: u32 = 5;
1070pub const IPV6_FLOWLABEL_MGR: u32 = 32;
1071pub const IPV6_FLOWINFO_SEND: u32 = 33;
1072pub const IPV6_IPSEC_POLICY: u32 = 34;
1073pub const IPV6_XFRM_POLICY: u32 = 35;
1074pub const IPV6_HDRINCL: u32 = 36;
1075pub const IPV6_RECVPKTINFO: u32 = 49;
1076pub const IPV6_PKTINFO: u32 = 50;
1077pub const IPV6_RECVHOPLIMIT: u32 = 51;
1078pub const IPV6_HOPLIMIT: u32 = 52;
1079pub const IPV6_RECVHOPOPTS: u32 = 53;
1080pub const IPV6_HOPOPTS: u32 = 54;
1081pub const IPV6_RTHDRDSTOPTS: u32 = 55;
1082pub const IPV6_RECVRTHDR: u32 = 56;
1083pub const IPV6_RTHDR: u32 = 57;
1084pub const IPV6_RECVDSTOPTS: u32 = 58;
1085pub const IPV6_DSTOPTS: u32 = 59;
1086pub const IPV6_RECVPATHMTU: u32 = 60;
1087pub const IPV6_PATHMTU: u32 = 61;
1088pub const IPV6_DONTFRAG: u32 = 62;
1089pub const IPV6_RECVTCLASS: u32 = 66;
1090pub const IPV6_TCLASS: u32 = 67;
1091pub const IPV6_AUTOFLOWLABEL: u32 = 70;
1092pub const IPV6_ADDR_PREFERENCES: u32 = 72;
1093pub const IPV6_PREFER_SRC_TMP: u32 = 1;
1094pub const IPV6_PREFER_SRC_PUBLIC: u32 = 2;
1095pub const IPV6_PREFER_SRC_PUBTMP_DEFAULT: u32 = 256;
1096pub const IPV6_PREFER_SRC_COA: u32 = 4;
1097pub const IPV6_PREFER_SRC_HOME: u32 = 1024;
1098pub const IPV6_PREFER_SRC_CGA: u32 = 8;
1099pub const IPV6_PREFER_SRC_NONCGA: u32 = 2048;
1100pub const IPV6_MINHOPCOUNT: u32 = 73;
1101pub const IPV6_ORIGDSTADDR: u32 = 74;
1102pub const IPV6_RECVORIGDSTADDR: u32 = 74;
1103pub const IPV6_TRANSPARENT: u32 = 75;
1104pub const IPV6_UNICAST_IF: u32 = 76;
1105pub const IPV6_RECVFRAGSIZE: u32 = 77;
1106pub const IPV6_FREEBIND: u32 = 78;
1107pub const IPV6_MIN_MTU: u32 = 1280;
1108pub const IPV6_SRCRT_STRICT: u32 = 1;
1109pub const IPV6_SRCRT_TYPE_0: u32 = 0;
1110pub const IPV6_SRCRT_TYPE_2: u32 = 2;
1111pub const IPV6_SRCRT_TYPE_3: u32 = 3;
1112pub const IPV6_SRCRT_TYPE_4: u32 = 4;
1113pub const IPV6_OPT_ROUTERALERT_MLD: u32 = 0;
1114pub const SIOCGSTAMP_OLD: u32 = 35078;
1115pub const SIOCGSTAMPNS_OLD: u32 = 35079;
1116pub const SOL_SOCKET: u32 = 1;
1117pub const SO_DEBUG: u32 = 1;
1118pub const SO_REUSEADDR: u32 = 2;
1119pub const SO_TYPE: u32 = 3;
1120pub const SO_ERROR: u32 = 4;
1121pub const SO_DONTROUTE: u32 = 5;
1122pub const SO_BROADCAST: u32 = 6;
1123pub const SO_SNDBUF: u32 = 7;
1124pub const SO_RCVBUF: u32 = 8;
1125pub const SO_SNDBUFFORCE: u32 = 32;
1126pub const SO_RCVBUFFORCE: u32 = 33;
1127pub const SO_KEEPALIVE: u32 = 9;
1128pub const SO_OOBINLINE: u32 = 10;
1129pub const SO_NO_CHECK: u32 = 11;
1130pub const SO_PRIORITY: u32 = 12;
1131pub const SO_LINGER: u32 = 13;
1132pub const SO_BSDCOMPAT: u32 = 14;
1133pub const SO_REUSEPORT: u32 = 15;
1134pub const SO_PASSCRED: u32 = 16;
1135pub const SO_PEERCRED: u32 = 17;
1136pub const SO_RCVLOWAT: u32 = 18;
1137pub const SO_SNDLOWAT: u32 = 19;
1138pub const SO_RCVTIMEO_OLD: u32 = 20;
1139pub const SO_SNDTIMEO_OLD: u32 = 21;
1140pub const SO_SECURITY_AUTHENTICATION: u32 = 22;
1141pub const SO_SECURITY_ENCRYPTION_TRANSPORT: u32 = 23;
1142pub const SO_SECURITY_ENCRYPTION_NETWORK: u32 = 24;
1143pub const SO_BINDTODEVICE: u32 = 25;
1144pub const SO_ATTACH_FILTER: u32 = 26;
1145pub const SO_DETACH_FILTER: u32 = 27;
1146pub const SO_GET_FILTER: u32 = 26;
1147pub const SO_PEERNAME: u32 = 28;
1148pub const SO_ACCEPTCONN: u32 = 30;
1149pub const SO_PEERSEC: u32 = 31;
1150pub const SO_PASSSEC: u32 = 34;
1151pub const SO_MARK: u32 = 36;
1152pub const SO_PROTOCOL: u32 = 38;
1153pub const SO_DOMAIN: u32 = 39;
1154pub const SO_RXQ_OVFL: u32 = 40;
1155pub const SO_WIFI_STATUS: u32 = 41;
1156pub const SCM_WIFI_STATUS: u32 = 41;
1157pub const SO_PEEK_OFF: u32 = 42;
1158pub const SO_NOFCS: u32 = 43;
1159pub const SO_LOCK_FILTER: u32 = 44;
1160pub const SO_SELECT_ERR_QUEUE: u32 = 45;
1161pub const SO_BUSY_POLL: u32 = 46;
1162pub const SO_MAX_PACING_RATE: u32 = 47;
1163pub const SO_BPF_EXTENSIONS: u32 = 48;
1164pub const SO_INCOMING_CPU: u32 = 49;
1165pub const SO_ATTACH_BPF: u32 = 50;
1166pub const SO_DETACH_BPF: u32 = 27;
1167pub const SO_ATTACH_REUSEPORT_CBPF: u32 = 51;
1168pub const SO_ATTACH_REUSEPORT_EBPF: u32 = 52;
1169pub const SO_CNX_ADVICE: u32 = 53;
1170pub const SCM_TIMESTAMPING_OPT_STATS: u32 = 54;
1171pub const SO_MEMINFO: u32 = 55;
1172pub const SO_INCOMING_NAPI_ID: u32 = 56;
1173pub const SO_COOKIE: u32 = 57;
1174pub const SCM_TIMESTAMPING_PKTINFO: u32 = 58;
1175pub const SO_PEERGROUPS: u32 = 59;
1176pub const SO_ZEROCOPY: u32 = 60;
1177pub const SO_TXTIME: u32 = 61;
1178pub const SCM_TXTIME: u32 = 61;
1179pub const SO_BINDTOIFINDEX: u32 = 62;
1180pub const SO_TIMESTAMP_OLD: u32 = 29;
1181pub const SO_TIMESTAMPNS_OLD: u32 = 35;
1182pub const SO_TIMESTAMPING_OLD: u32 = 37;
1183pub const SO_TIMESTAMP_NEW: u32 = 63;
1184pub const SO_TIMESTAMPNS_NEW: u32 = 64;
1185pub const SO_TIMESTAMPING_NEW: u32 = 65;
1186pub const SO_RCVTIMEO_NEW: u32 = 66;
1187pub const SO_SNDTIMEO_NEW: u32 = 67;
1188pub const SO_DETACH_REUSEPORT_BPF: u32 = 68;
1189pub const SO_PREFER_BUSY_POLL: u32 = 69;
1190pub const SO_BUSY_POLL_BUDGET: u32 = 70;
1191pub const SO_NETNS_COOKIE: u32 = 71;
1192pub const SO_BUF_LOCK: u32 = 72;
1193pub const SO_RESERVE_MEM: u32 = 73;
1194pub const SO_TXREHASH: u32 = 74;
1195pub const SO_RCVMARK: u32 = 75;
1196pub const SO_PASSPIDFD: u32 = 76;
1197pub const SO_PEERPIDFD: u32 = 77;
1198pub const SO_DEVMEM_LINEAR: u32 = 78;
1199pub const SCM_DEVMEM_LINEAR: u32 = 78;
1200pub const SO_DEVMEM_DMABUF: u32 = 79;
1201pub const SCM_DEVMEM_DMABUF: u32 = 79;
1202pub const SO_DEVMEM_DONTNEED: u32 = 80;
1203pub const SCM_TS_OPT_ID: u32 = 81;
1204pub const SO_TIMESTAMP: u32 = 29;
1205pub const SO_TIMESTAMPNS: u32 = 35;
1206pub const SO_TIMESTAMPING: u32 = 37;
1207pub const SO_RCVTIMEO: u32 = 20;
1208pub const SO_SNDTIMEO: u32 = 21;
1209pub const SCM_TIMESTAMP: u32 = 29;
1210pub const SCM_TIMESTAMPNS: u32 = 35;
1211pub const SCM_TIMESTAMPING: u32 = 37;
1212pub const SYS_SOCKET: u32 = 1;
1213pub const SYS_BIND: u32 = 2;
1214pub const SYS_CONNECT: u32 = 3;
1215pub const SYS_LISTEN: u32 = 4;
1216pub const SYS_ACCEPT: u32 = 5;
1217pub const SYS_GETSOCKNAME: u32 = 6;
1218pub const SYS_GETPEERNAME: u32 = 7;
1219pub const SYS_SOCKETPAIR: u32 = 8;
1220pub const SYS_SEND: u32 = 9;
1221pub const SYS_RECV: u32 = 10;
1222pub const SYS_SENDTO: u32 = 11;
1223pub const SYS_RECVFROM: u32 = 12;
1224pub const SYS_SHUTDOWN: u32 = 13;
1225pub const SYS_SETSOCKOPT: u32 = 14;
1226pub const SYS_GETSOCKOPT: u32 = 15;
1227pub const SYS_SENDMSG: u32 = 16;
1228pub const SYS_RECVMSG: u32 = 17;
1229pub const SYS_ACCEPT4: u32 = 18;
1230pub const SYS_RECVMMSG: u32 = 19;
1231pub const SYS_SENDMMSG: u32 = 20;
1232pub const __SO_ACCEPTCON: u32 = 65536;
1233pub const TCP_MSS_DEFAULT: u32 = 536;
1234pub const TCP_MSS_DESIRED: u32 = 1220;
1235pub const TCP_NODELAY: u32 = 1;
1236pub const TCP_MAXSEG: u32 = 2;
1237pub const TCP_CORK: u32 = 3;
1238pub const TCP_KEEPIDLE: u32 = 4;
1239pub const TCP_KEEPINTVL: u32 = 5;
1240pub const TCP_KEEPCNT: u32 = 6;
1241pub const TCP_SYNCNT: u32 = 7;
1242pub const TCP_LINGER2: u32 = 8;
1243pub const TCP_DEFER_ACCEPT: u32 = 9;
1244pub const TCP_WINDOW_CLAMP: u32 = 10;
1245pub const TCP_INFO: u32 = 11;
1246pub const TCP_QUICKACK: u32 = 12;
1247pub const TCP_CONGESTION: u32 = 13;
1248pub const TCP_MD5SIG: u32 = 14;
1249pub const TCP_THIN_LINEAR_TIMEOUTS: u32 = 16;
1250pub const TCP_THIN_DUPACK: u32 = 17;
1251pub const TCP_USER_TIMEOUT: u32 = 18;
1252pub const TCP_REPAIR: u32 = 19;
1253pub const TCP_REPAIR_QUEUE: u32 = 20;
1254pub const TCP_QUEUE_SEQ: u32 = 21;
1255pub const TCP_REPAIR_OPTIONS: u32 = 22;
1256pub const TCP_FASTOPEN: u32 = 23;
1257pub const TCP_TIMESTAMP: u32 = 24;
1258pub const TCP_NOTSENT_LOWAT: u32 = 25;
1259pub const TCP_CC_INFO: u32 = 26;
1260pub const TCP_SAVE_SYN: u32 = 27;
1261pub const TCP_SAVED_SYN: u32 = 28;
1262pub const TCP_REPAIR_WINDOW: u32 = 29;
1263pub const TCP_FASTOPEN_CONNECT: u32 = 30;
1264pub const TCP_ULP: u32 = 31;
1265pub const TCP_MD5SIG_EXT: u32 = 32;
1266pub const TCP_FASTOPEN_KEY: u32 = 33;
1267pub const TCP_FASTOPEN_NO_COOKIE: u32 = 34;
1268pub const TCP_ZEROCOPY_RECEIVE: u32 = 35;
1269pub const TCP_INQ: u32 = 36;
1270pub const TCP_CM_INQ: u32 = 36;
1271pub const TCP_TX_DELAY: u32 = 37;
1272pub const TCP_AO_ADD_KEY: u32 = 38;
1273pub const TCP_AO_DEL_KEY: u32 = 39;
1274pub const TCP_AO_INFO: u32 = 40;
1275pub const TCP_AO_GET_KEYS: u32 = 41;
1276pub const TCP_AO_REPAIR: u32 = 42;
1277pub const TCP_IS_MPTCP: u32 = 43;
1278pub const TCP_REPAIR_ON: u32 = 1;
1279pub const TCP_REPAIR_OFF: u32 = 0;
1280pub const TCP_REPAIR_OFF_NO_WP: i32 = -1;
1281pub const TCPI_OPT_TIMESTAMPS: u32 = 1;
1282pub const TCPI_OPT_SACK: u32 = 2;
1283pub const TCPI_OPT_WSCALE: u32 = 4;
1284pub const TCPI_OPT_ECN: u32 = 8;
1285pub const TCPI_OPT_ECN_SEEN: u32 = 16;
1286pub const TCPI_OPT_SYN_DATA: u32 = 32;
1287pub const TCPI_OPT_USEC_TS: u32 = 64;
1288pub const TCP_MD5SIG_MAXKEYLEN: u32 = 80;
1289pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1;
1290pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2;
1291pub const TCP_AO_MAXKEYLEN: u32 = 80;
1292pub const TCP_AO_KEYF_IFINDEX: u32 = 1;
1293pub const TCP_AO_KEYF_EXCLUDE_OPT: u32 = 2;
1294pub const TCP_RECEIVE_ZEROCOPY_FLAG_TLB_CLEAN_HINT: u32 = 1;
1295pub const UNIX_PATH_MAX: u32 = 108;
1296pub const IFNAMSIZ: u32 = 16;
1297pub const IFALIASZ: u32 = 256;
1298pub const ALTIFNAMSIZ: u32 = 128;
1299pub const GENERIC_HDLC_VERSION: u32 = 4;
1300pub const CLOCK_DEFAULT: u32 = 0;
1301pub const CLOCK_EXT: u32 = 1;
1302pub const CLOCK_INT: u32 = 2;
1303pub const CLOCK_TXINT: u32 = 3;
1304pub const CLOCK_TXFROMRX: u32 = 4;
1305pub const ENCODING_DEFAULT: u32 = 0;
1306pub const ENCODING_NRZ: u32 = 1;
1307pub const ENCODING_NRZI: u32 = 2;
1308pub const ENCODING_FM_MARK: u32 = 3;
1309pub const ENCODING_FM_SPACE: u32 = 4;
1310pub const ENCODING_MANCHESTER: u32 = 5;
1311pub const PARITY_DEFAULT: u32 = 0;
1312pub const PARITY_NONE: u32 = 1;
1313pub const PARITY_CRC16_PR0: u32 = 2;
1314pub const PARITY_CRC16_PR1: u32 = 3;
1315pub const PARITY_CRC16_PR0_CCITT: u32 = 4;
1316pub const PARITY_CRC16_PR1_CCITT: u32 = 5;
1317pub const PARITY_CRC32_PR0_CCITT: u32 = 6;
1318pub const PARITY_CRC32_PR1_CCITT: u32 = 7;
1319pub const LMI_DEFAULT: u32 = 0;
1320pub const LMI_NONE: u32 = 1;
1321pub const LMI_ANSI: u32 = 2;
1322pub const LMI_CCITT: u32 = 3;
1323pub const LMI_CISCO: u32 = 4;
1324pub const IF_GET_IFACE: u32 = 1;
1325pub const IF_GET_PROTO: u32 = 2;
1326pub const IF_IFACE_V35: u32 = 4096;
1327pub const IF_IFACE_V24: u32 = 4097;
1328pub const IF_IFACE_X21: u32 = 4098;
1329pub const IF_IFACE_T1: u32 = 4099;
1330pub const IF_IFACE_E1: u32 = 4100;
1331pub const IF_IFACE_SYNC_SERIAL: u32 = 4101;
1332pub const IF_IFACE_X21D: u32 = 4102;
1333pub const IF_PROTO_HDLC: u32 = 8192;
1334pub const IF_PROTO_PPP: u32 = 8193;
1335pub const IF_PROTO_CISCO: u32 = 8194;
1336pub const IF_PROTO_FR: u32 = 8195;
1337pub const IF_PROTO_FR_ADD_PVC: u32 = 8196;
1338pub const IF_PROTO_FR_DEL_PVC: u32 = 8197;
1339pub const IF_PROTO_X25: u32 = 8198;
1340pub const IF_PROTO_HDLC_ETH: u32 = 8199;
1341pub const IF_PROTO_FR_ADD_ETH_PVC: u32 = 8200;
1342pub const IF_PROTO_FR_DEL_ETH_PVC: u32 = 8201;
1343pub const IF_PROTO_FR_PVC: u32 = 8202;
1344pub const IF_PROTO_FR_ETH_PVC: u32 = 8203;
1345pub const IF_PROTO_RAW: u32 = 8204;
1346pub const IFHWADDRLEN: u32 = 6;
1347pub const NF_DROP: u32 = 0;
1348pub const NF_ACCEPT: u32 = 1;
1349pub const NF_STOLEN: u32 = 2;
1350pub const NF_QUEUE: u32 = 3;
1351pub const NF_REPEAT: u32 = 4;
1352pub const NF_STOP: u32 = 5;
1353pub const NF_MAX_VERDICT: u32 = 5;
1354pub const NF_VERDICT_MASK: u32 = 255;
1355pub const NF_VERDICT_FLAG_QUEUE_BYPASS: u32 = 32768;
1356pub const NF_VERDICT_QMASK: u32 = 4294901760;
1357pub const NF_VERDICT_QBITS: u32 = 16;
1358pub const NF_VERDICT_BITS: u32 = 16;
1359pub const NF_IP6_PRE_ROUTING: u32 = 0;
1360pub const NF_IP6_LOCAL_IN: u32 = 1;
1361pub const NF_IP6_FORWARD: u32 = 2;
1362pub const NF_IP6_LOCAL_OUT: u32 = 3;
1363pub const NF_IP6_POST_ROUTING: u32 = 4;
1364pub const NF_IP6_NUMHOOKS: u32 = 5;
1365pub const XT_FUNCTION_MAXNAMELEN: u32 = 30;
1366pub const XT_EXTENSION_MAXNAMELEN: u32 = 29;
1367pub const XT_TABLE_MAXNAMELEN: u32 = 32;
1368pub const XT_CONTINUE: u32 = 4294967295;
1369pub const XT_RETURN: i32 = -5;
1370pub const XT_STANDARD_TARGET: &[u8; 1] = b"\0";
1371pub const XT_ERROR_TARGET: &[u8; 6] = b"ERROR\0";
1372pub const XT_INV_PROTO: u32 = 64;
1373pub const IP6T_FUNCTION_MAXNAMELEN: u32 = 30;
1374pub const IP6T_TABLE_MAXNAMELEN: u32 = 32;
1375pub const IP6T_CONTINUE: u32 = 4294967295;
1376pub const IP6T_RETURN: i32 = -5;
1377pub const XT_TCP_INV_SRCPT: u32 = 1;
1378pub const XT_TCP_INV_DSTPT: u32 = 2;
1379pub const XT_TCP_INV_FLAGS: u32 = 4;
1380pub const XT_TCP_INV_OPTION: u32 = 8;
1381pub const XT_TCP_INV_MASK: u32 = 15;
1382pub const XT_UDP_INV_SRCPT: u32 = 1;
1383pub const XT_UDP_INV_DSTPT: u32 = 2;
1384pub const XT_UDP_INV_MASK: u32 = 3;
1385pub const IP6T_TCP_INV_SRCPT: u32 = 1;
1386pub const IP6T_TCP_INV_DSTPT: u32 = 2;
1387pub const IP6T_TCP_INV_FLAGS: u32 = 4;
1388pub const IP6T_TCP_INV_OPTION: u32 = 8;
1389pub const IP6T_TCP_INV_MASK: u32 = 15;
1390pub const IP6T_UDP_INV_SRCPT: u32 = 1;
1391pub const IP6T_UDP_INV_DSTPT: u32 = 2;
1392pub const IP6T_UDP_INV_MASK: u32 = 3;
1393pub const IP6T_STANDARD_TARGET: &[u8; 1] = b"\0";
1394pub const IP6T_ERROR_TARGET: &[u8; 6] = b"ERROR\0";
1395pub const IP6T_F_PROTO: u32 = 1;
1396pub const IP6T_F_TOS: u32 = 2;
1397pub const IP6T_F_GOTO: u32 = 4;
1398pub const IP6T_F_MASK: u32 = 7;
1399pub const IP6T_INV_VIA_IN: u32 = 1;
1400pub const IP6T_INV_VIA_OUT: u32 = 2;
1401pub const IP6T_INV_TOS: u32 = 4;
1402pub const IP6T_INV_SRCIP: u32 = 8;
1403pub const IP6T_INV_DSTIP: u32 = 16;
1404pub const IP6T_INV_FRAG: u32 = 32;
1405pub const IP6T_INV_PROTO: u32 = 64;
1406pub const IP6T_INV_MASK: u32 = 127;
1407pub const IP6T_BASE_CTL: u32 = 64;
1408pub const IP6T_SO_SET_REPLACE: u32 = 64;
1409pub const IP6T_SO_SET_ADD_COUNTERS: u32 = 65;
1410pub const IP6T_SO_SET_MAX: u32 = 65;
1411pub const IP6T_SO_GET_INFO: u32 = 64;
1412pub const IP6T_SO_GET_ENTRIES: u32 = 65;
1413pub const IP6T_SO_GET_REVISION_MATCH: u32 = 68;
1414pub const IP6T_SO_GET_REVISION_TARGET: u32 = 69;
1415pub const IP6T_SO_GET_MAX: u32 = 69;
1416pub const IP6T_SO_ORIGINAL_DST: u32 = 80;
1417pub const IP6T_ICMP_INV: u32 = 1;
1418pub const NF_IP_PRE_ROUTING: u32 = 0;
1419pub const NF_IP_LOCAL_IN: u32 = 1;
1420pub const NF_IP_FORWARD: u32 = 2;
1421pub const NF_IP_LOCAL_OUT: u32 = 3;
1422pub const NF_IP_POST_ROUTING: u32 = 4;
1423pub const NF_IP_NUMHOOKS: u32 = 5;
1424pub const SO_ORIGINAL_DST: u32 = 80;
1425pub const SHUT_RD: u32 = 0;
1426pub const SHUT_WR: u32 = 1;
1427pub const SHUT_RDWR: u32 = 2;
1428pub const SOCK_STREAM: u32 = 1;
1429pub const SOCK_DGRAM: u32 = 2;
1430pub const SOCK_RAW: u32 = 3;
1431pub const SOCK_RDM: u32 = 4;
1432pub const SOCK_SEQPACKET: u32 = 5;
1433pub const MSG_DONTWAIT: u32 = 64;
1434pub const AF_UNSPEC: u32 = 0;
1435pub const AF_UNIX: u32 = 1;
1436pub const AF_INET: u32 = 2;
1437pub const AF_AX25: u32 = 3;
1438pub const AF_IPX: u32 = 4;
1439pub const AF_APPLETALK: u32 = 5;
1440pub const AF_NETROM: u32 = 6;
1441pub const AF_BRIDGE: u32 = 7;
1442pub const AF_ATMPVC: u32 = 8;
1443pub const AF_X25: u32 = 9;
1444pub const AF_INET6: u32 = 10;
1445pub const AF_ROSE: u32 = 11;
1446pub const AF_DECnet: u32 = 12;
1447pub const AF_NETBEUI: u32 = 13;
1448pub const AF_SECURITY: u32 = 14;
1449pub const AF_KEY: u32 = 15;
1450pub const AF_NETLINK: u32 = 16;
1451pub const AF_PACKET: u32 = 17;
1452pub const AF_ASH: u32 = 18;
1453pub const AF_ECONET: u32 = 19;
1454pub const AF_ATMSVC: u32 = 20;
1455pub const AF_RDS: u32 = 21;
1456pub const AF_SNA: u32 = 22;
1457pub const AF_IRDA: u32 = 23;
1458pub const AF_PPPOX: u32 = 24;
1459pub const AF_WANPIPE: u32 = 25;
1460pub const AF_LLC: u32 = 26;
1461pub const AF_CAN: u32 = 29;
1462pub const AF_TIPC: u32 = 30;
1463pub const AF_BLUETOOTH: u32 = 31;
1464pub const AF_IUCV: u32 = 32;
1465pub const AF_RXRPC: u32 = 33;
1466pub const AF_ISDN: u32 = 34;
1467pub const AF_PHONET: u32 = 35;
1468pub const AF_IEEE802154: u32 = 36;
1469pub const AF_CAIF: u32 = 37;
1470pub const AF_ALG: u32 = 38;
1471pub const AF_NFC: u32 = 39;
1472pub const AF_VSOCK: u32 = 40;
1473pub const AF_KCM: u32 = 41;
1474pub const AF_QIPCRTR: u32 = 42;
1475pub const AF_SMC: u32 = 43;
1476pub const AF_XDP: u32 = 44;
1477pub const AF_MCTP: u32 = 45;
1478pub const AF_MAX: u32 = 46;
1479pub const MSG_OOB: u32 = 1;
1480pub const MSG_PEEK: u32 = 2;
1481pub const MSG_DONTROUTE: u32 = 4;
1482pub const MSG_CTRUNC: u32 = 8;
1483pub const MSG_PROBE: u32 = 16;
1484pub const MSG_TRUNC: u32 = 32;
1485pub const MSG_EOR: u32 = 128;
1486pub const MSG_WAITALL: u32 = 256;
1487pub const MSG_FIN: u32 = 512;
1488pub const MSG_SYN: u32 = 1024;
1489pub const MSG_CONFIRM: u32 = 2048;
1490pub const MSG_RST: u32 = 4096;
1491pub const MSG_ERRQUEUE: u32 = 8192;
1492pub const MSG_NOSIGNAL: u32 = 16384;
1493pub const MSG_MORE: u32 = 32768;
1494pub const MSG_CMSG_CLOEXEC: u32 = 1073741824;
1495pub const SCM_RIGHTS: u32 = 1;
1496pub const SCM_CREDENTIALS: u32 = 2;
1497pub const SCM_SECURITY: u32 = 3;
1498pub const SOL_IP: u32 = 0;
1499pub const SOL_TCP: u32 = 6;
1500pub const SOL_UDP: u32 = 17;
1501pub const SOL_IPV6: u32 = 41;
1502pub const SOL_ICMPV6: u32 = 58;
1503pub const SOL_SCTP: u32 = 132;
1504pub const SOL_UDPLITE: u32 = 136;
1505pub const SOL_RAW: u32 = 255;
1506pub const SOL_IPX: u32 = 256;
1507pub const SOL_AX25: u32 = 257;
1508pub const SOL_ATALK: u32 = 258;
1509pub const SOL_NETROM: u32 = 259;
1510pub const SOL_ROSE: u32 = 260;
1511pub const SOL_DECNET: u32 = 261;
1512pub const SOL_X25: u32 = 262;
1513pub const SOL_PACKET: u32 = 263;
1514pub const SOL_ATM: u32 = 264;
1515pub const SOL_AAL: u32 = 265;
1516pub const SOL_IRDA: u32 = 266;
1517pub const SOL_NETBEUI: u32 = 267;
1518pub const SOL_LLC: u32 = 268;
1519pub const SOL_DCCP: u32 = 269;
1520pub const SOL_NETLINK: u32 = 270;
1521pub const SOL_TIPC: u32 = 271;
1522pub const SOL_RXRPC: u32 = 272;
1523pub const SOL_PPPOL2TP: u32 = 273;
1524pub const SOL_BLUETOOTH: u32 = 274;
1525pub const SOL_PNPIPE: u32 = 275;
1526pub const SOL_RDS: u32 = 276;
1527pub const SOL_IUCV: u32 = 277;
1528pub const SOL_CAIF: u32 = 278;
1529pub const SOL_ALG: u32 = 279;
1530pub const SOL_NFC: u32 = 280;
1531pub const SOL_KCM: u32 = 281;
1532pub const SOL_TLS: u32 = 282;
1533pub const SOL_XDP: u32 = 283;
1534pub const SOL_MPTCP: u32 = 284;
1535pub const SOL_MCTP: u32 = 285;
1536pub const SOL_SMC: u32 = 286;
1537pub const IPPROTO_IP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IP;
1538pub const IPPROTO_ICMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ICMP;
1539pub const IPPROTO_IGMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IGMP;
1540pub const IPPROTO_IPIP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IPIP;
1541pub const IPPROTO_TCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_TCP;
1542pub const IPPROTO_EGP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_EGP;
1543pub const IPPROTO_PUP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_PUP;
1544pub const IPPROTO_UDP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_UDP;
1545pub const IPPROTO_IDP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IDP;
1546pub const IPPROTO_TP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_TP;
1547pub const IPPROTO_DCCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_DCCP;
1548pub const IPPROTO_IPV6: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IPV6;
1549pub const IPPROTO_RSVP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_RSVP;
1550pub const IPPROTO_GRE: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_GRE;
1551pub const IPPROTO_ESP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ESP;
1552pub const IPPROTO_AH: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_AH;
1553pub const IPPROTO_MTP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MTP;
1554pub const IPPROTO_BEETPH: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_BEETPH;
1555pub const IPPROTO_ENCAP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ENCAP;
1556pub const IPPROTO_PIM: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_PIM;
1557pub const IPPROTO_COMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_COMP;
1558pub const IPPROTO_L2TP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_L2TP;
1559pub const IPPROTO_SCTP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_SCTP;
1560pub const IPPROTO_UDPLITE: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_UDPLITE;
1561pub const IPPROTO_MPLS: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MPLS;
1562pub const IPPROTO_ETHERNET: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ETHERNET;
1563pub const IPPROTO_RAW: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_RAW;
1564pub const IPPROTO_SMC: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_SMC;
1565pub const IPPROTO_MPTCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MPTCP;
1566pub const IPPROTO_MAX: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MAX;
1567pub const IPV4_DEVCONF_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_FORWARDING;
1568pub const IPV4_DEVCONF_MC_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_MC_FORWARDING;
1569pub const IPV4_DEVCONF_PROXY_ARP: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROXY_ARP;
1570pub const IPV4_DEVCONF_ACCEPT_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_REDIRECTS;
1571pub const IPV4_DEVCONF_SECURE_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SECURE_REDIRECTS;
1572pub const IPV4_DEVCONF_SEND_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SEND_REDIRECTS;
1573pub const IPV4_DEVCONF_SHARED_MEDIA: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SHARED_MEDIA;
1574pub const IPV4_DEVCONF_RP_FILTER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_RP_FILTER;
1575pub const IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE;
1576pub const IPV4_DEVCONF_BOOTP_RELAY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_BOOTP_RELAY;
1577pub const IPV4_DEVCONF_LOG_MARTIANS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_LOG_MARTIANS;
1578pub const IPV4_DEVCONF_TAG: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_TAG;
1579pub const IPV4_DEVCONF_ARPFILTER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARPFILTER;
1580pub const IPV4_DEVCONF_MEDIUM_ID: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_MEDIUM_ID;
1581pub const IPV4_DEVCONF_NOXFRM: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_NOXFRM;
1582pub const IPV4_DEVCONF_NOPOLICY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_NOPOLICY;
1583pub const IPV4_DEVCONF_FORCE_IGMP_VERSION: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_FORCE_IGMP_VERSION;
1584pub const IPV4_DEVCONF_ARP_ANNOUNCE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_ANNOUNCE;
1585pub const IPV4_DEVCONF_ARP_IGNORE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_IGNORE;
1586pub const IPV4_DEVCONF_PROMOTE_SECONDARIES: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROMOTE_SECONDARIES;
1587pub const IPV4_DEVCONF_ARP_ACCEPT: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_ACCEPT;
1588pub const IPV4_DEVCONF_ARP_NOTIFY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_NOTIFY;
1589pub const IPV4_DEVCONF_ACCEPT_LOCAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_LOCAL;
1590pub const IPV4_DEVCONF_SRC_VMARK: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SRC_VMARK;
1591pub const IPV4_DEVCONF_PROXY_ARP_PVLAN: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROXY_ARP_PVLAN;
1592pub const IPV4_DEVCONF_ROUTE_LOCALNET: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ROUTE_LOCALNET;
1593pub const IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL;
1594pub const IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL;
1595pub const IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN;
1596pub const IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST;
1597pub const IPV4_DEVCONF_DROP_GRATUITOUS_ARP: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_DROP_GRATUITOUS_ARP;
1598pub const IPV4_DEVCONF_BC_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_BC_FORWARDING;
1599pub const IPV4_DEVCONF_ARP_EVICT_NOCARRIER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_EVICT_NOCARRIER;
1600pub const __IPV4_DEVCONF_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IPV4_DEVCONF_MAX;
1601pub const DEVCONF_FORWARDING: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORWARDING;
1602pub const DEVCONF_HOPLIMIT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_HOPLIMIT;
1603pub const DEVCONF_MTU6: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MTU6;
1604pub const DEVCONF_ACCEPT_RA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA;
1605pub const DEVCONF_ACCEPT_REDIRECTS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_REDIRECTS;
1606pub const DEVCONF_AUTOCONF: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_AUTOCONF;
1607pub const DEVCONF_DAD_TRANSMITS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DAD_TRANSMITS;
1608pub const DEVCONF_RTR_SOLICITS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICITS;
1609pub const DEVCONF_RTR_SOLICIT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_INTERVAL;
1610pub const DEVCONF_RTR_SOLICIT_DELAY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_DELAY;
1611pub const DEVCONF_USE_TEMPADDR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_TEMPADDR;
1612pub const DEVCONF_TEMP_VALID_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_TEMP_VALID_LFT;
1613pub const DEVCONF_TEMP_PREFERED_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_TEMP_PREFERED_LFT;
1614pub const DEVCONF_REGEN_MAX_RETRY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_REGEN_MAX_RETRY;
1615pub const DEVCONF_MAX_DESYNC_FACTOR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX_DESYNC_FACTOR;
1616pub const DEVCONF_MAX_ADDRESSES: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX_ADDRESSES;
1617pub const DEVCONF_FORCE_MLD_VERSION: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORCE_MLD_VERSION;
1618pub const DEVCONF_ACCEPT_RA_DEFRTR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_DEFRTR;
1619pub const DEVCONF_ACCEPT_RA_PINFO: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_PINFO;
1620pub const DEVCONF_ACCEPT_RA_RTR_PREF: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RTR_PREF;
1621pub const DEVCONF_RTR_PROBE_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_PROBE_INTERVAL;
1622pub const DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN;
1623pub const DEVCONF_PROXY_NDP: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_PROXY_NDP;
1624pub const DEVCONF_OPTIMISTIC_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_OPTIMISTIC_DAD;
1625pub const DEVCONF_ACCEPT_SOURCE_ROUTE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_SOURCE_ROUTE;
1626pub const DEVCONF_MC_FORWARDING: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MC_FORWARDING;
1627pub const DEVCONF_DISABLE_IPV6: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DISABLE_IPV6;
1628pub const DEVCONF_ACCEPT_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_DAD;
1629pub const DEVCONF_FORCE_TLLAO: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORCE_TLLAO;
1630pub const DEVCONF_NDISC_NOTIFY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_NOTIFY;
1631pub const DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL;
1632pub const DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL;
1633pub const DEVCONF_SUPPRESS_FRAG_NDISC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SUPPRESS_FRAG_NDISC;
1634pub const DEVCONF_ACCEPT_RA_FROM_LOCAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_FROM_LOCAL;
1635pub const DEVCONF_USE_OPTIMISTIC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_OPTIMISTIC;
1636pub const DEVCONF_ACCEPT_RA_MTU: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MTU;
1637pub const DEVCONF_STABLE_SECRET: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_STABLE_SECRET;
1638pub const DEVCONF_USE_OIF_ADDRS_ONLY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_OIF_ADDRS_ONLY;
1639pub const DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT;
1640pub const DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN;
1641pub const DEVCONF_DROP_UNICAST_IN_L2_MULTICAST: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DROP_UNICAST_IN_L2_MULTICAST;
1642pub const DEVCONF_DROP_UNSOLICITED_NA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DROP_UNSOLICITED_NA;
1643pub const DEVCONF_KEEP_ADDR_ON_DOWN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_KEEP_ADDR_ON_DOWN;
1644pub const DEVCONF_RTR_SOLICIT_MAX_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_MAX_INTERVAL;
1645pub const DEVCONF_SEG6_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SEG6_ENABLED;
1646pub const DEVCONF_SEG6_REQUIRE_HMAC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SEG6_REQUIRE_HMAC;
1647pub const DEVCONF_ENHANCED_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ENHANCED_DAD;
1648pub const DEVCONF_ADDR_GEN_MODE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ADDR_GEN_MODE;
1649pub const DEVCONF_DISABLE_POLICY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DISABLE_POLICY;
1650pub const DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN;
1651pub const DEVCONF_NDISC_TCLASS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_TCLASS;
1652pub const DEVCONF_RPL_SEG_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RPL_SEG_ENABLED;
1653pub const DEVCONF_RA_DEFRTR_METRIC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RA_DEFRTR_METRIC;
1654pub const DEVCONF_IOAM6_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ENABLED;
1655pub const DEVCONF_IOAM6_ID: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ID;
1656pub const DEVCONF_IOAM6_ID_WIDE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ID_WIDE;
1657pub const DEVCONF_NDISC_EVICT_NOCARRIER: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_EVICT_NOCARRIER;
1658pub const DEVCONF_ACCEPT_UNTRACKED_NA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_UNTRACKED_NA;
1659pub const DEVCONF_ACCEPT_RA_MIN_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MIN_LFT;
1660pub const DEVCONF_MAX: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX;
1661pub const TCP_FLAG_CWR: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_CWR;
1662pub const TCP_FLAG_ECE: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_ECE;
1663pub const TCP_FLAG_URG: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_URG;
1664pub const TCP_FLAG_ACK: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_ACK;
1665pub const TCP_FLAG_PSH: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_PSH;
1666pub const TCP_FLAG_RST: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_RST;
1667pub const TCP_FLAG_SYN: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_SYN;
1668pub const TCP_FLAG_FIN: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_FIN;
1669pub const TCP_RESERVED_BITS: _bindgen_ty_4 = _bindgen_ty_4::TCP_RESERVED_BITS;
1670pub const TCP_DATA_OFFSET: _bindgen_ty_4 = _bindgen_ty_4::TCP_DATA_OFFSET;
1671pub const TCP_NO_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_NO_QUEUE;
1672pub const TCP_RECV_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_RECV_QUEUE;
1673pub const TCP_SEND_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_SEND_QUEUE;
1674pub const TCP_QUEUES_NR: _bindgen_ty_5 = _bindgen_ty_5::TCP_QUEUES_NR;
1675pub const TCP_NLA_PAD: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_PAD;
1676pub const TCP_NLA_BUSY: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BUSY;
1677pub const TCP_NLA_RWND_LIMITED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_RWND_LIMITED;
1678pub const TCP_NLA_SNDBUF_LIMITED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SNDBUF_LIMITED;
1679pub const TCP_NLA_DATA_SEGS_OUT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DATA_SEGS_OUT;
1680pub const TCP_NLA_TOTAL_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TOTAL_RETRANS;
1681pub const TCP_NLA_PACING_RATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_PACING_RATE;
1682pub const TCP_NLA_DELIVERY_RATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERY_RATE;
1683pub const TCP_NLA_SND_CWND: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SND_CWND;
1684pub const TCP_NLA_REORDERING: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REORDERING;
1685pub const TCP_NLA_MIN_RTT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_MIN_RTT;
1686pub const TCP_NLA_RECUR_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_RECUR_RETRANS;
1687pub const TCP_NLA_DELIVERY_RATE_APP_LMT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERY_RATE_APP_LMT;
1688pub const TCP_NLA_SNDQ_SIZE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SNDQ_SIZE;
1689pub const TCP_NLA_CA_STATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_CA_STATE;
1690pub const TCP_NLA_SND_SSTHRESH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SND_SSTHRESH;
1691pub const TCP_NLA_DELIVERED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERED;
1692pub const TCP_NLA_DELIVERED_CE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERED_CE;
1693pub const TCP_NLA_BYTES_SENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_SENT;
1694pub const TCP_NLA_BYTES_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_RETRANS;
1695pub const TCP_NLA_DSACK_DUPS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DSACK_DUPS;
1696pub const TCP_NLA_REORD_SEEN: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REORD_SEEN;
1697pub const TCP_NLA_SRTT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SRTT;
1698pub const TCP_NLA_TIMEOUT_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TIMEOUT_REHASH;
1699pub const TCP_NLA_BYTES_NOTSENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_NOTSENT;
1700pub const TCP_NLA_EDT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_EDT;
1701pub const TCP_NLA_TTL: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TTL;
1702pub const TCP_NLA_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REHASH;
1703pub const IF_OPER_UNKNOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_UNKNOWN;
1704pub const IF_OPER_NOTPRESENT: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_NOTPRESENT;
1705pub const IF_OPER_DOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_DOWN;
1706pub const IF_OPER_LOWERLAYERDOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_LOWERLAYERDOWN;
1707pub const IF_OPER_TESTING: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_TESTING;
1708pub const IF_OPER_DORMANT: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_DORMANT;
1709pub const IF_OPER_UP: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_UP;
1710pub const IF_LINK_MODE_DEFAULT: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_DEFAULT;
1711pub const IF_LINK_MODE_DORMANT: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_DORMANT;
1712pub const IF_LINK_MODE_TESTING: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_TESTING;
1713pub const NFPROTO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_UNSPEC;
1714pub const NFPROTO_INET: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_INET;
1715pub const NFPROTO_IPV4: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_IPV4;
1716pub const NFPROTO_ARP: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_ARP;
1717pub const NFPROTO_NETDEV: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_NETDEV;
1718pub const NFPROTO_BRIDGE: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_BRIDGE;
1719pub const NFPROTO_IPV6: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_IPV6;
1720pub const NFPROTO_DECNET: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_DECNET;
1721pub const NFPROTO_NUMPROTO: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_NUMPROTO;
1722#[repr(u32)]
1723#[non_exhaustive]
1724#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
1725pub enum _bindgen_ty_1 {
1726IPPROTO_IP = 0,
1727IPPROTO_ICMP = 1,
1728IPPROTO_IGMP = 2,
1729IPPROTO_IPIP = 4,
1730IPPROTO_TCP = 6,
1731IPPROTO_EGP = 8,
1732IPPROTO_PUP = 12,
1733IPPROTO_UDP = 17,
1734IPPROTO_IDP = 22,
1735IPPROTO_TP = 29,
1736IPPROTO_DCCP = 33,
1737IPPROTO_IPV6 = 41,
1738IPPROTO_RSVP = 46,
1739IPPROTO_GRE = 47,
1740IPPROTO_ESP = 50,
1741IPPROTO_AH = 51,
1742IPPROTO_MTP = 92,
1743IPPROTO_BEETPH = 94,
1744IPPROTO_ENCAP = 98,
1745IPPROTO_PIM = 103,
1746IPPROTO_COMP = 108,
1747IPPROTO_L2TP = 115,
1748IPPROTO_SCTP = 132,
1749IPPROTO_UDPLITE = 136,
1750IPPROTO_MPLS = 137,
1751IPPROTO_ETHERNET = 143,
1752IPPROTO_RAW = 255,
1753IPPROTO_SMC = 256,
1754IPPROTO_MPTCP = 262,
1755IPPROTO_MAX = 263,
1756}
1757#[repr(u32)]
1758#[non_exhaustive]
1759#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
1760pub enum _bindgen_ty_2 {
1761IPV4_DEVCONF_FORWARDING = 1,
1762IPV4_DEVCONF_MC_FORWARDING = 2,
1763IPV4_DEVCONF_PROXY_ARP = 3,
1764IPV4_DEVCONF_ACCEPT_REDIRECTS = 4,
1765IPV4_DEVCONF_SECURE_REDIRECTS = 5,
1766IPV4_DEVCONF_SEND_REDIRECTS = 6,
1767IPV4_DEVCONF_SHARED_MEDIA = 7,
1768IPV4_DEVCONF_RP_FILTER = 8,
1769IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE = 9,
1770IPV4_DEVCONF_BOOTP_RELAY = 10,
1771IPV4_DEVCONF_LOG_MARTIANS = 11,
1772IPV4_DEVCONF_TAG = 12,
1773IPV4_DEVCONF_ARPFILTER = 13,
1774IPV4_DEVCONF_MEDIUM_ID = 14,
1775IPV4_DEVCONF_NOXFRM = 15,
1776IPV4_DEVCONF_NOPOLICY = 16,
1777IPV4_DEVCONF_FORCE_IGMP_VERSION = 17,
1778IPV4_DEVCONF_ARP_ANNOUNCE = 18,
1779IPV4_DEVCONF_ARP_IGNORE = 19,
1780IPV4_DEVCONF_PROMOTE_SECONDARIES = 20,
1781IPV4_DEVCONF_ARP_ACCEPT = 21,
1782IPV4_DEVCONF_ARP_NOTIFY = 22,
1783IPV4_DEVCONF_ACCEPT_LOCAL = 23,
1784IPV4_DEVCONF_SRC_VMARK = 24,
1785IPV4_DEVCONF_PROXY_ARP_PVLAN = 25,
1786IPV4_DEVCONF_ROUTE_LOCALNET = 26,
1787IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL = 27,
1788IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL = 28,
1789IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 29,
1790IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 30,
1791IPV4_DEVCONF_DROP_GRATUITOUS_ARP = 31,
1792IPV4_DEVCONF_BC_FORWARDING = 32,
1793IPV4_DEVCONF_ARP_EVICT_NOCARRIER = 33,
1794__IPV4_DEVCONF_MAX = 34,
1795}
1796#[repr(u32)]
1797#[non_exhaustive]
1798#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
1799pub enum _bindgen_ty_3 {
1800DEVCONF_FORWARDING = 0,
1801DEVCONF_HOPLIMIT = 1,
1802DEVCONF_MTU6 = 2,
1803DEVCONF_ACCEPT_RA = 3,
1804DEVCONF_ACCEPT_REDIRECTS = 4,
1805DEVCONF_AUTOCONF = 5,
1806DEVCONF_DAD_TRANSMITS = 6,
1807DEVCONF_RTR_SOLICITS = 7,
1808DEVCONF_RTR_SOLICIT_INTERVAL = 8,
1809DEVCONF_RTR_SOLICIT_DELAY = 9,
1810DEVCONF_USE_TEMPADDR = 10,
1811DEVCONF_TEMP_VALID_LFT = 11,
1812DEVCONF_TEMP_PREFERED_LFT = 12,
1813DEVCONF_REGEN_MAX_RETRY = 13,
1814DEVCONF_MAX_DESYNC_FACTOR = 14,
1815DEVCONF_MAX_ADDRESSES = 15,
1816DEVCONF_FORCE_MLD_VERSION = 16,
1817DEVCONF_ACCEPT_RA_DEFRTR = 17,
1818DEVCONF_ACCEPT_RA_PINFO = 18,
1819DEVCONF_ACCEPT_RA_RTR_PREF = 19,
1820DEVCONF_RTR_PROBE_INTERVAL = 20,
1821DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN = 21,
1822DEVCONF_PROXY_NDP = 22,
1823DEVCONF_OPTIMISTIC_DAD = 23,
1824DEVCONF_ACCEPT_SOURCE_ROUTE = 24,
1825DEVCONF_MC_FORWARDING = 25,
1826DEVCONF_DISABLE_IPV6 = 26,
1827DEVCONF_ACCEPT_DAD = 27,
1828DEVCONF_FORCE_TLLAO = 28,
1829DEVCONF_NDISC_NOTIFY = 29,
1830DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL = 30,
1831DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL = 31,
1832DEVCONF_SUPPRESS_FRAG_NDISC = 32,
1833DEVCONF_ACCEPT_RA_FROM_LOCAL = 33,
1834DEVCONF_USE_OPTIMISTIC = 34,
1835DEVCONF_ACCEPT_RA_MTU = 35,
1836DEVCONF_STABLE_SECRET = 36,
1837DEVCONF_USE_OIF_ADDRS_ONLY = 37,
1838DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT = 38,
1839DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 39,
1840DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 40,
1841DEVCONF_DROP_UNSOLICITED_NA = 41,
1842DEVCONF_KEEP_ADDR_ON_DOWN = 42,
1843DEVCONF_RTR_SOLICIT_MAX_INTERVAL = 43,
1844DEVCONF_SEG6_ENABLED = 44,
1845DEVCONF_SEG6_REQUIRE_HMAC = 45,
1846DEVCONF_ENHANCED_DAD = 46,
1847DEVCONF_ADDR_GEN_MODE = 47,
1848DEVCONF_DISABLE_POLICY = 48,
1849DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN = 49,
1850DEVCONF_NDISC_TCLASS = 50,
1851DEVCONF_RPL_SEG_ENABLED = 51,
1852DEVCONF_RA_DEFRTR_METRIC = 52,
1853DEVCONF_IOAM6_ENABLED = 53,
1854DEVCONF_IOAM6_ID = 54,
1855DEVCONF_IOAM6_ID_WIDE = 55,
1856DEVCONF_NDISC_EVICT_NOCARRIER = 56,
1857DEVCONF_ACCEPT_UNTRACKED_NA = 57,
1858DEVCONF_ACCEPT_RA_MIN_LFT = 58,
1859DEVCONF_MAX = 59,
1860}
1861#[repr(u32)]
1862#[non_exhaustive]
1863#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
1864pub enum socket_state {
1865SS_FREE = 0,
1866SS_UNCONNECTED = 1,
1867SS_CONNECTING = 2,
1868SS_CONNECTED = 3,
1869SS_DISCONNECTING = 4,
1870}
1871#[repr(u32)]
1872#[non_exhaustive]
1873#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
1874pub enum _bindgen_ty_4 {
1875TCP_FLAG_CWR = 32768,
1876TCP_FLAG_ECE = 16384,
1877TCP_FLAG_URG = 8192,
1878TCP_FLAG_ACK = 4096,
1879TCP_FLAG_PSH = 2048,
1880TCP_FLAG_RST = 1024,
1881TCP_FLAG_SYN = 512,
1882TCP_FLAG_FIN = 256,
1883TCP_RESERVED_BITS = 15,
1884TCP_DATA_OFFSET = 240,
1885}
1886#[repr(u32)]
1887#[non_exhaustive]
1888#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
1889pub enum _bindgen_ty_5 {
1890TCP_NO_QUEUE = 0,
1891TCP_RECV_QUEUE = 1,
1892TCP_SEND_QUEUE = 2,
1893TCP_QUEUES_NR = 3,
1894}
1895#[repr(u32)]
1896#[non_exhaustive]
1897#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
1898pub enum tcp_fastopen_client_fail {
1899TFO_STATUS_UNSPEC = 0,
1900TFO_COOKIE_UNAVAILABLE = 1,
1901TFO_DATA_NOT_ACKED = 2,
1902TFO_SYN_RETRANSMITTED = 3,
1903}
1904#[repr(u32)]
1905#[non_exhaustive]
1906#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
1907pub enum tcp_ca_state {
1908TCP_CA_Open = 0,
1909TCP_CA_Disorder = 1,
1910TCP_CA_CWR = 2,
1911TCP_CA_Recovery = 3,
1912TCP_CA_Loss = 4,
1913}
1914#[repr(u32)]
1915#[non_exhaustive]
1916#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
1917pub enum _bindgen_ty_6 {
1918TCP_NLA_PAD = 0,
1919TCP_NLA_BUSY = 1,
1920TCP_NLA_RWND_LIMITED = 2,
1921TCP_NLA_SNDBUF_LIMITED = 3,
1922TCP_NLA_DATA_SEGS_OUT = 4,
1923TCP_NLA_TOTAL_RETRANS = 5,
1924TCP_NLA_PACING_RATE = 6,
1925TCP_NLA_DELIVERY_RATE = 7,
1926TCP_NLA_SND_CWND = 8,
1927TCP_NLA_REORDERING = 9,
1928TCP_NLA_MIN_RTT = 10,
1929TCP_NLA_RECUR_RETRANS = 11,
1930TCP_NLA_DELIVERY_RATE_APP_LMT = 12,
1931TCP_NLA_SNDQ_SIZE = 13,
1932TCP_NLA_CA_STATE = 14,
1933TCP_NLA_SND_SSTHRESH = 15,
1934TCP_NLA_DELIVERED = 16,
1935TCP_NLA_DELIVERED_CE = 17,
1936TCP_NLA_BYTES_SENT = 18,
1937TCP_NLA_BYTES_RETRANS = 19,
1938TCP_NLA_DSACK_DUPS = 20,
1939TCP_NLA_REORD_SEEN = 21,
1940TCP_NLA_SRTT = 22,
1941TCP_NLA_TIMEOUT_REHASH = 23,
1942TCP_NLA_BYTES_NOTSENT = 24,
1943TCP_NLA_EDT = 25,
1944TCP_NLA_TTL = 26,
1945TCP_NLA_REHASH = 27,
1946}
1947#[repr(u32)]
1948#[non_exhaustive]
1949#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
1950pub enum net_device_flags {
1951IFF_UP = 1,
1952IFF_BROADCAST = 2,
1953IFF_DEBUG = 4,
1954IFF_LOOPBACK = 8,
1955IFF_POINTOPOINT = 16,
1956IFF_NOTRAILERS = 32,
1957IFF_RUNNING = 64,
1958IFF_NOARP = 128,
1959IFF_PROMISC = 256,
1960IFF_ALLMULTI = 512,
1961IFF_MASTER = 1024,
1962IFF_SLAVE = 2048,
1963IFF_MULTICAST = 4096,
1964IFF_PORTSEL = 8192,
1965IFF_AUTOMEDIA = 16384,
1966IFF_DYNAMIC = 32768,
1967IFF_LOWER_UP = 65536,
1968IFF_DORMANT = 131072,
1969IFF_ECHO = 262144,
1970}
1971#[repr(u32)]
1972#[non_exhaustive]
1973#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
1974pub enum _bindgen_ty_7 {
1975IF_OPER_UNKNOWN = 0,
1976IF_OPER_NOTPRESENT = 1,
1977IF_OPER_DOWN = 2,
1978IF_OPER_LOWERLAYERDOWN = 3,
1979IF_OPER_TESTING = 4,
1980IF_OPER_DORMANT = 5,
1981IF_OPER_UP = 6,
1982}
1983#[repr(u32)]
1984#[non_exhaustive]
1985#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
1986pub enum _bindgen_ty_8 {
1987IF_LINK_MODE_DEFAULT = 0,
1988IF_LINK_MODE_DORMANT = 1,
1989IF_LINK_MODE_TESTING = 2,
1990}
1991#[repr(u32)]
1992#[non_exhaustive]
1993#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
1994pub enum nf_inet_hooks {
1995NF_INET_PRE_ROUTING = 0,
1996NF_INET_LOCAL_IN = 1,
1997NF_INET_FORWARD = 2,
1998NF_INET_LOCAL_OUT = 3,
1999NF_INET_POST_ROUTING = 4,
2000NF_INET_NUMHOOKS = 5,
2001}
2002#[repr(u32)]
2003#[non_exhaustive]
2004#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2005pub enum nf_dev_hooks {
2006NF_NETDEV_INGRESS = 0,
2007NF_NETDEV_EGRESS = 1,
2008NF_NETDEV_NUMHOOKS = 2,
2009}
2010#[repr(u32)]
2011#[non_exhaustive]
2012#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2013pub enum _bindgen_ty_9 {
2014NFPROTO_UNSPEC = 0,
2015NFPROTO_INET = 1,
2016NFPROTO_IPV4 = 2,
2017NFPROTO_ARP = 3,
2018NFPROTO_NETDEV = 5,
2019NFPROTO_BRIDGE = 7,
2020NFPROTO_IPV6 = 10,
2021NFPROTO_DECNET = 12,
2022NFPROTO_NUMPROTO = 13,
2023}
2024#[repr(i32)]
2025#[non_exhaustive]
2026#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2027pub enum nf_ip6_hook_priorities {
2028NF_IP6_PRI_FIRST = -2147483648,
2029NF_IP6_PRI_RAW_BEFORE_DEFRAG = -450,
2030NF_IP6_PRI_CONNTRACK_DEFRAG = -400,
2031NF_IP6_PRI_RAW = -300,
2032NF_IP6_PRI_SELINUX_FIRST = -225,
2033NF_IP6_PRI_CONNTRACK = -200,
2034NF_IP6_PRI_MANGLE = -150,
2035NF_IP6_PRI_NAT_DST = -100,
2036NF_IP6_PRI_FILTER = 0,
2037NF_IP6_PRI_SECURITY = 50,
2038NF_IP6_PRI_NAT_SRC = 100,
2039NF_IP6_PRI_SELINUX_LAST = 225,
2040NF_IP6_PRI_CONNTRACK_HELPER = 300,
2041NF_IP6_PRI_LAST = 2147483647,
2042}
2043#[repr(i32)]
2044#[non_exhaustive]
2045#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2046pub enum nf_ip_hook_priorities {
2047NF_IP_PRI_FIRST = -2147483648,
2048NF_IP_PRI_RAW_BEFORE_DEFRAG = -450,
2049NF_IP_PRI_CONNTRACK_DEFRAG = -400,
2050NF_IP_PRI_RAW = -300,
2051NF_IP_PRI_SELINUX_FIRST = -225,
2052NF_IP_PRI_CONNTRACK = -200,
2053NF_IP_PRI_MANGLE = -150,
2054NF_IP_PRI_NAT_DST = -100,
2055NF_IP_PRI_FILTER = 0,
2056NF_IP_PRI_SECURITY = 50,
2057NF_IP_PRI_NAT_SRC = 100,
2058NF_IP_PRI_SELINUX_LAST = 225,
2059NF_IP_PRI_CONNTRACK_HELPER = 300,
2060NF_IP_PRI_CONNTRACK_CONFIRM = 2147483647,
2061}
2062#[repr(C)]
2063#[derive(Copy, Clone)]
2064pub union __kernel_sockaddr_storage__bindgen_ty_1 {
2065pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1,
2066pub __align: *mut crate::ctypes::c_void,
2067}
2068#[repr(C)]
2069#[derive(Copy, Clone)]
2070pub union iphdr__bindgen_ty_1 {
2071pub __bindgen_anon_1: iphdr__bindgen_ty_1__bindgen_ty_1,
2072pub addrs: iphdr__bindgen_ty_1__bindgen_ty_2,
2073}
2074#[repr(C)]
2075#[derive(Copy, Clone)]
2076pub union in6_addr__bindgen_ty_1 {
2077pub u6_addr8: [__u8; 16usize],
2078pub u6_addr16: [__be16; 8usize],
2079pub u6_addr32: [__be32; 4usize],
2080}
2081#[repr(C)]
2082#[derive(Copy, Clone)]
2083pub union ipv6hdr__bindgen_ty_1 {
2084pub __bindgen_anon_1: ipv6hdr__bindgen_ty_1__bindgen_ty_1,
2085pub addrs: ipv6hdr__bindgen_ty_1__bindgen_ty_2,
2086}
2087#[repr(C)]
2088#[derive(Copy, Clone)]
2089pub union tcp_word_hdr {
2090pub hdr: tcphdr,
2091pub words: [__be32; 5usize],
2092}
2093#[repr(C)]
2094#[derive(Copy, Clone)]
2095pub union if_settings__bindgen_ty_1 {
2096pub raw_hdlc: *mut raw_hdlc_proto,
2097pub cisco: *mut cisco_proto,
2098pub fr: *mut fr_proto,
2099pub fr_pvc: *mut fr_proto_pvc,
2100pub fr_pvc_info: *mut fr_proto_pvc_info,
2101pub x25: *mut x25_hdlc_proto,
2102pub sync: *mut sync_serial_settings,
2103pub te1: *mut te1_settings,
2104}
2105#[repr(C)]
2106#[derive(Copy, Clone)]
2107pub union ifreq__bindgen_ty_1 {
2108pub ifrn_name: [crate::ctypes::c_char; 16usize],
2109}
2110#[repr(C)]
2111#[derive(Copy, Clone)]
2112pub union ifreq__bindgen_ty_2 {
2113pub ifru_addr: sockaddr,
2114pub ifru_dstaddr: sockaddr,
2115pub ifru_broadaddr: sockaddr,
2116pub ifru_netmask: sockaddr,
2117pub ifru_hwaddr: sockaddr,
2118pub ifru_flags: crate::ctypes::c_short,
2119pub ifru_ivalue: crate::ctypes::c_int,
2120pub ifru_mtu: crate::ctypes::c_int,
2121pub ifru_map: ifmap,
2122pub ifru_slave: [crate::ctypes::c_char; 16usize],
2123pub ifru_newname: [crate::ctypes::c_char; 16usize],
2124pub ifru_data: *mut crate::ctypes::c_void,
2125pub ifru_settings: if_settings,
2126}
2127#[repr(C)]
2128#[derive(Copy, Clone)]
2129pub union ifconf__bindgen_ty_1 {
2130pub ifcu_buf: *mut crate::ctypes::c_char,
2131pub ifcu_req: *mut ifreq,
2132}
2133#[repr(C)]
2134#[derive(Copy, Clone)]
2135pub union nf_inet_addr {
2136pub all: [__u32; 4usize],
2137pub ip: __be32,
2138pub ip6: [__be32; 4usize],
2139pub in_: in_addr,
2140pub in6: in6_addr,
2141}
2142#[repr(C)]
2143#[derive(Copy, Clone)]
2144pub union xt_entry_match__bindgen_ty_1 {
2145pub user: xt_entry_match__bindgen_ty_1__bindgen_ty_1,
2146pub kernel: xt_entry_match__bindgen_ty_1__bindgen_ty_2,
2147pub match_size: __u16,
2148}
2149#[repr(C)]
2150#[derive(Copy, Clone)]
2151pub union xt_entry_target__bindgen_ty_1 {
2152pub user: xt_entry_target__bindgen_ty_1__bindgen_ty_1,
2153pub kernel: xt_entry_target__bindgen_ty_1__bindgen_ty_2,
2154pub target_size: __u16,
2155}
2156impl<Storage> __BindgenBitfieldUnit<Storage> {
2157#[inline]
2158pub const fn new(storage: Storage) -> Self {
2159Self { storage }
2160}
2161}
2162impl<Storage> __BindgenBitfieldUnit<Storage>
2163where
2164Storage: AsRef<[u8]> + AsMut<[u8]>,
2165{
2166#[inline]
2167fn extract_bit(byte: u8, index: usize) -> bool {
2168let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 };
2169let mask = 1 << bit_index;
2170byte & mask == mask
2171}
2172#[inline]
2173pub fn get_bit(&self, index: usize) -> bool {
2174debug_assert!(index / 8 < self.storage.as_ref().len());
2175let byte_index = index / 8;
2176let byte = self.storage.as_ref()[byte_index];
2177Self::extract_bit(byte, index)
2178}
2179#[inline]
2180pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool {
2181debug_assert!(index / 8 < core::mem::size_of::<Storage>());
2182let byte_index = index / 8;
2183let byte = *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize);
2184Self::extract_bit(byte, index)
2185}
2186#[inline]
2187fn change_bit(byte: u8, index: usize, val: bool) -> u8 {
2188let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 };
2189let mask = 1 << bit_index;
2190if val {
2191byte | mask
2192} else {
2193byte & !mask
2194}
2195}
2196#[inline]
2197pub fn set_bit(&mut self, index: usize, val: bool) {
2198debug_assert!(index / 8 < self.storage.as_ref().len());
2199let byte_index = index / 8;
2200let byte = &mut self.storage.as_mut()[byte_index];
2201*byte = Self::change_bit(*byte, index, val);
2202}
2203#[inline]
2204pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) {
2205debug_assert!(index / 8 < core::mem::size_of::<Storage>());
2206let byte_index = index / 8;
2207let byte = (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize);
2208*byte = Self::change_bit(*byte, index, val);
2209}
2210#[inline]
2211pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 {
2212debug_assert!(bit_width <= 64);
2213debug_assert!(bit_offset / 8 < self.storage.as_ref().len());
2214debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len());
2215let mut val = 0;
2216for i in 0..(bit_width as usize) {
2217if self.get_bit(i + bit_offset) {
2218let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i };
2219val |= 1 << index;
2220}
2221}
2222val
2223}
2224#[inline]
2225pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 {
2226debug_assert!(bit_width <= 64);
2227debug_assert!(bit_offset / 8 < core::mem::size_of::<Storage>());
2228debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::<Storage>());
2229let mut val = 0;
2230for i in 0..(bit_width as usize) {
2231if Self::raw_get_bit(this, i + bit_offset) {
2232let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i };
2233val |= 1 << index;
2234}
2235}
2236val
2237}
2238#[inline]
2239pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) {
2240debug_assert!(bit_width <= 64);
2241debug_assert!(bit_offset / 8 < self.storage.as_ref().len());
2242debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len());
2243for i in 0..(bit_width as usize) {
2244let mask = 1 << i;
2245let val_bit_is_set = val & mask == mask;
2246let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i };
2247self.set_bit(index + bit_offset, val_bit_is_set);
2248}
2249}
2250#[inline]
2251pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) {
2252debug_assert!(bit_width <= 64);
2253debug_assert!(bit_offset / 8 < core::mem::size_of::<Storage>());
2254debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::<Storage>());
2255for i in 0..(bit_width as usize) {
2256let mask = 1 << i;
2257let val_bit_is_set = val & mask == mask;
2258let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i };
2259Self::raw_set_bit(this, index + bit_offset, val_bit_is_set);
2260}
2261}
2262}
2263impl<T> __IncompleteArrayField<T> {
2264#[inline]
2265pub const fn new() -> Self {
2266__IncompleteArrayField(::core::marker::PhantomData, [])
2267}
2268#[inline]
2269pub fn as_ptr(&self) -> *const T {
2270self as *const _ as *const T
2271}
2272#[inline]
2273pub fn as_mut_ptr(&mut self) -> *mut T {
2274self as *mut _ as *mut T
2275}
2276#[inline]
2277pub unsafe fn as_slice(&self, len: usize) -> &[T] {
2278::core::slice::from_raw_parts(self.as_ptr(), len)
2279}
2280#[inline]
2281pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] {
2282::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len)
2283}
2284}
2285impl<T> ::core::fmt::Debug for __IncompleteArrayField<T> {
2286fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
2287fmt.write_str("__IncompleteArrayField")
2288}
2289}
2290impl<T> __BindgenUnionField<T> {
2291#[inline]
2292pub const fn new() -> Self {
2293__BindgenUnionField(::core::marker::PhantomData)
2294}
2295#[inline]
2296pub unsafe fn as_ref(&self) -> &T {
2297::core::mem::transmute(self)
2298}
2299#[inline]
2300pub unsafe fn as_mut(&mut self) -> &mut T {
2301::core::mem::transmute(self)
2302}
2303}
2304impl<T> ::core::default::Default for __BindgenUnionField<T> {
2305#[inline]
2306fn default() -> Self {
2307Self::new()
2308}
2309}
2310impl<T> ::core::clone::Clone for __BindgenUnionField<T> {
2311#[inline]
2312fn clone(&self) -> Self {
2313*self
2314}
2315}
2316impl<T> ::core::marker::Copy for __BindgenUnionField<T> {}
2317impl<T> ::core::fmt::Debug for __BindgenUnionField<T> {
2318fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
2319fmt.write_str("__BindgenUnionField")
2320}
2321}
2322impl<T> ::core::hash::Hash for __BindgenUnionField<T> {
2323fn hash<H: ::core::hash::Hasher>(&self, _state: &mut H) {}
2324}
2325impl<T> ::core::cmp::PartialEq for __BindgenUnionField<T> {
2326fn eq(&self, _other: &__BindgenUnionField<T>) -> bool {
2327true
2328}
2329}
2330impl<T> ::core::cmp::Eq for __BindgenUnionField<T> {}
2331impl iphdr {
2332#[inline]
2333pub fn ihl(&self) -> __u8 {
2334unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) }
2335}
2336#[inline]
2337pub fn set_ihl(&mut self, val: __u8) {
2338unsafe {
2339let val: u8 = ::core::mem::transmute(val);
2340self._bitfield_1.set(0usize, 4u8, val as u64)
2341}
2342}
2343#[inline]
2344pub unsafe fn ihl_raw(this: *const Self) -> __u8 {
2345unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) }
2346}
2347#[inline]
2348pub unsafe fn set_ihl_raw(this: *mut Self, val: __u8) {
2349unsafe {
2350let val: u8 = ::core::mem::transmute(val);
2351<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64)
2352}
2353}
2354#[inline]
2355pub fn version(&self) -> __u8 {
2356unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) }
2357}
2358#[inline]
2359pub fn set_version(&mut self, val: __u8) {
2360unsafe {
2361let val: u8 = ::core::mem::transmute(val);
2362self._bitfield_1.set(4usize, 4u8, val as u64)
2363}
2364}
2365#[inline]
2366pub unsafe fn version_raw(this: *const Self) -> __u8 {
2367unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) }
2368}
2369#[inline]
2370pub unsafe fn set_version_raw(this: *mut Self, val: __u8) {
2371unsafe {
2372let val: u8 = ::core::mem::transmute(val);
2373<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64)
2374}
2375}
2376#[inline]
2377pub fn new_bitfield_1(ihl: __u8, version: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> {
2378let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
2379__bindgen_bitfield_unit.set(0usize, 4u8, {
2380let ihl: u8 = unsafe { ::core::mem::transmute(ihl) };
2381ihl as u64
2382});
2383__bindgen_bitfield_unit.set(4usize, 4u8, {
2384let version: u8 = unsafe { ::core::mem::transmute(version) };
2385version as u64
2386});
2387__bindgen_bitfield_unit
2388}
2389}
2390impl ipv6hdr {
2391#[inline]
2392pub fn priority(&self) -> __u8 {
2393unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) }
2394}
2395#[inline]
2396pub fn set_priority(&mut self, val: __u8) {
2397unsafe {
2398let val: u8 = ::core::mem::transmute(val);
2399self._bitfield_1.set(0usize, 4u8, val as u64)
2400}
2401}
2402#[inline]
2403pub unsafe fn priority_raw(this: *const Self) -> __u8 {
2404unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) }
2405}
2406#[inline]
2407pub unsafe fn set_priority_raw(this: *mut Self, val: __u8) {
2408unsafe {
2409let val: u8 = ::core::mem::transmute(val);
2410<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64)
2411}
2412}
2413#[inline]
2414pub fn version(&self) -> __u8 {
2415unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) }
2416}
2417#[inline]
2418pub fn set_version(&mut self, val: __u8) {
2419unsafe {
2420let val: u8 = ::core::mem::transmute(val);
2421self._bitfield_1.set(4usize, 4u8, val as u64)
2422}
2423}
2424#[inline]
2425pub unsafe fn version_raw(this: *const Self) -> __u8 {
2426unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) }
2427}
2428#[inline]
2429pub unsafe fn set_version_raw(this: *mut Self, val: __u8) {
2430unsafe {
2431let val: u8 = ::core::mem::transmute(val);
2432<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64)
2433}
2434}
2435#[inline]
2436pub fn new_bitfield_1(priority: __u8, version: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> {
2437let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
2438__bindgen_bitfield_unit.set(0usize, 4u8, {
2439let priority: u8 = unsafe { ::core::mem::transmute(priority) };
2440priority as u64
2441});
2442__bindgen_bitfield_unit.set(4usize, 4u8, {
2443let version: u8 = unsafe { ::core::mem::transmute(version) };
2444version as u64
2445});
2446__bindgen_bitfield_unit
2447}
2448}
2449impl tcphdr {
2450#[inline]
2451pub fn res1(&self) -> __u16 {
2452unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u16) }
2453}
2454#[inline]
2455pub fn set_res1(&mut self, val: __u16) {
2456unsafe {
2457let val: u16 = ::core::mem::transmute(val);
2458self._bitfield_1.set(0usize, 4u8, val as u64)
2459}
2460}
2461#[inline]
2462pub unsafe fn res1_raw(this: *const Self) -> __u16 {
2463unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u16) }
2464}
2465#[inline]
2466pub unsafe fn set_res1_raw(this: *mut Self, val: __u16) {
2467unsafe {
2468let val: u16 = ::core::mem::transmute(val);
2469<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64)
2470}
2471}
2472#[inline]
2473pub fn doff(&self) -> __u16 {
2474unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u16) }
2475}
2476#[inline]
2477pub fn set_doff(&mut self, val: __u16) {
2478unsafe {
2479let val: u16 = ::core::mem::transmute(val);
2480self._bitfield_1.set(4usize, 4u8, val as u64)
2481}
2482}
2483#[inline]
2484pub unsafe fn doff_raw(this: *const Self) -> __u16 {
2485unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u16) }
2486}
2487#[inline]
2488pub unsafe fn set_doff_raw(this: *mut Self, val: __u16) {
2489unsafe {
2490let val: u16 = ::core::mem::transmute(val);
2491<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64)
2492}
2493}
2494#[inline]
2495pub fn fin(&self) -> __u16 {
2496unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u16) }
2497}
2498#[inline]
2499pub fn set_fin(&mut self, val: __u16) {
2500unsafe {
2501let val: u16 = ::core::mem::transmute(val);
2502self._bitfield_1.set(8usize, 1u8, val as u64)
2503}
2504}
2505#[inline]
2506pub unsafe fn fin_raw(this: *const Self) -> __u16 {
2507unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 8usize, 1u8) as u16) }
2508}
2509#[inline]
2510pub unsafe fn set_fin_raw(this: *mut Self, val: __u16) {
2511unsafe {
2512let val: u16 = ::core::mem::transmute(val);
2513<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 8usize, 1u8, val as u64)
2514}
2515}
2516#[inline]
2517pub fn syn(&self) -> __u16 {
2518unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u16) }
2519}
2520#[inline]
2521pub fn set_syn(&mut self, val: __u16) {
2522unsafe {
2523let val: u16 = ::core::mem::transmute(val);
2524self._bitfield_1.set(9usize, 1u8, val as u64)
2525}
2526}
2527#[inline]
2528pub unsafe fn syn_raw(this: *const Self) -> __u16 {
2529unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 9usize, 1u8) as u16) }
2530}
2531#[inline]
2532pub unsafe fn set_syn_raw(this: *mut Self, val: __u16) {
2533unsafe {
2534let val: u16 = ::core::mem::transmute(val);
2535<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 9usize, 1u8, val as u64)
2536}
2537}
2538#[inline]
2539pub fn rst(&self) -> __u16 {
2540unsafe { ::core::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u16) }
2541}
2542#[inline]
2543pub fn set_rst(&mut self, val: __u16) {
2544unsafe {
2545let val: u16 = ::core::mem::transmute(val);
2546self._bitfield_1.set(10usize, 1u8, val as u64)
2547}
2548}
2549#[inline]
2550pub unsafe fn rst_raw(this: *const Self) -> __u16 {
2551unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 10usize, 1u8) as u16) }
2552}
2553#[inline]
2554pub unsafe fn set_rst_raw(this: *mut Self, val: __u16) {
2555unsafe {
2556let val: u16 = ::core::mem::transmute(val);
2557<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 10usize, 1u8, val as u64)
2558}
2559}
2560#[inline]
2561pub fn psh(&self) -> __u16 {
2562unsafe { ::core::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u16) }
2563}
2564#[inline]
2565pub fn set_psh(&mut self, val: __u16) {
2566unsafe {
2567let val: u16 = ::core::mem::transmute(val);
2568self._bitfield_1.set(11usize, 1u8, val as u64)
2569}
2570}
2571#[inline]
2572pub unsafe fn psh_raw(this: *const Self) -> __u16 {
2573unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 11usize, 1u8) as u16) }
2574}
2575#[inline]
2576pub unsafe fn set_psh_raw(this: *mut Self, val: __u16) {
2577unsafe {
2578let val: u16 = ::core::mem::transmute(val);
2579<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 11usize, 1u8, val as u64)
2580}
2581}
2582#[inline]
2583pub fn ack(&self) -> __u16 {
2584unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u16) }
2585}
2586#[inline]
2587pub fn set_ack(&mut self, val: __u16) {
2588unsafe {
2589let val: u16 = ::core::mem::transmute(val);
2590self._bitfield_1.set(12usize, 1u8, val as u64)
2591}
2592}
2593#[inline]
2594pub unsafe fn ack_raw(this: *const Self) -> __u16 {
2595unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 12usize, 1u8) as u16) }
2596}
2597#[inline]
2598pub unsafe fn set_ack_raw(this: *mut Self, val: __u16) {
2599unsafe {
2600let val: u16 = ::core::mem::transmute(val);
2601<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 12usize, 1u8, val as u64)
2602}
2603}
2604#[inline]
2605pub fn urg(&self) -> __u16 {
2606unsafe { ::core::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u16) }
2607}
2608#[inline]
2609pub fn set_urg(&mut self, val: __u16) {
2610unsafe {
2611let val: u16 = ::core::mem::transmute(val);
2612self._bitfield_1.set(13usize, 1u8, val as u64)
2613}
2614}
2615#[inline]
2616pub unsafe fn urg_raw(this: *const Self) -> __u16 {
2617unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 13usize, 1u8) as u16) }
2618}
2619#[inline]
2620pub unsafe fn set_urg_raw(this: *mut Self, val: __u16) {
2621unsafe {
2622let val: u16 = ::core::mem::transmute(val);
2623<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 13usize, 1u8, val as u64)
2624}
2625}
2626#[inline]
2627pub fn ece(&self) -> __u16 {
2628unsafe { ::core::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) }
2629}
2630#[inline]
2631pub fn set_ece(&mut self, val: __u16) {
2632unsafe {
2633let val: u16 = ::core::mem::transmute(val);
2634self._bitfield_1.set(14usize, 1u8, val as u64)
2635}
2636}
2637#[inline]
2638pub unsafe fn ece_raw(this: *const Self) -> __u16 {
2639unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 14usize, 1u8) as u16) }
2640}
2641#[inline]
2642pub unsafe fn set_ece_raw(this: *mut Self, val: __u16) {
2643unsafe {
2644let val: u16 = ::core::mem::transmute(val);
2645<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 14usize, 1u8, val as u64)
2646}
2647}
2648#[inline]
2649pub fn cwr(&self) -> __u16 {
2650unsafe { ::core::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) }
2651}
2652#[inline]
2653pub fn set_cwr(&mut self, val: __u16) {
2654unsafe {
2655let val: u16 = ::core::mem::transmute(val);
2656self._bitfield_1.set(15usize, 1u8, val as u64)
2657}
2658}
2659#[inline]
2660pub unsafe fn cwr_raw(this: *const Self) -> __u16 {
2661unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 15usize, 1u8) as u16) }
2662}
2663#[inline]
2664pub unsafe fn set_cwr_raw(this: *mut Self, val: __u16) {
2665unsafe {
2666let val: u16 = ::core::mem::transmute(val);
2667<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 15usize, 1u8, val as u64)
2668}
2669}
2670#[inline]
2671pub 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]> {
2672let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default();
2673__bindgen_bitfield_unit.set(0usize, 4u8, {
2674let res1: u16 = unsafe { ::core::mem::transmute(res1) };
2675res1 as u64
2676});
2677__bindgen_bitfield_unit.set(4usize, 4u8, {
2678let doff: u16 = unsafe { ::core::mem::transmute(doff) };
2679doff as u64
2680});
2681__bindgen_bitfield_unit.set(8usize, 1u8, {
2682let fin: u16 = unsafe { ::core::mem::transmute(fin) };
2683fin as u64
2684});
2685__bindgen_bitfield_unit.set(9usize, 1u8, {
2686let syn: u16 = unsafe { ::core::mem::transmute(syn) };
2687syn as u64
2688});
2689__bindgen_bitfield_unit.set(10usize, 1u8, {
2690let rst: u16 = unsafe { ::core::mem::transmute(rst) };
2691rst as u64
2692});
2693__bindgen_bitfield_unit.set(11usize, 1u8, {
2694let psh: u16 = unsafe { ::core::mem::transmute(psh) };
2695psh as u64
2696});
2697__bindgen_bitfield_unit.set(12usize, 1u8, {
2698let ack: u16 = unsafe { ::core::mem::transmute(ack) };
2699ack as u64
2700});
2701__bindgen_bitfield_unit.set(13usize, 1u8, {
2702let urg: u16 = unsafe { ::core::mem::transmute(urg) };
2703urg as u64
2704});
2705__bindgen_bitfield_unit.set(14usize, 1u8, {
2706let ece: u16 = unsafe { ::core::mem::transmute(ece) };
2707ece as u64
2708});
2709__bindgen_bitfield_unit.set(15usize, 1u8, {
2710let cwr: u16 = unsafe { ::core::mem::transmute(cwr) };
2711cwr as u64
2712});
2713__bindgen_bitfield_unit
2714}
2715}
2716impl tcp_info {
2717#[inline]
2718pub fn tcpi_snd_wscale(&self) -> __u8 {
2719unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) }
2720}
2721#[inline]
2722pub fn set_tcpi_snd_wscale(&mut self, val: __u8) {
2723unsafe {
2724let val: u8 = ::core::mem::transmute(val);
2725self._bitfield_1.set(0usize, 4u8, val as u64)
2726}
2727}
2728#[inline]
2729pub unsafe fn tcpi_snd_wscale_raw(this: *const Self) -> __u8 {
2730unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) }
2731}
2732#[inline]
2733pub unsafe fn set_tcpi_snd_wscale_raw(this: *mut Self, val: __u8) {
2734unsafe {
2735let val: u8 = ::core::mem::transmute(val);
2736<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64)
2737}
2738}
2739#[inline]
2740pub fn tcpi_rcv_wscale(&self) -> __u8 {
2741unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) }
2742}
2743#[inline]
2744pub fn set_tcpi_rcv_wscale(&mut self, val: __u8) {
2745unsafe {
2746let val: u8 = ::core::mem::transmute(val);
2747self._bitfield_1.set(4usize, 4u8, val as u64)
2748}
2749}
2750#[inline]
2751pub unsafe fn tcpi_rcv_wscale_raw(this: *const Self) -> __u8 {
2752unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) }
2753}
2754#[inline]
2755pub unsafe fn set_tcpi_rcv_wscale_raw(this: *mut Self, val: __u8) {
2756unsafe {
2757let val: u8 = ::core::mem::transmute(val);
2758<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64)
2759}
2760}
2761#[inline]
2762pub fn tcpi_delivery_rate_app_limited(&self) -> __u8 {
2763unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u8) }
2764}
2765#[inline]
2766pub fn set_tcpi_delivery_rate_app_limited(&mut self, val: __u8) {
2767unsafe {
2768let val: u8 = ::core::mem::transmute(val);
2769self._bitfield_1.set(8usize, 1u8, val as u64)
2770}
2771}
2772#[inline]
2773pub unsafe fn tcpi_delivery_rate_app_limited_raw(this: *const Self) -> __u8 {
2774unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 8usize, 1u8) as u8) }
2775}
2776#[inline]
2777pub unsafe fn set_tcpi_delivery_rate_app_limited_raw(this: *mut Self, val: __u8) {
2778unsafe {
2779let val: u8 = ::core::mem::transmute(val);
2780<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 8usize, 1u8, val as u64)
2781}
2782}
2783#[inline]
2784pub fn tcpi_fastopen_client_fail(&self) -> __u8 {
2785unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 2u8) as u8) }
2786}
2787#[inline]
2788pub fn set_tcpi_fastopen_client_fail(&mut self, val: __u8) {
2789unsafe {
2790let val: u8 = ::core::mem::transmute(val);
2791self._bitfield_1.set(9usize, 2u8, val as u64)
2792}
2793}
2794#[inline]
2795pub unsafe fn tcpi_fastopen_client_fail_raw(this: *const Self) -> __u8 {
2796unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 9usize, 2u8) as u8) }
2797}
2798#[inline]
2799pub unsafe fn set_tcpi_fastopen_client_fail_raw(this: *mut Self, val: __u8) {
2800unsafe {
2801let val: u8 = ::core::mem::transmute(val);
2802<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 9usize, 2u8, val as u64)
2803}
2804}
2805#[inline]
2806pub 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]> {
2807let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default();
2808__bindgen_bitfield_unit.set(0usize, 4u8, {
2809let tcpi_snd_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_snd_wscale) };
2810tcpi_snd_wscale as u64
2811});
2812__bindgen_bitfield_unit.set(4usize, 4u8, {
2813let tcpi_rcv_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_rcv_wscale) };
2814tcpi_rcv_wscale as u64
2815});
2816__bindgen_bitfield_unit.set(8usize, 1u8, {
2817let tcpi_delivery_rate_app_limited: u8 = unsafe { ::core::mem::transmute(tcpi_delivery_rate_app_limited) };
2818tcpi_delivery_rate_app_limited as u64
2819});
2820__bindgen_bitfield_unit.set(9usize, 2u8, {
2821let tcpi_fastopen_client_fail: u8 = unsafe { ::core::mem::transmute(tcpi_fastopen_client_fail) };
2822tcpi_fastopen_client_fail as u64
2823});
2824__bindgen_bitfield_unit
2825}
2826}
2827impl tcp_ao_add {
2828#[inline]
2829pub fn set_current(&self) -> __u32 {
2830unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
2831}
2832#[inline]
2833pub fn set_set_current(&mut self, val: __u32) {
2834unsafe {
2835let val: u32 = ::core::mem::transmute(val);
2836self._bitfield_1.set(0usize, 1u8, val as u64)
2837}
2838}
2839#[inline]
2840pub unsafe fn set_current_raw(this: *const Self) -> __u32 {
2841unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) }
2842}
2843#[inline]
2844pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) {
2845unsafe {
2846let val: u32 = ::core::mem::transmute(val);
2847<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64)
2848}
2849}
2850#[inline]
2851pub fn set_rnext(&self) -> __u32 {
2852unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
2853}
2854#[inline]
2855pub fn set_set_rnext(&mut self, val: __u32) {
2856unsafe {
2857let val: u32 = ::core::mem::transmute(val);
2858self._bitfield_1.set(1usize, 1u8, val as u64)
2859}
2860}
2861#[inline]
2862pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 {
2863unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) }
2864}
2865#[inline]
2866pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) {
2867unsafe {
2868let val: u32 = ::core::mem::transmute(val);
2869<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64)
2870}
2871}
2872#[inline]
2873pub fn reserved(&self) -> __u32 {
2874unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) }
2875}
2876#[inline]
2877pub fn set_reserved(&mut self, val: __u32) {
2878unsafe {
2879let val: u32 = ::core::mem::transmute(val);
2880self._bitfield_1.set(2usize, 30u8, val as u64)
2881}
2882}
2883#[inline]
2884pub unsafe fn reserved_raw(this: *const Self) -> __u32 {
2885unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 30u8) as u32) }
2886}
2887#[inline]
2888pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) {
2889unsafe {
2890let val: u32 = ::core::mem::transmute(val);
2891<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 30u8, val as u64)
2892}
2893}
2894#[inline]
2895pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> {
2896let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
2897__bindgen_bitfield_unit.set(0usize, 1u8, {
2898let set_current: u32 = unsafe { ::core::mem::transmute(set_current) };
2899set_current as u64
2900});
2901__bindgen_bitfield_unit.set(1usize, 1u8, {
2902let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) };
2903set_rnext as u64
2904});
2905__bindgen_bitfield_unit.set(2usize, 30u8, {
2906let reserved: u32 = unsafe { ::core::mem::transmute(reserved) };
2907reserved as u64
2908});
2909__bindgen_bitfield_unit
2910}
2911}
2912impl tcp_ao_del {
2913#[inline]
2914pub fn set_current(&self) -> __u32 {
2915unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
2916}
2917#[inline]
2918pub fn set_set_current(&mut self, val: __u32) {
2919unsafe {
2920let val: u32 = ::core::mem::transmute(val);
2921self._bitfield_1.set(0usize, 1u8, val as u64)
2922}
2923}
2924#[inline]
2925pub unsafe fn set_current_raw(this: *const Self) -> __u32 {
2926unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) }
2927}
2928#[inline]
2929pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) {
2930unsafe {
2931let val: u32 = ::core::mem::transmute(val);
2932<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64)
2933}
2934}
2935#[inline]
2936pub fn set_rnext(&self) -> __u32 {
2937unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
2938}
2939#[inline]
2940pub fn set_set_rnext(&mut self, val: __u32) {
2941unsafe {
2942let val: u32 = ::core::mem::transmute(val);
2943self._bitfield_1.set(1usize, 1u8, val as u64)
2944}
2945}
2946#[inline]
2947pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 {
2948unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) }
2949}
2950#[inline]
2951pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) {
2952unsafe {
2953let val: u32 = ::core::mem::transmute(val);
2954<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64)
2955}
2956}
2957#[inline]
2958pub fn del_async(&self) -> __u32 {
2959unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
2960}
2961#[inline]
2962pub fn set_del_async(&mut self, val: __u32) {
2963unsafe {
2964let val: u32 = ::core::mem::transmute(val);
2965self._bitfield_1.set(2usize, 1u8, val as u64)
2966}
2967}
2968#[inline]
2969pub unsafe fn del_async_raw(this: *const Self) -> __u32 {
2970unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u32) }
2971}
2972#[inline]
2973pub unsafe fn set_del_async_raw(this: *mut Self, val: __u32) {
2974unsafe {
2975let val: u32 = ::core::mem::transmute(val);
2976<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64)
2977}
2978}
2979#[inline]
2980pub fn reserved(&self) -> __u32 {
2981unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 29u8) as u32) }
2982}
2983#[inline]
2984pub fn set_reserved(&mut self, val: __u32) {
2985unsafe {
2986let val: u32 = ::core::mem::transmute(val);
2987self._bitfield_1.set(3usize, 29u8, val as u64)
2988}
2989}
2990#[inline]
2991pub unsafe fn reserved_raw(this: *const Self) -> __u32 {
2992unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 29u8) as u32) }
2993}
2994#[inline]
2995pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) {
2996unsafe {
2997let val: u32 = ::core::mem::transmute(val);
2998<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 29u8, val as u64)
2999}
3000}
3001#[inline]
3002pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, del_async: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> {
3003let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
3004__bindgen_bitfield_unit.set(0usize, 1u8, {
3005let set_current: u32 = unsafe { ::core::mem::transmute(set_current) };
3006set_current as u64
3007});
3008__bindgen_bitfield_unit.set(1usize, 1u8, {
3009let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) };
3010set_rnext as u64
3011});
3012__bindgen_bitfield_unit.set(2usize, 1u8, {
3013let del_async: u32 = unsafe { ::core::mem::transmute(del_async) };
3014del_async as u64
3015});
3016__bindgen_bitfield_unit.set(3usize, 29u8, {
3017let reserved: u32 = unsafe { ::core::mem::transmute(reserved) };
3018reserved as u64
3019});
3020__bindgen_bitfield_unit
3021}
3022}
3023impl tcp_ao_info_opt {
3024#[inline]
3025pub fn set_current(&self) -> __u32 {
3026unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
3027}
3028#[inline]
3029pub fn set_set_current(&mut self, val: __u32) {
3030unsafe {
3031let val: u32 = ::core::mem::transmute(val);
3032self._bitfield_1.set(0usize, 1u8, val as u64)
3033}
3034}
3035#[inline]
3036pub unsafe fn set_current_raw(this: *const Self) -> __u32 {
3037unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) }
3038}
3039#[inline]
3040pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) {
3041unsafe {
3042let val: u32 = ::core::mem::transmute(val);
3043<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64)
3044}
3045}
3046#[inline]
3047pub fn set_rnext(&self) -> __u32 {
3048unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
3049}
3050#[inline]
3051pub fn set_set_rnext(&mut self, val: __u32) {
3052unsafe {
3053let val: u32 = ::core::mem::transmute(val);
3054self._bitfield_1.set(1usize, 1u8, val as u64)
3055}
3056}
3057#[inline]
3058pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 {
3059unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) }
3060}
3061#[inline]
3062pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) {
3063unsafe {
3064let val: u32 = ::core::mem::transmute(val);
3065<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64)
3066}
3067}
3068#[inline]
3069pub fn ao_required(&self) -> __u32 {
3070unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
3071}
3072#[inline]
3073pub fn set_ao_required(&mut self, val: __u32) {
3074unsafe {
3075let val: u32 = ::core::mem::transmute(val);
3076self._bitfield_1.set(2usize, 1u8, val as u64)
3077}
3078}
3079#[inline]
3080pub unsafe fn ao_required_raw(this: *const Self) -> __u32 {
3081unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u32) }
3082}
3083#[inline]
3084pub unsafe fn set_ao_required_raw(this: *mut Self, val: __u32) {
3085unsafe {
3086let val: u32 = ::core::mem::transmute(val);
3087<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64)
3088}
3089}
3090#[inline]
3091pub fn set_counters(&self) -> __u32 {
3092unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
3093}
3094#[inline]
3095pub fn set_set_counters(&mut self, val: __u32) {
3096unsafe {
3097let val: u32 = ::core::mem::transmute(val);
3098self._bitfield_1.set(3usize, 1u8, val as u64)
3099}
3100}
3101#[inline]
3102pub unsafe fn set_counters_raw(this: *const Self) -> __u32 {
3103unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 1u8) as u32) }
3104}
3105#[inline]
3106pub unsafe fn set_set_counters_raw(this: *mut Self, val: __u32) {
3107unsafe {
3108let val: u32 = ::core::mem::transmute(val);
3109<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 1u8, val as u64)
3110}
3111}
3112#[inline]
3113pub fn accept_icmps(&self) -> __u32 {
3114unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) }
3115}
3116#[inline]
3117pub fn set_accept_icmps(&mut self, val: __u32) {
3118unsafe {
3119let val: u32 = ::core::mem::transmute(val);
3120self._bitfield_1.set(4usize, 1u8, val as u64)
3121}
3122}
3123#[inline]
3124pub unsafe fn accept_icmps_raw(this: *const Self) -> __u32 {
3125unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 1u8) as u32) }
3126}
3127#[inline]
3128pub unsafe fn set_accept_icmps_raw(this: *mut Self, val: __u32) {
3129unsafe {
3130let val: u32 = ::core::mem::transmute(val);
3131<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 1u8, val as u64)
3132}
3133}
3134#[inline]
3135pub fn reserved(&self) -> __u32 {
3136unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 27u8) as u32) }
3137}
3138#[inline]
3139pub fn set_reserved(&mut self, val: __u32) {
3140unsafe {
3141let val: u32 = ::core::mem::transmute(val);
3142self._bitfield_1.set(5usize, 27u8, val as u64)
3143}
3144}
3145#[inline]
3146pub unsafe fn reserved_raw(this: *const Self) -> __u32 {
3147unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 5usize, 27u8) as u32) }
3148}
3149#[inline]
3150pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) {
3151unsafe {
3152let val: u32 = ::core::mem::transmute(val);
3153<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 5usize, 27u8, val as u64)
3154}
3155}
3156#[inline]
3157pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, ao_required: __u32, set_counters: __u32, accept_icmps: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> {
3158let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
3159__bindgen_bitfield_unit.set(0usize, 1u8, {
3160let set_current: u32 = unsafe { ::core::mem::transmute(set_current) };
3161set_current as u64
3162});
3163__bindgen_bitfield_unit.set(1usize, 1u8, {
3164let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) };
3165set_rnext as u64
3166});
3167__bindgen_bitfield_unit.set(2usize, 1u8, {
3168let ao_required: u32 = unsafe { ::core::mem::transmute(ao_required) };
3169ao_required as u64
3170});
3171__bindgen_bitfield_unit.set(3usize, 1u8, {
3172let set_counters: u32 = unsafe { ::core::mem::transmute(set_counters) };
3173set_counters as u64
3174});
3175__bindgen_bitfield_unit.set(4usize, 1u8, {
3176let accept_icmps: u32 = unsafe { ::core::mem::transmute(accept_icmps) };
3177accept_icmps as u64
3178});
3179__bindgen_bitfield_unit.set(5usize, 27u8, {
3180let reserved: u32 = unsafe { ::core::mem::transmute(reserved) };
3181reserved as u64
3182});
3183__bindgen_bitfield_unit
3184}
3185}
3186impl tcp_ao_getsockopt {
3187#[inline]
3188pub fn is_current(&self) -> __u16 {
3189unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) }
3190}
3191#[inline]
3192pub fn set_is_current(&mut self, val: __u16) {
3193unsafe {
3194let val: u16 = ::core::mem::transmute(val);
3195self._bitfield_1.set(0usize, 1u8, val as u64)
3196}
3197}
3198#[inline]
3199pub unsafe fn is_current_raw(this: *const Self) -> __u16 {
3200unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u16) }
3201}
3202#[inline]
3203pub unsafe fn set_is_current_raw(this: *mut Self, val: __u16) {
3204unsafe {
3205let val: u16 = ::core::mem::transmute(val);
3206<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64)
3207}
3208}
3209#[inline]
3210pub fn is_rnext(&self) -> __u16 {
3211unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u16) }
3212}
3213#[inline]
3214pub fn set_is_rnext(&mut self, val: __u16) {
3215unsafe {
3216let val: u16 = ::core::mem::transmute(val);
3217self._bitfield_1.set(1usize, 1u8, val as u64)
3218}
3219}
3220#[inline]
3221pub unsafe fn is_rnext_raw(this: *const Self) -> __u16 {
3222unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u16) }
3223}
3224#[inline]
3225pub unsafe fn set_is_rnext_raw(this: *mut Self, val: __u16) {
3226unsafe {
3227let val: u16 = ::core::mem::transmute(val);
3228<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64)
3229}
3230}
3231#[inline]
3232pub fn get_all(&self) -> __u16 {
3233unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u16) }
3234}
3235#[inline]
3236pub fn set_get_all(&mut self, val: __u16) {
3237unsafe {
3238let val: u16 = ::core::mem::transmute(val);
3239self._bitfield_1.set(2usize, 1u8, val as u64)
3240}
3241}
3242#[inline]
3243pub unsafe fn get_all_raw(this: *const Self) -> __u16 {
3244unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u16) }
3245}
3246#[inline]
3247pub unsafe fn set_get_all_raw(this: *mut Self, val: __u16) {
3248unsafe {
3249let val: u16 = ::core::mem::transmute(val);
3250<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64)
3251}
3252}
3253#[inline]
3254pub fn reserved(&self) -> __u16 {
3255unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 13u8) as u16) }
3256}
3257#[inline]
3258pub fn set_reserved(&mut self, val: __u16) {
3259unsafe {
3260let val: u16 = ::core::mem::transmute(val);
3261self._bitfield_1.set(3usize, 13u8, val as u64)
3262}
3263}
3264#[inline]
3265pub unsafe fn reserved_raw(this: *const Self) -> __u16 {
3266unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 13u8) as u16) }
3267}
3268#[inline]
3269pub unsafe fn set_reserved_raw(this: *mut Self, val: __u16) {
3270unsafe {
3271let val: u16 = ::core::mem::transmute(val);
3272<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 13u8, val as u64)
3273}
3274}
3275#[inline]
3276pub fn new_bitfield_1(is_current: __u16, is_rnext: __u16, get_all: __u16, reserved: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> {
3277let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default();
3278__bindgen_bitfield_unit.set(0usize, 1u8, {
3279let is_current: u16 = unsafe { ::core::mem::transmute(is_current) };
3280is_current as u64
3281});
3282__bindgen_bitfield_unit.set(1usize, 1u8, {
3283let is_rnext: u16 = unsafe { ::core::mem::transmute(is_rnext) };
3284is_rnext as u64
3285});
3286__bindgen_bitfield_unit.set(2usize, 1u8, {
3287let get_all: u16 = unsafe { ::core::mem::transmute(get_all) };
3288get_all as u64
3289});
3290__bindgen_bitfield_unit.set(3usize, 13u8, {
3291let reserved: u16 = unsafe { ::core::mem::transmute(reserved) };
3292reserved as u64
3293});
3294__bindgen_bitfield_unit
3295}
3296}
3297impl nf_inet_hooks {
3298pub const NF_INET_INGRESS: nf_inet_hooks = nf_inet_hooks::NF_INET_NUMHOOKS;
3299}
3300impl nf_ip_hook_priorities {
3301pub const NF_IP_PRI_LAST: nf_ip_hook_priorities = nf_ip_hook_priorities::NF_IP_PRI_CONNTRACK_CONFIRM;
3302}