-.\" $OpenBSD: ndp.8,v 1.40 2016/04/05 18:18:42 jca Exp $
+.\" $OpenBSD: ndp.8,v 1.41 2017/04/15 11:42:09 bluhm Exp $
.\" $KAME: ndp.8,v 1.28 2002/07/17 08:46:33 itojun Exp $
.\"
.\" Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: April 5 2016 $
+.Dd $Mdocdate: April 15 2017 $
.Dt NDP 8
.Os
.Sh NAME
Most useful when used with
.Fl A .
.It Fl V Ar rdomain
-Set the routing domain to be used.
-The default is 0.
+Select the routing domain.
.El
.Sh EXIT STATUS
.Ex -std ndp
-/* $OpenBSD: ndp.c,v 1.79 2016/11/29 08:55:06 mpi Exp $ */
+/* $OpenBSD: ndp.c,v 1.80 2017/04/15 11:42:09 bluhm Exp $ */
/* $KAME: ndp.c,v 1.101 2002/07/17 08:46:33 itojun Exp $ */
/*
void harmonize_rtr(void);
static char *sec2str(time_t);
static void ts_print(const struct timeval *);
-static int rdomain = 0;
+static int rdomain;
static char *rtpref_str[] = {
"medium", /* 00 */
pid = getpid();
thiszone = gmt2local(0);
- while ((ch = getopt(argc, argv, "acd:f:i:nprstA:HPRV:")) != -1)
+ rdomain = getrtable();
+ while ((ch = getopt(argc, argv, "acd:f:i:nprstA:HPRV:")) != -1) {
switch (ch) {
case 'a':
case 'c':
default:
usage();
}
-
+ }
argc -= optind;
argv += optind;