From dee179a37f7a80b8c81a839031e62068fe099fea Mon Sep 17 00:00:00 2001 From: jrf Date: Thu, 3 Apr 2003 02:39:50 +0000 Subject: [PATCH] Made a note in the code about the -d and -d options brought up in PR 18674. Thanks to Chris Jones for pointing it out. --- sbin/route/route.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/sbin/route/route.c b/sbin/route/route.c index 6e1bbb0711ff..62131f88709b 100644 --- a/sbin/route/route.c +++ b/sbin/route/route.c @@ -1,4 +1,4 @@ -/* $NetBSD: route.c,v 1.61 2002/10/18 00:21:23 itojun Exp $ */ +/* $NetBSD: route.c,v 1.62 2003/04/03 02:39:50 jrf Exp $ */ /* * Copyright (c) 1983, 1989, 1991, 1993 @@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 1989, 1991, 1993\n\ #if 0 static char sccsid[] = "@(#)route.c 8.6 (Berkeley) 4/28/95"; #else -__RCSID("$NetBSD: route.c,v 1.61 2002/10/18 00:21:23 itojun Exp $"); +__RCSID("$NetBSD: route.c,v 1.62 2003/04/03 02:39:50 jrf Exp $"); #endif #endif /* not lint */ @@ -163,6 +163,13 @@ main(argc, argv) if (argc < 2) usage(NULL); + /* The -d (debugonly) and -t (tflag) are for program debugging + * and are deliberately not documented. + * + * debugonly fakes the operation. If it is manipulating a route + * it will flush all routes not associated with a network interface. + * tflag uses /dev/null instead of a real socket. + */ while ((ch = getopt(argc, argv, "fnqvdts")) != -1) switch(ch) { case 'f':