summaryrefslogtreecommitdiffstats
path: root/ggsn_tests/GTP_CodecPort_CtrlFunctDef.cc
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-08-04 00:34:42 +0200
committerHarald Welte <laforge@gnumonks.org>2017-08-04 00:35:45 +0200
commitd418fc6bb53fdda43310abc03f090ecf9bf38b1e (patch)
treeb595c3e2f53d6804aab777d24bf6f7c76db6db91 /ggsn_tests/GTP_CodecPort_CtrlFunctDef.cc
parent627c7c7dfa9f0cdc3cb48989f1588adbcaa139f5 (diff)
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
Diffstat (limited to 'ggsn_tests/GTP_CodecPort_CtrlFunctDef.cc')
-rw-r--r--ggsn_tests/GTP_CodecPort_CtrlFunctDef.cc16
1 files changed, 12 insertions, 4 deletions
diff --git a/ggsn_tests/GTP_CodecPort_CtrlFunctDef.cc b/ggsn_tests/GTP_CodecPort_CtrlFunctDef.cc
index a8a014b..c0b9391 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);
+ }
+
}