summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2020-12-09 02:05:02 +0100
committerlaforge <laforge@osmocom.org>2020-12-10 15:21:30 +0000
commita8fb621abaf6e5c4427c681998a90f014cc7c3a5 (patch)
treef7c2398bfad11811a9cebc4e8db0dc1b33cf5c7c
parent299aa48c64a32aacd77f531b6d8a72d526fce030 (diff)
pcu: TC_sns_add: fix wrong udp port in SNS ADD message
When sending the SNS ADD in the test case the ip/port to add must be different from the current NSVCs. Fixes: 90f1974fb040 ("NS_Emulation: Support multiple NS-VC within one NSE (NS-VCG)") Change-Id: I9bbbf1431468a452df324a7559518496e3eb48e3
-rw-r--r--pcu/PCU_Tests_SNS.ttcn2
1 files changed, 1 insertions, 1 deletions
diff --git a/pcu/PCU_Tests_SNS.ttcn b/pcu/PCU_Tests_SNS.ttcn
index cd0cc67..40a0877 100644
--- a/pcu/PCU_Tests_SNS.ttcn
+++ b/pcu/PCU_Tests_SNS.ttcn
@@ -147,7 +147,7 @@ function f_outgoing_sns_add(integer idx_add, uint8_t w_sig := 1, uint8_t w_user
runs on RAW_NS_CT {
log("f_outgoing_sns_add(idx_add=", idx_add, ")");
var PDU_NS rx;
- var NSVCConfiguration nsvc_cfg := g_nsconfig[idx].nsvc[0];
+ var NSVCConfiguration nsvc_cfg := g_nsconfig[idx_add].nsvc[0];
if (nsvc_cfg.provider.ip.address_family == AF_INET) {
var template (omit) IP4_Elements v4 := { ts_SNS_IPv4(nsvc_cfg.provider.ip.local_ip,
nsvc_cfg.provider.ip.local_udp_port,