Permalink
Browse files

re-imported sbin/route for scope changes

  • Loading branch information...
1 parent 87794f1 commit 3de17b9e006ae86e5598c85cfee15c34cf1b47ab jinmei committed Jul 26, 2005
@@ -1,12 +1,11 @@
-# $NetBSD: Makefile,v 1.20 1999/07/03 06:27:56 itojun Exp $
+# $NetBSD: Makefile,v 1.21 2003/10/26 07:25:35 lukem 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
-CPPFLAGS+=-I${.CURDIR}/../../sys -I${.CURDIR}/../../include
# The Makefile over in ../../distrib/utils/x_route
# would like keywords.[ch] to always exist here, so
@@ -15,6 +14,6 @@ CPPFLAGS+=-I${.CURDIR}/../../sys -I${.CURDIR}/../../include
# CPPFLAGS+=-I.
# CLEANFILES+= keywords.c keywords.h
# keywords.c keywords.h : keywords.sh
-# sh keywords.sh
+# ${HOST_SH} keywords.sh
.include <bsd.prog.mk>
@@ -1,4 +1,4 @@
-/* $NetBSD: ccitt_addr.c,v 1.12 1997/09/16 07:04:17 lukem Exp $ */
+/* $NetBSD: ccitt_addr.c,v 1.13 2003/08/07 10:04:38 agc Exp $ */
/*
* Copyright (c) 1990, 1993
@@ -12,11 +12,7 @@
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by the University of
- * California, Berkeley and its contributors.
- * 4. Neither the name of the University nor the names of its contributors
+ * 3. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
@@ -1,4 +1,4 @@
-/* $NetBSD$ */
+/* $NetBSD: keywords.c,v 1.5 2003/07/19 01:36:47 jrf Exp $ */
/* WARNING! This file was generated by keywords.sh */
@@ -54,6 +54,7 @@ struct keytab keywords[] = {
{"x25", K_X25},
{"xns", K_XNS},
{"xresolve", K_XRESOLVE},
+ {"flushall", K_FLUSHALL},
{0, 0}
};
@@ -1,4 +1,4 @@
-/* $NetBSD$ */
+/* $NetBSD: keywords.h,v 1.7 2003/07/19 01:36:47 jrf Exp $ */
/* WARNING! This file was generated by keywords.sh */
@@ -56,3 +56,4 @@ extern struct keytab {
#define K_X25 46
#define K_XNS 47
#define K_XRESOLVE 48
+#define K_FLUSHALL 49
@@ -1,5 +1,5 @@
#!/bin/sh
-# $NetBSD: keywords.sh,v 1.6 2001/01/27 04:51:17 itojun Exp $
+# $NetBSD: keywords.sh,v 1.7 2003/07/19 01:36:47 jrf Exp $
# @(#)keywords 8.2 (Berkeley) 3/19/94
#
# WARNING! If you change this file, re-run it!
@@ -56,6 +56,7 @@ static
x25
xns
xresolve
+flushall
_EOF_
View
@@ -1,4 +1,4 @@
-.\" $NetBSD: route.8,v 1.29.2.1 2003/10/02 09:01:20 tron Exp $
+.\" $NetBSD: route.8,v 1.36 2003/10/02 00:09:06 itojun Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -11,11 +11,7 @@
.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
-.\" 3. All advertising materials mentioning features or use of this software
-.\" must display the following acknowledgement:
-.\" This product includes software developed by the University of
-.\" California, Berkeley and its contributors.
-.\" 4. Neither the name of the University nor the names of its contributors
+.\" 3. Neither the name of the University nor the names of its contributors
.\" may be used to endorse or promote products derived from this software
.\" without specific prior written permission.
.\"
@@ -33,7 +29,7 @@
.\"
.\" @(#)route.8 8.4 (Berkeley) 6/1/94
.\"
-.Dd October 23, 1998
+.Dd July 19, 2003
.Dt ROUTE 8
.Os
.Sh NAME
@@ -110,6 +106,8 @@ utility provides several commands:
Add a route.
.It Cm flush
Remove all routes.
+.It Cm flushall
+Remove all routes including the default gateway.
.It Cm delete
Delete a specific route.
.It Cm change
@@ -127,14 +125,16 @@ routing lookup misses, or suspected network partitionings.
The monitor command has the syntax
.Pp
.Bd -filled -offset indent -compact
-.Nm "" Op Fl n
+.Nm
+.Op Fl n
.Cm monitor
.Ed
.Pp
The flush command has the syntax
.Pp
.Bd -filled -offset indent -compact
-.Nm "" Op Fl n
+.Nm
+.Op Fl n
.Cm flush
.Op Ar family
.Ed
@@ -157,7 +157,8 @@ delineated family will be manipulated.
The other commands have the following syntax:
.Pp
.Bd -filled -offset indent -compact
-.Nm "" Op Fl n
+.Nm
+.Op Fl n
.Ar command
.Op Fl net No \&| Fl host
.Ar destination gateway
@@ -186,6 +187,11 @@ or if the
is the symbolic name of a network, then the route is
assumed to be to a network; otherwise, it is presumed to be a
route to a host.
+Optionally, the
+.Ar destination
+can also be specified in the
+.Ar net Ns / Ns Ar bits
+format.
.Pp
For example,
.Li 128.32
@@ -328,8 +334,8 @@ the routing tables.
.Sh EXIT STATUS
The
.Nm
-utility exits 0 on success, and \*[Gt]0 if an error occurs. This includes
-the use of the
+utility exits 0 on success, and \*[Gt]0 if an error occurs.
+This includes the use of the
.Cm get
command to look up a route that is incomplete.
.Sh EXAMPLES
Oops, something went wrong.

0 comments on commit 3de17b9

Please sign in to comment.