[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.56 and 1.57

version 1.56, 2000/01/06 15:46:08 version 1.57, 2000/01/31 10:39:26
Line 219  udp_input(m, va_alist)
Line 219  udp_input(m, va_alist)
         }          }
 #endif  #endif
   
           /* destination port of 0 is illegal, based on RFC768. */
           if (uh->uh_dport == 0)
                   goto bad;
   
         /*          /*
          * Make mbuf data length reflect UDP length.           * Make mbuf data length reflect UDP length.
          * If not enough data to reflect UDP length, drop.           * If not enough data to reflect UDP length, drop.
Line 376  udp6_input(mp, offp, proto)
Line 380  udp6_input(mp, offp, proto)
                 goto bad;                  goto bad;
         }          }
   
           /* destination port of 0 is illegal, based on RFC768. */
           if (uh->uh_dport == 0)
                   goto bad;
   
         /* Be proactive about malicious use of IPv4 mapped address */          /* Be proactive about malicious use of IPv4 mapped address */
         if (IN6_IS_ADDR_V4MAPPED(&ip6->ip6_src) ||          if (IN6_IS_ADDR_V4MAPPED(&ip6->ip6_src) ||
             IN6_IS_ADDR_V4MAPPED(&ip6->ip6_dst)) {              IN6_IS_ADDR_V4MAPPED(&ip6->ip6_dst)) {
Line 928  udp_input(m, va_alist)
Line 936  udp_input(m, va_alist)
         }          }
         uh = (struct udphdr *)((caddr_t)ip + iphlen);          uh = (struct udphdr *)((caddr_t)ip + iphlen);
   
           /* destination port of 0 is illegal, based on RFC768. */
           if (uh->uh_dport == 0)
                   goto bad;
   
         /*          /*
          * Make mbuf data length reflect UDP length.           * Make mbuf data length reflect UDP length.
          * If not enough data to reflect UDP length, drop.           * If not enough data to reflect UDP length, drop.

Legend:
Removed from v.1.56  
changed lines
  Added in v.1.57

CVSweb <webmaster@jp.NetBSD.org>