Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openairinterface5G
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Shweta Shrivastava
openairinterface5G
Commits
af402766
Commit
af402766
authored
8 years ago
by
FredericLeroy
Browse files
Options
Downloads
Patches
Plain Diff
feat(conf2uedata): add a selector for writing files
parent
6c588589
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
openair3/NAS/TOOLS/conf2uedata.c
+1
-1
1 addition, 1 deletion
openair3/NAS/TOOLS/conf2uedata.c
openair3/NAS/TOOLS/conf_parser.c
+13
-4
13 additions, 4 deletions
openair3/NAS/TOOLS/conf_parser.c
openair3/NAS/TOOLS/conf_parser.h
+6
-1
6 additions, 1 deletion
openair3/NAS/TOOLS/conf_parser.h
with
20 additions
and
6 deletions
openair3/NAS/TOOLS/conf2uedata.c
+
1
−
1
View file @
af402766
...
...
@@ -42,7 +42,7 @@ int main(int argc, char**argv) {
exit
(
1
);
}
if
(
parse_config_file
(
output_dir
,
conf_file
)
==
false
)
{
if
(
parse_config_file
(
output_dir
,
conf_file
,
OUTPUT_ALL
)
==
false
)
{
exit
(
1
);
}
...
...
This diff is collapsed.
Click to expand it.
openair3/NAS/TOOLS/conf_parser.c
+
13
−
4
View file @
af402766
...
...
@@ -6,7 +6,7 @@
#include
"conf_user_data.h"
#include
"conf_user_plmn.h"
bool
parse_config_file
(
const
char
*
output_dir
,
const
char
*
conf_filename
)
{
bool
parse_config_file
(
const
char
*
output_dir
,
const
char
*
conf_filename
,
int
output_flags
)
{
int
rc
=
true
;
int
ret
;
int
ue_nb
=
0
;
...
...
@@ -65,7 +65,6 @@ bool parse_config_file(const char *output_dir, const char *conf_filename) {
return
false
;
}
gen_user_data
(
&
user_data_conf
,
&
user_data
);
write_user_data
(
output_dir
,
i
,
&
user_data
);
rc
=
parse_ue_sim_param
(
ue_setting
,
i
,
&
usim_data_conf
);
if
(
rc
!=
true
)
{
...
...
@@ -73,11 +72,21 @@ bool parse_config_file(const char *output_dir, const char *conf_filename) {
return
false
;
}
gen_usim_data
(
&
usim_data_conf
,
&
usim_data
,
&
user_plmns
,
networks
);
write_usim_data
(
output_dir
,
i
,
&
usim_data
);
gen_emm_data
(
&
emm_data
,
usim_data_conf
.
hplmn
,
usim_data_conf
.
msin
,
user_plmns
.
equivalents_home
.
size
,
networks
);
write_emm_data
(
output_dir
,
i
,
&
emm_data
);
if
(
output_flags
&
OUTPUT_UEDATA
)
{
write_user_data
(
output_dir
,
i
,
&
user_data
);
}
if
(
output_flags
&
OUTPUT_USIM
)
{
write_usim_data
(
output_dir
,
i
,
&
usim_data
);
}
if
(
output_flags
&
OUTPUT_EMM
)
{
write_emm_data
(
output_dir
,
i
,
&
emm_data
);
}
user_plmns_free
(
&
user_plmns
);
...
...
This diff is collapsed.
Click to expand it.
openair3/NAS/TOOLS/conf_parser.h
+
6
−
1
View file @
af402766
...
...
@@ -6,7 +6,12 @@
#define UE "UE"
#define OUTPUT_EMM 1
#define OUTPUT_USIM 2
#define OUTPUT_UEDATA 4
#define OUTPUT_ALL 7
bool
get_config_from_file
(
const
char
*
filename
,
config_t
*
config
);
bool
parse_config_file
(
const
char
*
output_dir
,
const
char
*
filename
);
bool
parse_config_file
(
const
char
*
output_dir
,
const
char
*
filename
,
int
output_flags
);
#endif
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment