• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // bindgen-flags: --rust-target 1.0 --with-derive-hash --with-derive-partialeq --with-derive-eq
2 
3 typedef unsigned char uint8_t;
4 typedef unsigned short uint16_t;
5 typedef unsigned int uint32_t;
6 
7 struct rte_ipv4_tuple {
8         uint32_t        src_addr;
9         uint32_t        dst_addr;
10         union {
11                 struct {
12                         uint16_t dport;
13                         uint16_t sport;
14                 };
15                 uint32_t        sctp_tag;
16         };
17 };
18 
19 struct rte_ipv6_tuple {
20         uint8_t         src_addr[16];
21         uint8_t         dst_addr[16];
22         union {
23                 struct {
24                         uint16_t dport;
25                         uint16_t sport;
26                 };
27                 uint32_t        sctp_tag;
28         };
29 };
30 
31 union rte_thash_tuple {
32         struct rte_ipv4_tuple   v4;
33         struct rte_ipv6_tuple   v6;
34 } __attribute__((aligned(16)));
35