summaryrefslogtreecommitdiffstats
path: root/sys/netinet/udp_usrreq.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/udp_usrreq.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/udp_usrreq.c')
-rw-r--r--sys/netinet/udp_usrreq.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c
index 3b93b26..b6297dc 100644
--- a/sys/netinet/udp_usrreq.c
+++ b/sys/netinet/udp_usrreq.c
@@ -191,6 +191,7 @@ udp_init(void)
V_udpcb_zone = uma_zcreate("udpcb", sizeof(struct udpcb),
NULL, NULL, NULL, NULL, UMA_ALIGN_PTR, UMA_ZONE_NOFREE);
uma_zone_set_max(V_udpcb_zone, maxsockets);
+ uma_zone_set_warning(V_udpcb_zone, "kern.ipc.maxsockets limit reached");
EVENTHANDLER_REGISTER(maxsockets_change, udp_zone_change, NULL,
EVENTHANDLER_PRI_ANY);
}
OpenPOWER on IntegriCloud