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 asn_TYPE_member_t asn_MBR_Trap_PDU_1[] = {
11 { ATF_NOFLAGS, 0, offsetof(struct Trap_PDU, enterprise),
12 (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)),
14 &asn_DEF_OBJECT_IDENTIFIER,
17 0, 0, /* No default value */
20 { ATF_NOFLAGS, 0, offsetof(struct Trap_PDU, agent_addr),
21 -1 /* Ambiguous tag (CHOICE?) */,
23 &asn_DEF_NetworkAddress,
26 0, 0, /* No default value */
29 { ATF_NOFLAGS, 0, offsetof(struct Trap_PDU, generic_trap),
30 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
35 0, 0, /* No default value */
38 { ATF_NOFLAGS, 0, offsetof(struct Trap_PDU, specific_trap),
39 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
44 0, 0, /* No default value */
47 { ATF_NOFLAGS, 0, offsetof(struct Trap_PDU, time_stamp),
48 (ASN_TAG_CLASS_APPLICATION | (3 << 2)),
53 0, 0, /* No default value */
56 { ATF_NOFLAGS, 0, offsetof(struct Trap_PDU, variable_bindings),
57 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
62 0, 0, /* No default value */
66 static const ber_tlv_tag_t asn_DEF_Trap_PDU_tags_1[] = {
67 (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
68 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
70 static const asn_TYPE_tag2member_t asn_MAP_Trap_PDU_tag2el_1[] = {
71 { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 2, 0, 1 }, /* generic-trap */
72 { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 3, -1, 0 }, /* specific-trap */
73 { (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)), 0, 0, 0 }, /* enterprise */
74 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 5, 0, 0 }, /* variable-bindings */
75 { (ASN_TAG_CLASS_APPLICATION | (0 << 2)), 1, 0, 0 }, /* internet */
76 { (ASN_TAG_CLASS_APPLICATION | (3 << 2)), 4, 0, 0 } /* time-stamp */
78 asn_SEQUENCE_specifics_t asn_SPC_Trap_PDU_specs_1 = {
79 sizeof(struct Trap_PDU),
80 offsetof(struct Trap_PDU, _asn_ctx),
81 asn_MAP_Trap_PDU_tag2el_1,
82 6, /* Count of tags in the map */
83 0, 0, 0, /* Optional elements (not needed) */
84 -1, /* First extension addition */
86 asn_TYPE_descriptor_t asn_DEF_Trap_PDU = {
90 asn_DEF_Trap_PDU_tags_1,
91 sizeof(asn_DEF_Trap_PDU_tags_1)
92 /sizeof(asn_DEF_Trap_PDU_tags_1[0]) - 1, /* 1 */
93 asn_DEF_Trap_PDU_tags_1, /* Same as above */
94 sizeof(asn_DEF_Trap_PDU_tags_1)
95 /sizeof(asn_DEF_Trap_PDU_tags_1[0]), /* 2 */
96 { 0, 0, SEQUENCE_constraint },
98 6, /* Elements count */
99 &asn_SPC_Trap_PDU_specs_1 /* Additional specs */