From a17d701a708c157f26b91c6ab8960fa7db33e7cd Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Thu, 5 Aug 2010 01:34:51 +0800 Subject: mgcp: Group the state for bts/net into a struct and have two instances Group the data that each end (network/bts) have into a struct and use this struct throughout the sourcecode. --- openbsc/src/mgcp/mgcp_vty.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'openbsc/src/mgcp/mgcp_vty.c') diff --git a/openbsc/src/mgcp/mgcp_vty.c b/openbsc/src/mgcp/mgcp_vty.c index 84299d0c8..c109491b1 100644 --- a/openbsc/src/mgcp/mgcp_vty.c +++ b/openbsc/src/mgcp/mgcp_vty.c @@ -81,10 +81,11 @@ DEFUN(show_mcgp, show_mgcp_cmd, "show mgcp", struct mgcp_endpoint *endp = &g_cfg->endpoints[i]; vty_out(vty, " Endpoint 0x%.2x: CI: %d net: %u/%u bts: %u/%u on %s traffic received bts: %u/%u remote: %u/%u%s", i, endp->ci, - ntohs(endp->net_rtp), ntohs(endp->net_rtcp), - ntohs(endp->bts_rtp), ntohs(endp->bts_rtcp), - inet_ntoa(endp->bts), endp->in_bts, endp->bts_state.lost_no, - endp->in_remote, endp->net_state.lost_no, + ntohs(endp->net_end.rtp_port), ntohs(endp->net_end.rtcp_port), + ntohs(endp->bts_end.rtp_port), ntohs(endp->bts_end.rtcp_port), + inet_ntoa(endp->bts_end.addr), + endp->bts_end.packets, endp->bts_state.lost_no, + endp->net_end.packets, endp->net_state.lost_no, VTY_NEWLINE); } -- cgit v1.2.3