Ethereal-dev: Re: [Ethereal-dev] Can we decode hex dumps?

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

From: "Gilbert Ramirez" <gram@xxxxxxxxxx>
Date: Thu, 26 Apr 2001 16:12:06 -0500
----- Original Message -----
From: "Ashok Narayanan" <ashokn@xxxxxxxxx>
To: "Gilbert Ramirez" <gram@xxxxxxxxxx>
Cc: <ethereal-dev@xxxxxxxxxxxx>
Sent: Thursday, April 26, 2001 3:28 PM
Subject: Re: [Ethereal-dev] Can we decode hex dumps?


>
> Another question: Is it possible to directly give a packet to Layer 3 or
even
> to a protocol? I'm thinking of a scenario where I have got a hex dump of a

> Thoughts? Alternatives?

Provide a WTAP_ENCAP_* type for every protocol, and have every
protocol register themselves with the "wtap_encap" dissector.
In your example, wiretap would return encapsulation type
WTAP_ENCAP_RSVP, and the rsvp dissector would have
registered itself with the wtap_encap dissector table.

--gilbert