Permalink
Browse files

NetBSD 1.5

  • Loading branch information...
1 parent 460c869 commit 9c9ae0c70f59fa327dc2fb919e0dada3743abd45 itojun committed Apr 6, 2001
@@ -1,10 +1,12 @@
-# $NetBSD: Makefile,v 1.18 1997/10/10 19:52:22 christos Exp $
+# $NetBSD: Makefile,v 1.20 1999/07/03 06:27:56 itojun Exp $
# @(#)Makefile 8.1 (Berkeley) 6/5/93
PROG= route
MAN= route.8
SRCS= route.c show.c keywords.c ccitt_addr.c
+CPPFLAGS+=-DINET6
+
# The Makefile over in ../../distrib/utils/x_route
# would like keywords.[ch] to always exist here, so
# they are now checked in as sources.
@@ -1,4 +1,4 @@
-/* $NetBSD: keywords.c,v 1.2 1997/04/03 02:35:48 christos Exp $ */
+/* $NetBSD: keywords.c,v 1.3 1999/07/02 15:29:03 itojun Exp $ */
/* WARNING! This file was generated by keywords.sh */
@@ -25,6 +25,7 @@ struct keytab keywords[] = {
{"ifa", K_IFA},
{"ifp", K_IFP},
{"inet", K_INET},
+ {"inet6", K_INET6},
{"iso", K_ISO},
{"link", K_LINK},
{"llinfo", K_LLINFO},
@@ -37,6 +38,7 @@ struct keytab keywords[] = {
{"netmask", K_NETMASK},
{"nostatic", K_NOSTATIC},
{"osi", K_OSI},
+ {"prefixlen", K_PREFIXLEN},
{"proto1", K_PROTO1},
{"proto2", K_PROTO2},
{"recvpipe", K_RECVPIPE},
@@ -1,4 +1,4 @@
-/* $NetBSD: keywords.h,v 1.4 1997/04/03 02:35:49 christos Exp $ */
+/* $NetBSD: keywords.h,v 1.5 1999/07/02 15:29:03 itojun Exp $ */
/* WARNING! This file was generated by keywords.sh */
@@ -27,29 +27,31 @@ extern struct keytab {
#define K_IFA 17
#define K_IFP 18
#define K_INET 19
-#define K_ISO 20
-#define K_LINK 21
-#define K_LLINFO 22
-#define K_LOCK 23
-#define K_LOCKREST 24
-#define K_MASK 25
-#define K_MONITOR 26
-#define K_MTU 27
-#define K_NET 28
-#define K_NETMASK 29
-#define K_NOSTATIC 30
-#define K_OSI 31
-#define K_PROTO1 32
-#define K_PROTO2 33
-#define K_RECVPIPE 34
-#define K_REJECT 35
-#define K_RTT 36
-#define K_RTTVAR 37
-#define K_SA 38
-#define K_SENDPIPE 39
-#define K_SHOW 40
-#define K_SSTHRESH 41
-#define K_STATIC 42
-#define K_X25 43
-#define K_XNS 44
-#define K_XRESOLVE 45
+#define K_INET6 20
+#define K_ISO 21
+#define K_LINK 22
+#define K_LLINFO 23
+#define K_LOCK 24
+#define K_LOCKREST 25
+#define K_MASK 26
+#define K_MONITOR 27
+#define K_MTU 28
+#define K_NET 29
+#define K_NETMASK 30
+#define K_NOSTATIC 31
+#define K_OSI 32
+#define K_PREFIXLEN 33
+#define K_PROTO1 34
+#define K_PROTO2 35
+#define K_RECVPIPE 36
+#define K_REJECT 37
+#define K_RTT 38
+#define K_RTTVAR 39
+#define K_SA 40
+#define K_SENDPIPE 41
+#define K_SHOW 42
+#define K_SSTHRESH 43
+#define K_STATIC 44
+#define K_X25 45
+#define K_XNS 46
+#define K_XRESOLVE 47
@@ -1,5 +1,5 @@
#!/bin/sh
-# $NetBSD: keywords.sh,v 1.4 1997/04/03 02:35:49 christos Exp $
+# $NetBSD: keywords.sh,v 1.5 1999/07/02 15:29:03 itojun Exp $
# @(#)keywords 8.2 (Berkeley) 3/19/94
#
# WARNING! If you change this file, re-run it!
@@ -27,6 +27,7 @@ interface
ifa
ifp
inet
+inet6
iso
link
llinfo
@@ -39,6 +40,7 @@ net
netmask
nostatic
osi
+prefixlen
proto1
proto2
recvpipe
View
@@ -1,4 +1,4 @@
-.\" $NetBSD: route.8,v 1.17 1999/03/24 06:29:21 mycroft Exp $
+.\" $NetBSD: route.8,v 1.19 1999/07/17 06:51:27 itojun Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -137,8 +137,9 @@ When the address family is specified by any of the
.Fl osi ,
.Fl xns ,
.Fl atalk ,
+.Fl inet ,
or
-.Fl inet
+.Fl inet6
modifiers, only routes having destinations with addresses in the
delineated family will be deleted.
.Pp
@@ -230,6 +231,8 @@ The implicit network mask generated in the
.Dv AF_INET
case
can be overridden by making sure this option follows the destination parameter.
+.Fl prefixlen
+is also available for similar purpose, in IPv6 case.
.Pp
Routes have associated flags which influence operation of the protocols
when sending to destinations matched by the routes.
@@ -347,7 +350,21 @@ The
.Nm
command appeared in
.Bx 4.2 .
+IPv6 support was added by WIDE/KAME project.
.Sh BUGS
The first paragraph may have slightly exaggerated
.Xr routed 8 Ns 's
abilities.
+.Pp
+Some uses of the
+.Fl ifa
+or
+.Fl ifp
+modifiers with the add command will incorrectly fail with a
+.Dq Network is unreachable
+message if there is no default route.
+See case
+.Dv RTM_ADD
+in
+.Pa sys/net/rtsock.c:route_output
+for details.
Oops, something went wrong.

0 comments on commit 9c9ae0c

Please sign in to comment.