Re: SNMPD v5.8 Error opening specified endpoint

2018-08-29 Thread Bill Fenner
Could you please test this change? --- a/snmplib/transports/snmpUDPIPv4BaseDomain.c +++ b/snmplib/transports/snmpUDPIPv4BaseDomain.c @@ -312,7 +312,7 @@ netsnmp_udpipv4base_tspec_transport(netsnmp_tdomain_spec *tspec) if (NULL != tspec->source) { struct sockaddr_in src_addr, *srcp =

Re: SNMPD v5.8 Error opening specified endpoint

2018-08-26 Thread Bill Fenner
On Sat, Aug 25, 2018 at 3:45 PM Martin Frlin wrote: > If you specify trapsink line in form localhost: it does not bind a > socket because it does not set a source in the piece of code I have linked. > I was suggesting adding "-s 127.0.0.1:" to your trapsink line, like trapsink -s 127.0.0.1:6213

Re: SNMPD v5.8 Error opening specified endpoint

2018-08-25 Thread Martin Frlin
If you specify trapsink line in form localhost: it does not bind a socket because it does not set a source in the piece of code I have linked. Regarding why it binds to port 161 I don't understand your comment. I know that destination port will be 162 because that is where the snmptrapd listens (b

Re: SNMPD v5.8 Error opening specified endpoint

2018-08-24 Thread Bill Fenner
On Thu, Aug 23, 2018 at 9:24 AM Martin Frlin wrote: > Ok, additional information. > Compare this line in v5.8: > https://sourceforge.net/p/net-snmp/code/ci/master/tree/agent/agent_trap.c#l358 > with this line > https://sourceforge.net/p/net-snmp/code/ci/v5.7.3/tree/agent/agent_trap.c#l251 > > You

Re: SNMPD v5.8 Error opening specified endpoint

2018-08-23 Thread Martin Frlin
Ok, additional information. Compare this line in v5.8: https://sourceforge.net/p/net-snmp/code/ci/master/tree/agent/agent_trap.c#l358 with this line https://sourceforge.net/p/net-snmp/code/ci/v5.7.3/tree/agent/agent_trap.c#l251 You will see that v5.7 does not set a source. And because it does not