aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2009-06-22 15:07:12 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2009-06-22 15:07:12 +0000
commitf987f19301add9b6ba64519564bd3f5dceb1b1d2 (patch)
tree90da8ea72aab09e3ece9fae3a7628931fe9ff0a0 /sys
parentbe5888e34cdeb4ce3f40f405a5273381fe00da9e (diff)
downloadsrc-f987f19301add9b6ba64519564bd3f5dceb1b1d2.tar.gz
src-f987f19301add9b6ba64519564bd3f5dceb1b1d2.zip
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/net/route.c12
-rw-r--r--sys/net/route.h1
2 files changed, 4 insertions, 9 deletions
diff --git a/sys/net/route.c b/sys/net/route.c
index 2ebdeaa24108..2a15a419b6ab 100644
--- a/sys/net/route.c
+++ b/sys/net/route.c
@@ -90,10 +90,10 @@ SYSCTL_INT(_net, OID_AUTO, add_addr_allfibs, CTLFLAG_RW,
TUNABLE_INT("net.add_addr_allfibs", &rt_add_addr_allfibs);
#ifdef VIMAGE_GLOBALS
-static struct rtstat rtstat;
-struct radix_node_head *rt_tables;
-
-static int rttrash; /* routes not in table but not freed */
+struct radix_node_head *rt_tables;
+static uma_zone_t rtzone; /* Routing table UMA zone. */
+int rttrash; /* routes not in table but not freed */
+struct rtstat rtstat;
#endif
static void rt_maskedcopy(struct sockaddr *,
@@ -129,10 +129,6 @@ static const vnet_modinfo_t vnet_rtable_modinfo = {
*/
#define RNTORT(p) ((struct rtentry *)(p))
-#ifdef VIMAGE_GLOBALS
-static uma_zone_t rtzone; /* Routing table UMA zone. */
-#endif
-
#if 0
/* default fib for tunnels to use */
u_int tunnel_fib = 0;
diff --git a/sys/net/route.h b/sys/net/route.h
index ca774837a875..ea5bb0734306 100644
--- a/sys/net/route.h
+++ b/sys/net/route.h
@@ -373,7 +373,6 @@ struct rt_addrinfo {
} \
} while (0)
-extern struct radix_node_head *rt_tables;
struct radix_node_head *rt_tables_get_rnh(int, int);
struct ifmultiaddr;