|
| 1 | +/* automatically generated by rust-bindgen */ |
| 2 | + |
| 3 | + |
| 4 | +#![allow(non_snake_case)] |
| 5 | + |
| 6 | + |
| 7 | +#[repr(C)] |
| 8 | +pub struct __BindgenUnionField<T>(::std::marker::PhantomData<T>); |
| 9 | +impl <T> __BindgenUnionField<T> { |
| 10 | + #[inline] |
| 11 | + pub fn new() -> Self { __BindgenUnionField(::std::marker::PhantomData) } |
| 12 | + #[inline] |
| 13 | + pub unsafe fn as_ref(&self) -> &T { ::std::mem::transmute(self) } |
| 14 | + #[inline] |
| 15 | + pub unsafe fn as_mut(&mut self) -> &mut T { ::std::mem::transmute(self) } |
| 16 | +} |
| 17 | +impl <T> ::std::default::Default for __BindgenUnionField<T> { |
| 18 | + #[inline] |
| 19 | + fn default() -> Self { Self::new() } |
| 20 | +} |
| 21 | +impl <T> ::std::clone::Clone for __BindgenUnionField<T> { |
| 22 | + #[inline] |
| 23 | + fn clone(&self) -> Self { Self::new() } |
| 24 | +} |
| 25 | +impl <T> ::std::marker::Copy for __BindgenUnionField<T> { } |
| 26 | +impl <T> ::std::fmt::Debug for __BindgenUnionField<T> { |
| 27 | + fn fmt(&self, fmt: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
| 28 | + fmt.write_str("__BindgenUnionField") |
| 29 | + } |
| 30 | +} |
| 31 | +#[repr(C)] |
| 32 | +#[derive(Debug, Copy)] |
| 33 | +pub struct rte_ipv4_tuple { |
| 34 | + pub src_addr: u32, |
| 35 | + pub dst_addr: u32, |
| 36 | + pub __bindgen_anon_1: rte_ipv4_tuple__bindgen_ty_1, |
| 37 | +} |
| 38 | +#[repr(C)] |
| 39 | +#[derive(Debug, Copy)] |
| 40 | +pub struct rte_ipv4_tuple__bindgen_ty_1 { |
| 41 | + pub __bindgen_anon_1: __BindgenUnionField<rte_ipv4_tuple__bindgen_ty_1__bindgen_ty_1>, |
| 42 | + pub sctp_tag: __BindgenUnionField<u32>, |
| 43 | + pub bindgen_union_field: u32, |
| 44 | +} |
| 45 | +#[repr(C)] |
| 46 | +#[derive(Debug, Copy)] |
| 47 | +pub struct rte_ipv4_tuple__bindgen_ty_1__bindgen_ty_1 { |
| 48 | + pub dport: u16, |
| 49 | + pub sport: u16, |
| 50 | +} |
| 51 | +#[test] |
| 52 | +fn bindgen_test_layout_rte_ipv4_tuple__bindgen_ty_1__bindgen_ty_1() { |
| 53 | + assert_eq!(::std::mem::size_of::<rte_ipv4_tuple__bindgen_ty_1__bindgen_ty_1>() |
| 54 | + , 4usize); |
| 55 | + assert_eq!(::std::mem::align_of::<rte_ipv4_tuple__bindgen_ty_1__bindgen_ty_1>() |
| 56 | + , 2usize); |
| 57 | +} |
| 58 | +impl Clone for rte_ipv4_tuple__bindgen_ty_1__bindgen_ty_1 { |
| 59 | + fn clone(&self) -> Self { *self } |
| 60 | +} |
| 61 | +#[test] |
| 62 | +fn bindgen_test_layout_rte_ipv4_tuple__bindgen_ty_1() { |
| 63 | + assert_eq!(::std::mem::size_of::<rte_ipv4_tuple__bindgen_ty_1>() , |
| 64 | + 4usize); |
| 65 | + assert_eq!(::std::mem::align_of::<rte_ipv4_tuple__bindgen_ty_1>() , |
| 66 | + 4usize); |
| 67 | +} |
| 68 | +impl Clone for rte_ipv4_tuple__bindgen_ty_1 { |
| 69 | + fn clone(&self) -> Self { *self } |
| 70 | +} |
| 71 | +#[test] |
| 72 | +fn bindgen_test_layout_rte_ipv4_tuple() { |
| 73 | + assert_eq!(::std::mem::size_of::<rte_ipv4_tuple>() , 12usize); |
| 74 | + assert_eq!(::std::mem::align_of::<rte_ipv4_tuple>() , 4usize); |
| 75 | +} |
| 76 | +impl Clone for rte_ipv4_tuple { |
| 77 | + fn clone(&self) -> Self { *self } |
| 78 | +} |
| 79 | +#[repr(C)] |
| 80 | +#[derive(Debug, Copy)] |
| 81 | +pub struct rte_ipv6_tuple { |
| 82 | + pub src_addr: [u8; 16usize], |
| 83 | + pub dst_addr: [u8; 16usize], |
| 84 | + pub __bindgen_anon_1: rte_ipv6_tuple__bindgen_ty_1, |
| 85 | +} |
| 86 | +#[repr(C)] |
| 87 | +#[derive(Debug, Copy)] |
| 88 | +pub struct rte_ipv6_tuple__bindgen_ty_1 { |
| 89 | + pub __bindgen_anon_1: __BindgenUnionField<rte_ipv6_tuple__bindgen_ty_1__bindgen_ty_1>, |
| 90 | + pub sctp_tag: __BindgenUnionField<u32>, |
| 91 | + pub bindgen_union_field: u32, |
| 92 | +} |
| 93 | +#[repr(C)] |
| 94 | +#[derive(Debug, Copy)] |
| 95 | +pub struct rte_ipv6_tuple__bindgen_ty_1__bindgen_ty_1 { |
| 96 | + pub dport: u16, |
| 97 | + pub sport: u16, |
| 98 | +} |
| 99 | +#[test] |
| 100 | +fn bindgen_test_layout_rte_ipv6_tuple__bindgen_ty_1__bindgen_ty_1() { |
| 101 | + assert_eq!(::std::mem::size_of::<rte_ipv6_tuple__bindgen_ty_1__bindgen_ty_1>() |
| 102 | + , 4usize); |
| 103 | + assert_eq!(::std::mem::align_of::<rte_ipv6_tuple__bindgen_ty_1__bindgen_ty_1>() |
| 104 | + , 2usize); |
| 105 | +} |
| 106 | +impl Clone for rte_ipv6_tuple__bindgen_ty_1__bindgen_ty_1 { |
| 107 | + fn clone(&self) -> Self { *self } |
| 108 | +} |
| 109 | +#[test] |
| 110 | +fn bindgen_test_layout_rte_ipv6_tuple__bindgen_ty_1() { |
| 111 | + assert_eq!(::std::mem::size_of::<rte_ipv6_tuple__bindgen_ty_1>() , |
| 112 | + 4usize); |
| 113 | + assert_eq!(::std::mem::align_of::<rte_ipv6_tuple__bindgen_ty_1>() , |
| 114 | + 4usize); |
| 115 | +} |
| 116 | +impl Clone for rte_ipv6_tuple__bindgen_ty_1 { |
| 117 | + fn clone(&self) -> Self { *self } |
| 118 | +} |
| 119 | +#[test] |
| 120 | +fn bindgen_test_layout_rte_ipv6_tuple() { |
| 121 | + assert_eq!(::std::mem::size_of::<rte_ipv6_tuple>() , 36usize); |
| 122 | + assert_eq!(::std::mem::align_of::<rte_ipv6_tuple>() , 4usize); |
| 123 | +} |
| 124 | +impl Clone for rte_ipv6_tuple { |
| 125 | + fn clone(&self) -> Self { *self } |
| 126 | +} |
| 127 | +#[repr(C)] |
| 128 | +#[derive(Copy)] |
| 129 | +pub struct rte_thash_tuple { |
| 130 | + pub v4: __BindgenUnionField<rte_ipv4_tuple>, |
| 131 | + pub v6: __BindgenUnionField<rte_ipv6_tuple>, |
| 132 | + pub bindgen_union_field: [u8; 48usize], |
| 133 | +} |
| 134 | +impl Clone for rte_thash_tuple { |
| 135 | + fn clone(&self) -> Self { *self } |
| 136 | +} |
0 commit comments