summaryrefslogtreecommitdiffstats
path: root/sys/netinet/in_pcb.c
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2012-12-08 12:51:06 +0000
committerpjd <pjd@FreeBSD.org>2012-12-08 12:51:06 +0000
commit9d9aaa0e320ae2b81b655c75bbd46ed7236ed072 (patch)
treee8ac9d1ce9cebcde6a8593966d57f8dd11cfb834 /sys/netinet/in_pcb.c
parent2d8f3a4174461f9d7a454636aa65ba8206c1e9bd (diff)
downloadFreeBSD-src-9d9aaa0e320ae2b81b655c75bbd46ed7236ed072.zip
FreeBSD-src-9d9aaa0e320ae2b81b655c75bbd46ed7236ed072.tar.gz
More warnings for zones that depend on the kern.ipc.maxsockets limit.
Obtained from: WHEEL Systems
Diffstat (limited to 'sys/netinet/in_pcb.c')
-rw-r--r--sys/netinet/in_pcb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netinet/in_pcb.c b/sys/netinet/in_pcb.c
index 6073c49..6706bc4 100644
--- a/sys/netinet/in_pcb.c
+++ b/sys/netinet/in_pcb.c
@@ -236,6 +236,8 @@ in_pcbinfo_init(struct inpcbinfo *pcbinfo, const char *name,
NULL, NULL, inpcbzone_init, inpcbzone_fini, UMA_ALIGN_PTR,
inpcbzone_flags);
uma_zone_set_max(pcbinfo->ipi_zone, maxsockets);
+ uma_zone_set_warning(pcbinfo->ipi_zone,
+ "kern.ipc.maxsockets limit reached");
}
/*
OpenPOWER on IntegriCloud