diff options
author | Guy Harris <gharris@sonic.net> | 2021-06-18 01:24:41 -0700 |
---|---|---|
committer | Guy Harris <gharris@sonic.net> | 2021-06-18 10:00:24 +0000 |
commit | 4a34fa38f18fb01fdb2b5f0469d5261c49659f57 (patch) | |
tree | 61d361e6ec92aab0b1f5b1761a1127213766a7a3 | |
parent | 18c4baa9f3f22e1352defd6f3bd5edd56d62c970 (diff) |
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 49ec11f5aad2c6c29b02036ef9744c5680ee88a0)
-rw-r--r-- | wiretap/erf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/wiretap/erf.c b/wiretap/erf.c index e67c99d44e..2155121ebd 100644 --- a/wiretap/erf.c +++ b/wiretap/erf.c @@ -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.*/ |