From 5bb57997ba63ec1e323ccd016a62a823fcc37a85 Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Thu, 1 Jun 2006 05:21:07 +0000 Subject: use the table ID as array index directly, faster in the forwarding path we trade higher memory consumption if the user doesn't use continous table IDs, but in the worst case (table IDs 0 and 255, 64bit machine) that is 2KB ok claudio ryan --- sys/net/route.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/net/route.h') diff --git a/sys/net/route.h b/sys/net/route.h index c2622e94ac8..add43964d08 100644 --- a/sys/net/route.h +++ b/sys/net/route.h @@ -1,4 +1,4 @@ -/* $OpenBSD: route.h,v 1.40 2006/05/31 01:35:11 henning Exp $ */ +/* $OpenBSD: route.h,v 1.41 2006/06/01 05:21:06 henning Exp $ */ /* $NetBSD: route.h,v 1.9 1996/02/13 22:00:49 christos Exp $ */ /* @@ -304,6 +304,8 @@ void rtlabel_unref(u_int16_t); #define ONNET_CLONING 1 #define NO_CLONING 2 +#define RT_TABLEID_MAX 255 + extern struct route_cb route_cb; extern struct rtstat rtstat; extern const struct sockaddr_rtin rt_defmask4; -- cgit v1.2.3