summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-08-27 08:47:23 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-09-02 11:00:09 +0200
commit57412567038951b69391cea9b941bc9b31515823 (patch)
tree868116a36e4b45d8b57b8182924c245fcc7635fc
parentc85ed4e8db2fb4ca5aadadc8f04f2db7b4efa296 (diff)
nat: Use bsc_nat_msc_is_connected instead of accessing it directly
-rw-r--r--openbsc/src/osmo-bsc_nat/bsc_nat_vty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsc/src/osmo-bsc_nat/bsc_nat_vty.c b/openbsc/src/osmo-bsc_nat/bsc_nat_vty.c
index 36a46f2..b2ec156 100644
--- a/openbsc/src/osmo-bsc_nat/bsc_nat_vty.c
+++ b/openbsc/src/osmo-bsc_nat/bsc_nat_vty.c
@@ -290,7 +290,7 @@ static void dump_stat_total(struct vty *vty, struct bsc_nat *nat)
vty_out(vty, " MSC Connections %lu%s",
osmo_counter_get(nat->stats.msc.reconn), VTY_NEWLINE);
vty_out(vty, " MSC Connected: %d%s",
- nat->msc_con->is_connected, VTY_NEWLINE);
+ bsc_nat_msc_is_connected(nat), VTY_NEWLINE);
vty_out(vty, " BSC Connections %lu total, %lu auth failed.%s",
osmo_counter_get(nat->stats.bsc.reconn),
osmo_counter_get(nat->stats.bsc.auth_fail), VTY_NEWLINE);
@@ -371,7 +371,7 @@ DEFUN(show_msc,
}
vty_out(vty, "MSC is connected: %d%s",
- _nat->msc_con->is_connected, VTY_NEWLINE);
+ bsc_nat_msc_is_connected(_nat), VTY_NEWLINE);
return CMD_SUCCESS;
}