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.orgHarald Welte has submitted this change and it was merged. Change subject: RTP_Emulation: Add f_rtpem_stats_compare() to match a pair of stats ...................................................................... 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(-) Approvals: Harald Welte: Looks good to me, approved Jenkins Builder: Verified 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: merged Gerrit-Change-Id: I1682bc16a05f096976b7e68b6115850fc152f7aa Gerrit-PatchSet: 1 Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Owner: Harald Welte <laforge at gnumonks.org> Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org> Gerrit-Reviewer: Jenkins Builder