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:42:13 -0800
OK, I'll try to work that out.

Thanks everyone.

> -----Original Message-----
> From: Jeff Morriss [mailto:morriss@xxxxxxxxx]
> Sent: Friday, November 14, 2003 11:40 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 ?
> 
> 
> 
> Yes, every dissector above MTP3 using the private pointer would have to 
> be changed--but AFAIK that's only mtp3mg.
> 
> I think that having the MTP3 (and later SCCP) addresses set (as per 
> Guy's suggestion) is the way to go though--especially since it would 
> allow the use of the conversation code for SCCP-Class2 (no more 
> heuristic dissectors).
> 
> Michael Lum wrote:
> 
> > 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 ?
> >>
>