iucs: Add a function to return the connection ID for the IU SCCP conn

Change-Id: Ica4a7f463fcf1bd67fe082296cecea8d10f2fc5b
This commit is contained in:
Daniel Willmann 2018-02-15 10:33:21 +01:00 committed by Harald Welte
parent 75559284d0
commit 6fbd3bf732
3 changed files with 12 additions and 0 deletions

View File

@ -8,3 +8,5 @@ int gsm0408_rcvmsg_iucs(struct gsm_network *network, struct msgb *msg,
struct gsm_subscriber_connection *subscr_conn_lookup_iu(struct gsm_network *network,
struct ranap_ue_conn_ctx *ue);
int iu_rab_act_cs(struct gsm_trans *trans);
uint32_t iu_get_conn_id(const struct ranap_ue_conn_ctx *ue);

View File

@ -90,4 +90,10 @@ int ranap_iu_tx_release(struct ranap_ue_conn_ctx *ctx, const struct RANAP_Cause
return 0;
}
uint32_t iu_get_conn_id(const struct ranap_ue_conn_ctx *ue)
{
LOGP(DLGLOBAL, LOGL_INFO, "iu_get_conn_id() dummy called, returning BOGUS value\n");
return 23;
}
#endif

View File

@ -251,3 +251,7 @@ int iu_rab_act_cs(struct gsm_trans *trans)
return 0;
}
uint32_t iu_get_conn_id(const struct ranap_ue_conn_ctx *ue)
{
return ue->conn_id;
}