diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2020-08-21 13:42:30 +0200 |
---|---|---|
committer | laforge <laforge@osmocom.org> | 2020-08-27 08:13:44 +0000 |
commit | b51c0879e14f11e57bfd3be097d8b028cfdb8c16 (patch) | |
tree | d06a3cc04e05fd24b30f5e50f17653066d29f749 /stp/STP_Tests_IPA.ttcn | |
parent | 14d0b13f5f33bfb8c2ab7e05fe10316e7bf11a93 (diff) |
stp: Support testing multi-home SCTP features with IPv4+IPv6
The IP addr module parameter is split now, IPA module has its own set
of configurable addresses, and M3UA its own. Moreover, in M3UA the
single address is transformed to be an array of addresses, to support
multi-homing with both IPv4 and IPv6 addresses.
Related: SYS#4915
Change-Id: Ib1925ed1df5cea3fa66f28b5625532d454a2c338
Diffstat (limited to 'stp/STP_Tests_IPA.ttcn')
-rw-r--r-- | stp/STP_Tests_IPA.ttcn | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/stp/STP_Tests_IPA.ttcn b/stp/STP_Tests_IPA.ttcn index c67bc4a7..26abc801 100644 --- a/stp/STP_Tests_IPA.ttcn +++ b/stp/STP_Tests_IPA.ttcn @@ -38,6 +38,8 @@ private const integer NR_IPA := 7; type record of charstring AspNameArray; modulepar { + charstring mp_stp_ipa_ip := "127.0.0.1"; + charstring mp_local_ipa_ip := "127.0.0.1"; integer mp_stp_ipa_port := 5000; integer mp_local_ipa_port := 20000; AspNameArray mp_ipa_as_names := {"ipa-as-loadshare-sender", @@ -113,7 +115,7 @@ friend function f_connect_ipa(integer idx, boolean use_unknown_asp_port := false ASP only up to NR_IPA are configured. */ port_offset := 100; } - vc_IPA[idx].start(IPA_Emulation.main_client(mp_stp_ip, mp_stp_ipa_port, mp_local_ip, + vc_IPA[idx].start(IPA_Emulation.main_client(mp_stp_ipa_ip, mp_stp_ipa_port, mp_local_ipa_ip, mp_local_ipa_port + idx + port_offset, g_ccm_pars[idx])); } |