blob: b4fb21cb8f6aa1d2a4f5fa2983ff399f98ea7ffc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2020 Marvell
*/
/**
* @file
*
* ODP GTP header
*/
#ifndef _ODPH_GTP_H_
#define _ODPH_GTP_H_
#ifdef __cplusplus
extern "C" {
#endif
#include <odp_api.h>
/**
* @addtogroup odph_protocols
* @{
*/
/**
* Simplified GTP protocol header.
* Contains 8-bit gtp_hdr_info, 8-bit msg_type,
* 16-bit plen, 32-bit teid.
* No optional fields and next extension header.
*/
typedef struct ODP_PACKED {
uint8_t gtp_hdr_info; /**< GTP header info */
uint8_t msg_type; /**< GTP message type */
odp_u16be_t plen; /**< Total payload length */
odp_u32be_t teid; /**< Tunnel endpoint ID */
} odph_gtphdr_t;
/** GTP header length */
#define ODPH_GTP_HLEN sizeof(odph_gtphdr_t)
/**
* @}
*/
#ifdef __cplusplus
}
#endif
#endif /* ODP_GTP_H_ */
|