[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.169.2.7 and 1.218

version 1.169.2.7, 2005/04/01 14:31:50 version 1.218, 2005/06/28 19:38:58
Line 131  __KERNEL_RCSID(0, "$NetBSD$");
Line 131  __KERNEL_RCSID(0, "$NetBSD$");
 #include <netinet/in_systm.h>  #include <netinet/in_systm.h>
 #include <netinet/ip.h>  #include <netinet/ip.h>
 #include <netinet/in_pcb.h>  #include <netinet/in_pcb.h>
   #include <netinet/in_proto.h>
 #include <netinet/in_var.h>  #include <netinet/in_var.h>
 #include <netinet/ip_var.h>  #include <netinet/ip_var.h>
 #include <netinet/ip_icmp.h>  #include <netinet/ip_icmp.h>
Line 200  int ipprintfs = 0;
Line 201  int ipprintfs = 0;
 #endif  #endif
   
 int     ip_do_randomid = 0;  int     ip_do_randomid = 0;
 int     ip_do_loopback_cksum = 0;  
   
 /*  /*
  * XXX - Setting ip_checkinterface mostly implements the receive side of   * XXX - Setting ip_checkinterface mostly implements the receive side of
Line 1872  ip_forward(struct mbuf *m, int srcrt)
Line 1872  ip_forward(struct mbuf *m, int srcrt)
   
                 rtalloc(&ipforward_rt);                  rtalloc(&ipforward_rt);
                 if (ipforward_rt.ro_rt == 0) {                  if (ipforward_rt.ro_rt == 0) {
                         icmp_error(m, ICMP_UNREACH, ICMP_UNREACH_HOST, dest, 0);                          icmp_error(m, ICMP_UNREACH, ICMP_UNREACH_NET, dest, 0);
                         return;                          return;
                 }                  }
                 rt = ipforward_rt.ro_rt;                  rt = ipforward_rt.ro_rt;

Legend:
Removed from v.1.169.2.7  
changed lines
  Added in v.1.218

CVSweb <webmaster@jp.NetBSD.org>