Coverage Report

Created: 2026-07-14 06:05

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/open5gs/lib/asn1c/s1ap/S1AP_MBSFN-ResultToLogInfo.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 "S1AP-IEs"
4
 *  found in "../support/s1ap-r19.1.0/36413-j10.asn"
5
 *  `asn1c -pdu=all -fprefix=S1AP_ -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 "S1AP_MBSFN-ResultToLogInfo.h"
9
10
#include "S1AP_ProtocolExtensionContainer.h"
11
static int
12
memb_S1AP_mBSFN_AreaId_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 >= 0L && value <= 255L)) {
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_S1AP_mBSFN_AreaId_constr_2 CC_NOTUSED = {
38
  { APC_CONSTRAINED,   8,  8,  0,  255 }  /* (0..255) */,
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_S1AP_MBSFN_ResultToLogInfo_1[] = {
44
  { ATF_POINTER, 1, offsetof(struct S1AP_MBSFN_ResultToLogInfo, mBSFN_AreaId),
45
    (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
46
    -1, /* IMPLICIT tag at current level */
47
    &asn_DEF_NativeInteger,
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
      &asn_PER_memb_S1AP_mBSFN_AreaId_constr_2,
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
      memb_S1AP_mBSFN_AreaId_constraint_1
60
    },
61
    0, 0, /* No default value */
62
    "mBSFN-AreaId"
63
    },
64
  { ATF_NOFLAGS, 0, offsetof(struct S1AP_MBSFN_ResultToLogInfo, carrierFreq),
65
    (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
66
    -1, /* IMPLICIT tag at current level */
67
    &asn_DEF_S1AP_EARFCN,
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
      0,
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
      0
80
    },
81
    0, 0, /* No default value */
82
    "carrierFreq"
83
    },
84
  { ATF_POINTER, 1, offsetof(struct S1AP_MBSFN_ResultToLogInfo, iE_Extensions),
85
    (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
86
    -1, /* IMPLICIT tag at current level */
87
    &asn_DEF_S1AP_ProtocolExtensionContainer_8386P100,
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_S1AP_MBSFN_ResultToLogInfo_oms_1[] = { 0, 2 };
106
static const ber_tlv_tag_t asn_DEF_S1AP_MBSFN_ResultToLogInfo_tags_1[] = {
107
  (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
108
};
109
static const asn_TYPE_tag2member_t asn_MAP_S1AP_MBSFN_ResultToLogInfo_tag2el_1[] = {
110
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* mBSFN-AreaId */
111
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* carrierFreq */
112
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */
113
};
114
asn_SEQUENCE_specifics_t asn_SPC_S1AP_MBSFN_ResultToLogInfo_specs_1 = {
115
  sizeof(struct S1AP_MBSFN_ResultToLogInfo),
116
  offsetof(struct S1AP_MBSFN_ResultToLogInfo, _asn_ctx),
117
  asn_MAP_S1AP_MBSFN_ResultToLogInfo_tag2el_1,
118
  3,  /* Count of tags in the map */
119
  asn_MAP_S1AP_MBSFN_ResultToLogInfo_oms_1, /* Optional members */
120
  2, 0, /* Root/Additions */
121
  3,  /* First extension addition */
122
};
123
asn_TYPE_descriptor_t asn_DEF_S1AP_MBSFN_ResultToLogInfo = {
124
  "MBSFN-ResultToLogInfo",
125
  "MBSFN-ResultToLogInfo",
126
  &asn_OP_SEQUENCE,
127
  asn_DEF_S1AP_MBSFN_ResultToLogInfo_tags_1,
128
  sizeof(asn_DEF_S1AP_MBSFN_ResultToLogInfo_tags_1)
129
    /sizeof(asn_DEF_S1AP_MBSFN_ResultToLogInfo_tags_1[0]), /* 1 */
130
  asn_DEF_S1AP_MBSFN_ResultToLogInfo_tags_1,  /* Same as above */
131
  sizeof(asn_DEF_S1AP_MBSFN_ResultToLogInfo_tags_1)
132
    /sizeof(asn_DEF_S1AP_MBSFN_ResultToLogInfo_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_S1AP_MBSFN_ResultToLogInfo_1,
146
  3,  /* Elements count */
147
  &asn_SPC_S1AP_MBSFN_ResultToLogInfo_specs_1 /* Additional specs */
148
};
149