Coverage Report

Created: 2026-08-17 06:12

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/open5gs/lib/asn1c/ngap/NGAP_VolumeTimedReport-Item.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 "NGAP-IEs"
4
 *  found in "../support/ngap-r19.2.0/38413-j20.asn"
5
 *  `asn1c -pdu=all -fprefix=NGAP_ -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 "NGAP_VolumeTimedReport-Item.h"
9
10
#include "NGAP_ProtocolExtensionContainer.h"
11
static int
12
memb_NGAP_startTimeStamp_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
13
0
      asn_app_constraint_failed_f *ctfailcb, void *app_key) {
14
0
  const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr;
15
0
  size_t size;
16
  
17
0
  if(!sptr) {
18
0
    ASN__CTFAIL(app_key, td, sptr,
19
0
      "%s: value not given (%s:%d)",
20
0
      td->name, __FILE__, __LINE__);
21
0
    return -1;
22
0
  }
23
  
24
0
  size = st->size;
25
  
26
0
  if((size == 4UL)) {
27
    /* Constraint check succeeded */
28
0
    return 0;
29
0
  } else {
30
0
    ASN__CTFAIL(app_key, td, sptr,
31
0
      "%s: constraint failed (%s:%d)",
32
0
      td->name, __FILE__, __LINE__);
33
0
    return -1;
34
0
  }
35
0
}
36
37
static int
38
memb_NGAP_endTimeStamp_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
39
0
      asn_app_constraint_failed_f *ctfailcb, void *app_key) {
40
0
  const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr;
41
0
  size_t size;
42
  
43
0
  if(!sptr) {
44
0
    ASN__CTFAIL(app_key, td, sptr,
45
0
      "%s: value not given (%s:%d)",
46
0
      td->name, __FILE__, __LINE__);
47
0
    return -1;
48
0
  }
49
  
50
0
  size = st->size;
51
  
52
0
  if((size == 4UL)) {
53
    /* Constraint check succeeded */
54
0
    return 0;
55
0
  } else {
56
0
    ASN__CTFAIL(app_key, td, sptr,
57
0
      "%s: constraint failed (%s:%d)",
58
0
      td->name, __FILE__, __LINE__);
59
0
    return -1;
60
0
  }
61
0
}
62
63
static int
64
memb_NGAP_usageCountUL_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
65
0
      asn_app_constraint_failed_f *ctfailcb, void *app_key) {
66
0
  const INTEGER_t *st = (const INTEGER_t *)sptr;
67
0
  unsigned long value;
68
  
69
0
  if(!sptr) {
70
0
    ASN__CTFAIL(app_key, td, sptr,
71
0
      "%s: value not given (%s:%d)",
72
0
      td->name, __FILE__, __LINE__);
73
0
    return -1;
74
0
  }
75
  
76
0
  if(asn_INTEGER2ulong(st, &value)) {
77
0
    ASN__CTFAIL(app_key, td, sptr,
78
0
      "%s: value too large (%s:%d)",
79
0
      td->name, __FILE__, __LINE__);
80
0
    return -1;
81
0
  }
82
  
83
0
  if((value <= 18446744073709551615UL)) {
84
    /* Constraint check succeeded */
85
0
    return 0;
86
0
  } else {
87
0
    ASN__CTFAIL(app_key, td, sptr,
88
0
      "%s: constraint failed (%s:%d)",
89
0
      td->name, __FILE__, __LINE__);
90
0
    return -1;
91
0
  }
92
0
}
93
94
static int
95
memb_NGAP_usageCountDL_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
96
0
      asn_app_constraint_failed_f *ctfailcb, void *app_key) {
97
0
  const INTEGER_t *st = (const INTEGER_t *)sptr;
98
0
  unsigned long value;
99
  
100
0
  if(!sptr) {
101
0
    ASN__CTFAIL(app_key, td, sptr,
102
0
      "%s: value not given (%s:%d)",
103
0
      td->name, __FILE__, __LINE__);
104
0
    return -1;
105
0
  }
106
  
107
0
  if(asn_INTEGER2ulong(st, &value)) {
108
0
    ASN__CTFAIL(app_key, td, sptr,
109
0
      "%s: value too large (%s:%d)",
110
0
      td->name, __FILE__, __LINE__);
111
0
    return -1;
112
0
  }
113
  
114
0
  if((value <= 18446744073709551615UL)) {
115
    /* Constraint check succeeded */
116
0
    return 0;
117
0
  } else {
118
0
    ASN__CTFAIL(app_key, td, sptr,
119
0
      "%s: constraint failed (%s:%d)",
120
0
      td->name, __FILE__, __LINE__);
121
0
    return -1;
122
0
  }
123
0
}
124
125
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
126
static asn_per_constraints_t asn_PER_memb_NGAP_startTimeStamp_constr_2 CC_NOTUSED = {
127
  { APC_UNCONSTRAINED,  -1, -1,  0,  0 },
128
  { APC_CONSTRAINED,   0,  0,  4,  4 }  /* (SIZE(4..4)) */,
129
  0, 0  /* No PER value map */
130
};
131
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
132
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
133
static asn_per_constraints_t asn_PER_memb_NGAP_endTimeStamp_constr_3 CC_NOTUSED = {
134
  { APC_UNCONSTRAINED,  -1, -1,  0,  0 },
135
  { APC_CONSTRAINED,   0,  0,  4,  4 }  /* (SIZE(4..4)) */,
136
  0, 0  /* No PER value map */
137
};
138
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
139
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
140
static asn_per_constraints_t asn_PER_memb_NGAP_usageCountUL_constr_4 CC_NOTUSED = {
141
  { APC_CONSTRAINED,   64, -1,  0,  18446744073709551615 }  /* (0..18446744073709551615) */,
142
  { APC_UNCONSTRAINED,  -1, -1,  0,  0 },
143
  0, 0  /* No PER value map */
144
};
145
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
146
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
147
static asn_per_constraints_t asn_PER_memb_NGAP_usageCountDL_constr_5 CC_NOTUSED = {
148
  { APC_CONSTRAINED,   64, -1,  0,  18446744073709551615 }  /* (0..18446744073709551615) */,
149
  { APC_UNCONSTRAINED,  -1, -1,  0,  0 },
150
  0, 0  /* No PER value map */
151
};
152
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
153
asn_TYPE_member_t asn_MBR_NGAP_VolumeTimedReport_Item_1[] = {
154
  { ATF_NOFLAGS, 0, offsetof(struct NGAP_VolumeTimedReport_Item, startTimeStamp),
155
    (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
156
    -1, /* IMPLICIT tag at current level */
157
    &asn_DEF_OCTET_STRING,
158
    0,
159
    {
160
#if !defined(ASN_DISABLE_OER_SUPPORT)
161
      0,
162
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
163
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
164
      &asn_PER_memb_NGAP_startTimeStamp_constr_2,
165
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
166
#if !defined(ASN_DISABLE_JER_SUPPORT)
167
      0,
168
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
169
      memb_NGAP_startTimeStamp_constraint_1
170
    },
171
    0, 0, /* No default value */
172
    "startTimeStamp"
173
    },
174
  { ATF_NOFLAGS, 0, offsetof(struct NGAP_VolumeTimedReport_Item, endTimeStamp),
175
    (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
176
    -1, /* IMPLICIT tag at current level */
177
    &asn_DEF_OCTET_STRING,
178
    0,
179
    {
180
#if !defined(ASN_DISABLE_OER_SUPPORT)
181
      0,
182
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
183
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
184
      &asn_PER_memb_NGAP_endTimeStamp_constr_3,
185
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
186
#if !defined(ASN_DISABLE_JER_SUPPORT)
187
      0,
188
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
189
      memb_NGAP_endTimeStamp_constraint_1
190
    },
191
    0, 0, /* No default value */
192
    "endTimeStamp"
193
    },
194
  { ATF_NOFLAGS, 0, offsetof(struct NGAP_VolumeTimedReport_Item, usageCountUL),
195
    (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
196
    -1, /* IMPLICIT tag at current level */
197
    &asn_DEF_INTEGER,
198
    0,
199
    {
200
#if !defined(ASN_DISABLE_OER_SUPPORT)
201
      0,
202
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
203
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
204
      &asn_PER_memb_NGAP_usageCountUL_constr_4,
205
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
206
#if !defined(ASN_DISABLE_JER_SUPPORT)
207
      0,
208
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
209
      memb_NGAP_usageCountUL_constraint_1
210
    },
211
    0, 0, /* No default value */
212
    "usageCountUL"
213
    },
214
  { ATF_NOFLAGS, 0, offsetof(struct NGAP_VolumeTimedReport_Item, usageCountDL),
215
    (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
216
    -1, /* IMPLICIT tag at current level */
217
    &asn_DEF_INTEGER,
218
    0,
219
    {
220
#if !defined(ASN_DISABLE_OER_SUPPORT)
221
      0,
222
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
223
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
224
      &asn_PER_memb_NGAP_usageCountDL_constr_5,
225
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
226
#if !defined(ASN_DISABLE_JER_SUPPORT)
227
      0,
228
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
229
      memb_NGAP_usageCountDL_constraint_1
230
    },
231
    0, 0, /* No default value */
232
    "usageCountDL"
233
    },
234
  { ATF_POINTER, 1, offsetof(struct NGAP_VolumeTimedReport_Item, iE_Extensions),
235
    (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
236
    -1, /* IMPLICIT tag at current level */
237
    &asn_DEF_NGAP_ProtocolExtensionContainer_14713P463,
238
    0,
239
    {
240
#if !defined(ASN_DISABLE_OER_SUPPORT)
241
      0,
242
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
243
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
244
      0,
245
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
246
#if !defined(ASN_DISABLE_JER_SUPPORT)
247
      0,
248
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
249
      0
250
    },
251
    0, 0, /* No default value */
252
    "iE-Extensions"
253
    },
254
};
255
static const int asn_MAP_NGAP_VolumeTimedReport_Item_oms_1[] = { 4 };
256
static const ber_tlv_tag_t asn_DEF_NGAP_VolumeTimedReport_Item_tags_1[] = {
257
  (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
258
};
259
static const asn_TYPE_tag2member_t asn_MAP_NGAP_VolumeTimedReport_Item_tag2el_1[] = {
260
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* startTimeStamp */
261
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* endTimeStamp */
262
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* usageCountUL */
263
    { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* usageCountDL */
264
    { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* iE-Extensions */
265
};
266
asn_SEQUENCE_specifics_t asn_SPC_NGAP_VolumeTimedReport_Item_specs_1 = {
267
  sizeof(struct NGAP_VolumeTimedReport_Item),
268
  offsetof(struct NGAP_VolumeTimedReport_Item, _asn_ctx),
269
  asn_MAP_NGAP_VolumeTimedReport_Item_tag2el_1,
270
  5,  /* Count of tags in the map */
271
  asn_MAP_NGAP_VolumeTimedReport_Item_oms_1,  /* Optional members */
272
  1, 0, /* Root/Additions */
273
  5,  /* First extension addition */
274
};
275
asn_TYPE_descriptor_t asn_DEF_NGAP_VolumeTimedReport_Item = {
276
  "VolumeTimedReport-Item",
277
  "VolumeTimedReport-Item",
278
  &asn_OP_SEQUENCE,
279
  asn_DEF_NGAP_VolumeTimedReport_Item_tags_1,
280
  sizeof(asn_DEF_NGAP_VolumeTimedReport_Item_tags_1)
281
    /sizeof(asn_DEF_NGAP_VolumeTimedReport_Item_tags_1[0]), /* 1 */
282
  asn_DEF_NGAP_VolumeTimedReport_Item_tags_1, /* Same as above */
283
  sizeof(asn_DEF_NGAP_VolumeTimedReport_Item_tags_1)
284
    /sizeof(asn_DEF_NGAP_VolumeTimedReport_Item_tags_1[0]), /* 1 */
285
  {
286
#if !defined(ASN_DISABLE_OER_SUPPORT)
287
    0,
288
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
289
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
290
    0,
291
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
292
#if !defined(ASN_DISABLE_JER_SUPPORT)
293
    0,
294
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
295
    SEQUENCE_constraint
296
  },
297
  asn_MBR_NGAP_VolumeTimedReport_Item_1,
298
  5,  /* Elements count */
299
  &asn_SPC_NGAP_VolumeTimedReport_Item_specs_1  /* Additional specs */
300
};
301