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
OpenXG
OpenXG UE
Commits
2f494994
Commit
2f494994
authored
Jun 23, 2018
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
S1AP eNB instance: make array of MCC/MNC, pass data
parent
62673f3c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
9 deletions
+18
-9
openair3/S1AP/s1ap_eNB.c
openair3/S1AP/s1ap_eNB.c
+14
-6
openair3/S1AP/s1ap_eNB_defs.h
openair3/S1AP/s1ap_eNB_defs.h
+4
-3
No files found.
openair3/S1AP/s1ap_eNB.c
View file @
2f494994
...
@@ -190,10 +190,14 @@ void s1ap_eNB_handle_register_eNB(instance_t instance, s1ap_register_enb_req_t *
...
@@ -190,10 +190,14 @@ void s1ap_eNB_handle_register_eNB(instance_t instance, s1ap_register_enb_req_t *
/* Checks if it is a retry on the same eNB */
/* Checks if it is a retry on the same eNB */
DevCheck
(
new_instance
->
eNB_id
==
s1ap_register_eNB
->
eNB_id
,
new_instance
->
eNB_id
,
s1ap_register_eNB
->
eNB_id
,
0
);
DevCheck
(
new_instance
->
eNB_id
==
s1ap_register_eNB
->
eNB_id
,
new_instance
->
eNB_id
,
s1ap_register_eNB
->
eNB_id
,
0
);
DevCheck
(
new_instance
->
cell_type
==
s1ap_register_eNB
->
cell_type
,
new_instance
->
cell_type
,
s1ap_register_eNB
->
cell_type
,
0
);
DevCheck
(
new_instance
->
cell_type
==
s1ap_register_eNB
->
cell_type
,
new_instance
->
cell_type
,
s1ap_register_eNB
->
cell_type
,
0
);
DevCheck
(
new_instance
->
num_plmn
==
s1ap_register_eNB
->
num_plmn
,
new_instance
->
num_plmn
,
s1ap_register_eNB
->
num_plmn
,
0
);
DevCheck
(
new_instance
->
tac
==
s1ap_register_eNB
->
tac
,
new_instance
->
tac
,
s1ap_register_eNB
->
tac
,
0
);
DevCheck
(
new_instance
->
tac
==
s1ap_register_eNB
->
tac
,
new_instance
->
tac
,
s1ap_register_eNB
->
tac
,
0
);
DevCheck
(
new_instance
->
mcc
==
s1ap_register_eNB
->
mcc
,
new_instance
->
mcc
,
s1ap_register_eNB
->
mcc
,
0
);
for
(
int
i
=
0
;
i
<
new_instance
->
num_plmn
;
i
++
)
DevCheck
(
new_instance
->
mnc
==
s1ap_register_eNB
->
mnc
,
new_instance
->
mnc
,
s1ap_register_eNB
->
mnc
,
0
);
{
DevCheck
(
new_instance
->
mnc_digit_length
==
s1ap_register_eNB
->
mnc_digit_length
,
new_instance
->
mnc_digit_length
,
s1ap_register_eNB
->
mnc_digit_length
,
0
);
DevCheck
(
new_instance
->
mcc
[
i
]
==
s1ap_register_eNB
->
mcc
[
i
],
new_instance
->
mcc
[
i
],
s1ap_register_eNB
->
mcc
[
i
],
0
);
DevCheck
(
new_instance
->
mnc
[
i
]
==
s1ap_register_eNB
->
mnc
[
i
],
new_instance
->
mnc
[
i
],
s1ap_register_eNB
->
mnc
[
i
],
0
);
DevCheck
(
new_instance
->
mnc_digit_length
[
i
]
==
s1ap_register_eNB
->
mnc_digit_length
[
i
],
new_instance
->
mnc_digit_length
[
i
],
s1ap_register_eNB
->
mnc_digit_length
[
i
],
0
);
}
DevCheck
(
new_instance
->
default_drx
==
s1ap_register_eNB
->
default_drx
,
new_instance
->
default_drx
,
s1ap_register_eNB
->
default_drx
,
0
);
DevCheck
(
new_instance
->
default_drx
==
s1ap_register_eNB
->
default_drx
,
new_instance
->
default_drx
,
s1ap_register_eNB
->
default_drx
,
0
);
}
else
{
}
else
{
new_instance
=
calloc
(
1
,
sizeof
(
s1ap_eNB_instance_t
));
new_instance
=
calloc
(
1
,
sizeof
(
s1ap_eNB_instance_t
));
...
@@ -208,9 +212,13 @@ void s1ap_eNB_handle_register_eNB(instance_t instance, s1ap_register_enb_req_t *
...
@@ -208,9 +212,13 @@ void s1ap_eNB_handle_register_eNB(instance_t instance, s1ap_register_enb_req_t *
new_instance
->
eNB_id
=
s1ap_register_eNB
->
eNB_id
;
new_instance
->
eNB_id
=
s1ap_register_eNB
->
eNB_id
;
new_instance
->
cell_type
=
s1ap_register_eNB
->
cell_type
;
new_instance
->
cell_type
=
s1ap_register_eNB
->
cell_type
;
new_instance
->
tac
=
s1ap_register_eNB
->
tac
;
new_instance
->
tac
=
s1ap_register_eNB
->
tac
;
new_instance
->
mcc
=
s1ap_register_eNB
->
mcc
;
for
(
int
i
=
0
;
i
<
s1ap_register_eNB
->
num_plmn
;
i
++
)
new_instance
->
mnc
=
s1ap_register_eNB
->
mnc
;
{
new_instance
->
mnc_digit_length
=
s1ap_register_eNB
->
mnc_digit_length
;
new_instance
->
mcc
[
i
]
=
s1ap_register_eNB
->
mcc
[
i
];
new_instance
->
mnc
[
i
]
=
s1ap_register_eNB
->
mnc
[
i
];
new_instance
->
mnc_digit_length
[
i
]
=
s1ap_register_eNB
->
mnc_digit_length
[
i
];
}
new_instance
->
num_plmn
=
s1ap_register_eNB
->
num_plmn
;
new_instance
->
default_drx
=
s1ap_register_eNB
->
default_drx
;
new_instance
->
default_drx
=
s1ap_register_eNB
->
default_drx
;
/* Add the new instance to the list of eNB (meaningfull in virtual mode) */
/* Add the new instance to the list of eNB (meaningfull in virtual mode) */
...
...
openair3/S1AP/s1ap_eNB_defs.h
View file @
2f494994
...
@@ -198,9 +198,10 @@ typedef struct s1ap_eNB_instance_s {
...
@@ -198,9 +198,10 @@ typedef struct s1ap_eNB_instance_s {
/* Mobile Country Code
/* Mobile Country Code
* Mobile Network Code
* Mobile Network Code
*/
*/
uint16_t
mcc
;
uint16_t
mcc
[
PLMN_LIST_MAX_SIZE
];
uint16_t
mnc
;
uint16_t
mnc
[
PLMN_LIST_MAX_SIZE
];
uint8_t
mnc_digit_length
;
uint8_t
mnc_digit_length
[
PLMN_LIST_MAX_SIZE
];
uint8_t
num_plmn
;
/* Default Paging DRX of the eNB as defined in TS 36.304 */
/* Default Paging DRX of the eNB as defined in TS 36.304 */
paging_drx_t
default_drx
;
paging_drx_t
default_drx
;
...
...
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