Boris Lytochkin
583292ab22
Fixed bug #60585 (php build fails with USE flag snmp when IPv6 support is disabled)
...
Fixed bug #60749 (SNMP module should not strip non-standard SNMP port from hostname)
Fixed ipv6 test skipto if IPv6 support is disabled
2012-01-13 18:34:21 +00:00
Felipe Pena
77a08e1601
- Fix test
2011-09-10 13:02:00 +00:00
Boris Lytochkin
d077fc3211
added SNMPException class, enabling ability to throw exceptions
...
when a known SNMP error has occured
FR #55542
2011-09-02 10:04:19 +00:00
Boris Lytochkin
ce6b3f95f2
test coverage for SNMP::ERRNO_MULTIPLE_SET_QUERIES
2011-08-31 19:44:39 +00:00
Boris Lytochkin
b448bb5e01
more tuning based on discussion in FR #40816 :
...
* parse all OIDs earlier, detect all wrong OIDs before any query
is made (GET-operations)
* introduce ERRNO_MULTIPLE_SET_QUERIES:
warn if request contains more OIDs than max_oids and SET operation
(and type&value checks) will be done in chunks.
fix set method when request contains more OIDs than max_oids (2nd and
subsequent chunk were ignored)
2011-08-31 08:28:13 +00:00
Boris Lytochkin
5ab9e7b5db
export ERRNO_OID_PARSING_ERROR constant:
...
raise it evry time OID parsing has failed
2011-08-27 08:16:32 +00:00
Boris Lytochkin
1464da9073
reformat OID parsing procedure,
...
fail whole SNMP query on single OID parsing failure
2011-08-27 07:24:44 +00:00
Boris Lytochkin
fa09c70704
tune test's README more per FR #55474
2011-08-25 06:00:11 +00:00
Boris Lytochkin
1aed8a8c1c
apply docs fixes suggested in BR #55474
2011-08-23 19:13:49 +00:00
Boris Lytochkin
8c99efcdf0
Adding IPv6 support (FR #42918 )
2011-08-20 15:53:44 +00:00
Boris Lytochkin
e55522838e
more code coverage
2011-08-20 14:50:49 +00:00
Boris Lytochkin
96c45c85ad
s/noOIDIncreasingCheck/oid_increasing_check/
2011-07-21 12:47:07 +00:00
Boris Lytochkin
5c110b9a76
new propery noOIDIncreasingCheck allowing to skip
...
OID increasing check (userful for bogus SNMP agents)
2011-07-17 19:45:05 +00:00
Boris Lytochkin
e1d4676065
swap non_repeaters and max_repetitions in walk query, max_repetitions whould be used more frequently
2011-07-17 18:17:43 +00:00
Boris Lytochkin
a80c2ee19b
fix FR #54502 : allow user to change OID value output mode when SNMP_VALUE_OBJECT is used.
2011-07-17 17:27:00 +00:00
Boris Lytochkin
edd80c571d
move SNMP VERSION constants into SNMP class itself
2011-06-12 11:58:49 +00:00
Boris Lytochkin
dbed284039
fixed typos in tests
...
ucd-snmp epoch is over, drop legacy memory allocation (non e*)
tune 'buggy snmp_snprint_value' detection on some systems
2011-05-10 20:04:26 +00:00
Boris Lytochkin
97930e9170
method renaming:
...
SNMP::get_errno() -> SNMP::getErrno()
SNMP::get_error() -> SNMP::getError()
2011-05-10 11:48:10 +00:00
Boris Lytochkin
ee0d7f3207
* new option for SNMP::get: force keys of return array be as in request array
...
* new option for SNMP::walk: use suffix of OID for keys in return array, not full OID
2011-05-08 13:58:37 +00:00
Boris Lytochkin
14eaa5ac58
follow CS:
...
- method set_security should be named as setSecurity
- SNMP_VERSION_2C constant
2011-03-20 20:07:33 +00:00
Boris Lytochkin
8e600b817e
* tune snmp2_walk.phpt
...
* more net-snmp v5.3 compatibility (OPAQUE_SPECIAL_TYPES)
2011-03-04 19:23:25 +00:00
Boris Lytochkin
3c0f1d5b95
* fix warning about redefining REGISTER_PDO_CLASS_CONST_LONG (damn copy'n'paste)
...
* tuned two unit test that failed at gcov.php.net/PHP_HEAD
2011-03-04 18:58:01 +00:00
Boris Lytochkin
1c65920819
* new methods get_errno, get_error to get errno and error string
...
of last SNMP-related error
* formatting markup
* some fixes in max_oids logic: NULL will set it to default value,
do not allow non-positive user-supplied values
* unit tests for changes
2011-02-26 08:27:26 +00:00
Boris Lytochkin
f69e1100ce
added r/o info property with basic session info,
...
fix crash in _get_properties in trunk
2011-02-05 00:29:31 +00:00
Boris Lytochkin
dc781e2520
- Improved SNMP extension:
...
. Allow ~infinite OIDs in GET/GETNEXT/SET queries. Autochunk them to max_oids
upon request.
2011-02-01 07:45:30 +00:00
Boris Lytochkin
5e82e334dd
Improved SNMP extension. FR #53594
2011-01-31 11:41:33 +00:00