-Coders,
"make test TESTOPTS='-P tcp'" currently fails for CVS MAIN in the proxy tests:
45:testing Proxy GET support...FAIL
46:testing Proxy SET support...FAIL
Further investigation reveals that this is a real problem (rather than a test
script bug): if the destination for the proxy is down at the time the agent
starts, then a configuration such as
proxy -t 2 -r 1 -v 2c -c testcommunity tcp:localhost:7765 system
(i.e. proxy over TCP) will fail. UDP works fine, as well as starting the proxy
destination agent before the agent itself.
agent/mibgroup/ucd-snmp/proxy.c fails in snmp_open() around here:
- --- snip ---
/*
* usm_set_reportErrorOnUnknownID(0);
*
* hack, stupid v3 ASIs.
*/
/*
* XXX: on a side note, we don't really need to be a reference
* platform any more so the proper thing to do would be to fix
* snmplib/snmpusm.c to pass in the pdu type to usm_process_incoming
* so this isn't needed.
*/
ss = snmp_open(&session);
/*
* usm_set_reportErrorOnUnknownID(1);
*/
if (ss == NULL) {
/*
* diagnose snmp_open errors with the input netsnmp_session pointer
*/
snmp_sess_perror("snmpget", &session);
SOCK_CLEANUP;
return;
}
- --- snap ---
causing it to print "snmpget: Unknown host (tcp:localhost:7765) (Connection
refused)". Tracking down further, it fails in snmplib/snmp_api.c:_sess_open()
here:
--- snip ---
if (slp->transport == NULL) {
DEBUGMSGTL(("_sess_open", "couldn't interpret peername\n"));
in_session->s_snmp_errno = SNMPERR_BAD_ADDRESS;
in_session->s_errno = errno;
snmp_set_detail(session->peername);
snmp_sess_close(slp);
return NULL;
}
- --- snap ---
Can anyone come up with a proposed fix?
+Thomas
--
Thomas Anders (thomas.anders at blue-cable.de)
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders