]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Use the zone allocator to allocate inpcbs and tcpcbs. Each protocol creates
authorwollman <wollman@FreeBSD.org>
Tue, 24 Mar 1998 18:06:34 +0000 (18:06 +0000)
committerwollman <wollman@FreeBSD.org>
Tue, 24 Mar 1998 18:06:34 +0000 (18:06 +0000)
commitd43e6115b673fe03cf9272a6c74af0c41177fef9
tree566a95c1f14bd40b7c20c3cb610da126805e9eed
parent297cf38a76000d829e4962efc26732a7e4eef52d
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.
sys/netinet/in_pcb.c
sys/netinet/in_pcb.h
sys/netinet/ip_divert.c
sys/netinet/raw_ip.c
sys/netinet/tcp_subr.c
sys/netinet/tcp_timewait.c
sys/netinet/udp_usrreq.c