Re: How is the IP address obtained from the trap packet?

Juergen Schoenwaelder (schoenw@ibr.cs.tu-bs.de)
Mon, 23 Oct 1995 23:08:52 +0100

Hi!

jsong@nlc.com (James Song) said:

James> I am wondering if the IP address passed to the trap handler is
James> from UDP packet header or from the SNMP trap packet. I am
James> having a problem to determine where the trap is from. The
James> agent development certainly has a hard time to find the local
James> IP address. But I was told that this only affects the SNMP
James> packet. The UDP packet header should still have the right IP
James> address. Since the trap handler is passed with the wrong IP
James> address, does this mean that the IP address is obtained from
James> the SNMP trap packet? I would appreciate any help on this
James> matter.

Some earlier versions had problems with this. The current version
(2.0.1) uses the IP address from the UDP header:

> Wed Aug 2 23:33:41 1995 Juergen Schoenwaelder <schoenw@data>
>
> * straps.c, snmpNet.c:
> Straps now reports the IP address and the port of the
> SNMP entity that send us the trap message.

Please make sure you are using 2.0.*. If the problem still exists,
send me an example script that will reproduce this error here. It
would also be helpful to include debug output from scotty (turn `snmp
watch on').

Juergen