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
lizhongxiao
OpenXG-RAN
Commits
e2dc453b
Commit
e2dc453b
authored
Aug 16, 2016
by
Frédéric Leroy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(conf2uedata): fix missing extern in header
parent
292535fe
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
57 additions
and
37 deletions
+57
-37
openair3/NAS/TOOLS/conf2uedata.c
openair3/NAS/TOOLS/conf2uedata.c
+25
-4
openair3/NAS/TOOLS/conf2uedata.h
openair3/NAS/TOOLS/conf2uedata.h
+32
-33
No files found.
openair3/NAS/TOOLS/conf2uedata.c
View file @
e2dc453b
...
@@ -6,13 +6,35 @@
...
@@ -6,13 +6,35 @@
#include "user_api.h"
#include "user_api.h"
#include "utils.h"
#include "utils.h"
char
*
make_filename
(
const
char
*
output_dir
,
const
char
*
filename
,
int
ueid
);
const
char
*
output_dir
=
NULL
;
int
get_config_from_file
(
const
char
*
filename
,
config_t
*
config
);
int
parse_config_file
(
const
char
*
filename
);
const
char
*
msin
=
NULL
;
const
char
*
usim_api_k
=
NULL
;
const
char
*
msisdn
=
NULL
;
const
char
*
opc
=
NULL
;
const
char
*
hplmn
=
NULL
;
int
*
ucplmn
=
NULL
;
int
*
oplmn
=
NULL
;
int
*
ocplmn
=
NULL
;
int
*
fplmn
=
NULL
;
int
*
ehplmn
=
NULL
;
int
hplmn_index
=
0
;
int
plmn_nb
=
0
;
int
ucplmn_nb
=
0
;
int
oplmn_nb
=
0
;
int
ocplmn_nb
=
0
;
int
fplmn_nb
=
0
;
int
ehplmn_nb
=
0
;
plmn_conf_param_t
*
user_plmn_list
=
NULL
;
network_record_t
*
user_network_record_list
=
NULL
;
int
main
(
int
argc
,
char
**
argv
)
{
int
main
(
int
argc
,
char
**
argv
)
{
int
option
;
int
option
;
const
char
*
conf_file
=
NULL
;
const
char
*
conf_file
=
NULL
;
const
char
options
[]
=
"c:o:h"
;
while
((
option
=
getopt
(
argc
,
argv
,
options
))
!=
-
1
)
{
while
((
option
=
getopt
(
argc
,
argv
,
options
))
!=
-
1
)
{
switch
(
option
)
{
switch
(
option
)
{
...
@@ -48,7 +70,6 @@ int main(int argc, char**argv) {
...
@@ -48,7 +70,6 @@ int main(int argc, char**argv) {
}
}
exit
(
EXIT_SUCCESS
);
exit
(
EXIT_SUCCESS
);
}
}
int
parse_config_file
(
const
char
*
filename
)
{
int
parse_config_file
(
const
char
*
filename
)
{
...
...
openair3/NAS/TOOLS/conf2uedata.h
View file @
e2dc453b
...
@@ -88,41 +88,40 @@ typedef struct {
...
@@ -88,41 +88,40 @@ typedef struct {
}
network_record_t
;
}
network_record_t
;
typedef
struct
{
typedef
struct
{
const
char
*
fullname
;
const
char
*
fullname
;
const
char
*
shortname
;
const
char
*
shortname
;
const
char
*
mnc
;
const
char
*
mnc
;
const
char
*
mcc
;
const
char
*
mcc
;
}
plmn_conf_param_t
;
}
plmn_conf_param_t
;
const
char
options
[]
=
"c:o:h"
;
extern
const
char
*
output_dir
;
unsigned
char
parse_data
=
FALSE
;
unsigned
char
print_data
=
FALSE
;
extern
const
char
*
msin
;
unsigned
char
output
=
FALSE
;
extern
const
char
*
usim_api_k
;
const
char
*
output_dir
=
NULL
;
extern
const
char
*
msisdn
;
extern
const
char
*
opc
;
const
char
*
imsi
=
NULL
;
extern
const
char
*
hplmn
;
const
char
*
msin
=
NULL
;
const
char
*
usim_api_k
=
NULL
;
extern
int
*
ucplmn
;
const
char
*
msisdn
=
NULL
;
extern
int
*
oplmn
;
const
char
*
opc
=
NULL
;
extern
int
*
ocplmn
;
const
char
*
hplmn
=
NULL
;
extern
int
*
fplmn
;
extern
int
*
ehplmn
;
int
*
ucplmn
=
NULL
;
int
*
oplmn
=
NULL
;
extern
int
hplmn_index
;
int
*
ocplmn
=
NULL
;
extern
int
plmn_nb
;
int
*
fplmn
=
NULL
;
extern
int
ucplmn_nb
;
int
*
ehplmn
=
NULL
;
extern
int
oplmn_nb
;
extern
int
ocplmn_nb
;
int
hplmn_index
=
0
;
extern
int
fplmn_nb
;
int
plmn_nb
=
0
;
extern
int
ehplmn_nb
;
int
ucplmn_nb
=
0
;
int
oplmn_nb
=
0
;
extern
plmn_conf_param_t
*
user_plmn_list
;
int
ocplmn_nb
=
0
;
extern
network_record_t
*
user_network_record_list
;
int
fplmn_nb
=
0
;
int
ehplmn_nb
=
0
;
char
*
make_filename
(
const
char
*
output_dir
,
const
char
*
filename
,
int
ueid
);
int
get_config_from_file
(
const
char
*
filename
,
config_t
*
config
);
plmn_conf_param_t
*
user_plmn_list
=
NULL
;
int
parse_config_file
(
const
char
*
filename
);
network_record_t
*
user_network_record_list
=
NULL
;
void
_display_usim_data
(
int
user_id
);
void
_display_usim_data
(
int
user_id
);
...
...
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