summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2017-10-20 12:27:49 +0200
committerMax <msuraev@sysmocom.de>2017-10-20 12:27:49 +0200
commit32f9971a71049a0c0ecd0f26a4da17fef4f292ca (patch)
tree8ee18b707fa76ea0e678048094aa51f90b39d6d8
parentb525b9ea44973d2153de05e70d48fe84a51ab668 (diff)
GPRS: print remote state info for NS peer
Change-Id: I1714c68909507eae6ef2933661a085859aca3b54 Related: SYS#3610
-rw-r--r--src/gb/gprs_ns_vty.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gb/gprs_ns_vty.c b/src/gb/gprs_ns_vty.c
index f94d9c2c..3b1a6987 100644
--- a/src/gb/gprs_ns_vty.c
+++ b/src/gb/gprs_ns_vty.c
@@ -158,11 +158,13 @@ DEFUN(cfg_ns, cfg_ns_cmd,
static void dump_nse(struct vty *vty, struct gprs_nsvc *nsvc, int stats)
{
- vty_out(vty, "NSEI %5u, NS-VC %5u, Remote: %-4s, %5s %9s",
+ vty_out(vty, "NSEI %5u, NS-VC %5u, %5s %9s, Remote: %-4s, %5s %9s",
nsvc->nsei, nsvc->nsvci,
- nsvc->remote_end_is_sgsn ? "SGSN" : "BSS",
nsvc->state & NSE_S_ALIVE ? "ALIVE" : "DEAD",
- nsvc->state & NSE_S_BLOCKED ? "BLOCKED" : "UNBLOCKED");
+ nsvc->state & NSE_S_BLOCKED ? "BLOCKED" : "UNBLOCKED",
+ nsvc->remote_end_is_sgsn ? "SGSN" : "BSS",
+ nsvc->remote_state & NSE_S_ALIVE ? "ALIVE" : "DEAD",
+ nsvc->remote_state & NSE_S_BLOCKED ? "BLOCKED" : "UNBLOCKED");
if (nsvc->ll == GPRS_NS_LL_UDP || nsvc->ll == GPRS_NS_LL_FR_GRE)
vty_out(vty, ", %s %15s:%u",
nsvc->ll == GPRS_NS_LL_UDP ? "UDP " : "FR-GRE",