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_VarBind_1[] = {
13 { ATF_NOFLAGS, 0, offsetof(struct VarBind, name),
14 (ASN_TAG_CLASS_UNIVERSAL | (6 << 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 VarBind, value),
23 -1 /* Ambiguous tag (CHOICE?) */,
25 &asn_DEF_ObjectSyntax,
26 0, /* Defer constraints checking to the member type */
27 0, /* PER is not compiled, use -gen-PER */
32 static ber_tlv_tag_t asn_DEF_VarBind_tags_1[] = {
33 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
35 static asn_TYPE_tag2member_t asn_MAP_VarBind_tag2el_1[] = {
36 { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, 0, 0 }, /* number at 73 */
37 { (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 1, 0, 0 }, /* string at 76 */
38 { (ASN_TAG_CLASS_UNIVERSAL | (5 << 2)), 1, 0, 0 }, /* empty at 82 */
39 { (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)), 0, 0, 1 }, /* name at 133 */
40 { (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)), 1, -1, 0 }, /* object at 79 */
41 { (ASN_TAG_CLASS_APPLICATION | (0 << 2)), 1, 0, 0 }, /* internet at 113 */
42 { (ASN_TAG_CLASS_APPLICATION | (1 << 2)), 1, 0, 0 }, /* counter at 91 */
43 { (ASN_TAG_CLASS_APPLICATION | (2 << 2)), 1, 0, 0 }, /* gauge at 94 */
44 { (ASN_TAG_CLASS_APPLICATION | (3 << 2)), 1, 0, 0 }, /* ticks at 97 */
45 { (ASN_TAG_CLASS_APPLICATION | (4 << 2)), 1, 0, 0 } /* arbitrary at 104 */
47 static asn_SEQUENCE_specifics_t asn_SPC_VarBind_specs_1 = {
48 sizeof(struct VarBind),
49 offsetof(struct VarBind, _asn_ctx),
50 asn_MAP_VarBind_tag2el_1,
51 10, /* Count of tags in the map */
52 0, 0, 0, /* Optional elements (not needed) */
53 -1, /* Start extensions */
54 -1 /* Stop extensions */
56 asn_TYPE_descriptor_t asn_DEF_VarBind = {
66 0, 0, /* No PER support, use "-gen-PER" to enable */
67 0, /* Use generic outmost tag fetcher */
68 asn_DEF_VarBind_tags_1,
69 sizeof(asn_DEF_VarBind_tags_1)
70 /sizeof(asn_DEF_VarBind_tags_1[0]), /* 1 */
71 asn_DEF_VarBind_tags_1, /* Same as above */
72 sizeof(asn_DEF_VarBind_tags_1)
73 /sizeof(asn_DEF_VarBind_tags_1[0]), /* 1 */
74 0, /* No PER visible constraints */
76 2, /* Elements count */
77 &asn_SPC_VarBind_specs_1 /* Additional specs */