Diff for /src/sys/netinet/udp_usrreq.c between versions 1.16 and 1.17

version 1.16, 2004/03/17 02:27:59 version 1.17, 2004/03/22 06:38:17
Line 215  udp_input(m, off, proto) Line 215  udp_input(m, off, proto)
         }          }
   
         /*          /*
         * Get IP and UDP header together in first mbuf.         * IP and UDP headers are together in first mbuf.
          * Already checked and pulled up in ip_demux().
          */           */
           KASSERT(m->m_len >= iphlen + sizeof(struct udphdr),
               ("UDP header not in one mbuf"));
   
         ip = mtod(m, struct ip *);          ip = mtod(m, struct ip *);
         if (m->m_len < iphlen + sizeof(struct udphdr)) {  
                 if ((m = m_pullup(m, iphlen + sizeof(struct udphdr))) == 0) {  
                         udpstat.udps_hdrops++;  
                         return;  
                 }  
                 ip = mtod(m, struct ip *);  
         }  
         uh = (struct udphdr *)((caddr_t)ip + iphlen);          uh = (struct udphdr *)((caddr_t)ip + iphlen);
   
         /* destination port of 0 is illegal, based on RFC768. */          /* destination port of 0 is illegal, based on RFC768. */

Removed from v.1.16  
changed lines
  Added in v.1.17