forked from osmocom/wireshark
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:
parent
2b2c81a551
commit
85a8de25a4
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue