[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.217 and 1.218

version 1.217, 2014/08/09 05:33:01 version 1.218, 2015/04/03 20:01:07
Line 905  udp_accept(struct socket *so, struct mbu
Line 905  udp_accept(struct socket *so, struct mbu
 }  }
   
 static int  static int
 udp_bind(struct socket *so, struct mbuf *nam, struct lwp *l)  udp_bind(struct socket *so, struct sockaddr *nam, struct lwp *l)
 {  {
         struct inpcb *inp = sotoinpcb(so);          struct inpcb *inp = sotoinpcb(so);
           struct sockaddr_in *sin = (struct sockaddr_in *)nam;
         int error = 0;          int error = 0;
         int s;          int s;
   
Line 916  udp_bind(struct socket *so, struct mbuf 
Line 917  udp_bind(struct socket *so, struct mbuf 
         KASSERT(nam != NULL);          KASSERT(nam != NULL);
   
         s = splsoftnet();          s = splsoftnet();
         error = in_pcbbind(inp, nam, l);          error = in_pcbbind(inp, sin, l);
         splx(s);          splx(s);
   
         return error;          return error;

Legend:
Removed from v.1.217  
changed lines
  Added in v.1.218

CVSweb <webmaster@jp.NetBSD.org>