aboutsummaryrefslogtreecommitdiffstats
path: root/capture_sync.c
AgeCommit message (Collapse)AuthorFilesLines
2005-02-28Another step towards using the parent/child mode for ALL captures.Ulf Lamping1-71/+94
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-24if capture filename passed to parent, save it. Will currently take no effect.Ulf Lamping1-3/+11
svn path=/trunk/; revision=13487
2005-02-23pass child capture filename to parent process (name currently unused) and ↵Ulf Lamping1-8/+58
some fork_child cleanup svn path=/trunk/; revision=13482
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-07when building the argv string, use save_file_fd_str instead of save_file_fd ↵Ulf Lamping1-3/+3
to avoid confusion with the capture_opts field svn path=/trunk/; revision=13343
2005-02-07In the child process, capture_opts->fork_child is 0, not -1, so, in thatGuy Harris1-14/+21
case, don't attempt to send a signal to the child. Expand a comment. svn path=/trunk/; revision=13333
2005-02-07Declare "cf_callback_t" before using it in a further declaration.Guy Harris1-1/+1
Mark the "func" argument to "cf_callback_remove()" as unused. Get rid of the "iface" argument to "cf_start_tail()", as it's no longer used. svn path=/trunk/; revision=13331
2005-02-06Get rid of a few cf_get_ references missed by the previous checkin.Guy Harris1-2/+2
svn path=/trunk/; revision=13325
2005-02-06another two steps towards privilege seperation:Ulf Lamping1-4/+4
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-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-05minor enhancements to Guy's last updateUlf Lamping1-3/+3
svn path=/trunk/; revision=13304
2005-02-05Put "cf_status_t" back.Guy Harris1-6/+6
svn path=/trunk/; revision=13303
2005-02-04huge cleanup of capture file API (functions in file.c/file.h).Ulf Lamping1-23/+29
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 access to global cfile, use access functions and capture_opts insteadUlf Lamping1-6/+7
svn path=/trunk/; revision=13285
2005-02-04add missing conversion to new use of save_file and fork_childRonnie Sahlberg1-4/+4
svn path=/trunk/; revision=13279
2005-02-04(some) redesign of capture data structures.Ulf Lamping1-49/+48
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-2/+2
is the place where it should be svn path=/trunk/; revision=13268
2004-12-29Fix it to compile on systems without "pcap_datalink_val_to_name()" (orGuy Harris1-1/+1
with "pcap_datalink_val_to_name()" but without a declaration of it in "pcap.h" *cough* Software Update *cough*). svn path=/trunk/; revision=12858
2004-12-29Don't use a global capture_opts in the capturing engine (this isn't a good ↵Ulf Lamping1-48/+52
idea). Do some more "housekeeping" in the capturing part. Hopefully the unspecified forward declaration of capture_options_t in main.h is portable, but buildbot will tell me. This way I need the internals of that struct only at the places I really use it. svn path=/trunk/; revision=12853
2004-10-30Move some #defines and #includes around, and add some other #includes,Guy Harris1-0/+40
to make it compile on UN*X. Get rid of some #includes that don't appear to be needed, at least on OS X 10.3 (they might be needed on other platforms). svn path=/trunk/; revision=12453
2004-10-30code cleanup: split capture_sync from capture.c into it's own file. Ulf Lamping1-0/+796
That's the part used, when "Update list of packets in real time" is used while capturing. svn path=/trunk/; revision=12445