-/*
- *
- * 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"
}
value = *(const long *)sptr;
- printf("memory loc %d\n", &value);
- printf("value is %d", value);
if((value >= 0 && value <= 65535)) {
/* Constraint check succeeded */
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];
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;
}
}