Coverage Report

Created: 2026-06-30 06:14

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/open5gs/lib/asn1c/ngap/NGAP_PrivateIE-ID.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-CommonDataTypes"
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_PrivateIE-ID.h"
9
10
static int
11
memb_NGAP_local_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
12
0
      asn_app_constraint_failed_f *ctfailcb, void *app_key) {
13
0
  long value;
14
  
15
0
  if(!sptr) {
16
0
    ASN__CTFAIL(app_key, td, sptr,
17
0
      "%s: value not given (%s:%d)",
18
0
      td->name, __FILE__, __LINE__);
19
0
    return -1;
20
0
  }
21
  
22
0
  value = *(const long *)sptr;
23
  
24
0
  if((value >= 0L && value <= 65535L)) {
25
    /* Constraint check succeeded */
26
0
    return 0;
27
0
  } else {
28
0
    ASN__CTFAIL(app_key, td, sptr,
29
0
      "%s: constraint failed (%s:%d)",
30
0
      td->name, __FILE__, __LINE__);
31
0
    return -1;
32
0
  }
33
0
}
34
35
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
36
static asn_per_constraints_t asn_PER_memb_NGAP_local_constr_2 CC_NOTUSED = {
37
  { APC_CONSTRAINED,   16,  16,  0,  65535 }  /* (0..65535) */,
38
  { APC_UNCONSTRAINED,  -1, -1,  0,  0 },
39
  0, 0  /* No PER value map */
40
};
41
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
42
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
43
asn_per_constraints_t asn_PER_type_NGAP_PrivateIE_ID_constr_1 CC_NOTUSED = {
44
  { APC_CONSTRAINED,   1,  1,  0,  1 }  /* (0..1) */,
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
asn_TYPE_member_t asn_MBR_NGAP_PrivateIE_ID_1[] = {
50
  { ATF_NOFLAGS, 0, offsetof(struct NGAP_PrivateIE_ID, choice.local),
51
    (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
52
    -1, /* IMPLICIT tag at current level */
53
    &asn_DEF_NativeInteger,
54
    0,
55
    {
56
#if !defined(ASN_DISABLE_OER_SUPPORT)
57
      0,
58
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
59
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
60
      &asn_PER_memb_NGAP_local_constr_2,
61
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
62
#if !defined(ASN_DISABLE_JER_SUPPORT)
63
      0,
64
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
65
      memb_NGAP_local_constraint_1
66
    },
67
    0, 0, /* No default value */
68
    "local"
69
    },
70
  { ATF_NOFLAGS, 0, offsetof(struct NGAP_PrivateIE_ID, choice.global),
71
    (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
72
    -1, /* IMPLICIT tag at current level */
73
    &asn_DEF_OBJECT_IDENTIFIER,
74
    0,
75
    {
76
#if !defined(ASN_DISABLE_OER_SUPPORT)
77
      0,
78
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
79
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
80
      0,
81
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
82
#if !defined(ASN_DISABLE_JER_SUPPORT)
83
      0,
84
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
85
      0
86
    },
87
    0, 0, /* No default value */
88
    "global"
89
    },
90
};
91
static const asn_TYPE_tag2member_t asn_MAP_NGAP_PrivateIE_ID_tag2el_1[] = {
92
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* local */
93
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* global */
94
};
95
asn_CHOICE_specifics_t asn_SPC_NGAP_PrivateIE_ID_specs_1 = {
96
  sizeof(struct NGAP_PrivateIE_ID),
97
  offsetof(struct NGAP_PrivateIE_ID, _asn_ctx),
98
  offsetof(struct NGAP_PrivateIE_ID, present),
99
  sizeof(((struct NGAP_PrivateIE_ID *)0)->present),
100
  asn_MAP_NGAP_PrivateIE_ID_tag2el_1,
101
  2,  /* Count of tags in the map */
102
  0, 0,
103
  -1  /* Extensions start */
104
};
105
asn_TYPE_descriptor_t asn_DEF_NGAP_PrivateIE_ID = {
106
  "PrivateIE-ID",
107
  "PrivateIE-ID",
108
  &asn_OP_CHOICE,
109
  0,  /* No effective tags (pointer) */
110
  0,  /* No effective tags (count) */
111
  0,  /* No tags (pointer) */
112
  0,  /* No tags (count) */
113
  {
114
#if !defined(ASN_DISABLE_OER_SUPPORT)
115
    0,
116
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
117
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
118
    &asn_PER_type_NGAP_PrivateIE_ID_constr_1,
119
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
120
#if !defined(ASN_DISABLE_JER_SUPPORT)
121
    0,
122
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
123
    CHOICE_constraint
124
  },
125
  asn_MBR_NGAP_PrivateIE_ID_1,
126
  2,  /* Elements count */
127
  &asn_SPC_NGAP_PrivateIE_ID_specs_1  /* Additional specs */
128
};
129