Ethereal-dev: Re: [Ethereal-dev] Generic encapsulation?

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

From: David Frascone <dave@xxxxxxxxxxxx>
Date: Tue, 10 Sep 2002 22:43:14 -0500
Nevermind . . . sending it to eth seems to handle the other ethertypes fine.
I need to lay off the drugs :)

Should this be a plugin though?


-Dave

On Tuesday, 10 Sep 2002, David Frascone wrote:
> 
> I'm trying to dissect a custom protocol that encapsulates on the wire
> protocols into udp.
> 
> So, in the simple case, I could call the ethernet dissector like this:
> 
> 
> 	eth_handle = find_dissector("eth");
> 
> 	/* Dissect as Ethernet */
> 	next_client	= tvb_new_subset(tvb, 0, -1, -1);
> 	call_dissector(eth_handle, next_client, pinfo, bsn_tree);
> 
> But, my problem is, that *all* protocols are encapsulated.  So, after I
> decapsulate it, I need to check the ethertype, as in
> packet-ethertype.c.  But, there doesn't seem to be a simple way to do it
> . . . any ideas?
> 
> Also, since this is a propriatary protocol, should I be writing a plugin
> instead of a normal dissector?  I guess that would make more since  . .
> . it'd be easier than maintaining a patch.
> 
> -Dave
> 
> 
> -- 
> David Frascone
> 
>                      Oxymoron: Real Magic.
> 
> _______________________________________________
> Ethereal-dev mailing list
> Ethereal-dev@xxxxxxxxxxxx
> http://www.ethereal.com/mailman/listinfo/ethereal-dev
> 

-- 
David Frascone

        Iraqi Bingo B-52..F-16..A-10.. F-18..F-117..B-2