2 * Generated by asn1c-0.9.28 (http://lionet.info/asn1c)
3 * From ASN.1 module "RFC1157-SNMP"
4 * found in "RFC1157-SNMP.asn1"
5 * `asn1c -S/mnt/data/software/asn1c/skeletons -fcompound-names -fwide-types`
10 static asn_TYPE_member_t asn_MBR_VarBind_1[] = {
11 { ATF_NOFLAGS, 0, offsetof(struct VarBind, name),
12 (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)),
15 0, /* Defer constraints checking to the member type */
16 0, /* PER is not compiled, use -gen-PER */
20 { ATF_NOFLAGS, 0, offsetof(struct VarBind, value),
21 -1 /* Ambiguous tag (CHOICE?) */,
23 &asn_DEF_ObjectSyntax,
24 0, /* Defer constraints checking to the member type */
25 0, /* PER is not compiled, use -gen-PER */
30 static const ber_tlv_tag_t asn_DEF_VarBind_tags_1[] = {
31 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
33 static const asn_TYPE_tag2member_t asn_MAP_VarBind_tag2el_1[] = {
34 { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, 0, 0 }, /* number */
35 { (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 1, 0, 0 }, /* string */
36 { (ASN_TAG_CLASS_UNIVERSAL | (5 << 2)), 1, 0, 0 }, /* empty */
37 { (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)), 0, 0, 1 }, /* name */
38 { (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)), 1, -1, 0 }, /* object */
39 { (ASN_TAG_CLASS_APPLICATION | (0 << 2)), 1, 0, 0 }, /* internet */
40 { (ASN_TAG_CLASS_APPLICATION | (1 << 2)), 1, 0, 0 }, /* counter */
41 { (ASN_TAG_CLASS_APPLICATION | (2 << 2)), 1, 0, 0 }, /* gauge */
42 { (ASN_TAG_CLASS_APPLICATION | (3 << 2)), 1, 0, 0 }, /* ticks */
43 { (ASN_TAG_CLASS_APPLICATION | (4 << 2)), 1, 0, 0 } /* arbitrary */
45 static asn_SEQUENCE_specifics_t asn_SPC_VarBind_specs_1 = {
46 sizeof(struct VarBind),
47 offsetof(struct VarBind, _asn_ctx),
48 asn_MAP_VarBind_tag2el_1,
49 10, /* Count of tags in the map */
50 0, 0, 0, /* Optional elements (not needed) */
51 -1, /* Start extensions */
52 -1 /* Stop extensions */
54 asn_TYPE_descriptor_t asn_DEF_VarBind = {
64 0, 0, /* No PER support, use "-gen-PER" to enable */
65 0, /* Use generic outmost tag fetcher */
66 asn_DEF_VarBind_tags_1,
67 sizeof(asn_DEF_VarBind_tags_1)
68 /sizeof(asn_DEF_VarBind_tags_1[0]), /* 1 */
69 asn_DEF_VarBind_tags_1, /* Same as above */
70 sizeof(asn_DEF_VarBind_tags_1)
71 /sizeof(asn_DEF_VarBind_tags_1[0]), /* 1 */
72 0, /* No PER visible constraints */
74 2, /* Elements count */
75 &asn_SPC_VarBind_specs_1 /* Additional specs */