pespin has uploaded this change for review. (
https://gerrit.osmocom.org/c/osmo-bsc/+/38661?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
---
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/61/38661/1
diff --git a/src/osmo-bsc/osmo_bsc_sigtran.c b/src/osmo-bsc/osmo_bsc_sigtran.c
index 66d38bf..f51aa0a 100644
--- a/src/osmo-bsc/osmo_bsc_sigtran.c
+++ b/src/osmo-bsc/osmo_bsc_sigtran.c
@@ -559,7 +559,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);
@@ -615,7 +615,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/+/38661?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: master
Gerrit-Change-Id: Iacbe2944957ab2e2a627f2dabdaa66d9fc8eabe3
Gerrit-Change-Number: 38661
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>