[BACK]Return to ip6_forward.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / netinet6

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/netinet6/ip6_forward.c between version 1.12.2.2 and 1.12.2.3

version 1.12.2.2, 2000/07/17 02:42:12 version 1.12.2.3, 2000/07/28 02:31:25
Line 1 
Line 1 
 /*      $NetBSD$        */  /*      $NetBSD$        */
 /*      $KAME: ip6_forward.c,v 1.43 2000/07/16 07:50:49 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.   * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
Line 112  ip6_forward(m, srcrt)
Line 112  ip6_forward(m, srcrt)
         }          }
 #endif /*IPSEC*/  #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 ||          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++;                  ip6stat.ip6s_cantforward++;
                 /* XXX in6_ifstat_inc(rt->rt_ifp, ifs6_in_discard) */                  /* XXX in6_ifstat_inc(rt->rt_ifp, ifs6_in_discard) */
                 if (ip6_log_time + ip6_log_interval < time_second) {                  if (ip6_log_time + ip6_log_interval < time_second) {

Legend:
Removed from v.1.12.2.2  
changed lines
  Added in v.1.12.2.3

CVSweb <webmaster@jp.NetBSD.org>