Change in osmo-ttcn3-hacks[master]: RAW_NS: Ignore NS-UNITDATA while waiting for NS-ALIVE in oneshot mode

laforge gerrit-no-reply at lists.osmocom.org
Wed Mar 24 01:17:30 UTC 2021


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

Change subject: RAW_NS: Ignore NS-UNITDATA while waiting for NS-ALIVE in oneshot mode
......................................................................

RAW_NS: Ignore NS-UNITDATA while waiting for NS-ALIVE in oneshot mode

Change-Id: Id2738b055f860b4eee57d445944e0861b34151be
---
M library/RAW_NS.ttcnpp
1 file changed, 7 insertions(+), 0 deletions(-)

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



diff --git a/library/RAW_NS.ttcnpp b/library/RAW_NS.ttcnpp
index 58910d9..76ac0a2 100644
--- a/library/RAW_NS.ttcnpp
+++ b/library/RAW_NS.ttcnpp
@@ -169,6 +169,13 @@
 		NSCP[idx].send(t_NS_ALIVE_ACK);
 		if (not oneshot) { repeat; }
 		}
+	/* in oneshot mode, ignore any NS-UNITDATA we receive meanwhile.  This is
+	 * particularly useful when waiting for the first NS-ALIVE after SNS-CONFIG,
+	 * where there is a high chance of UNITDATA during the first Tns-test cycle
+	 * before the peer sends its first NS-ALIVE after Tns-test expiration */
+	[oneshot] NSCP[idx].receive(tr_NS_UNITDATA(?,?,?)) {
+		repeat;
+		}
 }
 
 /* Transmit BSSGP RESET for given BVCI and expect ACK */

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/23478
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: Id2738b055f860b4eee57d445944e0861b34151be
Gerrit-Change-Number: 23478
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
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/20210324/e87f595d/attachment.htm>


More information about the gerrit-log mailing list