summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2002-07-17 13:49:04 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2002-07-17 13:49:04 +0000
commitabd0e91c6bce00221643f86b0af782186d52e814 (patch)
tree7ff9121fd7022a9b4a7b79393d779f617e7fb0d7 /usr.sbin
parenteda0d3b4215366b1064f62e087ea2582673b2b87 (diff)
with -i, flag on command line and flag displayed are different, and it does
nothing but confuse users. sync them. for -nud and such, you need "-- -nud" due to posix arg parsing. sync w/kame
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ndp/ndp.89
-rw-r--r--usr.sbin/ndp/ndp.c10
2 files changed, 12 insertions, 7 deletions
diff --git a/usr.sbin/ndp/ndp.8 b/usr.sbin/ndp/ndp.8
index 69ff40d7d06..aa048d8222b 100644
--- a/usr.sbin/ndp/ndp.8
+++ b/usr.sbin/ndp/ndp.8
@@ -1,5 +1,5 @@
-.\" $OpenBSD: ndp.8,v 1.16 2002/06/08 21:19:13 itojun Exp $
-.\" $KAME: ndp.8,v 1.27 2002/06/03 19:25:27 itojun Exp $
+.\" $OpenBSD: ndp.8,v 1.17 2002/07/17 13:49:03 itojun Exp $
+.\" $KAME: ndp.8,v 1.28 2002/07/17 08:46:33 itojun Exp $
.\"
.\" Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
.\" All rights reserved.
@@ -165,6 +165,11 @@ All of the flags can begin with the
special character
.Ql - ,
which means the flag should be cleared.
+Note that you need
+.Fl -
+before
+.Fl foo
+in this case.
.\"
.Pp
.Bl -tag -width Ds -compact
diff --git a/usr.sbin/ndp/ndp.c b/usr.sbin/ndp/ndp.c
index 3c33dc4307e..799e7f4c86f 100644
--- a/usr.sbin/ndp/ndp.c
+++ b/usr.sbin/ndp/ndp.c
@@ -1,5 +1,5 @@
-/* $OpenBSD: ndp.c,v 1.24 2002/06/03 19:30:49 itojun Exp $ */
-/* $KAME: ndp.c,v 1.100 2002/06/03 19:25:27 itojun Exp $ */
+/* $OpenBSD: ndp.c,v 1.25 2002/07/17 13:49:03 itojun Exp $ */
+/* $KAME: ndp.c,v 1.101 2002/07/17 08:46:33 itojun Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, 1998, and 1999 WIDE Project.
@@ -1021,14 +1021,14 @@ ifinfo(ifname, argc, argv)
if (ND.flags) {
printf("\nFlags: ");
if ((ND.flags & ND6_IFF_PERFORMNUD))
- printf("PERFORMNUD ");
+ printf("nud ");
#ifdef ND6_IFF_ACCEPT_RTADV
if ((ND.flags & ND6_IFF_ACCEPT_RTADV))
- printf("ACCEPT_RA ");
+ printf("accept_rtadv ");
#endif
#ifdef ND6_IFF_PREFER_SOURCE
if ((ND.flags & ND6_IFF_PREFER_SOURCE))
- printf("PREFER_SRC ");
+ printf("prefer_source ");
#endif
}
putc('\n', stdout);