summaryrefslogtreecommitdiffstats
path: root/library/RAW_NS.ttcn
diff options
context:
space:
mode:
Diffstat (limited to 'library/RAW_NS.ttcn')
-rw-r--r--library/RAW_NS.ttcn9
1 files changed, 5 insertions, 4 deletions
diff --git a/library/RAW_NS.ttcn b/library/RAW_NS.ttcn
index d02f4ca9..dca352f2 100644
--- a/library/RAW_NS.ttcn
+++ b/library/RAW_NS.ttcn
@@ -50,14 +50,15 @@ function f_init_ns_codec(NSConfiguration ns_config, integer idx := 0, float guar
g_nsconfig[idx] := ns_config;
/* adjust those parts different for each NS-VC */
g_nsconfig[idx].nsvci := ns_config.nsvci + idx;
- g_nsconfig[idx].local_udp_port := ns_config.local_udp_port + idx + tc_offset;
+ g_nsconfig[idx].provider.ip.local_udp_port := ns_config.provider.ip.local_udp_port + idx + tc_offset;
}
map(self:NSCP[idx], system:NSCP);
/* Connect the UDP socket */
- log("connecting NSCP[", idx, "] to ", g_nsconfig[idx]);
- res := f_IPL4_connect(NSCP[idx], g_nsconfig[idx].remote_ip, g_nsconfig[idx].remote_udp_port,
- g_nsconfig[idx].local_ip, g_nsconfig[idx].local_udp_port, 0, { udp := {}});
+ var NSConfiguration nscfg := g_nsconfig[idx];
+ log("connecting NSCP[", idx, "] to ", nscfg);
+ res := f_IPL4_connect(NSCP[idx], nscfg.provider.ip.remote_ip, nscfg.provider.ip.remote_udp_port,
+ nscfg.provider.ip.local_ip, nscfg.provider.ip.local_udp_port, 0, { udp := {}});
if (not ispresent(res.connId)) {
setverdict(fail, "Could not connect NS UDP socket, check your configuration ", g_nsconfig[idx]);
mtc.stop;