diff options
author | Ricardo Nabinger Sanchez <rnsanchez@taghos.com.br> | 2019-04-02 14:28:17 -0300 |
---|---|---|
committer | Ricardo Nabinger Sanchez <rnsanchez@taghos.com.br> | 2019-04-03 08:34:41 -0300 |
commit | 371e1fca312ecc698f01dfa16f81c48cb48f7c55 (patch) | |
tree | 57ab4cd0494d7109ccaf14f05120082e9d747bc8 /tcpdump.1.in | |
parent | dec3c3e848b473a81c9e4872ac11914d70e04d91 (diff) | |
download | tcpdump-371e1fca312ecc698f01dfa16f81c48cb48f7c55.tar.gz |
Add shortcuts for setting time stamp precision
Add two shortcuts (as long-options) for setting the time stamp
precision: --micro and --nano. While adding these options, reshuffle
the usage message to group up the options related to time stamp, and
removing the macro TIME_STAMP_PRECISION_USAGE.
If setting the time stamp precision is not supported by the available
libpcap, the usage won't mention these options (including
--time-stamp-precision), but they will still be presented in the
manpage.
Diffstat (limited to 'tcpdump.1.in')
-rw-r--r-- | tcpdump.1.in | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tcpdump.1.in b/tcpdump.1.in index 984c1964..0d408549 100644 --- a/tcpdump.1.in +++ b/tcpdump.1.in @@ -478,6 +478,19 @@ The supported values for \fItimestamp_precision\fP are \fBmicro\fP for microsecond resolution and \fBnano\fP for nanosecond resolution. The default is microsecond resolution. .TP +.B \-\-micro +.PD 0 +.TP +.B \-\-nano +.PD +Shorthands for \fB\-\-time\-stamp\-precision=micro\fP or +\fB\-\-time\-stamp\-precision=nano\fP, adjusting the time stamp +precision accordingly. When reading packets from a savefile, using +\fB\-\-micro\fP truncates time stamps if the savefile was created with +nanosecond precision. In contrast, a savefile created with microsecond +precision will have trailing zeroes added to the time stamp when +\fB\-\-nano\fP is used. +.TP .B \-K .PD 0 .TP |