summaryrefslogtreecommitdiff
path: root/sys/net/route.c
diff options
context:
space:
mode:
authorJeremie Courreges-Anglas <jca@cvs.openbsd.org>2017-02-05 16:23:39 +0000
committerJeremie Courreges-Anglas <jca@cvs.openbsd.org>2017-02-05 16:23:39 +0000
commitc209894806b3b7e37931ecc68cb218a1893f8141 (patch)
tree94d883c5b19da9a8664b7a95306fee026a1f7175 /sys/net/route.c
parenta0fe76973a89628bbcd7a93577076e67e111a4a4 (diff)
Always allocate counters memory using type M_COUNTERS.
This makes the API simpler, and is probably more useful than spreading counters memory other several types, making it harder to track. Prodded by mpi, ok mpi@ stsp@
Diffstat (limited to 'sys/net/route.c')
-rw-r--r--sys/net/route.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/route.c b/sys/net/route.c
index 52e7d3813de..ad621de6b69 100644
--- a/sys/net/route.c
+++ b/sys/net/route.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: route.c,v 1.349 2017/01/24 10:08:30 krw Exp $ */
+/* $OpenBSD: route.c,v 1.350 2017/02/05 16:23:38 jca Exp $ */
/* $NetBSD: route.c,v 1.14 1996/02/13 22:00:46 christos Exp $ */
/*
@@ -191,7 +191,7 @@ TAILQ_HEAD(rt_labels, rt_label) rt_labels = TAILQ_HEAD_INITIALIZER(rt_labels);
void
route_init(void)
{
- rtcounters = counters_alloc(rts_ncounters, M_COUNTERS);
+ rtcounters = counters_alloc(rts_ncounters);
pool_init(&rtentry_pool, sizeof(struct rtentry), 0, IPL_SOFTNET, 0,
"rtentry", NULL);