From:             chuck+php at 2003 dot snew dot com
Operating system: FreeBSD (4 & 5)
PHP version:      4.3.3RC1
PHP Bug Type:     SNMP related
Bug description:  Setting SNMP port fails to actually change anything

Description:
------------
snmpget ("myhost:10161", $community, $OID);

ends up putting out packets to port, er, 161, not 10161.

verified with tcpdump.

Putting printfs in ext/snmp/snmp.c shows that
the port is being parsed right, but the packets still
go out wrong.


Compiled against net-snmp-5.0.8 (current version of netsnmp) 

A nice bonus would be to allow TCP to be used (5.0.8 allows this
just fine).

Reproduce code:
---------------
<?php
$sysLoc = snmpwalk("host03.mydomain:10161", "public", "sysLocation.0",
20);
?>


tcpdump will show it going out 161

Expected result:
----------------
It *should* use port 10161 and talk to agent there.

Actual result:
--------------
Warning: snmpget(): No response from host03.$mydomain in
    /var/www/docs/foo.php on line 2

# agent is not listening on port 161

-- 
Edit bug report at http://bugs.php.net/?id=24760&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=24760&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=24760&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=24760&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=24760&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=24760&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=24760&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=24760&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=24760&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=24760&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=24760&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=24760&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24760&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=24760&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=24760&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=24760&r=gnused

Reply via email to