Ethereal-dev: RE: [Ethereal-dev] advice?

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

From: "Giles Scott" <gscott2@xxxxxxxxxxxxxxxxxx>
Date: Mon, 17 Feb 2003 15:35:02 -0000
Title: RE: [Ethereal-dev] advice?

I was thinking along those lines. There is something I can look for, and I see where I would need to add some code to make the choice just having a little trouble in working out how I register this 'new' protocol (do I need to?).


Currently I have this;
void
proto_reg_handoff_dssp(void)
{
        dissector_handle_t dssp_handle;
       
        dssp_handle = create_dissector_handle(dissect_dssp, proto_dssp);
        dissector_add("tcp.port", 80, dssp_handle);
}

Which obviously does not work when I have http port set to 80.


Cheers

Giles


-----Original Message-----
From: David Frascone [mailto:dave@xxxxxxxxxxxx]
Sent: Monday, February 17, 2003 10:28 AM
To: Scott, Giles [BRAM:9295:EXCH]
Cc: ethereal-dev@xxxxxxxxxxxx
Subject: Re: [Ethereal-dev] advice?


If there is some reliable way to identify your protocol from http, then all you have to do is put a check in the http dissector to identify your protocol, then if the packet is yours, call your subdissector.

-Dave

On Monday, 17 Feb 2003, Giles Scott wrote:
> Hi
>
> I'm writing a dissector which shares a port with another dissector.
>
> I'm looking for the best way for the two dissectors to co-exist.
>
> The 'new' protocol is on tcp port 80 which obviously shares with HTTP.
>
> Any advice?
>
> Cheers
>
> Giles Scott
>
>
>


--
David Frascone

               I'm not even going to ignore that.