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.
This commit is contained in:
John Thacker 2021-12-15 01:36:32 -05:00 committed by Wireshark GitLab Utility
parent 2b2c81a551
commit 85a8de25a4
1 changed files with 1 additions and 0 deletions

View File

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