quick trick for freediameter 1.2.0
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@5413 818b1a75-f10b-46b9-bf7c-635c3b92a50f
This commit is contained in:
@@ -52,12 +52,22 @@ static struct session_handler *s6a_reg = NULL;
|
|||||||
static struct disp_hdl *handle;
|
static struct disp_hdl *handle;
|
||||||
s6a_cnf_t s6a_cnf;
|
s6a_cnf_t s6a_cnf;
|
||||||
|
|
||||||
|
#if !defined(FREEDIAMETER_VERSION_1_2_0)
|
||||||
void s6a_cli_sess_cleanup(void * arg, char * sid, void * opaque);
|
void s6a_cli_sess_cleanup(void * arg, char * sid, void * opaque);
|
||||||
|
|
||||||
void s6a_cli_sess_cleanup(void * arg, char * sid, void * opaque)
|
void s6a_cli_sess_cleanup(void * arg, char * sid, void * opaque)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
void s6a_cli_sess_cleanup(struct sess_state * state, os0_t sid, void * opaque);
|
||||||
|
void s6a_cli_sess_cleanup(struct sess_state * state, os0_t sid, void * opaque)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
static int s6a_init_objs(void)
|
static int s6a_init_objs(void)
|
||||||
{
|
{
|
||||||
@@ -302,7 +312,12 @@ int s6a_init(hss_config_t *hss_config_p)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Create handler for sessions */
|
/* Create handler for sessions */
|
||||||
|
#if !defined(FREEDIAMETER_VERSION_1_2_0)
|
||||||
CHECK_FCT(fd_sess_handler_create(&s6a_reg, s6a_cli_sess_cleanup, NULL));
|
CHECK_FCT(fd_sess_handler_create(&s6a_reg, s6a_cli_sess_cleanup, NULL));
|
||||||
|
#else
|
||||||
|
session_state_dump dumper;
|
||||||
|
CHECK_FCT(fd_sess_handler_create(&s6a_reg, s6a_cli_sess_cleanup, dumper, NULL));
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Register the callback */
|
/* Register the callback */
|
||||||
memset(&when, 0, sizeof(when));
|
memset(&when, 0, sizeof(when));
|
||||||
|
|||||||
Reference in New Issue
Block a user