Diff for /src/sys/netinet/ip_input.c between versions 1.12 and 1.13

version 1.12, 2004/03/06 07:30:43 version 1.13, 2004/03/22 06:38:17
Line 365  ip_input(struct netmsg *msg) Line 365  ip_input(struct netmsg *msg)
   
         ipstat.ips_total++;          ipstat.ips_total++;
   
        if (m->m_pkthdr.len < sizeof(struct ip))        /* length checks already done in ip_demux() */
                goto tooshort;        KASSERT(m->m_len >= sizeof(ip), ("IP header not in one mbuf"));
   
         if (m->m_len < sizeof (struct ip) &&  
             (m = m_pullup(m, sizeof (struct ip))) == 0) {  
                 ipstat.ips_toosmall++;  
                 return;  
         }  
         ip = mtod(m, struct ip *);          ip = mtod(m, struct ip *);
   
         if (IP_VHL_V(ip->ip_vhl) != IPVERSION) {          if (IP_VHL_V(ip->ip_vhl) != IPVERSION) {
Line 433  ip_input(struct netmsg *msg) Line 428  ip_input(struct netmsg *msg)
          * Drop packet if shorter than we expect.           * Drop packet if shorter than we expect.
          */           */
         if (m->m_pkthdr.len < ip->ip_len) {          if (m->m_pkthdr.len < ip->ip_len) {
 tooshort:  
                 ipstat.ips_tooshort++;                  ipstat.ips_tooshort++;
                 goto bad;                  goto bad;
         }          }

Removed from v.1.12  
changed lines
  Added in v.1.13