This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
laforge gerrit-no-reply at lists.osmocom.orglaforge has submitted this change. ( https://gerrit.osmocom.org/c/libosmo-sccp/+/16117 )
Change subject: xua: Implement traffic mode broadcast
......................................................................
xua: Implement traffic mode broadcast
Change-Id: I4358965f0ff0aa05c5082a2745159da766e9a4e7
---
M src/xua_as_fsm.c
1 file changed, 21 insertions(+), 3 deletions(-)
Approvals:
Jenkins Builder: Verified
laforge: Looks good to me, approved
diff --git a/src/xua_as_fsm.c b/src/xua_as_fsm.c
index 602c433..731504b 100644
--- a/src/xua_as_fsm.c
+++ b/src/xua_as_fsm.c
@@ -108,6 +108,26 @@
return asp;
}
+int xua_as_transmit_msg_broadcast(struct osmo_ss7_as *as, struct msgb *msg)
+{
+ struct osmo_ss7_asp *asp;
+ unsigned int i;
+ struct msgb *msg_cpy;
+ bool sent = false;
+
+ for (i = 0; i < ARRAY_SIZE(as->cfg.asps); i++) {
+ asp = as->cfg.asps[i];
+ if (!asp || !osmo_ss7_asp_active(asp))
+ continue;
+ msg_cpy = msgb_copy(msg, "xua_bcast_cpy");
+ if (osmo_ss7_asp_send(asp, msg_cpy) == 0)
+ sent = true;
+ }
+
+ msgb_free(msg);
+ return sent ? 0 : -1;
+}
+
/* actually transmit a message through this AS */
int xua_as_transmit_msg(struct osmo_ss7_as *as, struct msgb *msg)
{
@@ -122,9 +142,7 @@
asp = xua_as_select_asp_roundrobin(as);
break;
case OSMO_SS7_AS_TMOD_BCAST:
- LOGPFSM(as->fi, "Traffic mode broadcast not implemented, dropping message\n");
- msgb_free(msg);
- return -1;
+ return xua_as_transmit_msg_broadcast(as, msg);
case _NUM_OSMO_SS7_ASP_TMOD:
OSMO_ASSERT(false);
}
--
To view, visit https://gerrit.osmocom.org/c/libosmo-sccp/+/16117
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-Change-Id: I4358965f0ff0aa05c5082a2745159da766e9a4e7
Gerrit-Change-Number: 16117
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20191121/d0fae189/attachment.htm>