aboutsummaryrefslogtreecommitdiffstats
path: root/gtp/gtp.h
diff options
context:
space:
mode:
Diffstat (limited to 'gtp/gtp.h')
-rw-r--r--gtp/gtp.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gtp/gtp.h b/gtp/gtp.h
index b40c6df..d189ded 100644
--- a/gtp/gtp.h
+++ b/gtp/gtp.h
@@ -162,6 +162,13 @@ struct gtp0_header { /* Descriptions from 3GPP 09.60 */
uint64_t tid; /* 13 Tunnel ID */
} __attribute__((packed)); /* 20 */
+#define GTP1HDR_F_NPDU 0x01
+#define GTP1HDR_F_SEQ 0x02
+#define GTP1HDR_F_EXT 0x04
+#define GTP1HDR_F_GTP1 0x10
+#define GTPHDR_F_VER(n) ((n) << 5)
+#define GTPHDR_F_GET_VER(flags) ((flags)>>5)
+
struct gtp1_header_short { /* Descriptions from 3GPP 29060 */
uint8_t flags; /* 01 bitfield, with typical values */
/* 001..... Version: 1 */