/src/open5gs/lib/asn1c/s1ap/S1AP_ForbiddenInterRATs.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_ForbiddenInterRATs.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_ForbiddenInterRATs_constr_1 CC_NOTUSED = { |
16 | | { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */, |
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_ForbiddenInterRATs_value2enum_1[] = { |
22 | | { 0, 3, "all" }, |
23 | | { 1, 5, "geran" }, |
24 | | { 2, 5, "utran" }, |
25 | | { 3, 8, "cdma2000" }, |
26 | | { 4, 13, "geranandutran" }, |
27 | | { 5, 16, "cdma2000andutran" } |
28 | | /* This list is extensible */ |
29 | | }; |
30 | | static int asn_validate_S1AP_ForbiddenInterRATs_1(const asn_TYPE_descriptor_t *td, |
31 | | const void *sptr, |
32 | | asn_app_constraint_failed_f *ctfailcb, |
33 | 0 | void* app_key) { |
34 | 0 | if(! sptr) { return -1; } |
35 | 0 | e_S1AP_ForbiddenInterRATs value = *(e_S1AP_ForbiddenInterRATs*)sptr; |
36 | 0 | switch(value) { |
37 | 0 | case S1AP_ForbiddenInterRATs_all: |
38 | 0 | case S1AP_ForbiddenInterRATs_geran: |
39 | 0 | case S1AP_ForbiddenInterRATs_utran: |
40 | 0 | case S1AP_ForbiddenInterRATs_cdma2000: |
41 | 0 | case S1AP_ForbiddenInterRATs_geranandutran: |
42 | 0 | case S1AP_ForbiddenInterRATs_cdma2000andutran: |
43 | 0 | return 0; |
44 | 0 | } |
45 | 0 | return -1; |
46 | 0 | } |
47 | | static const unsigned int asn_MAP_S1AP_ForbiddenInterRATs_enum2value_1[] = { |
48 | | 0, /* all(0) */ |
49 | | 3, /* cdma2000(3) */ |
50 | | 5, /* cdma2000andutran(5) */ |
51 | | 1, /* geran(1) */ |
52 | | 4, /* geranandutran(4) */ |
53 | | 2 /* utran(2) */ |
54 | | /* This list is extensible */ |
55 | | }; |
56 | | const asn_INTEGER_specifics_t asn_SPC_S1AP_ForbiddenInterRATs_specs_1 = { |
57 | | asn_MAP_S1AP_ForbiddenInterRATs_value2enum_1, /* "tag" => N; sorted by tag */ |
58 | | asn_MAP_S1AP_ForbiddenInterRATs_enum2value_1, /* N => "tag"; sorted by N */ |
59 | | 6, /* Number of elements in the maps */ |
60 | | 5, /* Extensions before this member */ |
61 | | 1, /* Strict enumeration */ |
62 | | 0, /* Native long size */ |
63 | | 0 |
64 | | }; |
65 | | static const ber_tlv_tag_t asn_DEF_S1AP_ForbiddenInterRATs_tags_1[] = { |
66 | | (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) |
67 | | }; |
68 | | asn_TYPE_descriptor_t asn_DEF_S1AP_ForbiddenInterRATs = { |
69 | | "ForbiddenInterRATs", |
70 | | "ForbiddenInterRATs", |
71 | | &asn_OP_NativeEnumerated, |
72 | | asn_DEF_S1AP_ForbiddenInterRATs_tags_1, |
73 | | sizeof(asn_DEF_S1AP_ForbiddenInterRATs_tags_1) |
74 | | /sizeof(asn_DEF_S1AP_ForbiddenInterRATs_tags_1[0]), /* 1 */ |
75 | | asn_DEF_S1AP_ForbiddenInterRATs_tags_1, /* Same as above */ |
76 | | sizeof(asn_DEF_S1AP_ForbiddenInterRATs_tags_1) |
77 | | /sizeof(asn_DEF_S1AP_ForbiddenInterRATs_tags_1[0]), /* 1 */ |
78 | | { |
79 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
80 | | 0, |
81 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
82 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
83 | | &asn_PER_type_S1AP_ForbiddenInterRATs_constr_1, |
84 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
85 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
86 | | 0, |
87 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
88 | | asn_validate_S1AP_ForbiddenInterRATs_1 |
89 | | }, |
90 | | 0, 0, /* Defined elsewhere */ |
91 | | &asn_SPC_S1AP_ForbiddenInterRATs_specs_1 /* Additional specs */ |
92 | | }; |
93 | | |