From 20ee312d5c127594966f6c55e760709c48a35faa Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Mon, 5 Jul 2010 14:39:44 +0800 Subject: 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. --- openbsc/src/nat/bsc_nat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openbsc/src/nat/bsc_nat.c') 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; -- cgit v1.2.3