aboutsummaryrefslogtreecommitdiffstats
path: root/capture.c
AgeCommit message (Collapse)AuthorFilesLines
2005-05-26changed the loglevel of "capture kill" from message to info (it's no action ↵Ulf Lamping1-1/+1
that the user directly triggered) svn path=/trunk/; revision=14446
2005-05-26use the log features of the GLib to have verbose output of the capturing ↵Ulf Lamping1-1/+15
engine, e.g. GLib provides different domains for different submodules. Output more verbose than warning level will be disabled by default (just like before). use the console_log_handler in main.c for win32 AND unix now Currently use the log for the capturing engine (only), as I desperately needed a log output for debugging. svn path=/trunk/; revision=14438
2005-05-25the capture child might not respond shortly after bringing it up (especially ↵Ulf Lamping1-0/+7
it will block, if no input coming from an input capture pipe (e.g. mkfifo) is coming in) to prevent problems, bring the main GUI into "capture mode" right after successfully spawn/exec the capture child, without waiting for any response from it svn path=/trunk/; revision=14436
2005-04-30removed various gcc warningsUlf Lamping1-0/+4
svn path=/trunk/; revision=14246
2005-04-30(hopefully) removed various gcc warningsUlf Lamping1-1/+1
svn path=/trunk/; revision=14241
2005-04-27add a state member to the capture_opts, and set it according to the capture ↵Ulf Lamping1-2/+13
engine svn path=/trunk/; revision=14205
2005-04-18statusbar changes:Ulf Lamping1-4/+2
-show the current capture file size, if capturing in real time mode. -move the packet "Drops" count (if available) from file to packets statusbar part svn path=/trunk/; revision=14130
2005-04-17bugfix: show the right filesize after a live capture finishedUlf Lamping1-1/+4
svn path=/trunk/; revision=14118
2005-04-16rename capture_clear() to capture_restart()Ulf Lamping1-1/+13
statusbar update should work now even in capture error case svn path=/trunk/; revision=14105
2005-04-16bugfix: don't crash on error in normal mode captureUlf Lamping1-3/+10
svn path=/trunk/; revision=14104
2005-04-12don't display "No packets captured" dialog, when using the new clear featureUlf Lamping1-2/+2
svn path=/trunk/; revision=14060
2005-04-12capture engine: Ulf Lamping1-2/+26
add a new feature to clear the currently captured packets and restart the capture with the previous parameters various code cleanup and minor bugfixes Win32: use millisecond resolution in capture_loop, to smooth screen update a bit (500ms instead of 1000ms) svn path=/trunk/; revision=14059
2005-04-12it should now be possible to use "Update packets in real time" even if used ↵Ulf Lamping1-3/+4
with one of the "Multiple files" option. If this is used together with an option where input files changes too fast (e.g. new file every second), capturing will be (hopefully) stopped. I've replaced the former capture pipe message format into a somewhat more general format to remove a lot of confusion. svn path=/trunk/; revision=14054
2005-04-11various capture code cleanup and fixes: Ulf Lamping1-25/+25
display filename in statusbar while capturing print_usage banner fixed cf_cb_live_capture_prepare no longer needed rename sync_pipe_do_capture -> sync_pipe_start bugfix: sync_pipe_input_wait_for_start replaced by former implementation fix cleanup of old file in capture_input_new_file fix a tempfile detection bug (named file showed up as tempfile after capture) svn path=/trunk/; revision=14053
2005-04-10bugfix: call to cf_cb_live_capture_..._started with correct parameterUlf Lamping1-2/+2
svn path=/trunk/; revision=14045
2005-04-10fix statusbar messages by splitting into update and fixed messages between ↵Ulf Lamping1-7/+10
capture and main svn path=/trunk/; revision=14044
2005-04-10bugfix: hide panes if a non "Update" capture had no packets captured ↵Ulf Lamping1-5/+5
(hopefully it's working correct now...) svn path=/trunk/; revision=14043
2005-04-10bugfix: call cf_cb_live_capture_finished *if* some packets were capturedUlf Lamping1-0/+2
svn path=/trunk/; revision=14042
2005-04-10bugfix: when no packets were captured, don't call ↵Ulf Lamping1-2/+4
cf_cb_live_capture_finished after closing the capture file svn path=/trunk/; revision=14039
2005-04-10Clean up indentation.Guy Harris1-119/+119
svn path=/trunk/; revision=14036
2005-03-28some minor changesUlf Lamping1-5/+4
svn path=/trunk/; revision=13962
2005-03-28bugfixes: bring non real-time captures back to former behaviour, other minor ↵Ulf Lamping1-0/+6
fixes svn path=/trunk/; revision=13961
2005-03-28various (minor) capture code cleanupUlf Lamping1-48/+21
svn path=/trunk/; revision=13957
2005-03-28fix Solaris build (I've removed O_BINARY)Ulf Lamping1-4/+4
rename sync_mode to real_time_mode, as we using sync_mode all the time now, so the name is misleading svn path=/trunk/; revision=13956
2005-03-28remove capture_child flag from capture_opts as it's no longer requiredUlf Lamping1-8/+8
svn path=/trunk/; revision=13954
2005-03-28a lot more capture engine code cleanupUlf Lamping1-153/+133
most notably: - moved opening of safe_file to the capture child (capture_loop.c) - removed save_file_fd from capture_opts (no longer need to have it global) svn path=/trunk/; revision=13953
2005-03-28major capture engine rework: use two task model for EVERY capture modeUlf Lamping1-7/+23
rework of the -b command line parameter (for Ethereal and Tethereal) svn path=/trunk/; revision=13949
2005-02-28Another step towards using the parent/child mode for ALL captures.Ulf Lamping1-9/+17
This is currently still disabled, as we cannot pass all required capture flags to the child process (lack of command line parameters). svn path=/trunk/; revision=13558
2005-02-27some more cleanup of the capturing code (e.g. split up of the code reading ↵Ulf Lamping1-26/+38
in the "normal mode" captured data) svn path=/trunk/; revision=13538
2005-02-27bugfix to bring up correct error message if capture file couldn't be openened.Ulf Lamping1-20/+17
some code cleanup svn path=/trunk/; revision=13537
2005-02-27some clarification of the capture child thingUlf Lamping1-5/+20
svn path=/trunk/; revision=13535
2005-02-23move capture_opts related things (init, command line, ...) from capture.c to ↵Ulf Lamping1-272/+0
a new file capture_opts.c and let both ethereal and tethereal use it. svn path=/trunk/; revision=13474
2005-02-22add the number of autostop files to the command line parameters, e.g.:Ulf Lamping1-0/+4
-a files:20 also added this to the manpage, the user's guide will follow later svn path=/trunk/; revision=13473
2005-02-13change nmake makefiles in /trunk and /trunk/epan so thatLars Roland1-4/+0
object code for libethereal.dll isn't generated by the makefile in /trunk. Having no code in /trunk linked into libethereal.dll anymore, the definition of the macro _NEED_VAR_IMPORT_ can be moved from various source files in /trunk to /trunk/Makefile.nmake . So do that, too. svn path=/trunk/; revision=13389
2005-02-08fix a capture bug if the capture filter wasn't valid to get back to "empty" ↵Ulf Lamping1-2/+2
state. instead of already invoking cf_cb_live_capture_started in capture.c, I've introduced the new event cf_cb_live_capture_prepare which only has to set the main windows title and nothing more. svn path=/trunk/; revision=13355
2005-02-07fix a bug if capturing into named files is usedUlf Lamping1-1/+3
svn path=/trunk/; revision=13345
2005-02-07Move the code to set the title on a window when a capture is in progressGuy Harris1-6/+2
to the "start live capture" callback, and call that from "do_capture()". When opening a capture file, don't pop up the "What do you want to do?" pane when closing any existing file you have open, as we're just going to put the regular view up right after that. svn path=/trunk/; revision=13332
2005-02-06Include <ctype.h> for "isspace()".Guy Harris1-1/+3
#ifdef a variable used only if _WIN32 is defined. svn path=/trunk/; revision=13324
2005-02-06another two steps towards privilege seperation:Ulf Lamping1-6/+238
move another two capture related fields (iface and cfilter) from cfile to capture_opts also move the handling of capture related command line options from main.c to capture.c, that way a future privilege seperated capture program can use the same code to parse it's command line than Ethereal. It might be even possible to share this parser code even with Tethereal, didn't took a closer look at this. svn path=/trunk/; revision=13320
2005-02-06some cleanup of the initial start sequence of Ethereal, filling in ↵Ulf Lamping1-1/+1
capture_opts and alike svn path=/trunk/; revision=13317
2005-02-06fix bugs regarding the capture childUlf Lamping1-1/+1
svn path=/trunk/; revision=13316
2005-02-06instead of initializing the capture_options in main.c, use the new function ↵Ulf Lamping1-0/+35
capture_opts_init svn path=/trunk/; revision=13315
2005-02-05rename kill_capture_child to capture_kill_child to have a common prefixUlf Lamping1-1/+1
split drag and drop support out of main.c into new file drag_and_drop.c, to reduce the size of main.c a bit. Hopefully this won't break unix builds because of missing #include's, I will keep an eye on the buildbot svn path=/trunk/; revision=13308
2005-02-05Put "cf_status_t" back.Guy Harris1-3/+3
svn path=/trunk/; revision=13303
2005-02-04huge cleanup of capture file API (functions in file.c/file.h).Ulf Lamping1-4/+4
This includes: all functions in file.h now have a cf_ prefix, will have doxygen tags, will have the capture_file *cf as the first parameter and I tried to generalize the return values for non trivial functions. Hopefully, I didn't introduced any new bugs, as I had to change a lot of files... svn path=/trunk/; revision=13289
2005-02-04remove #include "globals.h" and access to global cfile, use access functions ↵Ulf Lamping1-12/+11
and capture_opts instead svn path=/trunk/; revision=13283
2005-02-04(some) redesign of capture data structures.Ulf Lamping1-15/+15
don't use global cfile at all but only an untpyed handle to call the cf_... functions in file.c move the save_file member from capture_file to capture_opts, as it's only used while capturing and while preparing it svn path=/trunk/; revision=13276
2005-02-03move capture_file_fd field from capture_file to capture_opts type, as this ↵Ulf Lamping1-4/+4
is the place where it should be svn path=/trunk/; revision=13268
2005-01-16Rename capture_combo_utils.{c,h} to capture_ui_utils.{c,h}, as the codeGuy Harris1-1/+1
in there is for UI functions including, but not limited to, the combo box in capture dialogs. svn path=/trunk/; revision=13061
2005-01-16Use a more descriptive name, if available, for the network interface inGuy Harris1-3/+7
window titles even on UN*X, and if the user's specified a description for an interface, use that rather than the description supplied by libpcap. Put the interface name into the main window title when doing a live capture. svn path=/trunk/; revision=13060