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/.
lynxis lazus gerrit-no-reply at lists.osmocom.orglynxis lazus has submitted this change and it was merged. ( https://gerrit.osmocom.org/c/osmo-iuh/+/15472 )
Change subject: iu_client: allow to control the notifications
......................................................................
iu_client: allow to control the notifications
The iu_client is informing the library user about global event.
In prepration to the tx_iu_release_free() call allow to
disable upstream notificatiosn
Change-Id: Ic93ef6fd54c995405e9c37a5e0c53f81a89850b7
---
M TODO-RELEASE
M include/osmocom/ranap/iu_client.h
M src/iu_client.c
3 files changed, 6 insertions(+), 0 deletions(-)
Approvals:
Jenkins Builder: Verified
pespin: Looks good to me, but someone else must approve
laforge: Looks good to me, approved
diff --git a/TODO-RELEASE b/TODO-RELEASE
index d0852fc..41d04bc 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
+libranap iu_client.h struct ranap_ue_conn_ctx: add field notification
diff --git a/include/osmocom/ranap/iu_client.h b/include/osmocom/ranap/iu_client.h
index 0cb84da..b388529 100644
--- a/include/osmocom/ranap/iu_client.h
+++ b/include/osmocom/ranap/iu_client.h
@@ -30,6 +30,7 @@
int integrity_active;
struct gprs_ra_id ra_id;
enum ranap_nsap_addr_enc rab_assign_addr_enc;
+ bool notification; /* send notification to the upstream user */
};
enum ranap_iu_event_type {
diff --git a/src/iu_client.c b/src/iu_client.c
index ec5290f..38c8a1d 100644
--- a/src/iu_client.c
+++ b/src/iu_client.c
@@ -116,6 +116,9 @@
if (!global_iu_event_cb)
return 0;
+ if (!ue_ctx->notification)
+ return 0;
+
return global_iu_event_cb(ue_ctx, type, data);
}
@@ -125,6 +128,7 @@
ctx->rnc = rnc;
ctx->conn_id = conn_id;
+ ctx->notification = true;
llist_add(&ctx->list, &ue_conn_ctx_list);
return ctx;
--
To view, visit https://gerrit.osmocom.org/c/osmo-iuh/+/15472
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-iuh
Gerrit-Branch: master
Gerrit-Change-Id: Ic93ef6fd54c995405e9c37a5e0c53f81a89850b7
Gerrit-Change-Number: 15472
Gerrit-PatchSet: 2
Gerrit-Owner: lynxis lazus <lynxis at fe80.eu>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at gnumonks.org>
Gerrit-Reviewer: lynxis lazus <lynxis at fe80.eu>
Gerrit-Reviewer: neels <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190915/195d93ba/attachment.htm>