aboutsummaryrefslogtreecommitdiffstats
path: root/capture_sync.c
AgeCommit message (Collapse)AuthorFilesLines
2012-06-28Update Free Software Foundation address.Jakub Zawadzki1-1/+1
(COPYING will be updated in next commit) svn path=/trunk/; revision=43536
2012-06-20Comment back in the body of tb80211_do_set_channel to avoid warnings aboutJörg Mayer1-0/+47
unused parameters. Add the missing functions by applying the skipped patches to capture_sync.[hc] svn path=/trunk/; revision=43414
2012-06-09Undo an accidental portion of the last commit.Chris Maynard1-1/+1
svn path=/trunk/; revision=43173
2012-06-09Be sure to specify FORMAT_MESSAGE_IGNORE_INSERTS in the dwFlags arg to all ↵Chris Maynard1-3/+3
FormatMessage() calls where FORMAT_MESSAGE_FROM_SYSTEM is also specified. (Ref: http://blogs.msdn.com/b/oldnewthing/archive/2007/11/28/6564257.aspx) svn path=/trunk/; revision=43172
2012-04-13From Evan Huus: fix memory leak. Fixes bug 7081.Guy Harris1-0/+3
svn path=/trunk/; revision=42057
2012-03-11If the length is bogus in a message received from the sync pipe, dumpGuy Harris1-2/+3
out all 4 bytes we read, to provide more information about the message that was sent so it's easier to see if something was spewing extra output to the standard output or error in the child. svn path=/trunk/; revision=41489
2012-01-25Third try. This time pipes and stdin are supported and theMichael Tüxen1-0/+2
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-2/+0
svn path=/trunk/; revision=40695
2012-01-24Second try. This time pipes and stdin are supported.Michael Tüxen1-0/+2
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
2012-01-16Move some headers for UI stuff, and the alert_box.c UI-specific file, toGuy Harris1-1/+3
the ui directory. (Perhaps some other files that would be used by all flavors of Wireshark, for any GUI toolkit or for someting such as ncurses, and not for any command-line tool such as TShark, should be moved there as well.) Shuffle some #includes to put the "ui/XXX.h" includes together. svn path=/trunk/; revision=40529
2012-01-04Expand, and fix, a comment. Change a function argument name to matchGuy Harris1-7/+16
the name in the definition of the function it calls. svn path=/trunk/; revision=40367
2011-11-16Get rid of unnecessary assignment (the code below it always assigns aGuy Harris1-1/+0
value to the variable). Praise be to Clang Cat. svn path=/trunk/; revision=39877
2011-10-20Back out infrastructure change. We missed supportingMichael Tüxen1-2/+0
stdin and pipes. svn path=/trunk/; revision=39498
2011-10-20Use a global list containing all interfaces and only changeMichael Tüxen1-0/+2
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-24Fix prematurely-terminated comment.Guy Harris1-1/+1
svn path=/trunk/; revision=38696
2011-08-24Fix a comment; this includes describing an additional way in which weGuy Harris1-5/+13
could fail to open the capture file. svn path=/trunk/; revision=38695
2011-08-23Hopefully fixMichael Tüxen1-0/+2
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6256. svn path=/trunk/; revision=38694
2011-08-05Fix Windows build.Michael Tüxen1-3/+3
svn path=/trunk/; revision=38352
2011-08-05Simplification suggested by Guy.Michael Tüxen1-3/+1
svn path=/trunk/; revision=38351
2011-08-05Generate the capure sync pipe correctly.Michael Tüxen1-15/+37
Fix obtained from Irene Ruengeler. svn path=/trunk/; revision=38349
2011-06-28Replace all strerror() with g_strerror().Stig Bjørlykke1-15/+15
Remove our local strerror implementation. Mark strerror as locale unsafe API. This fixes bug 5715. svn path=/trunk/; revision=37812
2011-06-27Fix the bug reported by Guy. NowMichael Tüxen1-6/+0
tshark -i en0 icmpp returns a correct error message. svn path=/trunk/; revision=37806
2011-06-27Report the correct interface when there is a problem with a capture filter.Michael Tüxen1-5/+11
This patch is from Irene Ruengeler. svn path=/trunk/; revision=37804
2011-06-27Get rid of old non-interface specific settings which are now interfaceMichael Tüxen1-57/+8
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-0/+2
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-07Fix gcc 4.6 "set but not used [-Wunused-but-set-variable]" warnings;Bill Meier1-684/+684
Also: whitespace cleanup. svn path=/trunk/; revision=37603
2011-05-21Fix the capturing from the GUI. Honor the iface variable.Michael Tüxen1-0/+7
The next step is to retire the iface variable and use the ifaces array only. This should simplify things and fix the cases, where you start wireshark with command line arguments and also use the GUI. svn path=/trunk/; revision=37342
2011-05-19In case we have no interface information in the array, use the global value.Michael Tüxen1-0/+48
This fixes https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5935. svn path=/trunk/; revision=37307
2011-05-19Move the debug output for the generated command line arguments to the ↵Michael Tüxen1-3/+3
correct place. svn path=/trunk/; revision=37276
2011-05-19Only declare a variable if its going to be used.Martin Mathieson1-0/+4
svn path=/trunk/; revision=37273
2011-05-18We don't have the ability to set the capture buffer size on all platforms.Guy Harris1-0/+2
svn path=/trunk/; revision=37255
2011-05-18Use the interface specific parameter array.Michael Tüxen1-69/+75
This enables the capturing from mulitple interfaces using tshark and wireshark (at the command line). (tshark -i lo0 -i en0) or (wireshark -k -i lo0 -i en0) works. You can capture from multiple remote and local interfaces. Based on work from Irene Ruengeler. svn path=/trunk/; revision=37248
2011-04-11Back out Jeff Morris's change to make the autostop file size 64-bit - itGuy Harris1-2/+2
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-2/+2
5691. svn path=/trunk/; revision=36551
2010-07-02STATUS_UNWIND_CONSOLIDATE "should not happen", so don't include it -Guy Harris1-2/+0
we'd have to include some other headers to get it defined. Get rid of the include of Winbase.h - it doesn't define STATUS_UNWIND_CONSOLIDATE, and it's not necessary. svn path=/trunk/; revision=33413
2010-07-02Include <Winbase.h> to get error statuses.Guy Harris1-0/+1
svn path=/trunk/; revision=33412
2010-07-02Attempt to detect when dumpcap dies due to an exception and report thatGuy Harris1-4/+54
appropriately. svn path=/trunk/; revision=33411
2010-07-02Have sync_pipe_wait_for_child() return the child's exit status onGuy Harris1-0/+9
Windows, just as we do on UN*X. svn path=/trunk/; revision=33410
2010-07-01From Petr Lautrbach: when capturing, return the exit status of dumpcap,Guy Harris1-0/+3
so we give a non-zero exit status for invalid interfaces or capture filters. From me: don't exit immediately if dumpcap failed, print out information from taps and the like. svn path=/trunk/; revision=33393
2010-05-27Clean up the error reporting. An EOF from the sync pipe when capturingGuy Harris1-73/+116
is just an indication that the capture child exited; don't treat it as an error, unless the child process exits with an abnormal status. As tshark sends a "stop capture" indication to the child when it's ^C'ed, the child will exit and we'll get an EOF from the capture pipe; don't make SIGINT etc. interrupt system calls, so they don't cause reads from the capture pipe to get EINTR errors. svn path=/trunk/; revision=32986
2010-05-26Untabify.Stig Bjørlykke1-35/+35
svn path=/trunk/; revision=32970
2010-05-26Don't report EINTR - it might be from a ^C.Guy Harris1-6/+24
Do report the error string for other read errors, though. svn path=/trunk/; revision=32969
2010-05-26Use the right system call name.Guy Harris1-2/+2
svn path=/trunk/; revision=32965
2010-05-26If dumpcap exits abnormally, report the error.Guy Harris1-2/+2
svn path=/trunk/; revision=32964
2010-05-19Fix comments.Guy Harris1-2/+2
svn path=/trunk/; revision=32885
2010-05-18Fix some errors. Use FormatMessageA(), as we need the string in ASCII.Guy Harris1-5/+4
svn path=/trunk/; revision=32857
2010-05-18Add a routine to convert Win32 error statuses into strings, and use itGuy Harris1-27/+60
when generating error messages. The error code from CreatePipe() is gotten by calling GetLastError(); it's not in errno. Clean up indentation a bit. svn path=/trunk/; revision=32855
2010-05-17Make -Z always generate machine-readable output, and don't botherGuy Harris1-3/+0
supplying -M along with -Z. (We keep -M around for debugging use; it's documented, unlike -Z.) svn path=/trunk/; revision=32850
2010-05-17Update a comment.Guy Harris1-3/+0
svn path=/trunk/; revision=32844
2010-05-17When dumpcap is run to get an interface list, interface capabilities, orGuy Harris1-249/+477
interface statistics, have its error messages come out as sync-pipe errors, have it send a sync-pipe "success" message on success, and have the callers get that message and display it. svn path=/trunk/; revision=32843