aboutsummaryrefslogtreecommitdiffstats
path: root/capture.c
Commit message (Collapse)AuthorAgeFilesLines
* Another step towards using the parent/child mode for ALL captures.Ulf Lamping2005-02-281-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
* some more cleanup of the capturing code (e.g. split up of the code reading ↵Ulf Lamping2005-02-271-26/+38
| | | | | | in the "normal mode" captured data) svn path=/trunk/; revision=13538
* bugfix to bring up correct error message if capture file couldn't be openened.Ulf Lamping2005-02-271-20/+17
| | | | | | some code cleanup svn path=/trunk/; revision=13537
* some clarification of the capture child thingUlf Lamping2005-02-271-5/+20
| | | | svn path=/trunk/; revision=13535
* move capture_opts related things (init, command line, ...) from capture.c to ↵Ulf Lamping2005-02-231-272/+0
| | | | | | a new file capture_opts.c and let both ethereal and tethereal use it. svn path=/trunk/; revision=13474
* add the number of autostop files to the command line parameters, e.g.:Ulf Lamping2005-02-221-0/+4
| | | | | | | | -a files:20 also added this to the manpage, the user's guide will follow later svn path=/trunk/; revision=13473
* change nmake makefiles in /trunk and /trunk/epan so thatLars Roland2005-02-131-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
* fix a capture bug if the capture filter wasn't valid to get back to "empty" ↵Ulf Lamping2005-02-081-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
* fix a bug if capturing into named files is usedUlf Lamping2005-02-071-1/+3
| | | | svn path=/trunk/; revision=13345
* Move the code to set the title on a window when a capture is in progressGuy Harris2005-02-071-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
* Include <ctype.h> for "isspace()".Guy Harris2005-02-061-1/+3
| | | | | | #ifdef a variable used only if _WIN32 is defined. svn path=/trunk/; revision=13324
* another two steps towards privilege seperation:Ulf Lamping2005-02-061-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
* some cleanup of the initial start sequence of Ethereal, filling in ↵Ulf Lamping2005-02-061-1/+1
| | | | | | capture_opts and alike svn path=/trunk/; revision=13317
* fix bugs regarding the capture childUlf Lamping2005-02-061-1/+1
| | | | svn path=/trunk/; revision=13316
* instead of initializing the capture_options in main.c, use the new function ↵Ulf Lamping2005-02-061-0/+35
| | | | | | capture_opts_init svn path=/trunk/; revision=13315
* rename kill_capture_child to capture_kill_child to have a common prefixUlf Lamping2005-02-051-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
* Put "cf_status_t" back.Guy Harris2005-02-051-3/+3
| | | | svn path=/trunk/; revision=13303
* huge cleanup of capture file API (functions in file.c/file.h).Ulf Lamping2005-02-041-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
* remove #include "globals.h" and access to global cfile, use access functions ↵Ulf Lamping2005-02-041-12/+11
| | | | | | and capture_opts instead svn path=/trunk/; revision=13283
* (some) redesign of capture data structures.Ulf Lamping2005-02-041-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
* move capture_file_fd field from capture_file to capture_opts type, as this ↵Ulf Lamping2005-02-031-4/+4
| | | | | | is the place where it should be svn path=/trunk/; revision=13268
* Rename capture_combo_utils.{c,h} to capture_ui_utils.{c,h}, as the codeGuy Harris2005-01-161-1/+1
| | | | | | | in there is for UI functions including, but not limited to, the combo box in capture dialogs. svn path=/trunk/; revision=13061
* Use a more descriptive name, if available, for the network interface inGuy Harris2005-01-161-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
* move global capture_child flag into capture_optionsUlf Lamping2004-12-291-6/+1
| | | | svn path=/trunk/; revision=12855
* Don't use a global capture_opts in the capturing engine (this isn't a good ↵Ulf Lamping2004-12-291-32/+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
* bugfix: button in capture info dialog has to stop capturingUlf Lamping2004-11-101-2/+2
| | | | svn path=/trunk/; revision=12506
* Move some #defines and #includes around, and add some other #includes,Guy Harris2004-10-301-57/+6
| | | | | | | | 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
* Get rid of forward declarations of functions not defined in this file.Guy Harris2004-10-301-12/+0
| | | | svn path=/trunk/; revision=12452
* split capture_loop from capture.c, some more code cleanupUlf Lamping2004-10-301-1285/+8
| | | | svn path=/trunk/; revision=12451
* move quit_after_cap into capture_optsUlf Lamping2004-10-301-2/+1
| | | | svn path=/trunk/; revision=12449
* code cleanup: split capture_sync from capture.c into it's own file. Ulf Lamping2004-10-301-717/+8
| | | | | | That's the part used, when "Update list of packets in real time" is used while capturing. svn path=/trunk/; revision=12445
* Move prefs.c and prefs.h into the epan subdirectory.Guy Harris2004-09-271-1/+1
| | | | svn path=/trunk/; revision=12115
* If we have "pcap_datalink_val_to_name()", use it when we construct aGuy Harris2004-09-221-0/+5
| | | | | | | | | "-y" argument for the capture subprocess - the capture subprocess will expect a symbolic value, not a numeric value, if we have "pcap_datalink_name_to_val()". (We assume that if one is present the other will be present as well.) svn path=/trunk/; revision=12064
* Move dissectors to epan/dissectors directory.Gilbert Ramirez2004-07-181-16/+16
| | | | | | | | | | Also move ncp222.py, x11-fields, process-x11-fields.pl, make-reg-dotc, and make-reg-dotc.py. Adjust #include lines in files that include packet-*.h files. svn path=/trunk/; revision=11410
* Set the svn:eol-style property on all text files to "native", so thatGuy Harris2004-07-181-1/+1
| | | | | | | | | they have LF at the end of the line on UN*X and CR/LF on Windows; hopefully this means that if a CR/LF version is checked in on Windows, the CRs will be stripped so that they show up only when checked out on Windows, not on UN*X. svn path=/trunk/; revision=11400
* On at least some platforms, a #define of O_BINARY is needed even ifGuy Harris2004-06-301-1/+5
| | | | | | <fcntl.h> is included, as <fcntl.h> doesn't define it. svn path=/trunk/; revision=11276
* define of O_BINARY not needed, if fcntl.h is includedUlf Lamping2004-06-291-6/+1
| | | | | | other #include related cleanups svn path=/trunk/; revision=11272
* added an option to "avoid" the capture info dialog completely.Ulf Lamping2004-06-201-13/+30
| | | | | | | | This matters for "update of list in real time" (sync_mode) only, as in normal mode you wouldn't otherwise have the possibility to stop the capture. svn path=/trunk/; revision=11194
* From Lars Roland: add support for building a libethereal.dll with MSVC:Guy Harris2004-05-091-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | add a config.nmake option to control whether to build libethereal.dll or not; remove "./wiretap" from PATH to prevent problems due to wrongly-loaded files; build dissector.lib with MSVC; move "print.c" and "ps.c" to the dissector helpers, as "print.c" imports variables from packet-frame.c and packet-data.c, which are in libethereal; move "g711.c" out of the dissector helpers, as they're used only by Ethereal in a tap, not in Tethereal or in any dissector; add a .def file for libethereal; arrange to declare global variables exported from libethereal with "__declspec(dllimport)" when building programs that import those variables; update the NSIS installer. Make the "configure" script define ETH_VAR_IMPORT as "extern". svn path=/trunk/; revision=10834
* Failures when capturing should be reported as errors.Guy Harris2004-04-171-11/+11
| | | | svn path=/trunk/; revision=10620
* From Jon Oberheide: Add interface name to the capture and ethereal windowMichael Tüxen2004-04-131-2/+2
| | | | | | while capturing. svn path=/trunk/; revision=10594
* Include "packet-ap1394.h" to declare "capture_ap1394()".Guy Harris2004-03-231-1/+2
| | | | svn path=/trunk/; revision=10451
* Add support for DLT_APPLE_IP_OVER_IEEE_1394.Guy Harris2004-03-231-1/+4
| | | | svn path=/trunk/; revision=10446
* experimental: make usage of pcap_setbuff to increase the kernel buffer sizeUlf Lamping2004-03-131-1/+15
| | | | svn path=/trunk/; revision=10377
* capture dialog limits now with units.Ulf Lamping2004-03-041-2/+2
| | | | | | no gint "wrap around" tests implemented yet svn path=/trunk/; revision=10304
* fixed differences between capture GUI frontend and backendUlf Lamping2004-03-041-51/+76
| | | | svn path=/trunk/; revision=10303
* implemented capture dialog 3rd (+x) proposalUlf Lamping2004-03-021-15/+15
| | | | svn path=/trunk/; revision=10279
* Capturing: "Number of files" switches between normal and multiple mode,Ulf Lamping2004-02-281-27/+40
| | | | | | "Use ring buffer" switches between multiple single run and real ring buffer svn path=/trunk/; revision=10257
* bugfix from previous check inUlf Lamping2004-02-211-23/+23
| | | | svn path=/trunk/; revision=10170
* quit_after_cap should be a gboolean, not an int, and it should be initializedUlf Lamping2004-02-211-6/+6
| | | | svn path=/trunk/; revision=10169