diff options
author | Luigi Rizzo <luigi@FreeBSD.org> | 2003-07-12 08:35:25 +0000 |
---|---|---|
committer | Luigi Rizzo <luigi@FreeBSD.org> | 2003-07-12 08:35:25 +0000 |
commit | 1b43a426dee3a77ee17f91a95be7638c8f60a59d (patch) | |
tree | b24acb6c3124e38091818b018d992d404a6a3807 /sbin/ipfw/ipfw.8 | |
parent | 2ff553eb9e6e4ae7eb26185b852e8ae81d621060 (diff) | |
download | src-1b43a426dee3a77ee17f91a95be7638c8f60a59d.tar.gz src-1b43a426dee3a77ee17f91a95be7638c8f60a59d.zip |
Add a '-T' flag to print the timestamp as numeric value instead
of converting it with ctime(). This is a lot more convenient for
postprocessing.
Submitted by: "Jacob S. Barrett" <jbarrett@amduat.net>
Notes
Notes:
svn path=/head/; revision=117472
Diffstat (limited to 'sbin/ipfw/ipfw.8')
-rw-r--r-- | sbin/ipfw/ipfw.8 | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sbin/ipfw/ipfw.8 b/sbin/ipfw/ipfw.8 index 542724b7a068..39dc69e36c50 100644 --- a/sbin/ipfw/ipfw.8 +++ b/sbin/ipfw/ipfw.8 @@ -13,7 +13,7 @@ .Cm add .Ar rule .Nm -.Op Fl acdeftnNS +.Op Fl acdefnNStT .Brq Cm list | show .Op Ar rule | first-last ... .Nm @@ -54,7 +54,7 @@ .Op Ar number ... .Pp .Nm -.Op Fl cNnqS +.Op Fl cnNqS .Oo .Fl p Ar preproc .Oo @@ -261,7 +261,10 @@ listed. While listing pipes, sort according to one of the four counters (total or current packets or bytes). .It Fl t -While listing, show last match timestamp. +While listing, show last match timestamp (converted with ctime()). +.It Fl T +While listing, show last match timestamp (as seconds from the epoch). +This form can be more convenient for postprocessing by scripts. .El .Pp To ease configuration, rules can be put into a file which is |