[BACK]Return to udp6_usrreq.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / netinet6

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/netinet6/udp6_usrreq.c between version 1.29 and 1.30

version 1.29, 2000/06/05 06:38:23 version 1.30, 2000/06/08 13:51:34
Line 566  udp6_output(in6p, m, addr6, control, p)
Line 566  udp6_output(in6p, m, addr6, control, p)
 #ifdef INET  #ifdef INET
         struct ip *ip;          struct ip *ip;
 #endif  #endif
           struct sockaddr_in6 tmp;
   
         priv = 0;          priv = 0;
         if (p && !suser(p->p_ucred, &p->p_acflag))          if (p && !suser(p->p_ucred, &p->p_acflag))
Line 605  udp6_output(in6p, m, addr6, control, p)
Line 606  udp6_output(in6p, m, addr6, control, p)
                         goto release;                          goto release;
                 }                  }
   
                   /* protect *sin6 from overwrites */
                   tmp = *sin6;
                   sin6 = &tmp;
   
                 faddr = &sin6->sin6_addr;                  faddr = &sin6->sin6_addr;
                 fport = sin6->sin6_port; /* allow 0 port */                  fport = sin6->sin6_port; /* allow 0 port */
                 /*                  /*

Legend:
Removed from v.1.29  
changed lines
  Added in v.1.30

CVSweb <webmaster@jp.NetBSD.org>