Gerald Combs
57eeea4b20
Add a note about using GetSystemTimePreciseAsFileTime.
...
svn path=/trunk/; revision=41382
2012-03-06 21:11:31 +00:00
Guy Harris
26f694ddee
Fix comment.
...
svn path=/trunk/; revision=41347
2012-03-05 06:43:44 +00:00
Anders Broman
ad6640344f
From Jose Pedro Oliveira: Fix typos
...
svn path=/trunk/; revision=41330
2012-03-03 16:17:20 +00:00
Gerald Combs
8334ec2b43
Another small commit to test migration.
...
svn path=/trunk/; revision=41251
2012-03-01 02:18:35 +00:00
Gerald Combs
380f3f54a7
Add a comment noting that we need to add support for files with
...
nanosecond timestamps. (Also test the recent anonymous repository
migration.)
svn path=/trunk/; revision=41248
2012-02-29 20:32:12 +00:00
Michael Tüxen
050c0a14c9
Don't use deprecated API on glib 2.31.18 and higher.
...
This should fix
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6884
svn path=/trunk/; revision=41247
2012-02-29 18:04:23 +00:00
Michael Tüxen
412c5a903c
As discussed with Anders: Only write a single ISB at the end. Proivde
...
start/end time in the ISBs.
svn path=/trunk/; revision=41160
2012-02-23 12:57:17 +00:00
Anders Broman
8fff390455
- Write ISB(s) at start and end of capture.
...
- Read all options.
- Prepare to write ISB.
svn path=/trunk/; revision=41137
2012-02-22 14:41:02 +00:00
Anders Broman
af2100d4c3
Expand the API for ISB:s
...
svn path=/trunk/; revision=41136
2012-02-22 10:01:16 +00:00
Michael Tüxen
f7dc80cb18
Whitespace changes.
...
svn path=/trunk/; revision=41124
2012-02-21 18:01:01 +00:00
Michael Tüxen
41df09c92a
Whitespace changes.
...
svn path=/trunk/; revision=41115
2012-02-21 16:28:42 +00:00
Anders Broman
1cf19ea95f
From Jose Pedro Oliveira:
...
dumpcap: only free os_version_str after the
libpcap_write_interface_description_block() calls.
svn path=/trunk/; revision=41114
2012-02-21 16:14:57 +00:00
Anders Broman
5df11d41bb
Extend libpcap_write_interface_description_block() wiyh more options
...
all exept os curently unused.
svn path=/trunk/; revision=41108
2012-02-21 13:35:04 +00:00
Anders Broman
ce86c08b58
From Jose Pedro Oliveira shb_os value: get_os_version_info() instead of get_runtime_version_info()
...
svn path=/trunk/; revision=41095
2012-02-21 05:52:50 +00:00
Anders Broman
29a14da188
Jose Pedro Oliveira: get_os_version_info() is more apropriate for shb_os
...
svn path=/trunk/; revision=41086
2012-02-20 21:17:43 +00:00
Michael Tüxen
68204c94a4
From Anders: Add support for options in the SHB.
...
From me: Some whitespace changes.
svn path=/trunk/; revision=41026
2012-02-14 17:07:52 +00:00
Anders Broman
e553c70fe8
From Michael Mann:
...
help page update (pcapng is now the default file format).
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6551
svn path=/trunk/; revision=40658
2012-01-23 07:48:53 +00:00
Guy Harris
3864d5d19d
Add an additional DONT_HAVE_PCAP return value from get_interface_list()
...
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-12-29 22:49:49 +00:00
Guy Harris
21f5ea24e4
Just hard-code the error for "can't load WinPcap"; the one that
...
cant_load_winpcap_err() has some redundant gunk in it.
svn path=/trunk/; revision=40333
2011-12-29 22:06:22 +00:00
Guy Harris
71c7f43d37
On Windows, if we can't open a capture device, check whether WinPcap is
...
loaded and, if not, report that as the problem, rather than suggesting
that you didn't specify the proper interface.
svn path=/trunk/; revision=40332
2011-12-29 21:59:24 +00:00
Guy Harris
d892f00916
Show a "Capturing on ..." message similar to TShark.
...
svn path=/trunk/; revision=39989
2011-11-22 19:07:49 +00:00
Guy Harris
939feef06f
If we're not running as a child process, report the interfaces on which
...
we're capturing. (We do not require a -i flag; the message could be
useful if you don't specify the interface, as it lets you know which
interface was chosen, which might not be the interface you'd think it
would be. Yes, that's arguably a libpcap bug, which I plan to look at;
it should probably try to figure out which interfaces are "active" if
possible, and prefer those.)
Use cmdarg_err() for invalid capture filters and other capture errors.
svn path=/trunk/; revision=39983
2011-11-22 10:08:26 +00:00
Guy Harris
46575653fd
Don't set variables if we don't look at them later. All praise Clang
...
Cat.
svn path=/trunk/; revision=39876
2011-11-16 02:18:30 +00:00
Gerald Combs
aa0c9c965c
Try to fix the GLib thread API deprecations listed in bug 6552.
...
svn path=/trunk/; revision=39776
2011-11-09 23:43:50 +00:00
Stig Bjørlykke
612dcc3c6b
As reported by Michael Speck:
...
Removed last occurrences of USE_THREADS.
svn path=/trunk/; revision=39775
2011-11-09 20:45:06 +00:00
Gerald Combs
7d442f4c22
Change the use of threads from "mostly always, depending on your
...
configure options and Gtk+ and GLib versions" to "always".
svn path=/trunk/; revision=39751
2011-11-07 23:42:53 +00:00
Chris Maynard
367cb50bd3
Minor formatting changes to the dumpcap -h output.
...
svn path=/trunk/; revision=39166
2011-09-27 18:19:23 +00:00
Bill Meier
a58121db53
Fix vi "modeline" so it works;
...
See https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5748
svn path=/trunk/; revision=39076
2011-09-21 16:44:10 +00:00
Bill Meier
9c6aca43f2
Windows: GetTickCount() returns a DWORD (not a time_t);
...
Fixes a problem on Windows wherein specifying a capture file
time duration for autostop or file-switching would stop
working after some period of time.
The reason:
GetTickCount returns DWORD (unsigned int) which
wraps "every 49.7 days";
and: The GetTickCount() return value was being stored in a time_t which is
int64 on Windows;
thus:
The test for elapsed time (using signed integers) didn't work correctly after
the time had wrapped.
Fixes Bug #6280 : https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6280
svn path=/trunk/; revision=38921
2011-09-07 18:25:54 +00:00
Stephen Fisher
dc3c5c8b63
Attempt to fix coverity id 1212: MISSING_BREAK by inserting "FALLTHROUGH"
...
comment.
svn path=/trunk/; revision=38785
2011-08-29 21:36:48 +00:00
Jeff Morriss
bf95c7b5e4
Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5608 :
...
getopt() can/should normally be found in unistd.h, so:
- When testing for getopt(), define that we HAVE_GETOPT instead of
HAVE_GETOPT_H (to avoid confusion).
- Don't attempt to include getopt.h: not all OS's have it (for example,
Solaris 9 does not).
- (All the places which need getopt already include unistd.h (if we have it).)
If this breaks things on some OS, we might need (a real) HAVE_GETOPT_H check.
svn path=/trunk/; revision=38437
2011-08-09 21:02:10 +00:00
Jörg Mayer
c15ff441c6
Replace deprecated glib functions.
...
In order to compile the whole project with -DG_DISABLE_DEPRECATED
the mate plugin needs to replace its usage of GMemChunk.
All other places should be clean.
svn path=/trunk/; revision=38392
2011-08-07 18:15:45 +00:00
Michael Tüxen
52f555d857
Use the threads based workaround only on windows (with thread support enabled),
...
since the workaround is only intended to work on windows.
svn path=/trunk/; revision=38059
2011-07-16 12:45:47 +00:00
Michael Tüxen
c481dda78c
Fix compilation on non-windows platforms defining USE_THREADS.
...
svn path=/trunk/; revision=38044
2011-07-15 14:31:27 +00:00
Michael Tüxen
c51aafc3aa
Handle the case where dumpcap is compiled without thread support, which
...
is the default.
svn path=/trunk/; revision=38043
2011-07-15 12:20:00 +00:00
Gerald Combs
a533d70be0
On Windows enable threads everywhere instead of just in dumpcap. If
...
threads are enabled use them to check the recent file list. Fixes bug
3810.
svn path=/trunk/; revision=38033
2011-07-14 23:18:02 +00:00
Guy Harris
da461f18ad
Alas, the libpcap API didn't use "void *" where it should have; squelch
...
some warnings from Clang.
svn path=/trunk/; revision=37934
2011-07-08 02:02:37 +00:00
Chris Maynard
91f30ab64f
From Jakub Zawadzki via bug 6002: Don't set state to STATE_EXPECT_DATA if there's no data to read.
...
Reference: https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6002
svn path=/trunk/; revision=37924
2011-07-06 16:22:11 +00:00
Gerald Combs
9661c3fdde
Disable DEBUG_CHILD_DUMPCAP.
...
svn path=/trunk/; revision=37864
2011-07-02 15:44:17 +00:00
Jakub Zawadzki
5c801f3820
Revert r37857, r37861
...
svn path=/trunk/; revision=37862
2011-07-01 22:26:02 +00:00
Jakub Zawadzki
fafa84d23e
Try to get more information about AV.
...
svn path=/trunk/; revision=37861
2011-07-01 22:00:59 +00:00
Jakub Zawadzki
aeb81605de
Catch system exceptions from pcap_open_live() :)
...
svn path=/trunk/; revision=37857
2011-07-01 20:07:34 +00:00
Michael Tüxen
be3a756582
Add paranoid debug output in open_capture_device().
...
svn path=/trunk/; revision=37847
2011-06-30 21:02:11 +00:00
Gerald Combs
031a28f65e
Log the success or failure of pcap_open/pcap_create/pcap_open_live.
...
svn path=/trunk/; revision=37846
2011-06-30 20:17:26 +00:00
Gerald Combs
f04a525e79
Temporarily enable dumpcap debugging.
...
svn path=/trunk/; revision=37844
2011-06-30 17:41:46 +00:00
Stig Bjørlykke
8443bbbf75
Replace all strerror() with g_strerror().
...
Remove our local strerror implementation.
Mark strerror as locale unsafe API.
This fixes bug 5715.
svn path=/trunk/; revision=37812
2011-06-28 09:00:11 +00:00
Gerald Combs
710c5d67f7
Update suite-clopts.sh to match dumpcap's error output. Add a comment
...
to dumpcap.c about keeping the errors synced.
svn path=/trunk/; revision=37805
2011-06-27 16:09:49 +00:00
Michael Tüxen
4bc67de4ea
Report the correct interface when there is a problem with a capture filter.
...
This patch is from Irene Ruengeler.
svn path=/trunk/; revision=37804
2011-06-27 12:13:15 +00:00
Michael Tüxen
2c8c178f71
Improve the report of illegal capture filters. Also show the interface description.
...
svn path=/trunk/; revision=37802
2011-06-27 11:30:39 +00:00
Michael Tüxen
421dafd2de
Get rid of old non-interface specific settings which are now interface
...
specifc. This finalizes the change of the infrastructure.
This patch is based on work by Irene Ruengeler.
svn path=/trunk/; revision=37794
2011-06-27 00:09:03 +00:00