]> git.stg.codes - stg.git/blob - libs/smux/Trap-PDU.c
Use std::lock_guard instead of STG_LOCKER.
[stg.git] / libs / smux / Trap-PDU.c
1 /*
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`
6  */
7
8 #include "Trap-PDU.h"
9
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)),
13                 0,
14                 &asn_DEF_OBJECT_IDENTIFIER,
15                 0,
16                 { 0, 0, 0 },
17                 0, 0, /* No default value */
18                 "enterprise"
19                 },
20         { ATF_NOFLAGS, 0, offsetof(struct Trap_PDU, agent_addr),
21                 -1 /* Ambiguous tag (CHOICE?) */,
22                 0,
23                 &asn_DEF_NetworkAddress,
24                 0,
25                 { 0, 0, 0 },
26                 0, 0, /* No default value */
27                 "agent-addr"
28                 },
29         { ATF_NOFLAGS, 0, offsetof(struct Trap_PDU, generic_trap),
30                 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
31                 0,
32                 &asn_DEF_INTEGER,
33                 0,
34                 { 0, 0, 0 },
35                 0, 0, /* No default value */
36                 "generic-trap"
37                 },
38         { ATF_NOFLAGS, 0, offsetof(struct Trap_PDU, specific_trap),
39                 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
40                 0,
41                 &asn_DEF_INTEGER,
42                 0,
43                 { 0, 0, 0 },
44                 0, 0, /* No default value */
45                 "specific-trap"
46                 },
47         { ATF_NOFLAGS, 0, offsetof(struct Trap_PDU, time_stamp),
48                 (ASN_TAG_CLASS_APPLICATION | (3 << 2)),
49                 0,
50                 &asn_DEF_TimeTicks,
51                 0,
52                 { 0, 0, 0 },
53                 0, 0, /* No default value */
54                 "time-stamp"
55                 },
56         { ATF_NOFLAGS, 0, offsetof(struct Trap_PDU, variable_bindings),
57                 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
58                 0,
59                 &asn_DEF_VarBindList,
60                 0,
61                 { 0, 0, 0 },
62                 0, 0, /* No default value */
63                 "variable-bindings"
64                 },
65 };
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))
69 };
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 */
77 };
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 */
85 };
86 asn_TYPE_descriptor_t asn_DEF_Trap_PDU = {
87         "Trap-PDU",
88         "Trap-PDU",
89         &asn_OP_SEQUENCE,
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 },
97         asn_MBR_Trap_PDU_1,
98         6,      /* Elements count */
99         &asn_SPC_Trap_PDU_specs_1       /* Additional specs */
100 };
101