Alexis La Goutte
8b66d8fae7
From Jose Pedro Oliveira via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6719
...
pcapio.c: bug in libpcap_write_interface_description_block
The attached patch fixes a copy_and_paste error in the code of the function libpcap_write_interface_description_block(): strlen(name) instead of strlen(filter).
svn path=/trunk/; revision=40423
2012-01-10 13:59:27 +00:00
Guy Harris
37654b4023
Constify some arguments.
...
svn path=/trunk/; revision=37674
2011-06-15 20:13:42 +00:00
Bill Meier
f7d44fa268
Don't close file handle if a file write error; (caller does the close)
...
Fixes "USE_AFTER_FREE" defect reported by Coverity Prevent.
svn path=/trunk/; revision=36226
2011-03-21 17:07:18 +00:00
Michael Tüxen
5f96074755
Fix a comment.
...
svn path=/trunk/; revision=28174
2009-04-27 09:58:09 +00:00
Guy Harris
2b36f00d1c
Use GLib's G_MAXUINT16 as the largest value that fits in a guint16.
...
svn path=/trunk/; revision=28172
2009-04-27 08:38:58 +00:00
Michael Tüxen
6c26c204a1
Improve handling of strings longer than 64KB.
...
svn path=/trunk/; revision=28169
2009-04-27 07:12:36 +00:00
Michael Tüxen
f76f80ac31
Trying to make the Windows compiler happy.
...
svn path=/trunk/; revision=28168
2009-04-27 05:53:02 +00:00
Guy Harris
b8b67161c8
More casts to deal with 64-bit size_t.
...
svn path=/trunk/; revision=28167
2009-04-26 22:27:46 +00:00
Guy Harris
caff2f7cd4
Cast both parts of a FILETIME to guint32, as I think DWORD is signed.
...
svn path=/trunk/; revision=28166
2009-04-26 22:24:48 +00:00
Guy Harris
b6a18ad0b8
Add code that should work on Windows to get current time as microseconds
...
since January 1, 1970, 00:00:00 UTC.
svn path=/trunk/; revision=28165
2009-04-26 22:14:23 +00:00
Michael Tüxen
46e57a5574
(Try to) fix the 64-bit issues.
...
svn path=/trunk/; revision=28164
2009-04-26 21:30:40 +00:00
Michael Tüxen
fff39b54ee
Don't declare now when not used.
...
svn path=/trunk/; revision=28163
2009-04-26 20:03:16 +00:00
Michael Tüxen
120bf41606
Windows does not support gettimeofday(). Use 0 as a workaround for now.
...
svn path=/trunk/; revision=28162
2009-04-26 20:01:56 +00:00
Michael Tüxen
b09b4f4084
constify some args of libpcap_write_enhanced_packet_block()
...
similar to libpcap_write_packet().
svn path=/trunk/; revision=28161
2009-04-26 19:24:36 +00:00
Michael Tüxen
16027310e0
Fix names.
...
svn path=/trunk/; revision=28160
2009-04-26 19:16:54 +00:00
Michael Tüxen
b23f4a90fd
Add functions to write several pcapng blocks.
...
svn path=/trunk/; revision=28159
2009-04-26 18:40:40 +00:00
Michael Tüxen
f5547c0d78
Make ringbuffer.[ch] file format agnostic.
...
Move write routines to dumpcap.c
This is a preparation for pcapng support.
svn path=/trunk/; revision=28155
2009-04-26 15:51:25 +00:00
Martin Mathieson
a95ce819f6
OK, fix it properly by adding test after config.h has been included...
...
svn path=/trunk/; revision=20668
2007-02-01 12:34:28 +00:00
Martin Mathieson
acfb8508f2
Fix with-pcap build by disabling HAVE_LIBPCAP guard for now, for some reason it isn't defined when building this file.
...
svn path=/trunk/; revision=20667
2007-02-01 12:28:35 +00:00
Ronnie Sahlberg
4755299358
there is no point in pcapio unless we have PCAP available.
...
svn path=/trunk/; revision=20663
2007-02-01 08:38:54 +00:00
Ronnie Sahlberg
89f022b12b
name change
...
svn path=/trunk/; revision=18197
2006-05-21 05:12:17 +00:00
Guy Harris
e6886d90ce
When capturing, we only support writing to libpcap files. Given that,
...
bypass Wiretap; that means we don't have to run the packet through
wtap_process_pcap_packet() and then undo that conversion in Wiretap if
we're just going to write it out, shortening the code path.
svn path=/trunk/; revision=17461
2006-03-04 22:33:04 +00:00