blob: 8f1a5f956a919575708e3b6467dd07a0abaebdae [file] [log] [blame] [raw]
Fix the outdated online usage string of ipmon(8).
Ported from IP Filter Rivoreo fork commit 4dcd677.
diff -ru --exclude-from freebsd-src-diff-exclude-names /var/tmp/freebsd-10.3-src/usr/src/contrib/ipfilter/tools/ipmon.c freebsd-10.3/usr/src/contrib/ipfilter/tools/ipmon.c
--- /var/tmp/freebsd-10.3-src/usr/src/contrib/ipfilter/tools/ipmon.c 2016-03-25 09:10:55.000000000 +0800
+++ freebsd-10.3/usr/src/contrib/ipfilter/tools/ipmon.c 2019-06-26 12:14:05.997887034 +0800
@@ -1479,8 +1479,11 @@
static void usage(prog)
char *prog;
{
- fprintf(stderr, "%s: [-NFhstvxX] [-f <logfile>]\n", prog);
- exit(1);
+ fprintf(stderr, "Usage: %s [-abDFhnpstvxX] [-B <output-binary-log-file>] [-C <config-file>]\n"
+ " [-f <filter-input-file>] [-L <syslog-facility>] [-N <nat-input-file>]\n"
+ " [-o <letters>] [-O <letters>] [-P <pid-file>] [-S <state-input-file>]\n"
+ " [<output-log-file>]\n", prog);
+ exit(-1);
}
@@ -1612,7 +1615,7 @@
initconfig(&config);
while ((c = getopt(argc, argv,
- "?abB:C:Df:FhL:nN:o:O:pP:sS:tvxX")) != -1)
+ "abB:C:Df:FhL:nN:o:O:pP:sS:tvxX")) != -1) {
switch (c)
{
case 'a' :
@@ -1703,6 +1706,7 @@
case '?' :
usage(argv[0]);
}
+ }
if (ipmonopts & IPMON_SYSLOG)
openlog(prog, LOG_NDELAY|LOG_PID, logfac);