Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Ethereal-dev: RE: [Ethereal-dev] dissector registration question

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

From: Filonenko Alexander-AAF013 <AAF013@xxxxxxxxxxxx>
Date: Fri, 24 Sep 2004 18:00:48 -0500
Guy,

Sounds very good. 

Appreciate your help with my issues,
Alex
> -----Original Message-----
> From: ethereal-dev-bounces@xxxxxxxxxxxx 
> [mailto:ethereal-dev-bounces@xxxxxxxxxxxx] On Behalf Of Guy Harris
> Sent: Thursday, September 23, 2004 12:05 PM
> To: Ethereal development
> Subject: Re: [Ethereal-dev] dissector registration question
> 
> 
> Filonenko Alexander-AAF013 wrote:
> 
> > My question is - how to link dissector of an application 
> protocol to 
> > the
> > framing protocol dissector by TCP port number.
> 
> See how the HTTP dissector does it - it has a routine 
> "http_dissector_add()", which takes a port number and a dissector 
> handle, and:
> 
> 	registers the HTTP dissector with "tcp.port" for that 
> port number;
> 	registers the specified dissector handle in its own 
> dissector table for 
> that port.
> 
> When dissecting the body of an HTTP request, it looks up the 
> port number 
> in that table to see if it has a dissector for that port number, and 
> calls that dissector if it does.
> 
> _______________________________________________
> Ethereal-dev mailing list
> Ethereal-dev@xxxxxxxxxxxx 
> http://www.ethereal.com/mailman/listinfo/ethere> al-dev
>