Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
36 lines
633 B
C
36 lines
633 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _GTP_H_
|
|
#define _GTP_H_
|
|
|
|
/* General GTP protocol related definitions. */
|
|
|
|
#define GTP0_PORT 3386
|
|
#define GTP1U_PORT 2152
|
|
|
|
#define GTP_TPDU 255
|
|
|
|
struct gtp0_header { /* According to GSM TS 09.60. */
|
|
__u8 flags;
|
|
__u8 type;
|
|
__be16 length;
|
|
__be16 seq;
|
|
__be16 flow;
|
|
__u8 number;
|
|
__u8 spare[3];
|
|
__be64 tid;
|
|
} __attribute__ ((packed));
|
|
|
|
struct gtp1_header { /* According to 3GPP TS 29.060. */
|
|
__u8 flags;
|
|
__u8 type;
|
|
__be16 length;
|
|
__be32 tid;
|
|
} __attribute__ ((packed));
|
|
|
|
#define GTP1_F_NPDU 0x01
|
|
#define GTP1_F_SEQ 0x02
|
|
#define GTP1_F_EXTHDR 0x04
|
|
#define GTP1_F_MASK 0x07
|
|
|
|
#endif
|