1 /* SPDX-License-Identifier: GPL-2.0 */
5 /* General GTP protocol related definitions. */
8 #define GTP1U_PORT 2152
10 /* GTP messages types */
11 #define GTP_ECHO_REQ 1 /* Echo Request */
12 #define GTP_ECHO_RSP 2 /* Echo Response */
15 #define GTPIE_RECOVERY 14
17 struct gtp0_header { /* According to GSM TS 09.60. */
26 } __attribute__ ((packed));
28 struct gtp1_header { /* According to 3GPP TS 29.060. */
33 } __attribute__ ((packed));
35 struct gtp1_header_long { /* According to 3GPP TS 29.060. */
45 /* GTP Information Element */
52 struct gtp0_header gtp0_h;
57 struct gtp1_header_long gtp1u_h;
61 struct gtp_pdu_session_info { /* According to 3GPP TS 38.415. */
66 #define GTP1_F_NPDU 0x01
67 #define GTP1_F_SEQ 0x02
68 #define GTP1_F_EXTHDR 0x04
69 #define GTP1_F_MASK 0x07