Ethereal-dev: [Ethereal-dev] New Feature: File Set list and jump to next/prev file in a multip
Hi List!
As I'm working on this for some days now, it's time to commit this new
feature and look up for comments. I know it's late to commit as the new
release is on it's way, and although I've done deep testing, we might
need to comment out some things if my implementation seems to be too
buggy or questionable.
However, here's what it does:
First of all, a File Set is the collection of files which are created
while capturing using the multiple files (incl. the ring buffer) feature.
You'll get several files with a filename pattern like:
filename_number_datetime.pcap (e.g. testfile_000001_20050429165601.pcap).
With the new "File/File Set/List Files" menu item you can now open a
dialog box showing a list of the files in a file set. This is done by
scanning the directory of the current file for files with the same
prefix/suffix.
This dialog will also show some radio buttons, which will close the
current and open the selected file.
You can also switch directly between the files by "File/File Set/Next
File" and "File/File Set/Previous File" menu items.
The selection of files from a directory isn't perfect, as there's no
other distinguishable thing than the file name. If you capture multiple
times with the same base name, the algorithm will think it's the same
file set and group it together.
Regards, ULFL
P.S: I've tested this both with GTK1 and GTK2, but don't have access to
a GLib1.x box, but buildbot will tell me if somethings wrong...