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/.
Harald Welte gerrit-no-reply at lists.osmocom.org
Review at https://gerrit.osmocom.org/7570
RTP_Emulation: Add f_rtpem_stats_compare() to match a pair of stats
Change-Id: I1682bc16a05f096976b7e68b6115850fc152f7aa
---
M library/RTP_Emulation.ttcn
1 file changed, 12 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/70/7570/1
diff --git a/library/RTP_Emulation.ttcn b/library/RTP_Emulation.ttcn
index 90a769c..0bf5cbd 100644
--- a/library/RTP_Emulation.ttcn
+++ b/library/RTP_Emulation.ttcn
@@ -188,6 +188,18 @@
return stats;
}
+function f_rtpem_stats_compare(RtpemStats a, RtpemStats b) return boolean {
+ log("stats A: ", a);
+ log("stats B: ", b);
+
+ if (a.num_pkts_tx != b.num_pkts_rx or
+ a.num_pkts_rx != b.num_pkts_tx or
+ a.bytes_payload_tx != b.bytes_payload_rx or
+ a.bytes_payload_rx != b.bytes_payload_tx) {
+ return false;
+ }
+ return true;
+}
template PDU_RTP ts_RTP(BIT32_BO_LAST ssrc, INT7b pt, LIN2_BO_LAST seq, uint32_t ts,
--
To view, visit https://gerrit.osmocom.org/7570
To unsubscribe, visit https://gerrit.osmocom.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I1682bc16a05f096976b7e68b6115850fc152f7aa
Gerrit-PatchSet: 1
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>