summaryrefslogtreecommitdiffstats
path: root/ggsn_tests/GGSN_Tests.ttcn
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-08-04 16:19:59 +0200
committerHarald Welte <laforge@gnumonks.org>2017-08-04 16:19:59 +0200
commit876345e4605d27c2148846ddedcd17e89f9e4e51 (patch)
tree39a7f4281e3d2224dfba3f4f7a524175c00c7226 /ggsn_tests/GGSN_Tests.ttcn
parent94ade368e040e0e23548ccc70542849520e75e06 (diff)
GGSN_Tests: Prepare for separate IPs on control/user plane
Diffstat (limited to 'ggsn_tests/GGSN_Tests.ttcn')
-rw-r--r--ggsn_tests/GGSN_Tests.ttcn12
1 files changed, 7 insertions, 5 deletions
diff --git a/ggsn_tests/GGSN_Tests.ttcn b/ggsn_tests/GGSN_Tests.ttcn
index c799c3a..0704b22 100644
--- a/ggsn_tests/GGSN_Tests.ttcn
+++ b/ggsn_tests/GGSN_Tests.ttcn
@@ -11,7 +11,8 @@ module GGSN_Tests {
const integer GTP0_PORT := 3386;
const integer GTP1C_PORT := 2123;
const integer GTP1U_PORT := 2152;
- const charstring g_bind_ip := "127.23.42.1";
+ const charstring g_bind_ip_c := "127.23.42.1";
+ const charstring g_bind_ip_u := g_bind_ip_c;
type component GT_CT {
port GTPC_PT GTPC;
@@ -19,7 +20,8 @@ module GGSN_Tests {
var OCT1 g_restart_ctr := '01'O;
/* FIXME: unify with g_bind_ip + parse from config file */
- var OCT4 g_sgsn_ip := '7f172a01'O;
+ var OCT4 g_sgsn_ip_c := '7f172a01'O;
+ var OCT4 g_sgsn_ip_u := '7f172a01'O;
/* FIXME: parse remName from config file */
var GtpPeer g_peer := { connId := 0, remName := "127.0.0.6", remPort := GTP1C_PORT };
timer T_default := 3.0;
@@ -28,12 +30,12 @@ module GGSN_Tests {
function f_init() runs on GT_CT {
var Result res;
map(self:GTPC, system:GTPC);
- res := GTP_CodecPort_CtrlFunct.f_IPL4_listen(GTPC, g_bind_ip, GTP1C_PORT, {udp:={}});
+ res := GTP_CodecPort_CtrlFunct.f_IPL4_listen(GTPC, g_bind_ip_c, GTP1C_PORT, {udp:={}});
log("GTP1C ConnectionID: ", res.connId);
g_peer.connId := res.connId;
map(self:GTPU, system:GTPU);
- GTP_CodecPort_CtrlFunct.f_GTPU_listen(GTPU, g_bind_ip, GTP1U_PORT, {udp:={}});
+ GTP_CodecPort_CtrlFunct.f_GTPU_listen(GTPU, g_bind_ip_u, GTP1U_PORT, {udp:={}});
}
/* generalized GTP-C receive template */
@@ -287,7 +289,7 @@ module GGSN_Tests {
var default d;
log("sending CreatePDP");
- GTPC.send(ts_GTPC_CreatePDP(g_peer, imsi, g_restart_ctr, teid, teid, nsapi, eua, apn, g_sgsn_ip, g_sgsn_ip, msisdn));
+ GTPC.send(ts_GTPC_CreatePDP(g_peer, imsi, g_restart_ctr, teid, teid, nsapi, eua, apn, g_sgsn_ip_c, g_sgsn_ip_u, msisdn));
T_default.start;
d := activate(pingpong());