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
zzha zzha
OpenXG-RAN
Commits
421d5398
Commit
421d5398
authored
Oct 17, 2014
by
Lionel Gauthier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git-svn-id:
http://svn.eurecom.fr/openair4G/trunk@5901
818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent
9c00241c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
18 deletions
+25
-18
openair2/ENB_APP/enb_config.c
openair2/ENB_APP/enb_config.c
+23
-18
openair2/ENB_APP/enb_config.h
openair2/ENB_APP/enb_config.h
+2
-0
No files found.
openair2/ENB_APP/enb_config.c
View file @
421d5398
...
...
@@ -154,6 +154,7 @@
#define ENB_CONFIG_STRING_ENB_IPV4_ADDRESS_FOR_S1_MME "ENB_IPV4_ADDRESS_FOR_S1_MME"
#define ENB_CONFIG_STRING_ENB_INTERFACE_NAME_FOR_S1U "ENB_INTERFACE_NAME_FOR_S1U"
#define ENB_CONFIG_STRING_ENB_IPV4_ADDR_FOR_S1U "ENB_IPV4_ADDRESS_FOR_S1U"
#define ENB_CONFIG_STRING_ENB_PORT_FOR_S1U "ENB_PORT_FOR_S1U"
#define ENB_CONFIG_STRING_ASN1_VERBOSITY "Asn1_verbosity"
...
...
@@ -510,25 +511,26 @@ const Enb_properties_array_t *enb_config_init(char* lib_config_file_name_pP) {
const
char
*
active_enb
[
MAX_ENB
];
char
*
enb_interface_name_for_S1U
=
NULL
;
char
*
enb_ipv4_address_for_S1U
=
NULL
;
libconfig_int
enb_port_for_S1U
=
0
;
char
*
enb_interface_name_for_S1_MME
=
NULL
;
char
*
enb_ipv4_address_for_S1_MME
=
NULL
;
char
*
address
=
NULL
;
char
*
cidr
=
NULL
;
char
*
astring
=
NULL
;
char
*
glog_level
=
NULL
;
char
*
glog_verbosity
=
NULL
;
char
*
hw_log_level
=
NULL
;
char
*
hw_log_verbosity
=
NULL
;
char
*
phy_log_level
=
NULL
;
char
*
phy_log_verbosity
=
NULL
;
char
*
mac_log_level
=
NULL
;
char
*
mac_log_verbosity
=
NULL
;
char
*
rlc_log_level
=
NULL
;
char
*
rlc_log_verbosity
=
NULL
;
char
*
pdcp_log_level
=
NULL
;
char
*
pdcp_log_verbosity
=
NULL
;
char
*
rrc_log_level
=
NULL
;
char
*
rrc_log_verbosity
=
NULL
;
char
*
glog_level
=
NULL
;
char
*
glog_verbosity
=
NULL
;
char
*
hw_log_level
=
NULL
;
char
*
hw_log_verbosity
=
NULL
;
char
*
phy_log_level
=
NULL
;
char
*
phy_log_verbosity
=
NULL
;
char
*
mac_log_level
=
NULL
;
char
*
mac_log_verbosity
=
NULL
;
char
*
rlc_log_level
=
NULL
;
char
*
rlc_log_verbosity
=
NULL
;
char
*
pdcp_log_level
=
NULL
;
char
*
pdcp_log_verbosity
=
NULL
;
char
*
rrc_log_level
=
NULL
;
char
*
rrc_log_verbosity
=
NULL
;
memset
((
char
*
)
(
enb_properties
.
properties
),
0
,
MAX_ENB
*
sizeof
(
Enb_properties_t
*
));
memset
((
char
*
)
active_enb
,
0
,
MAX_ENB
*
sizeof
(
char
*
));
...
...
@@ -1598,10 +1600,12 @@ const Enb_properties_array_t *enb_config_init(char* lib_config_file_name_pP) {
(
const
char
**
)
&
enb_interface_name_for_S1_MME
)
&&
config_setting_lookup_string
(
subsetting
,
ENB_CONFIG_STRING_ENB_IPV4_ADDRESS_FOR_S1_MME
,
(
const
char
**
)
&
enb_ipv4_address_for_S1_MME
)
&&
config_setting_lookup_string
(
subsetting
,
ENB_CONFIG_STRING_ENB_INTERFACE_NAME_FOR_S1U
,
(
const
char
**
)
&
enb_interface_name_for_S1U
)
&&
config_setting_lookup_string
(
subsetting
,
ENB_CONFIG_STRING_ENB_IPV4_ADDR_FOR_S1U
,
(
const
char
**
)
&
enb_ipv4_address_for_S1U
)
&&
config_setting_lookup_string
(
subsetting
,
ENB_CONFIG_STRING_ENB_INTERFACE_NAME_FOR_S1U
,
(
const
char
**
)
&
enb_interface_name_for_S1U
)
&&
config_setting_lookup_string
(
subsetting
,
ENB_CONFIG_STRING_ENB_IPV4_ADDR_FOR_S1U
,
(
const
char
**
)
&
enb_ipv4_address_for_S1U
)
&&
config_setting_lookup_int
(
subsetting
,
ENB_CONFIG_STRING_ENB_PORT_FOR_S1U
,
&
enb_port_for_S1U
)
)
){
enb_properties
.
properties
[
enb_properties_index
]
->
enb_interface_name_for_S1U
=
strdup
(
enb_interface_name_for_S1U
);
...
...
@@ -1610,6 +1614,7 @@ const Enb_properties_array_t *enb_config_init(char* lib_config_file_name_pP) {
if
(
address
)
{
IPV4_STR_ADDR_TO_INT_NWBO
(
address
,
enb_properties
.
properties
[
enb_properties_index
]
->
enb_ipv4_address_for_S1U
,
"BAD IP ADDRESS FORMAT FOR eNB S1_U !
\n
"
);
}
enb_properties
.
properties
[
enb_properties_index
]
->
enb_port_for_S1U
=
enb_port_for_S1U
;
enb_properties
.
properties
[
enb_properties_index
]
->
enb_interface_name_for_S1_MME
=
strdup
(
enb_interface_name_for_S1_MME
);
cidr
=
enb_ipv4_address_for_S1_MME
;
...
...
openair2/ENB_APP/enb_config.h
View file @
421d5398
...
...
@@ -40,6 +40,7 @@
#include <netinet/in.h>
#include "commonDef.h"
#include "platform_types.h"
#include "PHY/impl_defs_lte.h"
#include "s1ap_messages_types.h"
#include "RRC/LITE/MESSAGES/SystemInformationBlockType2.h"
...
...
@@ -175,6 +176,7 @@ typedef struct Enb_properties_s {
char
*
enb_interface_name_for_S1U
;
in_addr_t
enb_ipv4_address_for_S1U
;
tcp_udp_port_t
enb_port_for_S1U
;
char
*
enb_interface_name_for_S1_MME
;
in_addr_t
enb_ipv4_address_for_S1_MME
;
...
...
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