Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/npf/npfctl fix usage



details:   https://anonhg.NetBSD.org/src/rev/99d6d5bec872
branches:  trunk
changeset: 785375:99d6d5bec872
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Mar 11 00:16:59 2013 +0000

description:
fix usage

diffstat:

 usr.sbin/npf/npfctl/npfctl.c |  10 +++++++---
 usr.sbin/npf/npfctl/todo     |   2 +-
 2 files changed, 8 insertions(+), 4 deletions(-)

diffs (47 lines):

diff -r 3403760387fd -r 99d6d5bec872 usr.sbin/npf/npfctl/npfctl.c
--- a/usr.sbin/npf/npfctl/npfctl.c      Mon Mar 11 00:09:07 2013 +0000
+++ b/usr.sbin/npf/npfctl/npfctl.c      Mon Mar 11 00:16:59 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: npfctl.c,v 1.32 2013/03/10 23:59:00 christos Exp $     */
+/*     $NetBSD: npfctl.c,v 1.33 2013/03/11 00:16:59 christos Exp $     */
 
 /*-
  * Copyright (c) 2009-2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: npfctl.c,v 1.32 2013/03/10 23:59:00 christos Exp $");
+__RCSID("$NetBSD: npfctl.c,v 1.33 2013/03/11 00:16:59 christos Exp $");
 
 #include <sys/ioctl.h>
 #include <sys/stat.h>
@@ -115,7 +115,11 @@
        const char *progname = getprogname();
 
        fprintf(stderr,
-           "usage:\t%s [ start | stop | reload | flush | show | stats ]\n",
+           "Usage:\t%s start | stop | flush | show | stats | sess-load | "
+           "sess-save\n",
+           progname);
+       fprintf(stderr,
+           "\t%s validate | reload [<rule-file>]\n",
            progname);
        fprintf(stderr,
            "\t%s rule \"rule-name\" { add | rem } <rule-syntax>\n",
diff -r 3403760387fd -r 99d6d5bec872 usr.sbin/npf/npfctl/todo
--- a/usr.sbin/npf/npfctl/todo  Mon Mar 11 00:09:07 2013 +0000
+++ b/usr.sbin/npf/npfctl/todo  Mon Mar 11 00:16:59 2013 +0000
@@ -5,7 +5,6 @@
 -- npfctl start does not load if not loaded. It is not clear you need to
    reload first. Or if it loads it should print the error messages.
 -- able to specify interfaces before they are created
--- npfctl validate is not listed in the usage, what else is wrong in doc
 -- docs/examples out of date
 -- npf starts up too late (after traffic can go through)
 -- need libpcap in /
@@ -21,3 +20,4 @@
 ok create npflog interface automatically
 ok need to bring interface npflog up
 ok parse 'port "ftp-data"' properly
+ok fix usage



Home | Main Index | Thread Index | Old Index