pespin has uploaded this change for review. (
https://gerrit.osmocom.org/c/libosmo-sccp/+/27599 )
Change subject: Add ss7 instances to osmo_ss7_instances in creation order
......................................................................
Add ss7 instances to osmo_ss7_instances in creation order
Otherwise when configuring ss7 instances in numerical order in the VTY
and then printing the VTY configuration they end up ordered this way:
cs7 instance 2
cs7 instance 1
cs7 instance 0
Related: SYS#5912
Change-Id: Id4d0a20cc5b0811b505b2d1051d496f8bd17d54c
---
M src/osmo_ss7.c
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/libosmo-sccp refs/changes/99/27599/1
diff --git a/src/osmo_ss7.c b/src/osmo_ss7.c
index 99536d3..a4af727 100644
--- a/src/osmo_ss7.c
+++ b/src/osmo_ss7.c
@@ -399,7 +399,7 @@
inst->cfg.pc_fmt.component_len[1] = 8;
inst->cfg.pc_fmt.component_len[2] = 3;
- llist_add(&inst->list, &osmo_ss7_instances);
+ llist_add_tail(&inst->list, &osmo_ss7_instances);
INIT_LLIST_HEAD(&inst->cfg.sccp_address_book);
--
To view, visit
https://gerrit.osmocom.org/c/libosmo-sccp/+/27599
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-Change-Id: Id4d0a20cc5b0811b505b2d1051d496f8bd17d54c
Gerrit-Change-Number: 27599
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: newchange