Change in osmo-ttcn3-hacks[master]: NS_Emulation: Don't respond to NS-STATUS with NS-STATUS

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
Thu Feb 4 14:07:14 UTC 2021


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

Change subject: NS_Emulation: Don't respond to NS-STATUS with NS-STATUS
......................................................................

NS_Emulation: Don't respond to NS-STATUS with NS-STATUS

Change-Id: Id9544ed1a7686fe113c4f6671e482bffc84bd2cc
---
M library/NS_Emulation.ttcnpp
1 file changed, 4 insertions(+), 0 deletions(-)

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



diff --git a/library/NS_Emulation.ttcnpp b/library/NS_Emulation.ttcnpp
index ec3386f..34bbcd9 100644
--- a/library/NS_Emulation.ttcnpp
+++ b/library/NS_Emulation.ttcnpp
@@ -662,6 +662,10 @@
 
 		[g_config.handle_sns and ischosen(g_nsvc_config.provider.ip)] as_nsvc_sns();
 
+		/* log + ignore NS-STATUS; must not create another NS-STATUS in response */
+		[] NSCP.receive(tr_NS_STATUS(?)) -> value rf {
+			log("Rx NS-STATUS ", rf," in state ", vc_state);
+			}
 		/* default case of handling unknown PDUs */
 		[] NSCP.receive(PDU_NS: ?) -> value rf {
 			log("Rx Unexpected NS PDU ", rf," in state ", vc_state);

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/22695
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: Id9544ed1a7686fe113c4f6671e482bffc84bd2cc
Gerrit-Change-Number: 22695
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/20210204/1c866e2b/attachment.htm>


More information about the gerrit-log mailing list