aboutsummaryrefslogtreecommitdiffstats
path: root/capture_opts.h
Commit message (Collapse)AuthorAgeFilesLines
* In Tethereal, don't save to a temporary file if "-w" isn't specified,Guy Harris2006-04-031-7/+8
| | | | | | | | | | | | | | | | | even if doing a live capture; just print the packets without saving them. In dumpcap: default to the capturing the entire packet; don't do the "Press any key" stuff when debugging on UN*X; do console logging (to the standard error) even when we're running as the capture child (the sync pipe should only be the standard output, not the standard error). svn path=/trunk/; revision=17786
* the point of no return ...Ulf Lamping2006-02-111-1/+1
| | | | | | | | | | | | | | | | using dumpcap as the capture child for Ethereal. dumpcap is a plain console application now, even for Win32 (so no WinMain, create_console and special piping stuff reguired). The undocumented command line option -Z will switch dumpcap into "child mode", using binary instead of plain text output messages to communicate with a parent Ethereal. Ethereal's main.c no longer needs to distinguish between child mode or not, so some simplifying here. capture_sync.c has to call dumpcap in a "hidden window" mode using CreateProcess instead of spawnvp, otherwise an uggly console window would appear. The handles created by _pipe doesn't seem to be inheritable for this function, using CreatePipe instead. The file capture_loop.c is only needed by dumpcap, removed from Ethereal link objects. Some debugging aid added and other minor cleanup done. svn path=/trunk/; revision=17256
* remove all calls to exit() from the capture_opts.c and replace them by ↵Ulf Lamping2006-02-101-3/+3
| | | | | | | | status return values (0,1 or 2). This way makes it much easier to debug, e.g. to set a common breakpoint if a command line parameter fails. svn path=/trunk/; revision=17240
* move output_to_pipe flag from tethereal's loop_data into capture_opts, so it ↵Ulf Lamping2006-01-071-0/+1
| | | | | | can be used by dumpcap (capture_loop.c) as well svn path=/trunk/; revision=16972
* warning: function declaration isn't a prototypeJörg Mayer2005-12-181-1/+1
| | | | svn path=/trunk/; revision=16852
* HUGE STEP (hopefully toward the right direction):Ulf Lamping2005-12-131-4/+19
| | | | | | | | | | | | remove a lot of redundant code from tethereal and use (move) stuff from capture_loop.c instead. concentrate common capture related code in capture_opts.c, e.g. trying to find the right interface to capture from (command line option, preference, first usable) instead of duplicating this code over several files. remove redundant code from dumpcap.c this also implements command line option -D (and indexed interfaces at -i) for Ethereal and Dumpcap (as we have it in Tethereal already for a while) svn path=/trunk/; revision=16787
* add capture_opts_trim(), as this sequence is used three times now (will ↵Ulf Lamping2005-12-051-0/+5
| | | | | | replace the other appearances later) ... svn path=/trunk/; revision=16683
* split capture.h into capture.h, capture_loop.h and capture_opts.h and place ↵Ulf Lamping2005-12-031-0/+112
the parts into the corresponding files svn path=/trunk/; revision=16664