From: Chuck B. <ch...@cr...> - 2003-01-17 00:38:33
|
Hmmm...The problem lies in a new ALLOW_PORT_HIJACKING define that only occurs in agent/snmpUDPDomain.c Once I defined it things work as with 5.0.6. Of course it leaves the windows app susceptible to having the port taken away, as is outlined in the source file. The odd thing is that Linux runs fine without port reuse but Windows won't. Any Win32 gurus out there that could shed some light on this? I don't see anything in the MSDN docs to imply any windows-specific behavior for bind() or SO_REUSEADDR. Wes (or anyone more appropriate): Could ALLOW_PORT_HIJACKING be added to net-snmp-config.h (I assume through configure)? - Chuck Bueche -----Original Message----- From: Chuck Bueche [SMTP:ch...@cr...] Sent: Thursday, January 16, 2003 5:09 PM To: net...@li... Subject: Error opening specified endpoint: "udp:161" I'm upgrading from 5.0.6 to 5.0.7 in Win32 (linux runs fine) and having a problem starting snmpd, getting the error message above. As far as I can tell, I'm using the same configuration options that I did with 5.0.6 (which compiled and ran fine). Here's the tail-end of the debug file: trace: D:\Dev\TrippLite\net-snmp-5.0.7\agent\snmp_agent.c, 834 snmp_agent: final port spec: udp:161 trace: D:\Dev\TrippLite\net-snmp-5.0.7\agent\snmp_agent.c, 850 snmp_agent: installing master agent on port udp:161 trace: d:\dev\tripplite\net-snmp-5.0.7\snmplib\snmp_transport.c, 325 tdomain: specifier "udp" address "161" trace: d:\dev\tripplite\net-snmp-5.0.7\snmplib\snmp_transport.c, 331 tdomain: specifier "udp" matched trace: d:\dev\tripplite\net-snmp-5.0.7\snmplib\snmpudpdomain.c, 349 netsnmp_sockaddr_in: addr 0012F248, peername "161" trace: d:\dev\tripplite\net-snmp-5.0.7\snmplib\snmpudpdomain.c, 394 netsnmp_sockaddr_in: totally numeric: 161 trace: d:\dev\tripplite\net-snmp-5.0.7\snmplib\snmpudpdomain.c, 437 netsnmp_sockaddr_in: return { AF_INET, 0.0.0.0:161 } trace: d:\dev\tripplite\net-snmp-5.0.7\snmplib\snmpudpdomain.c, 206 netsnmp_udp: open local 0.0.0.0 Error opening specified endpoint "udp:161" Server Exiting with code 1 I've tried a variety of configuration changes, including: - Using all the files provided in the 5.0.7 win32 directory. - Using my old config files from version 5.0.6. - Editing the 5.0.7 files to provide changes I require (which work in 5.0.6). I'm running with no options, just 'snmpd_d'. I'm also using openssl and the Windows Platform SDK, if it matters. Any wisdom out there? Is there a new input parameter necessary that I've missed? - Chuck Bueche ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en _______________________________________________ Net-snmp-coders mailing list Net...@li... https://lists.sourceforge.net/lists/listinfo/net-snmp-coders |