From 1277b59932ab4b4b32097f785734e2f4479f79b7 Mon Sep 17 00:00:00 2001 From: Marc Boucher Date: Thu, 6 Dec 2001 15:06:34 +0000 Subject: Set verbose = 1 when -v option specified. --- iptables-restore.c | 7 +++++-- 1 file 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 @@ -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); -- cgit v1.2.3