[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.24 and 1.25

version 1.24, 1995/08/12 23:59:42 version 1.25, 1995/11/21 01:07:46
Line 142  udp_input(m, iphlen)
Line 142  udp_input(m, iphlen)
          * Checksum extended UDP header and data.           * Checksum extended UDP header and data.
          */           */
         if (udpcksum && uh->uh_sum) {          if (udpcksum && uh->uh_sum) {
                 ((struct ipovly *)ip)->ih_next = 0;                  bzero(((struct ipovly *)ip)->ih_x1,
                 ((struct ipovly *)ip)->ih_prev = 0;                      sizeof ((struct ipovly *)ip)->ih_x1);
                 ((struct ipovly *)ip)->ih_x1 = 0;  
                 ((struct ipovly *)ip)->ih_len = uh->uh_ulen;                  ((struct ipovly *)ip)->ih_len = uh->uh_ulen;
                 if (uh->uh_sum = in_cksum(m, len + sizeof (struct ip))) {                  if (uh->uh_sum = in_cksum(m, len + sizeof (struct ip))) {
                         udpstat.udps_badsum++;                          udpstat.udps_badsum++;
Line 437  udp_output(inp, m, addr, control)
Line 436  udp_output(inp, m, addr, control)
          * and addresses and length put into network format.           * and addresses and length put into network format.
          */           */
         ui = mtod(m, struct udpiphdr *);          ui = mtod(m, struct udpiphdr *);
         ui->ui_next = ui->ui_prev = 0;          bzero(ui->ui_x1, sizeof ui->ui_x1);
         ui->ui_x1 = 0;  
         ui->ui_pr = IPPROTO_UDP;          ui->ui_pr = IPPROTO_UDP;
         ui->ui_len = htons((u_int16_t)len + sizeof (struct udphdr));          ui->ui_len = htons((u_int16_t)len + sizeof (struct udphdr));
         ui->ui_src = inp->inp_laddr;          ui->ui_src = inp->inp_laddr;

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25

CVSweb <webmaster@jp.NetBSD.org>