svn commit: r222705 - user/hrs/ipv6/usr.sbin/rtadvd
Hiroki Sato
hrs at FreeBSD.org
Sun Jun 5 02:31:57 UTC 2011
Author: hrs
Date: Sun Jun 5 02:31:57 2011
New Revision: 222705
URL: http://svn.freebsd.org/changeset/base/222705
Log:
Document -M flag and fix a bug in handling of it.
Modified:
user/hrs/ipv6/usr.sbin/rtadvd/rtadvd.8
user/hrs/ipv6/usr.sbin/rtadvd/rtadvd.c
Modified: user/hrs/ipv6/usr.sbin/rtadvd/rtadvd.8
==============================================================================
--- user/hrs/ipv6/usr.sbin/rtadvd/rtadvd.8 Sun Jun 5 02:20:11 2011 (r222704)
+++ user/hrs/ipv6/usr.sbin/rtadvd/rtadvd.8 Sun Jun 5 02:31:57 2011 (r222705)
@@ -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
Modified: user/hrs/ipv6/usr.sbin/rtadvd/rtadvd.c
==============================================================================
--- user/hrs/ipv6/usr.sbin/rtadvd/rtadvd.c Sun Jun 5 02:20:11 2011 (r222704)
+++ user/hrs/ipv6/usr.sbin/rtadvd/rtadvd.c Sun Jun 5 02:31:57 2011 (r222705)
@@ -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);
}
More information about the svn-src-user
mailing list