]> git.stg.codes - stg.git/blob - stglibs/smux.lib/Trap-PDU.h
Hide or add proper copy ctor and assignement operator, initialize
[stg.git] / stglibs / smux.lib / Trap-PDU.h
1 /*
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`
6  */
7
8 #ifndef _Trap_PDU_H_
9 #define _Trap_PDU_H_
10
11
12 #include <asn_application.h>
13
14 /* Including external dependencies */
15 #include <OBJECT_IDENTIFIER.h>
16 #include "NetworkAddress.h"
17 #include <INTEGER.h>
18 #include "TimeTicks.h"
19 #include "VarBindList.h"
20 #include <constr_SEQUENCE.h>
21
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25
26 /* Dependencies */
27 typedef enum Trap_PDU__generic_trap {
28         Trap_PDU__generic_trap_coldStart        = 0,
29         Trap_PDU__generic_trap_warmStart        = 1,
30         Trap_PDU__generic_trap_linkDown = 2,
31         Trap_PDU__generic_trap_linkUp   = 3,
32         Trap_PDU__generic_trap_authenticationFailure    = 4,
33         Trap_PDU__generic_trap_egpNeighborLoss  = 5,
34         Trap_PDU__generic_trap_enterpriseSpecific       = 6
35 } e_Trap_PDU__generic_trap;
36
37 /* Trap-PDU */
38 typedef struct Trap_PDU {
39         OBJECT_IDENTIFIER_t      enterprise;
40         NetworkAddress_t         agent_addr;
41         INTEGER_t        generic_trap;
42         INTEGER_t        specific_trap;
43         TimeTicks_t      time_stamp;
44         VarBindList_t    variable_bindings;
45         
46         /* Context for parsing across buffer boundaries */
47         asn_struct_ctx_t _asn_ctx;
48 } Trap_PDU_t;
49
50 /* Implementation */
51 extern asn_TYPE_descriptor_t asn_DEF_Trap_PDU;
52
53 #ifdef __cplusplus
54 }
55 #endif
56
57 #endif  /* _Trap_PDU_H_ */