fix usage trunk
authorchristos <christos@NetBSD.org>
Mon, 11 Mar 2013 00:16:59 +0000
branchtrunk
changeset 217199 49ea02753252
parent 217198 1edd65705745
child 217200 45ef8fa74c82
fix usage
usr.sbin/npf/npfctl/npfctl.c
usr.sbin/npf/npfctl/todo
--- 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",
--- 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