On Fri, Mar 28, 2014 at 10:14:48AM +0100, Joel Hansell wrote:
> I'm not sure if you can get much out of it. As I wrote earlier, it seems
> like the recvfrom() call is the culprit, returning 0.0.0.0.
> As you can see, we're using the directive
> snmpTrapdAddr 10.0.1.10:1162
Right, there was not much new there :-(
But I got an idea anyway. Maybe this will help?
diff --git a/snmplib/transports/snmpUDPBaseDomain.c
b/snmplib/transports/snmpUDPBaseDomain.c
index 58b6fde..8497f71 100644
--- a/snmplib/transports/snmpUDPBaseDomain.c
+++ b/snmplib/transports/snmpUDPBaseDomain.c
@@ -386,7 +386,7 @@ netsnmp_udpbase_recv(netsnmp_transport *t, void
*buf, int size,
void **opaque, int *olength)
{
int rc = -1;
- socklen_t fromlen = sizeof(struct sockaddr);
+ socklen_t fromlen = sizeof(netsnmp_sockaddr_storage);
netsnmp_indexed_addr_pair *addr_pair = NULL;
struct sockaddr *from;
/Niels
--
Niels Baggesen - @home - Ã…rhus - Denmark - [email protected]
The purpose of computing is insight, not numbers --- R W Hamming
------------------------------------------------------------------------------
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders