SGSN: print additional GTP-related info
* print libgtp version on startup
* print GSN addresses in 'sh sgsn'
Change-Id: I699a9eb56c4b362984ea8292a3d2b22b71f53c15
Related: SYS#3610
diff --git a/src/gprs/sgsn_vty.c b/src/gprs/sgsn_vty.c
index 1882852..ab02d81 100644
--- a/src/gprs/sgsn_vty.c
+++ b/src/gprs/sgsn_vty.c
@@ -44,6 +44,7 @@
#include <osmocom/abis/ipa.h>
#include <pdp.h>
+#include <gtp.h>
#include "../../bscconfig.h"
@@ -511,6 +512,10 @@
link->addr, link->port,
VTY_NEWLINE);
}
+ if (sgsn->gsn)
+ vty_out(vty, " GSN: signalling %s, user traffic %s%s",
+ inet_ntoa(sgsn->gsn->gsnc), inet_ntoa(sgsn->gsn->gsnu), VTY_NEWLINE);
+
/* FIXME: statistics */
return CMD_SUCCESS;
}