forked from acouzens/open5gs
add default bearer context interface
This commit is contained in:
parent
344188143f
commit
f5fdbb093b
|
@ -510,16 +510,6 @@ mme_sess_t* mme_sess_find_by_teid(c_uint32_t teid)
|
|||
return mme_sess_find(teid);
|
||||
}
|
||||
|
||||
mme_sess_t* mme_sess_first(mme_ue_t *ue)
|
||||
{
|
||||
return list_first(&ue->sess_list);
|
||||
}
|
||||
|
||||
mme_sess_t* mme_sess_next(mme_sess_t *sess)
|
||||
{
|
||||
return list_next(sess);
|
||||
}
|
||||
|
||||
mme_sess_t* mme_sess_find_by_ebi(mme_ue_t *ue, c_uint8_t ebi)
|
||||
{
|
||||
mme_sess_t *sess = NULL;
|
||||
|
@ -543,6 +533,16 @@ mme_sess_t* mme_sess_find_by_ebi(mme_ue_t *ue, c_uint8_t ebi)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
mme_sess_t* mme_sess_first(mme_ue_t *ue)
|
||||
{
|
||||
return list_first(&ue->sess_list);
|
||||
}
|
||||
|
||||
mme_sess_t* mme_sess_next(mme_sess_t *sess)
|
||||
{
|
||||
return list_next(sess);
|
||||
}
|
||||
|
||||
mme_bearer_t* mme_bearer_add(mme_sess_t *sess, c_uint8_t pti)
|
||||
{
|
||||
mme_bearer_t *bearer = NULL;
|
||||
|
@ -676,6 +676,11 @@ mme_bearer_t* mme_bearer_find_by_sess_ebi(mme_sess_t *sess, c_uint8_t ebi)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
mme_bearer_t* mme_default_bearer_in_sess(mme_sess_t *sess)
|
||||
{
|
||||
return mme_bearer_first(sess);
|
||||
}
|
||||
|
||||
mme_bearer_t* mme_bearer_first(mme_sess_t *sess)
|
||||
{
|
||||
d_assert(sess, return NULL, "Null param");
|
||||
|
|
|
@ -248,6 +248,7 @@ CORE_DECLARE(mme_bearer_t*) mme_bearer_find_by_ue_ebi(
|
|||
mme_ue_t *ue, c_uint8_t ebi);
|
||||
CORE_DECLARE(mme_bearer_t*) mme_bearer_find_by_sess_ebi(
|
||||
mme_sess_t *sess, c_uint8_t ebi);
|
||||
CORE_DECLARE(mme_bearer_t*) mme_default_bearer_in_sess(mme_sess_t *sess);
|
||||
CORE_DECLARE(mme_bearer_t*) mme_bearer_first(mme_sess_t *sess);
|
||||
CORE_DECLARE(mme_bearer_t*) mme_bearer_next(mme_bearer_t *bearer);
|
||||
|
||||
|
|
|
@ -325,6 +325,11 @@ pgw_bearer_t* pgw_bearer_find_by_id(pgw_sess_t *sess, c_uint8_t id)
|
|||
return bearer;
|
||||
}
|
||||
|
||||
pgw_bearer_t* pgw_default_bearer_in_sess(pgw_sess_t *sess)
|
||||
{
|
||||
return pgw_bearer_first(sess);
|
||||
}
|
||||
|
||||
pgw_bearer_t* pgw_bearer_first(pgw_sess_t *sess)
|
||||
{
|
||||
d_assert(sess, return NULL, "Null param");
|
||||
|
|
|
@ -97,6 +97,7 @@ CORE_DECLARE(status_t) pgw_bearer_remove(pgw_bearer_t *bearer);
|
|||
CORE_DECLARE(status_t) pgw_bearer_remove_all(pgw_sess_t *sess);
|
||||
CORE_DECLARE(pgw_bearer_t*) pgw_bearer_find_by_id(
|
||||
pgw_sess_t *sess, c_uint8_t id);
|
||||
CORE_DECLARE(pgw_bearer_t*) pgw_default_bearer_in_sess(pgw_sess_t *sess);
|
||||
CORE_DECLARE(pgw_bearer_t*) pgw_bearer_first(pgw_sess_t *sess);
|
||||
CORE_DECLARE(pgw_bearer_t*) pgw_bearer_next(pgw_bearer_t *bearer);
|
||||
|
||||
|
|
|
@ -269,6 +269,11 @@ sgw_bearer_t* sgw_bearer_find_by_id(sgw_sess_t *sess, c_uint8_t id)
|
|||
return bearer;
|
||||
}
|
||||
|
||||
sgw_bearer_t* sgw_default_bearer_in_sess(sgw_sess_t *sess)
|
||||
{
|
||||
return sgw_bearer_first(sess);
|
||||
}
|
||||
|
||||
sgw_bearer_t* sgw_bearer_first(sgw_sess_t *sess)
|
||||
{
|
||||
d_assert(sess, return NULL, "Null param");
|
||||
|
|
|
@ -105,13 +105,16 @@ CORE_DECLARE(sgw_sess_t *) sgw_sess_next(sgw_sess_t *sess);
|
|||
CORE_DECLARE(sgw_bearer_t*) sgw_bearer_add(sgw_sess_t *sess, c_uint8_t id);
|
||||
CORE_DECLARE(status_t) sgw_bearer_remove(sgw_bearer_t *bearer);
|
||||
CORE_DECLARE(status_t) sgw_bearer_remove_all(sgw_sess_t *sess);
|
||||
CORE_DECLARE(sgw_bearer_t*) sgw_bearer_find_by_sgw_s5u_teid(
|
||||
c_uint32_t sgw_s5u_teid);
|
||||
CORE_DECLARE(sgw_bearer_t*) sgw_bearer_find_by_sgw_s1u_teid(
|
||||
c_uint32_t sgw_s1u_teid);
|
||||
CORE_DECLARE(sgw_bearer_t*) sgw_bearer_find_by_id(
|
||||
sgw_sess_t *sess, c_uint8_t id);
|
||||
CORE_DECLARE(sgw_bearer_t*) sgw_default_bearer_in_sess(sgw_sess_t *sess);
|
||||
CORE_DECLARE(sgw_bearer_t*) sgw_bearer_first(sgw_sess_t *sess);
|
||||
CORE_DECLARE(sgw_bearer_t*) sgw_bearer_next(sgw_bearer_t *bearer);
|
||||
|
||||
CORE_DECLARE(sgw_bearer_t*) sgw_bearer_find_by_sgw_s5u_teid(c_uint32_t sgw_s5u_teid);
|
||||
CORE_DECLARE(sgw_bearer_t*) sgw_bearer_find_by_sgw_s1u_teid(c_uint32_t sgw_s1u_teid);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue