X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=ric_benchmarking%2Fe2-interface%2Fe2sim%2Fsrc%2Fencoding%2Fencode_e2apv1.cpp;fp=ric_benchmarking%2Fe2-interface%2Fe2sim%2Fsrc%2Fencoding%2Fencode_e2apv1.cpp;h=a2e3cc36fc5fce4cf6903fb157367ac9a75cc36e;hb=2bd65e5d8a06d44d9a387d0c70f463fdc5b3d377;hp=5529e720495a04987a41d50765a9d7ebd8887af1;hpb=91e44bfa2b77764a828221e1914fd67b815a569a;p=it%2Ftest.git diff --git a/ric_benchmarking/e2-interface/e2sim/src/encoding/encode_e2apv1.cpp b/ric_benchmarking/e2-interface/e2sim/src/encoding/encode_e2apv1.cpp index 5529e72..a2e3cc3 100644 --- a/ric_benchmarking/e2-interface/e2sim/src/encoding/encode_e2apv1.cpp +++ b/ric_benchmarking/e2-interface/e2sim/src/encoding/encode_e2apv1.cpp @@ -156,7 +156,7 @@ void encoding::generate_e2apv1_service_update(E2AP_PDU_t *e2ap_pdu, std::vector< e2ap_pdu->choice.initiatingMessage = initiatingMessage; } -void encoding::generate_e2apv1_setup_request_parameterized(E2AP_PDU_t *e2ap_pdu, std::vector all_funcs) { +void encoding::generate_e2apv1_setup_request_parameterized(E2AP_PDU_t *e2ap_pdu, std::vector all_funcs, int plmnId) { // long ranFunctionId, uint8_t *ranFuncDescEncoded, int ranFuncLength) { // uint8_t *buf = (uint8_t *)"gnb1" @@ -171,7 +171,15 @@ void encoding::generate_e2apv1_setup_request_parameterized(E2AP_PDU_t *e2ap_pdu, gnb_bstring->bits_unused = 3; - uint8_t *buf2 = (uint8_t *)"747"; + //uint8_t *buf2 = (uint8_t *)"747"; + + char buff[16]; + sprintf(buff,"%d",plmnId); + const char* plmnvalue=buff; + + uint8_t *buf2 = (uint8_t *)plmnvalue;//"747"; + + OCTET_STRING_t *plmn = (OCTET_STRING_t*)calloc(1, sizeof(OCTET_STRING_t)); plmn->buf = (uint8_t*)calloc(1,3); memcpy(plmn->buf, buf2, 3);