diff options
author | Guy Harris <gharris@sonic.net> | 2023-09-13 15:54:15 -0700 |
---|---|---|
committer | Guy Harris <gharris@sonic.net> | 2023-09-13 15:54:15 -0700 |
commit | 2ffe40c2cc8e1e50fee16590d3983b81fbd380e4 (patch) | |
tree | 669d849c9498113a51ce2f031534570aec2bb7da /wiretap/cosine.c | |
parent | b2bb2f2be9f56ab1049efaf185106c203e106ec9 (diff) |
Add support for the new timestamp precisions to NetMon.
Add WTAP_TSPREC_ values for the new precisions, and rename the 1/10
second and 1/100 second values to match the style used for the new ones,
with additional WTAP_TSPREC_DSEC and WTAP_TSPREC_CSEC defines for
backwards compatibility. Switch to those new ones in existing files.
For NetMon, use WTAP_TSPREC_100_NSEC for the 2.3 version of the file
format and WTAP_TSPREC_USEC for previous 2.x versions. Get rid of code
that would have handled 3.x and later formats, as 1) those formats were
never created, 2) the code that was there wouldn't have worked if the
format were different enough, and 3) we didn't support them when reading
in any case.
Regenerate the introspection enums.
Diffstat (limited to 'wiretap/cosine.c')
-rw-r--r-- | wiretap/cosine.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wiretap/cosine.c b/wiretap/cosine.c index d7afb03980..f9adc43c74 100644 --- a/wiretap/cosine.c +++ b/wiretap/cosine.c @@ -264,7 +264,7 @@ wtap_open_return_val cosine_open(wtap *wth, int *err, gchar **err_info) wth->snapshot_length = 0; /* not known */ wth->subtype_read = cosine_read; wth->subtype_seek_read = cosine_seek_read; - wth->file_tsprec = WTAP_TSPREC_CSEC; + wth->file_tsprec = WTAP_TSPREC_10_MSEC; /* * Add an IDB; we don't know how many interfaces were |