Note why we're getting the time stamp from the frame data structure.

Change-Id: I5b92ea027e1182e4b0d3248d338780fad810fd2b
Reviewed-on: https://code.wireshark.org/review/37015
Reviewed-by: Guy Harris <gharris@sonic.net>
This commit is contained in:
Guy Harris 2020-05-01 15:23:38 -07:00 committed by Guy Harris
parent e548eceeac
commit 43b945d116
1 changed files with 6 additions and 0 deletions

View File

@ -520,6 +520,12 @@ dissect_record(epan_dissect_t *edt, int file_type_subtype,
edt->pi.cinfo = cinfo;
edt->pi.presence_flags = 0;
edt->pi.num = fd->num;
/*
* XXX - this doesn't check the wtap_rec because, for
* some capture files, time stamps are supplied only
* when reading sequentially, so we keep the time stamp
* in the frame_data structure.
*/
if (fd->has_ts) {
edt->pi.presence_flags |= PINFO_HAS_TS;
edt->pi.abs_ts = fd->abs_ts;