X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?p=sim%2Fe2-interface.git;a=blobdiff_plain;f=e2sim%2Fe2apv1sim%2FASN1c%2FProtocolIE-Field.c;fp=e2sim%2Fe2apv1sim%2FASN1c%2FProtocolIE-Field.c;h=af5597c5bb38b418fadff56c4724bee01f697bb7;hp=c6d64bcb874a5e3b26656bc673e8de1a5633c8d8;hb=5c3fd8f88224475176792cfeb82d533cc81c2586;hpb=0eba05c4ff0c99974d3f3a63b65cbe2adb209e51 diff --git a/e2sim/e2apv1sim/ASN1c/ProtocolIE-Field.c b/e2sim/e2apv1sim/ASN1c/ProtocolIE-Field.c index c6d64bc..af5597c 100644 --- a/e2sim/e2apv1sim/ASN1c/ProtocolIE-Field.c +++ b/e2sim/e2apv1sim/ASN1c/ProtocolIE-Field.c @@ -1,26 +1,8 @@ -/* - * - * Copyright 2020 AT&T Intellectual Property - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "E2AP-Containers" - * found in "../asnTextFiles/e2ap-v01.00.00.asn" - * `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.` + * found in "/home/rshacham/e2ap-v01.00.00.asn" + * `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D .` */ #include "ProtocolIE-Field.h" @@ -2076,8 +2058,6 @@ memb_id_constraint_49(const asn_TYPE_descriptor_t *td, const void *sptr, } value = *(const long *)sptr; - printf("memory loc %d\n", &value); - printf("value is %d", value); if((value >= 0 && value <= 65535)) { /* Constraint check succeeded */ @@ -3314,14 +3294,8 @@ select_RICserviceUpdate_IEs_value_type(const asn_TYPE_descriptor_t *parent_type, size_t for_column = 2; /* &Value */ size_t row, presence_index = 0; const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct RICserviceUpdate_IEs, id)); - - static const int indexToPresent[] = { RICserviceUpdate_IEs__value_PR_NOTHING, - RICserviceUpdate_IEs__value_PR_RANfunctions_List, - RICserviceUpdate_IEs__value_PR_RANfunctions_List, - RICserviceUpdate_IEs__value_PR_RANfunctionsID_List - }; - - for(row=0; row < itable->rows_count; row++) { + + for(row=0; row < itable->rows_count; row++) { const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column]; const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column]; @@ -3330,9 +3304,9 @@ select_RICserviceUpdate_IEs_value_type(const asn_TYPE_descriptor_t *parent_type, presence_index++; if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) { - result.type_descriptor = type_cell->type_descriptor; - result.presence_index = indexToPresent[presence_index]; - break; + result.type_descriptor = type_cell->type_descriptor; + result.presence_index = presence_index; + break; } }