aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/capture_file.cpp
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2017-12-03 21:01:18 -0800
committerGuy Harris <guy@alum.mit.edu>2017-12-04 05:02:18 +0000
commit1834dca3654ccec238bae130715871be3d8fa344 (patch)
tree5f1de666575b16f58be5a2f7b4e40cc5b93c02dc /ui/qt/capture_file.cpp
parent02944c412b4d9d7661c0a2b3eb9df44d632878ee (diff)
Move the parts of a capture_file used by libwireshark to a new structure.
Embed one of those structures in a capture_file, and have a struct epan_session point to that structure rather than to a capture_file. Pass that structure to the routines that fetch data that libwireshark uses when dissecting. That separates the stuff that libwireshark expects from the stuff that it doesn't look at. Change-Id: Ia3cd28efb9622476437a2ce32204597fae720877 Reviewed-on: https://code.wireshark.org/review/24692 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui/qt/capture_file.cpp')
-rw-r--r--ui/qt/capture_file.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/qt/capture_file.cpp b/ui/qt/capture_file.cpp
index 791e875ca1..aa14f7e1bf 100644
--- a/ui/qt/capture_file.cpp
+++ b/ui/qt/capture_file.cpp
@@ -101,8 +101,8 @@ struct _packet_info *CaptureFile::packetInfo()
int CaptureFile::timestampPrecision()
{
- if (capFile() && capFile()->wth) {
- return wtap_file_tsprec(capFile()->wth);
+ if (capFile() && capFile()->frame_set_info.wth) {
+ return wtap_file_tsprec(capFile()->frame_set_info.wth);
}
return WTAP_TSPREC_UNKNOWN;
}