diff options
author | John Thacker <johnthacker@gmail.com> | 2021-12-15 01:36:32 -0500 |
---|---|---|
committer | Wireshark GitLab Utility <gerald+gitlab-utility@wireshark.org> | 2021-12-15 07:22:51 +0000 |
commit | 85a8de25a4268a4818d11583a2ce93cb9f422608 (patch) | |
tree | 51541681a216a2d235b38fdfcbe3952e58e439cf /wiretap | |
parent | 2b2c81a551cf6e300578c48afec3e2589910b23b (diff) |
blf: Set OPT_IDB_TSRESOL
In addition to setting tsprecision and time_units_per_second, add
the OPT_IDB_TSRESOL option as well, because pcapng expects that to
be set if tsprecision is anything other than the default.
Diffstat (limited to 'wiretap')
-rw-r--r-- | wiretap/blf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/wiretap/blf.c b/wiretap/blf.c index ab29eeb48f..497fdcd6da 100644 --- a/wiretap/blf.c +++ b/wiretap/blf.c @@ -140,6 +140,7 @@ blf_add_interface(blf_params_t *params, int pkt_encap, guint32 channel) { add_interface_name(&int_data, pkt_encap, channel); if_descr_mand->time_units_per_second = 1000 * 1000 * 1000; if_descr_mand->tsprecision = WTAP_TSPREC_NSEC; + wtap_block_add_uint8_option(int_data, OPT_IDB_TSRESOL, 9); if_descr_mand->snap_len = WTAP_MAX_PACKET_SIZE_STANDARD; if_descr_mand->num_stat_entries = 0; if_descr_mand->interface_statistics = NULL; |