mirror of https://gerrit.osmocom.org/libosmocore
GPRS: print remote state info for NS peer
Change-Id: I1714c68909507eae6ef2933661a085859aca3b54 Related: SYS#3610
This commit is contained in:
parent
b525b9ea44
commit
32f9971a71
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue