Skip to content

Commit 3de5c04

Browse files
author
Ilya Etingof
committed
fix to msgAuthoritativeEngineTime object
To make the timestamp growing in time as it should
1 parent 3dbb7f0 commit 3de5c04

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

CHANGES.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11

2-
Revision 4.3.8, released 2017-06-XX
2+
Revision 4.3.8, released 2017-06-15
33
-----------------------------------
44

5-
No changes yet
5+
- Security fix to the bug introduced in 4.3.6: msgAuthoritativeEngineTime
6+
stopped changing over time and was returning the same timestamp (process
7+
start time). This fix makes it growing as it should.
68

79
Revision 4.3.7, released 2017-05-29
810
-----------------------------------

pysnmp/smi/mibs/SNMP-FRAMEWORK-MIB.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ class SnmpSecurityLevel(Integer32, TextualConvention):
9999
snmpEngineBoots = MibScalar((1, 3, 6, 1, 6, 3, 10, 2, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))).setMaxAccess("readonly")
100100
if mibBuilder.loadTexts: snmpEngineBoots.setStatus('current')
101101
if mibBuilder.loadTexts: snmpEngineBoots.setDescription('The number of times that the SNMP engine has (re-)initialized itself since snmpEngineID was last configured. ')
102-
snmpEngineTime = MibScalar((1, 3, 6, 1, 6, 3, 10, 2, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setUnits('seconds').setMaxAccess("readonly")
102+
snmpEngineTime = MibScalar((1, 3, 6, 1, 6, 3, 10, 2, 1, 3), SnmpEngineTime().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setUnits('seconds').setMaxAccess("readonly")
103103
if mibBuilder.loadTexts: snmpEngineTime.setStatus('current')
104104
if mibBuilder.loadTexts: snmpEngineTime.setDescription("The number of seconds since the value of the snmpEngineBoots object last changed. When incrementing this object's value would cause it to exceed its maximum, snmpEngineBoots is incremented as if a re-initialization had occurred, and this object's value consequently reverts to zero. ")
105105
snmpEngineMaxMessageSize = MibScalar((1, 3, 6, 1, 6, 3, 10, 2, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(484, 2147483647))).setMaxAccess("readonly")

0 commit comments

Comments
 (0)