xref: /cloud-hypervisor/net_gen/src/ipv6.rs (revision 2b05753716936506ed440863fe6a29dfc7a427e2)
1 // Copyright © 2025 Cloud Hypervisor Authors
2 //
3 // SPDX-License-Identifier: Apache-2.0
4 
5 // bindgen /usr/include/linux/ipv6.h --no-layout-tests --constified-enum '*' --allowlist-type 'sockaddr_in6|in6_ifreq'
6 
7 /* automatically generated by rust-bindgen 0.71.1 */
8 
9 pub type __u8 = ::std::os::raw::c_uchar;
10 pub type __u16 = ::std::os::raw::c_ushort;
11 pub type __u32 = ::std::os::raw::c_uint;
12 pub type __be16 = __u16;
13 pub type __be32 = __u32;
14 #[repr(C)]
15 #[derive(Copy, Clone)]
16 pub struct in6_addr {
17     pub in6_u: in6_addr__bindgen_ty_1,
18 }
19 #[repr(C)]
20 #[derive(Copy, Clone)]
21 pub union in6_addr__bindgen_ty_1 {
22     pub u6_addr8: [__u8; 16usize],
23     pub u6_addr16: [__be16; 8usize],
24     pub u6_addr32: [__be32; 4usize],
25 }
26 #[repr(C)]
27 #[derive(Copy, Clone)]
28 pub struct sockaddr_in6 {
29     pub sin6_family: ::std::os::raw::c_ushort,
30     pub sin6_port: __be16,
31     pub sin6_flowinfo: __be32,
32     pub sin6_addr: in6_addr,
33     pub sin6_scope_id: __u32,
34 }
35 #[repr(C)]
36 #[derive(Copy, Clone)]
37 pub struct in6_ifreq {
38     pub ifr6_addr: in6_addr,
39     pub ifr6_prefixlen: __u32,
40     pub ifr6_ifindex: ::std::os::raw::c_int,
41 }
42