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 =
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
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
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
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