2 * Generated by asn1c-0.9.21 (http://lionet.info/asn1c)
3 * From ASN.1 module "RFC1157-SNMP"
4 * found in "RFC1157-SNMP.asn1"
5 * `asn1c -fskeletons-copy`
8 #include <asn_internal.h>
12 static asn_TYPE_member_t asn_MBR_PDU_1[] = {
13 { ATF_NOFLAGS, 0, offsetof(struct PDU, request_id),
14 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
17 0, /* Defer constraints checking to the member type */
18 0, /* PER is not compiled, use -gen-PER */
22 { ATF_NOFLAGS, 0, offsetof(struct PDU, error_status),
23 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
26 0, /* Defer constraints checking to the member type */
27 0, /* PER is not compiled, use -gen-PER */
31 { ATF_NOFLAGS, 0, offsetof(struct PDU, error_index),
32 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
35 0, /* Defer constraints checking to the member type */
36 0, /* PER is not compiled, use -gen-PER */
40 { ATF_NOFLAGS, 0, offsetof(struct PDU, variable_bindings),
41 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
44 0, /* Defer constraints checking to the member type */
45 0, /* PER is not compiled, use -gen-PER */
50 static ber_tlv_tag_t asn_DEF_PDU_tags_1[] = {
51 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
53 static asn_TYPE_tag2member_t asn_MAP_PDU_tag2el_1[] = {
54 { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 2 }, /* request-id at 73 */
55 { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 1 }, /* error-status at 77 */
56 { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 2, -2, 0 }, /* error-index at 86 */
57 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 3, 0, 0 } /* variable-bindings at 90 */
59 static asn_SEQUENCE_specifics_t asn_SPC_PDU_specs_1 = {
61 offsetof(struct PDU, _asn_ctx),
63 4, /* Count of tags in the map */
64 0, 0, 0, /* Optional elements (not needed) */
65 -1, /* Start extensions */
66 -1 /* Stop extensions */
68 asn_TYPE_descriptor_t asn_DEF_PDU = {
78 0, 0, /* No PER support, use "-gen-PER" to enable */
79 0, /* Use generic outmost tag fetcher */
81 sizeof(asn_DEF_PDU_tags_1)
82 /sizeof(asn_DEF_PDU_tags_1[0]), /* 1 */
83 asn_DEF_PDU_tags_1, /* Same as above */
84 sizeof(asn_DEF_PDU_tags_1)
85 /sizeof(asn_DEF_PDU_tags_1[0]), /* 1 */
86 0, /* No PER visible constraints */
88 4, /* Elements count */
89 &asn_SPC_PDU_specs_1 /* Additional specs */