pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/29564 )
Change subject: ggsn: Fix TC_gy_charging_volume_quota_threshold expectations
......................................................................
ggsn: Fix TC_gy_charging_volume_quota_threshold expectations
in Diameter, the CC-Input/Output direction is defined as follows in
RFC4006:
"""
8.24. CC-Input-Octets AVP
The CC-Input-Octets AVP (AVP Code 412) is of type Unsigned64 and
contains the number of requested, granted, or used octets that can
be/have been received from the end user.
8.25. CC-Output-Octets AVP
The CC-Output-Octets AVP (AVP Code 414) is of type Unsigned64 and
contains the number of requested, granted, or used octets that can
be/have been sent to the end user.
"""
So:
* 3GPP uplink is from end user to PGW, and hence 'CC-Input-Octets'
* 3GPP downlink is to end user to PGW, and hence 'CC-Output-Octets'
This test started failing a few days ago since a bug was recently
fixed in open5gs which was swapping the counters in open5gs-upfd:
https://github.com/open5gs/open5gs/pull/1793https://github.com/open5gs/open5gs/commit/f72a1edc6ed35cf5289243d660a73beb0…
Change-Id: I2f64649ce70d85634f14b84eff98731f7711cbad
---
M ggsn_tests/GGSN_Tests.ttcn
1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/64/29564/1
diff --git a/ggsn_tests/GGSN_Tests.ttcn b/ggsn_tests/GGSN_Tests.ttcn
index 0a3bad0..21fdec7 100644
--- a/ggsn_tests/GGSN_Tests.ttcn
+++ b/ggsn_tests/GGSN_Tests.ttcn
@@ -2465,11 +2465,11 @@
"TImeout waiting for Gy UPDATE triggered by Volume-Quota-Threshold");
}
}
- f_validate_gy_cc_report(g_rx_gy, THRESHOLD, (0..6), 0, (1200..1400));
+ f_validate_gy_cc_report(g_rx_gy, THRESHOLD, (0..6), (1200..1400), 0);
/* ICMP Resp (echo back) generates one report: */
as_DIA_Gy_CCR(ctx, UPDATE_REQUEST);
- f_validate_gy_cc_report(g_rx_gy, THRESHOLD, (0..1), (1200..1400), 0);
+ f_validate_gy_cc_report(g_rx_gy, THRESHOLD, (0..1), 0, (1200..1400));
/* Second update: 0 ul/dl pkt/octet should be reported, since nothing was sent */
as_DIA_Gy_CCR(ctx, UPDATE_REQUEST);
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/29564
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I2f64649ce70d85634f14b84eff98731f7711cbad
Gerrit-Change-Number: 29564
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: newchange
pespin has submitted this change. ( https://gerrit.osmocom.org/c/libosmo-netif/+/29525 )
Change subject: cosmetic: osmux: Make linter happy
......................................................................
cosmetic: osmux: Make linter happy
Change-Id: I8472e1b508babfa231c7e0ecc75b4fe63e090a0d
---
M src/osmux_input.c
M src/osmux_output.c
2 files changed, 29 insertions(+), 29 deletions(-)
Approvals:
Jenkins Builder: Verified
laforge: Looks good to me, approved
fixeria: Looks good to me, but someone else must approve
diff --git a/src/osmux_input.c b/src/osmux_input.c
index 2b388f2..2706b11 100644
--- a/src/osmux_input.c
+++ b/src/osmux_input.c
@@ -178,7 +178,7 @@
osmuxh->ft = OSMUX_FT_DUMMY;
osmuxh->ctr = batch_factor - 1;
osmuxh->amr_f = 0;
- osmuxh->amr_q= 0;
+ osmuxh->amr_q = 0;
osmuxh->seq = 0;
osmuxh->circuit_id = state->circuit->ccid;
osmuxh->amr_cmr = 0;
@@ -370,7 +370,7 @@
/* If diff between last RTP packet seen and this one is > 1,
* then we lost several RTP packets, let's replay them.
*/
- for (i=1; i<diff; i++) {
+ for (i = 1; i < diff; i++) {
struct msgb *clone;
/* Clone last RTP packet seen */
@@ -556,33 +556,33 @@
return -1;
}
- switch(rtph->payload_type) {
- case RTP_PT_RTCP:
- LOGP(DLMUX, LOGL_INFO, "Dropping RTCP packet\n");
+ switch (rtph->payload_type) {
+ case RTP_PT_RTCP:
+ LOGP(DLMUX, LOGL_INFO, "Dropping RTCP packet\n");
+ msgb_free(msg);
+ return 0;
+ default:
+ /* The RTP payload type is dynamically allocated,
+ * although we use static ones. Assume that we always
+ * receive AMR traffic.
+ */
+
+ /* Add this RTP to the OSMUX batch */
+ ret = osmux_batch_add(batch, h->batch_factor,
+ msg, rtph, ccid);
+ if (ret < 0) {
+ /* Cannot put this message into the batch.
+ * Malformed, duplicated, OOM. Drop it and tell
+ * the upper layer that we have digest it.
+ */
+ LOGP(DLMUX, LOGL_DEBUG, "Dropping RTP packet instead of adding to batch\n");
msgb_free(msg);
- return 0;
- default:
- /* The RTP payload type is dynamically allocated,
- * although we use static ones. Assume that we always
- * receive AMR traffic.
- */
+ return ret;
+ }
- /* Add this RTP to the OSMUX batch */
- ret = osmux_batch_add(batch, h->batch_factor,
- msg, rtph, ccid);
- if (ret < 0) {
- /* Cannot put this message into the batch.
- * Malformed, duplicated, OOM. Drop it and tell
- * the upper layer that we have digest it.
- */
- LOGP(DLMUX, LOGL_DEBUG, "Dropping RTP packet instead of adding to batch\n");
- msgb_free(msg);
- return ret;
- }
-
- h->stats.input_rtp_msgs++;
- h->stats.input_rtp_bytes += msg->len;
- break;
+ h->stats.input_rtp_msgs++;
+ h->stats.input_rtp_bytes += msg->len;
+ break;
}
return ret;
}
diff --git a/src/osmux_output.c b/src/osmux_output.c
index 069bdd9..a6e6513 100644
--- a/src/osmux_output.c
+++ b/src/osmux_output.c
@@ -203,7 +203,7 @@
}
/*! \brief Generate RTP packets from osmux frame AMR payload set and schedule
- * them for transmission at appropiate time.
+ * them for transmission at appropriate time.
* \param[in] h the osmux out handle handling a specific CID
* \param[in] osmuxh Buffer pointing to osmux frame header structure and AMR payload
* \return Number of generated RTP packets
@@ -252,7 +252,7 @@
h->osmux_seq_ack = osmuxh->seq;
/* In case list is still empty after parsing messages, no need to rearm */
- if(was_empty && !llist_empty(&h->list))
+ if (was_empty && !llist_empty(&h->list))
osmux_xfrm_output_trigger(h);
return i;
}
2 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.
--
To view, visit https://gerrit.osmocom.org/c/libosmo-netif/+/29525
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-netif
Gerrit-Branch: master
Gerrit-Change-Id: I8472e1b508babfa231c7e0ecc75b4fe63e090a0d
Gerrit-Change-Number: 29525
Gerrit-PatchSet: 3
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: merged
pespin has submitted this change. ( https://gerrit.osmocom.org/c/libosmo-netif/+/29527 )
Change subject: tests/osmo-pcap/osmux: Replace deprecated API osmux_xfrm_output_init2()
......................................................................
tests/osmo-pcap/osmux: Replace deprecated API osmux_xfrm_output_init2()
Replacing this one with the newer API was missed a few commits ago when
this API was marked as deprectated. Do it now.
Change-Id: Ia0958dfae951d82feafe427eff2112d327d3b0a4
---
M tests/osmo-pcap-test/osmux_test.c
1 file changed, 9 insertions(+), 4 deletions(-)
Approvals:
Jenkins Builder: Verified
pespin: Looks good to me, approved
diff --git a/tests/osmo-pcap-test/osmux_test.c b/tests/osmo-pcap-test/osmux_test.c
index a1aa199..bbb395c 100644
--- a/tests/osmo-pcap-test/osmux_test.c
+++ b/tests/osmo-pcap-test/osmux_test.c
@@ -37,7 +37,7 @@
* This is the output handle for osmux, it stores last RTP sequence and
* timestamp that has been used. There should be one per circuit ID.
*/
-static struct osmux_out_handle h_output;
+static struct osmux_out_handle *h_output;
static void tx_cb(struct msgb *msg, void *data)
{
@@ -57,7 +57,7 @@
/* This code below belongs to the osmux receiver */
while((osmuxh = osmux_xfrm_output_pull(batch_msg)) != NULL)
- osmux_xfrm_output_sched(&h_output, osmuxh);
+ osmux_xfrm_output_sched(h_output, osmuxh);
msgb_free(batch_msg);
}
@@ -190,8 +190,11 @@
osmo_pcap.timer.cb = osmo_pcap_pkt_timer_cb;
osmux_xfrm_input_init(&h_input);
- osmux_xfrm_output_init2(&h_output, 0, 98);
- osmux_xfrm_output_set_tx_cb(&h_output, tx_cb, NULL);
+
+ h_output = osmux_xfrm_output_alloc(tall_test);
+ osmux_xfrm_output_set_rtp_ssrc(h_output, 0);
+ osmux_xfrm_output_set_rtp_pl_type(h_output, 98);
+ osmux_xfrm_output_set_tx_cb(h_output, tx_cb, NULL);
/* first run */
osmo_pcap_pkt_timer_cb(NULL);
@@ -200,5 +203,7 @@
osmo_select_main(0);
}
+ talloc_free(h_output);
+
return ret;
}
--
To view, visit https://gerrit.osmocom.org/c/libosmo-netif/+/29527
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-netif
Gerrit-Branch: master
Gerrit-Change-Id: Ia0958dfae951d82feafe427eff2112d327d3b0a4
Gerrit-Change-Number: 29527
Gerrit-PatchSet: 2
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: merged
Attention is currently required from: pespin.
fixeria has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-msc/+/29562 )
Change subject: mncc: move MNCC_F_ALL from mncc.c to mncc.h
......................................................................
Patch Set 1:
(1 comment)
Commit Message:
https://gerrit.osmocom.org/c/osmo-msc/+/29562/comment/d26f6b64_8acd2638
PS1, Line 7: mncc: move MNCC_F_ALL from mncc.c to mncc.h
> great move. […]
I am not getting what do you mean.
--
To view, visit https://gerrit.osmocom.org/c/osmo-msc/+/29562
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-msc
Gerrit-Branch: master
Gerrit-Change-Id: If1a12a696b87184c9eee14f475594c317927427b
Gerrit-Change-Number: 29562
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Mon, 03 Oct 2022 09:31:54 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: comment