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: "Michael Lum" <mlum@xxxxxxxxxxxxx>
Date: Fri, 14 Nov 2003 11:14:00 -0800
That would require that every dissector using the private pointer be changed
right ?

Is passing data common ?

> -----Original Message-----
> From: Jeff Morriss [mailto:morriss@xxxxxxxxx]
> Sent: Friday, November 14, 2003 11:07 AM
> To: mlum@xxxxxxxxxxxxx
> Cc: Ethereal
> Subject: Re: [Ethereal-dev] What is the best way to get data from one
> dissector to another one above ?
>
>
>
> 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 ?
>