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