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
常顺宇
OpenXG-RAN
Commits
d47c539d
Commit
d47c539d
authored
Apr 11, 2020
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
S1AP: Only register MME if we do not know it yet
parent
64f0b7e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
openair3/S1AP/s1ap_eNB.c
openair3/S1AP/s1ap_eNB.c
+14
-1
No files found.
openair3/S1AP/s1ap_eNB.c
View file @
d47c539d
...
@@ -220,8 +220,21 @@ void s1ap_eNB_handle_register_eNB(instance_t instance, s1ap_register_enb_req_t *
...
@@ -220,8 +220,21 @@ void s1ap_eNB_handle_register_eNB(instance_t instance, s1ap_register_enb_req_t *
/* Trying to connect to provided list of MME ip address */
/* Trying to connect to provided list of MME ip address */
for
(
index
=
0
;
index
<
s1ap_register_eNB
->
nb_mme
;
index
++
)
{
for
(
index
=
0
;
index
<
s1ap_register_eNB
->
nb_mme
;
index
++
)
{
net_ip_address_t
*
mme_ip
=
&
s1ap_register_eNB
->
mme_ip_address
[
index
];
struct
s1ap_eNB_mme_data_s
*
mme
=
NULL
;
RB_FOREACH
(
mme
,
s1ap_mme_map
,
&
new_instance
->
s1ap_mme_head
)
{
/* Compare whether IPv4 and IPv6 information is already present, in which
* wase we do not register again */
if
(
mme
->
mme_s1_ip
.
ipv4
==
mme_ip
->
ipv4
&&
(
!
mme_ip
->
ipv4
||
strncmp
(
mme
->
mme_s1_ip
.
ipv4_address
,
mme_ip
->
ipv4_address
,
16
)
==
0
)
&&
mme
->
mme_s1_ip
.
ipv6
==
mme_ip
->
ipv6
&&
(
!
mme_ip
->
ipv6
||
strncmp
(
mme
->
mme_s1_ip
.
ipv6_address
,
mme_ip
->
ipv6_address
,
46
)
==
0
))
break
;
}
if
(
mme
)
continue
;
s1ap_eNB_register_mme
(
new_instance
,
s1ap_eNB_register_mme
(
new_instance
,
&
s1ap_register_eNB
->
mme_ip_address
[
index
]
,
mme_ip
,
&
s1ap_register_eNB
->
enb_ip_address
,
&
s1ap_register_eNB
->
enb_ip_address
,
s1ap_register_eNB
->
sctp_in_streams
,
s1ap_register_eNB
->
sctp_in_streams
,
s1ap_register_eNB
->
sctp_out_streams
,
s1ap_register_eNB
->
sctp_out_streams
,
...
...
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