Bug #60749 [Asn->Fbk]: SNMP module should not strip non-standard SNMP port from hostname
| From: | lytboris@php.net | Date: | Fri, 13 Jan 2012 18:48:17 +0000 |
| Subject: | Bug #60749 [Asn->Fbk]: SNMP module should not strip non-standard SNMP port from hostname | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-166435@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=60749&edit=1
ID: 60749
Updated by: lytboris@php.net
Reported by: lytboris@php.net
Summary: SNMP module should not strip non-standard SNMP port
from hostname
-Status: Assigned
+Status: Feedback
Type: Bug
Package: SNMP related
Operating System: *
PHP Version: 5.4.0RC5
Assigned To: lytboris
Block user comment: N
Private report: N
New Comment:
Please try using this snapshot:
http://snaps.php.net/php5.4-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
Previous Comments:
------------------------------------------------------------------------
[2012-01-13 18:46:27] lytboris@php.net
Automatic comment from SVN on behalf of lytboris
Revision: http://svn.php.net/viewvc/?view=revision&revision=322214
Log: merge from trunk:
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
------------------------------------------------------------------------
[2012-01-13 18:33:52] lytboris@php.net
Automatic comment from SVN on behalf of lytboris
Revision: http://svn.php.net/viewvc/?view=revision&revision=322213
Log: 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 17:39:50] lytboris@php.net
Description:
------------
From net-snmp/include/net-snmp/types.h, struct snmp_session:
/** name or address of default peer (may include transport specifier and/or port number) */
char *peername;
/** UDP port number of peer. (NO LONGER USED - USE peername INSTEAD) */
u_short remote_port;
php-snmp should place non-standard SNMP port into peername after name resolution.
Test script:
---------------
$session = new SNMP(SNMP::VERSION_1, "$hostname:$port", $community, $timeout, $retries);
$session->get(".1");
Expected result:
----------------
$session->get() will send request to "$hostname:$port"
Actual result:
--------------
$session->get() will send request to "$hostname:161"
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=60749&edit=1