summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2003-02-14 17:17:28 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2003-02-14 17:17:28 +0000
commit1dca3814dd516a2e803f382d3900401e9157904b (patch)
tree0fc27424e6295e1116bfc99b6e3858b1c16f6fbf
parenta86f6a73646ec070054ca2c946f5a3003613d6ed (diff)
remove explicit table creation ( -T create ), it's useless.
ok pb@ mcbride@ deraadt@
-rw-r--r--sbin/pfctl/pfctl.84
-rw-r--r--sbin/pfctl/pfctl.c4
-rw-r--r--sbin/pfctl/pfctl_table.c8
3 files changed, 4 insertions, 12 deletions
diff --git a/sbin/pfctl/pfctl.8 b/sbin/pfctl/pfctl.8
index 8140f7cc2a8..c2cbe4c3cb3 100644
--- a/sbin/pfctl/pfctl.8
+++ b/sbin/pfctl/pfctl.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: pfctl.8,v 1.78 2003/02/14 14:11:44 cedric Exp $
+.\" $OpenBSD: pfctl.8,v 1.79 2003/02/14 17:17:27 henning Exp $
.\"
.\" Copyright (c) 2001 Kjell Wooding. All rights reserved.
.\"
@@ -237,8 +237,6 @@ Specify the name of the table.
Specify the command to apply to the table.
Commands include:
.Bl -tag -width "T Replace " -compact
-.It Fl T Ar create
-Create a new table.
.It Fl T Ar kill
Kill a table.
.It Fl T Ar flush
diff --git a/sbin/pfctl/pfctl.c b/sbin/pfctl/pfctl.c
index f58b6c1af01..26f337a0fef 100644
--- a/sbin/pfctl/pfctl.c
+++ b/sbin/pfctl/pfctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfctl.c,v 1.148 2003/02/11 20:11:36 henning Exp $ */
+/* $OpenBSD: pfctl.c,v 1.149 2003/02/14 17:17:27 henning Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -170,7 +170,7 @@ static char *showopt_list[] = {
};
static char *tblcmdopt_list[] = {
- "create", "kill", "flush", "add", "delete", "load", "replace", "show",
+ "kill", "flush", "add", "delete", "load", "replace", "show",
"test", "zero", NULL
};
diff --git a/sbin/pfctl/pfctl_table.c b/sbin/pfctl/pfctl_table.c
index c829e380bb2..2b7b6424a71 100644
--- a/sbin/pfctl/pfctl_table.c
+++ b/sbin/pfctl/pfctl_table.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfctl_table.c,v 1.34 2003/02/05 08:52:08 cedric Exp $ */
+/* $OpenBSD: pfctl_table.c,v 1.35 2003/02/14 17:17:27 henning Exp $ */
/*
* Copyright (c) 2002 Cedric Berger
@@ -175,12 +175,6 @@ pfctl_table(int argc, char *argv[], char *tname, char *command,
else
print_table(buffer.tables+i,
opts & PF_OPT_VERBOSE);
- } else if (!strcmp(command, "create")) {
- if (argc || file != NULL)
- usage();
- table.pfrt_flags = PFR_TFLAG_PERSIST;
- RVTEST(pfr_add_tables(&table, 1, &nadd, flags));
- xprintf(opts, "%d table added", nadd);
} else if (!strcmp(command, "kill")) {
if (argc || file != NULL)
usage();