Coverage Report

Created: 2026-08-17 06:12

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/open5gs/lib/asn1c/s1ap/S1AP_WLANMeasurementConfiguration.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_WLANMeasurementConfiguration.h"
9
10
#include "S1AP_WLANMeasConfigNameList.h"
11
#include "S1AP_ProtocolExtensionContainer.h"
12
#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS
13
#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__))
14
extern asn_TYPE_descriptor_t asn_DEF_S1AP_wlan_rssi __attribute__((weak, alias("asn_DEF_S1AP_wlan_rssi_4")));
15
#else
16
static asn_TYPE_descriptor_t asn_DEF_S1AP_wlan_rssi_4;
17
static asn_TYPE_descriptor_t asn_DEF_S1AP_wlan_rssi;
18
__attribute__((constructor)) static void asn_DEF_S1AP_wlan_rssi_4_alias_init(void) {
19
  asn_DEF_S1AP_wlan_rssi = asn_DEF_S1AP_wlan_rssi_4;
20
}
21
#endif
22
#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */
23
/*
24
 * This type is implemented using NativeEnumerated,
25
 * so here we adjust the DEF accordingly.
26
 */
27
#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS
28
#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__))
29
extern asn_TYPE_descriptor_t asn_DEF_S1AP_wlan_rtt __attribute__((weak, alias("asn_DEF_S1AP_wlan_rtt_7")));
30
#else
31
static asn_TYPE_descriptor_t asn_DEF_S1AP_wlan_rtt_7;
32
static asn_TYPE_descriptor_t asn_DEF_S1AP_wlan_rtt;
33
__attribute__((constructor)) static void asn_DEF_S1AP_wlan_rtt_7_alias_init(void) {
34
  asn_DEF_S1AP_wlan_rtt = asn_DEF_S1AP_wlan_rtt_7;
35
}
36
#endif
37
#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */
38
/*
39
 * This type is implemented using NativeEnumerated,
40
 * so here we adjust the DEF accordingly.
41
 */
42
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
43
static asn_per_constraints_t asn_PER_type_S1AP_wlan_rssi_constr_4 CC_NOTUSED = {
44
  { APC_CONSTRAINED | APC_EXTENSIBLE,  0,  0,  0,  0 }  /* (0..0,...) */,
45
  { APC_UNCONSTRAINED,  -1, -1,  0,  0 },
46
  0, 0  /* No PER value map */
47
};
48
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
49
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
50
static asn_per_constraints_t asn_PER_type_S1AP_wlan_rtt_constr_7 CC_NOTUSED = {
51
  { APC_CONSTRAINED | APC_EXTENSIBLE,  0,  0,  0,  0 }  /* (0..0,...) */,
52
  { APC_UNCONSTRAINED,  -1, -1,  0,  0 },
53
  0, 0  /* No PER value map */
54
};
55
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
56
static const asn_INTEGER_enum_map_t asn_MAP_S1AP_wlan_rssi_value2enum_4[] = {
57
  { 0,  4,  "true" }
58
  /* This list is extensible */
59
};
60
static int asn_validate_S1AP_wlan_rssi_4(const asn_TYPE_descriptor_t *td,
61
                       const void *sptr,
62
                       asn_app_constraint_failed_f *ctfailcb,
63
0
                       void* app_key) {
64
0
    if(! sptr) { return -1; }
65
0
    e_S1AP_WLANMeasurementConfiguration__wlan_rssi value = *(e_S1AP_WLANMeasurementConfiguration__wlan_rssi*)sptr;
66
0
    switch(value) {
67
0
    case S1AP_WLANMeasurementConfiguration__wlan_rssi_true:
68
0
        return 0;
69
0
    }
70
0
    return -1;
71
0
}
72
static const unsigned int asn_MAP_S1AP_wlan_rssi_enum2value_4[] = {
73
  0 /* true(0) */
74
  /* This list is extensible */
75
};
76
static const asn_INTEGER_specifics_t asn_SPC_S1AP_wlan_rssi_specs_4 = {
77
  asn_MAP_S1AP_wlan_rssi_value2enum_4,  /* "tag" => N; sorted by tag */
78
  asn_MAP_S1AP_wlan_rssi_enum2value_4,  /* N => "tag"; sorted by N */
79
  1,  /* Number of elements in the maps */
80
  2,  /* Extensions before this member */
81
  1,  /* Strict enumeration */
82
  0,  /* Native long size */
83
  0
84
};
85
static const ber_tlv_tag_t asn_DEF_S1AP_wlan_rssi_tags_4[] = {
86
  (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
87
  (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
88
};
89
static /* Use -fall-defs-global to expose */
90
asn_TYPE_descriptor_t asn_DEF_S1AP_wlan_rssi_4 = {
91
  "wlan-rssi",
92
  "wlan-rssi",
93
  &asn_OP_NativeEnumerated,
94
  asn_DEF_S1AP_wlan_rssi_tags_4,
95
  sizeof(asn_DEF_S1AP_wlan_rssi_tags_4)
96
    /sizeof(asn_DEF_S1AP_wlan_rssi_tags_4[0]) - 1, /* 1 */
97
  asn_DEF_S1AP_wlan_rssi_tags_4,  /* Same as above */
98
  sizeof(asn_DEF_S1AP_wlan_rssi_tags_4)
99
    /sizeof(asn_DEF_S1AP_wlan_rssi_tags_4[0]), /* 2 */
100
  {
101
#if !defined(ASN_DISABLE_OER_SUPPORT)
102
    0,
103
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
104
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
105
    &asn_PER_type_S1AP_wlan_rssi_constr_4,
106
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
107
#if !defined(ASN_DISABLE_JER_SUPPORT)
108
    0,
109
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
110
    asn_validate_S1AP_wlan_rssi_4
111
  },
112
  0, 0, /* Defined elsewhere */
113
  &asn_SPC_S1AP_wlan_rssi_specs_4 /* Additional specs */
114
};
115
116
static const asn_INTEGER_enum_map_t asn_MAP_S1AP_wlan_rtt_value2enum_7[] = {
117
  { 0,  4,  "true" }
118
  /* This list is extensible */
119
};
120
static int asn_validate_S1AP_wlan_rtt_7(const asn_TYPE_descriptor_t *td,
121
                       const void *sptr,
122
                       asn_app_constraint_failed_f *ctfailcb,
123
0
                       void* app_key) {
124
0
    if(! sptr) { return -1; }
125
0
    e_S1AP_WLANMeasurementConfiguration__wlan_rtt value = *(e_S1AP_WLANMeasurementConfiguration__wlan_rtt*)sptr;
126
0
    switch(value) {
127
0
    case S1AP_WLANMeasurementConfiguration__wlan_rtt_true:
128
0
        return 0;
129
0
    }
130
0
    return -1;
131
0
}
132
static const unsigned int asn_MAP_S1AP_wlan_rtt_enum2value_7[] = {
133
  0 /* true(0) */
134
  /* This list is extensible */
135
};
136
static const asn_INTEGER_specifics_t asn_SPC_S1AP_wlan_rtt_specs_7 = {
137
  asn_MAP_S1AP_wlan_rtt_value2enum_7, /* "tag" => N; sorted by tag */
138
  asn_MAP_S1AP_wlan_rtt_enum2value_7, /* N => "tag"; sorted by N */
139
  1,  /* Number of elements in the maps */
140
  2,  /* Extensions before this member */
141
  1,  /* Strict enumeration */
142
  0,  /* Native long size */
143
  0
144
};
145
static const ber_tlv_tag_t asn_DEF_S1AP_wlan_rtt_tags_7[] = {
146
  (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
147
  (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
148
};
149
static /* Use -fall-defs-global to expose */
150
asn_TYPE_descriptor_t asn_DEF_S1AP_wlan_rtt_7 = {
151
  "wlan-rtt",
152
  "wlan-rtt",
153
  &asn_OP_NativeEnumerated,
154
  asn_DEF_S1AP_wlan_rtt_tags_7,
155
  sizeof(asn_DEF_S1AP_wlan_rtt_tags_7)
156
    /sizeof(asn_DEF_S1AP_wlan_rtt_tags_7[0]) - 1, /* 1 */
157
  asn_DEF_S1AP_wlan_rtt_tags_7, /* Same as above */
158
  sizeof(asn_DEF_S1AP_wlan_rtt_tags_7)
159
    /sizeof(asn_DEF_S1AP_wlan_rtt_tags_7[0]), /* 2 */
160
  {
161
#if !defined(ASN_DISABLE_OER_SUPPORT)
162
    0,
163
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
164
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
165
    &asn_PER_type_S1AP_wlan_rtt_constr_7,
166
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
167
#if !defined(ASN_DISABLE_JER_SUPPORT)
168
    0,
169
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
170
    asn_validate_S1AP_wlan_rtt_7
171
  },
172
  0, 0, /* Defined elsewhere */
173
  &asn_SPC_S1AP_wlan_rtt_specs_7  /* Additional specs */
174
};
175
176
asn_TYPE_member_t asn_MBR_S1AP_WLANMeasurementConfiguration_1[] = {
177
  { ATF_NOFLAGS, 0, offsetof(struct S1AP_WLANMeasurementConfiguration, wlanMeasConfig),
178
    (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
179
    -1, /* IMPLICIT tag at current level */
180
    &asn_DEF_S1AP_WLANMeasConfig,
181
    0,
182
    {
183
#if !defined(ASN_DISABLE_OER_SUPPORT)
184
      0,
185
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
186
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
187
      0,
188
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
189
#if !defined(ASN_DISABLE_JER_SUPPORT)
190
      0,
191
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
192
      0
193
    },
194
    0, 0, /* No default value */
195
    "wlanMeasConfig"
196
    },
197
  { ATF_POINTER, 4, offsetof(struct S1AP_WLANMeasurementConfiguration, wlanMeasConfigNameList),
198
    (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
199
    -1, /* IMPLICIT tag at current level */
200
    &asn_DEF_S1AP_WLANMeasConfigNameList,
201
    0,
202
    {
203
#if !defined(ASN_DISABLE_OER_SUPPORT)
204
      0,
205
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
206
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
207
      0,
208
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
209
#if !defined(ASN_DISABLE_JER_SUPPORT)
210
      0,
211
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
212
      0
213
    },
214
    0, 0, /* No default value */
215
    "wlanMeasConfigNameList"
216
    },
217
  { ATF_POINTER, 3, offsetof(struct S1AP_WLANMeasurementConfiguration, wlan_rssi),
218
    (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
219
    -1, /* IMPLICIT tag at current level */
220
    &asn_DEF_S1AP_wlan_rssi_4,
221
    0,
222
    {
223
#if !defined(ASN_DISABLE_OER_SUPPORT)
224
      0,
225
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
226
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
227
      0,
228
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
229
#if !defined(ASN_DISABLE_JER_SUPPORT)
230
      0,
231
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
232
      0
233
    },
234
    0, 0, /* No default value */
235
    "wlan-rssi"
236
    },
237
  { ATF_POINTER, 2, offsetof(struct S1AP_WLANMeasurementConfiguration, wlan_rtt),
238
    (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
239
    -1, /* IMPLICIT tag at current level */
240
    &asn_DEF_S1AP_wlan_rtt_7,
241
    0,
242
    {
243
#if !defined(ASN_DISABLE_OER_SUPPORT)
244
      0,
245
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
246
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
247
      0,
248
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
249
#if !defined(ASN_DISABLE_JER_SUPPORT)
250
      0,
251
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
252
      0
253
    },
254
    0, 0, /* No default value */
255
    "wlan-rtt"
256
    },
257
  { ATF_POINTER, 1, offsetof(struct S1AP_WLANMeasurementConfiguration, iE_Extensions),
258
    (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
259
    -1, /* IMPLICIT tag at current level */
260
    &asn_DEF_S1AP_ProtocolExtensionContainer_8386P171,
261
    0,
262
    {
263
#if !defined(ASN_DISABLE_OER_SUPPORT)
264
      0,
265
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
266
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
267
      0,
268
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
269
#if !defined(ASN_DISABLE_JER_SUPPORT)
270
      0,
271
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
272
      0
273
    },
274
    0, 0, /* No default value */
275
    "iE-Extensions"
276
    },
277
};
278
static const int asn_MAP_S1AP_WLANMeasurementConfiguration_oms_1[] = { 1, 2, 3, 4 };
279
static const ber_tlv_tag_t asn_DEF_S1AP_WLANMeasurementConfiguration_tags_1[] = {
280
  (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
281
};
282
static const asn_TYPE_tag2member_t asn_MAP_S1AP_WLANMeasurementConfiguration_tag2el_1[] = {
283
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* wlanMeasConfig */
284
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* wlanMeasConfigNameList */
285
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* wlan-rssi */
286
    { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* wlan-rtt */
287
    { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* iE-Extensions */
288
};
289
asn_SEQUENCE_specifics_t asn_SPC_S1AP_WLANMeasurementConfiguration_specs_1 = {
290
  sizeof(struct S1AP_WLANMeasurementConfiguration),
291
  offsetof(struct S1AP_WLANMeasurementConfiguration, _asn_ctx),
292
  asn_MAP_S1AP_WLANMeasurementConfiguration_tag2el_1,
293
  5,  /* Count of tags in the map */
294
  asn_MAP_S1AP_WLANMeasurementConfiguration_oms_1,  /* Optional members */
295
  4, 0, /* Root/Additions */
296
  5,  /* First extension addition */
297
};
298
asn_TYPE_descriptor_t asn_DEF_S1AP_WLANMeasurementConfiguration = {
299
  "WLANMeasurementConfiguration",
300
  "WLANMeasurementConfiguration",
301
  &asn_OP_SEQUENCE,
302
  asn_DEF_S1AP_WLANMeasurementConfiguration_tags_1,
303
  sizeof(asn_DEF_S1AP_WLANMeasurementConfiguration_tags_1)
304
    /sizeof(asn_DEF_S1AP_WLANMeasurementConfiguration_tags_1[0]), /* 1 */
305
  asn_DEF_S1AP_WLANMeasurementConfiguration_tags_1, /* Same as above */
306
  sizeof(asn_DEF_S1AP_WLANMeasurementConfiguration_tags_1)
307
    /sizeof(asn_DEF_S1AP_WLANMeasurementConfiguration_tags_1[0]), /* 1 */
308
  {
309
#if !defined(ASN_DISABLE_OER_SUPPORT)
310
    0,
311
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
312
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
313
    0,
314
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
315
#if !defined(ASN_DISABLE_JER_SUPPORT)
316
    0,
317
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
318
    SEQUENCE_constraint
319
  },
320
  asn_MBR_S1AP_WLANMeasurementConfiguration_1,
321
  5,  /* Elements count */
322
  &asn_SPC_S1AP_WLANMeasurementConfiguration_specs_1  /* Additional specs */
323
};
324