Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dyyu
openairinterface5G
Commits
47738856
Commit
47738856
authored
Oct 20, 2014
by
gauthier
Browse files
S1AP port
git-svn-id:
http://svn.eurecom.fr/openair4G/trunk@5916
818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent
2325330c
Changes
2
Hide whitespace changes
Inline
Side-by-side
openair-cn/UTILS/mme_config.c
View file @
47738856
...
...
@@ -269,8 +269,8 @@ static int config_parse_file(mme_config_t *mme_config_p)
if
(
(
config_setting_lookup_int
(
setting
,
MME_CONFIG_STRING_S1AP_OUTCOME_TIMER
,
&
alongint
)
))
{
mme_config_p
->
s1ap_config
.
outcome_drop_timer_sec
=
(
uint8_t
)
alongint
;
}
if
(
(
config_setting_lookup_int
(
setting
,
MME_CONFIG_STRING_S
CTP_OUTSTREAMS
,
&
alongint
)
))
{
mme_config_p
->
s
ct
p_config
.
out_streams
=
(
uint16_t
)
alongint
;
if
(
(
config_setting_lookup_int
(
setting
,
MME_CONFIG_STRING_S
1AP_PORT
,
&
alongint
)
))
{
mme_config_p
->
s
1a
p_config
.
port_number
=
(
uint16_t
)
alongint
;
}
}
...
...
@@ -428,6 +428,7 @@ static int config_parse_file(mme_config_t *mme_config_p)
(
const
char
**
)
&
sgw_ip_address_for_S1u_S12_S4_up
)
&&
config_setting_lookup_string
(
subsetting
,
SGW_CONFIG_STRING_SGW_IPV4_ADDRESS_FOR_S11
,
(
const
char
**
)
&
sgw_ip_address_for_S11
)
&&
config_setting_lookup_int
(
setting
,
SGW_CONFIG_STRING_SGW_PORT_FOR_S1U_S12_S4_UP
,
&
alongint
)
)
)
{
cidr
=
strdup
(
sgw_ip_address_for_S1u_S12_S4_up
);
...
...
@@ -439,6 +440,8 @@ static int config_parse_file(mme_config_t *mme_config_p)
address
=
strtok
(
cidr
,
"/"
);
IPV4_STR_ADDR_TO_INT_NWBO
(
address
,
mme_config_p
->
ipv4
.
sgw_ip_address_for_S11
,
"BAD IP ADDRESS FORMAT FOR SGW S11 !
\n
"
)
free
(
cidr
);
mme_config_p
->
gtpv1u_config
.
port_number
=
(
uint16_t
)
alongint
;
}
}
}
...
...
openair-cn/UTILS/mme_config.h
View file @
47738856
...
...
@@ -56,6 +56,7 @@
#define MME_CONFIG_STRING_S1AP_CONFIG "S1AP"
#define MME_CONFIG_STRING_S1AP_OUTCOME_TIMER "S1AP_OUTCOME_TIMER"
#define MME_CONFIG_STRING_S1AP_PORT "S1AP_PORT"
#define MME_CONFIG_STRING_GUMMEI_CONFIG "GUMMEI"
#define MME_CONFIG_STRING_MME_CODE "MME_CODE"
...
...
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