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

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

Diff for /src/sys/kern/uipc_socket.c between version 1.239 and 1.240

version 1.239, 2015/04/24 22:32:37 version 1.240, 2015/05/02 17:18:03
Line 811  soaccept(struct socket *so, struct socka
Line 811  soaccept(struct socket *so, struct socka
 }  }
   
 int  int
 soconnect(struct socket *so, struct mbuf *nam, struct lwp *l)  soconnect(struct socket *so, struct sockaddr *nam, struct lwp *l)
 {  {
         int error;          int error;
   
Line 1051  sosend(struct socket *so, struct mbuf *a
Line 1051  sosend(struct socket *so, struct mbuf *a
                                 so->so_options |= SO_DONTROUTE;                                  so->so_options |= SO_DONTROUTE;
                         if (resid > 0)                          if (resid > 0)
                                 so->so_state |= SS_MORETOCOME;                                  so->so_state |= SS_MORETOCOME;
                         if (flags & MSG_OOB)                          if (flags & MSG_OOB) {
                                 error = (*so->so_proto->pr_usrreqs->pr_sendoob)(so,                                  error = (*so->so_proto->pr_usrreqs->pr_sendoob)(so,
                                     top, control);                                      top, control);
                         else                          } else {
                                   struct sockaddr *sin = NULL;
                                   if (addr) {
                                           sin = mtod(addr, struct sockaddr *);
                                   }
                                 error = (*so->so_proto->pr_usrreqs->pr_send)(so,                                  error = (*so->so_proto->pr_usrreqs->pr_send)(so,
                                     top, addr, control, l);                                      top, sin, control, l);
                           }
                         if (dontroute)                          if (dontroute)
                                 so->so_options &= ~SO_DONTROUTE;                                  so->so_options &= ~SO_DONTROUTE;
                         if (resid > 0)                          if (resid > 0)

Legend:
Removed from v.1.239  
changed lines
  Added in v.1.240

CVSweb <webmaster@jp.NetBSD.org>