hss hostname in config
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@6368 818b1a75-f10b-46b9-bf7c-635c3b92a50f
This commit is contained in:
@@ -270,6 +270,15 @@ static int config_parse_file(mme_config_t *mme_config_p)
|
||||
if (astring != NULL)
|
||||
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
|
||||
@@ -494,6 +503,7 @@ static int config_parse_file(mme_config_t *mme_config_p)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -48,6 +48,7 @@
|
||||
|
||||
#define MME_CONFIG_STRING_S6A_CONFIG "S6A"
|
||||
#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_INSTREAMS "SCTP_INSTREAMS"
|
||||
@@ -97,6 +98,8 @@
|
||||
#define NAS_CONFIG_SECURITY_ALGORITHMS_EIA6 0b110
|
||||
#define NAS_CONFIG_SECURITY_ALGORITHMS_EIA7 0b111
|
||||
|
||||
|
||||
|
||||
typedef struct mme_config_s {
|
||||
/* Reader/writer lock for this configuration */
|
||||
pthread_rwlock_t rw_lock;
|
||||
@@ -155,6 +158,7 @@ typedef struct mme_config_s {
|
||||
} ipv4;
|
||||
struct {
|
||||
char *conf_file;
|
||||
char *hss_host_name;
|
||||
} s6a_config;
|
||||
struct {
|
||||
uint32_t queue_size;
|
||||
@@ -166,6 +170,8 @@ typedef struct mme_config_s {
|
||||
uint8_t prefered_ciphering_algorithm[8];
|
||||
} nas_config;
|
||||
|
||||
|
||||
|
||||
} mme_config_t;
|
||||
|
||||
extern mme_config_t mme_config;
|
||||
|
||||
Reference in New Issue
Block a user