summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2019-03-16 18:36:08 +0100
committerHarald Welte <laforge@gnumonks.org>2019-03-16 18:37:54 +0100
commit7e6a35cc654bfdeedc18d31f1317bacb4a844308 (patch)
tree046f6b73b8160237cd7e1995aab08cee6fa8e3a3
parentecd159ecc7fe0b64ecca218db9789486c0fcffa3 (diff)
pcu: Verify IPv4 address communicated in PCU-originated SNS-CONFIG PDU
Prior to this patch, the test accepted anything as list of IPv4 endpoints in the PCU-originated SNS-CONFIG PDU. Using this patch, the corect IPv4 address and UDP port number is verified. Change-Id: Ia57100c7833bebc8d77118968c19ab12a3834036 Related: OS#3845
-rw-r--r--pcu/PCU_Tests_RAW_SNS.ttcn4
1 files changed, 3 insertions, 1 deletions
diff --git a/pcu/PCU_Tests_RAW_SNS.ttcn b/pcu/PCU_Tests_RAW_SNS.ttcn
index a216dbe..7f71744 100644
--- a/pcu/PCU_Tests_RAW_SNS.ttcn
+++ b/pcu/PCU_Tests_RAW_SNS.ttcn
@@ -39,7 +39,9 @@ function f_incoming_sns_config(template (omit) NsCause cause := omit, integer id
runs on RAW_NS_CT {
log("f_incoming_sns_config(idx=", idx, ")");
var PDU_NS rx;
- rx := f_ns_exp(tr_SNS_CONFIG(g_nsconfig[idx].nsei, end_flag := true, v4 := ?), idx);
+ var template IP4_Elements v4_elem := { tr_SNS_IPv4(mp_nsconfig.remote_ip,
+ mp_nsconfig.remote_udp_port) };
+ rx := f_ns_exp(tr_SNS_CONFIG(g_nsconfig[idx].nsei, end_flag := true, v4 := v4_elem), idx);
NSCP[idx].send(t_NS_Send(g_ns_conn_id[idx], ts_SNS_CONFIG_ACK(g_nsconfig[idx].nsei, cause)));
}