Ethereal-dev: Re: [Ethereal-dev] What is the best way to get data from one dissector to anothe

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

From: Jeff Morriss <morriss@xxxxxxxxx>
Date: Fri, 14 Nov 2003 14:06:51 -0500

Michael Lum wrote:

The concrete example is OPC/DPC in MTP3:

The OPC and DPC are integers that I want to make available to the SCCP
dissector.

Put externs in packet-mtp3.h ?

There's a 'private' pointer that can be used. MTP3 currently sets this to be the SI (in order to pass the SI to the mtp3mg dissector):

  pinfo->private_data = (void *)(sio & SERVICE_INDICATOR_MASK);

This pointer could probably be made to point to a more complicated structure which would be defined in packet-mtp3.h ?