Source-Changes-HG archive

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

[src/netbsd-1-5]: src/sys/netinet6 pullup 1.15 -> 1.16 (aproved by releng-1-5)



details:   https://anonhg.NetBSD.org/src/rev/22aed2a0f5e9
branches:  netbsd-1-5
changeset: 488788:22aed2a0f5e9
user:      itojun <itojun%NetBSD.org@localhost>
date:      Fri Jul 28 02:31:25 2000 +0000

description:
pullup 1.15 -> 1.16 (aproved by releng-1-5)

 > do not forward packet with :: in the source.
 > this is not in the spec - we had rough consensus on it in ipngwg,
 > spec will get updated to include this behavior.

diffstat:

 sys/netinet6/ip6_forward.c |  13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 2c60da834af3 -r 22aed2a0f5e9 sys/netinet6/ip6_forward.c
--- a/sys/netinet6/ip6_forward.c        Fri Jul 28 02:31:08 2000 +0000
+++ b/sys/netinet6/ip6_forward.c        Fri Jul 28 02:31:25 2000 +0000
@@ -1,5 +1,5 @@
-/*     $NetBSD: ip6_forward.c,v 1.12.2.2 2000/07/17 02:42:12 itojun Exp $      */
-/*     $KAME: ip6_forward.c,v 1.43 2000/07/16 07:50:49 itojun Exp $    */
+/*     $NetBSD: ip6_forward.c,v 1.12.2.3 2000/07/28 02:31:25 itojun Exp $      */
+/*     $KAME: ip6_forward.c,v 1.44 2000/07/27 13:43:21 itojun Exp $    */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -112,8 +112,15 @@
        }
 #endif /*IPSEC*/
 
+       /*
+        * Do not forward packets to multicast destination (should be handled
+        * by ip6_mforward().
+        * Do not forward packets with unspecified source.  It was discussed
+        * in July 2000, on ipngwg mailing list.
+        */
        if ((m->m_flags & (M_BCAST|M_MCAST)) != 0 ||
-           IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) {
+           IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) ||
+           IN6_IS_ADDR_UNSPECIFIED(&ip6->ip6_src)) {
                ip6stat.ip6s_cantforward++;
                /* XXX in6_ifstat_inc(rt->rt_ifp, ifs6_in_discard) */
                if (ip6_log_time + ip6_log_interval < time_second) {



Home | Main Index | Thread Index | Old Index