Felipe Pena
4e19825281
- Year++
2012-01-01 13:15:04 +00:00
Felipe Pena
f6408176f6
- Fix test
2011-09-10 13:02:00 +00:00
Felipe Pena
77a08e1601
- Fix test
2011-09-10 13:02:00 +00:00
Boris Lytochkin
bc3d5d668f
merge from trunk
...
added SNMPException class, enabling ability to throw exceptions
when a known SNMP error has occured
FR #55542
2011-09-02 10:13:30 +00:00
Boris Lytochkin
a183c17b07
remove extra white space
2011-09-02 10:07:01 +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
8c5fa2ba56
merge from trunk:
...
remove php_snmp_get_ce()
2011-09-02 08:09:23 +00:00
Boris Lytochkin
538d8a3f52
remove php_snmp_get_ce()
2011-09-02 08:07:58 +00:00
Boris Lytochkin
86b563ea0f
tune text align
2011-08-31 20:16:56 +00:00
Boris Lytochkin
2c5c7a2ef3
tune text align
2011-08-31 20:15:32 +00:00
Boris Lytochkin
d38cb4aa1e
test coverage for SNMP::ERRNO_MULTIPLE_SET_QUERIES
2011-08-31 19:45:45 +00:00
Boris Lytochkin
ce6b3f95f2
test coverage for SNMP::ERRNO_MULTIPLE_SET_QUERIES
2011-08-31 19:44:39 +00:00
Boris Lytochkin
3aa6f31abd
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:36:22 +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
1c88dcf39f
merge from trunk:
...
set ERRNO_OID_PARSING_ERROR on OID parse error
2011-08-30 14:24:00 +00:00
Boris Lytochkin
d28ae7654d
merge from trunk:
...
export ERRNO_OID_PARSING_ERROR constant:
raise it evry time OID parsing has failed
2011-08-27 08:29:19 +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
4f1005035a
merge from trunk:
...
reformat OID parsing procedure,
fail whole SNMP query on single OID parsing failure
2011-08-27 07:33:27 +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
d7d90c403f
tune test's README more per FR #55474
2011-08-25 06:00:11 +00:00
Boris Lytochkin
fa09c70704
tune test's README more per FR #55474
2011-08-25 06:00:11 +00:00
Boris Lytochkin
1cd8b8c80b
apply docs fixes suggested in BR #55474
2011-08-23 19:15:58 +00:00
Boris Lytochkin
1aed8a8c1c
apply docs fixes suggested in BR #55474
2011-08-23 19:13:49 +00:00
Boris Lytochkin
cbcf729a30
merge from trunk two commits:
...
Adding IPv6 support (FR #42918 )
more code coverage
2011-08-20 16:10:48 +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
Felipe Pena
4b30846b50
- Make usage of new PHP_FE_END macro
2011-07-25 11:35:02 +00:00
Felipe Pena
da376383e8
- Make usage of new PHP_FE_END macro
2011-07-25 11:35:02 +00:00
Boris Lytochkin
1ed2f1cf5d
provide backwards compatibility for 'p' in zend_parse_parameters()
2011-07-23 07:40:40 +00:00
Boris Lytochkin
02bf16db03
s/noOIDIncreasingCheck/oid_increasing_check/
2011-07-21 12:48:47 +00:00
Boris Lytochkin
96c45c85ad
s/noOIDIncreasingCheck/oid_increasing_check/
2011-07-21 12:47:07 +00:00
Boris Lytochkin
85edf25143
new propery noOIDIncreasingCheck allowing to skip
...
OID increasing check (userful for bogus SNMP agents)
2011-07-17 19:47:24 +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
06c20347ae
swap non_repeaters and max_repetitions in walk query, max_repetitions whould be used more frequently
2011-07-17 18:14:38 +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
cf7724d5a3
fix FR #54502 : allow user to change OID value output mode when SNMP_VALUE_OBJECT is used.
2011-07-17 17:18:31 +00:00
Boris Lytochkin
cc1ccefc0d
backport r313324
2011-07-17 14:06:05 +00:00
Boris Lytochkin
281d0eade4
update ARG_INFO_EX for walk and get methods, fix comments
2011-07-17 13:57:28 +00:00
Boris Lytochkin
7a0bd8b967
remove PHP_VERSION_ID ifdef's, limiting to 5.4 branch
2011-06-12 12:26:51 +00:00
Boris Lytochkin
2b8026cfff
merging from trunk (r312088...r312092):
...
move SNMP VERSION constants into SNMP class itself
fix typo in comment
no more method open
fix method names in header
2011-06-12 12:10:01 +00:00
Boris Lytochkin
edd80c571d
move SNMP VERSION constants into SNMP class itself
2011-06-12 11:58:49 +00:00
Boris Lytochkin
0db6d3b16c
fix typo in comment
2011-06-12 11:25:20 +00:00
Boris Lytochkin
787cb14c3e
no more method open
2011-06-12 10:13:30 +00:00
Boris Lytochkin
12517f51a8
fix method names in header
2011-06-12 10:07:43 +00:00
Felipe Pena
32b5f8a1a3
- Added new parameter parsing option (p - for valid path (string without null byte in the middle))
...
# The tests will be fixed in the next commits
2011-06-06 21:28:16 +00:00
Felipe Pena
4737910b69
- Added new parameter parsing option (p - for valid path (string without null byte in the middle))
...
# The tests will be fixed in the next commits
2011-06-06 21:28:16 +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
9d2f7c1e3e
remove method open, __construct is enough
2011-05-09 19:34:07 +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
1dc02ac2de
fix error reporting on OID not increasing
...
calling arguments markup
2011-05-08 09:20:58 +00:00
Boris Lytochkin
b1d9284901
fix typo
2011-04-12 08:00:14 +00:00
Boris Lytochkin
bbb4f679ae
* Net-SNMP version detection and proper processing
...
* more UCD-SNMP-related code removal
2011-04-06 06:58:25 +00:00
Boris Lytochkin
cab643f615
* added detection and walkaround for net-snmp library bug (net-snmp BUGid 2027834)
...
* drop UCD-SNMP support, R.I.P.
2011-04-05 12:20:35 +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
5d0c948296
revert r309111 (name_len was not a typo)
2011-03-19 20:50:39 +00:00
Boris Lytochkin
d890ece3fc
fix typo in SNMP_SNPRINT_VALUE usage: use val_len, not name_length
2011-03-11 07:21:13 +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
661b552938
fix warnings mentioned in 'Parameter Parsing Report'
2011-03-02 22:12:02 +00:00
Boris Lytochkin
e9920cce1c
remove compiler warnings
...
fix various memory leaks seen with --enable-debug
2011-02-26 19:08:55 +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
3ab69c4cff
fix parse errors for non_repeaters & max_repetitions: aligment errors
2011-02-25 19:22:15 +00:00
Boris Lytochkin
430af9a0ab
push most of SNMP query options into objid_query structure
2011-02-19 11:13:10 +00:00
Boris Lytochkin
73f5ee551c
enable HAVE_SHUTDOWN_SNMP_LOGGING
2011-02-17 12:12:22 +00:00
Boris Lytochkin
6b81a9ac2e
* Fix memory leak on concurrent new, open
...
* change comments to ANSI-C style
* added compatibility with net-snmp prior 5.4
2011-02-17 12:02:16 +00:00
Felipe Pena
b58c6f5ede
- Fixed crash on unserialize(serialize(new SNMP))
2011-02-15 00:07:26 +00:00
Felipe Pena
aef9557333
- Fixed memory leak on serialize(new SNMP)
2011-02-14 23:58:52 +00:00
Felipe Pena
be2bfd1bcf
- Fixed memory leak
2011-02-14 23:43:22 +00:00
Boris Lytochkin
c50b3d7add
fix crash caused by incorrect offset altering
2011-02-05 13:22:38 +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
Pierre Joye
fefe9fc5c7
- fix build, wrong version id
2011-02-01 13:57:06 +00:00
Boris Lytochkin
2bc31f8027
preprocessed changes made in rev.307894:
...
keeping ext/snmp backwards compatible
2011-02-01 08:20:13 +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
Felipe Pena
ca9b3511f8
- Fixed build
2011-02-01 01:02:00 +00:00
Boris Lytochkin
5e82e334dd
Improved SNMP extension. FR #53594
2011-01-31 11:41:33 +00:00
Felipe Pena
0203cc3d44
- Year++
2011-01-01 02:17:06 +00:00
Rob Richards
0a34d10783
revert change #298288 : Remove old dsp/dsw/makefile files
2010-04-28 14:41:51 +00:00
Kalle Sommer Nielsen
518a17e7bf
Remove old dsp/dsw/makefile files, these arent used by the build system anymore and are barely updated nor available for all extensions
2010-04-21 23:36:49 +00:00
Pierre Joye
d010d0732c
- improve netsnmp detection (and restor snmp on win)
2010-02-09 16:38:24 +00:00
Sebastian Bergmann
9ba1e81665
sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.php
2010-01-03 09:23:27 +00:00
Jani Taskinen
70e8b40fc7
- Fixed bug #49990 (SNMP3 warning message about security level printed twice).
2009-10-25 20:17:04 +00:00
Stanislav Malyshev
fa2310b177
fix parameter parsing for SNMP
2009-08-17 22:15:18 +00:00
Ilia Alshanetsky
083ed5b3e5
Fixed bug #48273 (snmp*_real_walk() returns SNMP errors as values)
2009-06-01 13:10:18 +00:00
Ilia Alshanetsky
7c3e7f88c4
Fixed bug #48359 (Script hangs on snmprealwalk if OID is not increasing)
...
# Original patch by simonov at gmail dot com
2009-05-31 14:11:04 +00:00
Jani Taskinen
16c3b8f149
MFH:- Revert bad patch (which caused bug #48133 )
2009-05-02 21:13:54 +00:00
Sebastian Bergmann
08659c2dcd
MFH: Bump copyright year, 3 of 3.
2008-12-31 11:15:49 +00:00
Jani Taskinen
80d5100309
MFH
2008-11-21 16:41:04 +00:00
Felipe Pena
fc2fb50d09
- MFH: Added 'static' into ZEND_BEGIN_ARG_INFO_EX macro
2008-11-17 11:28:01 +00:00
Kalle Sommer Nielsen
2b0df36f42
MFH: New parameter parsing API
2008-11-07 11:05:24 +00:00
Felipe Pena
7a37fa2d6b
- Revert ZEND_BEGIN_ARG_INFO change
2008-11-02 21:19:39 +00:00
Felipe Pena
df10005563
- MFH: Added 'static' into ZEND_BEGIN_ARG_INFO_EX macro
2008-10-24 14:35:40 +00:00
Alexey Zakhlestin
8a2461af4c
Fixed bug #45405 (snmp extension memory leak)
2008-09-06 07:57:22 +00:00
Felipe Pena
7552edc481
- MFH: New parameter parsing API
2008-08-13 14:06:21 +00:00
Felipe Pena
0a61cda2c7
- Added arginfo
2008-07-01 19:13:44 +00:00
Felipe Pena
84a8bb038a
MFH: New way for check void parameters
2008-03-10 22:15:36 +00:00
Sebastian Bergmann
d1dded8751
MFH: Bump copyright year, 2 of 2.
2007-12-31 07:17:19 +00:00
Dmitry Stogov
6c810b0d4c
Improved memory usage by movig constants to read only memory. (Dmitry, Pierre)
2007-09-27 18:00:48 +00:00
Jani Taskinen
8af7bc2044
MFH: Fix some lib vs $PHP_LIBDIR issues
2007-07-31 13:02:00 +00:00
Jani Taskinen
45c85130af
MFH: Changed AC_ARG_ENABLE to PHP_ARG_ENABLE
2007-07-11 08:47:45 +00:00
Jani Taskinen
21290220f7
MFH: use defined values instead of plain integers
2007-07-09 13:42:05 +00:00
foobar
7ed3c4536d
MFH: Fix some configure --help texts
2007-07-03 17:25:43 +00:00
Sebastian Bergmann
4223aa4d5e
MFH: Bump year.
2007-01-01 09:36:18 +00:00
foobar
f58da213ff
MFH: - Fixed bug #37164 (snmp_set_oid_numeric_print() misbehaves)
...
MFH: . Renamed the function to snmp_set_oid_output_format() which describes
MFH: it's behaviour better. Old one was left as an alias for it.
MFH: . Added 2 new constants: SNMP_OID_OUTPUT_FULL and SNMP_OID_OUTPUT_NUMERIC
MFH: - Fixed some memleaks
2006-07-27 05:17:34 +00:00
foobar
67a82e5106
MFH: - Fixed bug #37564 (AES privacy encryption not possible due to net-snmp 5.2 compatibility issue)
2006-07-26 23:57:43 +00:00
Dmitry Stogov
1dbaae2795
Added automatic module globals management
2006-06-15 18:33:09 +00:00
foobar
5bd93221a8
bump year and license version
2006-01-01 12:51:34 +00:00
foobar
3e669bc950
MFH: nuke php3 legacy
2005-12-06 02:28:41 +00:00
Antony Dovgal
1cbe552f4d
change "-o" to "||" (fixes potential problems on weird systems where test doesn't support -o)
2005-11-29 18:26:02 +00:00
foobar
9477097564
MFH: Nuked EOLs from error messages
2005-08-18 13:34:41 +00:00
foobar
23e671a51e
- Bumber up year
2005-08-03 14:08:58 +00:00
foobar
a20383ba06
- Unify the "configure --help" texts
2005-05-29 23:17:16 +00:00
foobar
924b4c016d
ws
2005-05-10 12:19:33 +00:00
foobar
760b955dd1
MFB: - Fixed bug #32613 (ext/snmp: use of snmp_shutdown() causes snmpapp.conf
...
access errors). (Jani, ric at arizona dot edu)
2005-05-10 12:17:01 +00:00
foobar
56b3cac365
Better use zval_ptr_dtor() instead (thanks Andi)
2005-04-27 23:27:37 +00:00
foobar
0eb271add6
- Fix memleak
2005-04-23 21:15:24 +00:00
foobar
82819f3061
- Use correct type (bug #32720 )
2005-04-15 22:06:03 +00:00
Harrie Hazewinkel
e9224d0bd1
Converting the usage of the integer based internal commands into
...
MACROS to ease future extensions.
2005-04-11 14:59:42 +00:00
Harrie Hazewinkel
452b4cdba1
Adding support for a getbulk oriented walk.
...
The getbulk can only be used for SNMPv2c and SNMPv3.
2005-04-11 14:56:44 +00:00
Harrie Hazewinkel
e6ae6fc62d
Adding SNMPv2 community based (i.e. protocol version) functions.
2005-03-16 14:29:40 +00:00
foobar
f485fc1a83
Missed one place..
2005-02-12 18:29:42 +00:00
foobar
751712628a
This was not good idea.
2005-02-12 18:27:22 +00:00
foobar
9ea10c5cec
- Fix some memory leaks
2005-01-08 12:02:22 +00:00
Ilia Alshanetsky
d0cbaa911f
Fixed bug #30995 (snmp extension does not build with net-snmp 5.2).
2004-12-07 00:33:24 +00:00
Anantha Kesari H Y
e510e26aa6
removed unwanted NEW_LIBC checks and comments
2004-09-27 14:19:07 +00:00
Ilia Alshanetsky
0bdfab022a
Fixed bug #27661 (snmpget() does not close the socket in some cases).
2004-03-23 23:12:50 +00:00
Ilia Alshanetsky
6dca37c50c
Fixed possible overflow.
2004-02-03 03:10:28 +00:00
foobar
f4983c0d3f
- Renamed all *php4* files to *php5*, changed all php4/PHP4 to php5/PHP5
2004-01-17 13:00:38 +00:00
foobar
ccfc46b0aa
- Happy new year and PHP 5 for rest of the files too..
...
# Should the LICENSE and Zend/LICENSE dates be updated too?
2004-01-08 17:33:29 +00:00
Andi Gutmans
dbeb4158d2
- A belated happy holidays and PHP 5
2004-01-08 08:18:22 +00:00
Wez Furlong
51c342efae
Make these build with new win32 build system.
2003-12-19 17:00:14 +00:00
Ilia Alshanetsky
4c4d5a02b9
Fixed formatting issues (patch by: Joe Orton)
2003-10-17 02:21:27 +00:00
Ilia Alshanetsky
b9823393ea
Fixed bug #25636 (SNMP Session not closed on success).
...
Patch by: nesslage[at]mwsc[dot]edu
2003-09-23 18:26:02 +00:00
foobar
a299e943f8
- Fixed bug #25604 (HAVE_SNMP_PARSE_OID undefined with phpize build)
2003-09-23 08:15:49 +00:00
Zeev Suraski
9db05a36a5
Remove 'proto' from internal functions
2003-08-07 16:46:11 +00:00
Harrie Hazewinkel
4d2229d6a3
Bug 24760 fix, in which the port number when non-default is not handled
...
correctly and ends up as the default port. This seems to be caused by
some buffer overflow where the port number is assign zero, even though
it it is not assigned to the port variable.
FIx was reported and a fix proposed by "chuck+php at 2003 dot snew dot com"
2003-07-24 21:48:55 +00:00
foobar
704a7e5653
- Added snmp_read_mib() which reads a MIB file into the active MIB tree.
2003-07-16 09:28:47 +00:00
foobar
82701d48c2
- Fixes some problems (debug mode only). (bug #23051 and bug #23685 )
2003-07-16 06:03:46 +00:00
foobar
9887afad9c
Remove extra proto. (copy/paste error?)
2003-07-16 05:10:29 +00:00
foobar
6676e6f2e9
Fixed bug #22529 (object_id parameter in all snmp*() functions broken.)
2003-07-16 04:54:40 +00:00
Harrie Hazewinkel
ecef612862
Applying the correct format of the CREDITS.
2003-07-14 18:55:35 +00:00
Harrie Hazewinkel
68a7ce29d1
Updating the CREDITS with those who are indicated as authors in the code.
2003-07-14 18:19:34 +00:00
Harrie Hazewinkel
a8d156177f
Adding an SNMP GETNEXT.
...
This is a basic SNMP operation that retrieves the next value as the
one provided to the command.
NOTE: snmpgetnext does not follow the official naming convetions of
functions, but now it is equal to it version 1 equivalents snmpget
and snmpset.
I also would like to reserve the snmp_getnext for a function to
which a session can be given instead of the multiple values to
create the session internally. (Work in progress).
2003-07-14 18:10:22 +00:00
Harrie Hazewinkel
fa910bd2b0
(RE applying)
...
Cleaning up some very old definitions of version 3.3.1 until 3.5.3.
Those versions are that old that people better upgrade the SNMP libraries.
2003-07-14 17:34:56 +00:00
Harrie Hazewinkel
6dd04c368e
(RE-)Applying the contributed patch of Johan Hanne to the main tree.
...
The patch enables control on the way the values are returned
into the PHP script, instaed of always strings. Also the
type of the value is now returned when configured to do so.
This enables better management scripts to do more automatic
processing and value calculations.
(By default the values are returned as strings, as was before)
2003-07-14 17:11:04 +00:00
foobar
e3cd8fac9b
- Unified PHP_SETUP_OPENSSL with other PHP_SETUP_* macros.
2003-06-24 14:05:26 +00:00
James Cox
f68c7ff249
updating license information in the headers.
2003-06-10 20:04:29 +00:00
foobar
7d256c1ae1
MFB
2003-02-21 10:43:32 +00:00
foobar
5c63fad55c
MFB: Sanity check.
2003-02-17 22:45:50 +00:00