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_Message_1[] = {
13 { ATF_NOFLAGS, 0, offsetof(struct Message, version),
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 Message, community),
23 (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)),
25 &asn_DEF_OCTET_STRING,
26 0, /* Defer constraints checking to the member type */
27 0, /* PER is not compiled, use -gen-PER */
31 { ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct Message, data),
32 -1 /* Ambiguous tag (ANY?) */,
35 0, /* Defer constraints checking to the member type */
36 0, /* PER is not compiled, use -gen-PER */
41 static ber_tlv_tag_t asn_DEF_Message_tags_1[] = {
42 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
44 static asn_TYPE_tag2member_t asn_MAP_Message_tag2el_1[] = {
45 { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* version at 18 */
46 { (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 1, 0, 0 } /* community at 22 */
48 static asn_SEQUENCE_specifics_t asn_SPC_Message_specs_1 = {
49 sizeof(struct Message),
50 offsetof(struct Message, _asn_ctx),
51 asn_MAP_Message_tag2el_1,
52 2, /* Count of tags in the map */
53 0, 0, 0, /* Optional elements (not needed) */
54 -1, /* Start extensions */
55 -1 /* Stop extensions */
57 asn_TYPE_descriptor_t asn_DEF_Message = {
67 0, 0, /* No PER support, use "-gen-PER" to enable */
68 0, /* Use generic outmost tag fetcher */
69 asn_DEF_Message_tags_1,
70 sizeof(asn_DEF_Message_tags_1)
71 /sizeof(asn_DEF_Message_tags_1[0]), /* 1 */
72 asn_DEF_Message_tags_1, /* Same as above */
73 sizeof(asn_DEF_Message_tags_1)
74 /sizeof(asn_DEF_Message_tags_1[0]), /* 1 */
75 0, /* No PER visible constraints */
77 3, /* Elements count */
78 &asn_SPC_Message_specs_1 /* Additional specs */