patchable send and receive space
authorBill Joy <wnj@ucbvax.Berkeley.EDU>
Fri, 26 Feb 1982 05:14:58 +0000 (21:14 -0800)
committerBill Joy <wnj@ucbvax.Berkeley.EDU>
Fri, 26 Feb 1982 05:14:58 +0000 (21:14 -0800)
SCCS-vsn: sys/netinet/tcp_usrreq.c 1.51

usr/src/sys/netinet/tcp_usrreq.c

index d37e921..c75b9f7 100644 (file)
@@ -1,4 +1,4 @@
-/* tcp_usrreq.c 1.50 82/02/19 */
+/* tcp_usrreq.c 1.51 82/02/25 */
 
 #include "../h/param.h"
 #include "../h/systm.h"
 
 #include "../h/param.h"
 #include "../h/systm.h"
@@ -260,6 +260,8 @@ printf("sendoob seq now %x oobc %x\n", tp->t_oobseq, tp->t_oobc);
        return (error);
 }
 
        return (error);
 }
 
+int    tcp_sendspace = 1024*2;
+int    tcp_recvspace = 1024*3;
 /*
  * Attach TCP protocol to socket, allocating
  * internet protocol control block, tcp control block,
 /*
  * Attach TCP protocol to socket, allocating
  * internet protocol control block, tcp control block,
@@ -273,7 +275,8 @@ tcp_attach(so, sa)
        struct inpcb *inp;
        int error;
 
        struct inpcb *inp;
        int error;
 
-       error = in_pcbattach(so, &tcb, 2048, 2048, (struct sockaddr_in *)sa);
+       error = in_pcbattach(so, &tcb,
+           tcp_sendspace, tcp_recvspace, (struct sockaddr_in *)sa);
        if (error)
                return (error);
        inp = (struct inpcb *)so->so_pcb;
        if (error)
                return (error);
        inp = (struct inpcb *)so->so_pcb;