diff options
author | Preben Guldberg <preben@guldberg.org> | 2023-03-10 19:58:17 +0100 |
---|---|---|
committer | Preben Guldberg <preben@guldberg.org> | 2023-03-31 08:15:28 +0200 |
commit | 0b538b3205d198958e64f46eef1264898a6ba998 (patch) | |
tree | bf82a39749349598ae512c2c0a3845573b19c5ac /doc | |
parent | 266456ffd5e19eb1b6452e669bd6e90452ffe71f (diff) |
Allow specifying subsecond granularity with tshark -t
Implements suggestion in issue #18714.
Proposed syntax for setting subsecond precision is "tshark -t adoy.3" for
millisecond accuracy in output. Using a dot separator indicates the precision
of what follows the dot in the output.
The following tshark -t combinations are supported:
1. Specifying just the format with e.g. "-t a" and defaulting the precision.
2. Specifying both format and precision, with "-t ad.2" or "-t ad -t .2".
3. Specifying only the precision with "-t .6" and defaulting format.
4. Use "-t a." or even "-t ." to specify auto precision from trace.
The latter use case is particularly useful with wireshark/logray.
Using a dot like this avoids introducing a new command line option.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/dissection-options.adoc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/doc/dissection-options.adoc b/doc/dissection-options.adoc index b1407c48af..dd4060c1e8 100644 --- a/doc/dissection-options.adoc +++ b/doc/dissection-options.adoc @@ -116,7 +116,7 @@ leading to dropped packets. *v* to enable VLAN IDs to names resolution -- --t a|ad|adoy|d|dd|e|r|u|ud|udoy:: +-t (a|ad|adoy|d|dd|e|r|u|ud|udoy)[.[N]]|.[N]:: + -- Set the format of the packet timestamp displayed in the default time @@ -154,7 +154,10 @@ and time, as UTC, is the actual time and date the packet was captured as YYYY/DOY, and time, as UTC, is the actual time and date the packet was captured -The default format is relative. +*.[N]* Set the precision: N is the number of decimals (0, 1, 2, 3, 6 or 9). +If using "." without N, automatically determine precision from trace. + +The default format is relative with precision based on capture format. -- -u <s|hms>:: |