summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2016-11-14 04:27:03 +0000
committerdlg <dlg@openbsd.org>2016-11-14 04:27:03 +0000
commit5002e02a30fac52d595f50a5902294bf189c3b1d (patch)
tree07f0966f4831de1833c1f5c02ee768f0cdbddd40
parentturn ipstat into a set of percpu counters. (diff)
downloadwireguard-openbsd-5002e02a30fac52d595f50a5902294bf189c3b1d.tar.xz
wireguard-openbsd-5002e02a30fac52d595f50a5902294bf189c3b1d.zip
use M_COUNTERS to allocate counters.
suggested by mpi@ and mikeb@
-rw-r--r--sys/netinet/ip_input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c
index 3b5ee43c05a..f9c5686313b 100644
--- a/sys/netinet/ip_input.c
+++ b/sys/netinet/ip_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_input.c,v 1.284 2016/11/14 03:51:53 dlg Exp $ */
+/* $OpenBSD: ip_input.c,v 1.285 2016/11/14 04:27:03 dlg Exp $ */
/* $NetBSD: ip_input.c,v 1.30 1996/03/16 23:53:58 christos Exp $ */
/*
@@ -168,7 +168,7 @@ ip_init(void)
const u_int16_t defrootonlyports_tcp[] = DEFROOTONLYPORTS_TCP;
const u_int16_t defrootonlyports_udp[] = DEFROOTONLYPORTS_UDP;
- ipcounters = counters_alloc(ips_ncounters, M_PCB);
+ ipcounters = counters_alloc(ips_ncounters, M_COUNTERS);
pool_init(&ipqent_pool, sizeof(struct ipqent), 0,
IPL_SOFTNET, 0, "ipqe", NULL);