Debian Codegraph @

lib/gtp/gtp_xact.c

raw symbols ◀ ▶ SCIP
1 Debian patch touch this file
1 #cxx . . $ `<file>/lib/gtp/gtp_xact.c`/define TRACE_MODULEcxx . . $ `lib/gtp/gtp_xact.c:1:9`! _gtp_xact
2 #include "core_debug.h"cxx . . $ `<file>/lib/core/include/core_debug.h`/
3 #include "core_pool.h"cxx . . $ `<file>/lib/core/include/core_pool.h`/
4 #include "core_event.h"cxx . . $ `<file>/lib/core/include/core_event.h`/
5
6 #include "3gpp_types.h"cxx . . $ `<file>/lib/core/include/3gpp_types.h`/
7 #include "gtp_message.h"cxx . . $ `<file>/lib/gtp/gtp_message.h`/
8 #include "gtp_node.h"cxx . . $ `<file>/lib/gtp/gtp_node.h`/
9 #include "gtp_path.h"cxx . . $ `<file>/lib/gtp/gtp_path.h`/
10
11 #include "gtp_xact.h"cxx . . $ `<file>/lib/gtp/gtp_xact.h`/
12
13 #define SIZE_OF_GTP_XACT_POOLcxx . . $ `lib/gtp/gtp_xact.c:13:9`! 64
14 #define GTP_MIN_XACT_IDcxx . . $ `lib/gtp/gtp_xact.c:14:9`! 1
15 #define GTP_MAX_XACT_IDcxx . . $ `lib/gtp/gtp_xact.c:15:9`! 0x800000
16
17 #define GTP_T3_RESPONSE_DURATIONcxx . . $ `lib/gtp/gtp_xact.c:17:9`! 3000 /* 3 seconds */
18 #define GTP_T3_RESPONSE_RETRY_COUNTcxx . . $ `lib/gtp/gtp_xact.c:18:9`! 3
19 #define GTP_T3_DUPLICATED_DURATIONcxx . . $ `lib/gtp/gtp_xact.c:19:9`! \
20 (GTP_T3_RESPONSE_DURATIONcxx . . $ `lib/gtp/gtp_xact.c:17:9`! * GTP_T3_RESPONSE_RETRY_COUNTcxx . . $ `lib/gtp/gtp_xact.c:18:9`!) /* 9 seconds */
21 #define GTP_T3_DUPLICATED_RETRY_COUNTcxx . . $ `lib/gtp/gtp_xact.c:21:9`! 1
22
23 typedef enumcxx . . $ $anonymous_type_8bcf6b88557184a4_0# {
24 GTP_XACT_UNKNOWN_STAGEcxx . . $ GTP_XACT_UNKNOWN_STAGE.,
25 GTP_XACT_INITIAL_STAGEcxx . . $ GTP_XACT_INITIAL_STAGE.,
26 GTP_XACT_INTERMEDIATE_STAGEcxx . . $ GTP_XACT_INTERMEDIATE_STAGE.,
27 GTP_XACT_FINAL_STAGEcxx . . $ GTP_XACT_FINAL_STAGE.,
28 } gtp_xact_stage_tcxx . . $ gtp_xact_stage_t#;
29
30 static int gtp_xact_initializedcxx . . $ gtp_xact_initialized. = 0;
31 static tm_service_tcxx . . $ tm_service_t# *g_tm_servicecxx . . $ g_tm_service. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
32 static c_uintptr_tcxx . . $ c_uintptr_t# g_response_eventcxx . . $ g_response_event. = 0;
33 static c_uintptr_tcxx . . $ c_uintptr_t# g_holding_eventcxx . . $ g_holding_event. = 0;
34 static c_uint32_tcxx . . $ c_uint32_t# g_xact_idcxx . . $ g_xact_id. = 0;
35
36 index_declarecxx . . $ `lib/core/include/core_index.h:11:9`!(gtp_xact_pool, gtp_xact_t, SIZE_OF_GTP_XACT_POOLcxx . . $ `lib/gtp/gtp_xact.c:13:9`!);
37
38 static gtp_xact_stage_tcxx . . $ gtp_xact_stage_t# gtp_xact_get_stagecxx . . $ gtp_xact_get_stage(3d81264eac714d46).(c_uint8_tcxx . . $ c_uint8_t# type, c_uint32_tcxx . . $ c_uint32_t# sqn);
39 static status_tcxx . . $ status_t# gtp_xact_deletecxx . . $ gtp_xact_delete(43b36c6d25e5d9d).(gtp_xact_tcxx . . $ gtp_xact_t# *xact);
40
41 status_tcxx . . $ status_t# gtp_xact_initcxx . . $ gtp_xact_init(13af16157d1898e1).(tm_service_tcxx . . $ tm_service_t# *tm_service,
42 c_uintptr_tcxx . . $ c_uintptr_t# response_event, c_uintptr_tcxx . . $ c_uintptr_t# holding_event)
43 {
44 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(gtp_xact_initialized == 0, return CORE_ERRORcxx . . $ `lib/core/include/core_errno.h:220:9`!,
45 "GTP Transaction already has been initialized");
46
47 index_initcxx . . $ `lib/core/include/core_index.h:22:9`!(&gtp_xact_pool, SIZE_OF_GTP_XACT_POOLcxx . . $ `lib/gtp/gtp_xact.c:13:9`!);
48
49 g_xact_idcxx . . $ g_xact_id. = 0;
50 g_tm_servicecxx . . $ g_tm_service. = tm_service;
51 g_response_eventcxx . . $ g_response_event. = response_event;
52 g_holding_eventcxx . . $ g_holding_event. = holding_event;
53
54 gtp_xact_initializedcxx . . $ gtp_xact_initialized. = 1;
55
56 return CORE_OKcxx . . $ `lib/core/include/core_errno.h:219:9`!;
57 }
58
59 status_tcxx . . $ status_t# gtp_xact_finalcxx . . $ gtp_xact_final(b126dc7c1de90089).(void)
60 {
61 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(gtp_xact_initialized == 1, return CORE_ERRORcxx . . $ `lib/core/include/core_errno.h:220:9`!,
62 "GTP Transaction context already has been finalized");
63
64 if (pool_usedcxx . . $ `lib/core/include/core_pool.h:63:9`!(&gtp_xact_pool))
65 d_errorcxx . . $ `lib/core/include/core_debug.h:123:9`!("%d not freed in gtp_xact_pool[%d] of GTP Transaction",
66 pool_usedcxx . . $ `lib/core/include/core_pool.h:63:9`!(&gtp_xact_pool), pool_sizecxx . . $ `lib/core/include/core_pool.h:59:9`!(&gtp_xact_pool));
67 d_tracecxx . . $ `lib/core/include/core_debug.h:82:9`!(15, "%d not freed in gtp_xact_pool[%d] of GTP Transaction\n",
68 pool_usedcxx . . $ `lib/core/include/core_pool.h:63:9`!(&gtp_xact_pool), pool_sizecxx . . $ `lib/core/include/core_pool.h:59:9`!(&gtp_xact_pool));
69 index_finalcxx . . $ `lib/core/include/core_index.h:35:9`!(&gtp_xact_pool);
70
71 gtp_xact_initializedcxx . . $ gtp_xact_initialized. = 0;
72
73 return CORE_OKcxx . . $ `lib/core/include/core_errno.h:219:9`!;
74 }
75
76 gtp_xact_tcxx . . $ gtp_xact_t# *gtp_xact_local_createcxx . . $ gtp_xact_local_create(a4ad20793a178732).(
77 gtp_node_tcxx . . $ gtp_node_t# *gnode, gtp_header_tcxx . . $ gtp_header_t# *hdesc, pkbuf_tcxx . . $ pkbuf_t# *pkbuf)
78 {
79 status_tcxx . . $ status_t# rv;
80 char buf[CORE_ADDRSTRLENcxx . . $ `lib/core/include/core_network.h:167:9`!];
81 gtp_xact_tcxx . . $ gtp_xact_t# *xact = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
82
83 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(gnode, return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, "Null param");
84
85 index_alloccxx . . $ `lib/core/include/core_index.h:51:9`!(&gtp_xact_pool, &xact);
86 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(xact, return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, "Transaction allocation failed");
87
88 xact->orgcxx . . $ _gtp_xact_t#org. = GTP_LOCAL_ORIGINATORcxx . . $ `lib/gtp/gtp_xact.h:24:9`!;
89 xact->xidcxx . . $ _gtp_xact_t#xid. = NEXT_IDcxx . . $ `lib/core/include/3gpp_types.h:51:9`!(g_xact_id, GTP_MIN_XACT_IDcxx . . $ `lib/gtp/gtp_xact.c:14:9`!, GTP_MAX_XACT_IDcxx . . $ `lib/gtp/gtp_xact.c:15:9`!);
90 xact->gnodecxx . . $ _gtp_xact_t#gnode. = gnode;
91
92 if (g_response_eventcxx . . $ g_response_event.)
93 {
94 xact->tm_responsecxx . . $ _gtp_xact_t#tm_response. = timer_createcxx . . $ `lib/core/include/core_event.h:43:9`!(g_tm_service,
95 g_response_event, GTP_T3_RESPONSE_DURATIONcxx . . $ `lib/gtp/gtp_xact.c:17:9`!);
96 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(xact->tm_response, return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, "Timer allocation failed");
97 timer_set_param1cxx . . $ `lib/core/include/core_event.h:50:9`!(xact->tm_response, xact->index);
98 xact->response_rcountcxx . . $ _gtp_xact_t#response_rcount. = GTP_T3_RESPONSE_RETRY_COUNTcxx . . $ `lib/gtp/gtp_xact.c:18:9`!;
99 }
100
101 if (g_holding_eventcxx . . $ g_holding_event.)
102 {
103 xact->tm_holdingcxx . . $ _gtp_xact_t#tm_holding. = timer_createcxx . . $ `lib/core/include/core_event.h:43:9`!(g_tm_service,
104 g_holding_event, GTP_T3_DUPLICATED_DURATIONcxx . . $ `lib/gtp/gtp_xact.c:19:9`!);
105 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(xact->tm_holding, return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, "Timer allocation failed");
106 timer_set_param1cxx . . $ `lib/core/include/core_event.h:50:9`!(xact->tm_holding, xact->index);
107 xact->holding_rcountcxx . . $ _gtp_xact_t#holding_rcount. = GTP_T3_DUPLICATED_RETRY_COUNTcxx . . $ `lib/gtp/gtp_xact.c:21:9`!;
108 }
109
110 list_appendcxx . . $ `lib/core/include/core_list.h:44:9`!(xact->org == GTP_LOCAL_ORIGINATORcxx . . $ `lib/gtp/gtp_xact.h:24:9`! ?
111 &xact->gnode->local_list : &xact->gnode->remote_list, xact);
112
113 rv = gtp_xact_update_txcxx . . $ gtp_xact_update_tx(c98d38af308df099).(xact, hdesc, pkbuf);
114 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(rv == CORE_OKcxx . . $ `lib/core/include/core_errno.h:219:9`!, return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, "Update Tx failed");
115
116 d_tracecxx . . $ `lib/core/include/core_debug.h:82:9`!(15, "[%d] %s Create peer [%s]:%d\n",
117 xact->xid,
118 xact->org == GTP_LOCAL_ORIGINATORcxx . . $ `lib/gtp/gtp_xact.h:24:9`! ? "LOCAL " : "REMOTE",
119 CORE_ADDRcxx . . $ `lib/core/include/core_network.h:168:9`!(sock_remote_addr(gnode->sock), buf),
120 CORE_PORTcxx . . $ `lib/core/include/core_network.h:170:9`!(sock_remote_addr(gnode->sock)));
121
122 return xact;
123 }
124
125 gtp_xact_tcxx . . $ gtp_xact_t# *gtp_xact_remote_createcxx . . $ gtp_xact_remote_create(c43ec0ee14f9f3e0).(gtp_node_tcxx . . $ gtp_node_t# *gnode, c_uint32_tcxx . . $ c_uint32_t# sqn)
126 {
127 char buf[CORE_ADDRSTRLENcxx . . $ `lib/core/include/core_network.h:167:9`!];
128 gtp_xact_tcxx . . $ gtp_xact_t# *xact = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
129
130 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(gnode, return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, "Null param");
131
132 index_alloccxx . . $ `lib/core/include/core_index.h:51:9`!(&gtp_xact_pool, &xact);
133 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(xact, return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, "Transaction allocation failed");
134
135 xact->orgcxx . . $ _gtp_xact_t#org. = GTP_REMOTE_ORIGINATORcxx . . $ `lib/gtp/gtp_xact.h:25:9`!;
136 xact->xidcxx . . $ _gtp_xact_t#xid. = GTP_SQN_TO_XIDcxx . . $ `lib/gtp/gtp_message.h:66:9`!(sqn);
137 xact->gnodecxx . . $ _gtp_xact_t#gnode. = gnode;
138
139 if (g_response_eventcxx . . $ g_response_event.)
140 {
141 xact->tm_responsecxx . . $ _gtp_xact_t#tm_response. = timer_createcxx . . $ `lib/core/include/core_event.h:43:9`!(g_tm_service,
142 g_response_event, GTP_T3_RESPONSE_DURATIONcxx . . $ `lib/gtp/gtp_xact.c:17:9`!);
143 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(xact->tm_response, return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, "Timer allocation failed");
144 timer_set_param1cxx . . $ `lib/core/include/core_event.h:50:9`!(xact->tm_response, xact->index);
145 xact->response_rcountcxx . . $ _gtp_xact_t#response_rcount. = GTP_T3_RESPONSE_RETRY_COUNTcxx . . $ `lib/gtp/gtp_xact.c:18:9`!;
146 }
147
148 if (g_holding_eventcxx . . $ g_holding_event.)
149 {
150 xact->tm_holdingcxx . . $ _gtp_xact_t#tm_holding. = timer_createcxx . . $ `lib/core/include/core_event.h:43:9`!(g_tm_service,
151 g_holding_event, GTP_T3_DUPLICATED_DURATIONcxx . . $ `lib/gtp/gtp_xact.c:19:9`!);
152 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(xact->tm_holding, return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, "Timer allocation failed");
153 timer_set_param1cxx . . $ `lib/core/include/core_event.h:50:9`!(xact->tm_holding, xact->index);
154 xact->holding_rcountcxx . . $ _gtp_xact_t#holding_rcount. = GTP_T3_DUPLICATED_RETRY_COUNTcxx . . $ `lib/gtp/gtp_xact.c:21:9`!;
155 }
156
157 list_appendcxx . . $ `lib/core/include/core_list.h:44:9`!(xact->org == GTP_LOCAL_ORIGINATORcxx . . $ `lib/gtp/gtp_xact.h:24:9`! ?
158 &xact->gnode->local_list : &xact->gnode->remote_list, xact);
159
160 d_tracecxx . . $ `lib/core/include/core_debug.h:82:9`!(15, "[%d] %s Create peer [%s]:%d\n",
161 xact->xid,
162 xact->org == GTP_LOCAL_ORIGINATORcxx . . $ `lib/gtp/gtp_xact.h:24:9`! ? "LOCAL " : "REMOTE",
163 CORE_ADDRcxx . . $ `lib/core/include/core_network.h:168:9`!(sock_remote_addr(gnode->sock), buf),
164 CORE_PORTcxx . . $ `lib/core/include/core_network.h:170:9`!(sock_remote_addr(gnode->sock)));
165
166 return xact;
167 }
168
169 void gtp_xact_delete_allcxx . . $ gtp_xact_delete_all(c9c8cdada18c3b5e).(gtp_node_tcxx . . $ gtp_node_t# *gnode)
170 {
171 gtp_xact_tcxx . . $ gtp_xact_t# *xact = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
172
173 xact = list_firstcxx . . $ `lib/core/include/core_list.h:24:9`!(&gnode->local_list);
174 while(xact)
175 {
176 gtp_xact_deletecxx . . $ gtp_xact_delete(43b36c6d25e5d9d).(xact);
177 xact = list_nextcxx . . $ `lib/core/include/core_list.h:30:9`!(xact);
178 }
179 xact = list_firstcxx . . $ `lib/core/include/core_list.h:24:9`!(&gnode->remote_list);
180 while(xact)
181 {
182 gtp_xact_deletecxx . . $ gtp_xact_delete(43b36c6d25e5d9d).(xact);
183 xact = list_nextcxx . . $ `lib/core/include/core_list.h:30:9`!(xact);
184 }
185 }
186
187 status_tcxx . . $ status_t# gtp_xact_update_txcxx . . $ gtp_xact_update_tx(c98d38af308df099).(gtp_xact_tcxx . . $ gtp_xact_t# *xact,
188 gtp_header_tcxx . . $ gtp_header_t# *hdesc, pkbuf_tcxx . . $ pkbuf_t# *pkbuf)
189 {
190 char buf[CORE_ADDRSTRLENcxx . . $ `lib/core/include/core_network.h:167:9`!];
191 gtp_xact_stage_tcxx . . $ gtp_xact_stage_t# stage;
192 gtp_header_tcxx . . $ gtp_header_t# *h = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
193
194 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(xact, return CORE_ERRORcxx . . $ `lib/core/include/core_errno.h:220:9`!, "Null param");
195 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(xact->gnode, return CORE_ERRORcxx . . $ `lib/core/include/core_errno.h:220:9`!, "Null param");
196 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(hdesc, return CORE_ERRORcxx . . $ `lib/core/include/core_errno.h:220:9`!, "Null param");
197 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(pkbuf, return CORE_ERRORcxx . . $ `lib/core/include/core_errno.h:220:9`!, "Null param");
198
199 d_tracecxx . . $ `lib/core/include/core_debug.h:82:9`!(15, "[%d] %s UPD TX-%d peer [%s]:%d\n",
200 xact->xid,
201 xact->org == GTP_LOCAL_ORIGINATORcxx . . $ `lib/gtp/gtp_xact.h:24:9`! ? "LOCAL " : "REMOTE",
202 hdesc->type,
203 CORE_ADDRcxx . . $ `lib/core/include/core_network.h:168:9`!(sock_remote_addr(xact->gnode->sock), buf),
204 CORE_PORTcxx . . $ `lib/core/include/core_network.h:170:9`!(sock_remote_addr(xact->gnode->sock)));
205
206 stage = gtp_xact_get_stagecxx . . $ gtp_xact_get_stage(3d81264eac714d46).(hdesc->typecxx . . $ _gtp_header_t#type., xact->xidcxx . . $ _gtp_xact_t#xid.);
207 if (xact->orgcxx . . $ _gtp_xact_t#org. == GTP_LOCAL_ORIGINATORcxx . . $ `lib/gtp/gtp_xact.h:24:9`!)
208 {
209 switch(stage)
210 {
211 case GTP_XACT_INITIAL_STAGEcxx . . $ GTP_XACT_INITIAL_STAGE.:
212 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(xact->step == 0, return CORE_ERRORcxx . . $ `lib/core/include/core_errno.h:220:9`!,
213 "[%d] %s invalid step %d for type %d peer [%s]:%d",
214 xact->xid,
215 xact->org == GTP_LOCAL_ORIGINATORcxx . . $ `lib/gtp/gtp_xact.h:24:9`! ? "LOCAL " : "REMOTE",
216 xact->step, hdesc->type,
217 CORE_ADDRcxx . . $ `lib/core/include/core_network.h:168:9`!(sock_remote_addr(xact->gnode->sock), buf),
218 CORE_PORTcxx . . $ `lib/core/include/core_network.h:170:9`!(sock_remote_addr(xact->gnode->sock)));
219 break;
220
221 case GTP_XACT_INTERMEDIATE_STAGEcxx . . $ GTP_XACT_INTERMEDIATE_STAGE.:
222 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(0, return CORE_ERRORcxx . . $ `lib/core/include/core_errno.h:220:9`!, "invalid step(%d)", xact->step);
223
224 case GTP_XACT_FINAL_STAGEcxx . . $ GTP_XACT_FINAL_STAGE.:
225 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(xact->step == 2, return CORE_ERRORcxx . . $ `lib/core/include/core_errno.h:220:9`!,
226 "[%d] %s invalid step %d for type %d peer [%s]:%d",
227 xact->xid,
228 xact->org == GTP_LOCAL_ORIGINATORcxx . . $ `lib/gtp/gtp_xact.h:24:9`! ? "LOCAL " : "REMOTE",
229 xact->step, hdesc->type,
230 CORE_ADDRcxx . . $ `lib/core/include/core_network.h:168:9`!(sock_remote_addr(xact->gnode->sock), buf),
231 CORE_PORTcxx . . $ `lib/core/include/core_network.h:170:9`!(sock_remote_addr(xact->gnode->sock)));
232 break;
233
234 default:
235 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(0, return CORE_ERRORcxx . . $ `lib/core/include/core_errno.h:220:9`!, "invalid step(%d)", xact->step);
236 }
237 }
238 else if (xact->orgcxx . . $ _gtp_xact_t#org. == GTP_REMOTE_ORIGINATORcxx . . $ `lib/gtp/gtp_xact.h:25:9`!)
239 {
240 switch(stage)
241 {
242 case GTP_XACT_INITIAL_STAGEcxx . . $ GTP_XACT_INITIAL_STAGE.:
243 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(0, return CORE_ERRORcxx . . $ `lib/core/include/core_errno.h:220:9`!, "invalid step(%d)", xact->step);
244
245 case GTP_XACT_INTERMEDIATE_STAGEcxx . . $ GTP_XACT_INTERMEDIATE_STAGE.:
246 case GTP_XACT_FINAL_STAGEcxx . . $ GTP_XACT_FINAL_STAGE.:
247 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(xact->step == 1, return CORE_ERRORcxx . . $ `lib/core/include/core_errno.h:220:9`!,
248 "[%d] %s invalid step %d for type %d peer [%s]:%d",
249 xact->xid,
250 xact->org == GTP_LOCAL_ORIGINATORcxx . . $ `lib/gtp/gtp_xact.h:24:9`! ? "LOCAL " : "REMOTE",
251 xact->step, hdesc->type,
252 CORE_ADDRcxx . . $ `lib/core/include/core_network.h:168:9`!(sock_remote_addr(xact->gnode->sock), buf),
253 CORE_PORTcxx . . $ `lib/core/include/core_network.h:170:9`!(sock_remote_addr(xact->gnode->sock)));
254 break;
255
256 default:
257 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(0, return CORE_ERRORcxx . . $ `lib/core/include/core_errno.h:220:9`!, "invalid step(%d)", xact->step);
258 }
259 }
260 else
261 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(0, return CORE_ERRORcxx . . $ `lib/core/include/core_errno.h:220:9`!, "invalid orginator(%d)", xact->org);
262
263
264 pkbuf_headercxx . . $ pkbuf_header(ddc6dbc0ec6c81c9).(pkbuf, GTPV2C_HEADER_LENcxx . . $ `lib/gtp/gtp_message.h:44:9`!);
265 h = pkbuf->payloadcxx . . $ _pkbuf_t#payload.;
266 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(h, return CORE_ERRORcxx . . $ `lib/core/include/core_errno.h:220:9`!, "Null param");
267
268 memsetcxx . . $ memset(d1de1e4fb215f1c6).(h, 0, sizeof(gtp_header_tcxx . . $ gtp_header_t#));
269 h->versioncxx . . $ _gtp_header_t#$anonymous_type_0#$anonymous_type_1#version. = 2;
270 h->teid_presencecxx . . $ _gtp_header_t#$anonymous_type_0#$anonymous_type_1#teid_presence. = 1;
271 h->typecxx . . $ _gtp_header_t#type. = hdesc->typecxx . . $ _gtp_header_t#type.;
272 h->lengthcxx . . $ _gtp_header_t#length. = htonscxx . . $ `<external>/9581057695539925927/in.h:431:12`!(pkbuf->len - 4);
273 h->teidcxx . . $ _gtp_header_t#$anonymous_type_2#$anonymous_type_3#teid. = htonlcxx . . $ `<external>/9581057695539925927/in.h:430:12`!(hdesc->teid);
274 h->sqncxx . . $ _gtp_header_t#$anonymous_type_2#$anonymous_type_3#sqn. = GTP_XID_TO_SQNcxx . . $ `lib/gtp/gtp_message.h:65:9`!(xact->xid);
275
276 /* Save Message type and packet of this step */
277 xact->seqcxx . . $ _gtp_xact_t#seq.[xact->stepcxx . . $ _gtp_xact_t#step.].typecxx . . $ _gtp_xact_t#$anonymous_type_0#type. = h->typecxx . . $ _gtp_header_t#type.;
278 xact->seqcxx . . $ _gtp_xact_t#seq.[xact->stepcxx . . $ _gtp_xact_t#step.].pkbufcxx . . $ _gtp_xact_t#$anonymous_type_0#pkbuf. = pkbuf;
279
280 /* Step */
281 xact->stepcxx . . $ _gtp_xact_t#step.++;
282
283 return CORE_OKcxx . . $ `lib/core/include/core_errno.h:219:9`!;
284 }
285
286 status_tcxx . . $ status_t# gtp_xact_update_rxcxx . . $ gtp_xact_update_rx(7dc7b6534dad94dc).(gtp_xact_tcxx . . $ gtp_xact_t# *xact, c_uint8_tcxx . . $ c_uint8_t# type)
287 {
288 status_tcxx . . $ status_t# rv = CORE_OKcxx . . $ `lib/core/include/core_errno.h:219:9`!;
289 char buf[CORE_ADDRSTRLENcxx . . $ `lib/core/include/core_network.h:167:9`!];
290 gtp_xact_stage_tcxx . . $ gtp_xact_stage_t# stage;
291
292 d_tracecxx . . $ `lib/core/include/core_debug.h:82:9`!(15, "[%d] %s UPD RX-%d peer [%s]:%d\n",
293 xact->xid,
294 xact->org == GTP_LOCAL_ORIGINATORcxx . . $ `lib/gtp/gtp_xact.h:24:9`! ? "LOCAL " : "REMOTE",
295 type,
296 CORE_ADDRcxx . . $ `lib/core/include/core_network.h:168:9`!(sock_remote_addr(xact->gnode->sock), buf),
297 CORE_PORTcxx . . $ `lib/core/include/core_network.h:170:9`!(sock_remote_addr(xact->gnode->sock)));
298
299 stage = gtp_xact_get_stagecxx . . $ gtp_xact_get_stage(3d81264eac714d46).(type, xact->xidcxx . . $ _gtp_xact_t#xid.);
300 if (xact->orgcxx . . $ _gtp_xact_t#org. == GTP_LOCAL_ORIGINATORcxx . . $ `lib/gtp/gtp_xact.h:24:9`!)
301 {
302 switch(stage)
303 {
304 case GTP_XACT_INITIAL_STAGEcxx . . $ GTP_XACT_INITIAL_STAGE.:
305 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(0, return CORE_ERRORcxx . . $ `lib/core/include/core_errno.h:220:9`!, "invalid step(%d)", xact->step);
306
307 case GTP_XACT_INTERMEDIATE_STAGEcxx . . $ GTP_XACT_INTERMEDIATE_STAGE.:
308 if (xact->seqcxx . . $ _gtp_xact_t#seq.[1].typecxx . . $ _gtp_xact_t#$anonymous_type_0#type. == type)
309 {
310 pkbuf_tcxx . . $ pkbuf_t# *pkbuf = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
311
312 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(xact->step == 2 || xact->step == 3,
313 return CORE_ERRORcxx . . $ `lib/core/include/core_errno.h:220:9`!,
314 "[%d] %s invalid step %d for type %d peer [%s]:%d",
315 xact->xid,
316 xact->org == GTP_LOCAL_ORIGINATORcxx . . $ `lib/gtp/gtp_xact.h:24:9`! ? "LOCAL " : "REMOTE",
317 xact->step, type,
318 CORE_ADDRcxx . . $ `lib/core/include/core_network.h:168:9`!(sock_remote_addr(xact->gnode->sock), buf),
319 CORE_PORTcxx . . $ `lib/core/include/core_network.h:170:9`!(sock_remote_addr(xact->gnode->sock)));
320
321 pkbuf = xact->seqcxx . . $ _gtp_xact_t#seq.[2].pkbufcxx . . $ _gtp_xact_t#$anonymous_type_0#pkbuf.;
322 if (pkbuf)
323 {
324 if (xact->tm_holdingcxx . . $ _gtp_xact_t#tm_holding.)
325 tm_startcxx . . $ tm_start(15f694ef3c96d230).(xact->tm_holdingcxx . . $ _gtp_xact_t#tm_holding.);
326
327 d_warncxx . . $ `lib/core/include/core_debug.h:114:9`!("[%d] %s Request Duplicated. Retransmit!"
328 " for type %d peer [%s]:%d",
329 xact->xid,
330 xact->org == GTP_LOCAL_ORIGINATORcxx . . $ `lib/gtp/gtp_xact.h:24:9`! ?
331 "LOCAL " : "REMOTE",
332 xact->step, type,
333 CORE_ADDRcxx . . $ `lib/core/include/core_network.h:168:9`!(sock_remote_addr(xact->gnode->sock),
334 buf),
335 CORE_PORTcxx . . $ `lib/core/include/core_network.h:170:9`!(sock_remote_addr(xact->gnode->sock)));
336 rv = gtp_sendcxx . . $ gtp_send(b52758b18fe24cb).(xact->gnodecxx . . $ _gtp_xact_t#gnode., pkbuf);
337 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(rv == CORE_OKcxx . . $ `lib/core/include/core_errno.h:219:9`!, return CORE_ERRORcxx . . $ `lib/core/include/core_errno.h:220:9`!,
338 "gtp_send error");
339 }
340 else
341 {
342 d_warncxx . . $ `lib/core/include/core_debug.h:114:9`!("[%d] %s Request Duplicated. Discard!"
343 " for type %d peer [%s]:%d",
344 xact->xid,
345 xact->org == GTP_LOCAL_ORIGINATORcxx . . $ `lib/gtp/gtp_xact.h:24:9`! ?
346 "LOCAL " : "REMOTE",
347 xact->step, type,
348 CORE_ADDRcxx . . $ `lib/core/include/core_network.h:168:9`!(sock_remote_addr(xact->gnode->sock),
349 buf),
350 CORE_PORTcxx . . $ `lib/core/include/core_network.h:170:9`!(sock_remote_addr(xact->gnode->sock)));
351 }
352
353 return CORE_EAGAINcxx . . $ `lib/core/include/core_errno.h:721:9`!;
354 }
355
356 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(xact->step == 1, return CORE_ERRORcxx . . $ `lib/core/include/core_errno.h:220:9`!,
357 "[%d] %s invalid step %d for type %d peer [%s]:%d",
358 xact->xid,
359 xact->org == GTP_LOCAL_ORIGINATORcxx . . $ `lib/gtp/gtp_xact.h:24:9`! ? "LOCAL " : "REMOTE",
360 xact->step, type,
361 CORE_ADDRcxx . . $ `lib/core/include/core_network.h:168:9`!(sock_remote_addr(xact->gnode->sock), buf),
362 CORE_PORTcxx . . $ `lib/core/include/core_network.h:170:9`!(sock_remote_addr(xact->gnode->sock)));
363
364 if (xact->tm_holdingcxx . . $ _gtp_xact_t#tm_holding.)
365 tm_startcxx . . $ tm_start(15f694ef3c96d230).(xact->tm_holdingcxx . . $ _gtp_xact_t#tm_holding.);
366
367 break;
368
369 case GTP_XACT_FINAL_STAGEcxx . . $ GTP_XACT_FINAL_STAGE.:
370 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(xact->step == 1, return CORE_ERRORcxx . . $ `lib/core/include/core_errno.h:220:9`!,
371 "[%d] %s invalid step %d for type %d peer [%s]:%d",
372 xact->xid,
373 xact->org == GTP_LOCAL_ORIGINATORcxx . . $ `lib/gtp/gtp_xact.h:24:9`! ? "LOCAL " : "REMOTE",
374 xact->step, type,
375 CORE_ADDRcxx . . $ `lib/core/include/core_network.h:168:9`!(sock_remote_addr(xact->gnode->sock), buf),
376 CORE_PORTcxx . . $ `lib/core/include/core_network.h:170:9`!(sock_remote_addr(xact->gnode->sock)));
377
378 break;
379
380 default:
381 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(0, return CORE_ERRORcxx . . $ `lib/core/include/core_errno.h:220:9`!, "invalid step(%d)", xact->step);
382 }
383 }
384 else if (xact->orgcxx . . $ _gtp_xact_t#org. == GTP_REMOTE_ORIGINATORcxx . . $ `lib/gtp/gtp_xact.h:25:9`!)
385 {
386 switch(stage)
387 {
388 case GTP_XACT_INITIAL_STAGEcxx . . $ GTP_XACT_INITIAL_STAGE.:
389 if (xact->seqcxx . . $ _gtp_xact_t#seq.[0].typecxx . . $ _gtp_xact_t#$anonymous_type_0#type. == type)
390 {
391 pkbuf_tcxx . . $ pkbuf_t# *pkbuf = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
392
393 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(xact->step == 1 || xact->step == 2,
394 return CORE_ERRORcxx . . $ `lib/core/include/core_errno.h:220:9`!,
395 "[%d] %s invalid step %d for type %d peer [%s]:%d",
396 xact->xid,
397 xact->org == GTP_LOCAL_ORIGINATORcxx . . $ `lib/gtp/gtp_xact.h:24:9`! ? "LOCAL " : "REMOTE",
398 xact->step, type,
399 CORE_ADDRcxx . . $ `lib/core/include/core_network.h:168:9`!(sock_remote_addr(xact->gnode->sock), buf),
400 CORE_PORTcxx . . $ `lib/core/include/core_network.h:170:9`!(sock_remote_addr(xact->gnode->sock)));
401
402 pkbuf = xact->seqcxx . . $ _gtp_xact_t#seq.[1].pkbufcxx . . $ _gtp_xact_t#$anonymous_type_0#pkbuf.;
403 if (pkbuf)
404 {
405 if (xact->tm_holdingcxx . . $ _gtp_xact_t#tm_holding.)
406 tm_startcxx . . $ tm_start(15f694ef3c96d230).(xact->tm_holdingcxx . . $ _gtp_xact_t#tm_holding.);
407
408 d_warncxx . . $ `lib/core/include/core_debug.h:114:9`!("[%d] %s Request Duplicated. Retransmit!"
409 " for step %d type %d peer [%s]:%d",
410 xact->xid,
411 xact->org == GTP_LOCAL_ORIGINATORcxx . . $ `lib/gtp/gtp_xact.h:24:9`! ?
412 "LOCAL " : "REMOTE",
413 xact->step, type,
414 CORE_ADDRcxx . . $ `lib/core/include/core_network.h:168:9`!(sock_remote_addr(xact->gnode->sock),
415 buf),
416 CORE_PORTcxx . . $ `lib/core/include/core_network.h:170:9`!(sock_remote_addr(xact->gnode->sock)));
417 rv = gtp_sendcxx . . $ gtp_send(b52758b18fe24cb).(xact->gnodecxx . . $ _gtp_xact_t#gnode., pkbuf);
418 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(rv == CORE_OKcxx . . $ `lib/core/include/core_errno.h:219:9`!, return CORE_ERRORcxx . . $ `lib/core/include/core_errno.h:220:9`!,
419 "gtp_send error");
420 }
421 else
422 {
423 d_warncxx . . $ `lib/core/include/core_debug.h:114:9`!("[%d] %s Request Duplicated. Discard!"
424 " for step %d type %d peer [%s]:%d",
425 xact->xid,
426 xact->org == GTP_LOCAL_ORIGINATORcxx . . $ `lib/gtp/gtp_xact.h:24:9`! ?
427 "LOCAL " : "REMOTE",
428 xact->step, type,
429 CORE_ADDRcxx . . $ `lib/core/include/core_network.h:168:9`!(sock_remote_addr(xact->gnode->sock),
430 buf),
431 CORE_PORTcxx . . $ `lib/core/include/core_network.h:170:9`!(sock_remote_addr(xact->gnode->sock)));
432 }
433
434 return CORE_EAGAINcxx . . $ `lib/core/include/core_errno.h:721:9`!;
435 }
436
437 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(xact->step == 0, return CORE_ERRORcxx . . $ `lib/core/include/core_errno.h:220:9`!,
438 "[%d] %s invalid step %d for type %d peer [%s]:%d",
439 xact->xid,
440 xact->org == GTP_LOCAL_ORIGINATORcxx . . $ `lib/gtp/gtp_xact.h:24:9`! ? "LOCAL " : "REMOTE",
441 xact->step, type,
442 CORE_ADDRcxx . . $ `lib/core/include/core_network.h:168:9`!(sock_remote_addr(xact->gnode->sock), buf),
443 CORE_PORTcxx . . $ `lib/core/include/core_network.h:170:9`!(sock_remote_addr(xact->gnode->sock)));
444
445 if (xact->tm_holdingcxx . . $ _gtp_xact_t#tm_holding.)
446 tm_startcxx . . $ tm_start(15f694ef3c96d230).(xact->tm_holdingcxx . . $ _gtp_xact_t#tm_holding.);
447
448 break;
449
450 case GTP_XACT_INTERMEDIATE_STAGEcxx . . $ GTP_XACT_INTERMEDIATE_STAGE.:
451 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(0, return CORE_ERRORcxx . . $ `lib/core/include/core_errno.h:220:9`!, "invalid step(%d)", xact->step);
452
453 case GTP_XACT_FINAL_STAGEcxx . . $ GTP_XACT_FINAL_STAGE.:
454 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(xact->step == 2, return CORE_ERRORcxx . . $ `lib/core/include/core_errno.h:220:9`!,
455 "[%d] %s invalid step %d for type %d peer [%s]:%d",
456 xact->xid,
457 xact->org == GTP_LOCAL_ORIGINATORcxx . . $ `lib/gtp/gtp_xact.h:24:9`! ? "LOCAL " : "REMOTE",
458 xact->step, type,
459 CORE_ADDRcxx . . $ `lib/core/include/core_network.h:168:9`!(sock_remote_addr(xact->gnode->sock), buf),
460 CORE_PORTcxx . . $ `lib/core/include/core_network.h:170:9`!(sock_remote_addr(xact->gnode->sock)));
461
462 /* continue */
463 break;
464
465 default:
466 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(0, return CORE_ERRORcxx . . $ `lib/core/include/core_errno.h:220:9`!, "invalid step(%d)", xact->step);
467 }
468 }
469 else
470 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(0, return CORE_ERRORcxx . . $ `lib/core/include/core_errno.h:220:9`!, "invalid orginator(%d)", xact->org);
471
472 if (xact->tm_responsecxx . . $ _gtp_xact_t#tm_response.)
473 tm_stopcxx . . $ tm_stop(15f694ef3c96d230).(xact->tm_responsecxx . . $ _gtp_xact_t#tm_response.);
474
475 /* Save Message type of this step */
476 xact->seqcxx . . $ _gtp_xact_t#seq.[xact->stepcxx . . $ _gtp_xact_t#step.].typecxx . . $ _gtp_xact_t#$anonymous_type_0#type. = type;
477
478 /* Step */
479 xact->stepcxx . . $ _gtp_xact_t#step.++;
480
481 return CORE_OKcxx . . $ `lib/core/include/core_errno.h:219:9`!;
482 }
483
484
485 status_tcxx . . $ status_t# gtp_xact_commitcxx . . $ gtp_xact_commit(43b36c6d25e5d9d).(gtp_xact_tcxx . . $ gtp_xact_t# *xact)
486 {
487 status_tcxx . . $ status_t# rv;
488 char buf[CORE_ADDRSTRLENcxx . . $ `lib/core/include/core_network.h:167:9`!];
489
490 c_uint8_tcxx . . $ c_uint8_t# type;
491 pkbuf_tcxx . . $ pkbuf_t# *pkbuf = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
492 gtp_xact_stage_tcxx . . $ gtp_xact_stage_t# stage;
493
494 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(xact, return CORE_ERRORcxx . . $ `lib/core/include/core_errno.h:220:9`!, "Null param");
495 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(xact->gnode, return CORE_ERRORcxx . . $ `lib/core/include/core_errno.h:220:9`!, "Null param");
496
497 d_tracecxx . . $ `lib/core/include/core_debug.h:82:9`!(15, "[%d] %s Commit peer [%s]:%d\n",
498 xact->xid,
499 xact->org == GTP_LOCAL_ORIGINATORcxx . . $ `lib/gtp/gtp_xact.h:24:9`! ? "LOCAL " : "REMOTE",
500 CORE_ADDRcxx . . $ `lib/core/include/core_network.h:168:9`!(sock_remote_addr(xact->gnode->sock), buf),
501 CORE_PORTcxx . . $ `lib/core/include/core_network.h:170:9`!(sock_remote_addr(xact->gnode->sock)));
502
503 type = xact->seqcxx . . $ _gtp_xact_t#seq.[xact->stepcxx . . $ _gtp_xact_t#step.-1].typecxx . . $ _gtp_xact_t#$anonymous_type_0#type.;
504 stage = gtp_xact_get_stagecxx . . $ gtp_xact_get_stage(3d81264eac714d46).(type, xact->xidcxx . . $ _gtp_xact_t#xid.);
505
506 if (xact->orgcxx . . $ _gtp_xact_t#org. == GTP_LOCAL_ORIGINATORcxx . . $ `lib/gtp/gtp_xact.h:24:9`!)
507 {
508 switch(stage)
509 {
510 case GTP_XACT_INITIAL_STAGEcxx . . $ GTP_XACT_INITIAL_STAGE.:
511 {
512 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(xact->step == 1, return CORE_ERRORcxx . . $ `lib/core/include/core_errno.h:220:9`!,
513 "[%d] %s invalid step %d for type %d peer [%s]:%d",
514 xact->xid,
515 xact->org == GTP_LOCAL_ORIGINATORcxx . . $ `lib/gtp/gtp_xact.h:24:9`! ? "LOCAL " : "REMOTE",
516 xact->step, type,
517 CORE_ADDRcxx . . $ `lib/core/include/core_network.h:168:9`!(sock_remote_addr(xact->gnode->sock), buf),
518 CORE_PORTcxx . . $ `lib/core/include/core_network.h:170:9`!(sock_remote_addr(xact->gnode->sock)));
519
520 if (xact->tm_responsecxx . . $ _gtp_xact_t#tm_response.)
521 tm_startcxx . . $ tm_start(15f694ef3c96d230).(xact->tm_responsecxx . . $ _gtp_xact_t#tm_response.);
522
523 break;
524 }
525
526 case GTP_XACT_INTERMEDIATE_STAGEcxx . . $ GTP_XACT_INTERMEDIATE_STAGE.:
527 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(0, return CORE_ERRORcxx . . $ `lib/core/include/core_errno.h:220:9`!, "invalid step(%d)", xact->step);
528
529 case GTP_XACT_FINAL_STAGEcxx . . $ GTP_XACT_FINAL_STAGE.:
530 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(xact->step == 2 || xact->step == 3, return CORE_ERRORcxx . . $ `lib/core/include/core_errno.h:220:9`!,
531 "[%d] %s invalid step %d for type %d peer [%s]:%d",
532 xact->xid,
533 xact->org == GTP_LOCAL_ORIGINATORcxx . . $ `lib/gtp/gtp_xact.h:24:9`! ? "LOCAL " : "REMOTE",
534 xact->step, type,
535 CORE_ADDRcxx . . $ `lib/core/include/core_network.h:168:9`!(sock_remote_addr(xact->gnode->sock), buf),
536 CORE_PORTcxx . . $ `lib/core/include/core_network.h:170:9`!(sock_remote_addr(xact->gnode->sock)));
537
538 if (xact->stepcxx . . $ _gtp_xact_t#step. == 2)
539 {
540 gtp_xact_deletecxx . . $ gtp_xact_delete(43b36c6d25e5d9d).(xact);
541 return CORE_OKcxx . . $ `lib/core/include/core_errno.h:219:9`!;
542 }
543
544 break;
545
546 default:
547 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(0, return CORE_ERRORcxx . . $ `lib/core/include/core_errno.h:220:9`!, "invalid step(%d)", xact->step);
548 }
549 }
550 else if (xact->orgcxx . . $ _gtp_xact_t#org. == GTP_REMOTE_ORIGINATORcxx . . $ `lib/gtp/gtp_xact.h:25:9`!)
551 {
552 switch(stage)
553 {
554 case GTP_XACT_INITIAL_STAGEcxx . . $ GTP_XACT_INITIAL_STAGE.:
555 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(0, return CORE_ERRORcxx . . $ `lib/core/include/core_errno.h:220:9`!, "invalid step(%d)", xact->step);
556
557 case GTP_XACT_INTERMEDIATE_STAGEcxx . . $ GTP_XACT_INTERMEDIATE_STAGE.:
558 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(xact->step == 2, return CORE_ERRORcxx . . $ `lib/core/include/core_errno.h:220:9`!,
559 "[%d] %s invalid step %d for type %d peer [%s]:%d",
560 xact->xid,
561 xact->org == GTP_LOCAL_ORIGINATORcxx . . $ `lib/gtp/gtp_xact.h:24:9`! ? "LOCAL " : "REMOTE",
562 xact->step, type,
563 CORE_ADDRcxx . . $ `lib/core/include/core_network.h:168:9`!(sock_remote_addr(xact->gnode->sock), buf),
564 CORE_PORTcxx . . $ `lib/core/include/core_network.h:170:9`!(sock_remote_addr(xact->gnode->sock)));
565
566 if (xact->tm_responsecxx . . $ _gtp_xact_t#tm_response.)
567 tm_startcxx . . $ tm_start(15f694ef3c96d230).(xact->tm_responsecxx . . $ _gtp_xact_t#tm_response.);
568
569 break;
570
571 case GTP_XACT_FINAL_STAGEcxx . . $ GTP_XACT_FINAL_STAGE.:
572 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(xact->step == 2 || xact->step == 3,
573 return CORE_ERRORcxx . . $ `lib/core/include/core_errno.h:220:9`!,
574 "[%d] %s invalid step %d for type %d peer [%s]:%d",
575 xact->xid,
576 xact->org == GTP_LOCAL_ORIGINATORcxx . . $ `lib/gtp/gtp_xact.h:24:9`! ? "LOCAL " : "REMOTE",
577 xact->step, type,
578 CORE_ADDRcxx . . $ `lib/core/include/core_network.h:168:9`!(sock_remote_addr(xact->gnode->sock), buf),
579 CORE_PORTcxx . . $ `lib/core/include/core_network.h:170:9`!(sock_remote_addr(xact->gnode->sock)));
580
581 if (xact->stepcxx . . $ _gtp_xact_t#step. == 3)
582 {
583 gtp_xact_deletecxx . . $ gtp_xact_delete(43b36c6d25e5d9d).(xact);
584 return CORE_OKcxx . . $ `lib/core/include/core_errno.h:219:9`!;
585 }
586
587 break;
588
589 default:
590 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(0, return CORE_ERRORcxx . . $ `lib/core/include/core_errno.h:220:9`!, "invalid step(%d)", xact->step);
591 }
592 }
593 else
594 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(0, return CORE_ERRORcxx . . $ `lib/core/include/core_errno.h:220:9`!, "invalid orginator(%d)", xact->org);
595
596 pkbuf = xact->seqcxx . . $ _gtp_xact_t#seq.[xact->stepcxx . . $ _gtp_xact_t#step.-1].pkbufcxx . . $ _gtp_xact_t#$anonymous_type_0#pkbuf.;
597 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(pkbuf, return CORE_ERRORcxx . . $ `lib/core/include/core_errno.h:220:9`!, "Null param");
598
599 rv = gtp_sendcxx . . $ gtp_send(b52758b18fe24cb).(xact->gnodecxx . . $ _gtp_xact_t#gnode., pkbuf);
600 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(rv == CORE_OKcxx . . $ `lib/core/include/core_errno.h:219:9`!, return CORE_ERRORcxx . . $ `lib/core/include/core_errno.h:220:9`!, "gtp_send error");
601
602 return CORE_OKcxx . . $ `lib/core/include/core_errno.h:219:9`!;
603 }
604
605 status_tcxx . . $ status_t# gtp_xact_timeoutcxx . . $ gtp_xact_timeout(22deb6e807049a0f).(index_tcxx . . $ index_t# index, c_uintptr_tcxx . . $ c_uintptr_t# event)
606 {
607 char buf[CORE_ADDRSTRLENcxx . . $ `lib/core/include/core_network.h:167:9`!];
608 gtp_xact_tcxx . . $ gtp_xact_t# *xact = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
609
610 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(index, goto out, "Invalid Index");
611 xact = index_findcxx . . $ `lib/core/include/core_index.h:78:9`!(&gtp_xact_pool, index);
612 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(xact, goto out, "Null param");
613 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(xact->gnode, goto out, "Null param");
614
615 if (event == g_response_eventcxx . . $ g_response_event.)
616 {
617 d_tracecxx . . $ `lib/core/include/core_debug.h:82:9`!(15, "[%d] %s Response Timeout "
618 "for step %d type %d peer [%s]:%d\n",
619 xact->xid,
620 xact->org == GTP_LOCAL_ORIGINATORcxx . . $ `lib/gtp/gtp_xact.h:24:9`! ? "LOCAL " : "REMOTE",
621 xact->step, xact->seq[xact->step-1].type,
622 CORE_ADDRcxx . . $ `lib/core/include/core_network.h:168:9`!(sock_remote_addr(xact->gnode->sock), buf),
623 CORE_PORTcxx . . $ `lib/core/include/core_network.h:170:9`!(sock_remote_addr(xact->gnode->sock)));
624
625 if (--xact->response_rcountcxx . . $ _gtp_xact_t#response_rcount. > 0)
626 {
627 pkbuf_tcxx . . $ pkbuf_t# *pkbuf = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
628
629 if (xact->tm_responsecxx . . $ _gtp_xact_t#tm_response.)
630 tm_startcxx . . $ tm_start(15f694ef3c96d230).(xact->tm_responsecxx . . $ _gtp_xact_t#tm_response.);
631
632 pkbuf = xact->seqcxx . . $ _gtp_xact_t#seq.[xact->stepcxx . . $ _gtp_xact_t#step.-1].pkbufcxx . . $ _gtp_xact_t#$anonymous_type_0#pkbuf.;
633 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(pkbuf, return CORE_ERRORcxx . . $ `lib/core/include/core_errno.h:220:9`!, "Null param");
634
635 if (gtp_sendcxx . . $ gtp_send(b52758b18fe24cb).(xact->gnodecxx . . $ _gtp_xact_t#gnode., pkbuf) != CORE_OKcxx . . $ `lib/core/include/core_errno.h:219:9`!)
636 {
637 d_errorcxx . . $ `lib/core/include/core_debug.h:123:9`!("gtp_send() failed");
638 goto out;
639 }
640 }
641 else
642 {
•643 d_warncxx . . $ `lib/core/include/core_debug.h:114:9`!("[%d] %s No Response. Give up! "
644 "for step %d type %d peer [%s]:%d",
645 xact->xid,
646 xact->org == GTP_LOCAL_ORIGINATORcxx . . $ `lib/gtp/gtp_xact.h:24:9`! ? "LOCAL " : "REMOTE",
647 xact->step, xact->seq[xact->step-1].type,
648 CORE_ADDRcxx . . $ `lib/core/include/core_network.h:168:9`!(sock_remote_addr(xact->gnode->sock), buf),
649 CORE_PORTcxx . . $ `lib/core/include/core_network.h:170:9`!(sock_remote_addr(xact->gnode->sock)));
650 gtp_xact_deletecxx . . $ gtp_xact_delete(43b36c6d25e5d9d).(xact);
651 }
652 }
653 else if (event == g_holding_eventcxx . . $ g_holding_event.)
654 {
655 d_tracecxx . . $ `lib/core/include/core_debug.h:82:9`!(15, "[%d] %s Holding Timeout "
656 "for step %d type %d peer [%s]:%d\n",
657 xact->xid,
658 xact->org == GTP_LOCAL_ORIGINATORcxx . . $ `lib/gtp/gtp_xact.h:24:9`! ? "LOCAL " : "REMOTE",
659 xact->step, xact->seq[xact->step-1].type,
660 CORE_ADDRcxx . . $ `lib/core/include/core_network.h:168:9`!(sock_remote_addr(xact->gnode->sock), buf),
661 CORE_PORTcxx . . $ `lib/core/include/core_network.h:170:9`!(sock_remote_addr(xact->gnode->sock)));
662
663 if (--xact->holding_rcountcxx . . $ _gtp_xact_t#holding_rcount. > 0)
664 {
665 if (xact->tm_holdingcxx . . $ _gtp_xact_t#tm_holding.)
666 tm_startcxx . . $ tm_start(15f694ef3c96d230).(xact->tm_holdingcxx . . $ _gtp_xact_t#tm_holding.);
667 }
668 else
669 {
670 d_tracecxx . . $ `lib/core/include/core_debug.h:82:9`!(15, "[%d] %s Delete Transaction "
671 "for step %d type %d peer [%s]:%d\n",
672 xact->xid,
673 xact->org == GTP_LOCAL_ORIGINATORcxx . . $ `lib/gtp/gtp_xact.h:24:9`! ? "LOCAL " : "REMOTE",
674 xact->step, xact->seq[xact->step-1].type,
675 CORE_ADDRcxx . . $ `lib/core/include/core_network.h:168:9`!(sock_remote_addr(xact->gnode->sock), buf),
676 CORE_PORTcxx . . $ `lib/core/include/core_network.h:170:9`!(sock_remote_addr(xact->gnode->sock)));
677 gtp_xact_deletecxx . . $ gtp_xact_delete(43b36c6d25e5d9d).(xact);
678 }
679 }
680
681 return CORE_OKcxx . . $ `lib/core/include/core_errno.h:219:9`!;
682
683 out:
684 gtp_xact_deletecxx . . $ gtp_xact_delete(43b36c6d25e5d9d).(xact);
685 return CORE_ERRORcxx . . $ `lib/core/include/core_errno.h:220:9`!;
686 }
687
688 status_tcxx . . $ status_t# gtp_xact_receivecxx . . $ gtp_xact_receive(c082a2724a718c60).(
689 gtp_node_tcxx . . $ gtp_node_t# *gnode, gtp_header_tcxx . . $ gtp_header_t# *h, gtp_xact_tcxx . . $ gtp_xact_t# **xact)
690 {
691 char buf[CORE_ADDRSTRLENcxx . . $ `lib/core/include/core_network.h:167:9`!];
692 status_tcxx . . $ status_t# rv;
693 gtp_xact_tcxx . . $ gtp_xact_t# *new = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
694
695 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(gnode, return CORE_ERRORcxx . . $ `lib/core/include/core_errno.h:220:9`!, "Null param");
696 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(h, return CORE_ERRORcxx . . $ `lib/core/include/core_errno.h:220:9`!, "Null param");
697
698 new = gtp_xact_find_by_xidcxx . . $ gtp_xact_find_by_xid(b78625ef5e1e06d7).(gnode, h->typecxx . . $ _gtp_header_t#type., GTP_SQN_TO_XIDcxx . . $ `lib/gtp/gtp_message.h:66:9`!(h->sqn));
699 if (!new)
700 new = gtp_xact_remote_createcxx . . $ gtp_xact_remote_create(c43ec0ee14f9f3e0).(gnode, h->sqncxx . . $ _gtp_header_t#$anonymous_type_2#$anonymous_type_3#sqn.);
701 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(new, return CORE_ERRORcxx . . $ `lib/core/include/core_errno.h:220:9`!, "Null param");
702
703 d_tracecxx . . $ `lib/core/include/core_debug.h:82:9`!(15, "[%d] %s Receive peer [%s]:%d\n",
704 new->xid,
705 new->org == GTP_LOCAL_ORIGINATORcxx . . $ `lib/gtp/gtp_xact.h:24:9`! ? "LOCAL " : "REMOTE",
706 CORE_ADDRcxx . . $ `lib/core/include/core_network.h:168:9`!(sock_remote_addr(gnode->sock), buf),
707 CORE_PORTcxx . . $ `lib/core/include/core_network.h:170:9`!(sock_remote_addr(gnode->sock)));
708
709 rv = gtp_xact_update_rxcxx . . $ gtp_xact_update_rx(7dc7b6534dad94dc).(new, h->typecxx . . $ _gtp_header_t#type.);
710 if (rv != CORE_OKcxx . . $ `lib/core/include/core_errno.h:219:9`!)
711 {
712 return rv;
713 }
714
715 *xact = new;
716 return CORE_OKcxx . . $ `lib/core/include/core_errno.h:219:9`!;
717 }
718
719 gtp_xact_tcxx . . $ gtp_xact_t# *gtp_xact_findcxx . . $ gtp_xact_find(36cd99fbf6bbd89).(index_tcxx . . $ index_t# index)
720 {
721 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(index, return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, "Invalid Index");
722 return index_findcxx . . $ `lib/core/include/core_index.h:78:9`!(&gtp_xact_pool, index);
723 }
724
725 static gtp_xact_stage_tcxx . . $ gtp_xact_stage_t# gtp_xact_get_stagecxx . . $ gtp_xact_get_stage(3d81264eac714d46).(c_uint8_tcxx . . $ c_uint8_t# type, c_uint32_tcxx . . $ c_uint32_t# xid)
726 {
727 gtp_xact_stage_tcxx . . $ gtp_xact_stage_t# stage = GTP_XACT_UNKNOWN_STAGEcxx . . $ GTP_XACT_UNKNOWN_STAGE.;
728
729 switch(type)
730 {
731 case GTP_CREATE_SESSION_REQUEST_TYPEcxx . . $ `lib/gtp/gtp_message.h:86:9`!:
732 case GTP_MODIFY_BEARER_REQUEST_TYPEcxx . . $ `lib/gtp/gtp_message.h:88:9`!:
733 case GTP_DELETE_SESSION_REQUEST_TYPEcxx . . $ `lib/gtp/gtp_message.h:90:9`!:
734 case GTP_MODIFY_BEARER_COMMAND_TYPEcxx . . $ `lib/gtp/gtp_message.h:96:9`!:
735 case GTP_DELETE_BEARER_COMMAND_TYPEcxx . . $ `lib/gtp/gtp_message.h:98:9`!:
736 case GTP_BEARER_RESOURCE_COMMAND_TYPEcxx . . $ `lib/gtp/gtp_message.h:100:9`!:
737 case GTP_RELEASE_ACCESS_BEARERS_REQUEST_TYPEcxx . . $ `lib/gtp/gtp_message.h:126:9`!:
738 case GTP_CREATE_INDIRECT_DATA_FORWARDING_TUNNEL_REQUEST_TYPEcxx . . $ `lib/gtp/gtp_message.h:122:9`!:
739 case GTP_DELETE_INDIRECT_DATA_FORWARDING_TUNNEL_REQUEST_TYPEcxx . . $ `lib/gtp/gtp_message.h:124:9`!:
740 case GTP_DOWNLINK_DATA_NOTIFICATION_TYPEcxx . . $ `lib/gtp/gtp_message.h:128:9`!:
741 stage = GTP_XACT_INITIAL_STAGEcxx . . $ GTP_XACT_INITIAL_STAGE.;
742 break;
743 case GTP_CREATE_BEARER_REQUEST_TYPEcxx . . $ `lib/gtp/gtp_message.h:106:9`!:
744 case GTP_UPDATE_BEARER_REQUEST_TYPEcxx . . $ `lib/gtp/gtp_message.h:108:9`!:
745 case GTP_DELETE_BEARER_REQUEST_TYPEcxx . . $ `lib/gtp/gtp_message.h:110:9`!:
746 if (xid & GTP_MAX_XACT_IDcxx . . $ `lib/gtp/gtp_xact.c:15:9`!)
747 stage = GTP_XACT_INTERMEDIATE_STAGEcxx . . $ GTP_XACT_INTERMEDIATE_STAGE.;
748 else
749 stage = GTP_XACT_INITIAL_STAGEcxx . . $ GTP_XACT_INITIAL_STAGE.;
750 break;
751 case GTP_CREATE_SESSION_RESPONSE_TYPEcxx . . $ `lib/gtp/gtp_message.h:87:9`!:
752 case GTP_MODIFY_BEARER_RESPONSE_TYPEcxx . . $ `lib/gtp/gtp_message.h:89:9`!:
753 case GTP_DELETE_SESSION_RESPONSE_TYPEcxx . . $ `lib/gtp/gtp_message.h:91:9`!:
754 case GTP_MODIFY_BEARER_FAILURE_INDICATION_TYPEcxx . . $ `lib/gtp/gtp_message.h:97:9`!:
755 case GTP_DELETE_BEARER_FAILURE_INDICATION_TYPEcxx . . $ `lib/gtp/gtp_message.h:99:9`!:
756 case GTP_BEARER_RESOURCE_FAILURE_INDICATION_TYPEcxx . . $ `lib/gtp/gtp_message.h:101:9`!:
757 case GTP_CREATE_BEARER_RESPONSE_TYPEcxx . . $ `lib/gtp/gtp_message.h:107:9`!:
758 case GTP_UPDATE_BEARER_RESPONSE_TYPEcxx . . $ `lib/gtp/gtp_message.h:109:9`!:
759 case GTP_DELETE_BEARER_RESPONSE_TYPEcxx . . $ `lib/gtp/gtp_message.h:111:9`!:
760 case GTP_RELEASE_ACCESS_BEARERS_RESPONSE_TYPEcxx . . $ `lib/gtp/gtp_message.h:127:9`!:
761 case GTP_CREATE_INDIRECT_DATA_FORWARDING_TUNNEL_RESPONSE_TYPEcxx . . $ `lib/gtp/gtp_message.h:123:9`!:
762 case GTP_DELETE_INDIRECT_DATA_FORWARDING_TUNNEL_RESPONSE_TYPEcxx . . $ `lib/gtp/gtp_message.h:125:9`!:
763 case GTP_DOWNLINK_DATA_NOTIFICATION_ACKNOWLEDGE_TYPEcxx . . $ `lib/gtp/gtp_message.h:129:9`!:
764 stage = GTP_XACT_FINAL_STAGEcxx . . $ GTP_XACT_FINAL_STAGE.;
765 break;
766
767 default:
768 d_errorcxx . . $ `lib/core/include/core_debug.h:123:9`!("Not implemented GTPv2 Message Type(%d)", type);
769 break;
770 }
771
772 return stage;
773 }
774
775 gtp_xact_tcxx . . $ gtp_xact_t# *gtp_xact_find_by_xidcxx . . $ gtp_xact_find_by_xid(b78625ef5e1e06d7).(
776 gtp_node_tcxx . . $ gtp_node_t# *gnode, c_uint8_tcxx . . $ c_uint8_t# type, c_uint32_tcxx . . $ c_uint32_t# xid)
777 {
778 char buf[CORE_ADDRSTRLENcxx . . $ `lib/core/include/core_network.h:167:9`!];
779 gtp_xact_tcxx . . $ gtp_xact_t# *xact = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
780
781 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(gnode, return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, "Null param");
782
783 switch(gtp_xact_get_stagecxx . . $ gtp_xact_get_stage(3d81264eac714d46).(type, xid))
784 {
785 case GTP_XACT_INITIAL_STAGEcxx . . $ GTP_XACT_INITIAL_STAGE.:
786 xact = list_firstcxx . . $ `lib/core/include/core_list.h:24:9`!(&gnode->remote_list);
787 break;
788 case GTP_XACT_INTERMEDIATE_STAGEcxx . . $ GTP_XACT_INTERMEDIATE_STAGE.:
789 xact = list_firstcxx . . $ `lib/core/include/core_list.h:24:9`!(&gnode->local_list);
790 break;
791 case GTP_XACT_FINAL_STAGEcxx . . $ GTP_XACT_FINAL_STAGE.:
792 if (xid & GTP_MAX_XACT_IDcxx . . $ `lib/gtp/gtp_xact.c:15:9`!)
793 xact = list_firstcxx . . $ `lib/core/include/core_list.h:24:9`!(&gnode->remote_list);
794 else
795 xact = list_firstcxx . . $ `lib/core/include/core_list.h:24:9`!(&gnode->local_list);
796 break;
797
798 default:
799 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(0, return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, "Unknown stage");
800 }
801
802 while(xact)
803 {
804 if (xact->xidcxx . . $ _gtp_xact_t#xid. == xid)
805 break;
806 xact = list_nextcxx . . $ `lib/core/include/core_list.h:30:9`!(xact);
807 }
808
809 if (xact)
810 {
811 d_tracecxx . . $ `lib/core/include/core_debug.h:82:9`!(15, "[%d] %s Find peer [%s]:%d\n",
812 xact->xid,
813 xact->org == GTP_LOCAL_ORIGINATORcxx . . $ `lib/gtp/gtp_xact.h:24:9`! ? "LOCAL " : "REMOTE",
814 CORE_ADDRcxx . . $ `lib/core/include/core_network.h:168:9`!(sock_remote_addr(gnode->sock), buf),
815 CORE_PORTcxx . . $ `lib/core/include/core_network.h:170:9`!(sock_remote_addr(gnode->sock)));
816 }
817
818 return xact;
819 }
820
821 void gtp_xact_associatecxx . . $ gtp_xact_associate(6f41baf2ba5d4ba5).(gtp_xact_tcxx . . $ gtp_xact_t# *xact1, gtp_xact_tcxx . . $ gtp_xact_t# *xact2)
822 {
823 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(xact1, return, "Null param");
824 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(xact2, return, "Null param");
825
826 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(xact1->assoc_xact == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, return, "Already assocaited");
827 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(xact2->assoc_xact == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, return, "Already assocaited");
828
829 xact1->assoc_xactcxx . . $ _gtp_xact_t#assoc_xact. = xact2;
830 xact2->assoc_xactcxx . . $ _gtp_xact_t#assoc_xact. = xact1;
831 }
832
833 void gtp_xact_deassociatecxx . . $ gtp_xact_deassociate(6f41baf2ba5d4ba5).(gtp_xact_tcxx . . $ gtp_xact_t# *xact1, gtp_xact_tcxx . . $ gtp_xact_t# *xact2)
834 {
835 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(xact1, return, "Null param");
836 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(xact2, return, "Null param");
837
838 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(xact1->assoc_xact != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, return, "Already deassocaited");
839 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(xact2->assoc_xact != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, return, "Already deassocaited");
840
841 xact1->assoc_xactcxx . . $ _gtp_xact_t#assoc_xact. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
842 xact2->assoc_xactcxx . . $ _gtp_xact_t#assoc_xact. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
843 }
844
845 static status_tcxx . . $ status_t# gtp_xact_deletecxx . . $ gtp_xact_delete(43b36c6d25e5d9d).(gtp_xact_tcxx . . $ gtp_xact_t# *xact)
846 {
847 char buf[CORE_ADDRSTRLENcxx . . $ `lib/core/include/core_network.h:167:9`!];
848
849 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(xact, , "Null param");
850 d_assertcxx . . $ `lib/core/include/core_debug.h:140:9`!(xact->gnode, , "Null param");
851
852 d_tracecxx . . $ `lib/core/include/core_debug.h:82:9`!(15, "[%d] %s Delete peer [%s]:%d\n",
853 xact->xid,
854 xact->org == GTP_LOCAL_ORIGINATORcxx . . $ `lib/gtp/gtp_xact.h:24:9`! ? "LOCAL " : "REMOTE",
855 CORE_ADDRcxx . . $ `lib/core/include/core_network.h:168:9`!(sock_remote_addr(xact->gnode->sock), buf),
856 CORE_PORTcxx . . $ `lib/core/include/core_network.h:170:9`!(sock_remote_addr(xact->gnode->sock)));
857
858 if (xact->seqcxx . . $ _gtp_xact_t#seq.[0].pkbufcxx . . $ _gtp_xact_t#$anonymous_type_0#pkbuf.)
859 pkbuf_freecxx . . $ pkbuf_free(71b479c1af65ed06).(xact->seqcxx . . $ _gtp_xact_t#seq.[0].pkbufcxx . . $ _gtp_xact_t#$anonymous_type_0#pkbuf.);
860 if (xact->seqcxx . . $ _gtp_xact_t#seq.[1].pkbufcxx . . $ _gtp_xact_t#$anonymous_type_0#pkbuf.)
861 pkbuf_freecxx . . $ pkbuf_free(71b479c1af65ed06).(xact->seqcxx . . $ _gtp_xact_t#seq.[1].pkbufcxx . . $ _gtp_xact_t#$anonymous_type_0#pkbuf.);
862 if (xact->seqcxx . . $ _gtp_xact_t#seq.[2].pkbufcxx . . $ _gtp_xact_t#$anonymous_type_0#pkbuf.)
863 pkbuf_freecxx . . $ pkbuf_free(71b479c1af65ed06).(xact->seqcxx . . $ _gtp_xact_t#seq.[2].pkbufcxx . . $ _gtp_xact_t#$anonymous_type_0#pkbuf.);
864
865 if (xact->tm_responsecxx . . $ _gtp_xact_t#tm_response.)
866 tm_deletecxx . . $ tm_delete(2c44cd906ae4e829).(xact->tm_responsecxx . . $ _gtp_xact_t#tm_response.);
867 if (xact->tm_holdingcxx . . $ _gtp_xact_t#tm_holding.)
868 tm_deletecxx . . $ tm_delete(2c44cd906ae4e829).(xact->tm_holdingcxx . . $ _gtp_xact_t#tm_holding.);
869
870 if (xact->assoc_xactcxx . . $ _gtp_xact_t#assoc_xact.)
871 gtp_xact_deassociatecxx . . $ gtp_xact_deassociate(6f41baf2ba5d4ba5).(xact, xact->assoc_xactcxx . . $ _gtp_xact_t#assoc_xact.);
872
873 list_removecxx . . $ `lib/core/include/core_list.h:74:9`!(xact->org == GTP_LOCAL_ORIGINATORcxx . . $ `lib/gtp/gtp_xact.h:24:9`! ? &xact->gnode->local_list :
874 &xact->gnode->remote_list, xact);
875 index_freecxx . . $ `lib/core/include/core_index.h:66:9`!(&gtp_xact_pool, xact);
876
877 return CORE_OKcxx . . $ `lib/core/include/core_errno.h:219:9`!;
878 }
879