Coverage Report

Created: 2026-06-30 06:14

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/open5gs/lib/asn1c/s1ap/S1AP_SubscriberProfileIDforRFP.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_SubscriberProfileIDforRFP.h"
9
10
int
11
S1AP_SubscriberProfileIDforRFP_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
12
0
      asn_app_constraint_failed_f *ctfailcb, void *app_key) {
13
0
  long value;
14
  
15
0
  if(!sptr) {
16
0
    ASN__CTFAIL(app_key, td, sptr,
17
0
      "%s: value not given (%s:%d)",
18
0
      td->name, __FILE__, __LINE__);
19
0
    return -1;
20
0
  }
21
  
22
0
  value = *(const long *)sptr;
23
  
24
0
  if((value >= 1L && value <= 256L)) {
25
    /* Constraint check succeeded */
26
0
    return 0;
27
0
  } else {
28
0
    ASN__CTFAIL(app_key, td, sptr,
29
0
      "%s: constraint failed (%s:%d)",
30
0
      td->name, __FILE__, __LINE__);
31
0
    return -1;
32
0
  }
33
0
}
34
35
/*
36
 * This type is implemented using NativeInteger,
37
 * so here we adjust the DEF accordingly.
38
 */
39
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
40
asn_per_constraints_t asn_PER_type_S1AP_SubscriberProfileIDforRFP_constr_1 CC_NOTUSED = {
41
  { APC_CONSTRAINED,   8,  8,  1,  256 }  /* (1..256) */,
42
  { APC_UNCONSTRAINED,  -1, -1,  0,  0 },
43
  0, 0  /* No PER value map */
44
};
45
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
46
static const ber_tlv_tag_t asn_DEF_S1AP_SubscriberProfileIDforRFP_tags_1[] = {
47
  (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
48
};
49
asn_TYPE_descriptor_t asn_DEF_S1AP_SubscriberProfileIDforRFP = {
50
  "SubscriberProfileIDforRFP",
51
  "SubscriberProfileIDforRFP",
52
  &asn_OP_NativeInteger,
53
  asn_DEF_S1AP_SubscriberProfileIDforRFP_tags_1,
54
  sizeof(asn_DEF_S1AP_SubscriberProfileIDforRFP_tags_1)
55
    /sizeof(asn_DEF_S1AP_SubscriberProfileIDforRFP_tags_1[0]), /* 1 */
56
  asn_DEF_S1AP_SubscriberProfileIDforRFP_tags_1,  /* Same as above */
57
  sizeof(asn_DEF_S1AP_SubscriberProfileIDforRFP_tags_1)
58
    /sizeof(asn_DEF_S1AP_SubscriberProfileIDforRFP_tags_1[0]), /* 1 */
59
  {
60
#if !defined(ASN_DISABLE_OER_SUPPORT)
61
    0,
62
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
63
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
64
    &asn_PER_type_S1AP_SubscriberProfileIDforRFP_constr_1,
65
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
66
#if !defined(ASN_DISABLE_JER_SUPPORT)
67
    0,
68
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
69
    S1AP_SubscriberProfileIDforRFP_constraint
70
  },
71
  0, 0, /* No members */
72
  0 /* No specifics */
73
};
74