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
>