11memb_ctlSequence_constraint_1(
const asn_TYPE_descriptor_t *td,
const void *sptr,
12 asn_app_constraint_failed_f *ctfailcb,
void *app_key) {
16 ASN__CTFAIL(app_key, td, sptr,
17 "%s: value not given (%s:%d)",
18 td->name, __FILE__, __LINE__);
22 value = *(
const long *)sptr;
24 if((value >= 0L && value <= 255L)) {
28 ASN__CTFAIL(app_key, td, sptr,
29 "%s: constraint failed (%s:%d)",
30 td->name, __FILE__, __LINE__);
35#if !defined(ASN_DISABLE_OER_SUPPORT)
36static asn_oer_constraints_t asn_OER_memb_ctlSequence_constr_5 CC_NOTUSED = {
40#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
41static asn_per_constraints_t asn_PER_memb_ctlSequence_constr_5 CC_NOTUSED = {
42 { APC_CONSTRAINED, 8, 8, 0, 255 } ,
43 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
47static asn_TYPE_member_t asn_MBR_ctlCommands_6[] = {
54#if !defined(ASN_DISABLE_OER_SUPPORT)
57#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
66static const ber_tlv_tag_t asn_DEF_ctlCommands_tags_6[] = {
67 (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
68 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
70static asn_SET_OF_specifics_t asn_SPC_ctlCommands_specs_6 = {
71 sizeof(
struct CtlFormat__ctlCommands),
72 offsetof(struct CtlFormat__ctlCommands, _asn_ctx),
76asn_TYPE_descriptor_t asn_DEF_ctlCommands_6 = {
80 asn_DEF_ctlCommands_tags_6,
81 sizeof(asn_DEF_ctlCommands_tags_6)
82 /
sizeof(asn_DEF_ctlCommands_tags_6[0]) - 1,
83 asn_DEF_ctlCommands_tags_6,
84 sizeof(asn_DEF_ctlCommands_tags_6)
85 /
sizeof(asn_DEF_ctlCommands_tags_6[0]),
87#if !defined(ASN_DISABLE_OER_SUPPORT)
90#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
93 SEQUENCE_OF_constraint
95 asn_MBR_ctlCommands_6,
97 &asn_SPC_ctlCommands_specs_6
100asn_TYPE_member_t asn_MBR_CtlFormat_1[] = {
101 { ATF_NOFLAGS, 0, offsetof(
struct CtlFormat, version),
102 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
107#if !defined(ASN_DISABLE_OER_SUPPORT)
110#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
118 { ATF_NOFLAGS, 0, offsetof(
struct CtlFormat, nextUpdate),
119 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
124#if !defined(ASN_DISABLE_OER_SUPPORT)
127#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
135 { ATF_NOFLAGS, 0, offsetof(
struct CtlFormat, isFullCtl),
136 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
141#if !defined(ASN_DISABLE_OER_SUPPORT)
144#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
152 { ATF_NOFLAGS, 0, offsetof(
struct CtlFormat, ctlSequence),
153 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
155 &asn_DEF_NativeInteger,
158#if !defined(ASN_DISABLE_OER_SUPPORT)
159 &asn_OER_memb_ctlSequence_constr_5,
161#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
162 &asn_PER_memb_ctlSequence_constr_5,
164 memb_ctlSequence_constraint_1
169 { ATF_NOFLAGS, 0, offsetof(
struct CtlFormat, ctlCommands),
170 (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
172 &asn_DEF_ctlCommands_6,
175#if !defined(ASN_DISABLE_OER_SUPPORT)
178#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
187static const ber_tlv_tag_t asn_DEF_CtlFormat_tags_1[] = {
188 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
190static const asn_TYPE_tag2member_t asn_MAP_CtlFormat_tag2el_1[] = {
191 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 },
192 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 },
193 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 },
194 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 },
195 { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }
197asn_SEQUENCE_specifics_t asn_SPC_CtlFormat_specs_1 = {
200 asn_MAP_CtlFormat_tag2el_1,
205asn_TYPE_descriptor_t asn_DEF_CtlFormat = {
209 asn_DEF_CtlFormat_tags_1,
210 sizeof(asn_DEF_CtlFormat_tags_1)
211 /
sizeof(asn_DEF_CtlFormat_tags_1[0]),
212 asn_DEF_CtlFormat_tags_1,
213 sizeof(asn_DEF_CtlFormat_tags_1)
214 /
sizeof(asn_DEF_CtlFormat_tags_1[0]),
216#if !defined(ASN_DISABLE_OER_SUPPORT)
219#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
226 &asn_SPC_CtlFormat_specs_1