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 / cfile.c @ master

History | View | Annotate | Download (1.8 KB)

# Date Author Comment
97546165 08/24/2014 04:04 AM Graham Bloice

Modify includes of config.h so that out-of-tree builds, i.e. CMake
don't pick up the in-tree copy.

Change-Id: I7ec473876cdba1a025c52362d7f6adc62d24ce71
Reviewed-on: https://code.wireshark.org/review/3798
Petri-Dish: Graham Bloice <>...

3aee9170 05/17/2014 08:41 AM Peter Wu

wiretap: remove unused code, drop number_of_interfaces

While investigating an ASAN issue (fixed in
commit dcdd076ab0965c346efe90051678ba790eaf7a02), I got greatly confused
by three different types having the same "interface_data" field name:

  • pcapng_t *pn stores an array of interface_data_t objects....
a1b1c8be 05/09/2014 01:21 AM Guy Harris

Revert "Refactor Wiretap"

This reverts commit 1abeb277f5e6bd27fbaebfecc8184e37ba9d008a.

This isn't building, and looks as if it requires significant work to fix.

Change-Id: I622b1bb243e353e874883a302ab419532b7601f2
Reviewed-on: https://code.wireshark.org/review/1568...

1abeb277 05/08/2014 11:04 PM Michael Mann

Refactor Wiretap

Start of refactoring Wiretap and breaking structures down into "generally useful fields for dissection" and "capture specific". Since this in intended as a "base" for Wiretap and Filetap, the "wft" prefix is used for "common" functionality....

0513b29b 03/20/2014 08:25 AM Anders Broman

Revert "Allow pcapng interface options to be available to dissectors."
This patch causes Wireshark/tshark to segfault if the file is reread(open a file and press reload).
The test suite also fails on
2.1.1 Step: Exit status for existing file: "/home/wireshark/builders/trunk/sol10sparc/build/test/captures/dhcp.pcap" must be 0/home/wireshark/builders/trunk/sol10sparc/build/test/suite-clopts.sh: line 149: 6646 Segmentation Fault (core dumped) $TSHARK -r "${CAPTURE_DIR}dhcp.pcap" > ./testout.txt 2>&1...

7b13a3b0 03/20/2014 05:54 AM Christopher Kilgour

Allow pcapng interface options to be available to dissectors.

Interface options1, and more generally pcapng options2, are useful
information that can provide improved dissector output.

Prior to this change, only certain pcapng interface options were interpreted...

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

7ec1a78f 07/22/2013 03:38 PM Jakub Zawadzki

Abuse epan_t more: add callback to get interface name.

svn path=/trunk/; revision=50794

3551a86c 09/19/2012 09:29 PM Jeff Morriss

We always HAVE_CONFIG_H so don't bother checking whether we have it or not.

svn path=/trunk/; revision=45015

b859ce0a 07/19/2012 06:09 PM Evan Huus

Fix transposed memset parameters causing build failure with GCC.

svn path=/trunk/; revision=43834

0da59a00 07/19/2012 05:49 PM Gerald Combs

Pass {delayed_}create_progress_dlg a pointer the top level window
so that we can properly associate a widget with create, update, and
destroy events. Only used by Qt so far but it should be easy enough to
add to GTK+.

Rename ui/qt/progress_dialog.{h,cpp} to progress_bar.{h,cpp}. Show a...

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

4a9b825c 05/20/2012 04:56 AM Guy Harris

Change the "user_saved" member of a capture_file structure to
"unsaved_changes", and have it be TRUE iff changes have been made to the
file since it was read - not if it's a temporary file from a live
capture.

Check the "is_tempfile" member, and the "unsaved_changes" member, when...

c9b9dd69 04/26/2011 10:54 PM Guy Harris

Create a new frame_data_sequence data type; it represents a dense
sequence of frame_data structures, indexed by the frame number. Extract
the relevant bits of the capture_file data structure and move them to
the frame_data_sequence, and move the relevant code from cfile.c and...

71b31d92 04/25/2011 03:01 PM Guy Harris

Store the frame_data structures in a tree, rather than a linked list.
This lets us get rid of the per-frame_data-structure prev and next
pointers, saving memory (at least according to Activity Monitor's report
of the virtual address space size on my Snow Leopard machine, it's a...

678be392 04/25/2011 01:33 AM Guy Harris

Make the packet count an unsigned value, as frame numbers are unsigned.

Make the loops that scan through all the packets do so by frame number,
to abstract away the "next" and "previous" pointers in the frame_data
structure. Add a routine to cfile.c to map frame numbers to frame_data...

cc5d7670 04/01/2010 05:55 PM Gerald Combs

Keep a copy of the interface description and capture filter around so that
we can use it in the main window title during and after capture. Add a
"-X" option for providing a description for stdin.

svn path=/trunk/; revision=32357

0ee2b775 09/22/2009 12:53 PM Kovarththanan Rajaratnam

Rename init_cap_file() to cap_file_init()

svn path=/trunk/; revision=30073

9398b679 09/22/2009 12:39 PM Kovarththanan Rajaratnam

Introduce cap_file_add_fdata() and start using it

svn path=/trunk/; revision=30071

da5b43c8 09/21/2009 02:31 PM Kovarththanan Rajaratnam

Don't include header files that are not required

svn path=/trunk/; revision=30050

8b62ba24 09/21/2009 02:20 PM Kovarththanan Rajaratnam

Remove unused 'pstats' member in capture_file

svn path=/trunk/; revision=30048

7ca137e2 09/21/2009 02:09 PM Kovarththanan Rajaratnam

Rename capture_file.plist to capture_file.plist_start to make it consistent with capture_file.plist_end

svn path=/trunk/; revision=30047

6c47f763 02/15/2009 04:55 PM Bill Meier

Adjust some spacing ....

svn path=/trunk/; revision=27457

2ce22e6b 09/30/2008 11:45 AM Sake Blok

From (Bug 2895):

We might receive new packets while redissecting and don't want to
dissect those before the packet-list is fully rebuilt.

svn path=/trunk/; revision=26309

1370d2f7 01/01/2007 05:23 AM Ronnie Sahlberg

break out dfcode from the capture file structure and declare it locally where it is needed.
allocate and release the dfcode program as needed instead of having it hang around in the capture file structure.

this will ensure that dfcode will not have longer than se scope lifetime in case we need that property of it later...

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

name change

svn path=/trunk/; revision=18197

3a63719e 02/06/2005 04:20 PM Ulf Lamping

another two steps towards privilege seperation:

move another two capture related fields (iface and cfilter) from cfile to capture_opts

also move the handling of capture related command line options from main.c to capture.c, that way a future privilege seperated capture program can use the same code to parse it's command line than Ethereal....

dd71ad69 02/03/2005 08:29 PM Ulf Lamping

(some) redesign of capture data structures.

don't use global cfile at all but only an untpyed handle to call the cf_... functions in file.c
move the save_file member from capture_file to capture_opts, as it's only used while capturing and while preparing it...

9ff19a4c 02/03/2005 05:48 PM Ulf Lamping

move capture_file_fd field from capture_file to capture_opts type, as this is the place where it should be

svn path=/trunk/; revision=13268

8a8b8834 07/17/2004 08:24 PM Guy Harris

Set the svn:eol-style property on all text files to "native", so that
they have LF at the end of the line on UN*X and CR/LF on Windows;
hopefully this means that if a CR/LF version is checked in on Windows,
the CRs will be stripped so that they show up only when checked out on...

8e876bf5 09/06/2002 07:14 PM Ronnie Sahlberg

Forgot to add two files

svn path=/trunk/; revision=6204