diff options
author | Marc Boucher <marc@mbsi.ca> | 2001-12-06 15:06:34 +0000 |
---|---|---|
committer | Marc Boucher <marc@mbsi.ca> | 2001-12-06 15:06:34 +0000 |
commit | 1277b59932ab4b4b32097f785734e2f4479f79b7 (patch) | |
tree | 74fd5b07d2cef4363f759f80cfe544b099b91538 /iptables-restore.c | |
parent | 163ad7801e93e4d8d3308741d34bcc1ee695d87b (diff) |
Set verbose = 1 when -v option specified.
Diffstat (limited to 'iptables-restore.c')
-rw-r--r-- | iptables-restore.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/iptables-restore.c b/iptables-restore.c index fe70aae5..cda44a6c 100644 --- a/iptables-restore.c +++ b/iptables-restore.c @@ -4,7 +4,7 @@ * * This coude is distributed under the terms of GNU GPL * - * $Id: iptables-restore.c,v 1.17 2001/10/21 14:11:54 laforge Exp $ + * $Id: iptables-restore.c,v 1.18 2001/10/22 15:16:21 laforge Exp $ */ #include <getopt.h> @@ -27,7 +27,7 @@ static int binary = 0, counters = 0, verbose = 0, noflush = 0; static struct option options[] = { { "binary", 0, 0, 'b' }, { "counters", 0, 0, 'c' }, -/* { "verbose", 1, 0, 'v' }, */ + { "verbose", 1, 0, 'v' }, { "help", 0, 0, 'h' }, { "noflush", 0, 0, 'n'}, { "modprobe", 1, 0, 'M'}, @@ -122,6 +122,9 @@ int main(int argc, char *argv[]) case 'c': counters = 1; break; + case 'v': + verbose = 1; + break; case 'h': print_usage("iptables-restore", NETFILTER_VERSION); |