[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.80 and 1.86

version 1.80, 2003/05/03 17:53:17 version 1.86, 2003/09/04 16:44:05
Line 48 
Line 48 
  * 2. Redistributions in binary form must reproduce the above copyright   * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the   *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.   *    documentation and/or other materials provided with the distribution.
  * 3. All advertising materials mentioning features or use of this software   * 3. Neither the name of the University nor the names of its contributors
  *    must display the following acknowledgement:  
  *      This product includes software developed by the University of  
  *      California, Berkeley and its contributors.  
  * 4. Neither the name of the University nor the names of its contributors  
  *    may be used to endorse or promote products derived from this software   *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.   *    without specific prior written permission.
  *   *
Line 76  __KERNEL_RCSID(0, "$NetBSD$");
Line 72  __KERNEL_RCSID(0, "$NetBSD$");
   
 #include "opt_sock_counters.h"  #include "opt_sock_counters.h"
 #include "opt_sosend_loan.h"  #include "opt_sosend_loan.h"
   #include "opt_mbuftrace.h"
   #include "opt_somaxkva.h"
   
 #include <sys/param.h>  #include <sys/param.h>
 #include <sys/systm.h>  #include <sys/systm.h>
Line 146  int use_sosend_loan = 1;
Line 144  int use_sosend_loan = 1;
   
 struct mbuf *so_pendfree;  struct mbuf *so_pendfree;
   
 int somaxkva = 16 * 1024 * 1024;  #ifndef SOMAXKVA
   #define SOMAXKVA (16 * 1024 * 1024)
   #endif
   int somaxkva = SOMAXKVA;
 int socurkva;  int socurkva;
 int sokvawaiters;  int sokvawaiters;
   
Line 1265  sorflush(struct socket *so)
Line 1266  sorflush(struct socket *so)
         socantrcvmore(so);          socantrcvmore(so);
         sbunlock(sb);          sbunlock(sb);
         asb = *sb;          asb = *sb;
         memset((caddr_t)sb, 0, sizeof(*sb));          /*
            * Clear most of the sockbuf structure, but leave some of the
            * fields valid.
            */
           memset(&sb->sb_startzero, 0,
               sizeof(*sb) - offsetof(struct sockbuf, sb_startzero));
         splx(s);          splx(s);
         if (pr->pr_flags & PR_RIGHTS && pr->pr_domain->dom_dispose)          if (pr->pr_flags & PR_RIGHTS && pr->pr_domain->dom_dispose)
                 (*pr->pr_domain->dom_dispose)(asb.sb_mb);                  (*pr->pr_domain->dom_dispose)(asb.sb_mb);

Legend:
Removed from v.1.80  
changed lines
  Added in v.1.86

CVSweb <webmaster@jp.NetBSD.org>