DPDK
25.03.0
Toggle main menu visibility
Main Page
Related Pages
Data Structures
Data Structures
Data Fields
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
Functions
_
g
r
t
Variables
c
r
Typedefs
a
c
d
e
h
l
m
p
r
s
t
Enumerations
d
r
Enumerator
c
e
f
r
s
w
Macros
_
b
c
i
l
m
o
p
r
s
t
u
v
Examples
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
lib
net
rte_dtls.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_DTLS_H
6
#define RTE_DTLS_H
7
14
#include <
rte_byteorder.h
>
15
16
#define RTE_DTLS_TYPE_INVALID 0
17
#define RTE_DTLS_TYPE_CHANGE_CIPHER_SPEC 20
18
#define RTE_DTLS_TYPE_ALERT 21
19
#define RTE_DTLS_TYPE_HANDSHAKE 22
20
#define RTE_DTLS_TYPE_APPDATA 23
21
#define RTE_DTLS_TYPE_HEARTBEAT 24
22
#define RTE_DTLS_TYPE_CIPHERTEXT_WITH_CID 25
23
#define RTE_DTLS_TYPE_ACK 26
24
#define RTE_DTLS_TYPE_MAX 255
26
#define RTE_DTLS_VERSION_1_2 0xFEFD
27
#define RTE_DTLS_VERSION_1_3 0xFEFC
32
__extension__
33
struct
__rte_packed_begin
rte_dtls_hdr
{
35
uint8_t
type
;
37
rte_be16_t
version
;
38
#if RTE_BYTE_ORDER == RTE_LITTLE_ENDIAN
40
uint64_t
sequence_number
: 48;
42
uint64_t
epoch
: 16;
43
#elif RTE_BYTE_ORDER == RTE_BIG_ENDIAN
45
uint64_t epoch : 16;
47
uint64_t sequence_number : 48;
48
#endif
50
rte_be16_t
length
;
51
} __rte_packed_end;
52
53
#endif
/* RTE_DTLS_H */
rte_byteorder.h
rte_be16_t
uint16_t rte_be16_t
Definition:
rte_byteorder.h:116
__rte_packed_begin
#define __rte_packed_begin
Definition:
rte_common.h:124
rte_dtls_hdr
Definition:
rte_dtls.h:33
rte_dtls_hdr::type
uint8_t type
Definition:
rte_dtls.h:35
rte_dtls_hdr::epoch
uint64_t epoch
Definition:
rte_dtls.h:42
rte_dtls_hdr::sequence_number
uint64_t sequence_number
Definition:
rte_dtls.h:40
rte_dtls_hdr::length
rte_be16_t length
Definition:
rte_dtls.h:50
rte_dtls_hdr::version
rte_be16_t version
Definition:
rte_dtls.h:37
Generated by
1.9.4