diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-04-27 13:11:18 +0800 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-06-15 20:24:16 +0800 |
commit | 4bd22944925199d04f34260175b03bc1ef351cfc (patch) | |
tree | 7dff8f539671bfae444e963e2226045226da5385 /openbsc | |
parent | fef76122a7698bb1b12122e96304811bb6d066fc (diff) |
nat: Print the remote reference as well.
Diffstat (limited to 'openbsc')
-rw-r--r-- | openbsc/src/nat/bsc_nat_vty.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/openbsc/src/nat/bsc_nat_vty.c b/openbsc/src/nat/bsc_nat_vty.c index cbac44c6b..6387aaf25 100644 --- a/openbsc/src/nat/bsc_nat_vty.c +++ b/openbsc/src/nat/bsc_nat_vty.c @@ -86,12 +86,16 @@ DEFUN(show_sccp, show_sccp_cmd, "show sccp connections", SHOW_STR "Display information about current SCCP connections") { struct sccp_connections *con; + vty_out(vty, "Listing all opening SCCP connections\n"); + llist_for_each_entry(con, &_nat->sccp_connections, list_entry) { - vty_out(vty, "SCCP for BSC: Nr: %d lac: %d BSC ref: 0x%x Local ref: 0x%x MSC/BSC mux: 0x%x/0x%x%s", + vty_out(vty, "For BSC Nr: %d lac: %d; BSC ref: 0x%x; MUX ref: 0x%x; Network has ref: %d ref: 0x%x MSC/BSC mux: 0x%x/0x%x%s", con->bsc->cfg ? con->bsc->cfg->nr : -1, con->bsc->cfg ? con->bsc->cfg->lac : -1, sccp_src_ref_to_int(&con->real_ref), sccp_src_ref_to_int(&con->patched_ref), + con->has_remote_ref, + sccp_src_ref_to_int(&con->remote_ref), con->msc_timeslot, con->bsc_timeslot, VTY_NEWLINE); } |