X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=e2sim%2Fsrc%2Fbase%2Fe2sim.cpp;h=5591e2a2740849307c0f7f1fbdac421af91f71ef;hb=refs%2Fchanges%2F31%2F7131%2F3;hp=485d33883f0aafd9d818e7e692f73bdcbc85182e;hpb=d5c4439d0f5e2d06f0316f24fee331760c865df1;p=sim%2Fe2-interface.git diff --git a/e2sim/src/base/e2sim.cpp b/e2sim/src/base/e2sim.cpp index 485d338..5591e2a 100755 --- a/e2sim/src/base/e2sim.cpp +++ b/e2sim/src/base/e2sim.cpp @@ -29,6 +29,7 @@ #include "e2sim_sctp.hpp" #include "e2ap_message_handler.hpp" #include "encode_e2apv1.hpp" +#include "RANfunctionOID.h" using namespace std; @@ -138,6 +139,11 @@ int E2Sim::run_loop(int argc, char* argv[]){ printf("client_fd value is %d\n", client_fd); std::vector all_funcs; + RANfunctionOID_t *ranFunctionOIDe = (RANfunctionOID_t*)calloc(1,sizeof(RANfunctionOID_t)); + uint8_t *buf = (uint8_t*)"OID123"; + ranFunctionOIDe->buf = (uint8_t*)calloc(1,strlen((char*)buf)+1); + memcpy(ranFunctionOIDe->buf, buf, strlen((char*)buf)+1); + ranFunctionOIDe->size = strlen((char*)buf); //Loop through RAN function definitions that are registered @@ -148,6 +154,8 @@ int E2Sim::run_loop(int argc, char* argv[]){ next_func.ranFunctionId = elem.first; next_func.ranFunctionDesc = elem.second; next_func.ranFunctionRev = (long)2; + next_func.ranFunctionOId = ranFunctionOIDe; + all_funcs.push_back(next_func); }