Coverage Report

Created: 2026-07-14 06:05

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/open5gs/lib/asn1c/ngap/NGAP_MDT-circle.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_MDT-circle.h"
9
10
#include "NGAP_ProtocolExtensionContainer.h"
11
static int
12
memb_NGAP_distance_radius_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
13
0
      asn_app_constraint_failed_f *ctfailcb, void *app_key) {
14
0
  long value;
15
  
16
0
  if(!sptr) {
17
0
    ASN__CTFAIL(app_key, td, sptr,
18
0
      "%s: value not given (%s:%d)",
19
0
      td->name, __FILE__, __LINE__);
20
0
    return -1;
21
0
  }
22
  
23
0
  value = *(const long *)sptr;
24
  
25
0
  if((value >= 1L && value <= 65535L)) {
26
    /* Constraint check succeeded */
27
0
    return 0;
28
0
  } else {
29
0
    ASN__CTFAIL(app_key, td, sptr,
30
0
      "%s: constraint failed (%s:%d)",
31
0
      td->name, __FILE__, __LINE__);
32
0
    return -1;
33
0
  }
34
0
}
35
36
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
37
static asn_per_constraints_t asn_PER_memb_NGAP_distance_radius_constr_3 CC_NOTUSED = {
38
  { APC_CONSTRAINED,   16,  16,  1,  65535 }  /* (1..65535) */,
39
  { APC_UNCONSTRAINED,  -1, -1,  0,  0 },
40
  0, 0  /* No PER value map */
41
};
42
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
43
asn_TYPE_member_t asn_MBR_NGAP_MDT_circle_1[] = {
44
  { ATF_NOFLAGS, 0, offsetof(struct NGAP_MDT_circle, reference_location),
45
    (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
46
    -1, /* IMPLICIT tag at current level */
47
    &asn_DEF_OCTET_STRING,
48
    0,
49
    {
50
#if !defined(ASN_DISABLE_OER_SUPPORT)
51
      0,
52
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
53
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
54
      0,
55
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
56
#if !defined(ASN_DISABLE_JER_SUPPORT)
57
      0,
58
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
59
      0
60
    },
61
    0, 0, /* No default value */
62
    "reference-location"
63
    },
64
  { ATF_NOFLAGS, 0, offsetof(struct NGAP_MDT_circle, distance_radius),
65
    (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
66
    -1, /* IMPLICIT tag at current level */
67
    &asn_DEF_NativeInteger,
68
    0,
69
    {
70
#if !defined(ASN_DISABLE_OER_SUPPORT)
71
      0,
72
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
73
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
74
      &asn_PER_memb_NGAP_distance_radius_constr_3,
75
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
76
#if !defined(ASN_DISABLE_JER_SUPPORT)
77
      0,
78
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
79
      memb_NGAP_distance_radius_constraint_1
80
    },
81
    0, 0, /* No default value */
82
    "distance-radius"
83
    },
84
  { ATF_POINTER, 1, offsetof(struct NGAP_MDT_circle, iE_Extensions),
85
    (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
86
    -1, /* IMPLICIT tag at current level */
87
    &asn_DEF_NGAP_ProtocolExtensionContainer_14713P237,
88
    0,
89
    {
90
#if !defined(ASN_DISABLE_OER_SUPPORT)
91
      0,
92
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
93
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
94
      0,
95
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
96
#if !defined(ASN_DISABLE_JER_SUPPORT)
97
      0,
98
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
99
      0
100
    },
101
    0, 0, /* No default value */
102
    "iE-Extensions"
103
    },
104
};
105
static const int asn_MAP_NGAP_MDT_circle_oms_1[] = { 2 };
106
static const ber_tlv_tag_t asn_DEF_NGAP_MDT_circle_tags_1[] = {
107
  (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
108
};
109
static const asn_TYPE_tag2member_t asn_MAP_NGAP_MDT_circle_tag2el_1[] = {
110
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* reference-location */
111
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* distance-radius */
112
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */
113
};
114
asn_SEQUENCE_specifics_t asn_SPC_NGAP_MDT_circle_specs_1 = {
115
  sizeof(struct NGAP_MDT_circle),
116
  offsetof(struct NGAP_MDT_circle, _asn_ctx),
117
  asn_MAP_NGAP_MDT_circle_tag2el_1,
118
  3,  /* Count of tags in the map */
119
  asn_MAP_NGAP_MDT_circle_oms_1,  /* Optional members */
120
  1, 0, /* Root/Additions */
121
  3,  /* First extension addition */
122
};
123
asn_TYPE_descriptor_t asn_DEF_NGAP_MDT_circle = {
124
  "MDT-circle",
125
  "MDT-circle",
126
  &asn_OP_SEQUENCE,
127
  asn_DEF_NGAP_MDT_circle_tags_1,
128
  sizeof(asn_DEF_NGAP_MDT_circle_tags_1)
129
    /sizeof(asn_DEF_NGAP_MDT_circle_tags_1[0]), /* 1 */
130
  asn_DEF_NGAP_MDT_circle_tags_1, /* Same as above */
131
  sizeof(asn_DEF_NGAP_MDT_circle_tags_1)
132
    /sizeof(asn_DEF_NGAP_MDT_circle_tags_1[0]), /* 1 */
133
  {
134
#if !defined(ASN_DISABLE_OER_SUPPORT)
135
    0,
136
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
137
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
138
    0,
139
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
140
#if !defined(ASN_DISABLE_JER_SUPPORT)
141
    0,
142
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
143
    SEQUENCE_constraint
144
  },
145
  asn_MBR_NGAP_MDT_circle_1,
146
  3,  /* Elements count */
147
  &asn_SPC_NGAP_MDT_circle_specs_1  /* Additional specs */
148
};
149