summaryrefslogtreecommitdiff
path: root/include/arch/x86_64/linux/gtp.h
diff options
context:
space:
mode:
authorKacper <kacper@mail.openlinux.dev>2025-12-07 20:10:31 +0100
committerKacper <kacper@mail.openlinux.dev>2025-12-07 20:10:31 +0100
commitfc00c656c96528112d05cf0edf8631bd5eaea446 (patch)
treea6e0e6c588191a8bd1c64afc3b7a258e3e66c236 /include/arch/x86_64/linux/gtp.h
Add build system scaffolding and libc headers
Diffstat (limited to 'include/arch/x86_64/linux/gtp.h')
-rw-r--r--include/arch/x86_64/linux/gtp.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/include/arch/x86_64/linux/gtp.h b/include/arch/x86_64/linux/gtp.h
new file mode 100644
index 00000000..471e069c
--- /dev/null
+++ b/include/arch/x86_64/linux/gtp.h
@@ -0,0 +1,41 @@
+/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
+#ifndef _LINUX_GTP_H_
+#define _LINUX_GTP_H_
+
+#define GTP_GENL_MCGRP_NAME "gtp"
+
+enum gtp_genl_cmds {
+ GTP_CMD_NEWPDP,
+ GTP_CMD_DELPDP,
+ GTP_CMD_GETPDP,
+ GTP_CMD_ECHOREQ,
+
+ GTP_CMD_MAX,
+};
+
+enum gtp_version {
+ GTP_V0 = 0,
+ GTP_V1,
+};
+
+enum gtp_attrs {
+ GTPA_UNSPEC = 0,
+ GTPA_LINK,
+ GTPA_VERSION,
+ GTPA_TID, /* for GTPv0 only */
+ GTPA_PEER_ADDRESS, /* Remote GSN peer, either SGSN or GGSN */
+#define GTPA_SGSN_ADDRESS GTPA_PEER_ADDRESS /* maintain legacy attr name */
+ GTPA_MS_ADDRESS,
+ GTPA_FLOW,
+ GTPA_NET_NS_FD,
+ GTPA_I_TEI, /* for GTPv1 only */
+ GTPA_O_TEI, /* for GTPv1 only */
+ GTPA_PAD,
+ GTPA_PEER_ADDR6,
+ GTPA_MS_ADDR6,
+ GTPA_FAMILY,
+ __GTPA_MAX,
+};
+#define GTPA_MAX (__GTPA_MAX - 1)
+
+#endif /* _LINUX_GTP_H_ */