aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/wtap.c
diff options
context:
space:
mode:
authorGuy Harris <gharris@sonic.net>2020-07-28 13:25:38 -0700
committerAnders Broman <a.broman58@gmail.com>2020-07-29 13:49:09 +0000
commitc68d36b173b3bafd007e2d14461dfb0f194e0bde (patch)
treefd2c674da5d5e2ad67ad906eaf2c6e7efcc2fa00 /wiretap/wtap.c
parentf8efccc3cc1e8d604a4fd085ab9a0f0174e9b25f (diff)
wiretap: have the file's time stamp resolution be a dump parameter.
Add a tsprec value to the wtap_dump_params structure, giving the per-file time stamp precision. In wtap_dump_init_dumper(), when constructing a dummy IDB for files that don't have one, fill in the tsprecision and time_units_per_second values based on the tsprec value in the wtap_dump_params structure. Change-Id: I3708b144d4d0ac0dfbe32bd1c16768a75c942141 Reviewed-on: https://code.wireshark.org/review/37979 Petri-Dish: Guy Harris <gharris@sonic.net> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'wiretap/wtap.c')
-rw-r--r--wiretap/wtap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/wiretap/wtap.c b/wiretap/wtap.c
index 84d26064b6..804b027ca5 100644
--- a/wiretap/wtap.c
+++ b/wiretap/wtap.c
@@ -420,6 +420,7 @@ wtap_dump_params_init(wtap_dump_params *params, wtap *wth)
params->encap = wtap_file_encap(wth);
params->snaplen = wtap_snapshot_length(wth);
+ params->tsprec = wtap_file_tsprec(wth);
params->shb_hdrs = wtap_file_get_shb_for_new_file(wth);
params->idb_inf = wtap_file_get_idb_info(wth);
params->nrb_hdrs = wtap_file_get_nrb_for_new_file(wth);