Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangwenhui
OpenXG-RAN
Commits
55364a88
Commit
55364a88
authored
Jul 11, 2016
by
Frédéric Leroy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UE/ESM: fix esm_pt_start_timer callback
parent
223247ce
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
8 deletions
+7
-8
openair3/NAS/UE/ESM/PdnConnectivity.c
openair3/NAS/UE/ESM/PdnConnectivity.c
+2
-2
openair3/NAS/UE/ESM/PdnDisconnect.c
openair3/NAS/UE/ESM/PdnDisconnect.c
+2
-3
openair3/NAS/UE/ESM/esm_pt.c
openair3/NAS/UE/ESM/esm_pt.c
+2
-2
openair3/NAS/UE/ESM/esm_pt.h
openair3/NAS/UE/ESM/esm_pt.h
+1
-1
No files found.
openair3/NAS/UE/ESM/PdnConnectivity.c
View file @
55364a88
...
...
@@ -302,7 +302,7 @@ int esm_proc_pdn_connectivity_request(nas_user_t *user, int is_standalone, int p
if
(
rc
!=
RETURNerror
)
{
/* Start T3482 retransmission timer */
rc
=
esm_pt_start_timer
(
pti
,
msg
,
T3482_DEFAULT_VALUE
,
rc
=
esm_pt_start_timer
(
user
,
pti
,
msg
,
T3482_DEFAULT_VALUE
,
_pdn_connectivity_t3482_handler
);
}
}
...
...
@@ -635,7 +635,7 @@ static void *_pdn_connectivity_t3482_handler(void *args)
if
(
rc
!=
RETURNerror
)
{
/* Restart the timer T3482 */
rc
=
esm_pt_start_timer
(
data
->
pti
,
&
data
->
msg
,
T3482_DEFAULT_VALUE
,
rc
=
esm_pt_start_timer
(
user
,
data
->
pti
,
&
data
->
msg
,
T3482_DEFAULT_VALUE
,
_pdn_connectivity_t3482_handler
);
}
}
else
{
...
...
openair3/NAS/UE/ESM/PdnDisconnect.c
View file @
55364a88
...
...
@@ -191,7 +191,7 @@ int esm_proc_pdn_disconnect_request(nas_user_t *user, int is_standalone, int pti
if
(
rc
!=
RETURNerror
)
{
/* Start T3482 retransmission timer */
rc
=
esm_pt_start_timer
(
pti
,
msg
,
T3492_DEFAULT_VALUE
,
rc
=
esm_pt_start_timer
(
user
,
pti
,
msg
,
T3492_DEFAULT_VALUE
,
_pdn_disconnect_t3492_handler
);
}
}
...
...
@@ -382,7 +382,6 @@ int esm_proc_pdn_disconnect_reject(nas_user_t *user, int pti, int *esm_cause)
static
void
*
_pdn_disconnect_t3492_handler
(
void
*
args
)
{
LOG_FUNC_IN
;
// FIXME check callback call
nas_user_t
*
user
=
args
;
esm_data_t
*
esm_data
=
_esm_data
;;
int
rc
;
...
...
@@ -411,7 +410,7 @@ static void *_pdn_disconnect_t3492_handler(void *args)
if
(
rc
!=
RETURNerror
)
{
/* Restart the timer T3492 */
rc
=
esm_pt_start_timer
(
data
->
pti
,
&
data
->
msg
,
T3492_DEFAULT_VALUE
,
rc
=
esm_pt_start_timer
(
user
,
data
->
pti
,
&
data
->
msg
,
T3492_DEFAULT_VALUE
,
_pdn_disconnect_t3492_handler
);
}
}
else
{
...
...
openair3/NAS/UE/ESM/esm_pt.c
View file @
55364a88
...
...
@@ -264,7 +264,7 @@ int esm_pt_release(int pti)
** Others: _esm_pt_data **
** **
***************************************************************************/
int
esm_pt_start_timer
(
int
pti
,
const
OctetString
*
msg
,
int
esm_pt_start_timer
(
nas_user_t
*
user
,
int
pti
,
const
OctetString
*
msg
,
long
sec
,
nas_timer_callback_t
cb
)
{
LOG_FUNC_IN
;
...
...
@@ -291,6 +291,7 @@ int esm_pt_start_timer(int pti, const OctetString *msg,
ctx
->
args
=
(
esm_pt_timer_data_t
*
)
malloc
(
sizeof
(
esm_pt_timer_data_t
));
if
(
ctx
->
args
)
{
ctx
->
args
->
user
=
user
;
/* Set the EPS bearer identity */
ctx
->
args
->
pti
=
pti
;
/* Reset the retransmission counter */
...
...
@@ -308,7 +309,6 @@ int esm_pt_start_timer(int pti, const OctetString *msg,
* time interval */
ctx
->
timer
.
id
=
nas_timer_start
(
sec
,
cb
,
ctx
->
args
);
ctx
->
timer
.
sec
=
sec
;
// FIXME add user
}
}
...
...
openair3/NAS/UE/ESM/esm_pt.h
View file @
55364a88
...
...
@@ -86,7 +86,7 @@ void esm_pt_initialize(void);
int
esm_pt_assign
(
void
);
int
esm_pt_release
(
int
pti
);
int
esm_pt_start_timer
(
int
pti
,
const
OctetString
*
msg
,
long
sec
,
int
esm_pt_start_timer
(
nas_user_t
*
user
,
int
pti
,
const
OctetString
*
msg
,
long
sec
,
nas_timer_callback_t
cb
);
int
esm_pt_stop_timer
(
int
pti
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment