[BACK]Return to udp_usrreq.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/udp_usrreq.c between version 1.28 and 1.29.2.1

version 1.28, 1996/03/16 23:54:03 version 1.29.2.1, 1996/11/10 21:57:55
Line 162  udp_input(m, va_alist)
Line 162  udp_input(m, va_alist)
         /*          /*
          * Checksum extended UDP header and data.           * Checksum extended UDP header and data.
          */           */
         if (udpcksum && uh->uh_sum) {          if (uh->uh_sum) {
                 bzero(((struct ipovly *)ip)->ih_x1,                  bzero(((struct ipovly *)ip)->ih_x1,
                     sizeof ((struct ipovly *)ip)->ih_x1);                      sizeof ((struct ipovly *)ip)->ih_x1);
                 ((struct ipovly *)ip)->ih_len = uh->uh_ulen;                  ((struct ipovly *)ip)->ih_len = uh->uh_ulen;
Line 462  udp_output(m, va_alist)
Line 462  udp_output(m, va_alist)
         }          }
   
         /*          /*
            * Compute the packet length of the IP header, and
            * punt if the length looks bogus.
            */
           if ((len + sizeof(struct udpiphdr)) > IP_MAXPACKET) {
                   error = EMSGSIZE;
                   goto release;
           }
   
           /*
          * Fill in mbuf with extended UDP header           * Fill in mbuf with extended UDP header
          * and addresses and length put into network format.           * and addresses and length put into network format.
          */           */

Legend:
Removed from v.1.28  
changed lines
  Added in v.1.29.2.1

CVSweb <webmaster@jp.NetBSD.org>