Ulf Lamping
5d404864f2
use the log features of the GLib to have verbose output of the capturing 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-26 17:50:27 +00:00
Ulf Lamping
4852c618d8
add a state member to the capture_opts, and set it according to the capture engine
...
svn path=/trunk/; revision=14205
2005-04-27 19:43:02 +00:00
Ulf Lamping
7e9cedfed8
capture engine:
...
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-12 21:44:55 +00:00
Ulf Lamping
7b7f7e7f9a
Win32 only bugfix: as using TerminateProcess is the brute force way and sometimes clipped packets in the middle, now using a pipe called signal_pipe from the parent to the child for this.
...
On unix we're using kill() for this, which simply signals the child, but this isn't available on win32.
svn path=/trunk/; revision=14040
2005-04-10 16:43:22 +00:00
Ulf Lamping
0b132c9b1d
bugfixes: bring non real-time captures back to former behaviour, other minor fixes
...
svn path=/trunk/; revision=13961
2005-03-28 21:05:53 +00:00
Ulf Lamping
b64ebb05c2
fix Solaris build (I've removed O_BINARY)
...
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-28 16:14:34 +00:00
Ulf Lamping
9d6ac60cef
remove capture_child flag from capture_opts as it's no longer required
...
svn path=/trunk/; revision=13954
2005-03-28 15:31:13 +00:00
Ulf Lamping
daa67c79ba
a lot more capture engine code cleanup
...
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-28 14:39:31 +00:00
Guy Harris
d11694e340
The "cf" field of a "capture_options" structure is a "void *" and, in
...
practice, it points to a "capture_file" structure; print it with "%p",
not "%s".
svn path=/trunk/; revision=13952
2005-03-28 03:08:29 +00:00
Ulf Lamping
7e78ef354e
major capture engine rework: use two task model for EVERY capture mode
...
rework of the -b command line parameter (for Ethereal and Tethereal)
svn path=/trunk/; revision=13949
2005-03-28 00:19:02 +00:00
Guy Harris
343810d95a
Move "get_natural_int()" and "get_positive_int()" from "capture_opts.c"
...
to "clopts_common.c", make them not static, and use them in "gtk/main.c".
svn path=/trunk/; revision=13541
2005-02-27 21:15:30 +00:00
Luis Ontanon
c348bbdf91
avoid capture stopping after just 1 packet in tethereal,
...
- in capture_opts_init() set capture_opts->autostop_packets to 0 instead of one.
svn path=/trunk/; revision=13500
2005-02-24 21:22:51 +00:00
Guy Harris
8718e20103
Include <string.h> and <ctype.h> to get the appropriate functions
...
declared and macros defined.
Pass all the necessary arguments to "get_natural_int()".
svn path=/trunk/; revision=13490
2005-02-24 05:39:59 +00:00
Ulf Lamping
b6ab688e0a
pass child capture filename to parent process (name currently unused) and some fork_child cleanup
...
svn path=/trunk/; revision=13482
2005-02-23 22:04:31 +00:00
Ulf Lamping
72547c8d02
use the applications name (currently "ethereal" or "tethereal") in capture_opts, instead of hardcoded "ethereal" for both.
...
svn path=/trunk/; revision=13476
2005-02-23 08:34:12 +00:00
Ulf Lamping
d643a55488
move capture_opts related things (init, command line, ...) from capture.c to a new file capture_opts.c and let both ethereal and tethereal use it.
...
svn path=/trunk/; revision=13474
2005-02-23 01:01:19 +00:00