Change in osmo-ttcn3-hacks[master]: NS_Provider_FR: Drop received messages until limk+pvc are up

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
Fri Feb 5 20:17:53 UTC 2021


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

Change subject: NS_Provider_FR: Drop received messages until limk+pvc are up
......................................................................

NS_Provider_FR: Drop received messages until limk+pvc are up

Related: OS#4974
Change-Id: I69f9cf485b0a9eaf9294236f50ffcf4af20f1d20
---
M library/NS_Provider_FR.ttcn
1 file changed, 15 insertions(+), 2 deletions(-)

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



diff --git a/library/NS_Provider_FR.ttcn b/library/NS_Provider_FR.ttcn
index 5138d82..30aadef 100644
--- a/library/NS_Provider_FR.ttcn
+++ b/library/NS_Provider_FR.ttcn
@@ -50,8 +50,21 @@
 		var PDU_NS rx_pdu;
 		alt {
 
-		[] FR.receive(FrameRelayFrame:?) -> value rx_fr {
-			NSE.send(dec_PDU_NS(rx_fr.payload));
+		[not link_available] FR.receive(FrameRelayFrame:?) -> value rx_fr {
+			log("Dropoing Rx Msg because FR link not yet available", rx_fr);
+				/* this can happen if the remote side has not yet recognized the
+				 * link is dead; don' fail here */
+			}
+		[link_available and pvc_active] FR.receive(tr_FR(config.provider.fr.dlci)) -> value rx_fr {
+			var PDU_NS ns := dec_PDU_NS(rx_fr.payload);
+			NSE.send(ns);
+			}
+		[not pvc_active] FR.receive(tr_FR(config.provider.fr.dlci)) -> value rx_fr {
+			log("Dropoing Rx Msg because FR DLC not yet available", rx_fr);
+			}
+		[] FR.receive(tr_FR(?)) -> value rx_fr {
+			log("Dropoing Rx Msg because DLCI unknown", rx_fr);
+			setverdict(fail);
 			}
 
 		[] FR.receive(FRemu_Event:{link_status:=FR_LINK_STS_AVAILABLE}) -> value rx_frevt {

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/22751
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: I69f9cf485b0a9eaf9294236f50ffcf4af20f1d20
Gerrit-Change-Number: 22751
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/20210205/5a647684/attachment.htm>


More information about the gerrit-log mailing list