forked from osmocom/wireshark
erf: set the tsprecision value of a newly-created IDB.
Don't assume the default is correct, because there's no guarantee of
that - in fact, there's currently a guarantee that it's not, as it's
initialized to 0, which is WTAP_TSPREC_SECS.
(cherry picked from commit 49ec11f5aa
)
This commit is contained in:
parent
18c4baa9f3
commit
4a34fa38f1
|
@ -2457,6 +2457,7 @@ static int erf_populate_interface(erf_t *erf_priv, wtap *wth, union wtap_pseudo_
|
|||
int_data_mand->wtap_encap = WTAP_ENCAP_ERF;
|
||||
/* int_data.time_units_per_second = (1LL<<32); ERF format resolution is 2^-32, capture resolution is unknown */
|
||||
int_data_mand->time_units_per_second = 1000000000; /* XXX Since Wireshark only supports down to nanosecond resolution we have to dilute to this */
|
||||
int_data_mand->tsprecision = WTAP_TSPREC_NSEC;
|
||||
int_data_mand->snap_len = 65535; /* ERF max length */
|
||||
|
||||
/* XXX: if_IPv4addr opt 4 Interface network address and netmask.*/
|
||||
|
|
Loading…
Reference in New Issue