aboutsummaryrefslogtreecommitdiffstats
path: root/pcapio.h
AgeCommit message (Collapse)AuthorFilesLines
2014-10-12Add editor modelines; Adjust whitespace as needed.Bill Meier1-1/+14
Change-Id: I4da7b335d905dbca10bbce03aa88e1cdeeb1f8ad Reviewed-on: https://code.wireshark.org/review/4626 Reviewed-by: Bill Meier <wmeier@newsguy.com>
2014-04-14Fix warning when generate documentation (doxygen)Alexis La Goutte1-1/+2
pcapio.h:65: Warning: The following parameters of pcapng_write_session_header_block(FILE *pfile, const char *comment, const char *hw, const char *os, const char *appname, guint64 section_length, guint64 *bytes_written, int *err) are not documented: parameter 'err' Change-Id: I0eaa55a44436de5b9687c9b7846c199fe77d98e4 Reviewed-on: https://code.wireshark.org/review/1135 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-03-04Remove all $Id$ from top of fileAlexis La Goutte1-2/+0
(Using sed : sed -i '/^ \* \$Id\$/,+1 d') Fix manually some typo (in export_object_dicom.c and crc16-plain.c) Change-Id: I4c1ae68d1c4afeace8cb195b53c715cf9e1227a8 Reviewed-on: https://code.wireshark.org/review/497 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-02-25Remove trailing whitespaceBill Meier1-2/+2
Change-Id: I8116f63ff88687c8db3fd6e8e23b22ab2f759af0 Reviewed-on: https://code.wireshark.org/review/385 Reviewed-by: Bill Meier <wmeier@newsguy.com> Tested-by: Bill Meier <wmeier@newsguy.com>
2013-12-15Fix warning found by doxygenAlexis La Goutte1-3/+3
svn path=/trunk/; revision=54130
2013-09-29Rename routines that write pcap-ng files to "pcapng_xxx" rather thanGuy Harris1-47/+51
"libpcap_xxx". Rename the low-level write routine in pcapio.c to write_to_file(), as it's used for both pcap and pcap-ng files. svn path=/trunk/; revision=52275
2013-09-29We always write to a FILE *, so:Guy Harris1-17/+6
make libpcap_write_to_file() static; don't pass it as an argument to write routines, just have them call it directly; make the handle argument a FILE *. Make the data length argument to libpcap_write_to_file() a size_t, as that's what, for example, fwrite() takes as a size argument. svn path=/trunk/; revision=52274
2013-01-02Allow pcap/pcapng format to be written to more than just a file (FILE*). ↵Michael Mann1-6/+18
Gives more flexibility if needed. WRITE_DATA macro replaced and applied consistently throughout pcapio.c svn path=/trunk/; revision=46891
2012-12-26Fix a bunch of warnings.Guy Harris1-10/+10
Cast away some implicit 64-bit-to-32-bit conversion errors due to use of sizeof. Cast away some implicit 64-bit-to-32-bit conversion errors due to use of strtol() and strtoul(). Change some data types to avoid those implicit conversion warnings. When assigning a constant to a float, make sure the constant isn't a double, by appending "f" to the constant. Constify a bunch of variables, parameters, and return values to eliminate warnings due to strings being given const qualifiers. Cast away those warnings in some cases where an API we don't control forces us to do so. Enable a bunch of additional warnings by default. Note why at least some of the other warnings aren't enabled. randpkt.c and text2pcap.c are used to build programs, so they don't need to be in EXTRA_DIST. If the user specifies --enable-warnings-as-errors, add -Werror *even if the user specified --enable-extra-gcc-flags; assume they know what they're doing and are willing to have the compile fail due to the extra GCC warnings being treated as errors. svn path=/trunk/; revision=46748
2012-12-23Add support for writing per packet comments when using pcapng.Michael Tüxen1-0/+1
Not actually used with this commit, which just brings in the infrastructure. svn path=/trunk/; revision=46715
2012-12-20Don't use an pcap structures in pcapio.[ch]. Michael Tüxen1-4/+8
Currently, pcapio is only used by dumpcap, which is only compiled if there is pcap support. However, making pcapio independent from libpcap allows it also to be used from text2pcap, which does not rely on libpcap. svn path=/trunk/; revision=46637
2012-12-20Add ws_fclose(), ws_fflush(), and ws_fdopen() to the fileutils.Michael Tüxen1-10/+0
Retire libpcap_fdopen(), libpcap_dump_flush(), and libpcap_dump_close(). svn path=/trunk/; revision=46636
2012-12-19Add support for writing the flags option in the enhancedMichael Tüxen1-0/+1
packet block (pcapng). svn path=/trunk/; revision=46619
2012-12-19Whitespace change.Michael Tüxen1-1/+1
svn path=/trunk/; revision=46616
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-1/+2
No functional change by this commit. svn path=/trunk/; revision=42242
2012-03-10In pcapng.c use the units per second value from the interface instead ofGerald Combs1-4/+5
the default. Add support for reading nseclibpcap files to dumpcap. svn path=/trunk/; revision=41455
2012-02-22- Write ISB(s) at start and end of capture.Anders Broman1-1/+1
- Read all options. - Prepare to write ISB. svn path=/trunk/; revision=41137
2012-02-22Expand the API for ISB:sAnders Broman1-0/+3
svn path=/trunk/; revision=41136
2012-02-21Use tab indentation as elsewhere in the files.Michael Tüxen1-6/+6
Only whitespace changes. svn path=/trunk/; revision=41110
2012-02-21Extend libpcap_write_interface_description_block() wiyh more optionsAnders Broman1-2/+7
all exept os curently unused. svn path=/trunk/; revision=41108
2012-02-14From Anders: Add support for options in the SHB.Michael Tüxen1-5/+20
From me: Some whitespace changes. svn path=/trunk/; revision=41026
2011-06-15Constify some arguments.Guy Harris1-3/+3
svn path=/trunk/; revision=37674
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-26Add functions to write several pcapng blocks.Michael Tüxen1-0/+30
svn path=/trunk/; revision=28159
2009-04-26Make ringbuffer.[ch] file format agnostic.Michael Tüxen1-4/+8
Move write routines to dumpcap.c This is a preparation for pcapng support. svn path=/trunk/; revision=28155
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/+44
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