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_OverloadAction.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_OverloadAction.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_OverloadAction_constr_1 CC_NOTUSED = {
16
  { APC_CONSTRAINED | APC_EXTENSIBLE,  2,  2,  0,  2 }  /* (0..2,...) */,
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_OverloadAction_value2enum_1[] = {
22
  { 0,  26, "reject-non-emergency-mo-dt" },
23
  { 1,  24, "reject-rrc-cr-signalling" },
24
  { 2,  61, "permit-emergency-sessions-and-mobile-terminated-services-only" },
25
  { 3,  65, "permit-high-priority-sessions-and-mobile-terminated-services-only" },
26
  { 4,  28, "reject-delay-tolerant-access" },
27
  { 5,  89, "permit-high-priority-sessions-and-exception-reporting-and-mobile-terminated-services-only" },
28
  { 6,  56, "not-accept-mo-data-or-delay-tolerant-access-from-CP-CIoT" }
29
  /* This list is extensible */
30
};
31
static int asn_validate_S1AP_OverloadAction_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_OverloadAction value = *(e_S1AP_OverloadAction*)sptr;
37
0
    switch(value) {
38
0
    case S1AP_OverloadAction_reject_non_emergency_mo_dt:
39
0
    case S1AP_OverloadAction_reject_rrc_cr_signalling:
40
0
    case S1AP_OverloadAction_permit_emergency_sessions_and_mobile_terminated_services_only:
41
0
    case S1AP_OverloadAction_permit_high_priority_sessions_and_mobile_terminated_services_only:
42
0
    case S1AP_OverloadAction_reject_delay_tolerant_access:
43
0
    case S1AP_OverloadAction_permit_high_priority_sessions_and_exception_reporting_and_mobile_terminated_services_only:
44
0
    case S1AP_OverloadAction_not_accept_mo_data_or_delay_tolerant_access_from_CP_CIoT:
45
0
        return 0;
46
0
    }
47
0
    return -1;
48
0
}
49
static const unsigned int asn_MAP_S1AP_OverloadAction_enum2value_1[] = {
50
  6,  /* not-accept-mo-data-or-delay-tolerant-access-from-CP-CIoT(6) */
51
  2,  /* permit-emergency-sessions-and-mobile-terminated-services-only(2) */
52
  5,  /* permit-high-priority-sessions-and-exception-reporting-and-mobile-terminated-services-only(5) */
53
  3,  /* permit-high-priority-sessions-and-mobile-terminated-services-only(3) */
54
  4,  /* reject-delay-tolerant-access(4) */
55
  0,  /* reject-non-emergency-mo-dt(0) */
56
  1 /* reject-rrc-cr-signalling(1) */
57
  /* This list is extensible */
58
};
59
const asn_INTEGER_specifics_t asn_SPC_S1AP_OverloadAction_specs_1 = {
60
  asn_MAP_S1AP_OverloadAction_value2enum_1, /* "tag" => N; sorted by tag */
61
  asn_MAP_S1AP_OverloadAction_enum2value_1, /* N => "tag"; sorted by N */
62
  7,  /* Number of elements in the maps */
63
  4,  /* 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_OverloadAction_tags_1[] = {
69
  (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
70
};
71
asn_TYPE_descriptor_t asn_DEF_S1AP_OverloadAction = {
72
  "OverloadAction",
73
  "OverloadAction",
74
  &asn_OP_NativeEnumerated,
75
  asn_DEF_S1AP_OverloadAction_tags_1,
76
  sizeof(asn_DEF_S1AP_OverloadAction_tags_1)
77
    /sizeof(asn_DEF_S1AP_OverloadAction_tags_1[0]), /* 1 */
78
  asn_DEF_S1AP_OverloadAction_tags_1, /* Same as above */
79
  sizeof(asn_DEF_S1AP_OverloadAction_tags_1)
80
    /sizeof(asn_DEF_S1AP_OverloadAction_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_OverloadAction_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_OverloadAction_1
92
  },
93
  0, 0, /* Defined elsewhere */
94
  &asn_SPC_S1AP_OverloadAction_specs_1  /* Additional specs */
95
};
96