From owner-cvs-all@FreeBSD.ORG Mon Apr 3 13:33:56 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D547E16A401; Mon, 3 Apr 2006 13:33:56 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id A592243D46; Mon, 3 Apr 2006 13:33:56 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k33DXus4097549; Mon, 3 Apr 2006 13:33:56 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k33DXu8J097548; Mon, 3 Apr 2006 13:33:56 GMT (envelope-from rwatson) Message-Id: <200604031333.k33DXu8J097548@repoman.freebsd.org> From: Robert Watson Date: Mon, 3 Apr 2006 13:33:56 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/netinet in_pcb.c in_pcb.h tcp_input.c tcp_subr.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Apr 2006 13:33:56 -0000 rwatson 2006-04-03 13:33:56 UTC FreeBSD src repository Modified files: sys/netinet in_pcb.c in_pcb.h tcp_input.c tcp_subr.c Log: Change inp_ppcb from caddr_t to void *, fix/remove associated related casts. Consistently use intotw() to cast inp_ppcb pointers to struct tcptw * pointers. Consistently use intotcpcb() to cast inp_ppcb pointers to struct tcpcb * pointers. Don't assign tp to the results to intotcpcb() during variable declation at the top of functions, as that is before the asserts relating to locking have been performed. Do this later in the function after appropriate assertions have run to allow that operation to be conisdered safe. MFC after: 3 months Revision Changes Path 1.171 +4 -2 src/sys/netinet/in_pcb.c 1.87 +1 -1 src/sys/netinet/in_pcb.h 1.294 +1 -2 src/sys/netinet/tcp_input.c 1.243 +10 -7 src/sys/netinet/tcp_subr.c