Coverage Report

Created: 2026-09-27 06:19

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/open5gs/lib/asn1c/s1ap/S1AP_CauseProtocol.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_CauseProtocol.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_S1AP_CauseProtocol_constr_1 CC_NOTUSED = {
16
  { APC_CONSTRAINED | APC_EXTENSIBLE,  3,  3,  0,  6 }  /* (0..6,...) */,
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_S1AP_CauseProtocol_value2enum_1[] = {
22
  { 0,  21, "transfer-syntax-error" },
23
  { 1,  28, "abstract-syntax-error-reject" },
24
  { 2,  39, "abstract-syntax-error-ignore-and-notify" },
25
  { 3,  42, "message-not-compatible-with-receiver-state" },
26
  { 4,  14, "semantic-error" },
27
  { 5,  49, "abstract-syntax-error-falsely-constructed-message" },
28
  { 6,  11, "unspecified" }
29
  /* This list is extensible */
30
};
31
static int asn_validate_S1AP_CauseProtocol_1(const asn_TYPE_descriptor_t *td,
32
                       const void *sptr,
33
                       asn_app_constraint_failed_f *ctfailcb,
34
0
                       void* app_key) {
35
0
    if(! sptr) { return -1; }
36
0
    e_S1AP_CauseProtocol value = *(e_S1AP_CauseProtocol*)sptr;
37
0
    switch(value) {
38
0
    case S1AP_CauseProtocol_transfer_syntax_error:
39
0
    case S1AP_CauseProtocol_abstract_syntax_error_reject:
40
0
    case S1AP_CauseProtocol_abstract_syntax_error_ignore_and_notify:
41
0
    case S1AP_CauseProtocol_message_not_compatible_with_receiver_state:
42
0
    case S1AP_CauseProtocol_semantic_error:
43
0
    case S1AP_CauseProtocol_abstract_syntax_error_falsely_constructed_message:
44
0
    case S1AP_CauseProtocol_unspecified:
45
0
        return 0;
46
0
    }
47
0
    return -1;
48
0
}
49
static const unsigned int asn_MAP_S1AP_CauseProtocol_enum2value_1[] = {
50
  5,  /* abstract-syntax-error-falsely-constructed-message(5) */
51
  2,  /* abstract-syntax-error-ignore-and-notify(2) */
52
  1,  /* abstract-syntax-error-reject(1) */
53
  3,  /* message-not-compatible-with-receiver-state(3) */
54
  4,  /* semantic-error(4) */
55
  0,  /* transfer-syntax-error(0) */
56
  6 /* unspecified(6) */
57
  /* This list is extensible */
58
};
59
const asn_INTEGER_specifics_t asn_SPC_S1AP_CauseProtocol_specs_1 = {
60
  asn_MAP_S1AP_CauseProtocol_value2enum_1,  /* "tag" => N; sorted by tag */
61
  asn_MAP_S1AP_CauseProtocol_enum2value_1,  /* N => "tag"; sorted by N */
62
  7,  /* Number of elements in the maps */
63
  8,  /* Extensions before this member */
64
  1,  /* Strict enumeration */
65
  0,  /* Native long size */
66
  0
67
};
68
static const ber_tlv_tag_t asn_DEF_S1AP_CauseProtocol_tags_1[] = {
69
  (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
70
};
71
asn_TYPE_descriptor_t asn_DEF_S1AP_CauseProtocol = {
72
  "CauseProtocol",
73
  "CauseProtocol",
74
  &asn_OP_NativeEnumerated,
75
  asn_DEF_S1AP_CauseProtocol_tags_1,
76
  sizeof(asn_DEF_S1AP_CauseProtocol_tags_1)
77
    /sizeof(asn_DEF_S1AP_CauseProtocol_tags_1[0]), /* 1 */
78
  asn_DEF_S1AP_CauseProtocol_tags_1,  /* Same as above */
79
  sizeof(asn_DEF_S1AP_CauseProtocol_tags_1)
80
    /sizeof(asn_DEF_S1AP_CauseProtocol_tags_1[0]), /* 1 */
81
  {
82
#if !defined(ASN_DISABLE_OER_SUPPORT)
83
    0,
84
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
85
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
86
    &asn_PER_type_S1AP_CauseProtocol_constr_1,
87
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
88
#if !defined(ASN_DISABLE_JER_SUPPORT)
89
    0,
90
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
91
    asn_validate_S1AP_CauseProtocol_1
92
  },
93
  0, 0, /* Defined elsewhere */
94
  &asn_SPC_S1AP_CauseProtocol_specs_1 /* Additional specs */
95
};
96