From 7e6a35cc654bfdeedc18d31f1317bacb4a844308 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sat, 16 Mar 2019 18:36:08 +0100 Subject: 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 --- pcu/PCU_Tests_RAW_SNS.ttcn | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pcu/PCU_Tests_RAW_SNS.ttcn b/pcu/PCU_Tests_RAW_SNS.ttcn index a216dbe9..7f71744f 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))); } -- cgit v1.2.3