aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/nat/bsc_nat.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-07-05 13:33:18 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-07-05 13:33:18 +0800
commit3a77e610336f7d84c5210c9dc3cdd997c6525972 (patch)
tree48944d970a662b49f3a5cc229dda33608e310a26 /openbsc/src/nat/bsc_nat.c
parentf0945408f56336093def24f3cf11ab2740c5908e (diff)
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.
Diffstat (limited to 'openbsc/src/nat/bsc_nat.c')
-rw-r--r--openbsc/src/nat/bsc_nat.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/src/nat/bsc_nat.c b/openbsc/src/nat/bsc_nat.c
index 356025c98..ad5fcd19a 100644
--- a/openbsc/src/nat/bsc_nat.c
+++ b/openbsc/src/nat/bsc_nat.c
@@ -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;