aboutsummaryrefslogtreecommitdiffstats
path: root/capture_opts.c
AgeCommit message (Collapse)AuthorFilesLines
2012-03-13Closing a capture file has nothing to do with the list of interfaces onGuy Harris1-0/+19
which to do a live capture; don't clear the latter list when closing the capture file. collect_ifaces() should clear out the existing list of interfaces before filling that list up with the interfaces selected by the user. In addition, when it frees up interfaces in that list, it should free up the strings attached to those interfaces. svn path=/trunk/; revision=41517
2012-03-12capture_opts_add_iface_opt() is not used outside capture_opts.c; make itGuy Harris1-1/+1
static. svn path=/trunk/; revision=41494
2012-03-11Add a comment to indicate what collect_ifaces() does.Guy Harris1-0/+4
svn path=/trunk/; revision=41490
2012-01-25Actually, you only have monitor mode support if you have pcap_create() -Guy Harris1-0/+2
without pcap_create() and pcap_activate() you don't have any API to turn it on. svn path=/trunk/; revision=40725
2012-01-25monitor_mode_enabled is only available on WIN32 or if we HAVE_PCAP_CREATE.Jeff Morriss1-2/+2
svn path=/trunk/; revision=40717
2012-01-25Third try. This time pipes and stdin are supported and theMichael Tüxen1-2/+53
test scripts are passed. Use a global list containing all interfaces and only change properties of the entries when changes are made in the GUI. Do not misuse the list of interfaces specified on the command line anymore. This patch does not provide any new functionality, it just provides the base for future extensions like removing remote interface, mulitple airpcap devices and multiple pipes. This patch was provided by Irene Ruengeler. svn path=/trunk/; revision=40715
2012-01-24We need a 3rd try. (After learning how to run the testuite on Windows locally).Michael Tüxen1-214/+1
svn path=/trunk/; revision=40695
2012-01-24Second try. This time pipes and stdin are supported.Michael Tüxen1-1/+214
Use a global list containing all interfaces and only change properties of the entries when changes are made in the GUI. Do not misuse the list of interfaces specified on the command line anymore. This patch does not provide any new functionality, it just provides the base for future extensions like removing remote interface, mulitple airpcap devices and multiple pipes. This patch was provided by Irene Ruengeler. svn path=/trunk/; revision=40693
2011-12-29Add an additional DONT_HAVE_PCAP return value from get_interface_list()Guy Harris1-0/+2
and capture_interface_list(). Return it if, on Windows, we ask for the interface list but don't have WinPcap installed. Handle it like CANT_GET_INTERFACE_LIST. svn path=/trunk/; revision=40334
2011-10-20Back out infrastructure change. We missed supportingMichael Tüxen1-127/+1
stdin and pipes. svn path=/trunk/; revision=39498
2011-10-20Use a global list containing all interfaces and only changeMichael Tüxen1-1/+127
properties of the entries when changes are made in the GUI. Do not misuse the list of interfaces specified on the command line anymore. This patch does not provide any new functionality, it just provides the base for future extensions like removing remote interface, mulitple airpcap devices and multiple pipes. This patch was provided by Irene Ruengeler. svn path=/trunk/; revision=39495
2011-08-29Replace "-Q" with "WIRESHARK_QUIT_AFTER_CAPTURE" as discussed in bug 6256.Gerald Combs1-5/+1
svn path=/trunk/; revision=38784
2011-07-21Undo the checking of command line interfaces. It might the a pipe...Michael Tüxen1-56/+37
svn path=/trunk/; revision=38146
2011-07-21Make sure that the interfaces listed in ifaces really exist.Michael Tüxen1-37/+56
Some protection code in capture / options. Obtained from Irene Ruengeler. svn path=/trunk/; revision=38142
2011-07-11Having a non-NULL capture_opts->save_file might make us crash less.Gerald Combs1-0/+1
svn path=/trunk/; revision=37983
2011-07-11In version_info.c, assume we always have the "matches" operator. InGerald Combs1-6/+0
capture_opts.c, assume our output filename has been passed through arg_list_utf_16to8(). svn path=/trunk/; revision=37974
2011-06-30Oops, indented one of the "Promiscuous" ones.Guy Harris1-1/+1
svn path=/trunk/; revision=37850
2011-06-30Line up the colons.Guy Harris1-59/+59
svn path=/trunk/; revision=37849
2011-06-30It's not made from semolina. :-)Guy Harris1-2/+2
svn path=/trunk/; revision=37848
2011-06-30Cleanup.Michael Tüxen1-5/+1
svn path=/trunk/; revision=37840
2011-06-28Code cleanup.Michael Tüxen1-20/+4
svn path=/trunk/; revision=37820
2011-06-27Get rid of old non-interface specific settings which are now interfaceMichael Tüxen1-131/+45
specifc. This finalizes the change of the infrastructure. This patch is based on work by Irene Ruengeler. svn path=/trunk/; revision=37794
2011-06-17Make pcap-ng the default. Add a compile-time option to prefer pcap-ng orGerald Combs1-1/+8
pcap. Add a "-P" capture option which tries to use pcap instead of pcap-ng ("-P" seemed to be the best option but we may want to use a different letter). Update the documentation and release notes. svn path=/trunk/; revision=37696
2011-06-16Really print the rpcap username when logging, notMichael Tüxen1-3/+3
the rpcap password. This only affects remote capturing. svn path=/trunk/; revision=37681
2011-05-31Get rid of has_cfilter to simplify the handling of multiple interfaces.Michael Tüxen1-3/+2
svn path=/trunk/; revision=37478
2011-05-19It is not an error (anymore) to specify multiple capture filters.Michael Tüxen1-4/+0
This was wireshark -i lo0 -f sctp -i en0 -f udp -k will work. svn path=/trunk/; revision=37287
2011-05-16Make remote capturing settings a per interface thing. You can nowMichael Tüxen1-0/+145
configure that you want to capture on multiple remote interfaces on mulitple hosts. Improve some #ifdef mess in dumpcap. svn path=/trunk/; revision=37178
2011-05-16Make pcap samping a per interface setting.Michael Tüxen1-127/+187
Use consistent naming of variables on capture_options. Make pcap sampling independent of remote capturing, since it seems to work local pcap devices using winpcap (at least that is what the documentation says). svn path=/trunk/; revision=37176
2011-05-16* Fix a bug when printing a pointer.Michael Tüxen1-27/+24
* Remove number_of_ifaces, since ifaces->len can be used instead. svn path=/trunk/; revision=37174
2011-05-13Get -L and -d working with multiple interface. Internally get some functionsMichael Tüxen1-4/+4
using the array of interface data. Improve output of -L by printing the interface name. svn path=/trunk/; revision=37120
2011-05-13Use the same default value for the snaplen in the new array as in theMichael Tüxen1-1/+1
old way. svn path=/trunk/; revision=37113
2011-05-12Add support for handling multiple interfaces as command lineMichael Tüxen1-59/+194
parameters. An array of interface specific data is handled in addition to the current way. This change should not have any effect right now, it will be used by dumpcap when supporting multiple interfaces (and tshark/wireshark... in the future). svn path=/trunk/; revision=37082
2011-05-12Another whitespace cleanup.Michael Tüxen1-32/+32
svn path=/trunk/; revision=37076
2011-05-12Clean up some indentation. A purely whitespace change.Michael Tüxen1-61/+61
svn path=/trunk/; revision=37073
2011-04-11Back out Jeff Morris's change to make the autostop file size 64-bit - itGuy Harris1-3/+3
didn't change the GUI code for setting the autostop file size, and that broke the build. svn path=/trunk/; revision=36552
2011-04-11Jeff Morris's change to make the autostop file size 64-bit. Fixes bugGuy Harris1-3/+3
5691. svn path=/trunk/; revision=36551
2011-04-10Rename ws_stat to ws_stat64, and make it take a pointer to a ws_statb64Guy Harris1-2/+2
as an argument, along the lines of ws_fstat64, and, on Windows, make it use _wstati64, to handle 64-bit file sizes. svn path=/trunk/; revision=36547
2011-03-28Use fprintf_stderr() instead of printf() so "wireshark -D" works (on Windows).Chris Maynard1-3/+3
svn path=/trunk/; revision=36387
2011-03-01Make HAVE_PCAP_REMOTE and HAVE_PCAP_SETSAMPLING independentMichael Tüxen1-25/+25
as in other places of the code. Such that this is consistently used. While there, clean up some whitespaces. This fix was provided by Irene Ruengeler which testing remote capturing (with multiple interfaces). svn path=/trunk/; revision=36112
2010-09-08Follow up to rev 34073: Since "-b files:0" is no longer necessary toStephen Fisher1-1/+1
override the default of turning on a multiple file ring buffer, require a positive integer to be specified for the files value. svn path=/trunk/; revision=34082
2010-08-28As mentioned on the users-mailinglist[1], it could be useful to have groups ↵Sake Blok1-0/+5
read access to the ringbuffer that dumpcap creates. That way, a group of people can access the capture files without having to use root access. [1] http://www.wireshark.org/lists/wireshark-users/201008/msg00235.html svn path=/trunk/; revision=33978
2010-05-27Set RINGBUFFER_MAX_NUM_FILES to 100000. Use it to generate file names.Gerald Combs1-1/+6
Add RINGBUFFER_WARN_NUM_FILES and use it to print a warning. Print warnings when we change the number of ringbuffer files. svn path=/trunk/; revision=32998
2010-05-27Make -q not a capture option again - it's used by tshark even when notGuy Harris1-4/+0
capturing, and thus even when we build without pcap. svn path=/trunk/; revision=32988
2010-05-26Add a -q flag to dumpcap, to squelch its reporting of the packet count,Guy Harris1-0/+4
and add support for SIGINFO, so, if your OS supports SIGINFO, you can get the packet count by typing ^T. svn path=/trunk/; revision=32958
2010-05-14Um, no, the problem with the Leopard x86 build is that we first do aGuy Harris1-1/+1
build without libpcap, to make sure that works, and then do a build with libpcap, to put into a binary release. It's the former that's failing; I'll back out the previous change and then work on that. svn path=/trunk/; revision=32801
2010-05-14See whether the Leopard x86 buildbot is upset because of the nameGuy Harris1-1/+1
if_capabilities_t - it doesn't fail on Snow Leopard, even if I undefine HAVE_PCAP_CREATE, and doesn't fail on the Leopard PPC buildbot, either. svn path=/trunk/; revision=32799
2010-05-13Fetch an indication of whether the interface supports capturing inGuy Harris1-5/+8
monitor mode at the same time that we fetch its list of link-layer types. Support fetching that list in monitor mode, as the list may be different in regular and monitor mode. If the interface supports monitor mode, when printing the list of link-layer types, indicate whether they're fetched in monitor mode or not, as tcpdump 4.1.x does. svn path=/trunk/; revision=32789
2010-05-08Prune some includes.Guy Harris1-24/+0
svn path=/trunk/; revision=32721
2010-05-07As with the list of data link types, so with the list of interfaces; moveGuy Harris1-80/+8
the code to print the machine-readable format into dumpcap, and have the code in capture_opts.c just print the human-readable format. svn path=/trunk/; revision=32714
2010-05-07Add routines vfprintf_stderr() and fprintf_stderr() to print to theGuy Harris1-5/+6
standard error and, in Wireshark on Windows, create a console if necessary. Have the cmdarg_err routines use them. Use *fprintf_stderr() to print the output of -L, rather than using cmdarg_err_cont(), so that we don't get extra newlines in the output (it should look similar to the output of tcpdump). svn path=/trunk/; revision=32711