summaryrefslogtreecommitdiff
path: root/pysnmp
Commit message (Collapse)AuthorAgeFilesLines
...
* Improve IPV6 debuggingIlya Etingof2019-02-072-4/+12
|
* Fix socket iov blob dump in debugIlya Etingof2019-02-071-3/+5
|
* Add `IPV6_V6ONLY` IPV6 socket optionIlya Etingof2019-02-072-2/+3
| | | | SO says this is required for proper UDP socket multi-homing.
* Emit low-level sendmsg/recvmsg debuggingIlya Etingof2019-02-072-0/+28
| | | | | When running in transparent proxy mode, log syscall parameters to aid troubleshooting
* Uninitialized MibSclarInstance -> noSuchInstanceIlya Etingof2019-01-101-4/+4
|
* MIB loader ignores file and directory access errorsIlya Etingof2019-01-081-9/+13
| | | | | Also fixed crash on MIB load failure in case of directory access error
* Fix Pythonized MIB load in source formIlya Etingof2018-12-301-21/+34
|
* Extend copyright notice to year 2019Ilya Etingof2018-12-30153-143/+815
|
* Fix undefined names in `TRANSPORT-ADDRESS-MIB.py`Ilya Etingof2018-12-301-3/+3
|
* Redesigned SMI objects management model (#214)Ilya Etingof2018-12-2913-755/+3002
| | | | | | | | | | | | | | The primary motivation behind this redesign is to allow asynchronous operations between SNMP responder and the data source feeding its MIB. This is achieved by redesigning all `read*`, `write*`, `create*` and `destroy*` methods of the `SNMPv2-SMI` MIB objects to return immediately and deliver their results via a call back. This modification brings significant and backward incompatible changes to the low-level MIB operations. The pysnmp MIB modules compiled for older pysnmp remain compatible.
* Fix hlapi/v1arch GETNEXT EOM processingIlya Etingof2018-12-291-3/+6
| | | | | The hlapi/v1arch GETNEXT command crashes when hitting end-of-mib condition. This patch fixes this.
* Fix hlapi/v1arch request timeoutIlya Etingof2018-12-293-5/+4
| | | | The retrying mechanism never worked, apparently.
* Fix wrong `set()` member deletion in `MibBuilder`Ilya Etingof2018-12-251-2/+2
|
* Fix possible duplicate key condition in `OrderedDict`Ilya Etingof2018-12-251-36/+37
| | | | | Also, updated thr `.update` and `__init__` methods signatures to match `dict` interface. Implementation details renewed.
* Fix hlapi LCD to include `contextName` (#217)Ilya Etingof2018-11-038-34/+50
| | | | | | | | | Fixed hlapi LCD configurator to include `contextName`. Prior to this fix sending SNMPv3 TRAP with non-default `contextName` would fail. This change modifies the signature of the internal LCD methods.
* Expose ASN.1 `Null` type through `rfc1902` moduleIlya Etingof2018-10-261-1/+26
|
* Use `compile()` before `exec` of MIB modulesIlya Etingof2018-10-261-4/+4
| | | | | | This change attaches the file name to the stack frames what is helpful when reading traceback or debugging interactively.
* Merge branch 'master' of github.com:etingof/pysnmpIlya Etingof2018-10-263-215/+269
|\
| * Refactor MIB state machine into asynchronous operations (#210)Ilya Etingof2018-10-243-215/+269
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Convert to async MIB instrumentation API (#210) MIB instrumentation API changed to allow for asynchronous managed objects access. The MIB instrumentation methods called by the state machine now return immediately and resume once the callback is called. The built-in SNMPv2-SMI objects are still synchronous. This change is a prerequisite for fully asynchronous managed objects implementation.
* | Fix typosIlya Etingof2018-10-171-1/+1
|/
* Convert to async MIB instrumentation API (#209)Ilya Etingof2018-10-133-71/+101
| | | | | | | | | | | | | | | | MIB instrumentation API changed to allow for asynchronous managed objects access. Although built-in SNMPv2-SMI objects are still synchronous, the MIB instrumentation API is async what allows users to replace default MIB instrumentation with their own, potentially asynchronous. CommandResponder refactored to facilitate asynchronous MIB instrumentation routines. The `readVars`, `readNextVars` and `writeVars` MIB controller methods return immediately and deliver their results via a call back. SMI/MIB managed objects API overhauled for simplicity and flexibility breaking backward compatibility.
* Fix Sphinx markup for USM crypto algorithm IDsIlya Etingof2018-10-063-14/+76
|
* Reformat `isAccessAllowed()` for clarityIlya Etingof2018-10-061-13/+30
|
* Avoid deprecation warnings for asyncio.async() in server mode (#202)Fabrizio Vanni2018-09-261-1/+5
| | | | This is actually needed for Python 3.7 which introduces async and await as reserved keywords, see https://docs.python.org/3/whatsnew/3.7.html
* Ensure distinct transports if timeout/retries differIlya Etingof2018-09-201-1/+4
| | | | | Fix hlapi/v3arch transport target caching to ensure transport targets are different even if just timeout/retries options differ.
* Accommodate changed `.writeVars` signatureIlya Etingof2018-09-141-2/+2
|
* Release 4.4.6Ilya Etingof2018-09-131-1/+1
|
* Tolerate non-initialised entries in SNMP community table (#195)Ilya Etingof2018-09-131-25/+75
| | | | | | | | | | It can happen that SNMP community table contains uninitialized entries. These entries may stop internal SNMP community table indexing which is done in rfc2576 to speed up SNMP engine operations when SNMPv1/v2c is involved. Once a bad entry gets into SNMP community table, all the rest queries would start failing. This patch ignores incomplete SNMP community table entries in the course of building indices.
* Tolerate duplicate enumerationsIlya Etingof2018-09-091-4/+13
| | | | | | Possible duplicate enumerations in `Bits` and `Integer` SMI types causes pyasn1 exception. This fix reduces duplicates prior to passing them to pyasn1.
* Fix lcd.unconfigure not removing cached addr value preventing the same ↵Ryan Van Gilder2018-09-091-1/+1
| | | | target being re-configured (#194)
* Add `hlapi.v1arch` API (#186)Ilya Etingof2018-08-1240-244/+2319
| | | | | | | | | | | | | | | | | | | | * Add `hlapi.v1arch` API Introduce new sub-package `pysnmp.hlapi.v1arch` which wraps otherwise very detailed packet-level SNMP messaging into a handful of convenience functions. As a side effect, the `pysnmp.hlapi.*` sub-packages moved under `pysnmp.hlapi.v3arch` though `pysnmp.hlapi` still exposes `pysnmp.hlappi.v3arch.*` symbols to retain some degree of backward compatibility. The signature of the hlapi `.sendNotification()` call has changed to accept `*varBinds` instead of a sequence of `varBinds`. The rationale is to unify this method call with similar methods of CommandGenerator. * Add v1arch docs and reshuffle hlapi docs
* VACM contextName memory leak fix followupIlya Etingof2018-08-061-2/+2
|
* VACM contextName memory leak fixIlya Etingof2018-08-062-5/+29
|
* Fix PySnmpError implementationIlya Etingof2018-08-061-2/+11
| | | | | This is a follow up fix to make PySnmpError properly overriding base Exception call signature
* Add PySnmpError.cause attributeIlya Etingof2018-08-061-1/+5
| | | | To convey parent exception information on re-raise
* Fix out-of-scope OID leak in hlapi tableIlya Etingof2018-08-061-10/+30
| | | | | | Fixed out-of-scope OIDs possibly leaking at the end of SNMP table at hlapi `nextCmd` and `bulkCmd` calls when `lexicographicMode = False`.
* Fix crash on wrong SNMPv3 security modelIlya Etingof2018-08-062-2/+5
| | | | | Fixed crash caused by incoming SNMPv3 message requesting SNMPv1/v2c security model
* Fix py3.7 syntax error caused by async keyword (#180)Michal Arbet2018-07-312-3/+3
| | | | As async is the keyword since Python 3.7, let's use gettattr built-in function to call async function from asyncio.
* Fix `Bits` initialization with `namedValues`Ilya Etingof2018-07-201-4/+5
|
* Remove `pysnmp.carrier.asynsock` sub-package (#166)Ilya Etingof2018-07-085-25/+0
| | | | Legacy `pysnmp.carrier.asynsock` backward-compatible wrapper over `pysnmp.carrier.asyncore` is gone
* Revert "Fix var-bind initialization from ObjectIdentity at hlapi"Ilya Etingof2018-07-051-4/+4
| | | | This reverts commit 23d1aa7bf5139d05c29ef27f6a5f68948c93a9df.
* Fix typo in docstringIlya Etingof2018-07-052-5/+5
|
* Fix var-bind initialization from ObjectIdentity at hlapiIlya Etingof2018-07-051-4/+4
|
* Fix scoping bug in asyncio wrapperIlya Etingof2018-07-042-7/+7
| | | | Probably introduced by commit 2b27b49db77ff6fdad311e122da7c1305fccc095
* Fix typosIlya Etingof2018-07-031-1/+1
|
* Overhaul SMI/MIB instrumentation API (#161)Ilya Etingof2018-06-305-393/+632
| | | | | | | | | | | Overhaul SMI/MIB instrumentation API SMI/MIB managed objects API overhauled for simplicity and flexibility breaking backward compatibility. This change would allow way more control over custom MIB managed objects and also is the prerequisite for asynchronous MIB instrumentation.
* fix potential infinite loop in GETBULK response builderIlya Etingof2018-04-211-1/+1
|
* Merge branch 'master' of github.com:etingof/pysnmpIlya Etingof2018-04-212-4/+18
|\
| * asyncio.async deprecated since 3.4.4 (#143)Cameron2018-04-212-4/+18
| | | | | | | | * asyncio.async deprecated since 3.4.4
* | fixed zero boots/time values put into SNMPv3 TRAPIlya Etingof2018-04-211-24/+29
| |