CNDP  22.08.0
cne_gtp.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright (c) 1982, 1986, 1990, 1993
3  * The Regents of the University of California.
4  * Copyright (c) 2019-2022 Intel Corporation.
5  * All rights reserved.
6  */
7 
8 #ifndef _CNE_GTP_H_
9 #define _CNE_GTP_H_
10 
17 #include <stdint.h>
18 #include <cne_byteorder.h>
19 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 
30 struct cne_gtp_hdr {
31  uint8_t gtp_hdr_info;
32  uint8_t msg_type;
33  uint16_t plen;
34  uint32_t teid;
35 } __attribute__((__packed__));
36 
38 #define CNE_ETHER_GTP_HLEN (sizeof(struct cne_udp_hdr) + sizeof(struct cne_gtp_hdr))
39 /* GTP next protocol type */
40 #define CNE_GTP_TYPE_IPV4 0x40
41 #define CNE_GTP_TYPE_IPV6 0x60
42 /* GTP destination lport number */
43 #define CNE_GTPC_UDP_PORT 2123
44 #define CNE_GTPU_UDP_PORT 2152
46 #ifdef __cplusplus
47 }
48 #endif
49 
50 #endif /* CNE_GTP_H_ */
uint32_t teid
Definition: cne_gtp.h:34
uint8_t gtp_hdr_info
Definition: cne_gtp.h:31
uint16_t plen
Definition: cne_gtp.h:33
uint8_t msg_type
Definition: cne_gtp.h:32