aboutsummaryrefslogtreecommitdiffstats
path: root/pcapio.c
AgeCommit message (Collapse)AuthorFilesLines
2012-09-20We always HAVE_CONFIG_H so don't bother checking whether we have it or not.Jeff Morriss1-2/+0
svn path=/trunk/; revision=45015
2012-06-28Update Free Software Foundation address.Jakub Zawadzki1-1/+1
(COPYING will be updated in next commit) svn path=/trunk/; revision=43536
2012-04-25Allow writing ISB with given recv/drop counters.Michael Tüxen1-21/+14
No functional change by this commit. svn path=/trunk/; revision=42242
2012-04-15Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7048Michael Tüxen1-2/+12
Write timetamps for the interface statistic blocks the way specified by http://www.winpcap.org/ntar/draft/PCAP-DumpFileFormat.html svn path=/trunk/; revision=42080
2012-03-26Fix Coverty 1392 ('name' might be NULL): don't write out the interface name ↵Jeff Morriss1-1/+1
when we're trying to write out the interface description. svn path=/trunk/; revision=41779
2012-03-20To be consistent with the wiretap API don't null terminate the counted strings.Anders Broman1-49/+49
svn path=/trunk/; revision=41682
2012-03-12From Jose Pedro Oliveira:Anders Broman1-530/+530
Enforce the modelines in dumpcap.c and in pcapio.c svn path=/trunk/; revision=41505
2012-03-12From Jose Pedro Oliveira: Add ModlinesAnders Broman1-0/+13
svn path=/trunk/; revision=41496
2012-03-10In pcapng.c use the units per second value from the interface instead ofGerald Combs1-3/+4
the default. Add support for reading nseclibpcap files to dumpcap. svn path=/trunk/; revision=41455
2012-03-09From Jose Pedro Oliveira:Anders Broman1-42/+43
pcapio.c: write IDB options in numeric order and corrects the IDB block_total_length. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6718 svn path=/trunk/; revision=41447
2012-03-06Add a note about using GetSystemTimePreciseAsFileTime.Gerald Combs1-3/+6
svn path=/trunk/; revision=41382
2012-03-05Fix calculation of pading for if_filter_str.Anders Broman1-3/+3
svn path=/trunk/; revision=41351
2012-03-04if_filter isn't a string per se,The first byte of the Option Data keeps a ↵Anders Broman1-3/+8
code of the filter used svn path=/trunk/; revision=41339
2012-02-25From Jose Pedro Oliveira: pcapio is writing the if_speed value in the ↵Anders Broman1-1/+1
IDB_TSRESOL optiones svn path=/trunk/; revision=41184
2012-02-24Fix a typo and revert previous.Anders Broman1-1/+1
svn path=/trunk/; revision=41179
2012-02-22- Write ISB(s) at start and end of capture.Anders Broman1-4/+2
- Read all options. - Prepare to write ISB. svn path=/trunk/; revision=41137
2012-02-22Expand the API for ISB:sAnders Broman1-4/+60
svn path=/trunk/; revision=41136
2012-02-21Correctly write os string...Michael Tüxen1-2/+2
svn path=/trunk/; revision=41125
2012-02-21Whitespace changes.Michael Tüxen1-2/+2
svn path=/trunk/; revision=41117
2012-02-21Whitespace changes.Michael Tüxen1-10/+10
svn path=/trunk/; revision=41113
2012-02-21Use tab indentation as elsewhere in the files.Michael Tüxen1-148/+156
Only whitespace changes. svn path=/trunk/; revision=41110
2012-02-21Check if the string exists first.Anders Broman1-10/+10
svn path=/trunk/; revision=41109
2012-02-21Extend libpcap_write_interface_description_block() wiyh more optionsAnders Broman1-67/+162
all exept os curently unused. svn path=/trunk/; revision=41108
2012-02-14From Anders: Add support for options in the SHB.Michael Tüxen1-6/+65
From me: Some whitespace changes. svn path=/trunk/; revision=41026
2012-01-10From Jose Pedro Oliveira via ↵Alexis La Goutte1-2/+2
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
2011-06-15Constify some arguments.Guy Harris1-3/+3
svn path=/trunk/; revision=37674
2011-03-21Don't close file handle if a file write error; (caller does the close)Bill Meier1-6/+5
Fixes "USE_AFTER_FREE" defect reported by Coverity Prevent. svn path=/trunk/; revision=36226
2009-04-27Fix a comment.Michael Tüxen1-1/+1
svn path=/trunk/; revision=28174
2009-04-27Use GLib's G_MAXUINT16 as the largest value that fits in a guint16.Guy Harris1-11/+10
svn path=/trunk/; revision=28172
2009-04-27Improve handling of strings longer than 64KB.Michael Tüxen1-26/+37
svn path=/trunk/; revision=28169
2009-04-27Trying to make the Windows compiler happy.Michael Tüxen1-2/+2
svn path=/trunk/; revision=28168
2009-04-26More casts to deal with 64-bit size_t.Guy Harris1-4/+6
svn path=/trunk/; revision=28167
2009-04-26Cast both parts of a FILETIME to guint32, as I think DWORD is signed.Guy Harris1-1/+5
svn path=/trunk/; revision=28166
2009-04-26Add code that should work on Windows to get current time as microsecondsGuy Harris1-2/+29
since January 1, 1970, 00:00:00 UTC. svn path=/trunk/; revision=28165
2009-04-26(Try to) fix the 64-bit issues.Michael Tüxen1-5/+5
svn path=/trunk/; revision=28164
2009-04-26Don't declare now when not used.Michael Tüxen1-0/+2
svn path=/trunk/; revision=28163
2009-04-26Windows does not support gettimeofday(). Use 0 as a workaround for now.Michael Tüxen1-0/+4
svn path=/trunk/; revision=28162
2009-04-26constify some args of libpcap_write_enhanced_packet_block()Michael Tüxen1-2/+2
similar to libpcap_write_packet(). svn path=/trunk/; revision=28161
2009-04-26Fix names.Michael Tüxen1-22/+22
svn path=/trunk/; revision=28160
2009-04-26Add functions to write several pcapng blocks.Michael Tüxen1-0/+291
svn path=/trunk/; revision=28159
2009-04-26Make ringbuffer.[ch] file format agnostic.Michael Tüxen1-13/+18
Move write routines to dumpcap.c This is a preparation for pcapng support. svn path=/trunk/; revision=28155
2007-02-01OK, fix it properly by adding test after config.h has been included...Martin Mathieson1-4/+3
svn path=/trunk/; revision=20668
2007-02-01Fix with-pcap build by disabling HAVE_LIBPCAP guard for now, for some reason ↵Martin Mathieson1-2/+3
it isn't defined when building this file. svn path=/trunk/; revision=20667
2007-02-01there is no point in pcapio unless we have PCAP available.Ronnie Sahlberg1-0/+4
svn path=/trunk/; revision=20663
2006-05-21name changeRonnie Sahlberg1-2/+2
svn path=/trunk/; revision=18197
2006-03-04When capturing, we only support writing to libpcap files. Given that,Guy Harris1-0/+186
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