Add the ability to specify a filter to be used when reading the file to
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 10 Aug 1999 07:16:47 +0000 (07:16 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 10 Aug 1999 07:16:47 +0000 (07:16 +0000)
commitdf379b28d2ea38ebe2491a896142e68e49f00043
tree2a160810c80b8a18d317238edf220c323ae0ef1c
parenta7da844b0fd04f56b77222d1efcc7449f07e1741
Add the ability to specify a filter to be used when reading the file to
the "Open File" dialog box (the "Open File" dialog box equivalent of the
"-R" flag).  Have "load_cap_file()" take the filter expression as an
argument, and make the global "rfilter" into a member of a
"capture_file" structure.

When reading a temporary capture file after a live capture, don't apply
any filter.

Move the code that pops up error boxes on file opens when reading a
capture file back to "load_cap_file()"; it also pops up error boxes if
the filter expression can't be parsed.

Don't enable "File/Save" or "File/Save As..." if an attempt to read a
capture file fails - if there was already an open capture file, it was
closed by "load_cap_file()", so we no longer have an open file to save.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@460 f5534014-38df-0310-8fa8-9805f1628bb7
capture.c
doc/ethereal.pod.template
ethereal.c
file.c
file.h