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

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

Diff for /src/sys/netinet/ip_input.c between version 1.142 and 1.143

version 1.142, 2001/11/28 09:25:13 version 1.143, 2002/02/21 08:39:33
Line 1665  ip_forward(m, srcrt)
Line 1665  ip_forward(m, srcrt)
                 break;                  break;
   
         case ENOBUFS:          case ENOBUFS:
   #if 1
                   /*
                    * a router should not generate ICMP_SOURCEQUENCH as
                    * required in RFC1812 Requirements for IP Version 4 Routers.
                    * source quench could be a big problem under DoS attacks,
                    * or the underlying interface is rate-limited.
                    */
                   if (mcopy)
                           m_freem(mcopy);
                   return;
   #else
                 type = ICMP_SOURCEQUENCH;                  type = ICMP_SOURCEQUENCH;
                 code = 0;                  code = 0;
                 break;                  break;
   #endif
         }          }
         icmp_error(mcopy, type, code, dest, destifp);          icmp_error(mcopy, type, code, dest, destifp);
 }  }

Legend:
Removed from v.1.142  
changed lines
  Added in v.1.143

CVSweb <webmaster@jp.NetBSD.org>