summaryrefslogtreecommitdiff
path: root/sbin/pflogd/pflogd.8
diff options
context:
space:
mode:
authorCan Erkin Acar <canacar@cvs.openbsd.org>2004-01-15 20:15:15 +0000
committerCan Erkin Acar <canacar@cvs.openbsd.org>2004-01-15 20:15:15 +0000
commit893ea122b2c8043e18c59ee9f1bcb1ec5cb6e71a (patch)
tree340ba2412e303ac61af2cee0573c8d9befca2b90 /sbin/pflogd/pflogd.8
parent925241ffb71a8c50f24fb0b27f8283fd918ece56 (diff)
Try to preserve the integrity of the log file in case of errors/unexpected
shutdowns etc. Also check logfile integrity on startup and suspend logging if an inconsistency is detected. ok dhartmei@
Diffstat (limited to 'sbin/pflogd/pflogd.8')
-rw-r--r--sbin/pflogd/pflogd.815
1 files changed, 14 insertions, 1 deletions
diff --git a/sbin/pflogd/pflogd.8 b/sbin/pflogd/pflogd.8
index ab632593ac7..ed1e50f6914 100644
--- a/sbin/pflogd/pflogd.8
+++ b/sbin/pflogd/pflogd.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: pflogd.8,v 1.22 2003/06/03 13:16:08 jmc Exp $
+.\" $OpenBSD: pflogd.8,v 1.23 2004/01/15 20:15:14 canacar Exp $
.\"
.\" Copyright (c) 2001 Can Erkin Acar. All rights reserved.
.\"
@@ -36,6 +36,7 @@
.Op Fl d Ar delay
.Op Fl f Ar filename
.Op Fl s Ar snaplen
+.Op Fl x
.Op Ar expression
.Sh DESCRIPTION
.Nm
@@ -77,6 +78,16 @@ If the existing log file was created with a different snaplen,
.Nm
temporarily uses the old snaplen to keep the log file consistent.
.Pp
+.Nm
+tries to preserve the integrity of the log file against I/O errors.
+Furthermore, integrity of an existing log file is verified before
+appending. If there is an invalid log file or an I/O error, logging
+is suspended, until a
+.Va SIGHUP
+or a
+.Va SIGALRM
+is received.
+.Pp
The options are as follows:
.Bl -tag -width Ds
.It Fl d Ar delay
@@ -98,6 +109,8 @@ bytes of data from each packet rather than the default of 96.
The default of 96 is adequate for IP, ICMP, TCP, and UDP headers but may
truncate protocol information for other protocols.
Other file parsers may desire a higher snaplen.
+.It Fl x
+Check the integrity of an existing log file, and return.
.It Ar expression
Selects which packets will be dumped, using the regular language of
.Xr tcpdump 8 .