aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-04-05 09:00:53 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-04-05 22:04:15 +0200
commit6c0729fe70db5314073ad7f90ee706d6799d045a (patch)
tree72a900ce1e91c52726aaa78e9788410690ed44bb /openbsc
parente125d40f66fcf81278cd70c492706c39a98fcb96 (diff)
[mgcp] Print the BTS IP addr of the endpoint.
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/src/mgcp/mgcp_vty.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/openbsc/src/mgcp/mgcp_vty.c b/openbsc/src/mgcp/mgcp_vty.c
index 70f7528e0..c8d4b7fe6 100644
--- a/openbsc/src/mgcp/mgcp_vty.c
+++ b/openbsc/src/mgcp/mgcp_vty.c
@@ -77,10 +77,11 @@ DEFUN(show_mcgp, show_mgcp_cmd, "show mgcp",
vty_out(vty, "MGCP is up and running with %u endpoints:%s", g_cfg->number_endpoints - 1, VTY_NEWLINE);
for (i = 1; i < g_cfg->number_endpoints; ++i) {
struct mgcp_endpoint *endp = &g_cfg->endpoints[i];
- vty_out(vty, " Endpoint 0x%.2x: CI: %d net: %u/%u bts: %u/%u%s",
+ vty_out(vty, " Endpoint 0x%.2x: CI: %d net: %u/%u bts: %u/%u on %s%s",
i, endp->ci,
ntohs(endp->net_rtp), ntohs(endp->net_rtcp),
- ntohs(endp->bts_rtp), ntohs(endp->bts_rtcp), VTY_NEWLINE);
+ ntohs(endp->bts_rtp), ntohs(endp->bts_rtcp),
+ inet_ntoa(endp->bts), VTY_NEWLINE);
}
return CMD_SUCCESS;