diff options
Diffstat (limited to 'sbin/pflogd')
-rw-r--r-- | sbin/pflogd/pflogd.8 | 12 | ||||
-rw-r--r-- | sbin/pflogd/pflogd.c | 9 |
2 files changed, 6 insertions, 15 deletions
diff --git a/sbin/pflogd/pflogd.8 b/sbin/pflogd/pflogd.8 index 30a863e36ed..b2c0856bbf1 100644 --- a/sbin/pflogd/pflogd.8 +++ b/sbin/pflogd/pflogd.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: pflogd.8,v 1.4 2001/08/27 17:36:53 deraadt Exp $ +.\" $OpenBSD: pflogd.8,v 1.5 2001/08/29 17:42:28 deraadt Exp $ .\" .\" Copyright (c) 2001 Can Erkin Acar. All rights reserved. .\" @@ -35,15 +35,14 @@ .Op Fl D .Op Fl d Ar delay .Op Fl f Ar filename -.Op Fl i Ar interface .Op Fl s Ar snaplen .Op Ar expression .Sh DESCRIPTION .Nm is a background daemon which reads packets logged by .Xr pf 4 -to a logging interface (normally -.Pa pflog0 ) +to the packet logging interface +.Pa pflog0 and writes the packets to a logfile (normally .Pa /var/log/pflog ) in @@ -88,11 +87,6 @@ If not specified, the default is 60 seconds. Debugging mode. .Nm does not disassociate from the controlling terminal. -.It Fl i Ar interface -Specify the interface from which -.Xr pf 4 -logs are read; the default is -.Ar pflog0 . .It Fl f Ar filename Log output filename. Default is .Pa /var/log/pflog . diff --git a/sbin/pflogd/pflogd.c b/sbin/pflogd/pflogd.c index e9eda8a6654..93abc75881e 100644 --- a/sbin/pflogd/pflogd.c +++ b/sbin/pflogd/pflogd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pflogd.c,v 1.6 2001/08/24 19:48:37 deraadt Exp $ */ +/* $OpenBSD: pflogd.c,v 1.7 2001/08/29 17:42:28 deraadt Exp $ */ /* * Copyright (c) 2001 Theo de Raadt @@ -117,7 +117,7 @@ logmsg(int pri, const char *message, ...) void usage(void) { - fprintf(stderr, "usage: pflogd [-D] [-d delay] [-f filename] [-i interface] "); + fprintf(stderr, "usage: pflogd [-D] [-d delay] [-f filename] "); fprintf(stderr, "[-s snaplen] [expression]\n"); exit(1); } @@ -277,7 +277,7 @@ main(int argc, char **argv) int ch, np; FILE *fp; - while ((ch = getopt(argc, argv, "Dd:i:s:f:")) != -1) { + while ((ch = getopt(argc, argv, "Dd:s:f:")) != -1) { switch (ch) { case 'D': Debug = 1; @@ -287,9 +287,6 @@ main(int argc, char **argv) if (delay < 5 || delay > 60*60) usage(); break; - case 'i': - interface = optarg; - break; case 'f': filename = optarg; break; |