From owner-cvs-sys Tue Mar 24 10:09:13 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA03045 for cvs-sys-outgoing; Tue, 24 Mar 1998 10:09:13 -0800 (PST) (envelope-from owner-cvs-sys) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA02811; Tue, 24 Mar 1998 10:07:15 -0800 (PST) (envelope-from wollman@FreeBSD.org) From: Garrett Wollman Received: (from wollman@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id KAA26249; Tue, 24 Mar 1998 10:06:39 -0800 (PST) Date: Tue, 24 Mar 1998 10:06:39 -0800 (PST) Message-Id: <199803241806.KAA26249@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-sys@FreeBSD.ORG Subject: cvs commit: src/sys/netinet in_pcb.c in_pcb.h ip_divert.c raw_ip.c tcp_subr.c udp_usrreq.c Sender: owner-cvs-sys@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk wollman 1998/03/24 10:06:38 PST Modified files: sys/netinet in_pcb.c in_pcb.h ip_divert.c raw_ip.c tcp_subr.c udp_usrreq.c Log: Use the zone allocator to allocate inpcbs and tcpcbs. Each protocol creates its own zone; this is used particularly by TCP which allocates both inpcb and tcpcb in a single allocation. (Some hackery ensures that the tcpcb is reasonably aligned.) Also keep track of the number of pcbs of each type allocated, and keep a generation count (instance version number) for future use. Revision Changes Path 1.40 +9 -4 src/sys/netinet/in_pcb.c 1.24 +27 -10 src/sys/netinet/in_pcb.h 1.21 +4 -1 src/sys/netinet/ip_divert.c 1.52 +4 -1 src/sys/netinet/raw_ip.c 1.43 +46 -8 src/sys/netinet/tcp_subr.c 1.45 +4 -1 src/sys/netinet/udp_usrreq.c