Ethereal-dev: [Ethereal-dev] porting protocol hierarchy stats to TETHEREAL

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

From: sergio morant <sergio.morant@xxxxxxxxxxxxxxxx>
Date: Tue, 28 May 2002 18:28:52 +0200
  Hello all of you:
First of I want to say that my english is not too good so I will try to explain my self as much as I can. I have made allready a module quite similar to protocol_hierarchy_stats that gets some statistics after a capture is been done and it prints all the information in a file besides the "protocol hierchy stats" that presents all the information in a GTK window. Now the module works quite well with ethereal but as long as I don't have need of the GTK I want to port it to TETHEREAL. I know that my problem is dealing with the structure of "capture_file" because when I try to make the loop (same as protocol hierarchy stats) : for (frame = cfile.plist; frame != NULL; frame = frame->next) {
I get an empty pointer in cfile.plist besides the pointer first frame.

If some body can explain me a little bit wich is the difference in handeling the structure between ethereal and tethereal I will be really gratefull.

Thanks a lot