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
ed0c12ba
Commit
ed0c12ba
authored
Nov 26, 2020
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid useless loop
parent
53b197fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
11 deletions
+9
-11
openair2/ENB_APP/flexran_agent_ran_api.c
openair2/ENB_APP/flexran_agent_ran_api.c
+9
-11
No files found.
openair2/ENB_APP/flexran_agent_ran_api.c
View file @
ed0c12ba
...
...
@@ -3498,17 +3498,15 @@ int flexran_add_s1ap_mme(mid_t mod_id, size_t n_mme, char **mme_ipv4) {
if
(
S1AP_REGISTER_ENB_REQ
(
m
).
nb_mme
+
n_mme
>
S1AP_MAX_NB_MME_IP_ADDRESS
)
return
-
1
;
for
(
int
i
=
0
;
i
<
n_mme
;
++
i
)
{
const
int
n
=
S1AP_REGISTER_ENB_REQ
(
m
).
nb_mme
;
strcpy
(
S1AP_REGISTER_ENB_REQ
(
m
).
mme_ip_address
[
n
].
ipv4_address
,
mme_ipv4
[
0
]);
S1AP_REGISTER_ENB_REQ
(
m
).
mme_ip_address
[
n
].
ipv4
=
1
;
S1AP_REGISTER_ENB_REQ
(
m
).
mme_ip_address
[
n
].
ipv6
=
0
;
S1AP_REGISTER_ENB_REQ
(
m
).
broadcast_plmn_num
[
n
]
=
S1AP_REGISTER_ENB_REQ
(
m
).
num_plmn
;
for
(
int
i
=
0
;
i
<
S1AP_REGISTER_ENB_REQ
(
m
).
num_plmn
;
++
i
)
S1AP_REGISTER_ENB_REQ
(
m
).
broadcast_plmn_index
[
n
][
i
]
=
i
;
S1AP_REGISTER_ENB_REQ
(
m
).
mme_port
[
n
]
=
S1AP_PORT_NUMBER
;
S1AP_REGISTER_ENB_REQ
(
m
).
nb_mme
+=
1
;
}
const
int
n
=
S1AP_REGISTER_ENB_REQ
(
m
).
nb_mme
;
strcpy
(
S1AP_REGISTER_ENB_REQ
(
m
).
mme_ip_address
[
n
].
ipv4_address
,
mme_ipv4
[
0
]);
S1AP_REGISTER_ENB_REQ
(
m
).
mme_ip_address
[
n
].
ipv4
=
1
;
S1AP_REGISTER_ENB_REQ
(
m
).
mme_ip_address
[
n
].
ipv6
=
0
;
S1AP_REGISTER_ENB_REQ
(
m
).
broadcast_plmn_num
[
n
]
=
S1AP_REGISTER_ENB_REQ
(
m
).
num_plmn
;
for
(
int
i
=
0
;
i
<
S1AP_REGISTER_ENB_REQ
(
m
).
num_plmn
;
++
i
)
S1AP_REGISTER_ENB_REQ
(
m
).
broadcast_plmn_index
[
n
][
i
]
=
i
;
S1AP_REGISTER_ENB_REQ
(
m
).
mme_port
[
n
]
=
S1AP_PORT_NUMBER
;
S1AP_REGISTER_ENB_REQ
(
m
).
nb_mme
+=
1
;
itti_send_msg_to_task
(
TASK_S1AP
,
ENB_MODULE_ID_TO_INSTANCE
(
mod_id
),
m
);
...
...
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