Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/ndp with -i, flag on command line and flag displaye...



details:   https://anonhg.NetBSD.org/src/rev/e0067cb6bc96
branches:  trunk
changeset: 534118:e0067cb6bc96
user:      itojun <itojun%NetBSD.org@localhost>
date:      Wed Jul 17 13:08:27 2002 +0000

description:
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:

 usr.sbin/ndp/ndp.8 |   9 +++++++--
 usr.sbin/ndp/ndp.c |  10 +++++-----
 2 files changed, 12 insertions(+), 7 deletions(-)

diffs (52 lines):

diff -r 4c71723af4c4 -r e0067cb6bc96 usr.sbin/ndp/ndp.8
--- a/usr.sbin/ndp/ndp.8        Wed Jul 17 06:19:45 2002 +0000
+++ b/usr.sbin/ndp/ndp.8        Wed Jul 17 13:08:27 2002 +0000
@@ -1,5 +1,5 @@
-.\"    $NetBSD: ndp.8,v 1.19 2002/06/08 21:19:08 itojun Exp $
-.\"    $KAME: ndp.8,v 1.27 2002/06/03 19:25:27 itojun Exp $
+.\"    $NetBSD: ndp.8,v 1.20 2002/07/17 13:08:27 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 @@
 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 -r 4c71723af4c4 -r e0067cb6bc96 usr.sbin/ndp/ndp.c
--- a/usr.sbin/ndp/ndp.c        Wed Jul 17 06:19:45 2002 +0000
+++ b/usr.sbin/ndp/ndp.c        Wed Jul 17 13:08:27 2002 +0000
@@ -1,5 +1,5 @@
-/*     $NetBSD: ndp.c,v 1.25 2002/06/03 19:27:40 itojun Exp $  */
-/*     $KAME: ndp.c,v 1.100 2002/06/03 19:25:27 itojun Exp $   */
+/*     $NetBSD: ndp.c,v 1.26 2002/07/17 13:08:28 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.
@@ -1020,14 +1020,14 @@
        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);



Home | Main Index | Thread Index | Old Index