[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.216 and 1.217

version 1.216, 2013/08/02 20:00:33 version 1.217, 2013/08/29 17:49:21
Line 927  sosend(struct socket *so, struct mbuf *a
Line 927  sosend(struct socket *so, struct mbuf *a
                 }                  }
                 if ((so->so_state & SS_ISCONNECTED) == 0) {                  if ((so->so_state & SS_ISCONNECTED) == 0) {
                         if (so->so_proto->pr_flags & PR_CONNREQUIRED) {                          if (so->so_proto->pr_flags & PR_CONNREQUIRED) {
                                 if ((so->so_state & SS_ISCONFIRMING) == 0 &&                                  if (resid || clen == 0) {
                                     !(resid == 0 && clen != 0)) {  
                                         error = ENOTCONN;                                          error = ENOTCONN;
                                         goto release;                                          goto release;
                                 }                                  }
Line 1185  soreceive(struct socket *so, struct mbuf
Line 1184  soreceive(struct socket *so, struct mbuf
          */           */
         s = splsoftnet();          s = splsoftnet();
         solock(so);          solock(so);
         if (so->so_state & SS_ISCONFIRMING && uio->uio_resid)  
                 (*pr->pr_usrreq)(so, PRU_RCVD, NULL, NULL, NULL, l);  
   
  restart:   restart:
         if ((error = sblock(&so->so_rcv, SBLOCKWAIT(flags))) != 0) {          if ((error = sblock(&so->so_rcv, SBLOCKWAIT(flags))) != 0) {
                 sounlock(so);                  sounlock(so);

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

CVSweb <webmaster@jp.NetBSD.org>