/src/open5gs/lib/asn1c/ngap/NGAP_MaskedIMEISV.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_MaskedIMEISV.h" |
9 | | |
10 | | int |
11 | | NGAP_MaskedIMEISV_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, |
12 | 0 | asn_app_constraint_failed_f *ctfailcb, void *app_key) { |
13 | 0 | const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; |
14 | 0 | size_t size; |
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 | if(st->size > 0) { |
24 | | /* Size in bits */ |
25 | 0 | size = 8 * st->size - (st->bits_unused & 0x07); |
26 | 0 | } else { |
27 | 0 | size = 0; |
28 | 0 | } |
29 | | |
30 | 0 | if((size == 64UL)) { |
31 | | /* Constraint check succeeded */ |
32 | 0 | return 0; |
33 | 0 | } else { |
34 | 0 | ASN__CTFAIL(app_key, td, sptr, |
35 | 0 | "%s: constraint failed (%s:%d)", |
36 | 0 | td->name, __FILE__, __LINE__); |
37 | 0 | return -1; |
38 | 0 | } |
39 | 0 | } |
40 | | |
41 | | /* |
42 | | * This type is implemented using BIT_STRING, |
43 | | * so here we adjust the DEF accordingly. |
44 | | */ |
45 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
46 | | asn_per_constraints_t asn_PER_type_NGAP_MaskedIMEISV_constr_1 CC_NOTUSED = { |
47 | | { APC_UNCONSTRAINED, -1, -1, 0, 0 }, |
48 | | { APC_CONSTRAINED, 0, 0, 64, 64 } /* (SIZE(64..64)) */, |
49 | | 0, 0 /* No PER value map */ |
50 | | }; |
51 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
52 | | static const ber_tlv_tag_t asn_DEF_NGAP_MaskedIMEISV_tags_1[] = { |
53 | | (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) |
54 | | }; |
55 | | asn_TYPE_descriptor_t asn_DEF_NGAP_MaskedIMEISV = { |
56 | | "MaskedIMEISV", |
57 | | "MaskedIMEISV", |
58 | | &asn_OP_BIT_STRING, |
59 | | asn_DEF_NGAP_MaskedIMEISV_tags_1, |
60 | | sizeof(asn_DEF_NGAP_MaskedIMEISV_tags_1) |
61 | | /sizeof(asn_DEF_NGAP_MaskedIMEISV_tags_1[0]), /* 1 */ |
62 | | asn_DEF_NGAP_MaskedIMEISV_tags_1, /* Same as above */ |
63 | | sizeof(asn_DEF_NGAP_MaskedIMEISV_tags_1) |
64 | | /sizeof(asn_DEF_NGAP_MaskedIMEISV_tags_1[0]), /* 1 */ |
65 | | { |
66 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
67 | | 0, |
68 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
69 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
70 | | &asn_PER_type_NGAP_MaskedIMEISV_constr_1, |
71 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
72 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
73 | | 0, |
74 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
75 | | NGAP_MaskedIMEISV_constraint |
76 | | }, |
77 | | 0, 0, /* No members */ |
78 | | &asn_SPC_BIT_STRING_specs /* Additional specs */ |
79 | | }; |
80 | | |