nat: Keep track of the MSC handling the connection.

In the future we might have multiple MSCs connected
and need to dispatch it to the right one.
This commit is contained in:
Holger Hans Peter Freyther 2010-07-05 13:33:18 +08:00
parent f0945408f5
commit 3a77e61033
2 changed files with 2 additions and 0 deletions

View File

@ -120,6 +120,7 @@ struct sccp_connections {
struct llist_head list_entry;
struct bsc_connection *bsc;
struct bsc_msc_connection *msc_con;
struct sccp_source_reference real_ref;
struct sccp_source_reference patched_ref;

View File

@ -703,6 +703,7 @@ static int forward_sccp_to_msc(struct bsc_connection *bsc, struct msgb *msg)
if (!create_sccp_src_ref(bsc, parsed))
goto exit2;
con = patch_sccp_src_ref_to_msc(msg, parsed, bsc);
con->msc_con = bsc->nat->msc_con;
con->con_type = con_type;
con_found = 1;
con_bsc = con->bsc;