osmith submitted this change.

View Change

Approvals: pespin: Looks good to me, but someone else must approve osmith: Verified fixeria: Looks good to me, approved
bsc_ctrl: Use new libosmo-sigtran API osmo_ss7_route_get_dest_as()

Use this new API instead of accessing the route struct directly.

Depends: libosmo-sigtran.git Change-Id Ife63bd384d247a761e0b89505ea71c41a4a16d9b
Change-Id: I198351fba4cfeba310b397c964e5306cd73189ba
(cherry picked from commit a8da1040e876cadc2d41943c896683f228533092)
---
M TODO-RELEASE
M src/osmo-bsc/bsc_ctrl.c
2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/TODO-RELEASE b/TODO-RELEASE
index 0ed7189..c073b60 100644
--- a/TODO-RELEASE
+++ b/TODO-RELEASE
@@ -7,3 +7,4 @@
# If any interfaces have been added since the last public release: c:r:a + 1.
# If any interfaces have been removed or changed since the last public release: c:r:0.
#library what description / commit summary line
+libosmo-sigtran >2.0.1 Use API osmo_ss7_route_get_dest_as()
\ No newline at end of file
diff --git a/src/osmo-bsc/bsc_ctrl.c b/src/osmo-bsc/bsc_ctrl.c
index caef66e..2138c65 100644
--- a/src/osmo-bsc/bsc_ctrl.c
+++ b/src/osmo-bsc/bsc_ctrl.c
@@ -633,11 +633,15 @@
static struct osmo_ss7_as *msc_get_ss7_as(struct bsc_msc_data *msc)
{
struct osmo_ss7_route *rt;
+ struct osmo_ss7_as *as;
struct osmo_ss7_instance *ss7 = osmo_sccp_get_ss7(msc->a.sccp);
rt = osmo_ss7_route_lookup(ss7, msc->a.msc_addr.pc);
if (!rt)
return NULL;
- return rt->dest.as;
+ as = osmo_ss7_route_get_dest_as(rt);
+ if (!as)
+ return NULL;
+ return as;
}

static int _ss7_as_send(struct osmo_ss7_as *as, struct msgb *msg)

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

Gerrit-MessageType: merged
Gerrit-Project: osmo-bsc
Gerrit-Branch: osmith/1.12.2
Gerrit-Change-Id: I198351fba4cfeba310b397c964e5306cd73189ba
Gerrit-Change-Number: 38754
Gerrit-PatchSet: 2
Gerrit-Owner: osmith <osmith@sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy@sysmocom.de>
Gerrit-Reviewer: osmith <osmith@sysmocom.de>
Gerrit-CC: pespin <pespin@sysmocom.de>