From owner-freebsd-questions Wed Jun 9 15: 5: 3 1999 Delivered-To: freebsd-questions@freebsd.org Received: from i.caniserv.com (i.caniserv.com [139.142.95.1]) by hub.freebsd.org (Postfix) with SMTP id 446911512F for ; Wed, 9 Jun 1999 15:05:01 -0700 (PDT) (envelope-from csinger@workfire.com) Received: (qmail 25203 invoked from network); 9 Jun 1999 22:06:27 -0000 Received: from h139-142-220-195.ok.fiberone.net (HELO maverick) (@139.142.220.195) by 139.142.95.152 with SMTP; 9 Jun 1999 22:06:27 -0000 From: "Chris Singer" To: "Scott Langevin" , "BSD Help" Subject: Does anyone know what to do to apply a patch?? Date: Wed, 9 Jun 1999 15:04:09 -0700 Message-ID: <000301beb2c4$0012f890$0ea78e8b@maverick.workfire.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I need to apply a patch to a source file and I'm wondering how you do it. The purpose of this is to fix a TCP bug with small packets. Here is the relevant info that I have been given: Apply the following patch to /usr/src/sys/kern/uipc_socket.c RCS file: /home/ncvs/src/sys/kern/uipc_socket.c,v retrieving revision 1.40 retrieving revision 1.41 diff -p -u -r1.40 -r1.41 --- src/sys/kern/uipc_socket.c 1998/05/15 20:11:30 1.40 +++ /home/ncvs/src/sys/kern/uipc_socket.c 1998/07/06 19:27:14 1.41 @@ -491,6 +491,7 @@ restart: mlen = MCLBYTES; len = min(min(mlen, resid), space); }else{ + atomic=1; nopages; len = min(min(mlen, resid), space); /* That is all the info I have. I don't follow what it means? It doesn't much look like C code until the last 5 or 6 lines. I tried entering them in as commands and I just get a bad command back. Have any ideas of how to implement this? THanks for taking the time to hear my dilema. Chris Singer To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message