Coverage Report

Created: 2026-08-14 06:04

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/open5gs/lib/asn1c/ngap/NGAP_AssociatedQosFlowItem.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_AssociatedQosFlowItem.h"
9
10
#include "NGAP_ProtocolExtensionContainer.h"
11
#ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS
12
#if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__))
13
extern asn_TYPE_descriptor_t asn_DEF_NGAP_qosFlowMappingIndication __attribute__((weak, alias("asn_DEF_NGAP_qosFlowMappingIndication_3")));
14
#else
15
static asn_TYPE_descriptor_t asn_DEF_NGAP_qosFlowMappingIndication_3;
16
static asn_TYPE_descriptor_t asn_DEF_NGAP_qosFlowMappingIndication;
17
__attribute__((constructor)) static void asn_DEF_NGAP_qosFlowMappingIndication_3_alias_init(void) {
18
  asn_DEF_NGAP_qosFlowMappingIndication = asn_DEF_NGAP_qosFlowMappingIndication_3;
19
}
20
#endif
21
#endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */
22
/*
23
 * This type is implemented using NativeEnumerated,
24
 * so here we adjust the DEF accordingly.
25
 */
26
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
27
static asn_per_constraints_t asn_PER_type_NGAP_qosFlowMappingIndication_constr_3 CC_NOTUSED = {
28
  { APC_CONSTRAINED | APC_EXTENSIBLE,  1,  1,  0,  1 }  /* (0..1,...) */,
29
  { APC_UNCONSTRAINED,  -1, -1,  0,  0 },
30
  0, 0  /* No PER value map */
31
};
32
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
33
static const asn_INTEGER_enum_map_t asn_MAP_NGAP_qosFlowMappingIndication_value2enum_3[] = {
34
  { 0,  2,  "ul" },
35
  { 1,  2,  "dl" }
36
  /* This list is extensible */
37
};
38
static int asn_validate_NGAP_qosFlowMappingIndication_3(const asn_TYPE_descriptor_t *td,
39
                       const void *sptr,
40
                       asn_app_constraint_failed_f *ctfailcb,
41
0
                       void* app_key) {
42
0
    if(! sptr) { return -1; }
43
0
    e_NGAP_AssociatedQosFlowItem__qosFlowMappingIndication value = *(e_NGAP_AssociatedQosFlowItem__qosFlowMappingIndication*)sptr;
44
0
    switch(value) {
45
0
    case NGAP_AssociatedQosFlowItem__qosFlowMappingIndication_ul:
46
0
    case NGAP_AssociatedQosFlowItem__qosFlowMappingIndication_dl:
47
0
        return 0;
48
0
    }
49
0
    return -1;
50
0
}
51
static const unsigned int asn_MAP_NGAP_qosFlowMappingIndication_enum2value_3[] = {
52
  1,  /* dl(1) */
53
  0 /* ul(0) */
54
  /* This list is extensible */
55
};
56
static const asn_INTEGER_specifics_t asn_SPC_NGAP_qosFlowMappingIndication_specs_3 = {
57
  asn_MAP_NGAP_qosFlowMappingIndication_value2enum_3, /* "tag" => N; sorted by tag */
58
  asn_MAP_NGAP_qosFlowMappingIndication_enum2value_3, /* N => "tag"; sorted by N */
59
  2,  /* Number of elements in the maps */
60
  3,  /* Extensions before this member */
61
  1,  /* Strict enumeration */
62
  0,  /* Native long size */
63
  0
64
};
65
static const ber_tlv_tag_t asn_DEF_NGAP_qosFlowMappingIndication_tags_3[] = {
66
  (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
67
  (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
68
};
69
static /* Use -fall-defs-global to expose */
70
asn_TYPE_descriptor_t asn_DEF_NGAP_qosFlowMappingIndication_3 = {
71
  "qosFlowMappingIndication",
72
  "qosFlowMappingIndication",
73
  &asn_OP_NativeEnumerated,
74
  asn_DEF_NGAP_qosFlowMappingIndication_tags_3,
75
  sizeof(asn_DEF_NGAP_qosFlowMappingIndication_tags_3)
76
    /sizeof(asn_DEF_NGAP_qosFlowMappingIndication_tags_3[0]) - 1, /* 1 */
77
  asn_DEF_NGAP_qosFlowMappingIndication_tags_3, /* Same as above */
78
  sizeof(asn_DEF_NGAP_qosFlowMappingIndication_tags_3)
79
    /sizeof(asn_DEF_NGAP_qosFlowMappingIndication_tags_3[0]), /* 2 */
80
  {
81
#if !defined(ASN_DISABLE_OER_SUPPORT)
82
    0,
83
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
84
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
85
    &asn_PER_type_NGAP_qosFlowMappingIndication_constr_3,
86
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
87
#if !defined(ASN_DISABLE_JER_SUPPORT)
88
    0,
89
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
90
    asn_validate_NGAP_qosFlowMappingIndication_3
91
  },
92
  0, 0, /* Defined elsewhere */
93
  &asn_SPC_NGAP_qosFlowMappingIndication_specs_3  /* Additional specs */
94
};
95
96
asn_TYPE_member_t asn_MBR_NGAP_AssociatedQosFlowItem_1[] = {
97
  { ATF_NOFLAGS, 0, offsetof(struct NGAP_AssociatedQosFlowItem, qosFlowIdentifier),
98
    (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
99
    -1, /* IMPLICIT tag at current level */
100
    &asn_DEF_NGAP_QosFlowIdentifier,
101
    0,
102
    {
103
#if !defined(ASN_DISABLE_OER_SUPPORT)
104
      0,
105
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
106
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
107
      0,
108
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
109
#if !defined(ASN_DISABLE_JER_SUPPORT)
110
      0,
111
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
112
      0
113
    },
114
    0, 0, /* No default value */
115
    "qosFlowIdentifier"
116
    },
117
  { ATF_POINTER, 2, offsetof(struct NGAP_AssociatedQosFlowItem, qosFlowMappingIndication),
118
    (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
119
    -1, /* IMPLICIT tag at current level */
120
    &asn_DEF_NGAP_qosFlowMappingIndication_3,
121
    0,
122
    {
123
#if !defined(ASN_DISABLE_OER_SUPPORT)
124
      0,
125
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
126
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
127
      0,
128
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
129
#if !defined(ASN_DISABLE_JER_SUPPORT)
130
      0,
131
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
132
      0
133
    },
134
    0, 0, /* No default value */
135
    "qosFlowMappingIndication"
136
    },
137
  { ATF_POINTER, 1, offsetof(struct NGAP_AssociatedQosFlowItem, iE_Extensions),
138
    (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
139
    -1, /* IMPLICIT tag at current level */
140
    &asn_DEF_NGAP_ProtocolExtensionContainer_14713P33,
141
    0,
142
    {
143
#if !defined(ASN_DISABLE_OER_SUPPORT)
144
      0,
145
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
146
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
147
      0,
148
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
149
#if !defined(ASN_DISABLE_JER_SUPPORT)
150
      0,
151
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
152
      0
153
    },
154
    0, 0, /* No default value */
155
    "iE-Extensions"
156
    },
157
};
158
static const int asn_MAP_NGAP_AssociatedQosFlowItem_oms_1[] = { 1, 2 };
159
static const ber_tlv_tag_t asn_DEF_NGAP_AssociatedQosFlowItem_tags_1[] = {
160
  (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
161
};
162
static const asn_TYPE_tag2member_t asn_MAP_NGAP_AssociatedQosFlowItem_tag2el_1[] = {
163
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* qosFlowIdentifier */
164
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* qosFlowMappingIndication */
165
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */
166
};
167
asn_SEQUENCE_specifics_t asn_SPC_NGAP_AssociatedQosFlowItem_specs_1 = {
168
  sizeof(struct NGAP_AssociatedQosFlowItem),
169
  offsetof(struct NGAP_AssociatedQosFlowItem, _asn_ctx),
170
  asn_MAP_NGAP_AssociatedQosFlowItem_tag2el_1,
171
  3,  /* Count of tags in the map */
172
  asn_MAP_NGAP_AssociatedQosFlowItem_oms_1, /* Optional members */
173
  2, 0, /* Root/Additions */
174
  3,  /* First extension addition */
175
};
176
asn_TYPE_descriptor_t asn_DEF_NGAP_AssociatedQosFlowItem = {
177
  "AssociatedQosFlowItem",
178
  "AssociatedQosFlowItem",
179
  &asn_OP_SEQUENCE,
180
  asn_DEF_NGAP_AssociatedQosFlowItem_tags_1,
181
  sizeof(asn_DEF_NGAP_AssociatedQosFlowItem_tags_1)
182
    /sizeof(asn_DEF_NGAP_AssociatedQosFlowItem_tags_1[0]), /* 1 */
183
  asn_DEF_NGAP_AssociatedQosFlowItem_tags_1,  /* Same as above */
184
  sizeof(asn_DEF_NGAP_AssociatedQosFlowItem_tags_1)
185
    /sizeof(asn_DEF_NGAP_AssociatedQosFlowItem_tags_1[0]), /* 1 */
186
  {
187
#if !defined(ASN_DISABLE_OER_SUPPORT)
188
    0,
189
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
190
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
191
    0,
192
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
193
#if !defined(ASN_DISABLE_JER_SUPPORT)
194
    0,
195
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
196
    SEQUENCE_constraint
197
  },
198
  asn_MBR_NGAP_AssociatedQosFlowItem_1,
199
  3,  /* Elements count */
200
  &asn_SPC_NGAP_AssociatedQosFlowItem_specs_1 /* Additional specs */
201
};
202