From d418fc6bb53fdda43310abc03f090ecf9bf38b1e Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Fri, 4 Aug 2017 00:34:42 +0200 Subject: GTP: convert from translation port to dual faced port I spent numerous hours in trying to avoid the dual faced port from segfaulting, but in the end didn't succeed :( The easy way was then simply to fall back to the known-working pattern of the dual-faced port, which I already successfully used also on the NS module for the Gb Inteface --- ggsn_tests/GTP_CodecPort_CtrlFunctDef.cc | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'ggsn_tests/GTP_CodecPort_CtrlFunctDef.cc') diff --git a/ggsn_tests/GTP_CodecPort_CtrlFunctDef.cc b/ggsn_tests/GTP_CodecPort_CtrlFunctDef.cc index a8a014b6..c0b9391f 100644 --- a/ggsn_tests/GTP_CodecPort_CtrlFunctDef.cc +++ b/ggsn_tests/GTP_CodecPort_CtrlFunctDef.cc @@ -2,9 +2,6 @@ #include "IPL4asp_PT.hh" #include "GTP_CodecPort.hh" -using namespace IPL4asp__PortType; -using namespace IPL4asp__Types; - namespace GTP__CodecPort__CtrlFunct { IPL4asp__Types::Result f__IPL4__listen( @@ -54,5 +51,16 @@ namespace GTP__CodecPort__CtrlFunct { { return f__IPL4__PROVIDER__getUserData(portRef, connId, userData); } - + + + IPL4asp__Types::Result f__GTPU__listen( + GTP__CodecPort::GTPU__PT& portRef, + const IPL4asp__Types::HostName& locName, + const IPL4asp__Types::PortNumber& locPort, + const IPL4asp__Types::ProtoTuple& proto, + const IPL4asp__Types::OptionList& options) + { + return f__IPL4__PROVIDER__listen(portRef, locName, locPort, proto, options); + } + } -- cgit v1.2.3