aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/asn1/snmp/snmp.asn
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/asn1/snmp/snmp.asn')
-rw-r--r--epan/dissectors/asn1/snmp/snmp.asn19
1 files changed, 9 insertions, 10 deletions
diff --git a/epan/dissectors/asn1/snmp/snmp.asn b/epan/dissectors/asn1/snmp/snmp.asn
index 0361783a97..9b214472a3 100644
--- a/epan/dissectors/asn1/snmp/snmp.asn
+++ b/epan/dissectors/asn1/snmp/snmp.asn
@@ -1,5 +1,5 @@
RFC1157-SNMP DEFINITIONS ::= BEGIN
-
+
-- IMPORTS
-- ObjectName, ObjectSyntax, NetworkAddress, IpAddress, TimeTicks
-- FROM RFC1155-SMI;
@@ -38,7 +38,7 @@ RFC1157-SNMP DEFINITIONS ::= BEGIN
--Empty ::= NULL
-- hundredths of seconds since an event, usualy the last restart
---TimeTicks ::= [APPLICATION 3] IMPLICIT INTEGER (0..4294967295)
+--TimeTicks ::= [APPLICATION 3] IMPLICIT INTEGER (0..4294967295)
--Opaque ::= [APPLICATION 4] IMPLICIT OCTET STRING
@@ -60,6 +60,7 @@ NotificationName ::= OBJECT IDENTIFIER
EnterpriseOID ::= OBJECT IDENTIFIER
NetworkAddress ::= [APPLICATION 0] IMPLICIT OCTET STRING (SIZE (4))
TimeTicks ::= [APPLICATION 3] IMPLICIT INTEGER (0..4294967295)
+Integer32 ::= INTEGER (-2147483648..2147483647)
ObjectName ::= OBJECT IDENTIFIER
--Counter32 ::= [APPLICATION 1] IMPLICIT INTEGER (0..4294967295)
--Gauge32 ::= [APPLICATION 2] IMPLICIT INTEGER (0..4294967295)
@@ -115,7 +116,7 @@ SNMPv3Message ::= SEQUENCE {
-- this element is in same position as in SNMPv1
-- and SNMPv2c, allowing recognition
-- the value 3 is used for snmpv3
- msgVersion Version,
+ msgVersion Version,
-- INTEGER ( 0 .. 2147483647 ),
-- administrative parameters
msgGlobalData HeaderData,
@@ -152,7 +153,7 @@ ScopedPDU ::= SEQUENCE {
contextEngineID SnmpEngineID,
contextName OCTET STRING,
data PDUs
- -- ANY
+ -- ANY
-- e.g., PDUs as defined in RFC 1905
}
@@ -168,7 +169,7 @@ PDUs ::= CHOICE {
getBulkRequest GetBulkRequest-PDU,
informRequest InformRequest-PDU,
snmpV2-trap SNMPv2-Trap-PDU,
- report Report-PDU
+ report Report-PDU
}
-- PDUs
@@ -192,7 +193,7 @@ Report-PDU ::= [8] IMPLICIT PDU
PDU ::= SEQUENCE {
- request-id RequestID,
+ request-id INTEGER,
error-status INTEGER {
noError(0),
tooBig(1),
@@ -218,11 +219,9 @@ PDU ::= SEQUENCE {
variable-bindings VarBindList
}
-RequestID ::= INTEGER
-
-- v2
BulkPDU ::= SEQUENCE { -- MUST be identical in structure to PDU
- request-id RequestID,
+ request-id Integer32,
non-repeaters INTEGER (0..2147483647),
max-repetitions INTEGER (0..2147483647),
variable-bindings VarBindList
@@ -324,7 +323,7 @@ RReqPDU ::= [APPLICATION 2] IMPLICIT SEQUENCE {
subtree ObjectName,
priority INTEGER (-1..2147483647), -- the lower the better, "-1" means default
- operation INTEGER {
+ operation INTEGER {
delete(0), -- remove registration
readOnly(1), -- add registration, objects are RO
readWrite(2) -- .., objects are RW