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_ExcessPacketDelayThresholdValue.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_ExcessPacketDelayThresholdValue.h"
9
10
/*
11
 * This type is implemented using NativeEnumerated,
12
 * so here we adjust the DEF accordingly.
13
 */
14
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
15
asn_per_constraints_t asn_PER_type_NGAP_ExcessPacketDelayThresholdValue_constr_1 CC_NOTUSED = {
16
  { APC_CONSTRAINED | APC_EXTENSIBLE,  5,  5,  0,  18 } /* (0..18,...) */,
17
  { APC_UNCONSTRAINED,  -1, -1,  0,  0 },
18
  0, 0  /* No PER value map */
19
};
20
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
21
static const asn_INTEGER_enum_map_t asn_MAP_NGAP_ExcessPacketDelayThresholdValue_value2enum_1[] = {
22
  { 0,  8,  "ms0dot25" },
23
  { 1,  7,  "ms0dot5" },
24
  { 2,  3,  "ms1" },
25
  { 3,  3,  "ms2" },
26
  { 4,  3,  "ms4" },
27
  { 5,  3,  "ms5" },
28
  { 6,  4,  "ms10" },
29
  { 7,  4,  "ms20" },
30
  { 8,  4,  "ms30" },
31
  { 9,  4,  "ms40" },
32
  { 10, 4,  "ms50" },
33
  { 11, 4,  "ms60" },
34
  { 12, 4,  "ms70" },
35
  { 13, 4,  "ms80" },
36
  { 14, 4,  "ms90" },
37
  { 15, 5,  "ms100" },
38
  { 16, 5,  "ms150" },
39
  { 17, 5,  "ms300" },
40
  { 18, 5,  "ms500" }
41
  /* This list is extensible */
42
};
43
static int asn_validate_NGAP_ExcessPacketDelayThresholdValue_1(const asn_TYPE_descriptor_t *td,
44
                       const void *sptr,
45
                       asn_app_constraint_failed_f *ctfailcb,
46
0
                       void* app_key) {
47
0
    if(! sptr) { return -1; }
48
0
    e_NGAP_ExcessPacketDelayThresholdValue value = *(e_NGAP_ExcessPacketDelayThresholdValue*)sptr;
49
0
    switch(value) {
50
0
    case NGAP_ExcessPacketDelayThresholdValue_ms0dot25:
51
0
    case NGAP_ExcessPacketDelayThresholdValue_ms0dot5:
52
0
    case NGAP_ExcessPacketDelayThresholdValue_ms1:
53
0
    case NGAP_ExcessPacketDelayThresholdValue_ms2:
54
0
    case NGAP_ExcessPacketDelayThresholdValue_ms4:
55
0
    case NGAP_ExcessPacketDelayThresholdValue_ms5:
56
0
    case NGAP_ExcessPacketDelayThresholdValue_ms10:
57
0
    case NGAP_ExcessPacketDelayThresholdValue_ms20:
58
0
    case NGAP_ExcessPacketDelayThresholdValue_ms30:
59
0
    case NGAP_ExcessPacketDelayThresholdValue_ms40:
60
0
    case NGAP_ExcessPacketDelayThresholdValue_ms50:
61
0
    case NGAP_ExcessPacketDelayThresholdValue_ms60:
62
0
    case NGAP_ExcessPacketDelayThresholdValue_ms70:
63
0
    case NGAP_ExcessPacketDelayThresholdValue_ms80:
64
0
    case NGAP_ExcessPacketDelayThresholdValue_ms90:
65
0
    case NGAP_ExcessPacketDelayThresholdValue_ms100:
66
0
    case NGAP_ExcessPacketDelayThresholdValue_ms150:
67
0
    case NGAP_ExcessPacketDelayThresholdValue_ms300:
68
0
    case NGAP_ExcessPacketDelayThresholdValue_ms500:
69
0
        return 0;
70
0
    }
71
0
    return -1;
72
0
}
73
static const unsigned int asn_MAP_NGAP_ExcessPacketDelayThresholdValue_enum2value_1[] = {
74
  0,  /* ms0dot25(0) */
75
  1,  /* ms0dot5(1) */
76
  2,  /* ms1(2) */
77
  6,  /* ms10(6) */
78
  15, /* ms100(15) */
79
  16, /* ms150(16) */
80
  3,  /* ms2(3) */
81
  7,  /* ms20(7) */
82
  8,  /* ms30(8) */
83
  17, /* ms300(17) */
84
  4,  /* ms4(4) */
85
  9,  /* ms40(9) */
86
  5,  /* ms5(5) */
87
  10, /* ms50(10) */
88
  18, /* ms500(18) */
89
  11, /* ms60(11) */
90
  12, /* ms70(12) */
91
  13, /* ms80(13) */
92
  14  /* ms90(14) */
93
  /* This list is extensible */
94
};
95
const asn_INTEGER_specifics_t asn_SPC_NGAP_ExcessPacketDelayThresholdValue_specs_1 = {
96
  asn_MAP_NGAP_ExcessPacketDelayThresholdValue_value2enum_1,  /* "tag" => N; sorted by tag */
97
  asn_MAP_NGAP_ExcessPacketDelayThresholdValue_enum2value_1,  /* N => "tag"; sorted by N */
98
  19, /* Number of elements in the maps */
99
  20, /* Extensions before this member */
100
  1,  /* Strict enumeration */
101
  0,  /* Native long size */
102
  0
103
};
104
static const ber_tlv_tag_t asn_DEF_NGAP_ExcessPacketDelayThresholdValue_tags_1[] = {
105
  (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
106
};
107
asn_TYPE_descriptor_t asn_DEF_NGAP_ExcessPacketDelayThresholdValue = {
108
  "ExcessPacketDelayThresholdValue",
109
  "ExcessPacketDelayThresholdValue",
110
  &asn_OP_NativeEnumerated,
111
  asn_DEF_NGAP_ExcessPacketDelayThresholdValue_tags_1,
112
  sizeof(asn_DEF_NGAP_ExcessPacketDelayThresholdValue_tags_1)
113
    /sizeof(asn_DEF_NGAP_ExcessPacketDelayThresholdValue_tags_1[0]), /* 1 */
114
  asn_DEF_NGAP_ExcessPacketDelayThresholdValue_tags_1,  /* Same as above */
115
  sizeof(asn_DEF_NGAP_ExcessPacketDelayThresholdValue_tags_1)
116
    /sizeof(asn_DEF_NGAP_ExcessPacketDelayThresholdValue_tags_1[0]), /* 1 */
117
  {
118
#if !defined(ASN_DISABLE_OER_SUPPORT)
119
    0,
120
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
121
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
122
    &asn_PER_type_NGAP_ExcessPacketDelayThresholdValue_constr_1,
123
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
124
#if !defined(ASN_DISABLE_JER_SUPPORT)
125
    0,
126
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
127
    asn_validate_NGAP_ExcessPacketDelayThresholdValue_1
128
  },
129
  0, 0, /* Defined elsewhere */
130
  &asn_SPC_NGAP_ExcessPacketDelayThresholdValue_specs_1 /* Additional specs */
131
};
132