GTPv2_Emulation: Add support to handle GTPv1-U
Change-Id: I34c744015c09a387cbf736063303bdb61ca4744e
diff --git a/epdg/EPDG_Tests.ttcn b/epdg/EPDG_Tests.ttcn
index 6263828..92f49ff 100644
--- a/epdg/EPDG_Tests.ttcn
+++ b/epdg/EPDG_Tests.ttcn
@@ -18,6 +18,10 @@
import from DIAMETER_ts29_273_Templates all;
import from DIAMETER_Emulation all;
+import from GTPv1U_CodecPort all;
+import from GTPU_Types all;
+import from GTPv1U_Templates all;
+
import from GTPv2_Types all;
import from GTPv2_Templates all;
import from GTPv2_Emulation all;
@@ -50,6 +54,8 @@
charstring mp_s2b_dns_ipv6 := "::1";
charstring mp_s2b_pcscf_ipv4 := "5.6.7.8";
charstring mp_s2b_pcscf_ipv6 := "::2";
+ /* our emulated PGW /* GTP1U */
+ charstring mp_upf_gtpu_local_ip := "127.0.0.100";
charstring mp_diam_realm := "localdomain";
integer mp_diam_watchdog_initial_wait_sec := 6*3;
@@ -289,6 +295,8 @@
gtpc_bind_port := mp_s2b_local_port,
gtpc_remote_ip := mp_s2b_remote_ip,
gtpc_remote_port := mp_s2b_remote_port,
+ gtpu_bind_ip := mp_upf_gtpu_local_ip,
+ gtpu_bind_port := GTP1U_PORT,
sgw_role := false,
use_gtpu_daemon := false /* TODO: maybe use, set to true */
};
diff --git a/epdg/gen_links.sh b/epdg/gen_links.sh
index f981586..ed4209c 100755
--- a/epdg/gen_links.sh
+++ b/epdg/gen_links.sh
@@ -33,6 +33,10 @@
FILES="UECUPS_CodecPort.ttcn UECUPS_CodecPort_CtrlFunct.ttcn UECUPS_CodecPort_CtrlFunctDef.cc UECUPS_Types.ttcn "
gen_links $DIR $FILES
+DIR=$BASEDIR/titan.ProtocolModules.GTP_v13.5.0/src
+FILES="GTPU_EncDec.cc GTPU_Types.ttcn "
+gen_links $DIR $FILES
+
DIR=$BASEDIR/titan.ProtocolModules.GTPv2_v13.7.0/src
FILES="GTPv2_Types.ttcn"
gen_links $DIR $FILES
@@ -47,6 +51,7 @@
FILES+="IPA_Types.ttcn IPA_CodecPort.ttcn IPA_CodecPort_CtrlFunct.ttcn IPA_CodecPort_CtrlFunctDef.cc
IPA_Emulation.ttcnpp "
FILES+="PCO_Types.ttcn GSUP_Types.ttcn GSUP_Templates.ttcn GSUP_Emulation.ttcn "
+FILES+="GTPv1U_CodecPort.ttcn GTPv1U_CodecPort_CtrlFunct.ttcn GTPv1U_CodecPort_CtrlFunctDef.cc GTPv1U_Templates.ttcn "
FILES+="GTPv2_PrivateExtensions.ttcn GTPv2_Templates.ttcn "
FILES+="GTPv2_CodecPort.ttcn GTPv2_CodecPort_CtrlFunctDef.cc GTPv2_CodecPort_CtrlFunct.ttcn GTPv2_Emulation.ttcn "
gen_links $DIR $FILES
diff --git a/epdg/regen_makefile.sh b/epdg/regen_makefile.sh
index 8be3bde..eb5935e 100755
--- a/epdg/regen_makefile.sh
+++ b/epdg/regen_makefile.sh
@@ -16,6 +16,8 @@
DIAMETER_EncDec.cc
DIAMETER_CodecPort_CtrlFunctDef.cc
UECUPS_CodecPort_CtrlFunctDef.cc
+ GTPU_EncDec.cc
+ GTPv1U_CodecPort_CtrlFunctDef.cc
GTPv2_CodecPort_CtrlFunctDef.cc
"