summaryrefslogtreecommitdiff
path: root/sys/netinet/tcp_hostcache.c
diff options
context:
space:
mode:
authorMarko Zec <zec@FreeBSD.org>2008-11-19 09:39:34 +0000
committerMarko Zec <zec@FreeBSD.org>2008-11-19 09:39:34 +0000
commit44e33a075818146eb289c39c3ca2817f54517c9f (patch)
tree3d398563f1e14b804a0558dd3dda1de9a42b9970 /sys/netinet/tcp_hostcache.c
parent6f0e1ffd076c821819632e0371db2f38434ad02c (diff)
Notes
Diffstat (limited to 'sys/netinet/tcp_hostcache.c')
-rw-r--r--sys/netinet/tcp_hostcache.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet/tcp_hostcache.c b/sys/netinet/tcp_hostcache.c
index ec8f9babfc08..25dc44a72799 100644
--- a/sys/netinet/tcp_hostcache.c
+++ b/sys/netinet/tcp_hostcache.c
@@ -146,9 +146,11 @@ struct tcp_hostcache {
int prune;
int purgeall;
};
-static struct tcp_hostcache tcp_hostcache;
+#ifdef VIMAGE_GLOBALS
+static struct tcp_hostcache tcp_hostcache;
static struct callout tcp_hc_callout;
+#endif
static struct hc_metrics *tcp_hc_lookup(struct in_conninfo *);
static struct hc_metrics *tcp_hc_insert(struct in_conninfo *);