Commit Graph

6 Commits

Author SHA1 Message Date
John Thacker b22ed213e0 capture: Move pcap failure secondary message to header
Move get_pcap_failure_secondary_error_message from static
in dumpcap to capture-pcap-util-int.h  This means that when
serializing the capabilities, we can just serialize the
open status enum and the open status string, and recover
the secondary status string when deserializing. This also
lets us make the secondary message a pointer to a const
char* instead of doing as much string copying.
2023-12-18 19:30:01 -05:00
Guy Harris 2971ce995d Check for success of routines called between pcap_create() and pcap_activate().
Report failures of attempts to set various attributes between
pcap_create() and pcap_activate().

Make a routine not called outside capture/capture-pcap-util.c static.
2023-12-07 03:14:10 -08:00
Gerald Combs 9e0ce57c4d Convert capture/*.[ch] to C99 types
Convert capture/*.[ch] to C99 types. Update other files where needed.

Ping #19116
2023-06-14 19:50:03 +00:00
Moshe Kaplan 65a651d5b9 capture: Add header files to Doxygen
Add @file markers for capture
headers so that Doxygen will
generate documentation for them.

Additionally, update the doxygen
config file per
7fee50274f
merging the caputils and capchild
directories.
2021-11-30 06:27:26 +00:00
Guy Harris 6d9b0646d8 If opening a capture device provides a warning, show it.
We start the capture anyway, but print a warning message or pop up a
warning dialog first.
2021-06-23 02:31:31 -07:00
João Valverde 7fee50274f Merge the caputils/ and capchild/ directories
The distinction between the different kinds of capture utility
may not warrant a special subfolfer for each, and sometimes the
distinction is not be clear or some functions could stradle
multiple "categories" (like capture_ifinfo.[ch]).

Simplify by having only a generic 'capture' subfolder. The
separate CMake libraries are kept as a way to reuse object code
efficiently.
2021-03-29 06:08:02 +01:00