aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/nat/bsc_nat.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-07-05 14:39:44 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-07-05 14:39:44 +0800
commit20ee312d5c127594966f6c55e760709c48a35faa (patch)
tree202a2fa8da9e149be4ed87d68275aca94e65d9fe /openbsc/src/nat/bsc_nat.c
parentbec411b9db360e8cc8676aedf591e6564506c0ef (diff)
nat: Create a method to determine if any MSC is connected.
In the future we will have multiple MSC connections so we will need to figure if any of them is active.
Diffstat (limited to 'openbsc/src/nat/bsc_nat.c')
-rw-r--r--openbsc/src/nat/bsc_nat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/nat/bsc_nat.c b/openbsc/src/nat/bsc_nat.c
index 7c4a03d4b..ef3f9a965 100644
--- a/openbsc/src/nat/bsc_nat.c
+++ b/openbsc/src/nat/bsc_nat.c
@@ -883,7 +883,7 @@ static int ipaccess_listen_bsc_cb(struct bsc_fd *bfd, unsigned int what)
/*
* if we are not connected to a msc... just close the socket
*/
- if (!nat->msc_con->is_connected) {
+ if (!bsc_nat_msc_is_connected(nat)) {
LOGP(DNAT, LOGL_NOTICE, "Disconnecting BSC due lack of MSC connection.\n");
close(fd);
return 0;