Commit Graph

50 Commits (d5b3c90d29d9f0099c686e838a8731c6f2723088)

Author SHA1 Message Date
Ilya Etingof d5b3c90d29 email changed, copyright extended to the year 2017 2017-01-12 01:05:56 +01:00
Ilya Etingof 90bbf397ad pep8 reformatted 2016-04-02 23:43:14 +02:00
elie c50fe2a466 copyright updated 2015-12-29 20:34:33 +00:00
elie 87a7a35d1e copyright notice added to source code 2015-11-20 20:57:28 +00:00
elie a46f37c265 linted for bad-whitespace and some other issues 2015-10-17 20:22:30 +00:00
elie 9e73d5b89c linted the bad-continuation issue as well as some others 2015-10-17 19:14:29 +00:00
elie 71dd5565a4 linted for trailing whitespaces 2015-10-17 09:54:53 +00:00
elie 7d5453e2af reverse previous change 2015-05-31 19:18:54 +00:00
elie ef82e705d9 fix to v2c->v1 trap OID translation: do not require trap OID to be
the default one
2015-05-26 08:24:50 +00:00
elie ebb2fdad44 fix to default/null AgentAddress initialization 2015-01-20 17:03:41 +00:00
elie c2fa258d32 * fix ignore impossible errorStatus
* fix to reset ErrorStatus==noSuchName on proxying
2014-12-19 20:13:02 +00:00
elie fd8827d7cf fix to initialize errorIndex & errorStatus components of the resulting PDU 2014-03-17 20:16:36 +00:00
elie bc0048832f unused variables, imports; wrong indentation; undefined prototype attribues
all the things that bothers linter
2013-06-04 06:26:02 +00:00
elie c147044d7d Change to rfc2576.v1tov2() logic: errorStatus = noSuchName is now translated
into rfc1905.noSuchObject exception value for *all* var-bindings.
Although RFC2576 does not suggest error-status -> v2c exception translation,
historically pysnmp used to perform it for a long time so we can't easily
stop doing that.
2013-03-16 11:57:24 +00:00
elie 47959808a9 Standard SNMP Apps and built-in proxy now ignores malformed errorIndex
value.
2013-02-07 20:05:13 +00:00
elie d12ca81956 fix to GenericTrap type processing at rfc2576:v1Tov2c() 2012-06-25 22:50:56 +00:00
elie 37f3b6fcd2 fix to v2c exception values into v1 PDU translation 2012-05-25 15:47:26 +00:00
elie f0406dd01c major overhawl aimed at Python 2.4 through 3.2 compatibility 2011-11-06 20:37:09 +00:00
elie 7790a049b7 better fix to the v1 Trap PDU initialization issue 2011-09-21 14:00:11 +00:00
elie 6bdee61961 reverted PDU initalization as it breaks TRAPs otherwise 2011-09-10 13:36:03 +00:00
elie dd477dfdb3 avoid setting PDU defaults to save on unnecessary initialization. 2011-01-21 15:23:48 +00:00
elie 2d34d4d970 all dict.has_key() & dict.get() invocations replaced with modern syntax
(this breaks compatibility with Python 2.1 and older).
2011-01-20 17:11:43 +00:00
elie 8c09928a87 * send [an empty] snmpTrapCommunity at v1ToV2()
* handle possible unsupported PDU types at v2ToV1()
2010-12-05 22:32:41 +00:00
elie bf9a2c1ca2 comment added 2010-12-05 22:16:36 +00:00
elie a1b318145e fix to non-response var-binds translation at rfc2576.v2ToV1() 2010-12-05 21:56:32 +00:00
elie 2f7e1bee28 SNMP exception values moved to rfc1905 2010-11-14 23:12:21 +00:00
elie 48c72b7409 fix to protocol translator code to handle Counter64 type in v2c-to-v1
PDU translation
2010-09-23 21:34:20 +00:00
elie 92694b50da Fix to SNMPv1->SNMPv2c error status handling at proxy module. This
defect may have caused an infinite loop on a multiple var-bind
SNMPv1 GetNext operation.
2010-05-04 10:06:25 +00:00
elie a515422dd5 * missing SNMPTrap PDU API implemented at proto.api.v2c, RFC2576 proxy
code reworked.
* fix to sysUpTime OID at SNMPv2 TRAP PDU.
2009-12-03 11:47:45 +00:00
elie d420937be4 fix to IpAddress translation to match it with setVarBinds() API 2008-01-14 18:07:32 +00:00
elie 2b5e220c1b fixes to TRAP PDU translation from v1 to v2c and vice versa 2007-10-05 17:41:00 +00:00
elie 0af27200e0 handle noSuchName error on v1 -> v2c PDU convertion 2007-08-15 13:22:48 +00:00
elie 3a8eab4943 make use of snmpTrapEnterprise 2006-10-01 22:42:42 +00:00
elie b18e07d428 incomplete TRAP convertion completed 2006-09-29 21:53:06 +00:00
elie 97103d6f87 proxy debug category added 2006-09-29 13:14:00 +00:00
elie fe783ae8ab a fix to snmpTrapOID construction 2006-06-05 11:32:57 +00:00
elie d575929fc8 initialize Null() with empty '' 2006-04-24 16:39:38 +00:00
elie 4c4ad07706 handle NetworkAddress in translation 2005-11-03 15:59:18 +00:00
elie 947876846b unused requestID retrieval expression removed 2005-10-14 07:10:08 +00:00
elie 51fb151523 bugfix: preserve Request-ID on v2->v1 PDU translation 2005-10-14 06:56:57 +00:00
elie aa21a963ee strip two leading var-binds from v2 trap PDU 2005-10-12 16:08:24 +00:00
elie 160a78074b v1->v2c trap translation fixes 2005-10-11 19:24:15 +00:00
elie bea4a660d2 * use Trap API for v1 trap PDU management
* trapOID is second in v2 Trap PDU var-binding
2005-10-09 18:13:39 +00:00
elie a53164a264 comments cleaned up 2005-06-28 20:25:11 +00:00
elie 4137a76956 convert PDU components as well 2005-06-28 17:40:24 +00:00
elie 4547c57ff4 minor syntax fixes followed pychecker report 2005-06-27 12:42:22 +00:00
elie f501ae3ed5 converted to changed pyasn1 behaviour -- asn1 objects now hashes to their
python value
2005-06-27 07:40:51 +00:00
elie 608b590717 cosmetics 2005-06-23 19:11:20 +00:00
elie 819506ca46 v2ToV1() debugged 2005-06-22 21:49:03 +00:00
elie e24a515eb5 initial revision 2005-06-21 22:51:30 +00:00