Hello!

If I put the line

agentxsocket TCP:localhost

in my snmpd.conf, then it sets up a socket on 127.0.0.1:161 and listens, but
I would have expected it to listen on 127.0.0.1:705.

If we look at the code then in agentx/master.c there is the line

sess.local_port = AGENTX_PORT;

but if I look at netsnmp_tcp_create_tstring in snmplib/snmpTCPDomain.c then
netsnmp_sockaddr_in is called with the third argument 0, neither local nor
remote, and in netsnmp_tcp_transport local is used as a flag to determine
if it is a server or client connection.

/MF


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to