Ethereal

Re: [Ethereal-dev] error in printing error message using simple_dialog
Google
 
Web Ethereal.com

Home | Introduction | Documentation | Lists | FAQ | Development | Wiki | Bugs

Ethereal-dev: June 2006


Raman Singla wrote:

> there is a file (trace.def) which is having all the structure format
> telling
> how the hexdumps should be decode for gprs messages
>
> suppose system is unable to open this file, there should be a error
> message
> indicating that error file is missing.

Unfortunately, there's currently no mechanism to allow a Wiretap module
for handling a particular file type to report such an error - and there's
no mechanism to have an "init" routine for the module, which is where the
file should be read in any case.

You'd have to wait for such a mechanism to be added.  They probably should
be added; Ethereal, Tethereal, etc. would call wtap_init(), or something
such as that, to initialize Wiretap, and it would either return TRUE if it
succeeded or FALSE if an error occurred.  If it failed, it'd also return a
string that Ethereal could put in a dialog box and Tethereal could print.



Powered by MHonArc 2.6.10