Commit 11f83326 authored by Lionel Gauthier's avatar Lionel Gauthier

hss hostname in config

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@6368 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent 838efbc2
...@@ -270,6 +270,15 @@ static int config_parse_file(mme_config_t *mme_config_p) ...@@ -270,6 +270,15 @@ static int config_parse_file(mme_config_t *mme_config_p)
if (astring != NULL) if (astring != NULL)
mme_config_p->s6a_config.conf_file = strdup(astring); mme_config_p->s6a_config.conf_file = strdup(astring);
} }
if( (config_setting_lookup_string( setting, MME_CONFIG_STRING_S6A_HSS_HOSTNAME, (const char **)&astring) )) {
if (astring != NULL)
mme_config_p->s6a_config.hss_host_name = strdup(astring);
else
AssertFatal (1 == 0,
"You have to provide a valid HSS hostname %s=...\n",
MME_CONFIG_STRING_S6A_HSS_HOSTNAME);
}
} }
// SCTP SETTING // SCTP SETTING
...@@ -494,6 +503,7 @@ static int config_parse_file(mme_config_t *mme_config_p) ...@@ -494,6 +503,7 @@ static int config_parse_file(mme_config_t *mme_config_p)
} }
} }
} }
return 0; return 0;
} }
......
...@@ -48,6 +48,7 @@ ...@@ -48,6 +48,7 @@
#define MME_CONFIG_STRING_S6A_CONFIG "S6A" #define MME_CONFIG_STRING_S6A_CONFIG "S6A"
#define MME_CONFIG_STRING_S6A_CONF_FILE_PATH "S6A_CONF" #define MME_CONFIG_STRING_S6A_CONF_FILE_PATH "S6A_CONF"
#define MME_CONFIG_STRING_S6A_HSS_HOSTNAME "HSS_HOSTNAME"
#define MME_CONFIG_STRING_SCTP_CONFIG "SCTP" #define MME_CONFIG_STRING_SCTP_CONFIG "SCTP"
#define MME_CONFIG_STRING_SCTP_INSTREAMS "SCTP_INSTREAMS" #define MME_CONFIG_STRING_SCTP_INSTREAMS "SCTP_INSTREAMS"
...@@ -97,6 +98,8 @@ ...@@ -97,6 +98,8 @@
#define NAS_CONFIG_SECURITY_ALGORITHMS_EIA6 0b110 #define NAS_CONFIG_SECURITY_ALGORITHMS_EIA6 0b110
#define NAS_CONFIG_SECURITY_ALGORITHMS_EIA7 0b111 #define NAS_CONFIG_SECURITY_ALGORITHMS_EIA7 0b111
typedef struct mme_config_s { typedef struct mme_config_s {
/* Reader/writer lock for this configuration */ /* Reader/writer lock for this configuration */
pthread_rwlock_t rw_lock; pthread_rwlock_t rw_lock;
...@@ -155,6 +158,7 @@ typedef struct mme_config_s { ...@@ -155,6 +158,7 @@ typedef struct mme_config_s {
} ipv4; } ipv4;
struct { struct {
char *conf_file; char *conf_file;
char *hss_host_name;
} s6a_config; } s6a_config;
struct { struct {
uint32_t queue_size; uint32_t queue_size;
...@@ -166,6 +170,8 @@ typedef struct mme_config_s { ...@@ -166,6 +170,8 @@ typedef struct mme_config_s {
uint8_t prefered_ciphering_algorithm[8]; uint8_t prefered_ciphering_algorithm[8];
} nas_config; } nas_config;
} mme_config_t; } mme_config_t;
extern mme_config_t mme_config; extern mme_config_t mme_config;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment