Ethereal-dev: [Ethereal-dev] selecting capture encoding in wiretap

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

From: Paul Ionescu <paul@xxxxxxxx>
Date: Wed, 25 Oct 2000 23:55:07 +0300
I am trying to make a wiretap module to capture from a hex dump (like
toshiba and ascend modules).
Unfortunately, in my hex dump is no information about what type of data
being captured, but of course that I know the type since I captured it.

The question is, how to tell interactively to wiretap what type of
capture file and encoding I have at file loading time ?

For instance, wiretap does not recognize the file type, so it should ask
me if I want to interpret the file as a specific capture type and a
specific protocol type like let say WTAP_FILE_MYHEXDUMP and
WTAP_ENCAP_PPP.

This would be useful in the future, if the number of wiretap modules
grows, and the heuristic probe of a file type would be more difficult
and less precise, you have a chance to choose the right type.



-- 

Air conditioned. Do _NOT_ open Windows.