5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <gerald@wireshark.org>
7 * Copyright 1998 Gerald Combs
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * as published by the Free Software Foundation; either version 2
12 * of the License, or (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24 #ifndef __PACKET_GTP_H
25 #define __PACKET_GTP_H
26 /*structure used to track responses to requests using sequence number*/
27 typedef struct gtp_msg_hash_entry {
28 gboolean is_request; /*TRUE/FALSE*/
29 guint32 req_frame; /*frame with request */
30 nstime_t req_time; /*req time */
31 guint32 rep_frame; /*frame with reply */
32 gint seq_nr; /*sequence number*/
33 guint msgtype; /*messagetype*/
36 /* definitions of GTP messages */
37 #define GTP_MSG_UNKNOWN 0x00
38 #define GTP_MSG_ECHO_REQ 0x01
39 #define GTP_MSG_ECHO_RESP 0x02
40 #define GTP_MSG_VER_NOT_SUPP 0x03
41 #define GTP_MSG_NODE_ALIVE_REQ 0x04
42 #define GTP_MSG_NODE_ALIVE_RESP 0x05
43 #define GTP_MSG_REDIR_REQ 0x06
44 #define GTP_MSG_REDIR_RESP 0x07
45 #define GTP_MSG_CREATE_PDP_REQ 0x10
46 #define GTP_MSG_CREATE_PDP_RESP 0x11
47 #define GTP_MSG_UPDATE_PDP_REQ 0x12
48 #define GTP_MSG_UPDATE_PDP_RESP 0x13
49 #define GTP_MSG_DELETE_PDP_REQ 0x14
50 #define GTP_MSG_DELETE_PDP_RESP 0x15
51 #define GTP_MSG_CREATE_AA_PDP_REQ 0x16 /* 2G */
52 #define GTP_MSG_CREATE_AA_PDP_RESP 0x17 /* 2G */
53 #define GTP_MSG_DELETE_AA_PDP_REQ 0x18 /* 2G */
54 #define GTP_MSG_DELETE_AA_PDP_RESP 0x19 /* 2G */
55 #define GTP_MSG_ERR_IND 0x1A
56 #define GTP_MSG_PDU_NOTIFY_REQ 0x1B
57 #define GTP_MSG_PDU_NOTIFY_RESP 0x1C
58 #define GTP_MSG_PDU_NOTIFY_REJ_REQ 0x1D
59 #define GTP_MSG_PDU_NOTIFY_REJ_RESP 0x1E
60 #define GTP_MSG_SUPP_EXT_HDR 0x1F
61 #define GTP_MSG_SEND_ROUT_INFO_REQ 0x20
62 #define GTP_MSG_SEND_ROUT_INFO_RESP 0x21
63 #define GTP_MSG_FAIL_REP_REQ 0x22
64 #define GTP_MSG_FAIL_REP_RESP 0x23
65 #define GTP_MSG_MS_PRESENT_REQ 0x24
66 #define GTP_MSG_MS_PRESENT_RESP 0x25
67 #define GTP_MSG_IDENT_REQ 0x30
68 #define GTP_MSG_IDENT_RESP 0x31
69 #define GTP_MSG_SGSN_CNTXT_REQ 0x32
70 #define GTP_MSG_SGSN_CNTXT_RESP 0x33
71 #define GTP_MSG_SGSN_CNTXT_ACK 0x34
72 #define GTP_MSG_FORW_RELOC_REQ 0x35
73 #define GTP_MSG_FORW_RELOC_RESP 0x36
74 #define GTP_MSG_FORW_RELOC_COMP 0x37
75 #define GTP_MSG_RELOC_CANCEL_REQ 0x38
76 #define GTP_MSG_RELOC_CANCEL_RESP 0x39
77 #define GTP_MSG_FORW_SRNS_CNTXT 0x3A
78 #define GTP_MSG_FORW_RELOC_ACK 0x3B
79 #define GTP_MSG_FORW_SRNS_CNTXT_ACK 0x3C
82 #define GTP_MSG_RAN_INFO_RELAY 70
83 #define GTP_MBMS_NOTIFY_REQ 96
84 #define GTP_MBMS_NOTIFY_RES 97
85 #define GTP_MBMS_NOTIFY_REJ_REQ 98
86 #define GTP_MBMS_NOTIFY_REJ_RES 99
87 #define GTP_CREATE_MBMS_CNTXT_REQ 100
88 #define GTP_CREATE_MBMS_CNTXT_RES 101
89 #define GTP_UPD_MBMS_CNTXT_REQ 102
90 #define GTP_UPD_MBMS_CNTXT_RES 103
91 #define GTP_DEL_MBMS_CNTXT_REQ 104
92 #define GTP_DEL_MBMS_CNTXT_RES 105
93 #define GTP_MBMS_REG_REQ 112
94 #define GTP_MBMS_REG_RES 113
95 #define GTP_MBMS_DE_REG_REQ 114
96 #define GTP_MBMS_DE_REG_RES 115
97 #define GTP_MBMS_SES_START_REQ 116
98 #define GTP_MBMS_SES_START_RES 117
99 #define GTP_MBMS_SES_STOP_REQ 118
100 #define GTP_MBMS_SES_STOP_RES 119
101 #define GTP_MBMS_SES_UPD_REQ 120
102 #define GTP_MBMS_SES_UPD_RES 121
103 /* 122-127 For future use. Shall not be sent.
104 * If received, shall be treated as an Unknown message.
106 #define GTP_MS_INFO_CNG_NOT_REQ 121
107 #define GTP_MS_INFO_CNG_NOT_RES 122
108 /* 130-239 For future use. Shall not be sent.
109 * If received, shall be treated as an Unknown message.
111 #define GTP_MSG_DATA_TRANSF_REQ 0xF0
112 #define GTP_MSG_DATA_TRANSF_RESP 0xF1
113 /* 242-254 For future use. Shall not be sent.
114 * If received, shall be treated as an Unknown message.
116 #define GTP_MSG_TPDU 0xFF
118 #endif /* __PACKET_GTP_H*/