[snmp] TrapPduv1.getIpAddress() returns negative values

Jordi Vea vea at inicia.es
Sun Nov 5 19:14:28 GMT 2006


Hello,

I'm quite new using the stack (v 5.1), but I have detected a strange 
behaviour with the TrapPduv1.
I'm receiving traps from a SNMP agent at the IP 192.168.10.60, but the 
stack gets the IP as -64.-88.10.60. ( -64=192-256, -88=168-256 )
I sniffed the SNMP PDU using Ethereal, and the Agent Address was ok, so 
I think this might be a bug from the stack. It has an easy work around, 
but has anyone detected this behaviour before?

Thanks,
Jordi Vea


More information about the snmp mailing list