DPDK  24.03.0
rte_tls.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(C) 2023 Marvell.
3  */
4 
5 #ifndef RTE_TLS_H
6 #define RTE_TLS_H
7 
14 #include <rte_byteorder.h>
15 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19 
20 #define RTE_TLS_TYPE_INVALID 0
21 #define RTE_TLS_TYPE_CHANGE_CIPHER_SPEC 20
22 #define RTE_TLS_TYPE_ALERT 21
23 #define RTE_TLS_TYPE_HANDSHAKE 22
24 #define RTE_TLS_TYPE_APPDATA 23
25 #define RTE_TLS_TYPE_HEARTBEAT 24
26 #define RTE_TLS_TYPE_MAX 255
28 #define RTE_TLS_VERSION_1_2 0x0303
29 #define RTE_TLS_VERSION_1_3 0x0304
34 __extension__
35 struct rte_tls_hdr {
37  uint8_t type;
42 } __rte_packed;
43 
44 #ifdef __cplusplus
45 }
46 #endif
47 
48 #endif /* RTE_TLS_H */
uint8_t type
Definition: rte_tls.h:37
#define __rte_packed
Definition: rte_common.h:102
rte_be16_t length
Definition: rte_tls.h:41
rte_be16_t version
Definition: rte_tls.h:39
uint16_t rte_be16_t