osmith has uploaded this change for review. (
https://gerrit.osmocom.org/c/osmo-bsc/+/38757?usp=email )
Change subject: Use new libosmo-sigtran API osmo_ss7_instances_llist_entry()
......................................................................
Use new libosmo-sigtran API osmo_ss7_instances_llist_entry()
Depends: libosmo-sigtran.git Change-Id I148438aecd64bdd66848d4b3404d379a380c5e9c
Change-Id: Iacbe2944957ab2e2a627f2dabdaa66d9fc8eabe3
(cherry picked from commit ea8071e6d2551ccb6a9d1e3597d6886680378b86)
---
M src/osmo-bsc/osmo_bsc_sigtran.c
1 file changed, 3 insertions(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/57/38757/1
diff --git a/src/osmo-bsc/osmo_bsc_sigtran.c b/src/osmo-bsc/osmo_bsc_sigtran.c
index 67827f4..5fb9066 100644
--- a/src/osmo-bsc/osmo_bsc_sigtran.c
+++ b/src/osmo-bsc/osmo_bsc_sigtran.c
@@ -560,7 +560,7 @@
{
struct bsc_msc_data *msc;
uint32_t default_pc;
- struct osmo_ss7_instance *inst;
+ struct llist_head *ll_it;
int create_instance_0_for_msc_nr = -1;
osmo_ss7_register_rx_unknown_cb(&asp_rx_unknown);
@@ -616,7 +616,8 @@
* Iterate cs7 instance indexes and see for each one whether an MSC is configured for
it.
* The 'msc' / 'msc-addr' command selects the cs7 instance used for an
MSC.
*/
- llist_for_each_entry(inst, &osmo_ss7_instances, list) {
+ llist_for_each(ll_it, &osmo_ss7_instances) {
+ struct osmo_ss7_instance *inst = osmo_ss7_instances_llist_entry(ll_it);
char inst_name[32];
enum osmo_ss7_asp_protocol used_proto = OSMO_SS7_ASP_PROT_NONE;
int prev_msc_nr;
--
To view, visit
https://gerrit.osmocom.org/c/osmo-bsc/+/38757?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: osmo-bsc
Gerrit-Branch: osmith/1.12.2
Gerrit-Change-Id: Iacbe2944957ab2e2a627f2dabdaa66d9fc8eabe3
Gerrit-Change-Number: 38757
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-CC: pespin <pespin(a)sysmocom.de>