Ethereal-cvs: [ethereal-cvs] cvs commit: ethereal file.c file.h ethereal.c menu.c capture.c
guy 1999/07/23 21:42:56 CDT
Modified files:
. file.c file.h ethereal.c menu.c capture.c
Log:
Have "close_cap_file()" disable all menu items that make sense only if
you have a capture.
Leave the job of enabling and disabling menu items that make sense only
if you have a capture (except for "File/Save" and "File/Save As...", for
now) up to "load_cap_file()", "close_cap_file()", and the like - don't
scatter that stuff throughout the code.
Disable "File/Print Packet" if no packet is selected; enable it only if
a packet is selected.
If there's a selected packet, and a display filter is run:
if the selected packet passed the filter, re-select it;
if the selected packet didn't pass the filter, un-select it.
If we've opened a live "pcap" capture, but can't do the capture because
we can't get the netmask info, or can't parse the capture filter string,
or can't install the filter, close the live capture and the dump and
delete the dump file.
If we failed to open a live "pcap" capture, don't try to read the
capture file - it doesn't exist.
Revision Changes Path
1.43 +50 -24 ethereal/file.c
1.22 +4 -1 ethereal/file.h
1.61 +7 -16 ethereal/ethereal.c
1.28 +2 -1 ethereal/menu.c
1.35 +16 -6 ethereal/capture.c