Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/ndp ndp: Show U for Unreachable
details: https://anonhg.NetBSD.org/src/rev/1acce76264c4
branches: trunk
changeset: 944046:1acce76264c4
user: roy <roy%NetBSD.org@localhost>
date: Tue Sep 15 10:11:35 2020 +0000
description:
ndp: Show U for Unreachable
diffstat:
usr.sbin/ndp/ndp.8 | 6 ++++--
usr.sbin/ndp/ndp.c | 21 +++++++++++----------
2 files changed, 15 insertions(+), 12 deletions(-)
diffs (76 lines):
diff -r 812e7bf97175 -r 1acce76264c4 usr.sbin/ndp/ndp.8
--- a/usr.sbin/ndp/ndp.8 Tue Sep 15 10:11:15 2020 +0000
+++ b/usr.sbin/ndp/ndp.8 Tue Sep 15 10:11:35 2020 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: ndp.8,v 1.31 2020/06/12 21:08:02 roy Exp $
+.\" $NetBSD: ndp.8,v 1.32 2020/09/15 10:11:35 roy Exp $
.\" $KAME: ndp.8,v 1.33 2005/10/19 14:57:42 suz Exp $
.\"
.\" Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -28,7 +28,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd April 19, 2020
+.Dd September 15, 2020
.Dt NDP 8
.Os
.\"
@@ -110,6 +110,8 @@
Reachable
.It S
Stale
+.It U
+Unreachable
.It W
Waitdelete
.It ?
diff -r 812e7bf97175 -r 1acce76264c4 usr.sbin/ndp/ndp.c
--- a/usr.sbin/ndp/ndp.c Tue Sep 15 10:11:15 2020 +0000
+++ b/usr.sbin/ndp/ndp.c Tue Sep 15 10:11:35 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ndp.c,v 1.57 2020/06/12 21:08:02 roy Exp $ */
+/* $NetBSD: ndp.c,v 1.58 2020/09/15 10:11:35 roy Exp $ */
/* $KAME: ndp.c,v 1.121 2005/07/13 11:30:13 keiichi Exp $ */
/*
@@ -571,29 +571,30 @@
(void)printf(" %-9.9s", "expired");
switch (nbi->state) {
- case ND6_LLINFO_NOSTATE:
+ case ND_LLINFO_NOSTATE:
(void)printf(" N");
break;
-#ifdef ND6_LLINFO_WAITDELETE
- case ND6_LLINFO_WAITDELETE:
+ case ND_LLINFO_WAITDELETE:
(void)printf(" W");
break;
-#endif
- case ND6_LLINFO_INCOMPLETE:
+ case ND_LLINFO_INCOMPLETE:
(void)printf(" I");
break;
- case ND6_LLINFO_REACHABLE:
+ case ND_LLINFO_REACHABLE:
(void)printf(" R");
break;
- case ND6_LLINFO_STALE:
+ case ND_LLINFO_STALE:
(void)printf(" S");
break;
- case ND6_LLINFO_DELAY:
+ case ND_LLINFO_DELAY:
(void)printf(" D");
break;
- case ND6_LLINFO_PROBE:
+ case ND_LLINFO_PROBE:
(void)printf(" P");
break;
+ case ND_LLINFO_UNREACHABLE:
+ (void)printf(" U");
+ break;
default:
(void)printf(" ?");
break;
Home |
Main Index |
Thread Index |
Old Index