Blog
Community
Development
Documentation
CNDP
22.08.0
Main Page
Related Pages
Data Structures
Data Structures
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
Functions
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
x
Functions
_
c
d
e
f
g
h
i
j
k
l
m
n
p
s
t
u
v
x
Variables
Typedefs
a
b
c
h
i
j
l
m
o
p
s
t
u
v
Enumerations
Enumerator
_
a
c
d
e
j
m
p
r
s
t
u
Macros
_
a
c
d
e
h
i
j
k
l
m
o
p
r
t
u
v
x
Examples
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
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_ */
cne_byteorder.h
cne_gtp_hdr
Definition:
cne_gtp.h:30
cne_gtp_hdr::teid
uint32_t teid
Definition:
cne_gtp.h:34
cne_gtp_hdr::gtp_hdr_info
uint8_t gtp_hdr_info
Definition:
cne_gtp.h:31
cne_gtp_hdr::plen
uint16_t plen
Definition:
cne_gtp.h:33
cne_gtp_hdr::msg_type
uint8_t msg_type
Definition:
cne_gtp.h:32
lib
include
net
cne_gtp.h
Generated by
1.9.1