/src/open5gs/lib/asn1c/s1ap/S1AP_UEAppLayerMeasConfig.c
Line | Count | Source |
1 | | /* |
2 | | * Generated by asn1c-v1.4-43-gb7926896-2026-05-03 (https://github.com/mouse07410/asn1c) |
3 | | * From ASN.1 module "S1AP-IEs" |
4 | | * found in "../support/s1ap-r19.1.0/36413-j10.asn" |
5 | | * `asn1c -pdu=all -fprefix=S1AP_ -fcompound-names -findirect-choice -fno-include-deps -no-gen-BER -no-gen-XER -no-gen-JER -no-gen-CBOR -no-gen-OER -no-gen-UPER` |
6 | | */ |
7 | | |
8 | | #include "S1AP_UEAppLayerMeasConfig.h" |
9 | | |
10 | | #include "S1AP_AreaScopeOfQMC.h" |
11 | | #include "S1AP_ProtocolExtensionContainer.h" |
12 | | static int |
13 | | memb_S1AP_containerForAppLayerMeasConfig_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, |
14 | 0 | asn_app_constraint_failed_f *ctfailcb, void *app_key) { |
15 | 0 | const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; |
16 | 0 | size_t size; |
17 | | |
18 | 0 | if(!sptr) { |
19 | 0 | ASN__CTFAIL(app_key, td, sptr, |
20 | 0 | "%s: value not given (%s:%d)", |
21 | 0 | td->name, __FILE__, __LINE__); |
22 | 0 | return -1; |
23 | 0 | } |
24 | | |
25 | 0 | size = st->size; |
26 | | |
27 | 0 | if((size >= 1UL && size <= 1000UL)) { |
28 | | /* Constraint check succeeded */ |
29 | 0 | return 0; |
30 | 0 | } else { |
31 | 0 | ASN__CTFAIL(app_key, td, sptr, |
32 | 0 | "%s: constraint failed (%s:%d)", |
33 | 0 | td->name, __FILE__, __LINE__); |
34 | 0 | return -1; |
35 | 0 | } |
36 | 0 | } |
37 | | |
38 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
39 | | static asn_per_constraints_t asn_PER_memb_S1AP_containerForAppLayerMeasConfig_constr_2 CC_NOTUSED = { |
40 | | { APC_UNCONSTRAINED, -1, -1, 0, 0 }, |
41 | | { APC_CONSTRAINED, 10, 10, 1, 1000 } /* (SIZE(1..1000)) */, |
42 | | 0, 0 /* No PER value map */ |
43 | | }; |
44 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
45 | | asn_TYPE_member_t asn_MBR_S1AP_UEAppLayerMeasConfig_1[] = { |
46 | | { ATF_NOFLAGS, 0, offsetof(struct S1AP_UEAppLayerMeasConfig, containerForAppLayerMeasConfig), |
47 | | (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
48 | | -1, /* IMPLICIT tag at current level */ |
49 | | &asn_DEF_OCTET_STRING, |
50 | | 0, |
51 | | { |
52 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
53 | | 0, |
54 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
55 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
56 | | &asn_PER_memb_S1AP_containerForAppLayerMeasConfig_constr_2, |
57 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
58 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
59 | | 0, |
60 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
61 | | memb_S1AP_containerForAppLayerMeasConfig_constraint_1 |
62 | | }, |
63 | | 0, 0, /* No default value */ |
64 | | "containerForAppLayerMeasConfig" |
65 | | }, |
66 | | { ATF_POINTER, 0, offsetof(struct S1AP_UEAppLayerMeasConfig, areaScopeOfQMC), |
67 | | (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
68 | | +1, /* EXPLICIT tag at current level */ |
69 | | &asn_DEF_S1AP_AreaScopeOfQMC, |
70 | | 0, |
71 | | { |
72 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
73 | | 0, |
74 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
75 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
76 | | 0, |
77 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
78 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
79 | | 0, |
80 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
81 | | 0 |
82 | | }, |
83 | | 0, 0, /* No default value */ |
84 | | "areaScopeOfQMC" |
85 | | }, |
86 | | { ATF_POINTER, 1, offsetof(struct S1AP_UEAppLayerMeasConfig, iE_Extensions), |
87 | | (ASN_TAG_CLASS_CONTEXT | (2 << 2)), |
88 | | -1, /* IMPLICIT tag at current level */ |
89 | | &asn_DEF_S1AP_ProtocolExtensionContainer_8386P163, |
90 | | 0, |
91 | | { |
92 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
93 | | 0, |
94 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
95 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
96 | | 0, |
97 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
98 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
99 | | 0, |
100 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
101 | | 0 |
102 | | }, |
103 | | 0, 0, /* No default value */ |
104 | | "iE-Extensions" |
105 | | }, |
106 | | }; |
107 | | static const int asn_MAP_S1AP_UEAppLayerMeasConfig_oms_1[] = { 2 }; |
108 | | static const ber_tlv_tag_t asn_DEF_S1AP_UEAppLayerMeasConfig_tags_1[] = { |
109 | | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
110 | | }; |
111 | | static const asn_TYPE_tag2member_t asn_MAP_S1AP_UEAppLayerMeasConfig_tag2el_1[] = { |
112 | | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* containerForAppLayerMeasConfig */ |
113 | | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* areaScopeOfQMC */ |
114 | | { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */ |
115 | | }; |
116 | | asn_SEQUENCE_specifics_t asn_SPC_S1AP_UEAppLayerMeasConfig_specs_1 = { |
117 | | sizeof(struct S1AP_UEAppLayerMeasConfig), |
118 | | offsetof(struct S1AP_UEAppLayerMeasConfig, _asn_ctx), |
119 | | asn_MAP_S1AP_UEAppLayerMeasConfig_tag2el_1, |
120 | | 3, /* Count of tags in the map */ |
121 | | asn_MAP_S1AP_UEAppLayerMeasConfig_oms_1, /* Optional members */ |
122 | | 1, 0, /* Root/Additions */ |
123 | | 3, /* First extension addition */ |
124 | | }; |
125 | | asn_TYPE_descriptor_t asn_DEF_S1AP_UEAppLayerMeasConfig = { |
126 | | "UEAppLayerMeasConfig", |
127 | | "UEAppLayerMeasConfig", |
128 | | &asn_OP_SEQUENCE, |
129 | | asn_DEF_S1AP_UEAppLayerMeasConfig_tags_1, |
130 | | sizeof(asn_DEF_S1AP_UEAppLayerMeasConfig_tags_1) |
131 | | /sizeof(asn_DEF_S1AP_UEAppLayerMeasConfig_tags_1[0]), /* 1 */ |
132 | | asn_DEF_S1AP_UEAppLayerMeasConfig_tags_1, /* Same as above */ |
133 | | sizeof(asn_DEF_S1AP_UEAppLayerMeasConfig_tags_1) |
134 | | /sizeof(asn_DEF_S1AP_UEAppLayerMeasConfig_tags_1[0]), /* 1 */ |
135 | | { |
136 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
137 | | 0, |
138 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
139 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
140 | | 0, |
141 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
142 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
143 | | 0, |
144 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
145 | | SEQUENCE_constraint |
146 | | }, |
147 | | asn_MBR_S1AP_UEAppLayerMeasConfig_1, |
148 | | 3, /* Elements count */ |
149 | | &asn_SPC_S1AP_UEAppLayerMeasConfig_specs_1 /* Additional specs */ |
150 | | }; |
151 | | |