--- /dev/null
+/*\r
+ * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)\r
+ * From ASN.1 module "X2AP-PDU-Contents"\r
+ * found in "../../asn_defs/asn1/x2ap-modified-15-05.asn"\r
+ * `asn1c -fcompound-names -fno-include-deps -findirect-choice -gen-PER -no-gen-OER`\r
+ */\r
+\r
+#include "E-RABs-SubjectToCounterCheckItem.h"\r
+\r
+#include "ProtocolExtensionContainer.h"\r
+static int\r
+uL_Count_3_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,\r
+ asn_app_constraint_failed_f *ctfailcb, void *app_key) {\r
+ \r
+ if(!sptr) {\r
+ ASN__CTFAIL(app_key, td, sptr,\r
+ "%s: value not given (%s:%d)",\r
+ td->name, __FILE__, __LINE__);\r
+ return -1;\r
+ }\r
+ \r
+ \r
+ /* Constraint check succeeded */\r
+ return 0;\r
+}\r
+\r
+/*\r
+ * This type is implemented using NativeInteger,\r
+ * so here we adjust the DEF accordingly.\r
+ */\r
+static int\r
+dL_Count_4_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,\r
+ asn_app_constraint_failed_f *ctfailcb, void *app_key) {\r
+ \r
+ if(!sptr) {\r
+ ASN__CTFAIL(app_key, td, sptr,\r
+ "%s: value not given (%s:%d)",\r
+ td->name, __FILE__, __LINE__);\r
+ return -1;\r
+ }\r
+ \r
+ \r
+ /* Constraint check succeeded */\r
+ return 0;\r
+}\r
+\r
+/*\r
+ * This type is implemented using NativeInteger,\r
+ * so here we adjust the DEF accordingly.\r
+ */\r
+static int\r
+memb_uL_Count_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,\r
+ asn_app_constraint_failed_f *ctfailcb, void *app_key) {\r
+ \r
+ if(!sptr) {\r
+ ASN__CTFAIL(app_key, td, sptr,\r
+ "%s: value not given (%s:%d)",\r
+ td->name, __FILE__, __LINE__);\r
+ return -1;\r
+ }\r
+ \r
+ \r
+ /* Constraint check succeeded */\r
+ return 0;\r
+}\r
+\r
+static int\r
+memb_dL_Count_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,\r
+ asn_app_constraint_failed_f *ctfailcb, void *app_key) {\r
+ \r
+ if(!sptr) {\r
+ ASN__CTFAIL(app_key, td, sptr,\r
+ "%s: value not given (%s:%d)",\r
+ td->name, __FILE__, __LINE__);\r
+ return -1;\r
+ }\r
+ \r
+ \r
+ /* Constraint check succeeded */\r
+ return 0;\r
+}\r
+\r
+static asn_per_constraints_t asn_PER_type_uL_Count_constr_3 CC_NOTUSED = {\r
+ { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */,\r
+ { APC_UNCONSTRAINED, -1, -1, 0, 0 },\r
+ 0, 0 /* No PER value map */\r
+};\r
+static asn_per_constraints_t asn_PER_type_dL_Count_constr_4 CC_NOTUSED = {\r
+ { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */,\r
+ { APC_UNCONSTRAINED, -1, -1, 0, 0 },\r
+ 0, 0 /* No PER value map */\r
+};\r
+static asn_per_constraints_t asn_PER_memb_uL_Count_constr_3 CC_NOTUSED = {\r
+ { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */,\r
+ { APC_UNCONSTRAINED, -1, -1, 0, 0 },\r
+ 0, 0 /* No PER value map */\r
+};\r
+static asn_per_constraints_t asn_PER_memb_dL_Count_constr_4 CC_NOTUSED = {\r
+ { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */,\r
+ { APC_UNCONSTRAINED, -1, -1, 0, 0 },\r
+ 0, 0 /* No PER value map */\r
+};\r
+static const asn_INTEGER_specifics_t asn_SPC_uL_Count_specs_3 = {\r
+ 0, 0, 0, 0, 0,\r
+ 0, /* Native long size */\r
+ 1 /* Unsigned representation */\r
+};\r
+static const ber_tlv_tag_t asn_DEF_uL_Count_tags_3[] = {\r
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)),\r
+ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))\r
+};\r
+static /* Use -fall-defs-global to expose */\r
+asn_TYPE_descriptor_t asn_DEF_uL_Count_3 = {\r
+ "uL-Count",\r
+ "uL-Count",\r
+ &asn_OP_NativeInteger,\r
+ asn_DEF_uL_Count_tags_3,\r
+ sizeof(asn_DEF_uL_Count_tags_3)\r
+ /sizeof(asn_DEF_uL_Count_tags_3[0]) - 1, /* 1 */\r
+ asn_DEF_uL_Count_tags_3, /* Same as above */\r
+ sizeof(asn_DEF_uL_Count_tags_3)\r
+ /sizeof(asn_DEF_uL_Count_tags_3[0]), /* 2 */\r
+ { 0, &asn_PER_type_uL_Count_constr_3, uL_Count_3_constraint },\r
+ 0, 0, /* No members */\r
+ &asn_SPC_uL_Count_specs_3 /* Additional specs */\r
+};\r
+\r
+static const asn_INTEGER_specifics_t asn_SPC_dL_Count_specs_4 = {\r
+ 0, 0, 0, 0, 0,\r
+ 0, /* Native long size */\r
+ 1 /* Unsigned representation */\r
+};\r
+static const ber_tlv_tag_t asn_DEF_dL_Count_tags_4[] = {\r
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)),\r
+ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))\r
+};\r
+static /* Use -fall-defs-global to expose */\r
+asn_TYPE_descriptor_t asn_DEF_dL_Count_4 = {\r
+ "dL-Count",\r
+ "dL-Count",\r
+ &asn_OP_NativeInteger,\r
+ asn_DEF_dL_Count_tags_4,\r
+ sizeof(asn_DEF_dL_Count_tags_4)\r
+ /sizeof(asn_DEF_dL_Count_tags_4[0]) - 1, /* 1 */\r
+ asn_DEF_dL_Count_tags_4, /* Same as above */\r
+ sizeof(asn_DEF_dL_Count_tags_4)\r
+ /sizeof(asn_DEF_dL_Count_tags_4[0]), /* 2 */\r
+ { 0, &asn_PER_type_dL_Count_constr_4, dL_Count_4_constraint },\r
+ 0, 0, /* No members */\r
+ &asn_SPC_dL_Count_specs_4 /* Additional specs */\r
+};\r
+\r
+static asn_TYPE_member_t asn_MBR_E_RABs_SubjectToCounterCheckItem_1[] = {\r
+ { ATF_NOFLAGS, 0, offsetof(struct E_RABs_SubjectToCounterCheckItem, e_RAB_ID),\r
+ (ASN_TAG_CLASS_CONTEXT | (0 << 2)),\r
+ -1, /* IMPLICIT tag at current level */\r
+ &asn_DEF_E_RAB_ID,\r
+ 0,\r
+ { 0, 0, 0 },\r
+ 0, 0, /* No default value */\r
+ "e-RAB-ID"\r
+ },\r
+ { ATF_NOFLAGS, 0, offsetof(struct E_RABs_SubjectToCounterCheckItem, uL_Count),\r
+ (ASN_TAG_CLASS_CONTEXT | (1 << 2)),\r
+ -1, /* IMPLICIT tag at current level */\r
+ &asn_DEF_uL_Count_3,\r
+ 0,\r
+ { 0, &asn_PER_memb_uL_Count_constr_3, memb_uL_Count_constraint_1 },\r
+ 0, 0, /* No default value */\r
+ "uL-Count"\r
+ },\r
+ { ATF_NOFLAGS, 0, offsetof(struct E_RABs_SubjectToCounterCheckItem, dL_Count),\r
+ (ASN_TAG_CLASS_CONTEXT | (2 << 2)),\r
+ -1, /* IMPLICIT tag at current level */\r
+ &asn_DEF_dL_Count_4,\r
+ 0,\r
+ { 0, &asn_PER_memb_dL_Count_constr_4, memb_dL_Count_constraint_1 },\r
+ 0, 0, /* No default value */\r
+ "dL-Count"\r
+ },\r
+ { ATF_POINTER, 1, offsetof(struct E_RABs_SubjectToCounterCheckItem, iE_Extensions),\r
+ (ASN_TAG_CLASS_CONTEXT | (3 << 2)),\r
+ -1, /* IMPLICIT tag at current level */\r
+ &asn_DEF_ProtocolExtensionContainer_8231P41,\r
+ 0,\r
+ { 0, 0, 0 },\r
+ 0, 0, /* No default value */\r
+ "iE-Extensions"\r
+ },\r
+};\r
+static const int asn_MAP_E_RABs_SubjectToCounterCheckItem_oms_1[] = { 3 };\r
+static const ber_tlv_tag_t asn_DEF_E_RABs_SubjectToCounterCheckItem_tags_1[] = {\r
+ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))\r
+};\r
+static const asn_TYPE_tag2member_t asn_MAP_E_RABs_SubjectToCounterCheckItem_tag2el_1[] = {\r
+ { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* e-RAB-ID */\r
+ { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* uL-Count */\r
+ { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* dL-Count */\r
+ { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* iE-Extensions */\r
+};\r
+static asn_SEQUENCE_specifics_t asn_SPC_E_RABs_SubjectToCounterCheckItem_specs_1 = {\r
+ sizeof(struct E_RABs_SubjectToCounterCheckItem),\r
+ offsetof(struct E_RABs_SubjectToCounterCheckItem, _asn_ctx),\r
+ asn_MAP_E_RABs_SubjectToCounterCheckItem_tag2el_1,\r
+ 4, /* Count of tags in the map */\r
+ asn_MAP_E_RABs_SubjectToCounterCheckItem_oms_1, /* Optional members */\r
+ 1, 0, /* Root/Additions */\r
+ 4, /* First extension addition */\r
+};\r
+asn_TYPE_descriptor_t asn_DEF_E_RABs_SubjectToCounterCheckItem = {\r
+ "E-RABs-SubjectToCounterCheckItem",\r
+ "E-RABs-SubjectToCounterCheckItem",\r
+ &asn_OP_SEQUENCE,\r
+ asn_DEF_E_RABs_SubjectToCounterCheckItem_tags_1,\r
+ sizeof(asn_DEF_E_RABs_SubjectToCounterCheckItem_tags_1)\r
+ /sizeof(asn_DEF_E_RABs_SubjectToCounterCheckItem_tags_1[0]), /* 1 */\r
+ asn_DEF_E_RABs_SubjectToCounterCheckItem_tags_1, /* Same as above */\r
+ sizeof(asn_DEF_E_RABs_SubjectToCounterCheckItem_tags_1)\r
+ /sizeof(asn_DEF_E_RABs_SubjectToCounterCheckItem_tags_1[0]), /* 1 */\r
+ { 0, 0, SEQUENCE_constraint },\r
+ asn_MBR_E_RABs_SubjectToCounterCheckItem_1,\r
+ 4, /* Elements count */\r
+ &asn_SPC_E_RABs_SubjectToCounterCheckItem_specs_1 /* Additional specs */\r
+};\r
+\r