The data contained in this repository can be downloaded to your computer using one of several clients.
Please see the documentation of your version control software client for more information.

Please select the desired protocol below to get the URL.

This URL has Read-Only access.

Statistics
| Branch: | Revision:

main_repo / pcapio.h @ master

History | View | Annotate | Download (5.46 KB)

# Date Author Comment
d029cf15 04/14/2014 04:24 PM Alexis La Goutte

Fix warning when generate documentation (doxygen)

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:...

29659139 03/04/2014 09:27 AM Alexis La Goutte

Remove all $Id$ from top of file

(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 <>

11b5c15f 02/25/2014 03:46 PM Bill Meier

Remove trailing whitespace

Change-Id: I8116f63ff88687c8db3fd6e8e23b22ab2f759af0
Reviewed-on: https://code.wireshark.org/review/385
Reviewed-by: Bill Meier <>
Tested-by: Bill Meier <>

c00a1265 12/15/2013 02:07 PM Alexis La Goutte

Fix warning found by doxygen

svn path=/trunk/; revision=54130

b0687639 09/29/2013 04:53 PM Guy Harris

Rename routines that write pcap-ng files to "pcapng_xxx" rather than
"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

c42263f2 09/29/2013 04:26 PM Guy Harris

We always write to a FILE *, so:

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...

18580d67 01/01/2013 11:01 PM Michael Mann

Allow pcap/pcapng format to be written to more than just a file (FILE*). Gives more flexibility if needed.

WRITE_DATA macro replaced and applied consistently throughout pcapio.c

svn path=/trunk/; revision=46891

8ed7a73e 12/26/2012 12:57 AM Guy Harris

Fix a bunch of warnings.

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....

644f8485 12/23/2012 04:25 AM Michael Tüxen

Add support for writing per packet comments when using pcapng.
Not actually used with this commit, which just brings in the
infrastructure.

svn path=/trunk/; revision=46715

9a2f4c8e 12/20/2012 10:20 AM Michael Tüxen

Don't use an pcap structures in pcapio.[ch].
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....

7e84abf0 12/20/2012 09:53 AM Michael Tüxen

Add ws_fclose(), ws_fflush(), and ws_fdopen() to the fileutils.
Retire libpcap_fdopen(), libpcap_dump_flush(), and libpcap_dump_close().

svn path=/trunk/; revision=46636

10dbe80c 12/19/2012 03:27 PM Michael Tüxen

Add support for writing the flags option in the enhanced
packet block (pcapng).

svn path=/trunk/; revision=46619

3859fdc0 12/19/2012 08:08 AM Michael Tüxen

Whitespace change.

svn path=/trunk/; revision=46616

bf81b42e 06/28/2012 06:56 PM Jakub Zawadzki

Update Free Software Foundation address.

(COPYING will be updated in next commit)

svn path=/trunk/; revision=43536

8ea1984d 04/25/2012 04:50 PM Michael Tüxen

Allow writing ISB with given recv/drop counters.
No functional change by this commit.

svn path=/trunk/; revision=42242

7a8df2f4 03/09/2012 07:24 PM Gerald Combs

In pcapng.c use the units per second value from the interface instead of
the default.

Add support for reading nseclibpcap files to dumpcap.

svn path=/trunk/; revision=41455

8fff3904 02/22/2012 09:41 AM Anders Broman

- Write ISB at start and end of capture.
- Read all options.
- Prepare to write ISB.

svn path=/trunk/; revision=41137

af2100d4 02/22/2012 05:01 AM Anders Broman

Expand the API for ISB:s

svn path=/trunk/; revision=41136

e485ac51 02/21/2012 10:16 AM Michael Tüxen

Use tab indentation as elsewhere in the files.
Only whitespace changes.

svn path=/trunk/; revision=41110

5df11d41 02/21/2012 08:35 AM Anders Broman

Extend libpcap_write_interface_description_block() wiyh more options
all exept os curently unused.

svn path=/trunk/; revision=41108

68204c94 02/14/2012 12:07 PM Michael Tüxen

From Anders: Add support for options in the SHB.
From me: Some whitespace changes.

svn path=/trunk/; revision=41026

37654b40 06/15/2011 04:13 PM Guy Harris

Constify some arguments.

svn path=/trunk/; revision=37674

b09b4f40 04/26/2009 03:24 PM Michael Tüxen

constify some args of libpcap_write_enhanced_packet_block()
similar to libpcap_write_packet().

svn path=/trunk/; revision=28161

b23f4a90 04/26/2009 02:40 PM Michael Tüxen

Add functions to write several pcapng blocks.

svn path=/trunk/; revision=28159

f5547c0d 04/26/2009 11:51 AM Michael Tüxen

Make ringbuffer.[ch] file format agnostic.
Move write routines to dumpcap.c
This is a preparation for pcapng support.

svn path=/trunk/; revision=28155

89f022b1 05/21/2006 01:12 AM Ronnie Sahlberg

name change

svn path=/trunk/; revision=18197

e6886d90 03/04/2006 05:33 PM Guy Harris

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....