Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/route6d fix behavior or -A. routing table check do...



details:   https://anonhg.NetBSD.org/src/rev/b077b7b5d017
branches:  trunk
changeset: 495522:b077b7b5d017
user:      itojun <itojun%NetBSD.org@localhost>
date:      Sun Jul 30 17:26:14 2000 +0000

description:
fix behavior or -A.  routing table check does not seem to working right.

diffstat:

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

diffs (46 lines):

diff -r 5943fa5208d8 -r b077b7b5d017 usr.sbin/route6d/route6d.c
--- a/usr.sbin/route6d/route6d.c        Sun Jul 30 17:22:26 2000 +0000
+++ b/usr.sbin/route6d/route6d.c        Sun Jul 30 17:26:14 2000 +0000
@@ -1,5 +1,5 @@
-/*     $NetBSD: route6d.c,v 1.15 2000/07/15 04:55:41 itojun Exp $      */
-/*     $KAME: route6d.c,v 1.32 2000/07/15 04:50:43 itojun Exp $        */
+/*     $NetBSD: route6d.c,v 1.16 2000/07/30 17:26:14 itojun Exp $      */
+/*     $KAME: route6d.c,v 1.34 2000/07/30 17:24:40 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.15 2000/07/15 04:55:41 itojun Exp $");
+__RCSID("$NetBSD: route6d.c,v 1.16 2000/07/30 17:26:14 itojun Exp $");
 #endif
 
 #include <stdio.h>
@@ -2725,7 +2725,9 @@
        struct  iff ftmp, *iff_obj;
        struct  ifc *ifcp;
        struct  riprt *rrt;
+#if 0
        struct  in6_addr gw;
+#endif
 
        for (i = 0; i < nfilter; i++) {
                ap = filter[i];
@@ -2784,6 +2786,7 @@
                rrt->rrt_rflags = RRTF_AGGREGATE;
                rrt->rrt_t = 0;
                rrt->rrt_index = loopifindex;
+#if 0
                if (getroute(&rrt->rrt_info, &gw)) {
 #if 0
                        /*
@@ -2800,6 +2803,7 @@
                            rrt->rrt_info.rip6_plen);
 #endif
                }
+#endif
                /* Put the route to the list */
                rrt->rrt_next = riprt;
                riprt = rrt;



Home | Main Index | Thread Index | Old Index