Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/route6d suppress output on dump request if -q is sp...



details:   https://anonhg.NetBSD.org/src/rev/8f1f2c0cc991
branches:  trunk
changeset: 535533:8f1f2c0cc991
user:      itojun <itojun%NetBSD.org@localhost>
date:      Wed Aug 21 16:26:12 2002 +0000

description:
suppress output on dump request if -q is specified.  sync w/kame

diffstat:

 usr.sbin/route6d/route6d.c |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r badb44a6a445 -r 8f1f2c0cc991 usr.sbin/route6d/route6d.c
--- a/usr.sbin/route6d/route6d.c        Wed Aug 21 05:13:36 2002 +0000
+++ b/usr.sbin/route6d/route6d.c        Wed Aug 21 16:26:12 2002 +0000
@@ -1,5 +1,5 @@
-/*     $NetBSD: route6d.c,v 1.36 2002/08/01 00:17:31 wiz Exp $ */
-/*     $KAME: route6d.c,v 1.85 2002/06/07 16:39:41 itojun Exp $        */
+/*     $NetBSD: route6d.c,v 1.37 2002/08/21 16:26:12 itojun Exp $      */
+/*     $KAME: route6d.c,v 1.88 2002/08/21 16:24:25 itojun Exp $        */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -32,7 +32,7 @@
 
 #include <sys/cdefs.h>
 #ifndef        lint
-__RCSID("$NetBSD: route6d.c,v 1.36 2002/08/01 00:17:31 wiz Exp $");
+__RCSID("$NetBSD: route6d.c,v 1.37 2002/08/21 16:26:12 itojun Exp $");
 #endif
 
 #include <stdio.h>
@@ -727,6 +727,9 @@
        struct  in6_addr *nh;   /* next hop */
        int     maxrte;
 
+       if (qflag)
+               return;
+
        if (ifcp == NULL) {
                /*
                 * Request from non-link local address is not



Home | Main Index | Thread Index | Old Index