pespin has uploaded this change for review.

View Change

vty: Avoid accessing gsupclient object fields directly

Use new APIs recently added.

Depends: osmo-hlr.git Change-Id I401af83232022f1c141eef1f428cbe206a8aaaa2
Change-Id: Ie443ef0bd983635a5b29e434d79b93ef3f7ce370
---
M TODO-RELEASE
M src/sgsn/sgsn_vty.c
2 files changed, 5 insertions(+), 5 deletions(-)

git pull ssh://gerrit.osmocom.org:29418/osmo-sgsn refs/changes/07/39007/1
diff --git a/TODO-RELEASE b/TODO-RELEASE
index 261da7b..662cdb5 100644
--- a/TODO-RELEASE
+++ b/TODO-RELEASE
@@ -10,3 +10,4 @@
libgtp >1.12.0 new field dir_tun_flags in struct pdp_t
libgtp >1.12.0 gtp_set_cb_update_context_ind(), gtp_update_context_resp()
libosmocore >1.10.0 enum gsm48_gprs_ie_mm: GSM48_IE_GMM_UE_NET_CAP, GSM48_IE_GMM_VD_PREF_UE_USAGE
+libosmo-gsup-client >1.8.0 osmo_gsup_client_is_connected(), osmo_gsup_client_get_rem_addr(), osmo_gsup_client_get_rem_port()
diff --git a/src/sgsn/sgsn_vty.c b/src/sgsn/sgsn_vty.c
index a7e8045..2cb8819 100644
--- a/src/sgsn/sgsn_vty.c
+++ b/src/sgsn/sgsn_vty.c
@@ -670,11 +670,10 @@
SHOW_STR "Display information about the SGSN")
{
if (sgsn->gsup_client) {
- struct ipa_client_conn *link = sgsn->gsup_client->link;
- vty_out(vty,
- " Remote authorization: %sconnected to %s:%d via GSUP%s",
- sgsn->gsup_client->is_connected ? "" : "not ",
- link->addr, link->port,
+ vty_out(vty, " Remote authorization: %sconnected to %s:%d via GSUP%s",
+ osmo_gsup_client_is_connected(sgsn->gsup_client) ? "" : "not ",
+ osmo_gsup_client_get_rem_addr(sgsn->gsup_client),
+ osmo_gsup_client_get_rem_port(sgsn->gsup_client),
VTY_NEWLINE);
}
if (sgsn->gsn)

To view, visit change 39007. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: osmo-sgsn
Gerrit-Branch: master
Gerrit-Change-Id: Ie443ef0bd983635a5b29e434d79b93ef3f7ce370
Gerrit-Change-Number: 39007
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin@sysmocom.de>