2 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3 * From ASN.1 module "RFC1157-SNMP"
4 * found in "RFC1157-SNMP.asn1"
5 * `asn1c -S /home/faust/software/asn1c/skeletons/ -fcompound-names -fwide-types`
10 static asn_oer_constraints_t asn_OER_type_PDUs_constr_1 CC_NOTUSED = {
13 asn_per_constraints_t asn_PER_type_PDUs_constr_1 CC_NOTUSED = {
14 { APC_CONSTRAINED, 3, 3, 0, 4 } /* (0..4) */,
15 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
16 0, 0 /* No PER value map */
18 asn_TYPE_member_t asn_MBR_PDUs_1[] = {
19 { ATF_NOFLAGS, 0, offsetof(struct PDUs, choice.get_request),
20 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
22 &asn_DEF_GetRequest_PDU,
25 0, 0, /* No default value */
28 { ATF_NOFLAGS, 0, offsetof(struct PDUs, choice.get_next_request),
29 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
31 &asn_DEF_GetNextRequest_PDU,
34 0, 0, /* No default value */
37 { ATF_NOFLAGS, 0, offsetof(struct PDUs, choice.get_response),
38 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
40 &asn_DEF_GetResponse_PDU,
43 0, 0, /* No default value */
46 { ATF_NOFLAGS, 0, offsetof(struct PDUs, choice.set_request),
47 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
49 &asn_DEF_SetRequest_PDU,
52 0, 0, /* No default value */
55 { ATF_NOFLAGS, 0, offsetof(struct PDUs, choice.trap),
56 (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
61 0, 0, /* No default value */
65 static const asn_TYPE_tag2member_t asn_MAP_PDUs_tag2el_1[] = {
66 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* get-request */
67 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* get-next-request */
68 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* get-response */
69 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* set-request */
70 { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* trap */
72 asn_CHOICE_specifics_t asn_SPC_PDUs_specs_1 = {
74 offsetof(struct PDUs, _asn_ctx),
75 offsetof(struct PDUs, present),
76 sizeof(((struct PDUs *)0)->present),
77 asn_MAP_PDUs_tag2el_1,
78 5, /* Count of tags in the map */
80 -1 /* Extensions start */
82 asn_TYPE_descriptor_t asn_DEF_PDUs = {
86 0, /* No effective tags (pointer) */
87 0, /* No effective tags (count) */
88 0, /* No tags (pointer) */
89 0, /* No tags (count) */
90 { &asn_OER_type_PDUs_constr_1, &asn_PER_type_PDUs_constr_1, CHOICE_constraint },
92 5, /* Elements count */
93 &asn_SPC_PDUs_specs_1 /* Additional specs */