Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG UE
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
Michael Black
OpenXG UE
Commits
d260ee6e
Commit
d260ee6e
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
e4b01bea
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 @
d260ee6e
...
...
@@ -6,13 +6,35 @@
#include "user_api.h"
#include "utils.h"
char
*
make_filename
(
const
char
*
output_dir
,
const
char
*
filename
,
int
ueid
);
int
get_config_from_file
(
const
char
*
filename
,
config_t
*
config
);
int
parse_config_file
(
const
char
*
filename
);
const
char
*
output_dir
=
NULL
;
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
option
;
const
char
*
conf_file
=
NULL
;
const
char
options
[]
=
"c:o:h"
;
while
((
option
=
getopt
(
argc
,
argv
,
options
))
!=
-
1
)
{
switch
(
option
)
{
...
...
@@ -48,7 +70,6 @@ int main(int argc, char**argv) {
}
exit
(
EXIT_SUCCESS
);
}
int
parse_config_file
(
const
char
*
filename
)
{
...
...
openair3/NAS/TOOLS/conf2uedata.h
View file @
d260ee6e
...
...
@@ -88,41 +88,40 @@ typedef struct {
}
network_record_t
;
typedef
struct
{
const
char
*
fullname
;
const
char
*
shortname
;
const
char
*
mnc
;
const
char
*
mcc
;
const
char
*
fullname
;
const
char
*
shortname
;
const
char
*
mnc
;
const
char
*
mcc
;
}
plmn_conf_param_t
;
const
char
options
[]
=
"c:o:h"
;
unsigned
char
parse_data
=
FALSE
;
unsigned
char
print_data
=
FALSE
;
unsigned
char
output
=
FALSE
;
const
char
*
output_dir
=
NULL
;
const
char
*
imsi
=
NULL
;
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
;
extern
const
char
*
output_dir
;
extern
const
char
*
msin
;
extern
const
char
*
usim_api_k
;
extern
const
char
*
msisdn
;
extern
const
char
*
opc
;
extern
const
char
*
hplmn
;
extern
int
*
ucplmn
;
extern
int
*
oplmn
;
extern
int
*
ocplmn
;
extern
int
*
fplmn
;
extern
int
*
ehplmn
;
extern
int
hplmn_index
;
extern
int
plmn_nb
;
extern
int
ucplmn_nb
;
extern
int
oplmn_nb
;
extern
int
ocplmn_nb
;
extern
int
fplmn_nb
;
extern
int
ehplmn_nb
;
extern
plmn_conf_param_t
*
user_plmn_list
;
extern
network_record_t
*
user_network_record_list
;
char
*
make_filename
(
const
char
*
output_dir
,
const
char
*
filename
,
int
ueid
);
int
get_config_from_file
(
const
char
*
filename
,
config_t
*
config
);
int
parse_config_file
(
const
char
*
filename
);
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