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
spbro
OpenXG-RAN
Commits
53fa9478
Commit
53fa9478
authored
Jul 19, 2016
by
Frédéric Leroy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UE/EMM: remove extern definitions for timers
parent
5ab2fccf
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
31 additions
and
36 deletions
+31
-36
openair3/NAS/UE/EMM/Attach.c
openair3/NAS/UE/EMM/Attach.c
+4
-5
openair3/NAS/UE/EMM/Authentication.c
openair3/NAS/UE/EMM/Authentication.c
+6
-13
openair3/NAS/UE/EMM/Detach.c
openair3/NAS/UE/EMM/Detach.c
+4
-7
openair3/NAS/UE/EMM/ServiceRequestHdl.c
openair3/NAS/UE/EMM/ServiceRequestHdl.c
+1
-6
openair3/NAS/UE/EMM/TrackingAreaUpdate.c
openair3/NAS/UE/EMM/TrackingAreaUpdate.c
+1
-5
openair3/NAS/UE/EMM/emm_timers.h
openair3/NAS/UE/EMM/emm_timers.h
+14
-0
openair3/NAS/UE/ESM/esm_ip.c
openair3/NAS/UE/ESM/esm_ip.c
+1
-0
No files found.
openair3/NAS/UE/EMM/Attach.c
View file @
53fa9478
...
...
@@ -59,6 +59,7 @@ Description Defines the attach related EMM procedure executed by the
#include "nas_timer.h"
#include "emmData.h"
#include "emm_timers.h"
#include "emm_sap.h"
#include "esm_sap.h"
...
...
@@ -90,9 +91,7 @@ static const char *_emm_attach_type_str[] = {
/*
* Timer handlers
*/
void
*
_emm_attach_t3410_handler
(
void
*
);
static
void
*
_emm_attach_t3411_handler
(
void
*
);
static
void
*
_emm_attach_t3402_handler
(
void
*
);
static
void
*
_emm_attach_t3411_handler
(
void
*
args
);
/*
* Abnormal case attach procedure
...
...
@@ -251,7 +250,7 @@ int emm_proc_attach(nas_user_t *user, emm_proc_attach_type_t type)
}
/* Start T3410 timer */
emm_timers
->
T3410
.
id
=
nas_timer_start
(
emm_timers
->
T3410
.
sec
,
_
emm_attach_t3410_handler
,
user
);
emm_timers
->
T3410
.
id
=
nas_timer_start
(
emm_timers
->
T3410
.
sec
,
emm_attach_t3410_handler
,
user
);
LOG_TRACE
(
INFO
,
"EMM-PROC - Timer T3410 (%d) expires in %ld seconds"
,
emm_timers
->
T3410
.
id
,
emm_timers
->
T3410
.
sec
);
/* Stop T3402 and T3411 timers if running */
...
...
@@ -991,7 +990,7 @@ int emm_proc_attach_set_detach(void *nas_user)
** Others: T3410 **
** **
***************************************************************************/
void
*
_
emm_attach_t3410_handler
(
void
*
args
)
void
*
emm_attach_t3410_handler
(
void
*
args
)
{
LOG_FUNC_IN
;
...
...
openair3/NAS/UE/EMM/Authentication.c
View file @
53fa9478
...
...
@@ -59,9 +59,11 @@ Description Defines the authentication EMM procedure executed by the
#include "nas_timer.h"
#include "emmData.h"
#include "emm_timers.h"
#include "emm_sap.h"
#include "emm_cause.h"
#include "emm_timers.h"
#include "usim_api.h"
#include "secu_defs.h"
...
...
@@ -72,15 +74,6 @@ Description Defines the authentication EMM procedure executed by the
/**************** E X T E R N A L D E F I N I T I O N S ****************/
/****************************************************************************/
/*
* Retransmission timer handlers
*/
// FIXME REVIEW
extern
void
*
_emm_attach_t3410_handler
(
void
*
);
extern
void
*
_emm_service_t3417_handler
(
void
*
);
extern
void
*
_emm_detach_t3421_handler
(
void
*
);
extern
void
*
_emm_tau_t3430_handler
(
void
*
);
extern
uint8_t
usim_test
;
/****************************************************************************/
...
...
@@ -876,28 +869,28 @@ static int _authentication_start_timers(nas_user_t *user)
if
(
authentication_data
->
timers
&
AUTHENTICATION_T3410
)
{
/* Start attach timer */
emm_timers
->
T3410
.
id
=
nas_timer_start
(
emm_timers
->
T3410
.
sec
,
_
emm_attach_t3410_handler
,
NULL
);
emm_timers
->
T3410
.
id
=
nas_timer_start
(
emm_timers
->
T3410
.
sec
,
emm_attach_t3410_handler
,
NULL
);
LOG_TRACE
(
INFO
,
"EMM-PROC - Timer T3410 (%d) expires in "
"%ld seconds"
,
emm_timers
->
T3410
.
id
,
emm_timers
->
T3410
.
sec
);
}
if
(
authentication_data
->
timers
&
AUTHENTICATION_T3417
)
{
/* Start service request timer */
emm_timers
->
T3417
.
id
=
nas_timer_start
(
emm_timers
->
T3417
.
sec
,
_
emm_service_t3417_handler
,
NULL
);
emm_timers
->
T3417
.
id
=
nas_timer_start
(
emm_timers
->
T3417
.
sec
,
emm_service_t3417_handler
,
NULL
);
LOG_TRACE
(
INFO
,
"EMM-PROC - Timer T3417 (%d) expires in "
"%ld seconds"
,
emm_timers
->
T3417
.
id
,
emm_timers
->
T3417
.
sec
);
}
if
(
authentication_data
->
timers
&
AUTHENTICATION_T3421
)
{
/* Start detach timer */
emm_timers
->
T3421
.
id
=
nas_timer_start
(
emm_timers
->
T3421
.
sec
,
_
emm_detach_t3421_handler
,
NULL
);
emm_timers
->
T3421
.
id
=
nas_timer_start
(
emm_timers
->
T3421
.
sec
,
emm_detach_t3421_handler
,
NULL
);
LOG_TRACE
(
INFO
,
"EMM-PROC - Timer T3421 (%d) expires in "
"%ld seconds"
,
emm_timers
->
T3421
.
id
,
emm_timers
->
T3421
.
sec
);
}
if
(
authentication_data
->
timers
&
AUTHENTICATION_T3430
)
{
/* Start tracking area update timer */
emm_timers
->
T3430
.
id
=
nas_timer_start
(
emm_timers
->
T3430
.
sec
,
_
emm_tau_t3430_handler
,
NULL
);
emm_timers
->
T3430
.
id
=
nas_timer_start
(
emm_timers
->
T3430
.
sec
,
emm_tau_t3430_handler
,
NULL
);
LOG_TRACE
(
INFO
,
"EMM-PROC - Timer T3430 (%d) expires in "
"%ld seconds"
,
emm_timers
->
T3430
.
id
,
emm_timers
->
T3430
.
sec
);
}
...
...
openair3/NAS/UE/EMM/Detach.c
View file @
53fa9478
...
...
@@ -49,6 +49,7 @@ Description Defines the detach related EMM procedure executed by the
#include "nas_timer.h"
#include "emmData.h"
#include "emm_timers.h"
#include "emm_sap.h"
#include "esm_sap.h"
...
...
@@ -75,10 +76,6 @@ static const char *_emm_detach_type_str[] = {
* Internal data handled by the detach procedure in the UE
* --------------------------------------------------------------------------
*/
/*
* Timer handlers
*/
void
*
_emm_detach_t3421_handler
(
void
*
);
/*
* Abnormal case detach procedures
...
...
@@ -196,7 +193,7 @@ int emm_proc_detach_request(void *args)
if
(
!
emm_detach_data
->
switch_off
)
{
/* Start T3421 timer */
emm_timers
->
T3421
.
id
=
nas_timer_start
(
emm_timers
->
T3421
.
sec
,
_
emm_detach_t3421_handler
,
user
);
emm_timers
->
T3421
.
id
=
nas_timer_start
(
emm_timers
->
T3421
.
sec
,
emm_detach_t3421_handler
,
user
);
LOG_TRACE
(
INFO
,
"EMM-PROC - Timer T3421 (%d) expires in %ld seconds"
,
emm_timers
->
T3421
.
id
,
emm_timers
->
T3421
.
sec
);
}
...
...
@@ -372,7 +369,7 @@ int emm_proc_detach_release(void *args)
** Others: None **
** **
***************************************************************************/
void
*
_
emm_detach_t3421_handler
(
void
*
args
)
void
*
emm_detach_t3421_handler
(
void
*
args
)
{
LOG_FUNC_IN
;
...
...
@@ -419,7 +416,7 @@ void *_emm_detach_t3421_handler(void *args)
if
(
rc
!=
RETURNerror
)
{
/* Start T3421 timer */
emm_timers
->
T3421
.
id
=
nas_timer_start
(
emm_timers
->
T3421
.
sec
,
_
emm_detach_t3421_handler
,
user
);
emm_timers
->
T3421
.
id
=
nas_timer_start
(
emm_timers
->
T3421
.
sec
,
emm_detach_t3421_handler
,
user
);
LOG_TRACE
(
INFO
,
"EMM-PROC - Timer T3421 (%d) expires in %ld "
"seconds"
,
emm_timers
->
T3421
.
id
,
emm_timers
->
T3421
.
sec
);
}
...
...
openair3/NAS/UE/EMM/ServiceRequestHdl.c
View file @
53fa9478
...
...
@@ -67,11 +67,6 @@ Description Defines the service request EMM procedure executed by the
* Internal data handled by the service request procedure in the UE
* --------------------------------------------------------------------------
*/
/*
* Timer handlers
*/
void
*
_emm_service_t3417_handler
(
void
*
);
/*
* --------------------------------------------------------------------------
* Internal data handled by the service request procedure in the MME
...
...
@@ -109,7 +104,7 @@ void *_emm_service_t3417_handler(void *);
** Others: None **
** **
***************************************************************************/
void
*
_
emm_service_t3417_handler
(
void
*
args
)
void
*
emm_service_t3417_handler
(
void
*
args
)
{
LOG_FUNC_IN
;
nas_user_t
*
user
=
args
;
...
...
openair3/NAS/UE/EMM/TrackingAreaUpdate.c
View file @
53fa9478
...
...
@@ -67,10 +67,6 @@ Description Defines the tracking area update EMM procedure executed by the
* Internal data handled by the tracking area update procedure in the UE
* --------------------------------------------------------------------------
*/
/*
* Timer handlers
*/
void
*
_emm_tau_t3430_handler
(
void
*
);
/*
* --------------------------------------------------------------------------
...
...
@@ -110,7 +106,7 @@ void *_emm_tau_t3430_handler(void *);
** Others: None **
** **
***************************************************************************/
void
*
_
emm_tau_t3430_handler
(
void
*
args
)
void
*
emm_tau_t3430_handler
(
void
*
args
)
{
LOG_FUNC_IN
;
nas_user_t
*
user
=
args
;
...
...
openair3/NAS/UE/EMM/emm_timers.h
0 → 100644
View file @
53fa9478
#ifndef EMM_TIMERS_H
#define EMM_TIMERS_H
/*
* Retransmission timer handlers
*/
void
*
emm_attach_t3410_handler
(
void
*
);
void
*
emm_service_t3417_handler
(
void
*
);
void
*
emm_detach_t3421_handler
(
void
*
);
void
*
emm_tau_t3430_handler
(
void
*
);
#endif
openair3/NAS/UE/ESM/esm_ip.c
View file @
53fa9478
...
...
@@ -22,6 +22,7 @@
#include "emmData.h"
#include "esmData.h"
// FIXME don't work for reentrant calls
char
ip_addr_str
[
100
];
inline
char
*
esm_data_get_ipv4_addr
(
const
OctetString
*
ip_addr
)
...
...
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