]> git.saurik.com Git - apple/security.git/blob - SecuritySNACCRuntime/asn1specs/rfc1157-snmp.asn1
Security-54.1.3.tar.gz
[apple/security.git] / SecuritySNACCRuntime / asn1specs / rfc1157-snmp.asn1
1 -- file: asn1specs/1157_snmp.asn1
2 --
3 -- this file is used in ../c{,++}-examples/snmp/
4 --
5 -- $Header: /cvs/Darwin/src/live/Security/SecuritySNACCRuntime/asn1specs/rfc1157-snmp.asn1,v 1.1.1.1 2001/05/18 23:14:05 mb Exp $
6 -- $Log: rfc1157-snmp.asn1,v $
7 -- Revision 1.1.1.1 2001/05/18 23:14:05 mb
8 -- Move from private repository to open source repository
9 --
10 -- Revision 1.1.1.1 1999/03/16 18:05:56 aram
11 -- Originals from SMIME Free Library.
12 --
13 -- Revision 1.3 1995/07/27 08:29:17 rj
14 -- rfc1155-smi.asn1, rfc1157-snmp.asn1 and rfc1213-mib2.asn1 renamed from 1155-smi.asn1, 1157-snmp.asn1 and 1213-mib2.asn1 to accomodate to snacc's new file name generation scheme.
15 --
16 -- Revision 1.2 1995/07/25 19:53:13 rj
17 -- changed `_' to `-' in file names.
18 --
19 -- Revision 1.1 1994/08/31 23:08:27 rj
20 -- first check-in.
21 --
22
23 RFC1157-SNMP DEFINITIONS ::= BEGIN
24
25 IMPORTS
26 ObjectName, ObjectSyntax, NetworkAddress, IpAddress, TimeTicks
27 FROM RFC1155-SMI;
28
29
30 -- top-level message
31
32 Message ::=
33 SEQUENCE {
34 version -- version-1 for this RFC
35 INTEGER {
36 version-1(0)
37 },
38
39 community -- community name
40 OCTET STRING,
41
42 data -- e.g., PDUs if trivial
43 PDUs -- authentication is being used
44 }
45
46
47 -- protocol data units
48
49 PDUs ::=
50 CHOICE {
51 get-request
52 GetRequest-PDU,
53
54 get-next-request
55 GetNextRequest-PDU,
56
57 get-response
58 GetResponse-PDU,
59
60 set-request
61 SetRequest-PDU,
62
63 trap
64 Trap-PDU
65 }
66
67
68
69
70
71 -- PDUs
72
73 GetRequest-PDU ::=
74 [0]
75 IMPLICIT PDU
76
77 GetNextRequest-PDU ::=
78 [1]
79 IMPLICIT PDU
80
81 GetResponse-PDU ::=
82 [2]
83 IMPLICIT PDU
84
85 SetRequest-PDU ::=
86 [3]
87 IMPLICIT PDU
88
89 PDU ::=
90 SEQUENCE {
91 request-id
92 INTEGER,
93
94 error-status -- sometimes ignored
95 INTEGER {
96 noError(0),
97 tooBig(1),
98 noSuchName(2),
99 badValue(3),
100 readOnly(4),
101 genErr(5)
102 },
103
104 error-index -- sometimes ignored
105 INTEGER,
106
107 variable-bindings -- values are sometimes ignored
108 VarBindList
109 }
110
111 Trap-PDU ::=
112 [4]
113 IMPLICIT SEQUENCE {
114 enterprise -- type of object generating
115 -- trap, see sysObjectID in [5]
116
117
118 OBJECT IDENTIFIER,
119
120
121
122 agent-addr -- address of object generating
123 NetworkAddress, -- trap
124
125 generic-trap -- generic trap type
126 INTEGER {
127 coldStart(0),
128 warmStart(1),
129 linkDown(2),
130 linkUp(3),
131 authenticationFailure(4),
132 egpNeighborLoss(5),
133 enterpriseSpecific(6)
134 },
135
136 specific-trap -- specific code, present even
137 INTEGER, -- if generic-trap is not
138 -- enterpriseSpecific
139
140 time-stamp -- time elapsed between the last
141 TimeTicks, -- (re)initialization of the
142 -- network
143 -- entity and the generation of the
144 -- trap
145
146 variable-bindings -- "interesting" information
147 VarBindList
148 }
149
150
151 -- variable bindings
152
153 VarBind ::=
154 SEQUENCE {
155 name
156 ObjectName,
157
158 value
159 ObjectSyntax
160 }
161
162 VarBindList ::=
163 SEQUENCE OF
164 VarBind
165
166 END