DPDK  21.11.7
rte_l2tpv2.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2021 Intel Corporation.
3  */
4 
5 #ifndef _RTE_L2TPV2_H_
6 #define _RTE_L2TPV2_H_
7 
74 #include <stdint.h>
75 #include <rte_byteorder.h>
76 
77 #ifdef __cplusplus
78 extern "C" {
79 #endif
80 
86  union {
89  __extension__
90  struct {
91 #if RTE_BYTE_ORDER == RTE_LITTLE_ENDIAN
92  uint16_t ver:4;
93  uint16_t res3:4;
94  uint16_t p:1;
95  uint16_t o:1;
96  uint16_t res2:1;
97  uint16_t s:1;
98  uint16_t res1:2;
99  uint16_t l:1;
100  uint16_t t:1;
101 #elif RTE_BYTE_ORDER == RTE_BIG_ENDIAN
102  uint16_t t:1;
103  uint16_t l:1;
104  uint16_t res1:2;
105  uint16_t s:1;
106  uint16_t res2:1;
107  uint16_t o:1;
108  uint16_t p:1;
109  uint16_t res3:4;
110  uint16_t ver:4;
111 #endif
112  };
113  };
114 };
115 
127  uint8_t *offset_padding;
128 } __rte_packed;
129 
140  uint8_t *offset_padding;
141 } __rte_packed;
142 
153  uint8_t *offset_padding;
154 };
155 
166 };
167 
175  uint8_t *offset_padding;
176 } __rte_packed;
177 
186 };
187 
195 };
196 
203 };
204 
210  struct rte_l2tpv2_common_hdr common;
211  union {
228  };
229 } __rte_packed;
230 
231 #ifdef __cplusplus
232 }
233 #endif
234 
235 #endif /* _RTE_L2TPV2_H_ */
#define __rte_packed
Definition: rte_common.h:86
rte_be16_t flags_version
Definition: rte_l2tpv2.h:88
#define RTE_STD_C11
Definition: rte_common.h:42
uint16_t rte_be16_t