summaryrefslogtreecommitdiffstats
path: root/sys/netinet
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2009-05-23 17:02:30 +0000
committerbz <bz@FreeBSD.org>2009-05-23 17:02:30 +0000
commitadc6b5d2f4022b80b7547ed19dd8706cccd62c52 (patch)
treeb895d3c0c77f1476f7d072d8864811b306d1956c /sys/netinet
parenta3768cee5af7ad8d1770de15fbc13b1018facb99 (diff)
downloadFreeBSD-src-adc6b5d2f4022b80b7547ed19dd8706cccd62c52.zip
FreeBSD-src-adc6b5d2f4022b80b7547ed19dd8706cccd62c52.tar.gz
For UDP with introducing the UDP control block, the uma zone had to
be named "udp_inpcb" to avoid a naming conflict with tcp[1]. For consistency rename the uma zone for TCP from "inpcb" to "tcp_inpcb". Found by: rwatson [1] Discussed with: rwatson
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/tcp_subr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c
index c1dc4b3..3c65a54 100644
--- a/sys/netinet/tcp_subr.c
+++ b/sys/netinet/tcp_subr.c
@@ -373,7 +373,7 @@ tcp_init(void)
&V_tcbinfo.ipi_hashmask);
V_tcbinfo.ipi_porthashbase = hashinit(hashsize, M_PCB,
&V_tcbinfo.ipi_porthashmask);
- V_tcbinfo.ipi_zone = uma_zcreate("inpcb", sizeof(struct inpcb),
+ V_tcbinfo.ipi_zone = uma_zcreate("tcp_inpcb", sizeof(struct inpcb),
NULL, NULL, tcp_inpcb_init, NULL, UMA_ALIGN_PTR, UMA_ZONE_NOFREE);
uma_zone_set_max(V_tcbinfo.ipi_zone, maxsockets);
/*
OpenPOWER on IntegriCloud