Change in osmo-ttcn3-hacks[master]: library/DIAMETER_Emulation: handle DWR/DWA ping-pong

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/.

laforge gerrit-no-reply at lists.osmocom.org
Wed Dec 15 14:22:30 UTC 2021


laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/26520 )

Change subject: library/DIAMETER_Emulation: handle DWR/DWA ping-pong
......................................................................

library/DIAMETER_Emulation: handle DWR/DWA ping-pong

Change-Id: I0291eccd0467f8fe15ddcb88259618365c33befd
Related: SYS#5602
---
M library/DIAMETER_Emulation.ttcn
1 file changed, 8 insertions(+), 0 deletions(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved



diff --git a/library/DIAMETER_Emulation.ttcn b/library/DIAMETER_Emulation.ttcn
index f7a0f88..220ab11 100644
--- a/library/DIAMETER_Emulation.ttcn
+++ b/library/DIAMETER_Emulation.ttcn
@@ -328,6 +328,14 @@
 			/* notify our user that the CER->CEA exchange has happened */
 			DIAMETER_UNIT.send(DiameterCapabilityExchgInd:{rx:=mrf.msg, tx:=valueof(resp)});
 			}
+		/* handle DWR/DWA ping-pong */
+		[] DIAMETER.receive(tr_DIAMETER_RecvFrom_R(tr_DIA_DWR)) -> value mrf {
+			var template (value) PDU_DIAMETER resp;
+			resp := ts_DIA_DWA('00000001'O, p.origin_host, p.origin_realm,
+					   hbh_id := mrf.msg.hop_by_hop_id,
+					   ete_id := mrf.msg.end_to_end_id);
+			DIAMETER.send(t_DIAMETER_Send(g_diameter_conn_id, valueof(resp)));
+			}
 
 		/* DIAMETER from remote peer */
 		[] DIAMETER.receive(tr_DIAMETER_RecvFrom_R(?)) -> value mrf {

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/26520
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: I0291eccd0467f8fe15ddcb88259618365c33befd
Gerrit-Change-Number: 26520
Gerrit-PatchSet: 2
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20211215/52a7c43b/attachment.htm>


More information about the gerrit-log mailing list