Skip to content

Commit

Permalink
vty: Avoid accessing gsupclient object fields directly
Browse files Browse the repository at this point in the history
Use new APIs recently added.

Depends: osmo-hlr.git Change-Id I401af83232022f1c141eef1f428cbe206a8aaaa2
Change-Id: Ie443ef0bd983635a5b29e434d79b93ef3f7ce370
  • Loading branch information
pespin committed Dec 3, 2024
1 parent b69e326 commit 6668b2b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions TODO-RELEASE
Original file line number Diff line number Diff line change
Expand Up @@ -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()
9 changes: 4 additions & 5 deletions src/sgsn/sgsn_vty.c
Original file line number Diff line number Diff line change
Expand Up @@ -670,11 +670,10 @@ DEFUN(show_sgsn, show_sgsn_cmd, "show sgsn",
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)
Expand Down

0 comments on commit 6668b2b

Please sign in to comment.