From: czichy Date: Fri, 3 Mar 2023 13:43:29 +0000 (+0200) Subject: Adding correct payload protocol ID (70) X-Git-Tag: 6.0.2~2 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=6dd00bc3d7bbe4f6e7d2bd2be6d70ca8160d1797;p=ric-plt%2Fe2.git Adding correct payload protocol ID (70) Signed-off-by: czichy Change-Id: I9277bb94647f9e9c23d16be7d43ba9ae1b593fb1 --- diff --git a/RIC-E2-TERMINATION/sctpThread.cpp b/RIC-E2-TERMINATION/sctpThread.cpp index 423d51e..13d99e7 100644 --- a/RIC-E2-TERMINATION/sctpThread.cpp +++ b/RIC-E2-TERMINATION/sctpThread.cpp @@ -32,6 +32,7 @@ #include #include #include +#include using namespace std; //using namespace std::placeholders; @@ -47,6 +48,7 @@ using namespace prometheus; // need to expose without the include of gcov extern "C" void __gcov_flush(void); #define LOG_FILE_CONFIG_MAP "CONFIG_MAP_NAME" +#define E2AP_PPID 70 // as per E2GAP chapter 6.1 static void catch_function(int signal) { __gcov_flush(); @@ -1309,7 +1311,7 @@ int sendSctpMsg(ConnectedCU_t *peerInfo, ReportingMessages_t &message, Sctp_Map_ } while (true) { - if (sctp_sendmsg(fd,message.message.asndata, message.message.asnLength,(struct sockaddr *) NULL, 0, 0, 0,streamId,0,0) < 0) { + if (sctp_sendmsg(fd,message.message.asndata, message.message.asnLength,(struct sockaddr *) NULL, 0, htonl(E2AP_PPID), 0,streamId,0,0) < 0) { if (errno == EINTR) { continue; }