diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2007-01-18 20:45:56 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2007-01-18 20:45:56 +0000 |
commit | 8e57b88ee1de7d3309d986e99349c19dabace7ab (patch) | |
tree | a281149d390cd28aea65e984e48a3d95ee7d2b1d /sbin/pfctl/pfctl.c | |
parent | de1cfcbf14166d44cc0420634c71e93168c3b65c (diff) |
implement -T expire.
"pfctl -t tablename -T expire 3600" would expire all entries in the given
table that are older than 3600 seconds. ok dhartmei, manpage help & ok jmc
Diffstat (limited to 'sbin/pfctl/pfctl.c')
-rw-r--r-- | sbin/pfctl/pfctl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/pfctl/pfctl.c b/sbin/pfctl/pfctl.c index b9ff168aea2..5a6c03bdf71 100644 --- a/sbin/pfctl/pfctl.c +++ b/sbin/pfctl/pfctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfctl.c,v 1.257 2006/11/20 14:31:17 mcbride Exp $ */ +/* $OpenBSD: pfctl.c,v 1.258 2007/01/18 20:45:55 henning Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -212,7 +212,7 @@ static const char *showopt_list[] = { static const char *tblcmdopt_list[] = { "kill", "flush", "add", "delete", "load", "replace", "show", - "test", "zero", NULL + "test", "zero", "expire", NULL }; static const char *debugopt_list[] = { @@ -2105,7 +2105,7 @@ main(int argc, char *argv[]) loadopt |= PFCTL_FLAG_TABLE; tblcmdopt = NULL; } else - mode = strchr("acdfkrz", ch) ? O_RDWR : O_RDONLY; + mode = strchr("acdefkrz", ch) ? O_RDWR : O_RDONLY; } else if (argc != optind) { warnx("unknown command line argument: %s ...", argv[optind]); usage(); |