Ethereal-users: Re: [ethereal-users] Ethereal dissector for SNMP traps?

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <guy@xxxxxxxxxx>
Date: Mon, 31 Jan 2000 13:26:23 -0800 (PST)
> The packets are sent from various ports, but always received on
> port 162 which is the snmp-trap port.  The packets show up
> as UDP, and are not dissected any further.

...because Ethereal doesn't know that port 162 is also an SNMP port.

> Any ideas?

Add to the list of UDP ports in "packet-udp.c" the line

	#define UDP_PORT_SNMP_TRAP 162

and change

  else if (PORT_IS(UDP_PORT_SNMP))
      dissect_snmp(pd, offset, fd, tree);

in "dissect_udp()" to

  else if (PORT_IS(UDP_PORT_SNMP) || PORT_IS(UDP_PORT_SNMP_TRAP))
      dissect_snmp(pd, offset, fd, tree);