aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-02-06 17:44:14 +0100
committerHarald Welte <laforge@gnumonks.org>2011-02-06 17:44:14 +0100
commitf3956cbb20ce92c3df20169a8a3c625759290696 (patch)
tree83e531ba439287a9d04d9d6f41771cbfebefd825
parentfb9e06f310c3844fbe901551bb683de86c06e96e (diff)
[gb_proxy] vty: display the BVC BLOCKED status in 'show gbproxy'
-rw-r--r--openbsc/src/gprs/gb_proxy.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/openbsc/src/gprs/gb_proxy.c b/openbsc/src/gprs/gb_proxy.c
index 373c2bea0..8df93a9ce 100644
--- a/openbsc/src/gprs/gb_proxy.c
+++ b/openbsc/src/gprs/gb_proxy.c
@@ -672,11 +672,13 @@ gDEFUN(show_gbproxy, show_gbproxy_cmd, "show gbproxy",
nsvc->nsei, nsvc->nsvci, peer->bvci,
raid.mcc, raid.mnc, raid.lac, raid.rac);
if (nsvc->ll == GPRS_NS_LL_UDP || nsvc->ll == GPRS_NS_LL_FR_GRE)
- vty_out(vty, " %s:%u%s",
+ vty_out(vty, " %s:%u",
inet_ntoa(nsvc->ip.bts_addr.sin_addr),
- ntohs(nsvc->ip.bts_addr.sin_port), VTY_NEWLINE);
- else
- vty_out(vty, "%s", VTY_NEWLINE);
+ ntohs(nsvc->ip.bts_addr.sin_port));
+ if (peer->blocked)
+ vty_out(vty, " [BVC-BLOCKED]");
+
+ vty_out(vty, "%s", VTY_NEWLINE);
}
return CMD_SUCCESS;
}