Source-Changes-HG archive

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

[src/netbsd-1-6]: src/sys/netinet6 Pull up revisions 1.47 (requested by itoju...



details:   https://anonhg.NetBSD.org/src/rev/13ce4ce3a7a6
branches:  netbsd-1-6
changeset: 530326:13ce4ce3a7a6
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Tue Jun 17 09:18:40 2003 +0000

description:
Pull up revisions 1.47 (requested by itojun in ticket #1317):
 don't try to forward multicast packet to mif that went away.

diffstat:

 sys/netinet6/ip6_mroute.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r db0d380662ad -r 13ce4ce3a7a6 sys/netinet6/ip6_mroute.c
--- a/sys/netinet6/ip6_mroute.c Mon Jun 16 21:56:29 2003 +0000
+++ b/sys/netinet6/ip6_mroute.c Tue Jun 17 09:18:40 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip6_mroute.c,v 1.28.4.1 2002/07/29 15:42:22 lukem Exp $        */
+/*     $NetBSD: ip6_mroute.c,v 1.28.4.2 2003/06/17 09:18:40 msaitoh Exp $      */
 /*     $KAME: ip6_mroute.c,v 1.49 2001/07/25 09:21:18 jinmei Exp $     */
 
 /*
@@ -46,7 +46,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip6_mroute.c,v 1.28.4.1 2002/07/29 15:42:22 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip6_mroute.c,v 1.28.4.2 2003/06/17 09:18:40 msaitoh Exp $");
 
 #include "opt_inet.h"
 
@@ -1375,6 +1375,8 @@
         */
        for (mifp = mif6table, mifi = 0; mifi < nummifs; mifp++, mifi++)
                if (IF_ISSET(mifi, &rt->mf6c_ifset)) {
+                       if (mif6table[mifi].m6_ifp == NULL)
+                               continue;
 #ifdef notyet
                        /*
                         * check if the outgoing packet is going to break



Home | Main Index | Thread Index | Old Index