summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorhrs <hrs@FreeBSD.org>2011-06-05 02:31:57 +0000
committerhrs <hrs@FreeBSD.org>2011-06-05 02:31:57 +0000
commitaca9d9cac2df10c7d00e351433c929690de7d803 (patch)
tree617de33000e57dcf08de2a50e46b819022cd448d /usr.sbin
parent58336f4cc22793545c7611a892992e32372b3c53 (diff)
downloadFreeBSD-src-aca9d9cac2df10c7d00e351433c929690de7d803.zip
FreeBSD-src-aca9d9cac2df10c7d00e351433c929690de7d803.tar.gz
Document -M flag and fix a bug in handling of it.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/rtadvd/rtadvd.83
-rw-r--r--usr.sbin/rtadvd/rtadvd.c7
2 files changed, 6 insertions, 4 deletions
diff --git a/usr.sbin/rtadvd/rtadvd.8 b/usr.sbin/rtadvd/rtadvd.8
index 3f0f2d4..5159624 100644
--- a/usr.sbin/rtadvd/rtadvd.8
+++ b/usr.sbin/rtadvd/rtadvd.8
@@ -37,9 +37,10 @@
.Nd router advertisement daemon
.Sh SYNOPSIS
.Nm
-.Op Fl dDfMRs
+.Op Fl dDfRs
.Op Fl c Ar configfile
.Op Fl F Ar dumpfile
+.Op Fl M Ar ifname
.Op Fl p Ar pidfile
.Ar interface ...
.Sh DESCRIPTION
diff --git a/usr.sbin/rtadvd/rtadvd.c b/usr.sbin/rtadvd/rtadvd.c
index 75c164f..1f3d7b1 100644
--- a/usr.sbin/rtadvd/rtadvd.c
+++ b/usr.sbin/rtadvd/rtadvd.c
@@ -188,7 +188,7 @@ main(int argc, char *argv[])
pid_t pid, otherpid;
/* get command line options and arguments */
- while ((ch = getopt(argc, argv, "c:dDF:fMp:Rs")) != -1) {
+ while ((ch = getopt(argc, argv, "c:dDfF:M:p:Rs")) != -1) {
switch (ch) {
case 'c':
conffile = optarg;
@@ -226,8 +226,9 @@ main(int argc, char *argv[])
argv += optind;
if (argc == 0) {
fprintf(stderr,
- "usage: rtadvd [-dDfMRs] [-c conffile] "
- "[-F dumpfile] [-p pidfile] interfaces...\n");
+ "usage: rtadvd [-dDfRs] [-c conffile] "
+ "[-F dumpfile] [-M ifname] "
+ "[-p pidfile] interfaces...\n");
exit(1);
}
OpenPOWER on IntegriCloud