Attention is currently required from: fixeria.
pespin has posted comments on this change by fixeria. ( https://gerrit.osmocom.org/c/erlang/osmo-s1gw/+/40532?usp=email )
Change subject: enft_kpi: flush the table on init
......................................................................
Patch Set 1:
(1 comment)
File src/enft_kpi.erl:
https://gerrit.osmocom.org/c/erlang/osmo-s1gw/+/40532/comment/c433094e_4a58… :
PS1, Line 515: nft_exec(Cmds).
you should probably be deleting the rules filtering the traffic towards table TName too?
Probably the ones you add in line 528 with enftables:nft_cmd_add_rule()?
--
To view, visit https://gerrit.osmocom.org/c/erlang/osmo-s1gw/+/40532?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: erlang/osmo-s1gw
Gerrit-Branch: master
Gerrit-Change-Id: I96bf4f7b6d5c9104fad0d6f98eda56e7a4e4fa7d
Gerrit-Change-Number: 40532
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-CC: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Comment-Date: Thu, 26 Jun 2025 10:45:27 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Attention is currently required from: laforge, pespin.
osmith has posted comments on this change by pespin. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/40530?usp=email )
Change subject: stp: ipa: Introduce test TC_combinedlset_loadshare
......................................................................
Patch Set 1: Code-Review+1
(1 comment)
File stp/STP_Tests_IPA.ttcn:
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/40530/comment/33c6576b_a4cf… :
PS1, Line 539: unknwon_dynamic_asp
```suggestion
private function f_tc_combinedlset_loadshare(boolean unknown_dynamic_asp)
```
this typo is also elsewhere in this file, maybe create a separate patch to fix that?
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/40530?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I029ac9f3c664d2f30cddc36f6eb1b39295689247
Gerrit-Change-Number: 40530
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Thu, 26 Jun 2025 10:37:00 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
pespin has submitted this change. ( https://gerrit.osmocom.org/c/libosmo-sigtran/+/40498?usp=email )
Change subject: xua_snm.c: Handle DAUD with aff_pc containing wildcards
......................................................................
xua_snm.c: Handle DAUD with aff_pc containing wildcards
Handle it with a really basic implementation for completeness.
In theory we shouldn't in general be receiving such big masks,
since RFC466 3.4.3 states:
"""
It is recommended that during normal operation (traffic handling) the
mask field of the Affected Point Code parameter in the DAUD message
be kept to a zero value in order to avoid SG overloading.
"""
Change-Id: Icdb726ae66d3bee19b2113b1e77d68b517e8fb4d
---
M src/xua_snm.c
1 file changed, 47 insertions(+), 12 deletions(-)
Approvals:
pespin: Looks good to me, approved
osmith: Looks good to me, but someone else must approve
Jenkins Builder: Verified
laforge: Looks good to me, but someone else must approve
diff --git a/src/xua_snm.c b/src/xua_snm.c
index 079cd96..f3c8bb8 100644
--- a/src/xua_snm.c
+++ b/src/xua_snm.c
@@ -316,26 +316,61 @@
uint32_t _aff_pc = ntohl(aff_pc[i]);
uint32_t pc = _aff_pc & 0xffffff;
uint8_t mask = _aff_pc >> 24;
- bool is_available = false;
+ bool is_available;
+
+ struct osmo_ss7_route_label rtlabel = {
+ .opc = xua->mtp.opc, /* Use OPC of received DAUD. */
+ .dpc = pc,
+ .sls = 0,
+ };
if (mask == 0) {
/* one single point code */
-
- struct osmo_ss7_route_label rtlabel = {
- .opc = xua->mtp.opc, /* Use OPC of received DAUD. FIXME: is this correct? */
- .dpc = pc,
- .sls = 0,
- };
-
/* Check if there's an "active" route available: */
- if (ss7_instance_lookup_route(s7i, &rtlabel))
- is_available = true;
+ is_available = !!ss7_instance_lookup_route(s7i, &rtlabel);
xua_tx_snm_available(asp, rctx, num_rctx, &aff_pc[i], 1, "Response to DAUD",
is_available);
} else {
- /* TODO: wildcard match */
- LOGPASP(asp, log_ss, LOGL_NOTICE, "DAUD with wildcard match not supported yet\n");
+ /* Multiple single point codes with mask indicating number of wildcarded bits. */
+ uint32_t maskbits = (1 << mask) - 1;
+ uint32_t fullpc;
+ unsigned int num_aff_pc_avail = 0;
+ unsigned int num_aff_pc_unavail = 0;
+ uint32_t *aff_pc_avail = talloc_size(asp, sizeof(uint32_t)*(1 << mask));
+ uint32_t *aff_pc_unavail = talloc_size(asp, sizeof(uint32_t)*(1 << mask));
+ for (fullpc = (pc & ~maskbits); fullpc <= (pc | maskbits); fullpc++) {
+ rtlabel.dpc = fullpc;
+ is_available = !!ss7_instance_lookup_route(s7i, &rtlabel);
+ if (is_available)
+ aff_pc_avail[num_aff_pc_avail++] = htonl(fullpc); /* mask = 0 */
+ else
+ aff_pc_unavail[num_aff_pc_unavail++] = htonl(fullpc); /* mask = 0 */
+ }
+ /* TODO: Ideally an extra step would be needed here to pack again all
+ * concurrent PCs on each array sharing a suffix mask, in order to
+ * shrink the transmitted list of Affected PCs. */
+ const unsigned int MAX_PC_PER_MSG = 32;
+ for (unsigned int i = 0; i < num_aff_pc_avail; i += MAX_PC_PER_MSG) {
+ unsigned int num_transmit;
+ if (i + MAX_PC_PER_MSG < num_aff_pc_avail)
+ num_transmit = MAX_PC_PER_MSG;
+ else
+ num_transmit = (num_aff_pc_avail - i);
+ xua_tx_snm_available(asp, rctx, num_rctx, &aff_pc_avail[i],
+ num_transmit, "Response to DAUD", true);
+ }
+ for (unsigned int i = 0; i < num_aff_pc_unavail; i += MAX_PC_PER_MSG) {
+ unsigned int num_transmit;
+ if (i + MAX_PC_PER_MSG < num_aff_pc_unavail)
+ num_transmit = MAX_PC_PER_MSG;
+ else
+ num_transmit = (num_aff_pc_unavail - i);
+ xua_tx_snm_available(asp, rctx, num_rctx, &aff_pc_unavail[i],
+ num_transmit, "Response to DAUD", false);
+ }
+ talloc_free(aff_pc_avail);
+ talloc_free(aff_pc_unavail);
}
}
}
--
To view, visit https://gerrit.osmocom.org/c/libosmo-sigtran/+/40498?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: libosmo-sigtran
Gerrit-Branch: master
Gerrit-Change-Id: Icdb726ae66d3bee19b2113b1e77d68b517e8fb4d
Gerrit-Change-Number: 40498
Gerrit-PatchSet: 5
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <dwillmann(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
pespin has submitted this change. ( https://gerrit.osmocom.org/c/libosmo-sigtran/+/40499?usp=email )
Change subject: cosmetic: sua: Fix API documentation typo
......................................................................
cosmetic: sua: Fix API documentation typo
Change-Id: I5aa42a3dfd5782425e23278f1b6a8ee8b9af2cac
---
M src/sua.c
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Jenkins Builder: Verified
osmith: Looks good to me, approved
laforge: Looks good to me, approved
diff --git a/src/sua.c b/src/sua.c
index 41bea1b..7d14f3b 100644
--- a/src/sua.c
+++ b/src/sua.c
@@ -863,7 +863,7 @@
}
/*! Transmit SSNM DUNA/DAVA message indicating [un]availability of certain point code[s]
- * \param[in] asp ASP through whihc to transmit message. Must be ACTIVE.
+ * \param[in] asp ASP through which to transmit message. Must be ACTIVE.
* \param[in] rctx array of Routing Contexts in network byte order.
* \param[in] num_rctx number of rctx
* \param[in] aff_pc array of 'Affected Point Code' in network byte order.
--
To view, visit https://gerrit.osmocom.org/c/libosmo-sigtran/+/40499?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: libosmo-sigtran
Gerrit-Branch: master
Gerrit-Change-Id: I5aa42a3dfd5782425e23278f1b6a8ee8b9af2cac
Gerrit-Change-Number: 40499
Gerrit-PatchSet: 3
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>