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

History | View | Annotate | Download (165 KB)

# Date Author Comment
8abd27f7 12/01/2014 11:12 PM Justin

Adds a checkbox to toggle between ascii and unicode text in follow tcp stream, as well as a check box which, when checked, causes wireshark to generate an accompanying rtf file whenever a new capture is saved

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

0734ac38 08/02/2014 07:01 AM Guy Harris

Rename buffer_ routines to ws_buffer_ to avoid name collisions.

In particular, epan/wslua/lrexlib.c has its own buffer_ routines,
causing some linker warnings on some platforms, as reported in bug
10332.

(Not to be backported to 1.12, as that would change the API and ABI of...

28971b28 07/15/2014 08:14 PM Guy Harris

Squelch a warning.

In at least some versions of GLib, g_array_free() warns if passed a null
pointer, rather than just silently returning.

Change-Id: I1bfc0a81faa1eeebe288f6e0cc58ebfb64784958
Reviewed-on: https://code.wireshark.org/review/3068
Reviewed-by: Guy Harris <>

f9f6fa74 07/15/2014 06:48 PM Guy Harris

Get rid of cf_reset_state() - it's only called from one place.

Change-Id: I48521bbaa898c99286e6bb5e40281aba7701ed4d
Reviewed-on: https://code.wireshark.org/review/3062
Reviewed-by: Guy Harris <>

9ed99d5c 07/10/2014 11:20 PM Bill Meier

Strip some trailing whitespace; Fix some indentation; Add editor-modelines as needed.

Change-Id: I943153e28f468070d86535abad7be032e1386118
Reviewed-on: https://code.wireshark.org/review/2994
Reviewed-by: Bill Meier <>

c46329c2 06/21/2014 09:06 PM Guy Harris

Add a routine to return a version string including VCS information.

Add a routine get_ws_vcs_version_info() that, for builds from a tree
checked out from Wireshark's version control system, returns a string
that includes both the Wireshark version number and an indication of...

318cf8a6 05/24/2014 08:05 PM Guy Harris

Add support for dissecting non-packet records.

Add a dissector table indexed by the file type, and, for the
file-type-specific records, have the frame dissector skip the usual
pseudo-header processing, as the pseudo-header has a file-type-specific
record subtype in it, and call the dissector for that file type's...

6db77b00 05/24/2014 02:31 PM Guy Harris

Allow wtap_read() and wtap_seek_read() to return records other than packets.

Add a "record type" field to "struct wtap_pkthdr"; currently, it can be
REC_TYPE_PACKET, for a record containing a packet, or
REC_TYPE_FILE_TYPE_SPECIFIC, for records containing file-type-specific...

a344c973 05/23/2014 06:50 AM Guy Harris

Revert "Allow wtap_read() and wtap_seek_read() to return non-packet records."

This reverts commit c0c480d08c175eed4524ea9e73ec86298f468cf4.

A better way to do this is to have the record type be part of struct wtap_pkthdr; that keeps the metadata for the record together and requires fewer API changes. That is in-progress....

c0c480d0 05/22/2014 11:02 PM Guy Harris

Allow wtap_read() and wtap_seek_read() to return non-packet records.

This is the first step towards implementing the mechanisms requestd in
bug 8590; currently, we don't return any records other than packet
records from libwiretap, and just ignore non-packet records in the rest...

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

dfb92dfd 04/29/2014 01:06 PM Peter Wu

Fix crash when switching profiles

rescan_packets() starts a new dissection session by free'ing the
previous state and creating a new one. A reference to the old session
was not updated though.

This is the only place where epan is overwritten. After init, col_init...

d063b324 04/15/2014 11:05 PM Bill Meier

Fix "might be clobbered by 'longjmp' or 'vfork' [-Werror=clobbered]" warning from gcc 4.9.

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

a5cb72fe 04/07/2014 04:56 PM Gerald Combs

Add a Qt I/O Graph dialog.

For each graph you can set:
- Its visibility
- A name
- A display filter
- Color, from a fixed list
- Plot style: Line, Impulse, Bar, Stacked Bar, Dot, Square, Diamond
- Basic Y Axes (packets/s, bytes/s, bits/s)
- Computed Y Axes (SUM, MIN, AVG, MAX)...

ca9c1609 03/27/2014 05:39 PM Hadriel Kaplan

Fix bug9931 'Encapsulated ethernet packets sometimes show invalid FCS'

This fixes part-1 of bug9931: the uninitialized use of a wtap_pkthdr
struct. The second part of the bug deals with dissectors calling
the Ethernet dissector for ecnapsulated Ethernet packets but using...

d1873dbc 03/21/2014 01:51 PM Hadriel Kaplan

Fix Bug 9903: 'Clicking reload-file ignores selected file format reader'

There's a relatively new feature in 1.11.3 to select a specific file format
reader, instead of relying on magics or heuristics. If you select a file
reader and open a file, open it, and then click the reload-file button or go...

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

907a8259 02/25/2014 03:52 PM Hadriel Kaplan

Fix file.c: Dereference of null pointer (clang analyzer)

Change-Id: Ib96e5ffb284234562c2883c13e93109173e22179
Reviewed-on: https://code.wireshark.org/review/368
Reviewed-by: Alexis La Goutte <>
Tested-by: Alexis La Goutte <>

579e7e19 02/25/2014 12:43 PM Michal Labedzki

Wireshark: Add option to choose format type of capture file

The best heuristic can fail, so add possibility to manually choose
capture file format type, so not correctly recognize file format can be
loaded in Wireshark.

On the other side now it is possible to open capture file...

f9669809 02/07/2014 06:03 PM Gerald Combs

Replace "svn" with "git" all over the place.

Rename "SVNPATH" to "GITBRANCH" since that seems more appropriate.
Rename "svnversion.h" to "version.h" as Evan suggested. Update some
URLs. In make-version.pl, make sure we don't set an improper upstream
branch name. Use the number of commits + short hash from `git describe`...

90d7c5f5 01/21/2014 07:26 PM Guy Harris

Don't write out packets that have a "captured length" bigger than we're
willing to read or that's bigger than will fit in the file format;
instead, report an error.

For the "I can't write a packet of that type in that file type" error,
report the file type in question....

8f8eeb5d 01/21/2014 03:50 AM Guy Harris

Check the return of wtap_dump_close() even if we've gotten a read error;
the only reason not to check it is if we've already gotten a write error
and another write error would be superfluous (either "you got two of the
same error" or "you got an I/O error and you ran out of disk...

386c5ba6 01/13/2014 04:23 PM Pascal Quantin

Fix crash when exporting to CSV file

svn path=/trunk/; revision=54722

9d41c658 01/02/2014 03:47 PM Guy Harris

No seek-read routines use the length argument, so eliminate it from
wtap_seek_read().

svn path=/trunk/; revision=54570

13fb0f31 12/05/2013 04:35 PM Martin Kaiser

int -> gboolean

svn path=/trunk/; revision=53800

6aec20c7 11/24/2013 07:49 AM Jakub Zawadzki

Rmove packet_info argument from packet_list_append(), never used.

Part of attachment 12060, from Didier Gautheron (bug #9419).

svn path=/trunk/; revision=53544

db25270d 11/16/2013 09:55 PM Guy Harris

Move the epan/filesystem.c routines to wsutil; they're not specific to
packet dissection, they're specific to the entire Wireshark suite of
programs.

svn path=/trunk/; revision=53377

ae59b094 11/10/2013 10:59 AM Jakub Zawadzki

Add missing includes in order to remove exceptions.h from proto.h (next commit).

svn path=/trunk/; revision=53230

853da2eb 11/08/2013 04:53 AM Guy Harris

The "file types" we have are actually combinations of types and
subtypes, e.g. Network Monitor version 1 and Network Monitor version 2
are separate "file types", even though they both come from Network
Monitor.

Rename various functions, #defines, and variables appropriately....

a9d79ebb 10/20/2013 01:53 PM Jakub Zawadzki

Try to fix recent test failures (wild guess, can't reproduce).

svn path=/trunk/; revision=52717

52e16975 10/20/2013 09:22 AM Jakub Zawadzki

wireshark: use epan_dissect_reset(), rawshark: fix missing epan_dissect_cleanup()

svn path=/trunk/; revision=52711

aae1de7f 10/11/2013 05:29 PM Jeff Morriss

cf_start_tail() is (now) just a wrapper around cf_open(). Get rid of it and just call cf_open().

svn path=/trunk/; revision=52553

ca78b8f9 10/09/2013 04:12 PM Anders Broman

g_list_prepend() is faster.

svn path=/trunk/; revision=52475

20108d79 09/22/2013 03:40 PM Anders Broman

Get rid of struct addrinfo, use the hastables for name resolution instead.

svn path=/trunk/; revision=52176

0cf459a6 09/05/2013 04:35 PM Pascal Quantin

Try to fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9106 :
Intialize phdr structure to avoid an invalid access to phdr->opt_comment

svn path=/trunk/; revision=51791

cbda96d7 08/14/2013 12:14 AM Guy Harris

Global variables considered harmful.

svn path=/trunk/; revision=51352

f528d4ec 08/12/2013 10:18 PM Evan Huus

Only rescan packets if we have packets to rescan. Fixes at least the surface
problem in https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9033

The underlying scoping issues may not be fully resolved yet.

svn path=/trunk/; revision=51327

56d05bfd 08/07/2013 12:14 PM Jeff Morriss

It's not necessary to call epan_free() in cf_open(): cf_close() (which is
called by cf_open()) already calls epan_free().

svn path=/trunk/; revision=51188

bee46459 08/01/2013 05:06 PM Martin Kaiser

use explicit cast to squelch compiler warning

svn path=/trunk/; revision=51093

08eb36b5 08/01/2013 04:59 PM Jakub Zawadzki

Remove fdata->opt_comment, add pkt_comment to pinfo

Original (read from file) comments can be accessed by pkthdr->opt_comment
Keep user comments in seperated BST, add new method for epan session to get it.

svn path=/trunk/; revision=51090

9bb17b7b 07/30/2013 07:14 PM Jakub Zawadzki

Remove interface_id, pack_flags from frame_data structure.

This patch assumes that wtap_phdr interface_id, pack_flags both from initial read and seek read will contain same values.
Please fix if it's not.

svn path=/trunk/; revision=51041

905eb4d7 07/23/2013 07:45 PM Guy Harris

Make a routine not used outside file.c static.

svn path=/trunk/; revision=50857

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

Abuse epan_t more: add callback to get interface name.

svn path=/trunk/; revision=50794

ad42fced 07/21/2013 07:30 PM Evan Huus

Fix file.c:112:1: error: ‘static’ is not at beginning of declaration
[-Werror=old-style-declaration]

svn path=/trunk/; revision=50775

c702e921 07/21/2013 07:07 PM Jakub Zawadzki

Replace relative timestamp with reference frame number. Saves 16B per frame.

svn path=/trunk/; revision=50772

5d52e167 07/21/2013 04:48 PM Jakub Zawadzki

Add helper function to epan_session which can be used to get absolute timestamp of given frame.
Remove ->prev_cap, for testing purpose also replace ->prev_dis with number of previously displayed frame number.

This patch reduce size of frame_data by 8B (amd64)...

28e9dcc4 07/21/2013 02:38 PM Jakub Zawadzki

Some work on multi file dissection

- make init_dissection/cleanup_dissection private for libwireshark
- implement epan_new(), epan_free()
- pass epan_t to epan_dissect*

svn path=/trunk/; revision=50761

0a669967 07/15/2013 10:35 PM Jeff Morriss

Move merge.{h,c} into wiretap: these modules use wiretap to merge files.

svn path=/trunk/; revision=50656

4dcc156c 07/11/2013 11:50 PM Jeff Morriss

Move the print modules into epan.

svn path=/trunk/; revision=50526

45449ce1 07/11/2013 07:57 PM Jeff Morriss

Move some more modules into epan.

svn path=/trunk/; revision=50517

ce81449e 07/11/2013 01:47 AM Jakub Zawadzki

packet dissection now takes pointer to tvb instead of guint8 data
implement frame_tvbuff, right now almost a copy of 'real' tvb.

svn path=/trunk/; revision=50497

a5e8bb11 06/29/2013 05:58 PM Alexis La Goutte

Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang

svn path=/trunk/; revision=50232

bbf6a376 06/25/2013 09:14 PM Jeff Morriss

Move tempfile.{h,c} into wsutil.

svn path=/trunk/; revision=50163

847fbeef 06/25/2013 05:45 PM Guy Harris

Fix build with packet editor enabled. (Fix a typo while we're at it.)

svn path=/trunk/; revision=50153

369658c4 06/20/2013 06:25 PM Martin Kaiser

inform expert info layer about the current number of packet comments
when the last comment is removed and we have no other expert info,
the maximum severity is changed from comment to none

svn path=/trunk/; revision=50091

909d2eb3 06/19/2013 11:22 AM Chris Maynard

Allow for column headers not to be printed in order to make it possible to export packets as plain text in a format that could then have a chance of being imported again (assuming other factors such as packet bytes were printed, etc.) in order to recover the original pcap file....

8c9edf12 06/15/2013 08:20 PM Guy Harris

Have the seek-read routines take a Buffer rather than a guint8 pointer
as the "where to put the packet data" argument.

This lets more of the libwiretap code be common between the read and
seek-read code paths, and also allows for more flexibility in the "fill...

882a1fe6 04/13/2013 02:24 PM Evan Huus

Don't take the shortcut of moving/copying the existing file if we have a name
resolution block to write (which isn't necessarily in the existing file).

Fixes at least part of https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8317

svn path=/trunk/; revision=48842

432e914d 04/02/2013 04:35 PM Guy Harris

Rename cf_not_saved() to cf_has_unsaved_data() to clarify what it
indicates. (Note: "unsaved data" is more than just "unsaved changes";
it could also mean "temporary file that hasn't been saved anywhere".)

svn path=/trunk/; revision=48709

d9427594 04/01/2013 07:44 PM Guy Harris

Add routines to file.c to indicate whether:

a save can be done ("can" in the sense of "there's something to
save" and in the sense of "we can write that something out");
a "save as" can be done (in the sense of "we can write what we
have out");
there's unsaved data to save (which might be unsaved changes or...
b1ecd8d2 04/01/2013 05:17 PM Guy Harris

Add a wtap_dump_can_write() routine that indicates whether Wiretap
supports writing files with a given set of encapsulations and comment
types. Use it, rather than asking for a list of file formats that
support the given set of encapsulation and comment types and checking...

82a602d6 04/01/2013 04:36 PM Guy Harris

Define a collection of bits for different types of capture file comments.

For each capture file type, have a bitset of comment types supported by
that capture file type.

Add a Wiretap routine that, for a given file type, returns the bitset of
comment types it supports....

d935a280 03/27/2013 01:14 PM Evan Huus

From Hadriel Kaplan via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8223

Add a 2-pass display-filter flag to tshark so that reassembly and other forward-
looking dissections can be used with filters.

It's a bit of a hack, but this entire area of 2-pass analysis etc. is a giant...

ef07303c 03/21/2013 05:58 PM Anders Broman

Make internal functions static.

svn path=/trunk/; revision=48465

0df5a939 03/19/2013 09:18 PM Bill Meier

From beroset:
remove C++ incompatibilities
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8416 attachment #10397

svn path=/trunk/; revision=48438

32799db4 03/15/2013 02:04 PM Evan Huus

Fix the leaking of packet comments, i.e. the rest of
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7530

The frame_data_cleanup function was ambiguous; it was being used for two
different purposes, and did neither of them quite properly. Split it instead...

7990a0e4 03/06/2013 12:35 PM Anders Broman

Use explicit casts.

svn path=/trunk/; revision=48137

6af6ce5e 12/22/2012 03:38 PM Michael Tüxen

Add support for writing the packet block flags for pcapng.
While there, do some minor cleanup.

svn path=/trunk/; revision=46699

5c2c5aed 12/14/2012 08:04 PM Gerald Combs

Rename the search type menu items to more accurately reflect what we're
actually doing and what users are likely to want to do. Rename the
search enum values and functions to reflect what we're actually doing
and add a comment explaining why making searches more correct might make...

552323e7 11/25/2012 01:35 PM Bill Meier

Fix a number of [-Wshadow] warnings;
Also: Do some minor whitespace changes

svn path=/trunk/; revision=46182

13f8a046 11/03/2012 07:41 PM Evan Huus

Make a few variables volatile to satisfy gcc.

svn path=/trunk/; revision=45886

bdcdec56 11/03/2012 04:51 PM Jakub Zawadzki

Manually revert r45669

svn path=/trunk/; revision=45884

d127d974 10/22/2012 05:22 PM Jakub Zawadzki

volatile fixes.

svn path=/trunk/; revision=45729

9e52b48c 10/22/2012 03:44 PM Jakub Zawadzki

Move some variables inside TRY { } block.

svn path=/trunk/; revision=45724

3c93cdbd 10/22/2012 03:34 PM Guy Harris

Make progbar_quantum volatile to suppress setjmp/longjmp warnings.

svn path=/trunk/; revision=45723

d26925c9 10/22/2012 03:14 PM Jakub Zawadzki

Move TRY CATCH outside reading packet loops.

svn path=/trunk/; revision=45722

573dd5b3 10/22/2012 11:56 AM Chris Maynard

1) Allow for the possibility for both packet summary and packet details to be
printed when either -T is not specified or "-T text" or "-T ps" is selected.

2) Allow for packet hex/ascii to be printed without necessarily requiring that
either packet summary or packet details also be printed. This just means that...

2fd81fda 10/20/2012 04:04 PM Jakub Zawadzki

Move ep_free_all() AFTER packet dissection.
Use glib allocator for data_source.

Thread on wireshark-dev: http://www.wireshark.org/lists/wireshark-dev/201210/msg00116.html

svn path=/trunk/; revision=45673

33b064cd 10/20/2012 03:52 PM Jakub Zawadzki

I don't understand how this variable might be clobbered, but mark it volatile to silent gcc warning.

svn path=/trunk/; revision=45671

77368c36 10/20/2012 03:27 PM Jakub Zawadzki

Introduce epan_dissect_run_with_taps() which run dissection with taps.
unexport tap_queue_init, tap_push_tapped_queue

svn path=/trunk/; revision=45670

6dc977b7 10/20/2012 12:44 PM Jakub Zawadzki

- Allow reseting edt with new function epan_dissect_reset(),
- initialize edt once in few places, and later reset it after dissecting
(add_packet_to_packet_list),
- revert r45667, probably no longer needed.

svn path=/trunk/; revision=45669

eb4e26e1 10/20/2012 09:16 AM Evan Huus

Make a few variables volatile to fix longjmp warnings.

svn path=/trunk/; revision=45667

88ac0dbe 10/20/2012 08:51 AM Jakub Zawadzki

Pass create_proto_tree, cinfo directly to add_packet_to_packet_list

svn path=/trunk/; revision=45666

ea31ff66 10/20/2012 08:51 AM Jakub Zawadzki

Remove always TRUE refilter argument from rescan_packets, add_packet_to_packet_list

svn path=/trunk/; revision=45665

98e6481b 10/17/2012 05:14 PM Jakub Zawadzki

Only cap_len (not pkt_len) bytes of buffer are valid.

svn path=/trunk/; revision=45621

59e2c7fd 10/17/2012 05:11 PM Jakub Zawadzki

Fix a copy/paste error

svn path=/trunk/; revision=45620

78631020 10/16/2012 05:50 PM Jakub Zawadzki

Add wtap_pseudo_header union to wtap_pkthdr structure.
Use pkthdr instead of pseudo_header as argument for dissecting.

svn path=/trunk/; revision=45601

4f1eb844 10/08/2012 02:11 PM Gerald Combs

Log the time we spend waiting for the capture child to exit.

Add breadcrumbs so that we can switch from g_get_current_time to
g_get_real_time when our minimum GLib version is >= 2.28.

svn path=/trunk/; revision=45399

71ed7738 10/05/2012 02:52 PM Gerald Combs

Add a capture_file * element to packet_range_t and pass it explicitly in
packet_range_init(). Get rid of global cfile references in
packet-range.c. C++-ize packet-range.h. Shuffle some includes around.

svn path=/trunk/; revision=45333

99e665dc 09/28/2012 06:08 AM Jakub Zawadzki

Revert r45183:r45184

r45182 was good fix, but updae frames_count when redissecting.

svn path=/trunk/; revision=45189

91db653d 09/27/2012 05:17 PM Jakub Zawadzki

Revert r45182, add better fix for bug #6208: Status bar count of displayed packets wrong

cf_read() is already checking for cf->redissecting variable and if set it don't add packets to packet_list.
Rename it to cf->rescanning and set it always in rescan_packets() [not only when redissecting]....

90c5d4e6 09/27/2012 04:59 PM Jakub Zawadzki

Try to fix bug #6208: Status bar count of displayed packets wrong

When refiltering we process gtk/glib events, so it's possible that cf_continue_tail()
will fire-up, reading new packets and incrementing cf->count.

It's also possible that this packet(s) will pass display filter,...

3994ddc3 09/26/2012 07:40 PM Gerald Combs

Call fileset_file_closed from cf_cb_file_closed.

svn path=/trunk/; revision=45163

998da544 09/26/2012 07:33 PM Gerald Combs

Add a cf_cb_file_opened callback and use it instead of calling
fileset_file_opened directly from file.c. This makes the code a bit more
consistenent and makes it easier to port the File Set dialog to Qt.

svn path=/trunk/; revision=45162

72ca9d0e 09/23/2012 12:25 PM Jakub Zawadzki

Store pointers to previously displayed and captured packet, not nstime_t deltas.

This commit reduces size (from 144B to 128B on AMD64) of frame_data structure.

Part of bug 5821: Reduce per-packet memory requirements.

svn path=/trunk/; revision=45071