[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.1 and 1.169.2.2

version 1.169.2.1, 2004/08/03 10:54:39 version 1.169.2.2, 2004/10/19 15:58:14
Line 575  ip_input(struct mbuf *m)
Line 575  ip_input(struct mbuf *m)
                 /* Must compute it ourselves. */                  /* Must compute it ourselves. */
                 INET_CSUM_COUNTER_INCR(&ip_swcsum);                  INET_CSUM_COUNTER_INCR(&ip_swcsum);
                 if (in_cksum(m, hlen) != 0)                  if (in_cksum(m, hlen) != 0)
                         goto bad;                          goto badcsum;
                 break;                  break;
         }          }
   
Line 649  ip_input(struct mbuf *m)
Line 649  ip_input(struct mbuf *m)
                         return;                          return;
                 ip = mtod(m, struct ip *);                  ip = mtod(m, struct ip *);
                 hlen = ip->ip_hl << 2;                  hlen = ip->ip_hl << 2;
                   /*
                    * XXX The setting of "srcrt" here is to prevent ip_forward()
                    * from generating ICMP redirects for packets that have
                    * been redirected by a hook back out on to the same LAN that
                    * they came from and is not an indication that the packet
                    * is being inffluenced by source routing options.  This
                    * allows things like
                    * "rdr tlp0 0/0 port 80 -> 1.1.1.200 3128 tcp"
                    * where tlp0 is both on the 1.1.1.0/24 network and is the
                    * default route for hosts on 1.1.1.0/24.  Of course this
                    * also requires a "map tlp0 ..." to complete the story.
                    * One might argue whether or not this kind of network config.
                    * should be supported in this manner...
                    */
                 srcrt = (odst.s_addr != ip->ip_dst.s_addr);                  srcrt = (odst.s_addr != ip->ip_dst.s_addr);
         }          }
 #endif /* PFIL_HOOKS */  #endif /* PFIL_HOOKS */

Legend:
Removed from v.1.169.2.1  
changed lines
  Added in v.1.169.2.2

CVSweb <webmaster@jp.NetBSD.org>