Review at  https://gerrit.osmocom.org/5199

Show GTP version for PDP context in vty

Change-Id: Id1692e99ae0d2b78e9473f6139e6e430fcd6a607
---
M src/gprs/sgsn_vty.c
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-sgsn refs/changes/99/5199/1

diff --git a/src/gprs/sgsn_vty.c b/src/gprs/sgsn_vty.c
index e9ce199..c2c03b5 100644
--- a/src/gprs/sgsn_vty.c
+++ b/src/gprs/sgsn_vty.c
@@ -453,11 +453,11 @@
                vty_out(vty, "%s  PDP Address: %s%s", pfx,
                        gprs_pdpaddr2str(pdp->lib->eua.v, pdp->lib->eua.l),
                        VTY_NEWLINE);
-               vty_out(vty, "%s  GTP Local Control(%s / TEIC: 0x%08x) ", pfx,
+               vty_out(vty, "%s  GTPv%d Local Control(%s / TEIC: 0x%08x) ", 
pfx, pdp->lib->version,
                        sgsn_gtp_ntoa(&pdp->lib->gsnlc), pdp->lib->teic_own);
                vty_out(vty, "Data(%s / TEID: 0x%08x)%s",
                        sgsn_gtp_ntoa(&pdp->lib->gsnlu), pdp->lib->teid_own, 
VTY_NEWLINE);
-               vty_out(vty, "%s  GTP Remote Control(%s / TEIC: 0x%08x) ", pfx,
+               vty_out(vty, "%s  GTPv%d Remote Control(%s / TEIC: 0x%08x) ", 
pfx, pdp->lib->version,
                        sgsn_gtp_ntoa(&pdp->lib->gsnrc), pdp->lib->teic_gn);
                vty_out(vty, "Data(%s / TEID: 0x%08x)%s",
                        sgsn_gtp_ntoa(&pdp->lib->gsnru), pdp->lib->teid_gn, 
VTY_NEWLINE);

-- 
To view, visit https://gerrit.osmocom.org/5199
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id1692e99ae0d2b78e9473f6139e6e430fcd6a607
Gerrit-PatchSet: 1
Gerrit-Project: osmo-sgsn
Gerrit-Branch: master
Gerrit-Owner: Max <[email protected]>

Reply via email to