summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>1999-12-10 07:26:57 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>1999-12-10 07:26:57 +0000
commitccedba7f4e30cdaf3c9a85bc25afb27c3fada95f (patch)
treeb2a07911aba72c7b8a74e1687d37b8bd06203c18 /usr.sbin
parent09a4a5b8615ddb5b2931448dee600eab04f901a5 (diff)
add ndp(8), arp(8) lookalike for IPv6.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/Makefile4
-rw-r--r--usr.sbin/ndp/Makefile12
-rw-r--r--usr.sbin/ndp/gnuc.h2
-rw-r--r--usr.sbin/ndp/ndp.820
-rw-r--r--usr.sbin/ndp/ndp.c2
5 files changed, 29 insertions, 11 deletions
diff --git a/usr.sbin/Makefile b/usr.sbin/Makefile
index d74df49368a..99e58ed9230 100644
--- a/usr.sbin/Makefile
+++ b/usr.sbin/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.48 1999/12/09 15:18:15 itojun Exp $
+# $OpenBSD: Makefile,v 1.49 1999/12/10 07:26:56 itojun Exp $
# not yet done: catman
@@ -17,7 +17,7 @@ SUBDIR= ac accton adduser amd arp bootpd bootpgw bootpef bootptest \
vipw vnconfig zdump zic
# IPv6
-SUBDIR+=ifmcstat rtsold
+SUBDIR+=ifmcstat ndp rtsold
.if (${AFS} == "yes")
SUBDIR+=afs
diff --git a/usr.sbin/ndp/Makefile b/usr.sbin/ndp/Makefile
new file mode 100644
index 00000000000..6345ca9e9bb
--- /dev/null
+++ b/usr.sbin/ndp/Makefile
@@ -0,0 +1,12 @@
+# $OpenBSD: Makefile,v 1.1 1999/12/10 07:26:56 itojun Exp $
+
+.PATH: ${.CURDIR}/../tcpdump
+
+PROG= ndp
+SRCS= ndp.c gmt2local.c
+MAN= ndp.8 # ndp.4
+
+CPPFLAGS+=-DINET6
+CPPFLAGS+=-I${.CURDIR} -I${.CURDIR}/../tcpdump
+
+.include <bsd.prog.mk>
diff --git a/usr.sbin/ndp/gnuc.h b/usr.sbin/ndp/gnuc.h
index 65e330a390f..8275a7ae0f1 100644
--- a/usr.sbin/ndp/gnuc.h
+++ b/usr.sbin/ndp/gnuc.h
@@ -1 +1,3 @@
+/* $OpenBSD: gnuc.h,v 1.2 1999/12/10 07:26:56 itojun Exp $ */
+
/* this is dummy to pacify gmt2local.c. */
diff --git a/usr.sbin/ndp/ndp.8 b/usr.sbin/ndp/ndp.8
index 1d0a736d0a2..c965a4d8367 100644
--- a/usr.sbin/ndp/ndp.8
+++ b/usr.sbin/ndp/ndp.8
@@ -1,3 +1,5 @@
+.\" $OpenBSD: ndp.8,v 1.2 1999/12/10 07:26:56 itojun Exp $
+.\"
.\" Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
.\" All rights reserved.
.\"
@@ -25,11 +27,11 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $Id: ndp.8,v 1.1 1999/12/10 07:17:07 itojun Exp $
+.\" KAME Id: ndp.8,v 1.1.1.1 1999/12/10 07:17:07 itojun Exp
.\"
.Dd May 17, 1998
.Dt NDP 8
-.Os KAME
+.Os
.\"
.Sh NAME
.Nm ndp
@@ -55,9 +57,9 @@
.Ar filename
.Nm ndp
.Fl H
-.Nm ndp
-.Fl I
-.Ar interface
+.\" .Nm ndp
+.\" .Fl I
+.\" .Ar interface
.Nm ndp
.Fl i
.Ar interface
@@ -100,10 +102,10 @@ Parse the file specified by
.It Fl H
Harmonize consistency between the routing table and the default router
list; install the top entry of the list into the kernel routing table.
-.It Fl I
-.Ar interface
-Specifies the default interface used as the default route when
-there is no default router.
+.\" .It Fl I
+.\" .Ar interface
+.\" Specifies the default interface used as the default route when
+.\" there is no default router.
.It Fl i
.Ar interface
view ND information for specified interface.
diff --git a/usr.sbin/ndp/ndp.c b/usr.sbin/ndp/ndp.c
index 36ded8484f7..657358cea72 100644
--- a/usr.sbin/ndp/ndp.c
+++ b/usr.sbin/ndp/ndp.c
@@ -1,3 +1,5 @@
+/* $OpenBSD: ndp.c,v 1.2 1999/12/10 07:26:56 itojun Exp $ */
+
/*
* Copyright (C) 1995, 1996, 1997, 1998, and 1999 WIDE Project.
* All rights reserved.