X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=e2sim%2Fsrc%2Fbase%2Fe2sim.cpp;h=852cbdd701762bf4e36ae9e7b27e1981ddc10739;hb=3dacb077c9e7d0c998bb9a76804c95aced032b80;hp=fa62bede560f06ba884bc919aa1eac46efd79041;hpb=50c32c08fb607bb7b1ac098f90c4b3a21eac169c;p=sim%2Fe2-interface.git diff --git a/e2sim/src/base/e2sim.cpp b/e2sim/src/base/e2sim.cpp old mode 100644 new mode 100755 index fa62bed..852cbdd --- a/e2sim/src/base/e2sim.cpp +++ b/e2sim/src/base/e2sim.cpp @@ -1,6 +1,7 @@ /***************************************************************************** # * # Copyright 2020 AT&T Intellectual Property * +# Copyright (c) 2020 Samsung Electronics Co., Ltd. All Rights Reserved. * # * # Licensed under the Apache License, Version 2.0 (the "License"); * # you may not use this file except in compliance with the License. * @@ -33,6 +34,10 @@ using namespace std; int client_fd = 0; +std::unordered_map E2Sim::getRegistered_ran_functions() { + return ran_functions_registered; +} + void E2Sim::register_subscription_callback(long func_id, SubscriptionCallback cb) { fprintf(stderr,"%%%%about to register callback for subscription for func_id %d\n", func_id); subscription_callbacks[func_id] = cb; @@ -160,7 +165,7 @@ int E2Sim::run_loop(int argc, char* argv[]){ sctp_buffer_t data; - char *error_buf = (char*)calloc(300, sizeof(char)); + char error_buf[300] = {0, }; size_t errlen; asn_check_constraints(&asn_DEF_E2AP_PDU, pdu_setup, error_buf, &errlen);