[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.158 and 1.158.2.1

version 1.158, 2007/03/04 06:03:22 version 1.158.2.1, 2007/06/08 14:17:48
Line 384  udp_input(struct mbuf *m, ...)
Line 384  udp_input(struct mbuf *m, ...)
                 goto badcsum;                  goto badcsum;
   
         /* construct source and dst sockaddrs. */          /* construct source and dst sockaddrs. */
         bzero(&src, sizeof(src));          sockaddr_in_init(&src, &ip->ip_src, uh->uh_sport);
         src.sin_family = AF_INET;          sockaddr_in_init(&dst, &ip->ip_dst, uh->uh_dport);
         src.sin_len = sizeof(struct sockaddr_in);  
         bcopy(&ip->ip_src, &src.sin_addr, sizeof(src.sin_addr));  
         src.sin_port = uh->uh_sport;  
         bzero(&dst, sizeof(dst));  
         dst.sin_family = AF_INET;  
         dst.sin_len = sizeof(struct sockaddr_in);  
         bcopy(&ip->ip_dst, &dst.sin_addr, sizeof(dst.sin_addr));  
         dst.sin_port = uh->uh_dport;  
   
         if ((n = udp4_realinput(&src, &dst, &m, iphlen)) == -1) {          if ((n = udp4_realinput(&src, &dst, &m, iphlen)) == -1) {
                 udpstat.udps_hdrops++;                  udpstat.udps_hdrops++;

Legend:
Removed from v.1.158  
changed lines
  Added in v.1.158.2.1

CVSweb <webmaster@jp.NetBSD.org>